insn_extract takes an rtx_insn
[gcc.git] / gcc / ChangeLog
1 2014-09-10 David Malcolm <dmalcolm@redhat.com>
2
3 * genextract.c (print_header): When writing out insn_extract to
4 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
5 * recog.h (insn_extract): Strengthen the param from rtx to
6 rtx_insn *.
7
8 2014-09-10 Mike Stump <mikestump@comcast.net>
9
10 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
11 8.6.1.
12
13 2014-09-10 Martin Jambor <mjambor@suse.cz>
14
15 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
16 (analyze): Do not set analyze flag if expand_thunk returns false;.
17 (create_wrapper): Likewise.
18 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
19
20 2014-09-10 Martin Jambor <mjambor@suse.cz>
21
22 PR ipa/61654
23 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
24 new decl properly. Analyze the new thunk if it is expanded.
25
26 2014-09-10 Andreas Schwab <schwab@suse.de>
27
28 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
29 [USED_FOR_TARGET]: Define.
30
31 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
32
33 * config/mips/mips.c (mips_secondary_reload_class): Handle
34 regno < 0 case.
35
36 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
37
38 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
39 assignment.
40
41 2014-09-10 Jakub Jelinek <jakub@redhat.com>
42
43 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
44 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
45 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
46 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
47 flag_delete_null_pointer_checks for them.
48 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
49 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
50 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
51 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
52 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
53 stmt's iterator.
54 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
55 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
56 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
57 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
58 * doc/invoke.texi (-fsanitize=nonnull-attribute,
59 -fsanitize=returns-nonnull-attribute): Document.
60
61 * ubsan.h (struct ubsan_mismatch_data): Removed.
62 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
63 * ubsan.c (ubsan_source_location): For unknown locations,
64 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
65 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
66 Allow more than one location and arbitrary extra arguments passed
67 in ... instead of through MISMATCH pointer.
68 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
69 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
70 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
71 callers.
72
73 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
74 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
75 Anna Tikhonova <anna.tikhonova@intel.com>
76 Ilya Tocar <ilya.tocar@intel.com>
77 Andrey Turetskiy <andrey.turetskiy@intel.com>
78 Ilya Verbin <ilya.verbin@intel.com>
79 Kirill Yukhin <kirill.yukhin@intel.com>
80 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
81
82 * config/i386/sse.md
83 (define_mode_iterator VI48F): New.
84 (define_insn "<avx512>_compress<mode>_mask"): Rename from
85 "avx512f_compress<mode>_mask" and update mode iterator.
86 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
87 "avx512f_compressstore<mode>_mask" and update mode iterator.
88 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
89 "avx512f_expand<mode>_maskz" and update mode iterator.
90 (define_insn "<avx512>_expand<mode>_mask"): Rename from
91 "avx512f_expand<mode>_mask" and update mode iterator.
92
93 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
94 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
95 Anna Tikhonova <anna.tikhonova@intel.com>
96 Ilya Tocar <ilya.tocar@intel.com>
97 Andrey Turetskiy <andrey.turetskiy@intel.com>
98 Ilya Verbin <ilya.verbin@intel.com>
99 Kirill Yukhin <kirill.yukhin@intel.com>
100 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
101
102 * config/i386/i386.c
103 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
104 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
105 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
106 avx512dq_rangepv4sf_mask.
107 * config/i386/sse.md
108 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
109 UNSPEC_RANGE.
110 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
111 (define_insn "reduces<mode>"): Ditto.
112 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
113 Ditto.
114 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
115 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
116 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
117
118 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
119 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
120 Anna Tikhonova <anna.tikhonova@intel.com>
121 Ilya Tocar <ilya.tocar@intel.com>
122 Andrey Turetskiy <andrey.turetskiy@intel.com>
123 Ilya Verbin <ilya.verbin@intel.com>
124 Kirill Yukhin <kirill.yukhin@intel.com>
125 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
126
127 * config/i386/i386.c
128 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
129 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
130 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
131 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
132 avx512vl_getmantv2df_mask.
133 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
134 avx512f_vgetmantv4sf_round.
135 * config/i386/sse.md
136 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
137 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
138 mode iterator.
139 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
140 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
141 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
142 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
143 iterator..
144 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
145 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
146 update mode iterator.
147 (define_expand
148 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
149 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
150 mode iterator.
151 (define_insn
152 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
153 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
154 update mode iterator.
155 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
156 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
157 iterator..
158 (define_insn
159 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
160 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
161 mode iterator..
162 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
163 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
164 update mode iterator.
165 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
166 "avx512f_getmant<mode><round_saeonly_name>".
167
168 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
169
170 PR ipa/63166
171 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
172
173 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
174 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
175 Anna Tikhonova <anna.tikhonova@intel.com>
176 Ilya Tocar <ilya.tocar@intel.com>
177 Andrey Turetskiy <andrey.turetskiy@intel.com>
178 Ilya Verbin <ilya.verbin@intel.com>
179 Kirill Yukhin <kirill.yukhin@intel.com>
180 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
181
182 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
183 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
184 (define_mode_iterator FMAMODE_AVX512): New.
185 (define_mode_iterator FMAMODE): Remove conditions.
186 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
187 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
188 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
189 mode iterator.
190 (define_mode_iterator FMAMODE_NOVF512): Remove.
191 (define_insn "*fma_fmadd_<mode>"): Rename from
192 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
193 FMAMODE mode iterator.
194 (define_mode_iterator VF_SF_AVX512VL): New.
195 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
196 Use VF_SF_AVX512VL mode iterator.
197 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
198 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
199 iterator.
200 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
201 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
202 iterator.
203 (define_insn "*fma_fmsub_<mode>"): Rename from
204 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
205 FMAMODE mode iterator.
206 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
207 Use VF_SF_AVX512VL mode iterator.
208 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
209 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
210 iterator.
211 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
212 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
213 iterator.
214 (define_insn "*fma_fnmadd_<mode>"): Rename from
215 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
216 use FMAMODE mode iterator.
217 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
218 Use VF_SF_AVX512VL mode iterator.
219 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
220 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
221 iterator.
222 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
223 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
224 iterator.
225 (define_insn "*fma_fnmsub_<mode>"): Rename from
226 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
227 FMAMODE mode iterator.
228 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
229 Use VF_SF_AVX512VL mode iterator.
230 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
231 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
232 iterator.
233 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
234 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
235 iterator.
236 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
237 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
238 use VF_AVX512VL mode iterator.
239 (define_insn "*fma_fmaddsub_<mode>"): Rename from
240 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
241 remove subst usage.
242 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
243 Use VF_SF_AVX512VL mode iterator.
244 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
245 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
246 iterator.
247 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
248 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
249 iterator.
250 (define_insn "*fma_fmsubadd_<mode>"): Rename from
251 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
252 remove usage of subst.
253 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
254 Use VF_SF_AVX512VL mode iterator.
255 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
256 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
257 iterator.
258 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
259 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
260 iterator.
261
262 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
263
264 Revert r213751:
265 * calls.c (precompute_arguments): Check
266 promoted_for_signed_and_unsigned_p and set the promoted mode.
267 (promoted_for_signed_and_unsigned_p): New function.
268 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
269 and set the promoted mode.
270 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
271 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
272 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
273
274 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
275
276 * opth-gen.awk: Generate mapping from cpp message reasons to the
277 options that enable them.
278 * doc/options.texi (CppReason): Document.
279
280 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
281
282 * doc/invoke.texi (Wnormalized=): Update.
283
284 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
285
286 PR target/63195
287 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
288 operands. Split off the constant operand alternative to ...
289 (*bool<mode>3_imm): New.
290
291 2014-09-09 David Malcolm <dmalcolm@redhat.com>
292
293 * rtl.h (single_set_2): Strengthen first param from const_rtx to
294 const rtx_insn *, and move prototype to above...
295 (single_set): ...this. Convert this from a macro to an inline
296 function, enforcing the requirement that the param is a const
297 rtx_insn *.
298 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
299
300 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
301 Strengthen both params from rtx to rtx_insn *.
302 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
303 Likewise; introduce locals "producer_set", "consumer_set", using
304 them in place of "producer" and "consumer" when dealing with SET
305 rather than insn.
306 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
307 when invoking single_set in region guarded by INSN_P.
308 (avr_out_bitop): Likewise.
309 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
310 region guarded by GET_CODE check, using methods to strengthen
311 local "this_insn" from rtx to rtx_insn *, and for clarity.
312 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
313 Strengthen local "insn" from rtx to rtx_insn *.
314 (define_insn_and_split "xload<mode>_A"): Likewise.
315 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
316 "insn".
317 (find_load): Likewise for return type.
318 (workaround_speculation): Likewise for both locals named
319 "load_insn".
320 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
321 local "cc0_user".
322 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
323 for local "prev".
324 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
325 param 2.
326 * config/h8300/h8300.c (notice_update_cc): Likewise.
327 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
328 "insn" and "dep_insn".
329 (exact_store_load_dependency): Likewise for both params.
330 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
331 since this now clashes with inline function. Instead, delay
332 calling single_set until the point where its needed, and then
333 assign the result to "compare_set" and rework the conditional that
334 follows.
335 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
336 local "last" from rtx to rtx_insn *.
337 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
338 second param.
339 (mips_store_data_bypass_p): Likewise for both params.
340 * config/mips/mips.c (mips_load_store_insns): Likewise for second
341 param.
342 (mips_store_data_bypass_p): Likewise for both params.
343 (mips_orphaned_high_part_p): Likewise for param "insn".
344 * config/mn10300/mn10300.c (extract_bundle): Likewise.
345 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
346 Introduce local rtx "insn2_pat".
347 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
348 "ninsn".
349 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
350 Introduce local rtx "set", using it in place of "insn" for the
351 result of single_set. This appears to fix a bug, since the call
352 to find_regno_note on a SET does nothing.
353 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
354 params from rtx to rtx_insn *.
355 (set_to_load_agen): Likewise.
356 * config/s390/s390.c (s390_label_align): Likewise for local
357 "prev_insn". Introduce new rtx locals "set" and "src", using
358 them in place of "prev_insn" for the results of single_set
359 and SET_SRC respectively.
360 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
361 Introduce new rtx local "set" using in place of "jump" for the
362 result of single_set. Use SET_SRC (set) rather than plain
363 XEXP (set, 1).
364 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
365 rtx to rtx_insn *.
366 (noncall_uses_reg): Likewise.
367 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
368 guarded by GET_CODE check, using its methods for clarity, and to
369 enable strengthening local "this_insn" from rtx to rtx_insn *.
370 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
371 "insn" from rtx to rtx_insn *.
372 (define_expand "umulhisi3"): Likewise.
373 (define_expand "smulsi3_highpart"): Likewise.
374 (define_expand "umulsi3_highpart"): Likewise.
375 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
376 local "after". Replace GET_CODE check with a dyn_cast,
377 introducing new local rtx_sequence * "seq", using insn method for
378 typesafety.
379
380 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
381 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
382 place of "insn" once we're dealing with patterns rather than the
383 input insn.
384 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
385 (scan_trace): Likewise for local "elt", updating lookups within
386 sequence to use insn method rather than element method.
387 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
388 to rtx_insn *.
389 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
390 * ifcvt.c (noce_try_abs): Likewise for local "insn".
391 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
392 invoking single_set.
393 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
394 "insn" from rtx to rtx_insn *.
395 (skip_usage_debug_insns): Likewise for return type, adding a
396 checked cast.
397 (check_secondary_memory_needed_p): Likewise for local "insn".
398 (inherit_reload_reg): Likewise.
399 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
400 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
401 checked casts.
402 (store_data_bypass_p): Likewise for both params.
403 (if_test_bypass_p): Likewise.
404 * recog.h (store_data_bypass_p): Likewise for both params.
405 (if_test_bypass_p): Likewise.
406 * reload.c (find_equiv_reg): Likewise for local "where".
407 * reorg.c (delete_jump): Likewise for param "insn".
408 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
409 to const rtx_insn *.
410 * store-motion.c (replace_store_insn): Likewise for param "del".
411 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
412 and use its methods for clarity, and to strengthen local "del"
413 from rtx to rtx_insn *.
414 (build_store_vectors): Use insn method of "st" when calling
415 replace_store_insn for typesafety and clarity.
416
417 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
418
419 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
420 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
421 on how to make it legal in future.
422
423 2014-09-09 David Malcolm <dmalcolm@redhat.com>
424
425 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
426 to rtx_insn *.
427 (restinsn): Likewise.
428 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
429 Likewise for param.
430 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
431 Likewise.
432 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
433 first param.
434 (arc_hazard): Likewise for both params.
435 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
436 checked casts to rtx_sequence * and uses of the insn method for
437 type-safety.
438 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
439 (arc_adjust_insn_length): Likewise for param "insn".
440 (struct insn_length_parameters_s): Likewise for first param of
441 "get_variants" callback field.
442 (arc_get_insn_variants): Likewise for first param and local
443 "inner". Replace a check of GET_CODE with a dyn_cast to
444 rtx_sequence *, using methods for type-safety and clarity.
445 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
446 rtx_sequence * and uses of the insn method for type-safety when
447 invoking arc_adjust_insn_length.
448 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
449 for param.
450 (arm_address_offset_is_imm): Likewise.
451 (struct tune_params): Likewise for params 1 and 3 of the
452 "sched_adjust_cost" callback field.
453 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
454 params 1 and 3 ("insn" and "dep").
455 (xscale_sched_adjust_cost): Likewise.
456 (fa726te_sched_adjust_cost): Likewise.
457 (cortexa7_older_only): Likewise for param "insn".
458 (cortexa7_younger): Likewise.
459 (arm_attr_length_move_neon): Likewise.
460 (arm_address_offset_is_imm): Likewise.
461 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
462 * config/avr/avr.c (avr_notice_update_cc): Likewise.
463 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
464 (workaround_speculation): Likewise for local "last_condjump".
465 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
466 (shadow_or_blockage_p): Likewise.
467 (get_unit_reqs): Likewise.
468 (get_unit_operand_masks): Likewise.
469 (c6x_registers_update): Likewise.
470 (returning_call_p): Likewise.
471 (can_use_callp): Likewise.
472 (convert_to_callp): Likewise.
473 (find_last_same_clock): Likwise for local "t".
474 (reorg_split_calls): Likewise for local "shadow".
475 (hwloop_pattern_reg): Likewise for param "insn".
476 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
477 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
478 (frv_extract_membar): Likewise.
479 (frv_optimize_membar_local): Strengthen param "last_membar" from
480 rtx * to rtx_insn **.
481 (frv_optimize_membar_global): Strengthen param "membar" from rtx
482 to rtx_insn *.
483 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
484 to rtx_insn **.
485 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
486 both params from rtx to rtx_insn *.
487 (ia64_ld_address_bypass_p): Likewise.
488 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
489 "insn".
490 (ia64_safe_type): Likewise.
491 (group_barrier_needed): Likewise.
492 (safe_group_barrier_needed): Likewise.
493 (ia64_single_set): Likewise.
494 (is_load_p): Likewise.
495 (record_memory_reference): Likewise.
496 (get_mode_no_for_insn): Likewise.
497 (important_for_bundling_p): Likewise.
498 (unknown_for_bundling_p): Likewise.
499 (ia64_st_address_bypass_p): Likewise for both params.
500 (ia64_ld_address_bypass_p): Likewise.
501 (expand_vselect): Introduce new local rtx_insn * "insn", using it
502 in place of rtx "x" after the emit_insn call.
503 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
504 Strengthen param from rtx to rtx_insn *.
505 (ix86_agi_dependent): Likewise for both params.
506 (ix86_attr_length_immediate_default): Likewise for param 1.
507 (ix86_attr_length_address_default): Likewise for param.
508 (ix86_attr_length_vex_default): Likewise for param 1.
509 * config/i386/i386.c (ix86_attr_length_immediate_default):
510 Likewise for param "insn".
511 (ix86_attr_length_address_default): Likewise.
512 (ix86_attr_length_vex_default): Likewise.
513 (ix86_agi_dependent): Likewise for both params.
514 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
515 (vselect_insn): Likewise for this variable.
516 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
517 for param 1.
518 (m68k_sched_attr_opy_type): Likewise.
519 * config/m68k/m68k.c (sched_get_operand): Likewise.
520 (sched_attr_op_type): Likewise.
521 (m68k_sched_attr_opx_type): Likewise.
522 (m68k_sched_attr_opy_type): Likewise.
523 (sched_get_reg_operand): Likewise.
524 (sched_get_mem_operand): Likewise.
525 (m68k_sched_address_bypass_p): Likewise for both params.
526 (sched_get_indexed_address_scale): Likewise.
527 (m68k_sched_indexed_address_bypass_p): Likewise.
528 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
529 (m68k_sched_indexed_address_bypass_p): Likewise.
530 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
531 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
532 removing another.
533 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
534 params from rtx to rtx_insn *.
535 (mips_fmadd_bypass): Likewise.
536 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
537 (mips_linked_madd_p): Likewise.
538 (mips_macc_chains_last_hilo): Likewise for this variable.
539 (mips_macc_chains_record): Likewise for param.
540 (vr4130_last_insn): Likewise for this variable.
541 (vr4130_swap_insns_p): Likewise for both params.
542 (mips_ls2_variable_issue): Likewise for param.
543 (mips_need_noat_wrapper_p): Likewise for param "insn".
544 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
545 in place of "x" after the emit_insn.
546 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
547 params from rtx to rtx_insn *.
548 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
549 (pa_combine_instructions): Introduce local "par" for result of
550 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
551 to make_insn_raw.
552 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
553 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
554 (rl78_alloc_physical_registers_op1): Likewise.
555 (rl78_alloc_physical_registers_op2): Likewise.
556 (rl78_alloc_physical_registers_ro1): Likewise.
557 (rl78_alloc_physical_registers_cmp): Likewise.
558 (rl78_alloc_physical_registers_umul): Likewise.
559 (rl78_alloc_address_registers_macax): Likewise.
560 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
561 * config/s390/predicates.md (execute_operation): Likewise for
562 local "insn".
563 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
564 params.
565 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
566 (addr_generation_dependency_p): Likewise for param "insn".
567 (s390_agen_dep_p): Likewise for both params.
568 (s390_fpload_toreg): Likewise for param "insn".
569 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
570 * config/sh/sh.c (sh_loop_align): Likewise for param and local
571 "next".
572 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
573 * config/sh/sh_treg_combine.cc
574 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
575 and local "i".
576 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
577 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
578 "and_insn", "load", "shift".
579 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
580 "insn".
581 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
582 for XEXP (note, 0) of the REG_CC_SETTER note.
583 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
584 rtx_insn *, eliminating a checked cast made redundant by this.
585 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
586 to rtx_insn *.
587 * genattr.c (main): When writing out the prototype to
588 const_num_delay_slots, strengthen the param from rtx to
589 rtx_insn *.
590 * genattrtab.c (write_const_num_delay_slots): Likewise when
591 writing out the implementation of const_num_delay_slots.
592 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
593 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
594 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
595 favor of new rtx locals "src" and "set" and new local rtx_insn *
596 "insn" and "seq".
597 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
598 to rtx_insn *.
599 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
600 locals "cond", "if_then_else", "set" and new rtx_insn * locals
601 "insn" and "seq".
602 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
603 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
604 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
605 the top-level scope, replacing with new more tightly-scoped rtx
606 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
607 "new_insn", "copy_of_insn_b", and make local rtx "set" more
608 tightly-scoped.
609 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
610 rtx_insn *.
611 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
612 "move_insn".
613 (ira_setup_alts): Likewise for param "insn".
614 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
615 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
616 and an rtx_insn *.
617 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
618 new more-tightly scoped rtx locals "add3_insn", "insn",
619 "add2_insn" and rtx_insn * "move_insn".
620 * postreload-gcse.c (eliminate_partially_redundant_load): Add
621 checked cast on result of gen_move_insn when invoking
622 extract_insn.
623 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
624 rtx_insn *.
625 (verify_changes): Add a checked cast on "object" when invoking
626 insn_invalid_p.
627 (extract_insn_cached): Strengthen param "insn" from rtx to
628 rtx_insn *.
629 (extract_constrain_insn_cached): Likewise.
630 (extract_insn): Likewise.
631 * recog.h (insn_invalid_p): Likewise for param 1.
632 (recog_memoized): Likewise for param.
633 (extract_insn): Likewise.
634 (extract_constrain_insn_cached): Likewise.
635 (extract_insn_cached): Likewise.
636 * reload.c (can_reload_into): Likewise for local "test_insn".
637 * reload.h (cleanup_subreg_operands): Likewise for param.
638 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
639 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
640 result of emit_insn. Remove a checked cast made redundant by this
641 change.
642 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
643 rtx to rtx_insn *.
644 * sel-sched.c (get_reg_class): Likewise.
645
646 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
647 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
648
649 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
650 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
651 Define.
652 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
653
654 2014-09-09 David Malcolm <dmalcolm@redhat.com>
655
656 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
657 const rtx_insn *, and from rtx to rtx_insn * for the other
658 overloaded variant.
659 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
660 INSN_LOCATION, since we know INSN_P holds.
661 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
662 (insn_file): Likewise.
663 (insn_scope): Likewise.
664 (insn_location): Likewise.
665
666 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
667 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
668 for the result of gen_load_const_gp.
669 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
670 param from rtx to rtx_insn *.
671 * config/rs6000/rs6000.c (output_call): Likewise.
672 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
673 introducing a checked cast to rtx_sequence * and use of the insn
674 method.
675 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
676 from rtx to rtx_insn *.
677 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
678 (insn_line): Likewise.
679 (insn_file): Likewise.
680 (insn_location): Likewise.
681 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
682 from rtx to rtx_insn *.
683 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
684 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
685 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
686 via a checked cast.
687 * reorg.c (relax_delay_slots): Strengthen locals named "after"
688 from rtx to rtx_insn *; use methods of "pat" for type-safety.
689
690 2014-09-09 David Malcolm <dmalcolm@redhat.com>
691
692 * combine.c (try_combine): Eliminate checked cast on result of
693 gen_rtx_INSN.
694 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
695 autogenerated one by strengthening the return type and params 2 and 3
696 from rtx to rtx_insn *, and by naming the params.
697 * gengenrtl.c (special_rtx): Add INSN to those that are
698 special-cased.
699 * rtl.h (gen_rtx_INSN): New prototype.
700
701 2014-09-09 David Malcolm <dmalcolm@redhat.com>
702
703 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
704 than NULL_RTX.
705 (no_equiv): Likewise.
706 (update_equiv_regs): Likewise.
707 (setup_reg_equiv): Likewise. Strengthen locals "elem",
708 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
709 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
710 clarity.
711 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
712 from rtx to rtx_insn_list *.
713 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
714 rtx_insn_list * and use methods for clarity and typesafety.
715 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
716 "list".
717 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
718 redundant check on INSN_P (insns): this cannot hold, as "insns" is
719 an INSN_LIST, not an insn.
720 (reverse_equiv_p): Strengthen local "insns" from rtx to
721 rtx_insn_list * and use methods for clarity and typesafety.
722 (contains_reloaded_insn_p): Likewise for local "list".
723
724 2014-09-09 Jiong Wang <jiong.wang@arm.com>
725
726 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
727 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
728 (arm_builtin_vectorized_function): Likewise.
729 * config/arm/arm_neon_builtins.def: New macro for copysignf.
730 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
731
732 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
733
734 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
735 * builtins.h (default_target_builtins): Likewise.
736 * gcse.h (default_target_gcse): Likewise.
737 * target-globals.h (target_globals): Add a destructor. Convert
738 void-pointer fields back to their real type and change from
739 GTY((atomic)) to GTY((skip)).
740 (restore_target_globals): Remove casts accordingly.
741 * target-globals.c (save_target_globals): Use XCNEW rather than
742 ggc_internal_cleared_alloc to allocate non-GC structures.
743 Use ggc_cleared_alloc to allocate the target_globals structure
744 itself.
745 (target_globals::~target_globals): Define.
746
747 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
748
749 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
750 mnemonic instead of fldmfdd.
751 * config/arm/arm.c (vfp_output_fstmd): Rename to...
752 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
753 Output vpush when address register is SP.
754 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
755 (vfp_output_vstmd): ... This.
756 * config/arm/vfp.md (push_multi_vfp): Update call to
757 vfp_output_vstmd.
758
759 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
760
761 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
762
763 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
764
765 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
766 (*sqrtdf2_vfp): Likewise.
767 (*cmpsf_vfp): Likewise.
768 (*cmpsf_trap_vfp): Likewise.
769 (*cmpdf_vfp): Likewise.
770 (*cmpdf_trap_vfp): Likewise.
771
772 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
773
774 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
775 (*truncdfsf2_vfp): Likewise.
776 (*truncsisf2_vfp): Likewise.
777 (*truncsidf2_vfp): Likewise.
778 (fixuns_truncsfsi2): Likewise.
779 (fixuns_truncdfsi2): Likewise.
780 (*floatsisf2_vfp): Likewise.
781 (*floatsidf2_vfp): Likewise.
782 (floatunssisf2): Likewise.
783 (floatunssidf2): Likewise.
784
785 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
786
787 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
788 (*muldf3_vfp): Likewise.
789 (*mulsf3negsf_vfp): Likewise.
790 (*muldf3negdf_vfp): Likewise.
791 (*mulsf3addsf_vfp): Likewise.
792 (*muldf3adddf_vfp): Likewise.
793 (*mulsf3subsf_vfp): Likewise.
794 (*muldf3subdf_vfp): Likewise.
795 (*mulsf3negsfaddsf_vfp): Likewise.
796 (*fmuldf3negdfadddf_vfp): Likewise.
797 (*mulsf3negsfsubsf_vfp): Likewise.
798 (*muldf3negdfsubdf_vfp): Likewise.
799
800 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
801
802 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
803 (*absdf2_vfp): Likewise.
804 (*negsf2_vfp): Likewise.
805 (*negdf2_vfp): Likewise.
806 (*addsf3_vfp): Likewise.
807 (*adddf3_vfp): Likewise.
808 (*subsf3_vfp): Likewise.
809 (*subdf3_vfp): Likewise.
810 (*divsf3_vfp): Likewise.
811 (*divdf3_vfp): Likewise.
812
813 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
814
815 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
816 multiple.
817 (arm_print_operand): Don't convert real values to decimal
818 representation in default case.
819 (fp_immediate_constant): Delete.
820 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
821 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
822 syntax.
823 (*thumb2_movsi_vfp): Likewise.
824 (*movdi_vfp): Likewise.
825 (*movdi_vfp_cortexa8): Likewise.
826 (*movhf_vfp_neon): Likewise.
827 (*movhf_vfp): Likewise.
828 (*movsf_vfp): Likewise.
829 (*thumb2_movsf_vfp): Likewise.
830 (*movdf_vfp): Likewise.
831 (*thumb2_movdf_vfp): Likewise.
832 (*movsfcc_vfp): Likewise.
833 (*thumb2_movsfcc_vfp): Likewise.
834 (*movdfcc_vfp): Likewise.
835 (*thumb2_movdfcc_vfp): Likewise.
836
837 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
838
839 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
840 (-mtune): Likewise.
841 (-mcpu): Likewise.
842
843 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
844
845 PR target/61749
846 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
847 Use qualifier_immediate for last operand. Rename to...
848 (aarch64_types_ternop_lane_qualifiers): ... This.
849 (TYPES_QUADOP): Rename to...
850 (TYPES_TERNOP_LANE): ... This.
851 (aarch64_simd_expand_args): Return const0_rtx when encountering user
852 error. Change return of 0 to return of NULL_RTX.
853 (aarch64_crc32_expand_builtin): Likewise.
854 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
855 ICE when expanding unknown builtin.
856 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
857 TERNOP_LANE qualifiers.
858 (sqdmlsl_lane): Likewise.
859 (sqdmlal_laneq): Likewise.
860 (sqdmlsl_laneq): Likewise.
861 (sqdmlal2_lane): Likewise.
862 (sqdmlsl2_lane): Likewise.
863 (sqdmlal2_laneq): Likewise.
864 (sqdmlsl2_laneq): Likewise.
865
866 2014-09-09 Nick Clifton <nickc@redhat.com>
867
868 * doc/invoke.texi (Optimization Options): Add missing @gol to the
869 end of a line.
870 (S/390 and zSeries Options): Remove superfluous word from the
871 description of the -mhotpatch option.
872
873 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
874
875 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
876 * ira.c: #include "shrink-wrap.h"
877 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
878 * ifcvt.c: #include "shrink-wrap.h"
879 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
880
881 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
882
883 * common/config/picochip/picochip-common.c: Remove.
884 * config.gcc: Remove support for picochip.
885 * config/picochip/constraints.md: Remove.
886 * config/picochip/dfa_space.md: Remove.
887 * config/picochip/dfa_speed.md: Remove.
888 * config/picochip/picochip-protos.h: Remove.
889 * config/picochip/picochip.c: Remove.
890 * config/picochip/picochip.h: Remove.
891 * config/picochip/picochip.md: Remove.
892 * config/picochip/picochip.opt: Remove.
893 * config/picochip/predicates.md: Remove.
894 * config/picochip/t-picochip: Remove.
895 * doc/md.texi: Don't document picochi.
896
897 2014-09-08 David Malcolm <dmalcolm@redhat.com>
898
899 * basic-block.h (control_flow_insn_p): Strengthen param from
900 const_rtx to const rtx_insn *.
901 * cfgbuild.c (control_flow_insn_p): Likewise.
902
903 2014-09-08 David Malcolm <dmalcolm@redhat.com>
904
905 * gcse.c (modify_mem_list): Strengthen this variable from
906 vec<rtx> * to vec<rtx_insn *> *.
907 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
908 vec<rtx_insn *>.
909 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
910 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
911 (record_last_mem_set_info): Strengthen param "insn" from rtx to
912 rtx_insn *.
913 (record_last_set_info): Likewise for local "last_set_insn".
914
915 2014-09-08 DJ Delorie <dj@redhat.com>
916
917 * doc/invoke.texi (MSP430 Options): Add -minrt.
918
919 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
920
921 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
922 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
923 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
924 handling SH_SPLAT.
925 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
926 of extracted lane.
927 (adjust_splat): New function.
928 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
929 (dump_swap_insn_table): Add case for SH_SPLAT.
930
931 2014-09-08 Richard Biener <rguenther@suse.de>
932
933 PR ipa/63196
934 * tree-inline.c (copy_loops): The source loop header should
935 always be non-NULL.
936 (tree_function_versioning): If loops need fixup after removing
937 unreachable blocks fix them.
938 * omp-low.c (simd_clone_adjust): Do not add incr block to
939 loop under construction.
940
941 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
942
943 * config/aarch64/aarch64-builtins.c
944 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
945
946 2014-09-08 Joseph Myers <joseph@codesourcery.com>
947
948 * config/i386/cygming.h (TF_SIZE): Remove.
949 * config/i386/darwin.h (TF_SIZE): Remove.
950 * config/i386/dragonfly.h (TF_SIZE): Remove.
951 * config/i386/freebsd.h (TF_SIZE): Remove.
952 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
953 * config/i386/openbsdelf.h (TF_SIZE): Remove.
954 * config/i386/sol2.h (TF_SIZE): Remove.
955 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
956 * config/ia64/linux.h (TF_SIZE): Remove.
957 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
958 * doc/tm.texi: Regenerate.
959 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
960
961 2014-09-08 Joseph Myers <joseph@codesourcery.com>
962
963 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
964 Remove.
965 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
966 Remove.
967 * doc/tm.texi: Regenerate.
968 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
969 Poison.
970 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
971 * config/cris/cris.h (__make_dp): Remove.
972
973 2014-09-08 Richard Biener <rguenther@suse.de>
974
975 PR bootstrap/63204
976 * cfgloop.c (mark_loop_for_removal): Track former header
977 unconditionally.
978 * cfgloop.h (struct loop): Add former_header member unconditionally.
979 * loop-init.c (fix_loop_structure): Enable bogus loop removal
980 diagnostic unconditionally.
981
982 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
983
984 PR target/63190
985 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
986 constraint for operand0 and remove write only modifier from operand3.
987
988 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
989
990 PR rtl-optimization/62208
991 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
992 rather than const0_rtx in eq/ne-xor simplifications.
993
994 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
995
996 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
997 (arc_output_mi_thunk): Likewise.
998
999 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
1000 arguments to silence bogus warning.
1001
1002 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
1003
1004 PR middle-end/63171
1005 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
1006
1007 2014-09-06 Tom de Vries <tom@codesourcery.com>
1008
1009 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
1010 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
1011 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1012
1013 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
1014
1015 PR target/63188
1016 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
1017 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
1018
1019 2014-09-05 Easwaran Raman <eraman@google.com>
1020
1021 PR rtl-optimization/62146
1022 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
1023 hoisted instruction unconditional.
1024
1025 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
1026
1027 PR target/63187
1028 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
1029 Do not allow any_mask_operand for operands[2].
1030 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
1031
1032 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1033
1034 * config/arc/arc.c (arc_print_operand): Use insn method of
1035 final_sequence for type-safety.
1036 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
1037 "insn" from rtx to rtx_insn *.
1038 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
1039 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
1040 Likewise for locals "branch", "label".
1041 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
1042 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
1043 (same_cmp_following_p): Likewise for locals "i2", "i3".
1044 * config/sh/sh_optimize_sett_clrt.cc
1045 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
1046 param "cbranch_insn".
1047 * function.c (convert_jumps_to_returns): Likewis for local "jump".
1048 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
1049 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
1050 const rtx_insn *.
1051 (condjump_p): Likewise.
1052 (condjump_in_parallel_p): Likewise.
1053 (pc_set): Likewise.
1054 (any_uncondjump_p): Likewise.
1055 (any_condjump_p): Likewise.
1056 (condjump_label): Likewise.
1057 (returnjump_p): Strengthen param "insn" from rtx to
1058 const rtx_insn *.
1059 (onlyjump_p): Strengthen param "insn" from const_rtx to
1060 const rtx_insn *.
1061 (jump_to_label_p): Likewise.
1062 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
1063 (invert_jump): Likewise.
1064 * reorg.c (simplejump_or_return_p): Add checked cast when calling
1065 simplejump_p.
1066 (get_jump_flags): Strengthen param "insn" from rtx to
1067 const rtx_insn *.
1068 (get_branch_condition): Likewise.
1069 (condition_dominates_p): Likewise.
1070 (make_return_insns): Move declaration of local "pat" earlier, to
1071 after we've handled NONJUMP_INSN_P and non-sequences, using its
1072 methods to simplify the code and for type-safety.
1073 * rtl.h (find_constant_src): Strengthen param from const_rtx to
1074 const rtx_insn *.
1075 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
1076 (condjump_p): Strengthen param from const_rtx to
1077 const rtx_insn *.
1078 (any_condjump_p): Likewise.
1079 (any_uncondjump_p): Likewise.
1080 (pc_set): Likewise.
1081 (condjump_label): Likewise.
1082 (simplejump_p): Likewise.
1083 (returnjump_p): Likewise.
1084 (onlyjump_p): Likewise.
1085 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
1086 (invert_jump): Likewise.
1087 (condjump_in_parallel_p): Strengthen param from const_rtx to
1088 const rtx_insn *.
1089 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
1090 to const rtx_insn *.
1091 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
1092 to const rtx_insn *.
1093 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
1094
1095 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1096
1097 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
1098 above the conditional, and convert the check on GET_CODE to a
1099 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
1100 the conditional. Simplify the conditional by using methods of
1101 "trial_seq".
1102
1103 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1104
1105 * haifa-sched.c (check_clobbered_conditions): Strengthen local
1106 "link" from rtx to rtx_insn_list *, and use its methods for
1107 clarity and type-safety.
1108 (toggle_cancelled_flags): Likewise.
1109 (restore_last_backtrack_point): Likewise.
1110 (queue_to_ready): Use insn method of "link" in one place.
1111 (schedule_block): Strengthen local "link" from rtx to
1112 rtx_insn_list *, and use its methods for clarity and type-safety.
1113
1114 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1115
1116 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
1117 param "insn" from const_rtx to const rtx_insn *.
1118 (sched_get_reverse_condition_uncached): Likewise.
1119 (sched_get_condition_with_rev): Likewise.
1120 (sched_has_condition_p): Likewise.
1121 (sched_insns_conditions_mutex_p): Likewise for both params.
1122 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
1123 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
1124 (setup_insn_reg_uses): Move local "list" to be more tightly
1125 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
1126 its methods for clarity and type-safety.
1127 (sched_analyze_1): Strengthen local "pending" from rtx to
1128 rtx_insn_list *, and local "pending_mem" from rtx to
1129 rtx_expr_list *. Use methods of each for clarity and type-safety.
1130 (sched_analyze_2): Likewise.
1131 (sched_analyze_insn): Likewise.
1132
1133 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
1134 param from const_rtx to const rtx_insn *.
1135 (sched_insns_conditions_mutex_p): Likewise for both params.
1136 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
1137 param.
1138
1139 * system.h (CONST_CAST_RTX_INSN): New macro.
1140
1141 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1142
1143 * recog.c (peep2_attempt): Strengthen return type from rtx to
1144 rtx_insn *.
1145 (peep2_update_life): Likewise for params "last", "prev", removing
1146 a checked cast made redundant by this.
1147 (peephole2_optimize): Likewise for local "last".
1148
1149 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1150
1151 * basic-block.h (set_block_for_insn): Eliminate this macro in
1152 favor of...
1153 * rtl.h (set_block_for_insn): New inline function, imposing the
1154 requirement that the "insn" param is an rtx_insn *.
1155
1156 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1157
1158 * caller-save.c (setup_save_areas): Strengthen local "insn" from
1159 rtx to rtx_insn *.
1160 * final.c (get_call_reg_set_usage): Likewise for first param,
1161 eliminating a checked cast.
1162 * regs.h (get_call_reg_set_usage): Likewise for first param.
1163 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
1164 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
1165 cast, replacing references to "x" with "call_insn" where
1166 appropriate.
1167 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
1168 rtx_insn *, adding a checked cast.
1169
1170 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1171
1172 * output.h (final_scan_insn): Strengthen first param from rtx to
1173 rtx_insn *.
1174
1175 * final.c (final_scan_insn): Likewise, renaming it back from
1176 "uncast_insn" to "insn", eliminating the checked cast.
1177
1178 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
1179 "vec" with an rtx_sequence * "seq", taking a copy of
1180 "final_sequence", and using methods of "seq" for clarity, and for
1181 type-safety in the calls to final_scan_insn.
1182 * config/mips/mips.c (mips_output_conditional_branch): Use methods
1183 of "final_sequence" for clarity, and for type-safety in the call to
1184 final_scan_insn.
1185 * config/sh/sh.c (print_slot): Strengthen param from rtx to
1186 rtx_sequence * and rename from "insn" to "seq".
1187
1188 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1189
1190 * jump.c (delete_related_insns): Introduce a new local "table" by
1191 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
1192 get_labels method of "table" to simplify access to the labels in
1193 the jump table.
1194
1195 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1196
1197 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
1198 f_minmaxs, f_minmaxd types.
1199
1200 2014-09-05 Richard Biener <rguenther@suse.de>
1201
1202 * cfgloop.c (mark_loop_for_removal): Record former header
1203 when ENABLE_CHECKING.
1204 * cfgloop.h (strut loop): Add former_header member when
1205 ENABLE_CHECKING.
1206 * loop-init.c (fix_loop_structure): Sanity check loops
1207 marked for removal if they re-appeared.
1208
1209 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1210
1211 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
1212 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
1213
1214 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
1215 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
1216 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
1217 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
1218 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
1219 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
1220 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
1221 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
1222 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
1223 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
1224 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
1225 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
1226 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
1227 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
1228 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
1229 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
1230 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
1231 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
1232 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
1233 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
1234 with int{32,16,8}_t.
1235
1236 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1237
1238 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
1239 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
1240 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
1241 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
1242 Remove temporary __asm__ and reimplement.
1243
1244 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1245
1246 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
1247 handling cmge, cmgt, cmeq, cmtst.
1248
1249 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
1250 cmlt, cmgeu, cmgtu, cmtst): Remove.
1251
1252 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
1253 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
1254 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
1255 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
1256
1257 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1258
1259 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
1260 TYPES_TST): Define.
1261 (aarch64_fold_builtin): Update pattern for cmtst.
1262
1263 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
1264 Declare.
1265
1266 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
1267
1268 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
1269 Switch operands, separate out more cases, refactor.
1270
1271 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
1272
1273 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
1274 argument; rename old version to...
1275 (aarch64_const_vec_all_same_in_range_p): ...this.
1276 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
1277
1278 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
1279
1280 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1281
1282 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
1283 Remove qualifier_const_pointer, update comment.
1284
1285 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1286
1287 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
1288
1289 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1290
1291 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
1292 varargs with pointer parameter.
1293 (aarch64_simd_expand_builtin): pass pointer into previous.
1294
1295 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1296
1297 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
1298 alus_ext.
1299
1300 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1301
1302 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
1303 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
1304 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
1305 Replace temporary asm with call to builtin.
1306 (vrbit_p8, vrbitq_p8): New functions.
1307
1308 2014-09-05 Richard Biener <rguenther@suse.de>
1309
1310 * cfgloop.c (mark_loop_for_removal): New function.
1311 * cfgloop.h (mark_loop_for_removal): Declare.
1312 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
1313 (merge_blocks): Likewise.
1314 (duplicate_block): Likewise.
1315 * except.c (sjlj_emit_dispatch_table): Likewise.
1316 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
1317 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
1318 (thread_through_loop_header): Likewise.
1319
1320 2014-09-05 Richard Biener <rguenther@suse.de>
1321
1322 PR middle-end/63148
1323 * fold-const.c (try_move_mult_to_index): Remove.
1324 (fold_binary_loc): Do not call it.
1325 * tree-data-ref.c (dr_analyze_indices): Strip conversions
1326 from the base object again.
1327
1328 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
1329
1330 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
1331 DImode.
1332
1333 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1334
1335 PR target/55701
1336 * config/arm/arm.md (setmem): New pattern.
1337 * config/arm/arm-protos.h (struct tune_params): New fields.
1338 (arm_gen_setmem): New prototype.
1339 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
1340 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
1341 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
1342 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
1343 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
1344 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
1345 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
1346 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
1347 (arm_const_inline_cost): New function.
1348 (arm_block_set_max_insns): New function.
1349 (arm_block_set_non_vect_profit_p): New function.
1350 (arm_block_set_vect_profit_p): New function.
1351 (arm_block_set_unaligned_vect): New function.
1352 (arm_block_set_aligned_vect): New function.
1353 (arm_block_set_unaligned_non_vect): New function.
1354 (arm_block_set_aligned_non_vect): New function.
1355 (arm_block_set_vect, arm_gen_setmem): New functions.
1356
1357 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1358
1359 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
1360
1361 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1362
1363 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
1364
1365 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1366
1367 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
1368 an rtx.
1369 * valtrack.h: Adjust.
1370
1371 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1372
1373 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
1374 an rtx.
1375 (emit_jump_insn_before_noloc): Likewise.
1376 (emit_call_insn_before_noloc): Likewise.
1377 (emit_label_before): Likewise.
1378 (emit_label_after): Likewise.
1379 (emit_insn_before_setloc): Likewise.
1380 (emit_jump_insn_before_setloc): Likewise.
1381 (emit_call_insn_before_setloc): Likewise.
1382 (emit_call_insn_before): Likewise.
1383 * rtl.h: Adjust.
1384
1385 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1386
1387 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
1388 rtx_insn *, eliminating a checked cast.
1389
1390 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1391
1392 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
1393 const_rtx to const rtx_insn *.
1394 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
1395 cast.
1396
1397 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1398
1399 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
1400 fixup_args_size_notes.
1401 * expr.c (fixup_args_size_notes): Strengthen first two params from
1402 rtx to rtx_insn *, eliminating a checked cast.
1403 * rtl.h (fixup_args_size_notes): Strengthen first two params from
1404 rtx to rtx_insn *.
1405
1406 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1407
1408 * haifa-sched.c (get_ready_element): Strengthen return type from
1409 rtx to rtx_insn *.
1410 * sched-int.h (get_ready_element): Likewise.
1411
1412 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
1413
1414 PR target/63165
1415 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
1416 indexed_or_indirect_operand instead of memory_operand.
1417 (floatsi<mode>2_lfiwzx_mem): Ditto.
1418
1419 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1420
1421 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
1422 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
1423 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
1424
1425 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1426
1427 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
1428 rtx.
1429 (get_last_nonnote_insn): Likewise.
1430 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
1431 * resource.c (find_basic_block): Likewise.
1432 * rtl.h: Adjust.
1433 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
1434 const_rtx.
1435
1436 2014-09-04 David Malcolm <dmalcolm@redhat.com>
1437
1438 * genattr.c (main): Within the prototype of insn_latency written
1439 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
1440 * genautomata.c (output_internal_maximal_insn_latency_func):
1441 Within the implementation of insn_latency written out to
1442 insn-automata.c, strengthen both params from rtx to rtx_insn *,
1443 eliminating a pair of checked casts.
1444
1445 2014-09-04 David Malcolm <dmalcolm@redhat.com>
1446
1447 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
1448 rtx_insn *.
1449
1450 * rtl.h (eh_returnjump_p): Likewise.
1451
1452 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
1453
1454 * Makefile.in (TAGS): Handle constructs in timevar.def.
1455
1456 2014-09-04 Guozhi Wei <carrot@google.com>
1457
1458 PR target/62040
1459 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
1460 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
1461 it into two patterns.
1462 (move_lo_quad_internal_be_<mode>): Likewise.
1463
1464 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1465
1466 * doc/options.texi: Document that Var and Init are required if CPP
1467 is given.
1468 * optc-gen.awk: Require Var and Init if CPP is given.
1469 * common.opt (Wpedantic): Use Init.
1470
1471 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1472
1473 * config/rs6000/rs6000.c (special_handling_values): Add
1474 SH_EXTRACT.
1475 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
1476 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
1477 as swappable with special handling SH_EXTRACT. Remove
1478 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
1479 optimization.
1480 (adjust_extract): New function.
1481 (handle_special_swappables): Add default to case statement; add
1482 case for SH_EXTRACT that calls adjust_extract.
1483 (dump_swap_insn_table): Handle SH_EXTRACT.
1484
1485 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1486
1487 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
1488 selection of 0th memory doubleword, regardless of endianness.
1489
1490 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1491
1492 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
1493
1494 2014-09-04 Alan Modra <amodra@gmail.com>
1495
1496 PR debug/60655
1497 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
1498 can't be output.
1499
1500 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
1501
1502 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
1503 * targhooks.c (default_dwarf_frame_reg_mode): New function.
1504 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
1505 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
1506 * doc/tm.texi: Regenerate.
1507 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
1508 selection logic to default_dwarf_frame_reg_mode.
1509
1510 2014-09-03 Marek Polacek <polacek@redhat.com>
1511
1512 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
1513 by -Wall.
1514
1515 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
1516
1517 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
1518 the automodified register.
1519
1520 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
1521
1522 * output.h (get_some_local_dynamic_name): Declare.
1523 * final.c (some_local_dynamic_name): New variable.
1524 (get_some_local_dynamic_name): New function.
1525 (final_end_function): Clear some_local_dynamic_name.
1526 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
1527 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1528 (print_operand): Report an error if '%&' is used inappropriately.
1529 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
1530 (get_some_local_dynamic_name_1): Delete.
1531 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
1532 (rs6000_get_some_local_dynamic_name): Delete.
1533 (rs6000_get_some_local_dynamic_name_1): Delete.
1534 (print_operand): Report an error if '%&' is used inappropriately.
1535 * config/s390/s390.c (machine_function): Remove some_ld_name.
1536 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1537 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
1538 * config/sparc/sparc.c: Include rtl-iter.h.
1539 (machine_function): Remove some_ld_name.
1540 (sparc_print_operand): Report an error if '%&' is used inappropriately.
1541 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1542
1543 2014-09-03 Richard Henderson <rth@redhat.com>
1544
1545 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
1546 (aarch64_popwb_pair_reg): Remove.
1547 (aarch64_set_frame_expr): Remove.
1548 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
1549 the restore ops performed by the insns generated.
1550 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
1551 insn. Perform the calls_eh_return addition later; do not attempt to
1552 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
1553 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
1554 special markup at all. Load cfun->machine->frame.hard_fp_offset
1555 into a local variable.
1556 (aarch64_frame_pointer_required): Don't check calls_alloca.
1557
1558 2014-09-03 Richard Biener <rguenther@suse.de>
1559
1560 * opts.c (default_options_optimization): Adjust
1561 max-combine-insns to 2 for -Og.
1562
1563 2014-09-03 Martin Jambor <mjambor@suse.cz>
1564
1565 PR ipa/62015
1566 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
1567 pass-trough jump functions correctly.
1568
1569 2014-09-03 Martin Jambor <mjambor@suse.cz>
1570
1571 PR ipa/61986
1572 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
1573 created replacements in ascending order of offsets.
1574 (known_aggs_to_agg_replacement_list): Likewise.
1575
1576 2014-09-03 Martin Liska <mliska@suse.cz>
1577
1578 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
1579 is set to set uninitialized value for vnresult.
1580
1581 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1582
1583 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
1584 for TARGET_MUST_PASS_IN_STACK.
1585
1586 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1587
1588 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
1589 for TARGET_ARG_PARTIAL_BYTES.
1590
1591 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1592
1593 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
1594 instructions for varargs implementation.
1595 (nds32_expand_epilogue): Emit stack adjustment instructions for
1596 varargs implementation.
1597
1598 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1599
1600 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
1601 optimization detection.
1602
1603 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1604
1605 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
1606 arguments.
1607 (nds32_function_arg_advance): Deal with nameless arguments.
1608 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
1609 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
1610 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
1611
1612 2014-09-03 Richard Biener <rguenther@suse.de>
1613
1614 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
1615 (struct bb_bitmap_sets): Remove deferred member.
1616 (BB_DEFERRED): Remove.
1617 (defer_or_phi_translate_block): Remove.
1618 (compute_antic_aux): Remove deferring of blocks, assert
1619 proper iteration order.
1620 (compute_antic): Do not set BB_DEFERRED.
1621 (eliminate): Allocate el_avail of proper size initially.
1622
1623 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1624
1625 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
1626 according to the value of crtl->args.pretend_args_size.
1627
1628 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1629
1630 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
1631 varargs information.
1632
1633 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1634
1635 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
1636 implementation for TARGET_SETUP_INCOMING_VARARGS.
1637 (nds32_strict_argument_naming): Refine comment.
1638 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
1639 Define for future implementation.
1640
1641 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
1642
1643 * config/i386/adxintrin.h (_subborrow_u32): New.
1644 (_addcarry_u32): Ditto.
1645 (_subborrow_u64): Ditto.
1646 (_addcarry_u64): Ditto.
1647 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
1648 IX86_BUILTIN_SBB64.
1649 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
1650 __builtin_ia32_sbb_u64
1651
1652 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1653
1654 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
1655 GPR-specific stuff.
1656 (nds32_function_arg_advance): Likewise.
1657 (nds32_init_cumulative_args): Likewise.
1658 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
1659 (NDS32_FIRST_GPR_REGNUM): Define.
1660 (NDS32_LAST_GPR_REGNUM): Define.
1661 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
1662 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
1663 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
1664 (machine_function): Use GRP-specific stuff.
1665
1666 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1667
1668 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
1669 (nds32_expand_epilogue): Likewise.
1670 (nds32_expand_prologue_v3push): Likewise.
1671 (nds32_expand_epilogue_v3pop): Likewise.
1672
1673 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1674
1675 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
1676 v3push/v3pop for variadic function.
1677 * config/nds32/nds32.md (prologue, epilogue): Likewise.
1678
1679 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1680
1681 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
1682 Check rtx for varargs implementation.
1683 (nds32_output_stack_pop): Likewise.
1684 * config/nds32/nds32-protos.h: Have a rtx argument for
1685 nds32_output_stack_push and nds32_output_stack_pop.
1686 * config/nds32/nds32.md: Likewise.
1687
1688 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1689
1690 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
1691 to check if FUNC is an interrupt service routine.
1692 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
1693
1694 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1695
1696 * config/nds32/nds32.h (machine_function): Add some fields for variadic
1697 arguments implementation.
1698
1699 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1700
1701 * config/nds32/nds32-predicates.c
1702 (nds32_valid_stack_push_pop): Rename to ...
1703 (nds32_valid_stack_push_pop_p): ... this.
1704 * config/nds32/nds32-protos.h: Likewise.
1705 * config/nds32/predicates.md: Likewise.
1706
1707 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1708
1709 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
1710 (nds32_emit_stack_v3push): ... this.
1711 (nds32_gen_stack_v3pop): Rename to ...
1712 (nds32_emit_stack_v3pop): ... this and consider CFA restore
1713 information.
1714
1715 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1716
1717 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
1718 (nds32_emit_stack_push_multiple): ... this.
1719 (nds32_gen_stack_pop_multiple): Rename to ...
1720 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
1721 information.
1722
1723 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1724
1725 PR target/61078
1726 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
1727 and add a second splitter to handle the remaining cases.
1728
1729 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1730
1731 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
1732
1733 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
1734
1735 * cfgexpand.c (label_rtx_for_bb): Change type to
1736 hash_map<basic_block, rtx_code_label *> *.
1737 (expand_gimple_basic_block): Adjust.
1738 (pass_expand::execute): Likewise.
1739
1740 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
1741
1742 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
1743 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
1744 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
1745 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
1746 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
1747 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
1748 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
1749 of rtx.
1750
1751 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
1752
1753 * alloc-pool.c: Include coretypes.h.
1754 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
1755 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
1756 hash_set instead of htab.
1757 * ggc-page.c (in_gc): New variable.
1758 (ggc_free): Do nothing if a collection is taking place.
1759 (ggc_collect): Set in_gc appropriately.
1760 * ggc.h (gt_ggc_mx(const char *)): New function.
1761 (gt_pch_nx(const char *)): Likewise.
1762 (gt_ggc_mx(int)): Likewise.
1763 (gt_pch_nx(int)): Likewise.
1764 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
1765 (hash_map::hash_entry::pch_nx): Likewise.
1766 (hash_map::hash_entry::pch_nx_helper): Likewise.
1767 (hash_map::hash_map): Adjust.
1768 (hash_map::create_ggc): New function.
1769 (gt_ggc_mx): Likewise.
1770 (gt_pch_nx): Likewise.
1771 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
1772 (default_hashset_traits::pch_nx): Likewise.
1773 (hash_set::hash_entry::ggc_mx): Likewise.
1774 (hash_set::hash_entry::pch_nx): Likewise.
1775 (hash_set::hash_entry::pch_nx_helper): Likewise.
1776 (hash_set::hash_set): Adjust.
1777 (hash_set::create_ggc): New function.
1778 (hash_set::elements): Likewise.
1779 (gt_ggc_mx): Likewise.
1780 (gt_pch_nx): Likewise.
1781 * hash-table.h (hash_table::hash_table): Adjust.
1782 (hash_table::m_ggc): New member.
1783 (hash_table::~hash_table): Adjust.
1784 (hash_table::expand): Likewise.
1785 (hash_table::empty): Likewise.
1786 (gt_ggc_mx): New function.
1787 (hashtab_entry_note_pointers): Likewise.
1788 (gt_pch_nx): Likewise.
1789
1790 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1791
1792 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
1793 built-in definition.
1794 (XVCVUXDDP_SCALE): Likewise.
1795 (XVCVDPSXDS_SCALE): Likewise.
1796 (XVCVDPUXDS_SCALE): Likewise.
1797 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1798 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
1799 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
1800 VSX_BUILTIN_XVCVDPUXDS_SCALE.
1801 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
1802 prototype.
1803 * config/rs6000/rs6000.c (real.h): New include.
1804 (rs6000_scale_v2df): New function.
1805 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
1806 (UNSPEC_VSX_XVCVUXDDP): Likewise.
1807 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
1808 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
1809 (vsx_xvcvsxddp_scale): New define_expand.
1810 (vsx_xvcvsxddp): New define_insn.
1811 (vsx_xvcvuxddp_scale): New define_expand.
1812 (vsx_xvcvuxddp): New define_insn.
1813 (vsx_xvcvdpsxds_scale): New define_expand.
1814 (vsx_xvcvdpsxds): New define_insn.
1815 (vsx_xvcvdpuxds_scale): New define_expand.
1816 (vsx_xvcvdpuxds): New define_insn.
1817 * doc/extend.texi (vec_ctf): Add new prototypes.
1818 (vec_cts): Likewise.
1819 (vec_ctu): Likewise.
1820 (vec_splat): Likewise.
1821 (vec_div): Likewise.
1822 (vec_mul): Likewise.
1823
1824 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1825
1826 PR target/62275
1827 * config/arm/neon.md
1828 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
1829 <v_cmp_result>): New pattern.
1830 * config/arm/iterators.md (NEON_VCVT): New int iterator.
1831 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
1832 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
1833 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
1834 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
1835 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
1836
1837 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1838
1839 PR target/62275
1840 * config/arm/iterators.md (FIXUORS): New code iterator.
1841 (VCVT): New int iterator.
1842 (su_optab): New code attribute.
1843 (su): Likewise.
1844 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
1845
1846 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1847
1848 * config/aarch64/predicates.md (aarch64_comparison_operation):
1849 New special predicate.
1850 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
1851 aarch64_comparison_operation instead of matching an operator.
1852 Update operand numbers.
1853 (csinc3<mode>_insn): Likewise.
1854 (*csinv3<mode>_insn): Likewise.
1855 (*csneg3<mode>_insn): Likewise.
1856 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
1857 * config/aarch64/aarch64.c (aarch64_get_condition_code):
1858 Return -1 instead of aborting on invalid condition codes.
1859 (aarch64_print_operand): Update aarch64_get_condition_code callsites
1860 to assert that the returned condition code is valid.
1861 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
1862
1863 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
1864
1865 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
1866 tree.def, and gimple.def
1867
1868 2014-09-02 Jakub Jelinek <jakub@redhat.com>
1869 Balaji V. Iyer <balaji.v.iyer@intel.com>
1870 Igor Zamyatin <igor.zamyatin@intel.com>
1871
1872 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
1873 (__cilkrts_cilk_for_64): Likewise.
1874 * cilk-common.c (declare_cilk_for_builtin): New function.
1875 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
1876 __cilkrts_cilk_for_64 bultins.
1877 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
1878 CILK_TI_F_LOOP_64.
1879 (cilk_for_32_fndecl): New define.
1880 (cilk_for_64_fndecl): Likewise.
1881 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
1882 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
1883 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
1884 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
1885 GF_OMP_FOR_COMBINED_INTO.
1886 * gimplify.c (gimplify_scan_omp_clauses): Added
1887 OMP_CLAUSE__CILK_FOR_COUNT_ case.
1888 (gimplify_adjust_omp_clauses): Ditto.
1889 (gimplify_omp_for): Added CILK_FOR case.
1890 (gimplify_expr): Ditto.
1891 * omp-low.c: Include cilk.h.
1892 (extract_omp_for_data): Set appropriate kind for
1893 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
1894 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
1895 (create_omp_child_function_name): Added second argument to handle
1896 cilk_for case.
1897 (cilk_for_check_loop_diff_type): New function.
1898 (expand_cilk_for_call): Likewise.
1899 (expand_cilk_for): Likewise.
1900 (create_omp_child_function): Set cilk_for_count; handle the cases when
1901 it is true; call create_omp_child_function_name with second argument.
1902 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
1903 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
1904 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
1905 * tree-nested.c (convert_nonlocal_omp_clauses): Added
1906 OMP_CLAUSE__CILK_FOR_COUNT_ case.
1907 (convert_local_omp_clauses): Ditto.
1908 * tree-pretty-print.c (dump_omp_clause): Added
1909 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
1910 (dump_generic_node): Added CILK_FOR case.
1911 * tree.c (omp_clause_num_ops): New element
1912 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
1913 (omp_clause_code_name): New element _Cilk_for_count_.
1914 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
1915 * tree.def: Add tree code for CILK_FOR.
1916
1917 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1918
1919 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
1920 (ppc403-compare): Add "exts with dot" case.
1921 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
1922 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
1923 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
1924 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
1925 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
1926 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
1927 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
1928 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
1929 cell-cmp-microcoded): Similarly.
1930 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
1931 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
1932 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
1933 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
1934 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
1935 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
1936 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
1937 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
1938 (power6-compare): Add "exts with dot" case.
1939 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
1940 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
1941 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
1942
1943 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
1944 if avoiding Cell microcode.
1945 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
1946 (is_cracked_insn): Ditto.
1947 (insn_must_be_first_in_group): Ditto.
1948 * config/rs6000/rs6000.md (dot): Adjust comment.
1949 (cell_micro): Handle exts+dot.
1950 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
1951 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
1952 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
1953 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
1954 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
1955 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
1956 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
1957
1958 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1959
1960 * config/rs6000/rs6000.md (QHSI): Delete.
1961 (EXTQI, EXTHI, EXTSI): New mode iterators.
1962 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
1963 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
1964 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
1965 9 anonymous instructions, and 8 splitters): Delete.
1966 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
1967 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
1968 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
1969 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
1970 *zero_extendsi<mode>2_dot2): New.
1971
1972 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1973
1974 * config/rs6000/rs6000.md (any_extend): New code iterator.
1975 (u, su): New code attributes.
1976 (dmode, DMODE): New mode attributes.
1977 (<su>mul<mode>3_highpart): New.
1978 (*<su>mul<mode>3_highpart): New.
1979 (<su>mulsi3_highpart_le): New.
1980 (<su>muldi3_highpart_le): New.
1981 (<su>mulsi3_highpart_64): New.
1982 (<u>mul<mode><dmode>3): New.
1983 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
1984 splitters): Delete.
1985 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
1986 splitters): Delete.
1987
1988 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1989
1990 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
1991 *mulsi3_internal2, and two splitters): Delete.
1992 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
1993 Delete.
1994 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
1995
1996 2014-09-02 Richard Biener <rguenther@suse.de>
1997
1998 PR tree-optimization/62695
1999 * tree-ssa-structalias.c (find_func_clobbers): Add missing
2000 vector truncate.
2001
2002 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
2003
2004 PR target/62312
2005 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
2006
2007 2014-09-01 Andi Kleen <ak@linux.intel.com>
2008
2009 * file-find.c (add_prefix_begin): Add.
2010 (do_add_prefix): Rename from add_prefix with first argument.
2011 (add_prefix): Add new wrapper.
2012 * file-find.h (add_prefix_begin): Add.
2013 * gcc-ar.c (main): Support -B option.
2014
2015 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
2016
2017 * genemit.c: Include dumpfile.h.
2018 (gen_split): Print name of splitter function to dump file.
2019
2020 2014-09-01 Richard Biener <rguenther@suse.de>
2021
2022 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
2023 Use stack auto_vecs for constraint expressions.
2024 (find_func_aliases_for_call): Likewise.
2025 (find_func_aliases): Likewise.
2026 (find_func_clobbers): Likewise.
2027
2028 2014-09-01 Richard Biener <rguenther@suse.de>
2029
2030 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
2031 operands vector in most cases. Remove redundant code.
2032
2033 2014-09-01 Olivier Hainque <hainque@adacore.com>
2034
2035 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
2036 $WIND_BASE instead of designating a harcoded arbitrary home dir.
2037 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
2038
2039 2014-09-01 Richard Biener <rguenther@suse.de>
2040
2041 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
2042 copy_reference_ops_from_call, vn_nary_op_compute_hash,
2043 vn_reference_compute_hash, vn_reference_insert): Remove.
2044 (vn_reference_lookup_call): New function.
2045 * tree-ssa-sccvn.c (vn_reference_compute_hash,
2046 copy_reference_ops_from_ref, copy_reference_ops_from_call,
2047 vn_reference_insert, vn_nary_op_compute_hash): Make static.
2048 (create_reference_ops_from_call): Remove.
2049 (vn_reference_lookup_3): Properly update shared_lookup_references.
2050 (vn_reference_lookup_pieces): Assert that we updated
2051 shared_lookup_references properly.
2052 (vn_reference_lookup): Likewise.
2053 (vn_reference_lookup_call): New function.
2054 (visit_reference_op_call): Use it. Avoid re-building the
2055 reference ops.
2056 (visit_reference_op_load): Remove redundant lookup.
2057 (visit_reference_op_store): Perform special tail-merging work
2058 only when possibly doing tail-merging.
2059 (visit_use): Likewise.
2060 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
2061
2062 2014-09-01 Jakub Jelinek <jakub@redhat.com>
2063
2064 PR target/62025
2065 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
2066 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
2067 (find_inc): Revert 2014-08-13 change.
2068
2069 2014-09-01 Marek Polacek <polacek@redhat.com>
2070
2071 PR middle-end/61903
2072 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
2073 Change the type of V to unsigned HOST_WIDE_INT.
2074
2075 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
2076
2077 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
2078 the size of byte markers.
2079 (do_shift_rotate): Fix confusion between host, target and marker byte
2080 size.
2081 (verify_symbolic_number_p): Likewise.
2082 (find_bswap_or_nop_1): Likewise.
2083 (find_bswap_or_nop): Likewise.
2084
2085 2014-09-01 Olivier Hainque <hainque@adacore.com>
2086
2087 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
2088 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
2089
2090 2014-09-01 Jakub Jelinek <jakub@redhat.com>
2091
2092 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
2093 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
2094 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
2095
2096 2014-09-01 Yury Gribov <y.gribov@samsung.com>
2097
2098 PR sanitizer/61897
2099 PR sanitizer/62140
2100 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
2101 (build_check_stmt): Likewise.
2102 (instrument_strlen_call): Likewise.
2103 (asan_expand_check_ifn): Likewise and fix types.
2104 (maybe_cast_to_ptrmode): New function.
2105
2106 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2107
2108 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
2109
2110 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
2111
2112 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
2113
2114 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
2115
2116 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
2117 prefix to function labels when generating fast indirect calls.
2118
2119 2014-08-30 David Malcolm <dmalcolm@redhat.com>
2120
2121 PR bootstrap/62304
2122
2123 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
2124 param back from rtx_insn * to rtx. Rename param from "label" to
2125 "label_or_return", reintroducing "label" as an rtx_insn * after
2126 we've ensured it's not a RETURN.
2127 (first_active_target_insn): Likewise for return type and param;
2128 add a checked cast to rtx_insn * once we've ensured "insn" is not
2129 a RETURN.
2130 (steal_delay_list_from_target): Convert param "pnew_thread" back
2131 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
2132 with JUMP_LABEL.
2133 (own_thread_p): Convert param "thread" back from an rtx_insn * to
2134 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
2135 cast once we've established we're not dealing with a RETURN,
2136 renaming subsequent uses of "thread" to "thread_insn".
2137 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
2138 to JUMP_LABEL.
2139 (follow_jumps): Convert return type and param "label" from
2140 rtx_insn * back to rtx. Move initialization of "value" to after
2141 the handling for ANY_RETURN_P, adding a checked cast there to
2142 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
2143 rename to "this_label_or_return", reintroducing "this_label" as
2144 an rtx_insn * once we've handled the case where it could be an
2145 ANY_RETURN_P.
2146 (fill_slots_from_thread): Rename param "thread" to
2147 "thread_or_return", converting from an rtx_insn * back to an rtx.
2148 Reintroduce name "thread" as an rtx_insn * local with a checked
2149 cast once we've handled the case of it being an ANY_RETURN_P.
2150 Convert local "new_thread" from an rtx_insn * back to an rtx.
2151 Add a checked cast when assigning to "trial" from "new_thread".
2152 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
2153 checked cast to rtx_insn * from "new_thread" when invoking
2154 get_label_before.
2155 (fill_eager_delay_slots): Convert locals "target_label",
2156 "insn_at_target" from rtx_insn * back to rtx.
2157 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
2158 (relax_delay_slots): Convert locals "trial", "target_label" from
2159 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
2160 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
2161 invoking update_block.
2162 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
2163 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
2164
2165 * resource.h (mark_target_live_regs): Undo erroneous conversion
2166 of second param of r214693, converting it back from rtx_insn * to
2167 rtx, since it could be a RETURN.
2168
2169 * resource.c (find_dead_or_set_registers): Similarly, convert
2170 param "jump_target" back from an rtx_insn ** to an rtx *, as we
2171 could be writing back a RETURN. Rename local rtx_insn * "next" to
2172 "next_insn", and introduce "lab_or_return" as a local rtx,
2173 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
2174 (mark_target_live_regs): Undo erroneous conversion
2175 of second param of r214693, converting it back from rtx_insn * to
2176 rtx, since it could be a RETURN. Rename it from "target" to
2177 "target_maybe_return", reintroducing the name "target" as a local
2178 rtx_insn * with a checked cast, after we've handled the case of
2179 ANY_RETURN_P.
2180
2181 2014-08-29 DJ Delorie <dj@redhat.com>
2182
2183 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
2184 pointer size up to a power of two.
2185 * defaults.h (DWARF2_ADDR_SIZE): Round up.
2186 (POINTER_SIZE_UNITS): New, rounded up value.
2187 * dwarf2asm.c (size_of_encoded_value): Use it.
2188 (dw2_output_indirect_constant_1): Likewise.
2189 * expmed.c (init_expmed_one_conv): We now know the sizes of
2190 partial int modes.
2191 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
2192 * optabs.c (expand_float): Use precision, not size.
2193 (expand_fix): Likewise.
2194 * simplify-rtx (simplify_unary_operation_1): Likewise.
2195 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2196 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
2197 (default_assemble_integer) Likewise.
2198 (dump_tm_clone_pairs): Likewise.
2199 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
2200 * var-tracking.c (adjust_mems): Allow partial-int modes also.
2201 (prepare_call_arguments): Likewise.
2202 * stor-layout.c (finalize_type_size): Preserve precision.
2203 (layout_type): Use precision, not size.
2204
2205 * expr.c (convert_move): If the target has an explicit converter,
2206 use it.
2207
2208 2014-08-29 David Malcolm <dmalcolm@redhat.com>
2209
2210 * gdbinit.in: Skip various inline functions in rtl.h when
2211 stepping.
2212
2213 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
2214
2215 PR bootstrap/62301
2216 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
2217
2218 2014-08-29 Richard Biener <rguenther@suse.de>
2219
2220 PR tree-optimization/62291
2221 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
2222 exactly the vector size needed and use quick_push.
2223 (phi_translate_1): Adjust comment.
2224 (valid_in_sets): Remove block argument and remove pointless
2225 checking of NAMEs.
2226 (dependent_clean): Adjust for removal of block argument.
2227 (clean): Likewise.
2228 (compute_antic_aux): Likewise.
2229 (compute_partial_antic_aux): Likewise.
2230
2231 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
2232 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2233 Anna Tikhonova <anna.tikhonova@intel.com>
2234 Ilya Tocar <ilya.tocar@intel.com>
2235 Andrey Turetskiy <andrey.turetskiy@intel.com>
2236 Ilya Verbin <ilya.verbin@intel.com>
2237 Kirill Yukhin <kirill.yukhin@intel.com>
2238 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2239
2240 * config/i386/sse.md
2241 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
2242 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
2243 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
2244 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
2245
2246 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
2247 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2248 Anna Tikhonova <anna.tikhonova@intel.com>
2249 Ilya Tocar <ilya.tocar@intel.com>
2250 Andrey Turetskiy <andrey.turetskiy@intel.com>
2251 Ilya Verbin <ilya.verbin@intel.com>
2252 Kirill Yukhin <kirill.yukhin@intel.com>
2253 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2254
2255 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
2256 * config/i386/sse.md
2257 (define_mode_iterator VI4_128_8_256): New.
2258 (define_mode_iterator VI2_128_4_256): Ditto.
2259 (define_mode_iterator PMOV_DST_MODE): Rename into
2260 (define_mode_iterator PMOV_DST_MODE_1): this.
2261 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
2262 Use PMOV_DST_MODE_1 mode iterator.
2263 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
2264 Ditto.
2265 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
2266 Ditto.
2267 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
2268 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
2269 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
2270 (define_mode_iterator PMOV_DST_MODE_2): New.
2271 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
2272 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
2273 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
2274 Ditto.
2275 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
2276 (define_mode_attr pmov_dst_3): Ditto.
2277 (define_mode_attr pmov_dst_zeroed_3): Ditto.
2278 (define_mode_attr pmov_suff_3): Ditto.
2279 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
2280 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
2281 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
2282 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
2283 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
2284 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
2285 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
2286 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
2287 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
2288 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
2289 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
2290 (define_mode_attr pmov_dst_4): Ditto.
2291 (define_mode_attr pmov_dst_zeroed_4): Ditto.
2292 (define_mode_attr pmov_suff_4): Ditto.
2293 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
2294 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
2295 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
2296 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
2297 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
2298 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
2299 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
2300 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
2301 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
2302 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
2303 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
2304
2305 2014-08-29 Richard Biener <rguenther@suse.de>
2306
2307 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
2308 NON_LVALUE_EXPR in gimple.
2309
2310 2014-08-29 Richard Biener <rguenther@suse.de>
2311
2312 PR middle-end/62292
2313 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
2314 from previous refactoring.
2315 (gimple_fold_builtin_strncpy): Likewise.
2316
2317 2014-08-29 David Malcolm <dmalcolm@redhat.com>
2318
2319 PR bootstrap/62300
2320 * function.c (assign_parm_setup_reg): Remove erroneous checked
2321 cast to rtx_insn * on result of gen_extend_insn in favor of
2322 introducing a new local rtx "pat".
2323
2324 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2325
2326 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
2327 to silence warning.
2328 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
2329
2330 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2331
2332 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
2333 (next_insn): Likewise.
2334 * emit-rtl.c (next_insn): Likewise.
2335 (previous_insn): Likewise.
2336 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
2337 "insn" and "next" from rtx to rtx_insn *.
2338 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
2339 "insn", "insn1", "vliw_start", "prologue_end_note",
2340 "last_insn_in_packet".
2341
2342 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2343
2344 * shrink-wrap.h (active_insn_between): Strengthen both params from
2345 rtx to rtx_insn *.
2346 * function.c (active_insn_between): Likewise.
2347
2348 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2349
2350 * genattr.c (main): When writing out insn-attr.h, strengthen param
2351 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
2352 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
2353 writing out the definition of dfa_clear_single_insn_cache to the
2354 generated insn-automata.c
2355
2356 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2357
2358 * resource.h (clear_hashed_info_for_insn): Strengthen param from
2359 rtx to rtx_insn *.
2360 (incr_ticks_for_insn): Likewise.
2361 (init_resource_info): Likewise.
2362
2363 * resource.c (init_resource_info): Likewise.
2364 (clear_hashed_info_for_insn): Likewise.
2365 (incr_ticks_for_insn): Likewise.
2366
2367 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
2368 rtx to rtx_insn *.
2369 (steal_delay_list_from_target): Use methods of "seq".
2370 (try_merge_delay_insns): Use methods of "merged_insns".
2371 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
2372 (reorg_redirect_jump): Likewise for param "jump".
2373
2374 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2375
2376 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
2377 rtx to rtx_insn *.
2378 * config/s390/s390.c (s390_split_branches): Eliminate top-level
2379 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
2380 "set_insn".
2381 (s390_mainpool_finish): In three places, split out a local rtx
2382 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
2383 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
2384 and split another local rtx "insn" out into rtx "pat" and
2385 rtx_insn * "insn".
2386 * config/sh/sh.c (output_branchy_insn): Rather than working
2387 directly on operands[9], introduce local rtx_code_label *
2388 variables named "lab" in two places, working on them, and then
2389 assigning them to operands[9], so that the intervening operations
2390 are known by the type system to be on insns.
2391
2392 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2393
2394 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
2395 const rtx_insn *.
2396
2397 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
2398 in invocation of INSN_HAS_LOCATION.
2399
2400 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2401
2402 * config/rs6000/altivec.h (vec_xl): New #define.
2403 (vec_xst): Likewise.
2404 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
2405 (XXSPLTD_V2DI): Likewise.
2406 (DIV_V2DI): Likewise.
2407 (UDIV_V2DI): Likewise.
2408 (MUL_V2DI): Likewise.
2409 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2410 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
2411 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
2412 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
2413 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
2414 (UNSPEC_VSX_DIVSD): Likewise.
2415 (UNSPEC_VSX_DIVUD): Likewise.
2416 (UNSPEC_VSX_MULSD): Likewise.
2417 (vsx_mul_v2di): New insn-and-split.
2418 (vsx_div_v2di): Likewise.
2419 (vsx_udiv_v2di): Likewise.
2420 (vsx_xxspltd_<mode>): New insn.
2421
2422 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2423
2424 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
2425 NEXT_INSN.
2426 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
2427 (NEXT_INSN): Likewise.
2428 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
2429 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
2430 const rtx_insn *.
2431 (no_labels_between_p): Likewise for both params.
2432
2433 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
2434 cast when using NEXT_INSN on operands[2].
2435 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
2436 "insn" from rtx to rtx_insn *, adding a checked cast.
2437 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
2438 rtx_insn *.
2439 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
2440 for third param.
2441 (arc_text_label): Likewise for param "insn".
2442 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
2443 "insn".
2444 (arc_ccfsm_record_condition): Likewise for param "jump".
2445 (arc_text_label): Likewise for local "label".
2446 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
2447 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
2448 a method for typesafety. Add a checked cast.
2449 * config/arc/constraints.md (Clb): Add a checked cast when getting
2450 the CODE_LABEL from a LABEL_REF.
2451 * config/arm/arm.c (require_pic_register): Strengthen locals
2452 "seq", "insn" from rtx to rtx_insn *.
2453 (create_fix_barrier): Likewise for locals "selected", "next".
2454 (thumb1_reorg): Likewise for locals "prev", "insn".
2455 (arm_expand_prologue): Likewise for local "last".
2456 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
2457 operands[0].
2458 (thumb2_output_casesi): Likewise for operands[2].
2459 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
2460 strengthen local "insn" from rtx to rtx_insn *.
2461 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
2462 type and param "insn".
2463 (find_prev_insn_start): Likewise.
2464 (hwloop_optimize): Likewise for locals "insn", "last_insn",
2465 "prev".
2466 (gen_one_bundle): Likewise for loal "t".
2467 (find_load): Likewise for param "insn".
2468 (workaround_speculation): Likewise for locals "insn", "next",
2469 "target", "next_tgt".
2470 * config/c6x/c6x.c (assign_reservations): Likewise for both params
2471 and for locals "insn", "within", "last".
2472 (count_unit_reqs): Likewise for params "head", "tail" and local
2473 "insn".
2474 (try_rename_operands): Likewise for params "head", "tail".
2475 (reshuffle_units): Likewise for locals "head", "tail", "insn".
2476 (struct c6x_sched_context): Likewise for fields
2477 "last_scheduled_insn", "last_scheduled_iter0".
2478 (init_sched_state): Replace NULL_RTX with NULL.
2479 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
2480 to rtx_insn *.
2481 (undo_split_delayed_nonbranch): Likewise for param and for local
2482 "prev".
2483 (conditionalize_after_sched): Likewise for local "insn".
2484 (bb_earliest_end_cycle): Likewise.
2485 (filter_insns_above): Likewise for locals "insn", "next".
2486 (hwloop_optimize): Remove redundant checked cast.
2487 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
2488 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
2489 NULL_RTX with NULL.
2490 (cris_simple_epilogue): Likewise.
2491 (cris_expand_prologue): Likewise.
2492 (cris_expand_epilogue): Likewise.
2493 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
2494 local "insn" from rtx to rtx_insn *.
2495 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
2496 (struct frv_packet_group): Likewise for the elements within array
2497 fields "insns", "sorted", and for field "nop".
2498 (frv_packet): Likewise for the elements within array field
2499 "insns".
2500 (frv_add_insn_to_packet): Likewise for param "insn".
2501 (frv_insert_nop_in_packet): Likewise for param "insn" and local
2502 "last".
2503 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
2504 (frv_sort_insn_group_1): Likewise for local "insn".
2505 (frv_optimize_membar_local): Likewise.
2506 (frv_align_label): Likewise for locals "x", "last", "barrier",
2507 "label".
2508 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
2509 local.
2510 (ia64_sched_init): Likewise for local "insn".
2511 (scheduled_good_insn): Likewise for param "last".
2512 (struct _ia64_sched_context): Likewise for field
2513 "last_scheduled_insn".
2514 (ia64_init_sched_context): Replace NULL_RTX with NULL.
2515 (struct bundle_state): Likewise for field "insn".
2516 (issue_nops_and_insn): Likewise for param "insn".
2517 (get_next_important_insn): Likewise for return type and both
2518 params.
2519 (ia64_add_bundle_selector_before): Likewise for param "insn".
2520 (bundling): Likewise for params "prev_head_insn", "tail" and
2521 locals "insn", "next_insn", "b". Eliminate top-level local rtx
2522 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
2523 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
2524 Strengthen final param from rtx to rtx_insn *.
2525 (iq2000_move_1word): Likewise for second param.
2526 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
2527 param "cur_insn" and local "next_insn".
2528 (iq2000_move_1word): Likewise for param "insn".
2529 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
2530 casts when using NEXT_INSN on operands[1].
2531 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
2532 "insn" from rtx to rtx_insn *.
2533 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
2534 "x", introducing local rtx_insn * "insn" for when working with the
2535 CODE_LABEL of the LABEL_REF.
2536 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
2537 rtx_insn *.
2538 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
2539 param.
2540 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
2541 type.
2542 (conditionalize_block): Likewise for return type and param.
2543 (mcore_is_dead): Likewise for param "first" and local "insn".
2544 (emit_new_cond_insn): Likewise for return type.
2545 (conditionalize_block): Likewise for return type, param, and
2546 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
2547 "newinsn".
2548 (conditionalize_optimization): Likewise for local "insn".
2549 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
2550 using NEXT_INSN.
2551 * config/microblaze/microblaze.md: Add checked casts when using
2552 NEXT_INSN.
2553 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
2554 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
2555 and rtx_insn * "insn".
2556 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
2557 checked cast when using NEXT_INSN on operands[2].
2558 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
2559 local "insn" from rtx to rtx_insn *.
2560 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
2561 Likewise.
2562 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
2563 Add a checked cast when using NEXT_INSN on operands[1].
2564 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
2565 rtx to rtx_insn *.
2566 (pa_output_cbranch): Likewise for final param.
2567 (pa_output_lbranch): Likewise for second param.
2568 (pa_output_bb): Likewise for third param.
2569 (pa_output_bvb): Likewise.
2570 (pa_output_dbra): Likewise for second param.
2571 (pa_output_movb): Likewise.
2572 (pa_output_parallel_movb): Likewise.
2573 (pa_output_parallel_addb): Likewise.
2574 (pa_output_millicode_call): Likewise for first param.
2575 (pa_output_mul_insn): Likewise for second param.
2576 (pa_output_div_insn): Likewise for third param.
2577 (pa_output_mod_insn): Likewise for second param.
2578 (pa_jump_in_call_delay): Likewise for param.
2579 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
2580 (pa_output_div_insn): Likewise.
2581 (pa_output_mod_insn): Likewise.
2582 (pa_output_cbranch): Likewise.
2583 (pa_output_lbranch): Likewise.
2584 (pa_output_bb): Likewise.
2585 (pa_output_bvb): Likewise.
2586 (pa_output_dbra): Likewise.
2587 (pa_output_movb): Likewise.
2588 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
2589 to simplify and for typesafety.
2590 (pa_output_call): Use method of rtx_sequence *.
2591 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
2592 (pa_jump_in_call_delay): Likewise.
2593 (pa_output_parallel_movb): Likewise.
2594 (pa_output_parallel_addb): Likewise.
2595 (pa_following_call): Likewise.
2596 (pa_combine_instructions): Likewise for locals "anchor",
2597 "floater".
2598 (pa_can_combine_p): Likewise for params "anchor", "floater" and
2599 locals "start", "end".
2600 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
2601 param "insn" and local "local_insn".
2602 (picochip_final_prescan_insn): Likewise for local "local_insn".
2603 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
2604 local "insn".
2605 (uses_TOC): Likewise.
2606 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
2607 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
2608 splitting out to more tightly-scoped locals, 3 as rtx and one as
2609 rtx_insn *.
2610 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
2611 to rtx_insn *.
2612 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
2613 where needed.
2614 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
2615 to rtx_insn *.
2616 (fixup_addr_diff_vecs): Likewise.
2617 (reg_unused_after): Likewise for param 2.
2618 (sh_can_redirect_branch): Likewise for both params.
2619 (check_use_sfunc_addr): Likewise for param 1.
2620 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
2621 (find_barrier): Likewise for local "last_got".
2622 (gen_block_redirect): Likewise for return type, param "jump" and
2623 locals "prev", "scan", "next", "insn".
2624 (struct far_branch): Likewise for fields "near_label",
2625 "insert_place", "far_label".
2626 (gen_far_branch): Likewise for local "jump".
2627 (fixup_addr_diff_vecs): Likewise for param "first" and locals
2628 "insn", "prev".
2629 (barrier_align): Likewise for param and for locals "prev", "x".
2630 Introduce local rtx_sequence * "prev_seq" and use insn method for
2631 typesafety and clarity.
2632 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
2633 (get_dest_uid): Likewise for local "dest".
2634 (split_branches): Likewise for locals "next", "beyond", "label",
2635 "block", "far_label". Add checked casts when assigning to
2636 bp->far_label and "far_label".
2637 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
2638 (sequence_insn_p): Likewise.
2639 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
2640 more loop-scoped rtx "insn" when walking LABEL_REFS.
2641 (sh_can_redirect_branch): Strengthen both params from rtx to
2642 rtx_insn *.
2643 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
2644 new local rtx_sequence * "seq" via a dyn_cast, and use a method
2645 for clarity and typesafety.
2646 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
2647 "insn" from rtx to rtx_insn *.
2648 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
2649 when using NEXT_INSN on the CODE_LABEL in operands[2].
2650 (define_insn "casesi_worker_2"): Likewise.
2651 (define_insn "casesi_shift_media"): Likewise.
2652 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
2653 operands[3].
2654 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
2655 Strengthen field "insn" from rtx to rtx_insn *.
2656 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
2657 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
2658 param "start_insn" and local "start_insn".
2659 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
2660 field "insn".
2661 (find_set_of_reg_bb): Likewise for param "insn".
2662 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
2663 (trace_reg_uses): Likewise for param "start_insn".
2664 (sh_treg_combine::cbranch_trace): Likewise for field
2665 "cbranch_insn".
2666 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
2667 param "insn".
2668 (sh_treg_combine::record_set_of_reg): Likewise for param
2669 "start_insn" and local "i".
2670 (sh_treg_combine::can_remove_cstore): Likewise for local
2671 "prev_insn".
2672 (sh_treg_combine::try_optimize_cbranch): Likewise for param
2673 "insn".
2674 (sh_treg_combine::execute): Likewise for local "i".
2675 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
2676 param.
2677 (sparc_check_64): Likewise for second param.
2678 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
2679 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
2680 dyn_cast, using its insn method for typesafety and clarity.
2681 (empty_delay_slot): Strengthen param "insn" from rtx to
2682 rtx_insn *.
2683 (set_extends): Likewise.
2684 (sparc_check_64): Likewise.
2685 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
2686 for locals "seq", "last_insn".
2687 (combine_bnp): Likewise for param "insn".
2688 (xstormy16_reorg): Likewise for local "insn".
2689 * config/v850/v850.c (substitute_ep_register): Likewise for params
2690 "first_insn", "last_insn" and local "insn".
2691 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
2692 elements of "regs" array, and local "insn".
2693 * except.c (emit_note_eh_region_end): Likewise for param "insn".
2694 * final.c (final_sequence): Strengthen this global from rtx to
2695 rtx_sequence *.
2696 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
2697 rtx_insn *.
2698 (final_scan_insn): Update assignment to "final_sequence" to be
2699 from "seq", the cast version of "body", for type-safety.
2700 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
2701 "insns" from rtx to rtx_insn *.
2702 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
2703 * genattr.c (main): When writing out generated insn-attr.h,
2704 strengthen params 1 and 3 of eligible_for_delay,
2705 eligible_for_annul_true, eligible_for_annul_false from rtx to
2706 rtx_insn *.
2707 * genattrtab.c (write_eligible_delay): Likewise when writing out
2708 generated insn-attrtab.c; also local "insn" the generated
2709 functions.
2710 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
2711 to rtx_insn *.
2712 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
2713 "start_label" from rtx to rtx_insn *.
2714 * ira.c (decrease_live_ranges_number): Likewise for local "p".
2715 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
2716 "insns" and local "insn".
2717 (validate_equiv_mem): Likewise for param "start" and local "insn".
2718 (memref_used_between_p): Likewise for params "start", "end" and
2719 local "insn".
2720 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
2721 final param.
2722 * loop-doloop.c (doloop_optimize): Within region guarded by
2723 INSN_P (doloop_pat), introduce a new local rtx_insn *
2724 "doloop_insn" via a checked cast, and use it for typesafety,
2725 eventually writing the value back into doloop_pat.
2726 * output.h (final_sequence): Strengthen this global from rtx to
2727 rtx_sequence *.
2728 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
2729 reintroducing "insn" as an rtx_insn * via a checked cast.
2730 Strengthen param "attempt" and local "new_insn"from rtx to
2731 rtx_insn *.
2732 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
2733 to rtx_insn *.
2734 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
2735 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
2736 "p" in favor of more tightly-scoped replacements, sometimes rtx
2737 and sometimes rtx_insn *, as appropriate.
2738 (delete_output_reload): Eliminate top-level rtx "i1", splitting
2739 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
2740 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
2741 local "trial" from rtx to rtx_insn *.
2742 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
2743 rtx to rtx_insn *. Strenghten local "pat" from rtx to
2744 rtx_sequence * and use methods for clarity and typesafety.
2745 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
2746 rtx to rtx_insn *. Strenghten local "li" from rtx to
2747 rtx_insn_list * and use its methods for clarity and typesafety.
2748 (steal_delay_list_from_target): Strengthen param "insn" from rtx
2749 to rtx_insn *.
2750 (steal_delay_list_from_fallthrough): Likewise.
2751 (try_merge_delay_insns): Likewise for param "thread" and locals
2752 "trial", "next_trial", "delay_insn".
2753 (redundant_insn): Likewise for param "target" and local "trial".
2754 (own_thread_p): Likewise for param "thread" and locals
2755 "active_insn", "insn".
2756 (get_label_before): Likewise for param "insn".
2757 (fill_simple_delay_slots): Likewise for local "new_label"; use
2758 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
2759 (label_before_next_insn): Strengthen return type and local "insn"
2760 from rtx to rtx_insn *.
2761 (relax_delay_slots): Likewise for locals "other", "tmp".
2762 (make_return_insns): Likewise for param "first" and locals "insn",
2763 "jump_insn", "prev". Move declaration of "pat" to its assignment
2764 and strengthen from rtx to rtx_sequence *. Use its methods for
2765 clarity and typesafety.
2766 * rtlanal.c (no_labels_between_p): Strengthen params from
2767 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
2768 rtx_insn *.
2769 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
2770 from const_rtx to const rtx_insn *.
2771 (reg_set_between_p): Rename param "from_insn" to
2772 "uncast_from_insn", and reintroduce "from_insn" as a
2773 const rtx_insn * via a checked cast.
2774 (modified_between_p): Likewise for param "start" as "uncast_start".
2775 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
2776 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
2777 "tmp", head" from rtx to rtx_insn *.
2778 (recompute_rev_top_order): Likewise for local "insn".
2779 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
2780 * store-motion.c (build_store_vectors): Likewise for local "insn".
2781 Strengthen local "st" from rtx to rtx_insn_list * and use methods
2782 for clarity and typesafety.
2783 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
2784 rtx to rtx_insn *.
2785 (computation_cost): Likewise for local "seq".
2786 (get_address_cost): Likewise.
2787
2788 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2789
2790 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
2791 const rtx_insn *.
2792 (label_is_jump_target_p): Likewise for second param.
2793
2794 * rtlanal.c (tablejump_p): Likewise for param "insn".
2795 (label_is_jump_target_p): Likewise for param "jump_insn".
2796
2797 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2798
2799 * rtl.h (find_first_parameter_load): Strengthen return type and
2800 both params from rtx to rtx_insn *.
2801 * rtlanal.c (find_first_parameter_load): Strengthen return type,
2802 both params and locals "before", "first_set" from rtx to
2803 rtx_insn *. Remove now-redundant cast.
2804 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
2805
2806 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2807
2808 * rtl.h (find_last_value): Delete.
2809 * rtlanal.c (find_last_value): Delete.
2810
2811 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2812
2813 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
2814 from rtx to rtx_insn *.
2815 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
2816 rtx "note" with new local rtx_insn * "new_head" when calculating
2817 head insn of new basic block.
2818 * combine.c (combine_split_insns): Strengthen return type and local
2819 "ret" from rtx to rtx_insn *.
2820 (likely_spilled_retval_p): Likewise for locals "use" and "p".
2821 (try_combine): Eliminate local "m_split", splitting into new
2822 locals "m_split_insn" and "m_split_pat".
2823 (find_split_point): Strengthen local "seq" from rtx into
2824 rtx_insn *.
2825 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
2826 locals "label", "branch".
2827 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
2828 for local "insn".
2829 (define_expand "umulsi3_highpart"): Likewise for local "insn".
2830 * dse.c (note_add_store_info): Likewise for fields "first",
2831 "current".
2832 (note_add_store): Likewise for local "insn".
2833 (emit_inc_dec_insn_before): Likewise for locals "insn",
2834 "new_insn", "cur".
2835 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
2836 (replace_read): Likewise for locals "insns", "this_insn".
2837 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
2838 (notice_eh_throw): Likewise for param "insn".
2839 (before_next_cfi_note): Likewise for return type, param, and local
2840 "prev".
2841 (connect_traces): Likewise for local "note".
2842 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
2843 (verify_rtl_sharing): Likewise.
2844 (unshare_all_rtl_in_chain): Likewise for param "insn".
2845 (get_first_nonnote_insn): Likewise for local "insn".
2846 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
2847 "seq" and use its methods to clarify things.
2848 (next_insn): Strengthen return type from rtx to rtx_insn *.
2849 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
2850 local rtx_insn * using a checked cast, dropping a checked cast
2851 made redundant by this change. Use a cast to and method of
2852 rtx_sequence to clarify the code.
2853 (previous_insn): Rename param "insn" to "uncast_insn" and
2854 reintroduce "insn" as a local rtx_insn * using a checked cast,
2855 dropping a checked cast made redundant by this change. Use a cast
2856 to and method of rtx_sequence to clarify the code.
2857 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
2858 reintroduce "insn" as a local rtx_insn * using a checked cast,
2859 dropping a checked cast made redundant by this change.
2860 (next_nonnote_insn_bb): Likewise.
2861 (prev_nonnote_insn): Likewise.
2862 (prev_nonnote_insn_bb): Likewise.
2863 (next_nondebug_insn): Likewise.
2864 (prev_nondebug_insn): Likewise.
2865 (next_nonnote_nondebug_insn): Likewise.
2866 (prev_nonnote_nondebug_insn): Likewise.
2867 (next_real_insn): Likewise.
2868 (prev_real_insn): Likewise.
2869 (next_active_insn): Likewise.
2870 (prev_active_insn): Likewise.
2871 (next_cc0_user): Likewise. Use rtx_sequence and a method for
2872 clarity.
2873 (prev_cc0_setter): Likewise.
2874 (try_split): Rename param "trial" to "uncast_trial" and
2875 reintroduce "insn" as a local rtx_insn * using a checked cast,
2876 dropping checked casts made redundant by this change.
2877 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
2878 rtx to rtx_insn *.
2879 (remove_insn): Rename param "insn" to "uncast_insn" and
2880 reintroduce "insn" as a local rtx_insn * using a checked cast.
2881 (emit_pattern_after_setloc): Likewise for param "after", as
2882 "uncast_after".
2883 (emit_pattern_after): Likewise. Strengthen local "prev" from
2884 rtx to rtx_insn *.
2885 (emit_pattern_before_setloc): Rename param "before" to
2886 "uncast_before" and reintroduce "before" as a local rtx_insn *
2887 using a checked cast. Strengthen locals "first", "last" from
2888 rtx to rtx_insn *.
2889 (emit_pattern_before): Likewise rename/cast param "before" to
2890 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
2891 * except.c (copy_reg_eh_region_note_forward): Strengthen param
2892 "first" and local "insn" from rtx to rtx_insn *.
2893 (copy_reg_eh_region_note_backward): Likewise for param "last"
2894 and local "insn".
2895 * expr.c (fixup_args_size_notes): Rename param "last" to
2896 "uncast_last" and reintroduce "last" as a local rtx_insn *
2897 using a checked cast. Strengthen local "insn" from rtx to
2898 rtx_insn *.
2899 * function.c (set_insn_locations): Strengthen param "insn" from
2900 rtx to rtx_insn *.
2901 (record_insns): Likewise for param "insns" and local "tmp".
2902 (active_insn_between): Rename param "tail" to
2903 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
2904 using a checked cast.
2905 (thread_prologue_and_epilogue_insns): Split out top-level local
2906 rtx "seq" into three different rtx_insn * locals. Strengthen
2907 local "prologue_seq" from rtx to rtx_insn *.
2908 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
2909 from rtx to rtx_insn *.
2910 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
2911 (priority): Likewise for locals "prev_first", "twin".
2912 (setup_insn_max_reg_pressure): Likewise for param "after".
2913 (sched_setup_bb_reg_pressure_info): Likewise.
2914 (no_real_insns_p): Strengthen params from const_rtx to
2915 const rtx_insn *.
2916 (schedule_block): Strengthen local "next_tail" from rtx to
2917 rtx_insn *.
2918 * ifcvt.c (find_active_insn_before): Strengthen return type and
2919 param "insn" from rtx to rtx_insn *.
2920 (find_active_insn_after): Likewise.
2921 (cond_exec_process_insns): Likewise for param "start" and local "insn".
2922 (cond_exec_process_if_block): Likewise for locals "then_start",
2923 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
2924 (noce_process_if_block): Likewise for local "jump".
2925 (merge_if_block): Likewise for two locals named "end".
2926 (cond_exec_find_if_block): Likewise for local "last_insn".
2927 * jump.c (delete_related_insns): Rename param "insn" to
2928 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
2929 checked cast. Strengthen local "p" from rtx to rtx_insn *.
2930 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
2931 NULL.
2932 (split_reg): Likewise.
2933 * lra.c (lra_process_new_insns): Likewise.
2934 * modulo-sched.c (permute_partial_schedule): Strengthen param
2935 "last" from rtx to rtx_insn *.
2936 * optabs.c (add_equal_note): Likewise for param "insns" and local
2937 "last_insn".
2938 (expand_binop_directly): Add checked casts to rtx_insn * within
2939 NEXT_INSN (pat) uses.
2940 (expand_unop_direct): Likewise.
2941 (maybe_emit_unop_insn): Likewise.
2942 * recog.c (peep2_attempt): Strengthen locals "last",
2943 "before_try", "x" from rtx to rtx_insn *.
2944 * reorg.c (optimize_skip): Strengthen return type and local
2945 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
2946 and locals "trial", "next_trial" from rtx to rtx_insn *.
2947 * resource.c (next_insn_no_annul): Strengthen return type and
2948 param "insn" from rtx to rtx_insn *. Use a cast to and method of
2949 rtx_sequence to clarify the code.
2950 (mark_referenced_resources): Add a checked cast to rtx_insn *
2951 within PREV_INSN (x).
2952 (find_dead_or_set_registers): Strengthen return type, param
2953 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
2954 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
2955 to rtx_insn **.
2956 (mark_target_live_regs): Strengthen params "insns" and "target",
2957 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
2958 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
2959 the code.
2960 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
2961 from rtx to rtx_insn *.
2962 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
2963 from rtx to rtx_insn *.
2964 (copy_reg_eh_region_note_backward): Likewise.
2965 (unshare_all_rtl_in_chain): Likewise for sole param.
2966 (dump_rtl_slim): Strengthen second and third params from const_rtx
2967 to const rtx_insn *.
2968 * sched-deps.c (sched_free_deps): Strengthen params "head" and
2969 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
2970 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
2971 "next_tail" from rtx to rtx_insn *.
2972 (begin_move_insn): Likewise for local "next".
2973 * sched-int.h (sched_free_deps): Likewise for first and second
2974 params.
2975 (no_real_insns_p): Strengthen both params from const_rtx to
2976 const rtx_insn *.
2977 (sched_setup_bb_reg_pressure_info): Strengthen second params from
2978 rtx to rtx_insn *.
2979 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
2980 "next_tail".
2981 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
2982 and locals "insn", "tail" from const_rtx to const rtx_insn *.
2983 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
2984 rtx_insn *.
2985 (debug_rtl_slim): Strengthen params "first" and "last" from
2986 const_rtx to const rtx_insn *.
2987 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
2988 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
2989 (convert_to_simple_return): Likewise for param "returnjump".
2990 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
2991 "prologue_seq".
2992 (convert_to_simple_return): Likewise for param "returnjump".
2993 * valtrack.c (propagate_for_debug): Likewise for params
2994 "insn", "last".
2995 * valtrack.h (propagate_for_debug): Likewise for second param.
2996
2997 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2998
2999 * output.h (insn_current_reference_address): Strengthen param
3000 from rtx to rtx_insn *.
3001 * final.c (insn_current_reference_address): Likewise.
3002
3003 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3004
3005 * basic-block.h (inside_basic_block_p): Strengthen param from
3006 const_rtx to const rtx_insn *.
3007 * cfgbuild.c (inside_basic_block_p): Likewise.
3008
3009 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3010
3011 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
3012 rtx_insn *.
3013 (get_trace_info): Likewise for param "insn".
3014 (save_point_p): Likewise.
3015 (maybe_record_trace_start): Likewise for both params.
3016 (maybe_record_trace_start_abnormal): Likewise.
3017 (create_trace_edges): Likewise for sole param and for three of the
3018 locals named "lab".
3019 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
3020 to rtx_insn *, and update a call to pat->element to pat->insn.
3021
3022 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3023
3024 * function.h (struct expr_status): Convert field "x_forced_labels"
3025 from rtx_expr_list * to rtx_insn_list *.
3026
3027 * cfgbuild.c (make_edges): Convert local "x" from an
3028 rtx_expr_list * to an rtx_insn_list *, replacing use of
3029 "element" method with "insn" method.
3030 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3031 * except.c (sjlj_emit_dispatch_table): Replace use of
3032 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
3033 forced_labels.
3034 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
3035 rtx_expr_list * to an rtx_insn_list *, replacing use of
3036 "element" method with "insn" method.
3037 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3038 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
3039 rtx_insn *, adding a checked cast. Replace use of
3040 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
3041 forced_labels.
3042 (expand_label): Likewise for local "label_r".
3043
3044 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3045
3046 * function.h (struct rtl_data): Convert field
3047 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
3048 rtx_insn_list *.
3049 * rtl.h (remove_node_from_insn_list): New prototype.
3050
3051 * builtins.c (expand_builtin): When prepending to
3052 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
3053 gen_rtx_EXPR_LIST.
3054 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
3055 to rtx_insn_list *, and use its "insn" method rather than
3056 "element" method.
3057 * cfgrtl.c (delete_insn): Use new function
3058 remove_node_from_insn_list rather than
3059 remove_node_from_expr_list.
3060 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
3061 to rtx_insn_list *, and use its "insn" method rather than
3062 "element" method.
3063 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3064 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3065 * rtlanal.c (remove_node_from_insn_list): New function, adapted
3066 from remove_node_from_expr_list.
3067 * stmt.c (expand_label): When prepending to
3068 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
3069 gen_rtx_EXPR_LIST.
3070
3071 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3072
3073 * function.h (struct rtl_data): Strengthen fields "x_return_label"
3074 and "x_naked_return_label" from rtx to rtx_code_label *.
3075
3076 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3077
3078 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
3079 (SET_NEXT_INSN): Likewise.
3080 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
3081
3082 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
3083 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
3084 to split out the SEQUENCE from local "bundle", strengthening the
3085 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
3086 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
3087 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
3088 and the type of the elements of the "slot" array from rtx to
3089 rtx_insn *.
3090 (reorg_split_calls): Likewise for locals "insn" and "next", and
3091 the type of the elements of the "slot" array.
3092
3093 * config/frv/frv.c (frv_nops): Likewise for the elements of this
3094 array.
3095 (frv_function_prologue): Likewise for locals "insn", "next",
3096 "last_call".
3097 (frv_register_nop): Introduce a local "nop_insn" to be the
3098 rtx_insn * containing rtx "nop".
3099
3100 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
3101 used as an insn and sometimes as a pattern, so rename it to
3102 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
3103 using it where dealing with the core insn.
3104
3105 * config/picochip/picochip.c (reorder_var_tracking_notes):
3106 Strengthen locals "insn", "next", "last_insn", "queue",
3107 "next_queue", "prev" from rtx to rtx_insn *.
3108
3109 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
3110 the second param is an rtx_insn ** rather than an rtx **.
3111 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
3112 from rtx to rtx_sequence *, and introduce local named "sequence",
3113 using methods of rtx_sequence to clarify the code.
3114 (remove_insn): Introduce local rtx_sequence * named "sequence" and
3115 use its methods.
3116 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
3117 Rename param "after" to "uncast_after", reintroducing "after" as a
3118 local rtx_insn * with a checked cast.
3119 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
3120 reintroducing "after" as a local rtx_insn * with a checked cast.
3121 Strengthen local "last" from rtx to rtx_insn * and remove the
3122 now-redundant checked casts.
3123 (copy_delay_slot_insn): Strengthen return type and param from rtx
3124 to rtx_insn *.
3125
3126 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
3127 "last" from rtx to rtx_insn *.
3128
3129 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3130
3131 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
3132 param from rtx to rtx_insn *.
3133
3134 * emit-rtl.c (copy_delay_slot_insn): Likewise.
3135
3136 * reorg.c (skip_consecutive_labels): Strengthen return type, param
3137 and local "insn" from rtx to rtx_insn *.
3138 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
3139 (unfilled_slots_next): Likewise.
3140 (function_return_label): Strengthen from rtx to rtx_code_label *.
3141 (function_simple_return_label): Likewise.
3142 (first_active_target_insn): Strengthen return type and param from
3143 rtx to rtx_insn *.
3144 (find_end_label): Strengthen return type from rtx to
3145 rtx_code_label *; strengthen locals as appropriate.
3146 (emit_delay_sequence): Strengthen return type, param "insn" and
3147 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
3148 and local "li" from rtx to rtx_insn_list *, using methods of
3149 rtx_insn_list for clarity and typesafety.
3150 (add_to_delay_list): Strengthen return type and param "insn" from
3151 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
3152 rtx_insn_list * and use methods of rtx_insn_list.
3153 (delete_from_delay_slot): Strengthen return type, param "insn",
3154 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
3155 Strengthen local "seq" from rtx to rtx_sequence *, and local
3156 "delay_list" from rtx to rtx_insn_list *, using methods of
3157 rtx_sequence for clarity and type-safety.
3158 (delete_scheduled_jump): Add checked cast when invoking
3159 delete_from_delay_slot. Strengthen local "trial" from rtx to
3160 rtx_insn *.
3161 (optimize_skip): Strengthen return type and local "delay_list"
3162 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
3163 rtx_insn *.
3164 (steal_delay_list_from_target): Strengthen return type, param
3165 "delay_list" and local "new_delay_list" from rtx to
3166 rtx_insn_list *. Strengthen param "seq" from rtx to
3167 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
3168 rtx_insn **.
3169 Split out local "temp" into multiple more-tightly scoped locals:
3170 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
3171 of rtx_insn_list and rtx_sequence for clarity and typesafety.
3172 Strengthen locals named "trial" from rtx to rtx_insn *.
3173 (steal_delay_list_from_fallthrough): Strengthen return type and
3174 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
3175 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
3176 Strengthen local "trial" from rtx to rtx_insn *.
3177 (try_merge_delay_insns): Strength local "merged_insns" from rtx
3178 to rtx_insn_list * and use its methods. Strengthen local "pat"
3179 from rtx to rtx_sequence * and use its methods. Strengthen locals
3180 "dtrial" and "new_rtx" from rtx to rtx_insn *.
3181 (get_label_before): Strengthen return type and local "label" from
3182 rtx to rtx_insn *.
3183 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
3184 "next_trial", "next", prev". Strengthen local "delay_list" from
3185 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
3186 rtx_insn **.
3187 (follow_jumps): Strengthen return type, param "label" and locals
3188 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
3189 (fill_slots_from_thread): Strengthen return type, param
3190 "delay_list" from rtx to rtx_insn_list *. Strengthen params
3191 "insn", "thread", "opposite_thread" and locals "new_thread",
3192 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
3193 "sequence" from a checked cast to rtx_sequence so that we can call
3194 steal_delay_list_from_target and steal_delay_list_from_fallthrough
3195 with an rtx_sequence *.
3196 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
3197 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
3198 Strengthen local "delay_list" from rtx to rtx_insn_list *.
3199 (relax_delay_slots): Strengthen param "first" and locals "insn",
3200 "next", "trial", "delay_insn", "target_label" from rtx to
3201 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
3202 Introduce a local "trial_seq" for PATTERN (trial) of type
3203 rtx_sequence *, in both cases using methods of rtx_sequence.
3204 (dbr_schedule): Strengthen param "first" and locals "insn",
3205 "next", "epilogue_insn" from rtx to rtx_insn *.
3206
3207 2014-08-28 Richard Biener <rguenther@suse.de>
3208
3209 PR tree-optimization/62283
3210 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3211 Do not peel loops for alignment where the vector loop likely
3212 doesn't run at least VF times.
3213
3214 2014-08-28 Bin Cheng <bin.cheng@arm.com>
3215
3216 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
3217 important_candidates. Consider all important candidates if
3218 IVS doesn't give any result. Remove check on ivs->upto.
3219 (try_add_cand_for): Call iv_ca_add_use only once.
3220
3221 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3222 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3223 Anna Tikhonova <anna.tikhonova@intel.com>
3224 Ilya Tocar <ilya.tocar@intel.com>
3225 Andrey Turetskiy <andrey.turetskiy@intel.com>
3226 Ilya Verbin <ilya.verbin@intel.com>
3227 Kirill Yukhin <kirill.yukhin@intel.com>
3228 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3229
3230 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
3231 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
3232 masking.
3233 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
3234 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
3235 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
3236 (define_insn "*mul<mode>3"): Add EVEX version.
3237
3238 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3239 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3240 Anna Tikhonova <anna.tikhonova@intel.com>
3241 Ilya Tocar <ilya.tocar@intel.com>
3242 Andrey Turetskiy <andrey.turetskiy@intel.com>
3243 Ilya Verbin <ilya.verbin@intel.com>
3244 Kirill Yukhin <kirill.yukhin@intel.com>
3245 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3246
3247 * config/i386/sse.md
3248 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
3249 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
3250 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
3251 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
3252 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
3253 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
3254 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
3255 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
3256 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
3257 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
3258 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
3259 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
3260 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
3261 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
3262 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
3263 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
3264
3265 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3266 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3267 Anna Tikhonova <anna.tikhonova@intel.com>
3268 Ilya Tocar <ilya.tocar@intel.com>
3269 Andrey Turetskiy <andrey.turetskiy@intel.com>
3270 Ilya Verbin <ilya.verbin@intel.com>
3271 Kirill Yukhin <kirill.yukhin@intel.com>
3272 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3273
3274 * config/i386/sse.md
3275 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
3276 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
3277 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
3278
3279 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3280 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3281 Anna Tikhonova <anna.tikhonova@intel.com>
3282 Ilya Tocar <ilya.tocar@intel.com>
3283 Andrey Turetskiy <andrey.turetskiy@intel.com>
3284 Ilya Verbin <ilya.verbin@intel.com>
3285 Kirill Yukhin <kirill.yukhin@intel.com>
3286 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3287
3288 * config/i386/sse.md
3289 (define_mode_iterator VI128_256): New.
3290 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
3291
3292 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3293 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3294 Anna Tikhonova <anna.tikhonova@intel.com>
3295 Ilya Tocar <ilya.tocar@intel.com>
3296 Andrey Turetskiy <andrey.turetskiy@intel.com>
3297 Ilya Verbin <ilya.verbin@intel.com>
3298 Kirill Yukhin <kirill.yukhin@intel.com>
3299 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3300
3301 * config/i386/sse.md
3302 (define_mode_iterator VI8_256_512): New.
3303 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
3304 Ditto.
3305 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
3306 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
3307 Ditto.
3308 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
3309
3310 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3311
3312 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
3313 pointer to the cumulative reloc value and return the value for
3314 this reloc instead.
3315 (compute_reloc_for_rtx): Take a const_rtx. Call
3316 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
3317 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
3318 for_each_rtx for the CONST case.
3319
3320 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3321
3322 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
3323 (mark_constants_in_pattern): ...this new function to iterate over
3324 all the subrtxes.
3325 (mark_constants): Update accordingly.
3326
3327 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3328
3329 * varasm.c: Include rtl-iter.h.
3330 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
3331 Remove the pointer to the cumulative hashval_t and just return
3332 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
3333 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3334 Accumulate the hashval_ts here instead of const_rtx_hash_1.
3335
3336 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3337
3338 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
3339 Give real type of data parameter. Remove return value.
3340 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
3341 to iterate over subrtxes.
3342
3343 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3344
3345 * var-tracking.c (use_narrower_mode_test): Turn from being a
3346 for_each_rtx callback to being a function that examines each
3347 subrtx itself.
3348 (adjust_mems): Update accordingly.
3349
3350 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3351
3352 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
3353 callback to being a function that examines each subrtx itself.
3354 Remove handling of null rtxes.
3355 (add_uses): Update accordingly.
3356
3357 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3358
3359 * var-tracking.c: Include rtl-iter.h.
3360 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
3361 to being a function that examines each subrtx itself.
3362 (use_type): Update accordingly.
3363
3364 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3365
3366 * store-motion.c: Include rtl-iter.h.
3367 (extract_mentioned_regs_1): Delete.
3368 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
3369 for_each_rtx to iterate over subrtxes.
3370
3371 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3372
3373 * sel-sched.c: Include rtl-iter.h
3374 (count_occurrences_1): Delete.
3375 (count_occurrences_equiv): Turn rtxes into const_rtxes.
3376 Use FOR_EACH_SUBRTX rather than for_each_rtx.
3377
3378 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3379
3380 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
3381 * rtlanal.c (tls_referenced_p_1): Delete.
3382 (tls_referenced_p): Take a const_rtx rather than an rtx.
3383 Use FOR_EACH_SUBRTX rather than for_each_rtx.
3384
3385 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3386
3387 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
3388 (for_each_inc_dec): Take an rtx rather than an rtx *.
3389 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
3390 (cselib_record_sets): Likewise.
3391 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
3392 (check_for_inc_dec): Likewise.
3393 * rtlanal.c (for_each_inc_dec_ops): Delete.
3394 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
3395 rather than a pointer to the memory address. Replace
3396 for_each_inc_dec_ops argument with separate function and data
3397 arguments. Abort on non-autoinc addresses.
3398 (for_each_inc_dec_find_mem): Delete.
3399 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
3400 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
3401
3402 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3403
3404 * rtl.h (find_all_hard_regs): Declare.
3405 * rtlanal.c (find_all_hard_regs): New function.
3406 (record_hard_reg_uses_1): Delete.
3407 (record_hard_reg_uses): Use find_all_hard_regs.
3408
3409 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3410
3411 * rtl.h (replace_label_data): Delete.
3412 (replace_label): Take the old label, new label and update-nuses flag
3413 as direct arguments. Return void.
3414 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
3415 * rtlanal.c (replace_label): Update interface as above. Handle
3416 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
3417 iterator. Use FOR_EACH_SUBRTX_PTR.
3418
3419 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3420
3421 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
3422 with const_rtx parameters.
3423 * varasm.c (get_pool_constant): Likewise.
3424 * rtlanal.c (rtx_referenced_p_1): Delete.
3425 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3426 Assert that the rtx we're looking for is nonnull. Allow searches
3427 for constant pool SYMBOL_REFs.
3428
3429 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3430
3431 * reload1.c: Include rtl-iter.h.
3432 (note_reg_elim_costly): Turn from being a for_each_rtx callback
3433 to being a function that examines each subrtx itself.
3434 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
3435
3436 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3437
3438 * regcprop.c (cprop_find_used_regs_1): Delete.
3439 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3440
3441 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3442
3443 * regcprop.c: Include rtl-iter.h.
3444 (kill_value): Take a const_rtx.
3445 (kill_autoinc_value): Turn from being a for_each_rtx callback
3446 to being a function that examines each subrtx itself.
3447 (copyprop_hardreg_forward_1): Update accordingly.
3448
3449 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3450
3451 * reg-stack.c: Include rtl-iter.h.
3452 (subst_stack_regs_in_debug_insn): Delete.
3453 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
3454 instead of for_each_rtx.
3455
3456 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3457
3458 * lower-subreg.c (find_decomposable_subregs): Turn from being
3459 a for_each_rtx callback to being a function that examines each
3460 subrtx itself. Remove handling of null rtxes.
3461 (decompose_multiword_subregs): Update accordingly.
3462
3463 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3464
3465 * lower-subreg.c (adjust_decomposed_uses): Delete.
3466 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
3467 Remove handling of null rtxes.
3468
3469 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3470
3471 * lower-subreg.c: Include rtl-iter.h.
3472 (resolve_subreg_use): Turn from being a for_each_rtx callback
3473 to being a function that examines each subrtx itself. Remove
3474 handling of null rtxes.
3475 (resolve_reg_notes, resolve_simple_move): Update accordingly.
3476 (decompose_multiword_subregs): Likewise.
3477
3478 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3479
3480 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
3481 to being a function that examines each subrtx itself.
3482 (simplify_using_condition, simplify_using_initial_values): Update
3483 accordingly.
3484
3485 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3486
3487 * loop-iv.c: Include rtl-iter.h.
3488 (find_single_def_src): New function.
3489 (replace_single_def_regs): Turn from being a for_each_rtx callback
3490 to being a function that examines each subrtx itself.
3491 (replace_in_expr, simplify_using_initial_values): Update accordingly.
3492
3493 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3494
3495 * jump.c (eh_returnjump_p_1): Delete.
3496 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3497 Remove handling of null rtxes.
3498
3499 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3500
3501 * jump.c: Include rtl-iter.h.
3502 (returnjump_p_1): Delete.
3503 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3504 Remove handling of null rtxes.
3505
3506 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3507
3508 * ira.c: Include rtl-iter.h.
3509 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
3510 to being a function that examines each subrtx itself. Remove
3511 handling of null rtxes.
3512 (update_equiv_regs): Update call accordingly.
3513
3514 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3515
3516 * fwprop.c: Include rtl-iter.h.
3517 (varying_mem_p): Turn from being a for_each_rtx callback to being
3518 a function that examines each subrtx itself.
3519 (propagate_rtx): Update accordingly.
3520
3521 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3522
3523 * function.c: Include rtl-iter.h
3524 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
3525 callback to being a function that examines each subrtx itself.
3526 Return the changed flag.
3527 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
3528 (instantiate_virtual_regs): Update calls accordingly.
3529
3530 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3531
3532 * final.c: Include rtl-iter.h.
3533 (mark_symbol_ref_as_used): Delete.
3534 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
3535 for_each_rtx.
3536
3537 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3538
3539 * emit-rtl.c: Include rtl-iter.h.
3540 (find_auto_inc): Turn from being a for_each_rtx callback to being
3541 a function that examines each subrtx itself. Assume the first operand
3542 to an RTX_AUTOINC is the automodified register.
3543 (try_split): Update call accordingly.
3544
3545 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3546
3547 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
3548 Return a bool, inverting the result so that 0/false means "not ok".
3549 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
3550 subrtxes of a CONST.
3551 (mem_loc_descriptor, add_const_value_attribute)
3552 (resolve_addr_in_expr): Update calls accordingly.
3553
3554 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3555
3556 * dwarf2out.c: Include rtl-iter.h.
3557 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
3558 Remove unused data parameter. Return a bool, inverting the result
3559 so that 0/false means "not ok".
3560 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
3561 instead of for_each_rtx.
3562
3563 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3564
3565 * dse.c: Include rtl-iter.h.
3566 (check_mem_read_rtx): Change void * parameter to real type.
3567 Remove return value.
3568 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
3569 for_each_rtx. Don't handle null rtxes.
3570
3571 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3572
3573 * df-problems.c: Include rtl-iter.h.
3574 (find_memory): Turn from being a for_each_rtx callback to being
3575 a function that examines each subrtx itself. Continue to look for
3576 volatile references even after a nonvolatile one has been found.
3577 (can_move_insns_across): Update calls accordingly.
3578
3579 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3580
3581 * ddg.c (walk_mems_2, walk_mems_1): Delete.
3582 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
3583 to iterate over subrtxes. Return a bool rather than an int.
3584
3585 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3586
3587 * ddg.c: Include rtl-iter.h.
3588 (mark_mem_use_1): Rename to...
3589 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
3590 instead of for_each_rtx.
3591 (mem_read_insn_p): Update accordingly.
3592
3593 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3594
3595 * cse.c (change_cc_mode_args): Delete.
3596 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
3597 a function that examines each subrtx itself. Take the fields of
3598 change_cc_mode_args as argument and return void.
3599 (cse_change_cc_mode_insn): Update calls accordingly.
3600
3601 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3602
3603 * cse.c (is_dead_reg): Change argument to const_rtx.
3604 (dead_debug_insn_data): Delete.
3605 (is_dead_debug_insn): Expand commentary. Turn from being a
3606 for_each_rtx callback to being a function that examines
3607 each subrtx itself. Take the fields of dead_debug_insn_data
3608 as argument.
3609 (delete_trivially_dead_insns): Update call accordingly.
3610
3611 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3612
3613 * cse.c (check_for_label_ref): Move earlier in file. Turn from
3614 being a for_each_rtx callback to being a function that examines
3615 each subrtx itself.
3616 (cse_extended_basic_block): Update call accordingly.
3617
3618 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3619
3620 * cse.c (check_dependence_data): Delete.
3621 (check_dependence): Change from being a for_each_rtx callback to being
3622 a function that examines all subrtxes itself. Don't handle null rtxes.
3623 (invalidate): Update call accordingly.
3624
3625 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3626
3627 * cse.c: Include rtl-iter.h.
3628 (approx_reg_cost_1): Delete.
3629 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3630 Don't handle null rtxes.
3631
3632 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3633
3634 * cfgcleanup.c: Include rtl-iter.h.
3635 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
3636 to being a function that examines each subrtx itself.
3637 (thread_jump): Update accordingly.
3638
3639 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3640
3641 * combine-stack-adj.c: Include rtl-iter.h.
3642 (record_stack_refs_data): Delete.
3643 (record_stack_refs): Turn from being a for_each_rtx callback
3644 to being a function that examines each subrtx itself.
3645 Take a pointer to the reflist. Invert sense of return value
3646 so that true means success and false means failure. Don't
3647 handle null rtxes.
3648 (combine_stack_adjustments_for_block): Update accordingly.
3649
3650 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3651
3652 * combine.c (record_truncated_value): Turn from being a for_each_rtx
3653 callback to a function that takes an rtx and returns a bool
3654 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
3655 for_each_rtx.
3656
3657 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3658
3659 * combine.c: Include rtl-iter.h.
3660 (unmentioned_reg_p_1): Delete.
3661 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3662 Don't handle null rtxes.
3663
3664 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3665
3666 * calls.c: Include rtl-iter.h.
3667 (internal_arg_pointer_based_exp_1): Delete.
3668 (internal_arg_pointer_based_exp): Take a const_rtx.
3669 Use FOR_EACH_SUBRTX to iterate over subrtxes.
3670
3671 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3672
3673 * caller-save.c: Include rtl-iter.h.
3674 (add_used_regs_1): Delete.
3675 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
3676 to iterate over subrtxes. Assert that any remaining pseudos
3677 have been spilled.
3678
3679 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3680
3681 * bt-load.c: Include rtl-iter.h.
3682 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
3683 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
3684 to iterate over subrtxes.
3685 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
3686 find_btr_use rather than btr_referenced_p.
3687
3688 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3689
3690 * alias.c: Include rtl-iter.h.
3691 (refs_newer_value_cb): Delete.
3692 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3693
3694 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3695
3696 * rtl-iter.h: New file.
3697 * rtlanal.c: Include it.
3698 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
3699 (generic_subrtx_iterator <T>::add_single_to_queue)
3700 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
3701 (generic_subrtx_iterator <T>::free_array): New functions.
3702 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
3703 (generic_subrtx_iterator <const_rtx_accessor>)
3704 (generic_subrtx_iterator <rtx_var_accessor>
3705 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
3706 (setup_reg_subrtx_bounds): New function.
3707 (init_rtlanal): Call it.
3708
3709 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
3710
3711 PR target/62261
3712 * config/sh/sh.md (ashlsi3): Handle negative shift count for
3713 TARGET_SHMEDIA.
3714 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
3715
3716 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
3717
3718 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
3719
3720 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3721
3722 * rtl.h (JUMP_LABEL_AS_INSN): New.
3723
3724 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3725
3726 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
3727 rtx_expr_list **.
3728 (alloc_EXPR_LIST): Strengthen return type from rtx to
3729 rtx_expr_list *.
3730 (remove_free_EXPR_LIST_node): Likewise for param.
3731 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
3732 from rtx to rtx_expr_list *.
3733 * sched-int.h (struct deps_desc): Strengthen fields
3734 "pending_read_mems" and "pending_write_mems" from rtx to
3735 rtx_expr_list *.
3736
3737 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
3738 rtx to rtx_expr_list *.
3739 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
3740 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
3741 rtx_expr_list **.
3742 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
3743 from rtx to rtx_expr_list *.
3744 * loop-iv.c (simplify_using_initial_values): Strengthen local
3745 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
3746 "pnote_next" from rtx * to rtx_expr_list **.
3747 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
3748 param "exprp" from rtx * to rtx_expr_list **.
3749 (add_insn_mem_dependence): Strengthen local "mem_list" from
3750 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
3751 to rtx_expr_list *.
3752 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
3753 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
3754 param "old_mems_p" from rtx * to rtx_expr_list **.
3755 * var-tracking.c (struct adjust_mem_data): Strengthen field
3756 "side_effects" from rtx to rtx_expr_list *.
3757 (adjust_insn): Replace NULL_RTX with NULL when assigning to
3758 rtx_expr_list *.
3759 (prepare_call_arguments): Likewise.
3760
3761 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3762
3763 * function.h (struct rtl_data): Strengthen field
3764 "x_stack_slot_list" from rtx to rtx_expr_list *.
3765
3766 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
3767 when assigning to stack_slot_list.
3768
3769 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3770
3771 * function.h (struct rtl_data): Strengthen field
3772 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
3773 * rtl.h (remove_node_from_expr_list): Strengthen second param from
3774 rtx * to rtx_expr_list **.
3775
3776 * cfgbuild.c (make_edges): In loop over
3777 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
3778 rtx_expr_list *, and use methods of the latter class to clarify
3779 the code.
3780 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
3781 rtx_expr_list *, and use methods of the latter class to clarify
3782 the code.
3783 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3784 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3785 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
3786 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
3787 to rtx_expr_list *. Use methods of the latter class to clarify
3788 the code.
3789
3790 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3791
3792 * function.h (struct expr_status): Strengthen field
3793 "x_forced_labels" from rtx to rtx_expr_list *.
3794
3795 * cfgbuild.c (make_edges): Split local "x" into two locals,
3796 strengthening one from rtx to rtx_expr_list *, and using methods
3797 of said class.
3798 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
3799 loop over forced_labels, introduce strengthen it from rtx to
3800 rtx_expr_list *, using methods to clarify the code.
3801 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
3802 to rtx_expr_list *, using methods of said class to clarify the
3803 code.
3804 * reload1.c (set_initial_label_offsets): Split local "x" into two
3805 per-loop variables, strengthening the first from rtx to
3806 rtx_expr_list * and using methods.
3807
3808 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3809
3810 * coretypes.h (class rtx_expr_list): Add forward declaration.
3811 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
3812 * gengenrtl.c (special_rtx): Add EXPR_LIST.
3813 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
3814 invariant: GET_CODE (X) == EXPR_LIST.
3815 (is_a_helper <rtx_expr_list *>::test): New.
3816 (rtx_expr_list::next): New.
3817 (rtx_expr_list::element): New.
3818 (gen_rtx_EXPR_LIST): New.
3819
3820 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3821
3822 * varasm.c (mark_constants): Convert a GET_CODE check into a
3823 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
3824 Use methods of rtx_sequence to clarify the code.
3825
3826 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3827
3828 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
3829 local "seq" via a checked cast, and use methods of rtx_sequence
3830 to simplify the code.
3831
3832 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3833
3834 * resource.c (mark_referenced_resources): Strengthen local
3835 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
3836 using methods of rtx_sequence to clarify the code.
3837 (find_dead_or_set_registers): Within the switch statement, convert
3838 a GET_CODE check to a dyn_cast, introducing local "seq". Within
3839 the JUMP_P handling, introduce another local "seq", adding a
3840 checked cast to rtx_sequence *. In both cases, use methods of
3841 rtx_sequence to clarify the code.
3842 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
3843 via a checked cast, and use methods of rtx_sequence to simplify
3844 the code.
3845
3846 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3847
3848 * reorg.c (redundant_insn): In two places in the function, replace
3849 a check of GET_CODE with a dyn_cast, introducing local "seq", and
3850 usings methods of rtx_sequence to clarify the code.
3851
3852 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3853
3854 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
3855 local "seq" with a checked cast, and use methods of rtx_sequence
3856 to clarify the code.
3857
3858 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3859
3860 * function.c (contains): Introduce local "seq" for PATTERN (insn),
3861 with a checked cast, in the region for where we know it's a
3862 SEQUENCE. Use methods of rtx_sequence.
3863
3864 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3865
3866 * final.c (get_attr_length_1): Replace GET_CODE check with a
3867 dyn_cast, introducing local "seq" and the use of methods of
3868 rtx_sequence.
3869 (shorten_branches): Likewise, introducing local "body_seq".
3870 Strengthen local "inner_insn" from rtx to rtx_insn *.
3871 (reemit_insn_block_notes): Replace GET_CODE check with a
3872 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
3873 Use methods of rtx_sequence.
3874 (final_scan_insn): Likewise, introducing local "seq" for when
3875 "body" is known to be a SEQUENCE, using its methods.
3876
3877 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3878
3879 * except.c (can_throw_external): Strengthen local "seq" from rtx
3880 to rtx_sequence *. Use methods of rtx_sequence.
3881 (insn_nothrow_p): Likewise.
3882
3883 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3884
3885 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
3886 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
3887 Use methods of rtx_sequence.
3888 (scan_trace): Likewise for local "pat".
3889
3890 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3891
3892 * coretypes.h (class rtx_sequence): Add forward declaration.
3893 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
3894 invariant: GET_CODE (X) == SEQUENCE.
3895 (is_a_helper <rtx_sequence *>::test): New.
3896 (is_a_helper <const rtx_sequence *>::test): New.
3897 (rtx_sequence::len): New.
3898 (rtx_sequence::element): New.
3899 (rtx_sequence::insn): New.
3900
3901 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3902
3903 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
3904 rtx_insn_list **.
3905 (alloc_INSN_LIST): Strengthen return type from rtx to
3906 rtx_insn_list *.
3907 (copy_INSN_LIST): Likewise for return type and param.
3908 (concat_INSN_LIST): Likewise for both params and return type.
3909 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
3910 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
3911 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
3912 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
3913
3914 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
3915 "implicit_sets", "control_uses", "clobbers" from rtx to
3916 rtx_insn_list *.
3917 (struct deps_desc): Likewise for fields "pending_read_insns",
3918 "pending_write_insns", "pending_jump_insns",
3919 "last_pending_memory_flush", "last_function_call",
3920 "last_function_call_may_noreturn", "sched_before_next_call",
3921 "sched_before_next_jump".
3922 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
3923 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
3924
3925 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
3926 from rtx to rtx_insn_list *.
3927 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
3928 rtx_insn_list *.
3929
3930 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
3931 to rtx_insn_list **.
3932 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
3933 rtx_insn_list *.
3934 (queue_insn): Likewise for local "link".
3935 (struct haifa_saved_data): Strengthen field "insn_queue" from
3936 rtx * to rtx_insn_list **.
3937 (save_backtrack_point): Update allocation of save->insn_queue to
3938 reflect the strengthening of elements from rtx to rtx_insn_list *.
3939 (queue_to_ready): Strengthen local "link" from rtx to
3940 rtx_insn_list *; use methods "next" and "insn" when traversing the
3941 list.
3942 (early_queue_to_ready): Likewise for locals "link", "next_link",
3943 "prev_link".
3944 (schedule_block): Update allocation of insn_queue to reflect the
3945 strengthening of elements from rtx to rtx_insn_list *. Strengthen
3946 local "link" from rtx to rtx_insn_list *, and use methods when
3947 working it.
3948 (add_to_speculative_block): Strengthen locals "twins" and
3949 "next_node" from rtx to rtx_insn_list *, and use methods when
3950 working with them. Strengthen local "twin" from rtx to
3951 rtx_insn *, eliminating a checked cast.
3952 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
3953 from rtx to rtx_insn_list *, and use methods when working with
3954 them.
3955
3956 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
3957 from rtx to rtx_insn_list *, adding a checked cast.
3958 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
3959 rtx_insn_list **.
3960 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
3961 "newlink" from rtx to rtx_insn_list *. Strengthen local
3962 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
3963 from rtx to rtx_insn *.
3964 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
3965 from rtx to rtx_insn_list *. Use methods of the latter class.
3966 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
3967 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
3968 (remove_free_INSN_LIST_node): Strengthen return type and local
3969 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
3970 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
3971 rtx_insn_list *, using "insn" method.
3972
3973 * sched-deps.c (add_dependence_list): Strengthen param "list"
3974 from rtx to rtx_insn_list *, and use methods when working with it.
3975 (add_dependence_list_and_free): Strengthen param "listp" from
3976 rtx * to rtx_insn_list **.
3977 (remove_from_dependence_list): Strenghten param "listp" from rtx *
3978 to rtx_insn_list **, and use methods when working with *listp.
3979 (remove_from_both_dependence_lists): Strengthen param "listp" from
3980 rtx * to rtx_insn_list **
3981 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
3982 to rtx_insn_list **. Eliminate local "link", in favor of two new
3983 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
3984 respectively.
3985 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
3986 by introducing local "cond_deps".
3987 (remove_from_deps): Strengthen param "insn" from rtx to
3988 rtx_insn *.
3989
3990 * sched-rgn.c (concat_insn_mem_list): Strengthen param
3991 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
3992 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
3993 Use methods of rtx_insn_list.
3994
3995 * store-motion.c (struct st_expr): Strengthen fields
3996 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
3997 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
3998 rtx_insn_list *.
3999 (find_moveable_store): Split out "tmp" into multiple more-tightly
4000 scoped locals. Use methods of rtx_insn_list *.
4001 (compute_store_table): Strengthen local "tmp" from rtx to
4002 rtx_insn *. Use methods of rtx_insn_list *.
4003
4004 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4005
4006 * coretypes.h (class rtx_insn_list): Add forward declaration.
4007 * rtl.h (class rtx_insn_list): New subclass of rtx_def
4008 (is_a_helper <rtx_insn_list *>::test): New.
4009 (rtx_insn_list::next): New.
4010 (rtx_insn_list::insn): New.
4011 (gen_rtx_INSN_LIST): Add prototype.
4012 * emit-rtl.c (gen_rtx_INSN_LIST): New.
4013 * gengenrtl.c (special_rtx): Add INSN_LIST.
4014
4015 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4016
4017 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
4018 "prev" from rtx to rtx_insn *.
4019
4020 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4021
4022 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
4023 functions. Require merely an rtx for now, not an rtx_insn *.
4024 (BLOCK_FOR_INSN): Likewise.
4025 (INSN_LOCATION): Likewise.
4026 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
4027
4028 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4029
4030 * rtl.h (PATTERN): Convert this macro into a pair of inline
4031 functions, for now, requiring const_rtx and rtx.
4032
4033 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4034
4035 * target.def (unwind_emit): Strengthen param "insn" from rtx to
4036 rtx_insn *.
4037 (final_postscan_insn): Likewise.
4038 (adjust_cost): Likewise.
4039 (adjust_priority): Likewise.
4040 (variable_issue): Likewise.
4041 (macro_fusion_pair_p): Likewise.
4042 (dfa_post_cycle_insn): Likewise.
4043 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
4044 (first_cycle_multipass_issue): Likewise.
4045 (dfa_new_cycle): Likewise.
4046 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
4047 (speculate_insn): Likewise for param "insn".
4048 (gen_spec_check): Likewise for params "insn" and "label".
4049 (get_insn_spec_ds): Likewise for param "insn".
4050 (get_insn_checked_ds): Likewise.
4051 (dispatch_do): Likewise.
4052 (dispatch): Likewise.
4053 (cannot_copy_insn_p): Likewise.
4054 (invalid_within_doloop): Likewise.
4055 (legitimate_combined_insn): Likewise.
4056 (needed): Likewise.
4057 (after): Likewise.
4058
4059 * doc/tm.texi: Automatically updated to reflect changes to
4060 target.def.
4061
4062 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
4063 working with insn.
4064 (schedule_block): Likewise.
4065 (sched_init): Likewise.
4066 (sched_speculate_insn): Strengthen param "insn" from rtx to
4067 rtx_insn *.
4068 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
4069 working with insn.
4070 * hooks.c (hook_bool_rtx_true): Rename to...
4071 hook_bool_rtx_insn_true): ...this, and strengthen first param from
4072 rtx to rtx_insn *.
4073 (hook_constcharptr_const_rtx_null): Rename to...
4074 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
4075 first param from const_rtx to const rtx_insn *.
4076 (hook_bool_rtx_int_false): Rename to...
4077 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
4078 param from rtx to rtx_insn *.
4079 (hook_void_rtx_int): Rename to...
4080 (hook_void_rtx_insn_int): ...this, and strengthen first param from
4081 rtx to rtx_insn *.
4082
4083 * hooks.h (hook_bool_rtx_true): Rename to...
4084 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
4085 rtx to rtx_insn *.
4086 (hook_bool_rtx_int_false): Rename to...
4087 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
4088 param from rtx to rtx_insn *.
4089 (hook_void_rtx_int): Rename to...
4090 (hook_void_rtx_insn_int): ...this, and strengthen first param from
4091 rtx to rtx_insn *.
4092 (hook_constcharptr_const_rtx_null): Rename to...
4093 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
4094 first param from const_rtx to const rtx_insn *.
4095
4096 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
4097 and local "prev" from rtx to rtx_insn *.
4098
4099 * sched-int.h (sched_speculate_insn): Strengthen first param from
4100 rtx to rtx_insn *.
4101
4102 * sel-sched.c (create_speculation_check): Likewise for local "label".
4103 * targhooks.c (default_invalid_within_doloop): Strengthen param
4104 "insn" from const_rtx to const rtx_insn *.
4105 * targhooks.h (default_invalid_within_doloop): Strengthen param
4106 from const_rtx to const rtx_insn *.
4107
4108 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
4109 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
4110
4111 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
4112 "insn".
4113 (arc_invalid_within_doloop): Likewise, with const.
4114
4115 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
4116 (arm_cannot_copy_insn_p): Likewise for param "insn".
4117 (arm_unwind_emit): Likewise.
4118
4119 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
4120 "dep_insn".
4121
4122 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
4123 (c6x_variable_issue): Likewise. Removed now-redundant checked
4124 cast.
4125 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
4126
4127 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
4128 Likewise for param "insn".
4129 (epiphany_mode_after): Likewise.
4130 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
4131 params "insn", "dep_insn".
4132 (epiphany_mode_needed): Likewise for param "insn".
4133 (epiphany_mode_after): Likewise.
4134
4135 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
4136 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
4137 (ix86_avx_u128_mode_needed): Likewise.
4138 (ix86_i387_mode_needed): Likewise.
4139 (ix86_mode_needed): Likewise.
4140 (ix86_avx_u128_mode_after): Likewise.
4141 (ix86_mode_after): Likewise.
4142 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
4143 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
4144 (ix86_adjust_priority): Likewise for param "insn".
4145 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
4146 (do_dispatch): Likewise.
4147 (has_dispatch): Likewise.
4148 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
4149
4150 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
4151 reflect renaming of default hook implementation from
4152 hook_constcharptr_const_rtx_null to
4153 hook_constcharptr_const_rtx_insn_null.
4154 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
4155 rtx to rtx_insn *.
4156 (ia64_variable_issue): Likewise for param "insn".
4157 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
4158 (ia64_dfa_new_cycle): Likewise.
4159 (ia64_get_insn_spec_ds): Likewise.
4160 (ia64_get_insn_checked_ds): Likewise.
4161 (ia64_speculate_insn): Likewise.
4162 (ia64_gen_spec_check): Likewise for params "insn", "label".
4163 (ia64_asm_unwind_emit): Likewise for param "insn".
4164
4165 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
4166
4167 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
4168 "insn", "def_insn".
4169 (m68k_sched_variable_issue): Likewise for param "insn".
4170
4171 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
4172 "def_insn".
4173
4174 * config/microblaze/microblaze.c (microblaze_adjust_cost):
4175 Likewise for params "insn", "dep".
4176
4177 * config/mips/mips.c (mips_adjust_cost): Likewise.
4178 (mips_variable_issue): Likewise for param "insn".
4179 (mips_final_postscan_insn): Likewise.
4180
4181 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
4182 for params "insn", "dep".
4183
4184 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
4185 "dep_insn".
4186 (pa_adjust_priority): Likewise for param "insn".
4187
4188 * config/picochip/picochip.c (picochip_sched_adjust_cost):
4189 Likewise for params "insn", "dep_insn".
4190
4191 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
4192 param "insn".
4193 (rs6000_variable_issue): Likewise.
4194 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
4195 (rs6000_debug_adjust_cost): Likewise.
4196 (rs6000_adjust_priority): Likewise for param "insn".
4197 (rs6000_use_sched_lookahead_guard): Likewise.
4198 (get_next_active_insn): Likewise for return type and both params.
4199 (redefine_groups): Likewise for params "prev_head_insn", "tail"
4200 and locals "insn", "next_insn".
4201 (pad_groups): Likewise.
4202
4203 * config/s390/s390.c (s390_adjust_priority): Likewise for param
4204 "insn".
4205 (s390_cannot_copy_insn_p): Likewise.
4206 (s390_sched_variable_issue): Likewise for third param, eliminating
4207 checked cast.
4208 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
4209 default hook implementation from hook_constcharptr_const_rtx_null
4210 to hook_constcharptr_const_rtx_insn_null.
4211
4212 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
4213 from rtx to rtx_insn *.
4214 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
4215 (sh_variable_issue): Likewise for param "insn".
4216 (sh_dfa_new_cycle): Likewise.
4217 (sh_mode_needed): Likewise.
4218 (sh_mode_after): Likewise.
4219
4220 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
4221 params "insn", "dep_insn".
4222 (hypersparc_adjust_cost): Likewise.
4223 (sparc_adjust_cost): Likewise.
4224
4225 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
4226 param, eliminated checked cast.
4227 (spu_sched_adjust_cost): Likewise for first and third params.
4228
4229 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
4230 params "insn" and "dep_insn" from rtx to rtx_insn *.
4231
4232 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
4233
4234 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4235
4236 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
4237 (set_is_load_p): ...this, updating to work on a SET pattern rather
4238 than an insn.
4239 (is_store_insn): Rename to...
4240 (set_is_store_p): ...this, updating to work on a SET pattern
4241 rather than an insn.
4242 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
4243 top of function to where it is needed. Rewrite the bogus
4244 condition that checks for "insn" and "dep" being PARALLEL to
4245 instead use single_set, introducing locals "insn_set" and
4246 "dep_set". Given that we only ever returned "cost" for a non-pair
4247 of SETs, bail out early if we don't have a pair of SET.
4248 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
4249 use the new locals "insn_set" and "dep_set", and update calls to
4250 is_load_insn and is_store_insn to be calls to set_is_load_p and
4251 set_is_store_p.
4252
4253 2014-08-27 Guozhi Wei <carrot@google.com>
4254
4255 PR target/62262
4256 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
4257 amount before using it.
4258
4259 2014-08-27 Richard Biener <rguenther@suse.de>
4260
4261 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
4262 get_maxval_strlen inside a more useful API.
4263 (gimple_fold_builtin_with_strlen): Remove and fold into ...
4264 (gimple_fold_builtin): ... caller.
4265 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
4266 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
4267 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
4268 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
4269 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
4270 gimple_fold_builtin_sprintf): Adjust to compute maxval
4271 themselves.
4272
4273 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
4274
4275 PR other/62248
4276 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
4277
4278 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4279 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4280 Anna Tikhonova <anna.tikhonova@intel.com>
4281 Ilya Tocar <ilya.tocar@intel.com>
4282 Andrey Turetskiy <andrey.turetskiy@intel.com>
4283 Ilya Verbin <ilya.verbin@intel.com>
4284 Kirill Yukhin <kirill.yukhin@intel.com>
4285 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4286
4287 * config/i386/sse.md
4288 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
4289 Use `concat_tg_mode' attribute to determine asm register size.
4290
4291 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4292 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4293 Anna Tikhonova <anna.tikhonova@intel.com>
4294 Ilya Tocar <ilya.tocar@intel.com>
4295 Andrey Turetskiy <andrey.turetskiy@intel.com>
4296 Ilya Verbin <ilya.verbin@intel.com>
4297 Kirill Yukhin <kirill.yukhin@intel.com>
4298 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4299
4300 * config/i386/sse.md
4301 (define_mode_iterator VI48_AVX512VL): New.
4302 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
4303 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
4304 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
4305 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4306 with VI1): Change mode iterator.
4307 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4308 with VI_ULOADSTORE_BW_AVX512VL): New.
4309 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4310 with VI_ULOADSTORE_F_AVX512VL): Ditto.
4311 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4312 with VI1): Change mode iterator.
4313 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4314 with VI_ULOADSTORE_BW_AVX512VL): New.
4315 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4316 with VI_ULOADSTORE_F_AVX512VL): Ditto.
4317 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4318 with VI1): Change mode iterator.
4319 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4320 with VI_ULOADSTORE_BW_AVX512VL): New.
4321 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4322 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
4323 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
4324 (define_insn "<avx512>_storedqu<mode>_mask" with
4325 VI48_AVX512VL): New.
4326 (define_insn "<avx512>_storedqu<mode>_mask" with
4327 VI12_AVX512VL): Ditto.
4328
4329 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4330 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4331 Anna Tikhonova <anna.tikhonova@intel.com>
4332 Ilya Tocar <ilya.tocar@intel.com>
4333 Andrey Turetskiy <andrey.turetskiy@intel.com>
4334 Ilya Verbin <ilya.verbin@intel.com>
4335 Kirill Yukhin <kirill.yukhin@intel.com>
4336 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4337
4338 * config/i386/sse.md
4339 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
4340 (define_mode_iterator VI48_AVX512BW): New.
4341 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
4342 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4343 with VI48_AVX2_48_AVX512F): New.
4344 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4345 with VI2_AVX512VL): Ditto.
4346
4347 2014-08-27 Richard Biener <rguenther@suse.de>
4348
4349 PR middle-end/62239
4350 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
4351 (fold_builtin_3): Do not fold strcat_chk here.
4352 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
4353 from builtins.c.
4354 (gimple_fold_builtin): Fold strcat_chk here.
4355
4356 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
4357
4358 * dwarf2out.h (dwarf2out_decl): Remove prototype.
4359 * dwarf2out.c (dwarf2out_decl): Make static.
4360
4361 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
4362
4363 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
4364
4365 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4366
4367 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
4368 from rtx to rtx_insn *.
4369 (cselib_lookup_from_insn): Likewise for final param.
4370 (cselib_subst_to_values_from_insn): Likewise.
4371 (cselib_add_permanent_equiv): Likewise.
4372
4373 * cselib.c (cselib_current_insn): Likewise for this variable.
4374 (cselib_subst_to_values_from_insn): Likewise for param "insn".
4375 (cselib_lookup_from_insn): Likewise.
4376 (cselib_add_permanent_equiv): Likewise for param "insn" and local
4377 "save_cselib_current_insn".
4378 (cselib_process_insn): Replace use of NULL_RTX with NULL.
4379
4380 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
4381 from rtx to rtx_insn *.
4382
4383 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4384
4385 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
4386 rtx_insn *.
4387
4388 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4389
4390 * df.h (df_dump_insn_problem_function): Strengthen first param of
4391 this callback from const_rtx to const rtx_insn *.
4392 (struct df_insn_info): Strengthen field "insn" from rtx to
4393 rtx_insn *.
4394 (DF_REF_INSN): Eliminate this function, reinstating the older
4395 macro definition.
4396 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
4397 (df_reg_defined): Likewise.
4398 (df_find_use): Likewise.
4399 (df_reg_used): Likewise.
4400 (df_dump_insn_top): Strengthen param 1 from const_rtx to
4401 const rtx_insn *.
4402 (df_dump_insn_bottom): Likewise.
4403 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
4404 (df_insn_debug_regno): Likewise.
4405 (debug_df_insn): Likewise.
4406 (df_rd_simulate_one_insn): Likewise for param 2.
4407 (df_word_lr_simulate_defs): Likewise for param 1.
4408 (df_word_lr_simulate_uses): Likewise.
4409 (df_md_simulate_one_insn): Likewise for param 2.
4410 (df_simulate_find_noclobber_defs): Likewise for param 1.
4411 (df_simulate_find_defs): Likewise.
4412 (df_simulate_defs): Likewise.
4413 (df_simulate_uses): Likewise.
4414 (df_simulate_one_insn_backwards): Likewise for param 2.
4415 (df_simulate_one_insn_forwards): Likewise.
4416 (df_uses_create): Likewise for param 2.
4417 (df_insn_create_insn_record): Likewise for param 1.
4418 (df_insn_delete): Likewise.
4419 (df_insn_rescan): Likewise.
4420 (df_insn_rescan_debug_internal): Likewise.
4421 (df_insn_change_bb): Likewise.
4422 (df_notes_rescan): Likewise.
4423 * rtl.h (remove_death): Likewise for param 2.
4424 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
4425 const rtx_insn *.
4426 * sched-int.h (reemit_notes): Strengthen param from rtx to
4427 rtx_insn *.
4428 * valtrack.h (propagate_for_debug): Likewise for param 1.
4429
4430 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
4431 local "tmp_rtx" from const_rtx to const rtx_insn *.
4432 * combine.c (remove_death): Strengthen param "insn" from rtx to
4433 rtx_insn *.
4434 (move_deaths): Likewise for local "where_dead".
4435 * cse.c (delete_trivially_dead_insns): Introduce local
4436 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
4437 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
4438 rtx_insn *.
4439 (df_reg_defined): Likewise.
4440 (df_find_use): Likewise.
4441 (df_reg_used): Likewise.
4442 (df_dump_insn_problem_data): Strengthen param "insn" from
4443 const_rtx to const rtx_insn *.
4444 (df_dump_insn_top): Likewise.
4445 (df_dump_insn_bottom): Likewise.
4446 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
4447 (df_insn_debug_regno): Likewise.
4448 (debug_df_insn): Likewise.
4449 (DF_REF_INSN): Delete.
4450 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
4451 from rtx to rtx_insn *.
4452 (df_chain_insn_top_dump): Strengthen param "insn" from
4453 const_rtx to const rtx_insn *.
4454 (df_chain_insn_bottom_dump): Likewise.
4455 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
4456 rtx_insn *.
4457 (df_word_lr_simulate_uses): Likewise.
4458 (df_print_note): Likewise.
4459 (df_remove_dead_and_unused_notes): Likewise.
4460 (df_set_unused_notes_for_mw): Likewise.
4461 (df_set_dead_notes_for_mw): Likewise.
4462 (df_create_unused_note): Likewise.
4463 (df_simulate_find_defs): Likewise.
4464 (df_simulate_find_uses): Likewise.
4465 (df_simulate_find_noclobber_defs): Likewise.
4466 (df_simulate_defs): Likewise.
4467 (df_simulate_uses): Likewise.
4468 (df_simulate_one_insn_backwards): Likewise.
4469 (df_simulate_one_insn_forwards): Likewise.
4470 (df_md_simulate_one_insn): Likewise.
4471 * df-scan.c (df_uses_create): Likewise.
4472 (df_insn_create_insn_record): Likewise.
4473 (df_insn_delete): Likewise.
4474 (df_insn_rescan): Likewise.
4475 (df_insn_rescan_debug_internal): Likewise.
4476 (df_insn_change_bb): Likewise.
4477 (df_notes_rescan): Likewise.
4478 (df_refs_add_to_chains): Likewise.
4479 (df_insn_refs_verify): Likewise.
4480 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
4481 when invoking df_insn_delete.
4482 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
4483 (set_unique_reg_note): Add checked cast.
4484 * final.c (cleanup_subreg_operands): Likewise.
4485 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
4486 "insn" from rtx to rtx_insn *.
4487 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
4488 "last" from rtx to rtx_insn *.
4489 * ira-emit.c (change_regs_in_insn): New function.
4490 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
4491 Invoke change_regs_in_insn rather than change_regs.
4492 * ira.c (update_equiv_regs): Strengthen locals "insn",
4493 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
4494 for_each_rtx_in_insn rather than for_each_rtx.
4495 * recog.c (confirm_change_group): Add checked casts.
4496 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
4497 Add checked cast.
4498 (peep2_fill_buffer): Add checked cast.
4499 * rtlanal.c (remove_note): Likewise.
4500 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
4501 locals "next" "end" from rtx to rtx_insn *.
4502
4503 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4504
4505 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
4506 to rtx_insn *.
4507 (struct reg_use_data): Likewise for field "insn".
4508 (insn_cost): Likewise for param.
4509 (real_insn_for_shadow): Likewise for return type and param.
4510 (increase_insn_priority): Likewise for param 1.
4511 (debug_dependencies): Likewise for both params.
4512
4513 * haifa-sched.c (insn_delay): Likewise for param "insn".
4514 (real_insn_for_shadow): Likewise for return type and param "insn".
4515 (update_insn_after_change): Likewise for param "insn".
4516 (recompute_todo_spec): Likewise for param "next" and locals "pro",
4517 "other".
4518 (insn_cost): Likewise for param "insn".
4519 (increase_insn_priority): Likewise.
4520 (calculate_reg_deaths): Likewise.
4521 (setup_insn_reg_pressure_info): Likewise.
4522 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
4523 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
4524 (model_recompute): Likewise.
4525 (must_restore_pattern_p): Likewise for param "next".
4526 (model_excess_cost): Likewise for param "insn".
4527 (queue_remove): Likewise.
4528 (adjust_priority): Likewise for param "prev".
4529 (update_register_pressure): Likewise for param "insn".
4530 (setup_insn_max_reg_pressure): Likewise for local "insn".
4531 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
4532 (model_add_to_schedule): Likewise.
4533 (model_reset_queue_indices): Likewise for local "insn".
4534 (unschedule_insns_until): Strengthen local "recompute_vec" from
4535 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
4536 "con" from rtx to rtx_insn *.
4537 (restore_last_backtrack_point): Likewise for both locals "x". Add
4538 checked casts.
4539 (estimate_insn_tick): Likewise for param "insn".
4540 (commit_schedule): Likewise for params "prev_head", "tail" and
4541 local "x".
4542 (verify_shadows): Likewise for locals "i1", "i2".
4543 (dump_insn_stream): Likewise for params "head", "tail" and locals
4544 "next_tail", "insn".
4545 (schedule_block): Likewise for locals "insn", "x". Add a checked
4546 cast.
4547 (fix_inter_tick): Likewise for params "head", "tail".
4548 (create_check_block_twin): Likewise for local "jump".
4549 (haifa_change_pattern): Likewise for param "insn".
4550 (haifa_speculate_insn): Likewise.
4551 (dump_new_block_header): Likewise for params "head", "tail".
4552 (fix_jump_move): Likewise for param "jump".
4553 (move_block_after_check): Likewise.
4554 (sched_init_insn_luid): Likewise for param "insn".
4555 (sched_init_luids): Likewise for local "insn".
4556 (insn_luid): Likewise for param "insn".
4557 (init_h_i_d): Likewise.
4558 (haifa_init_h_i_d): Likewise for local "insn".
4559 (haifa_init_insn): Likewise for param "insn".
4560 * sched-deps.c (add_dependence): Likewise for local "real_pro",
4561 "other".
4562 (create_insn_reg_use): Likewise for param "insn".
4563 (setup_insn_reg_uses): Likewise. Add a checked cast.
4564 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
4565 "tail" from rtx to rtx_insn *.
4566 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
4567 "insn", "next_tail".
4568
4569 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4570
4571 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
4572 from rtx to rtx_insn *.
4573 (model_add_to_schedule): Likewise for locals "start", "end",
4574 "iter".
4575
4576 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4577
4578 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
4579 rtx_insn *.
4580 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
4581 "to" and locals "insn", "next", "copy". Remove now-redundant
4582 checked cast.
4583
4584 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4585
4586 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
4587 rtx_insn * and param 4 from rtx * to rtx_insn **.
4588 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
4589 param 2 from rtx * to rtx_insn **.
4590
4591 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
4592 rtx_insn * and final param from rtx * to rtx_insn **.
4593
4594 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
4595 from rtx to rtx_insn *.
4596 (try_head_merge_bb): Likewise for both locals named "move_upto".
4597 * df-problems.c (can_move_insns_across): Likewise for params
4598 "from", "to", "across_from", "across_to" and locals "insn",
4599 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
4600 rtx_insn **.
4601 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
4602 from rtx to rtx_insn *.
4603 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
4604 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
4605 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
4606 rtx_insn *.
4607 (noce_try_abs): Likewise.
4608 (noce_get_condition): Likewise for param "jump". Strengthen param
4609 "earliest" from rtx * to rtx_insn **.
4610 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
4611 rtx_insn *.
4612 (find_cond_trap): Likewise.
4613 (dead_or_predicable): Likewise for local "earliest".
4614 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
4615 checked cast.
4616 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
4617 and local "prev". Strengthen param "earliest" from rtx * to
4618 rtx_insn **.
4619 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
4620 Strengthen param "earliest" from rtx * to rtx_insn **.
4621
4622 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4623
4624 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
4625 "to" and local "insn" from rtx to rtx_insn *.
4626
4627 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4628
4629 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
4630 from rtx to rtx_insn *.
4631 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
4632 (code_motion_path_driver): Likewise for local "last_insn".
4633 (simplify_changed_insns): Likewise for local "insn".
4634
4635 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4636
4637 * rtl.h (push_to_sequence): Strengthen param from rtx to
4638 rtx_insn *.
4639 (push_to_sequence2): Likewise for both params.
4640 (delete_insns_since): Likewise for param.
4641 (reorder_insns_nobb): Likewise for all three params.
4642 (set_new_first_and_last_insn): Likewise for both params.
4643
4644 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
4645 rtx_insn *. Remove now-redundant cast.
4646 (set_last_insn): Likewise.
4647
4648 * builtins.c (expand_builtin_return): Strengthen local
4649 "call_fusage" from rtx to rtx_insn *.
4650 * cfgrtl.c (create_basic_block_structure): Likewise for local
4651 "after".
4652 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
4653 "first", "last" and local "insn".
4654 (delete_insns_since): Likewise for param "from".
4655 (reorder_insns_nobb): Likewise for params "from", "to", "after"
4656 and local "x".
4657 (push_to_sequence): Likewise for param "first" and local "last".
4658 (push_to_sequence2): Likewise for params "first" and "last".
4659 * lra.c (emit_add3_insn): Likewise for local "last".
4660 (lra_emit_add): Likewise.
4661 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
4662 "last_insn".
4663 (process_address_1): Likewise for locals "insn", last".
4664 * modulo-sched.c (ps_first_note): Likewise for return type.
4665 * optabs.c (expand_binop_directly): Likewise for param "last".
4666
4667 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4668
4669 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
4670 to rtx_insn*.
4671 * emit-rtl.c (get_last_insn_anywhere): Likewise.
4672
4673 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4674
4675 * function.h (struct sequence_stack): Strengthen fields "first"
4676 and "last" from rtx to rtx_insn *.
4677 (struct emit_status): Likewise for fields "x_first_insn" and
4678 "x_last_insn".
4679
4680 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
4681 (set_first_insn): Add checked cast.
4682 (get_last_insn): Remove now-redundant checked cast.
4683 (set_last_insn): Add checked cast.
4684
4685 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
4686 "saved_first" and "saved_last" from rtx to rtx_insn *.
4687
4688 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4689
4690 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
4691 (unlink_insn_chain): Strengthen both params from rtx to
4692 rtx_insn *.
4693
4694 * cfgrtl.c (cfg_layout_function_header): Likewise for this
4695 variable.
4696 (unlink_insn_chain): Likewise for params "first" and "last".
4697 Remove now-redundant checked cast.
4698 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
4699 (fixup_reorder_chain): Strengthen local "insn" from rtx to
4700 rtx_insn *.
4701 * emit-rtl.c (link_insn_into_chain): Likewise for all three
4702 params.
4703 (add_insn): Likewise for param "insn" and local "prev".
4704 (add_insn_after_nobb): Likewise for both params and local "next".
4705 (add_insn_before_nobb): Likewise for both params and local "prev".
4706 (add_insn_after): Rename param "after" to "uncast_after",
4707 introducing local "after" with another checked cast.
4708 (add_insn_before): Rename params "insn" and "before", giving them
4709 "uncast_" prefixes, adding the old names back using checked casts.
4710 (emit_note_after): Likewise for param "after".
4711 (emit_note_before): Likewise for param "before".
4712 (emit_label): Add a checked cast.
4713
4714 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4715
4716 * cselib.h (cselib_record_sets_hook): Strengthen initial param
4717 "insn" from rtx to rtx_insn *.
4718
4719 * cselib.c (cselib_record_sets_hook): Likewise.
4720
4721 * var-tracking.c (add_with_sets): Likewise, renaming back from
4722 "uncast_insn" to "insn" and eliminating the checked cast from rtx
4723 to rtx_insn *.
4724
4725 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4726
4727 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
4728 and "header_" from rtx to rtx_insn *.
4729 (struct basic_block_d): Likewise for field "head_" within "x"
4730 field of union basic_block_il_dependent.
4731 (BB_HEAD): Drop function...
4732 (SET_BB_HEAD): ...and this function in favor of...
4733 (BB_HEAD): ...reinstate macro.
4734 (BB_END): Drop function...
4735 (SET_BB_END): ...and this function in favor of...
4736 (BB_END): ...reinstate macro.
4737 (BB_HEADER): Drop function...
4738 (SET_BB_HEADER): ...and this function in favor of...
4739 (BB_HEADER): ...reinstate macro.
4740
4741 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
4742 (fix_crossing_unconditional_branches): Likewise.
4743 * caller-save.c (save_call_clobbered_regs): Likewise.
4744 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
4745 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
4746 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
4747 (merge_blocks_move_successor_nojumps): Likewise.
4748 (outgoing_edges_match): Update use of for_each_rtx to
4749 for_each_rtx_in_insn.
4750 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
4751 (expand_gimple_cond): Likewise.
4752 (expand_gimple_tailcall): Likewise.
4753 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
4754 SET_BB_END.
4755 (construct_exit_block): Drop use of SET_BB_END.
4756 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
4757 rtx_insn *.
4758 (delete_insn): Rename param "insn" to "uncast_insn", introducing
4759 a new local "insn" with a checked cast to rtx_insn *. Drop use of
4760 SET_BB_HEAD and SET_BB_END.
4761 (create_basic_block_structure): Drop use of SET_BB_HEAD and
4762 SET_BB_END.
4763 (rtl_delete_block): Drop use of SET_BB_HEAD.
4764 (rtl_split_block): Drop use of SET_BB_END.
4765 (emit_nop_for_unique_locus_between): Likewise.
4766 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
4767 (block_label): Drop use of SET_BB_HEAD.
4768 (fixup_abnormal_edges): Drop use of SET_BB_END.
4769 (record_effective_endpoints): Drop use of SET_BB_HEADER.
4770 (relink_block_chain): Likewise.
4771 (fixup_reorder_chain): Drop use of SET_BB_END.
4772 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
4773 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
4774 rtx_insn **. Drop use of SET_BB_HEADER.
4775 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
4776 SET_BB_HEAD.
4777 (BB_HEAD): Delete this function.
4778 (SET_BB_HEAD): Likewise.
4779 (BB_END): Likewise.
4780 (SET_BB_END): Likewise.
4781 (BB_HEADER): Likewise.
4782 (SET_BB_HEADER): Likewise.
4783 * emit-rtl.c (add_insn_after): Rename param "insn" to
4784 "uncast_insn", adding a new local "insn" and a checked cast to
4785 rtx_insn *. Drop use of SET_BB_END.
4786 (remove_insn): Strengthen locals "next" and "prev" from rtx to
4787 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
4788 (reorder_insns): Drop use of SET_BB_END.
4789 (emit_insn_after_1): Strengthen param "first" and locals "last",
4790 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
4791 (emit_pattern_after_noloc): Add checked cast.
4792 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
4793 (restore_other_notes): Likewise.
4794 (move_insn): Likewise.
4795 (sched_extend_bb): Likewise.
4796 (fix_jump_move): Likewise.
4797 * ifcvt.c (noce_process_if_block): Likewise.
4798 (dead_or_predicable): Likewise.
4799 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
4800 * reg-stack.c (change_stack): Drop use of SET_BB_END.
4801 * sel-sched-ir.c (sel_move_insn): Likewise.
4802 * sel-sched.c (move_nop_to_previous_block): Likewise.
4803
4804 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
4805 SET_BB_END.
4806 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
4807
4808 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4809
4810 * basic-block.h (create_basic_block_structure): Strengthen params
4811 1 "head" and 2 "end" from rtx to rtx_insn *.
4812 * cfgrtl.c (create_basic_block_structure): Likewise.
4813 (rtl_create_basic_block): Update casts from void * to rtx to
4814 rtx_insn *, so that we can pass them as rtx_insn * to
4815 create_basic_block_structure.
4816 * sel-sched-ir.c (sel_create_basic_block): Likewise.
4817
4818 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4819
4820 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
4821 rtx_insn **.
4822 (check_for_inc_dec): Strengthen param "insn" from rtx to
4823 rtx_insn *.
4824
4825 * cselib.h (cselib_process_insn): Likewise.
4826
4827 * cselib.c (cselib_record_sets): Likewise.
4828 (cselib_process_insn): Likewise.
4829
4830 * dse.c (struct insn_info): Likewise for field "insn".
4831 (check_for_inc_dec_1): Likewise for local "insn".
4832 (check_for_inc_dec): Likewise for param "insn".
4833 (scan_insn): Likewise.
4834 (dse_step1): Likewise for local "insn".
4835
4836 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
4837 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
4838
4839 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4840
4841 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
4842 from rtx to rtx_insn *.
4843 (DEP_PRO): Delete this function and...
4844 (SET_DEP_PRO): ...this function in favor of...
4845 (DEP_PRO): ...reinstate this macro.
4846 (DEP_CON): Delete this function and...
4847 (SET_DEP_CON): ...this function in favor of...
4848 (DEP_CON): ...reinstate this old macro.
4849 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
4850 (init_dep): Likewise.
4851 (set_priorities): Likewise for both params.
4852 (sd_copy_back_deps): Likewise for params 1 and 2.
4853
4854 * haifa-sched.c (priority): Likewise for param "insn" and local
4855 "next".
4856 (set_priorities): Likewise for params "head" and "tail" and local
4857 "insn".
4858 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
4859 local "consumer".
4860 (add_to_speculative_block): Add a checked cast.
4861 (create_check_block_twin): Drop use of SET_DEP_CON.
4862 (add_jump_dependencies): Strengthen params "insn" and "jump" from
4863 rtx to rtx_insn *.
4864
4865 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
4866 Drop use of SET_DEP_PRO
4867 (init_dep): Strengthen params "pro" and "con" from rtx to
4868 rtx_insn *.
4869 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
4870 use of SET_DEP_CON.
4871 (DEP_PRO): Delete.
4872 (DEP_CON): Delete.
4873 (SET_DEP_PRO): Delete.
4874 (SET_DEP_CON): Delete.
4875
4876 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4877
4878 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
4879 from rtx to rtx_insn *.
4880 (VINSN_INSN_RTX): Eliminate rvalue function and...
4881 (SET_VINSN_INSN): ...lvalue function in favor of...
4882 (VINSN_INSN_RTX): reinstate this old macro.
4883
4884 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
4885 in favor of VINSN_INSN_RTX.
4886 (VINSN_INSN_RTX): Delete this function.
4887 (SET_VINSN_INSN_RTX): Likewise.
4888
4889 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4890
4891 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
4892 (BND_TO): Delete this function and...
4893 (SET_BND_TO): ...this functions in favor of...
4894 (BND_TO): ...reinstating this macro.
4895 (struct _fence): Strengthen field "executing_insns" from
4896 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
4897 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
4898 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
4899 and param "insn" from rtx to insn_t.
4900 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
4901 rtx_insn *.
4902
4903 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
4904 vec<rtx_insn *> .
4905 (rtx_vec_t): Likewise.
4906 (struct sched_deps_info_def): Strengthen param of "start_insn"
4907 callback from rtx to rtx_insn *. Likewise for param "insn2" of
4908 "note_mem_dep" callback and first param of "note_dep" callback.
4909
4910 * haifa-sched.c (add_to_speculative_block): Strengthen param
4911 "insn" from rtx to rtx_insn *.
4912 (clear_priorities): Likewise.
4913 (calc_priorities): Likewise for local "insn".
4914
4915 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
4916 Remove redundant checked cast.
4917 (haifa_note_mem_dep): Likewise for param "pending_insn".
4918 (haifa_note_dep): Likewise for param "elem".
4919 (note_mem_dep): Likewise for param "e".
4920 (sched_analyze_1): Add checked casts.
4921 (sched_analyze_2): Likewise.
4922
4923 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
4924 from rtx to rtx_insn *.
4925 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
4926 from vec<rtx> * to vec<rtx_insn *> *.
4927
4928 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
4929 scaffolding.
4930 (flist_add): Strengthen param "executing_insns" from
4931 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
4932 (advance_deps_context): Remove now-redundant checked cast.
4933 (init_fences): Replace uses of NULL_RTX with NULL.
4934 (merge_fences): Strengthen params "last_scheduled_insn" and
4935 "sched_next" from rtx to rtx_insn * and "executing_insns" from
4936 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
4937 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
4938 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
4939 an instruction, rather than doing double-duty as a pattern.
4940 (return_nop_to_pool): Update for change of insn_t.
4941 (deps_init_id): Remove now-redundant checked cast.
4942 (struct sched_scan_info_def): Strengthen param of "init_insn"
4943 callback from rtx to insn_t.
4944 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
4945 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
4946 NULL.
4947 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
4948 "end" from rtx to rtx_insn *.
4949 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
4950 (rtx insn_rtx, bool force_unique_p)
4951 (BND_TO): Delete function.
4952 (SET_BND_TO): Delete function.
4953
4954 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
4955 rtx to rtx_insn *.
4956 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
4957 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
4958 rtx to rtx_insn *.
4959 (undo_transformations): Likewise for param "insn".
4960 (update_liveness_on_insn): Likewise.
4961 (compute_live_below_insn): Likewise for param "insn" and local
4962 "succ".
4963 (update_data_sets): Likewise for param "insn".
4964 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
4965 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
4966 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
4967 rtx_insn *.
4968 (move_cond_jump): Likewise for param "insn".
4969 (move_cond_jump): Drop use of SET_BND_TO.
4970 (compute_av_set_on_boundaries): Likewise.
4971 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
4972 (update_and_record_unavailable_insns): Strengthen local "bb_end"
4973 from rtx to rtx_insn *.
4974 (maybe_emit_renaming_copy): Likewise for param "insn".
4975 (maybe_emit_speculative_check): Likewise.
4976 (handle_emitting_transformations): Likewise.
4977 (remove_insn_from_stream): Likewise.
4978 (code_motion_process_successors): Strengthen local "succ" from rtx
4979 to insn_t.
4980
4981 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4982
4983 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
4984 ilist_t, not _xlist_t;
4985 (ILIST_INSN): Define in terms of new union field "insn".
4986 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
4987 _XLIST_NEXT.
4988 (struct _list_node): Add new field "insn" to the union, of type
4989 insn_t.
4990 (ilist_add): Replace macro with an inline function, requiring an
4991 insn_t.
4992 (ilist_remove): Define this macro directly in terms of
4993 _list_remove, rather than indirectly via _xlist_remove.
4994 (ilist_clear): Likewise, in terms of _list_clear rather than
4995 _xlist_clear.
4996 (ilist_is_in_p): Replace macro with an inline function, requiring
4997 an insn_t.
4998 (_list_iter_cond_insn): New function.
4999 (ilist_iter_remove): Define this macro directly in terms of
5000 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
5001 (ilist_iterator): Define directly in terms of _list_iterator
5002 rather than indirectly through _xlist_iterator.
5003 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
5004 than in terms of _FOR_EACH_X.
5005 (FOR_EACH_INSN_1): Likewise.
5006
5007 2014-08-26 Joseph Myers <joseph@codesourcery.com>
5008
5009 PR target/60606
5010 PR target/61330
5011 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
5012 DECL_HARD_REGISTER and return for invalid register specifications.
5013 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
5014 DECL_HARD_REGISTER, call expand_one_error_var.
5015 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
5016 CC_REGNUM with non-MODE_CC modes.
5017 (arm_regno_class): Return NO_REGS for PC_REGNUM.
5018
5019 2014-08-26 Marek Polacek <polacek@redhat.com>
5020
5021 PR c/61271
5022 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
5023
5024 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
5025
5026 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
5027 qi cost; add di cost.
5028 (cortexa57_addrcost_table): Likewise.
5029
5030 2014-08-26 Marek Polacek <polacek@redhat.com>
5031
5032 PR c/61271
5033 * expr.c (is_aligning_offset): Remove logical not.
5034
5035 2014-08-26 Marek Polacek <polacek@redhat.com>
5036
5037 PR c/61271
5038 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
5039 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
5040
5041 2014-08-26 Richard Biener <rguenther@suse.de>
5042
5043 PR tree-optimization/62175
5044 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
5045 expand possibly trapping operations.
5046
5047 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5048
5049 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
5050 "insn" from rtx to rtx_insn *.
5051 (permute_load): Likewise for param "insn".
5052 (permute_store): Likewise.
5053 (handle_special_swappables): Likewise for local "insn".
5054 (replace_swap_with_copy): Likewise for locals "insn" and
5055 "new_insn".
5056 (rs6000_analyze_swaps): Likewise for local "insn".
5057
5058 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5059
5060 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
5061 to rtx_insn *.
5062
5063 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5064
5065 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
5066 "note_list" from rtx to rtx_insn *.
5067 (BB_NOTE_LIST): Replace this function and...
5068 (SET_BB_NOTE_LIST): ...this function with...
5069 (BB_NOTE_LIST): ...the former macro implementation.
5070
5071 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
5072 local "from_start" from rtx to rtx_insn *. Strengthen param
5073 "to_endp" from rtx * to rtx_insn **.
5074
5075 * haifa-sched.c (concat_note_lists): Likewise.
5076 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
5077 BB_NOTE_LIST.
5078 (sel_restore_notes): Likewise.
5079 (move_bb_info): Likewise.
5080 (BB_NOTE_LIST): Delete this function.
5081 (SET_BB_NOTE_LIST): Delete this function.
5082 * sel-sched.c (create_block_for_bookkeeping): Eliminate
5083 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
5084
5085 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5086
5087 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
5088 from rtx * to rtx_insn **.
5089 (reorder2): Likewise.
5090 (dependencies_evaluation_hook): Strengthen params "head", "tail"
5091 from rtx to rtx_insn *.
5092
5093 * doc/tm.texi: Update mechanically for above change to target.def.
5094
5095 * sched-int.h (note_list): Strengthen this variable from rtx to
5096 rtx_insn *.
5097 (remove_notes): Likewise for both params.
5098 (restore_other_notes): Likewise for return type and first param.
5099 (struct ready_list): Strengthen field "vec" from rtx * to
5100 rtx_insn **.
5101 (struct dep_replacement): Strenghten field "insn" from rtx to
5102 rtx_insn *.
5103 (struct deps_desc): Likewise for fields "last_debug_insn",
5104 "last_args_size".
5105 (struct haifa_sched_info): Likewise for callback field
5106 "can_schedule_ready_p"'s param, for first param of "new_ready"
5107 callback field, for both params of "rank" callback field, for
5108 first field of "print_insn" callback field (with a const), for
5109 both params of "contributes_to_priority" callback, for param
5110 of "insn_finishes_block_p" callback, for fields "prev_head",
5111 "next_tail", "head", "tail", for first param of "add_remove_insn"
5112 callback, for first param of "begin_schedule_ready" callback, for
5113 both params of "begin_move_insn" callback, and for second param
5114 of "advance_target_bb" callback.
5115 (add_dependence): Likewise for params 1 and 2.
5116 (sched_analyze): Likewise for params 2 and 3.
5117 (deps_analyze_insn): Likewise for param 2.
5118 (ready_element): Likewise for return type.
5119 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
5120 (try_ready): Strenghten param from rtx to rtx_insn *.
5121 (sched_emit_insn): Likewise for return type.
5122 (record_delay_slot_pair): Likewise for params 1 and 2.
5123 (add_delay_dependencies): Likewise for param.
5124 (contributes_to_priority): Likewise for both params.
5125 (find_modifiable_mems): Likewise.
5126
5127 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
5128 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
5129 "first_older_only_insn" from rtx to rtx_insn *.
5130 (arm_sched_reorder): Strengthen param "ready" from rtx * to
5131 rtx_insn **.
5132
5133 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
5134 "last_scheduled_iter0" from rtx to rtx_insn *.
5135 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
5136 (c6x_sched_reorder_1): Strengthen param "ready" and locals
5137 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
5138 "insn" from rtx to rtx_insn *.
5139 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
5140 rtx_insn **.
5141 (c6x_sched_reorder2): Strengthen param "ready" and locals
5142 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
5143 "insn" from rtx to rtx_insn *.
5144 (c6x_variable_issue): Add a checked cast when assigning from insn
5145 to ss.last_scheduled_iter0.
5146 (split_delayed_branch): Strengthen param "insn" and local "i1"
5147 from rtx to rtx_insn *.
5148 (split_delayed_nonbranch): Likewise.
5149 (undo_split_delayed_nonbranch): Likewise for local "insn".
5150 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
5151 "entry_after", "end_packet", "head_insn", "tail_insn",
5152 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
5153 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
5154 to rtx_insn **. Remove now-redundant checked cast on last_insn,
5155 but add a checked cast on loop->start_label. Consolidate calls to
5156 avoid assigning result of gen_spkernel to "insn", now an
5157 rtx_insn *.
5158
5159 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
5160 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
5161 rtx to rtx_insn *.
5162 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
5163 rtx_insn **. Strengthen locals "top", "next" from rtx to
5164 rtx_insn *.
5165 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
5166 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
5167 (add_parameter_dependencies): Strengthen params "call", "head" and
5168 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
5169 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
5170 (add_dependee_for_func_arg): Likewise for param "arg" and local
5171 "insn".
5172 (ix86_dependencies_evaluation_hook): Likewise for params "head",
5173 "tail" and locals "insn", "first_arg".
5174
5175 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
5176 for params "head", "tail" and locals "insn", "next", "next_tail".
5177 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
5178 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
5179 "insn", "lowest", "highest" from rtx to rtx_insn *.
5180 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
5181 rtx_insn **.
5182 (ia64_sched_reorder2): Likewise.
5183
5184 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
5185 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
5186 from rtx * to rtx_insn **.
5187 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
5188 rtx_insn **.
5189 (mep_print_sched_insn): Strengthen param "insn" from rtx to
5190 rtx_insn *.
5191 (mep_sched_reorder): Strengthen param "ready" from rtx * to
5192 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
5193 to rtx_insn *.
5194
5195 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
5196 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
5197 to rtx_insn *.
5198 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
5199 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
5200 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
5201 rtx_insn **.
5202 (vr4130_reorder): Likewise.
5203 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
5204 rtx to rtx_insn *.
5205 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
5206 rtx_insn **.
5207 (mips_sched_reorder): Likewise.
5208 (mips_sched_reorder2): Likewise.
5209
5210 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
5211
5212 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
5213 Strengthen local "tmp" from rtx to rtx_insn *.
5214 (rs6000_sched_reorder2): Likewise.
5215
5216 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
5217 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
5218 (s390_sched_reorder): Strengthen param "ready" from rtx * to
5219 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
5220
5221 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
5222 "tmp2" from rtx to rtx_insn *.
5223 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
5224 Strengthen local "insn" from rtx to rtx_insn *.
5225 (ready_reorder): Strengthen param "ready" from rtx * to
5226 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
5227 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
5228 (sh_reorder2): Likewise.
5229
5230 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
5231 local "insn" from rtx to rtx_insn *.
5232
5233 * haifa-sched.c (note_list): Strengthen this variable from rtx to
5234 rtx_insn *.
5235 (scheduled_insns): Strengthen this variable from vec<rtx> to
5236 vec<rtx_insn *>.
5237 (set_modulo_params): Likewise for locals "i1", "i2".
5238 (record_delay_slot_pair): Likewise for params "i1", "i2".
5239 (add_delay_dependencies): Likewise for param "insn".
5240 (cond_clobbered_p): Likewise.
5241 (recompute_todo_spec): Likewise for local "prev".
5242 (last_scheduled_insn): Likewise for this variable.
5243 (nonscheduled_insns_begin): Likewise.
5244 (model_set_excess_costs): Strengthen param "insns" from rtx * to
5245 rtx_insn **.
5246 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
5247 rtx_insn *.
5248 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
5249 Strengthen local "insn" from rtx to rtx_insn *.
5250 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
5251 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
5252 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
5253 (ready_remove_first): Likewise for return type and local "t".
5254 (ready_element): Likewise for return type.
5255 (ready_remove): Likewise for return type and local "t".
5256 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
5257 (check_clobbered_conditions): Strengthen local "x" from rtx to
5258 rtx_insn *, adding a checked cast.
5259 (schedule_insn): Likewise for param "insn".
5260 (remove_notes): Likewise for params "head", "tail" and locals
5261 "next_tail", "insn", "next".
5262 (struct haifa_saved_data): Likewise for fields
5263 "last_scheduled_insn", "nonscheduled_insns_begin".
5264 (save_backtrack_point): Update for change to field "vec" of
5265 struct ready_list.
5266 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
5267 rtx_insn **.
5268 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
5269 from rtx to rtx_insn *
5270 (resolve_dependencies): Strengthen param "insn" from rtx to
5271 rtx_insn *
5272 (restore_other_notes): Likewise for return type, for param "head"
5273 and local "note_head".
5274 (undo_all_replacements): Likewise for local "insn".
5275 (first_nonscheduled_insn): Likewise for return type and local "insn".
5276 (queue_to_ready): Likewise for local "insn", adding checked casts.
5277 (early_queue_to_ready): Likewise for local "insn".
5278 (debug_ready_list_1): Strengthen local "p" from rtx * to
5279 rtx_insn **.
5280 (move_insn): Strengthen param "insn" and local "note" from rtx to
5281 rtx_insn *
5282 (insn_finishes_cycle_p): Likewise for param "insn".
5283 (max_issue): Likewise for local "insn".
5284 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
5285 to rtx_insn **.
5286 (commit_schedule): Strengthen param "prev_head" and local "insn"
5287 from rtx to rtx_insn *
5288 (prune_ready_list): Likewise for local "insn".
5289 (schedule_block): Likewise for locals "prev_head", "head", "tail",
5290 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
5291 (set_priorities): Likewise for local "prev_head".
5292 (try_ready): Likewise for param "next".
5293 (fix_tick_ready): Likewise.
5294 (change_queue_index): Likewise.
5295 (sched_extend_ready_list): Update for change to field "vec" of
5296 struct ready_list.
5297 (generate_recovery_code): Strengthen param "insn" from rtx to
5298 rtx_insn *.
5299 (begin_speculative_block): Likewise.
5300 (create_check_block_twin): Likewise for param "insn" and locals
5301 "label", "check", "twin". Introduce local "check_pat" to avoid
5302 "check" being used as a plain rtx before being used as an insn.
5303 (fix_recovery_deps): Add a checked cast to rtx_insn * when
5304 extracting elements from ready_list.
5305 (sched_remove_insn): Strengthen param "insn" from rtx to
5306 rtx_insn *.
5307 (sched_emit_insn): Likewise for return type.
5308 (ready_remove_first_dispatch): Likewise for return type and local
5309 "insn".
5310
5311 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
5312
5313 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
5314 const rtx_insn *.
5315
5316 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
5317 from rtx to rtx_insn *.
5318 (add_dependence_list): Likewise for param "insn". Add a checked
5319 cast.
5320 (add_dependence_list_and_free): Strengthen param "insn" from rtx
5321 to rtx_insn *. Strengthen param "list_p" from rtx * to
5322 rtx_insn **.
5323 (chain_to_prev_insn): Strengthen param "insn" and locals
5324 "prec_nonnote", "i" from rtx to rtx_insn *.
5325 (flush_pending_lists): Likewise for param "insn".
5326 (cur_insn): Likewise for this variable.
5327 (haifa_start_insn): Add a checked cast.
5328 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
5329 (sched_analyze_reg): Likewise for param "insn".
5330 (sched_analyze_1): Likewise.
5331 (sched_analyze_2): Likewise. Add checked casts.
5332 (sched_analyze_insn): Likewise. Also for local "prev".
5333 (deps_analyze_insn): Likewise for param "insn".
5334 (sched_analyze): Likewise for params "head", "tail" and local "insn".
5335 (add_dependence_1): Likewise for params "insn", "elem".
5336 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
5337 (parse_add_or_inc): Likewise for param "insn".
5338 (find_inc): Likewise for local "inc_cand".
5339 (find_modifiable_mems): Likewise for params "head", "tail" and
5340 locals "insn", "next_tail".
5341
5342 * sched-ebb.c (init_ready_list): Likewise for local "insn".
5343 (begin_schedule_ready): Likewise for param "insn".
5344 (begin_move_insn): Likewise for params "insn" and "last".
5345 (ebb_print_insn): Strengthen param "insn" from const_rtx to
5346 const rtx_insn *.
5347 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
5348 (ebb_contributes_to_priority): Likewise for params "next", "insn".
5349 (ebb_add_remove_insn): Likewise for param "insn".
5350 (advance_target_bb): Likewise.
5351
5352 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
5353 "insn".
5354 (check_live): Likewise for param "insn".
5355 (init_ready_list): Likewise for local "insn".
5356 (can_schedule_ready_p): Likewise for param "insn".
5357 (begin_schedule_ready): Likewise.
5358 (new_ready): Likewise for param "next".
5359 (rgn_print_insn): Likewise for param "insn".
5360 (rgn_rank): Likewise for params "insn1", "insn2".
5361 (contributes_to_priority): Likewise for params "next", "insn".
5362 (rgn_insn_finishes_block_p): Likewise for param "insn".
5363 (add_branch_dependences): Likewise for params "head", "tail" and
5364 locals "insn", "last".
5365 (rgn_add_remove_insn): Likewise for param "insn".
5366 (advance_target_bb): Likewise.
5367
5368 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
5369 const_rtx to const rtx_insn *.
5370
5371 * sel-sched-dump.h (sel_print_insn): Likewise.
5372
5373 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
5374 (deps_init_id): Likewise.
5375
5376 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
5377 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
5378 rtx_insn **.
5379
5380 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5381
5382 * output.h (final_start_function): Strengthen param 1 from rtx to
5383 rtx_insn *.
5384
5385 * final.c (final_start_function): Likewise, renaming back from
5386 "uncast_first" to "first", and dropping the checked cast from rtx
5387 to rtx_insn *.
5388
5389 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5390
5391 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
5392 * final.c (final): Likewise. Rename param back from
5393 "uncast_first" to "first" and eliminate the checked cast from rtx
5394 to rtx_insn *.
5395
5396 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5397
5398 * output.h (shorten_branches): Strengthen param from rtx to
5399 rtx_insn *.
5400
5401 * final.c (shorten_branches): Likewise, renaming param back from
5402 "uncast_first" to "first", and dropping the checked cast from rtx
5403 to rtx_insn *.
5404
5405 * genattr.c (gen_attr): Likewise when writing out the prototype of
5406 shorten_branches.
5407
5408 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5409
5410 * sched-int.h (struct haifa_sched_info): Strengthen fields
5411 "prev_head" and "next_tail" from rtx to rtx_insn *.
5412
5413 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5414
5415 * rtl.h (rtx_jump_table_data::get_labels): New method.
5416 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
5417 with use of the new rtx_jump_table_data::get_labels method.
5418 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
5419 to rtx_jump_table_data *. Simplify by using get_labels method.
5420 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
5421 a dyn_cast, introducing local "table", using it to replace
5422 label-lookup logic with a get_labels method call.
5423 (patch_jump_insn): Simplify using get_labels method.
5424 * dwarf2cfi.c (create_trace_edges): Likewise.
5425 * rtlanal.c (label_is_jump_target_p): Likewise.
5426
5427 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5428
5429 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
5430 to rtx_insn *.
5431
5432 * emit-rtl.c (unshare_all_rtl_1): Likewise.
5433 (unshare_all_rtl_again): Likewise, also for local "p".
5434
5435 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5436
5437 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
5438 to rtx_insn *.
5439 * cfgrtl.c (delete_insn_and_edges): Likewise.
5440
5441 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5442
5443 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
5444 from rtx to rtx_insn *.
5445
5446 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
5447
5448 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5449
5450 * function.c (thread_prologue_and_epilogue_insns): Likewise for
5451 locals "returnjump", "epilogue_end", "insn", "next".
5452
5453 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
5454 "returnjump" from rtx * to rtx_insn **.
5455 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
5456
5457 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5458
5459 * basic-block.h (struct edge_def). Strengthen "r" within
5460 union edge_def_insns from rtx to rtx_insn *.
5461
5462 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
5463 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
5464 rtx_insn *.
5465 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
5466 from rtx to rtx_insn *.
5467 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
5468 rtx_insn *.
5469 * postreload-gcse.c (reg_killed_on_edge): Likewise.
5470 (reg_used_on_edge): Likewise.
5471 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
5472 (gt_pch_nx): New overload for rtx_insn *&.
5473 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
5474 from rtx to rtx_insn *.
5475
5476 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5477
5478 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
5479 from rtx to rtx_insn *.
5480 (BB_FOOTER): Replace function with access macro.
5481 (SET_BB_FOOTER): Delete.
5482
5483 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
5484 with BB_FOOTER.
5485 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5486 (emit_barrier_after_bb): Likewise.
5487 (record_effective_endpoints): Likewise.
5488 (relink_block_chain): Likewise.
5489 (fixup_fallthru_exit_predecessor): Likewise.
5490 (cfg_layout_duplicate_bb): Likewise.
5491 (cfg_layout_split_block): Likewise.
5492 (cfg_layout_delete_block): Likewise.
5493 (cfg_layout_merge_blocks): Likewise.
5494 (BB_FOOTER): Delete function.
5495 (SET_BB_FOOTER): Delete function.
5496 * combine.c (update_cfg_for_uncondjump): Replace uses of
5497 SET_BB_FOOTER with BB_FOOTER.
5498
5499 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5500
5501 * except.h (struct eh_landing_pad_d): Strengthen field
5502 "landing_pad" from rtx to rtx_code_label *.
5503
5504 * except.c (sjlj_emit_dispatch_table): Likewise for param
5505 "dispatch_label"
5506 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
5507
5508 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5509
5510 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
5511 first param from rtx to rtx_insn *.
5512 * config/xtensa/xtensa.c (struct machine_function): Likewise for
5513 field "set_frame_ptr_insn".
5514 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
5515 "csend" from rtx to rtx_code_label *.
5516 (xtensa_expand_atomic): Likewise for local "csloop".
5517 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
5518 rtx_insn *.
5519 (xtensa_call_tls_desc): Likewise for return type and locals
5520 "call_insn", "insns".
5521 (xtensa_legitimize_tls_address): Likewise for local "insns".
5522 (xtensa_expand_prologue): Likewise for locals "insn", "first".
5523
5524 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5525
5526 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
5527 first param from rtx to rtx_insn *.
5528 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
5529 "insn".
5530
5531 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5532
5533 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
5534 Strengthen param 1 from rtx to rtx_insn *.
5535 (tilepro_output_cbranch): Likewise.
5536 (tilepro_adjust_insn_length): Likewise.
5537 (tilepro_final_prescan_insn): Likewise for sole param.
5538
5539 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
5540 Likewise for local "last".
5541 (cbranch_predicted_p): Likewise for param "insn".
5542 (tilepro_output_simple_cbranch_with_opcode): Likewise.
5543 (tilepro_output_cbranch_with_opcode): Likewise.
5544 (tilepro_output_cbranch): Likewise.
5545 (frame_emit_load): Likewise for return type and locals "seq",
5546 "insn".
5547 (emit_sp_adjust): Likewise for return type and local "insn".
5548 (tilepro_expand_epilogue): Likewise for locals "last_insn",
5549 "insn".
5550 (tilepro_adjust_insn_length): Likewise for param "insn".
5551 (next_insn_to_bundle): Likewise for return type and params
5552 "r", "end".
5553 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
5554 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
5555 local "new_insns".
5556 (match_addli_pcrel): Likewise for param "insn".
5557 (replace_addli_pcrel): Likewise.
5558 (match_auli_pcrel): Likewise.
5559 (replace_auli_pcrel): Likewise.
5560 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
5561 "next_insn".
5562 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
5563 "queue", "next_queue", "prev".
5564 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
5565 (tilepro_final_prescan_insn): Likewise for param "insn".
5566
5567 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5568
5569 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
5570 Strengthen param 1 from rtx to rtx_insn *.
5571 (tilegx_output_cbranch): Likewise.
5572 (tilegx_adjust_insn_length): Likewise.
5573 (tilegx_final_prescan_insn): Likewise for sole param.
5574
5575 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
5576 or local "last".
5577 (cbranch_predicted_p): Likewise for param "insn".
5578 (tilegx_output_simple_cbranch_with_opcode): Likewise.
5579 (tilegx_output_cbranch_with_opcode): Likewise.
5580 (tilegx_output_cbranch): Likewise.
5581 (frame_emit_load): Likewise for return type.
5582 (set_frame_related_p): Likewise for locals "seq", "insn".
5583 (emit_sp_adjust): Likewise for return type, and for local "insn".
5584 Introduce local "pat" for use in place of "insn" where the latter
5585 isn't an instruction.
5586 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
5587 from rtx to rtx_insn *.
5588 (tilegx_adjust_insn_length): Likewise for param "insn".
5589 (next_insn_to_bundle): Likewise for return type and params "r" and
5590 "end".
5591 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
5592 "end".
5593 (replace_insns): Likewise for params "old_insn", "new_insns".
5594 (replace_mov_pcrel_step1): Likewise for param "insn" and local
5595 "new_insns".
5596 (replace_mov_pcrel_step2): Likewise.
5597 (replace_mov_pcrel_step3): Likewise.
5598 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
5599 "next_insn".
5600 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
5601 "queue", "next_queue", "prev".
5602 (tilegx_output_mi_thunk): Likewise for local "insn".
5603 (tilegx_final_prescan_insn): Likewise for param "insn".
5604
5605 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5606
5607 * config/spu/spu.c (frame_emit_store): Strengthen return type from
5608 rtx to rtx_insn *.
5609 (frame_emit_load): Likewise.
5610 (frame_emit_add_imm): Likewise, also for local "insn".
5611 (spu_expand_prologue): Likewise for local "insn".
5612 (struct spu_bb_info): Likewise for field "prop_jump".
5613 (emit_nop_for_insn): Likewise for param "insn" and local
5614 "new_insn".
5615 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
5616 "hbr_insn".
5617 (spu_emit_branch_hint): Likewise for params "before", "branch" and
5618 locals "hint", "insn".
5619 (get_branch_target): Likewise for param "branch".
5620 (insn_clobbers_hbr): Likewise for param "insn".
5621 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
5622 locals "insn", "before_4", "before_16".
5623 (insert_hbrp): Likewise for local "insn".
5624 (spu_machine_dependent_reorg): Likewise for locals "branch",
5625 "insn", "next", "bbend".
5626 (uses_ls_unit): Likewise for param "insn".
5627 (get_pipe): Likewise.
5628 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
5629 introducing a checked cast.
5630 (spu_sched_adjust_cost): Likewise for params "insn" and
5631 "dep_insn".
5632 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
5633 (spu_sms_res_mii): Likewise.
5634
5635 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5636
5637 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
5638 from rtx to rtx_insn *.
5639 (output_cbranch): Likewise for param 6.
5640 (output_return): Likewise for param 1.
5641 (output_sibcall): Likewise.
5642 (output_v8plus_shift): Likewise.
5643 (output_v8plus_mult): Likewise.
5644 (output_v9branch): Likewise for param 7.
5645 (output_cbcond): Likewise for param 3.
5646
5647 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
5648 for local "insn".
5649 (sparc_legitimize_pic_address): Likewise.
5650 (sparc_emit_call_insn): Likewise.
5651 (emit_save_or_restore_regs): Likewise.
5652 (emit_window_save): Likewise for return type and local "insn".
5653 (sparc_expand_prologue): Likewise for local "insn".
5654 (sparc_flat_expand_prologue): Likewise.
5655 (output_return): Likewise for param "insn".
5656 (output_sibcall): Likewise for param "insn" and local "delay".
5657 (output_ubranch): Likewise for param "insn".
5658 (output_cbranch): Likewise.
5659 (output_cbcond): Likewise.
5660 (output_v9branch): Likewise.
5661 (output_v8plus_shift): Likewise.
5662 (sparc_output_mi_thunk): Likewise for local "insn".
5663 (get_some_local_dynamic_name): Likewise.
5664 (output_v8plus_mult): Likewise for param "insn".
5665
5666 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5667
5668 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
5669 from rtx to rtx_insn *.
5670 (output_branchy_insn): Likewise for param 3.
5671 (output_far_jump): Likewise for param 1.
5672 (final_prescan_insn): Likewise.
5673 (sh_insn_length_adjustment): Likewise for sole param.
5674
5675 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
5676 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
5677 rtx_code_label *.
5678 (sh_emit_compare_and_set): Likewise for local "lab".
5679 (output_far_jump): Strengthen param "insn" and local "prev" from
5680 rtx to rtx_insn *.
5681 (output_branchy_insn): Likewise for param "insn" and local
5682 "next_insn".
5683 (output_ieee_ccmpeq): Likewise for param "insn".
5684 (struct label_ref_list_d): Strengthen field "label" from rtx to
5685 rtx_code_label *.
5686 (pool_node): Likewise.
5687 (pool_window_label): Likewise for this global.
5688 (add_constant): Likewise for return type and locals "lab", "new_rtx".
5689 (dump_table): Strengthen params "start", "barrier" and local
5690 "scan" from rtx to rtx_insn *.
5691 (broken_move): Likewise for param "insn".
5692 (untangle_mova): Likewise for params "first_mova" and "new_mova".
5693 Strengthen param "first_mova" from rtx * to rtx_insn **.
5694 (mova_p): Likewise for param "insn".
5695 (fixup_mova): Likewise for param "mova".
5696 (find_barrier): Likewise for return type, params "mova" and
5697 "from", and locals "barrier_before_mova", "found_barrier",
5698 "good_barrier", "orig", "last_symoff", "next". Strengthen local
5699 "label" from rtx to rtx_code_label *.
5700 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
5701 rtx to rtx_insn *.
5702 (sh_reorg): Likewise for locals "link", "scan", "barrier".
5703 (split_branches): Likewise for param "first" and local "insn".
5704 (final_prescan_insn): Likewise for param "insn".
5705 (sequence_insn_p): Likewise for locals "prev", "next".
5706 (sh_insn_length_adjustment): Likewise for param "insn".
5707 (sh_can_redirect_branch): Likewise for local "insn".
5708 (find_r0_life_regions): Likewise for locals "end", "insn".
5709 (sh_output_mi_thunk): Likewise for local "insns".
5710
5711 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5712
5713 * config/score/score.c (score_output_mi_thunk): Strengthen local
5714 "insn" from rtx to rtx_insn *.
5715 (score_prologue): Likewise.
5716
5717 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5718
5719 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
5720 1 from rtx to rtx_insn *.
5721 (s390_emit_jump): Likewise for return type.
5722 (s390_emit_call): Likewise.
5723 (s390_load_got): Likewise.
5724
5725 * config/s390/s390.c (last_scheduled_insn): Likewise for this
5726 variable.
5727 (s390_match_ccmode): Likewise for param "insn".
5728 (s390_emit_jump): Likewise for return type.
5729 (s390_split_branches): Likewise for local "label".
5730 (struct constant): Strengthen field "label" from rtx to
5731 rtx_code_label *.
5732 (struct constant_pool): Likewise for field "label". Strengthen
5733 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
5734 rtx_insn *.
5735 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
5736 insns.
5737 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
5738 (s390_end_pool): Likewise.
5739 (s390_dump_pool): Likewise for local "insn".
5740 (s390_mainpool_start): Likewise.
5741 (s390_chunkify_start): Likewise.
5742 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
5743 with insns. Strengthen locals "label", "jump", "barrier", "next",
5744 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
5745 (s390_chunkify_finish): Strengthen local "insn" from rtx to
5746 rtx_insn *.
5747 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
5748 "jump", "label", "next_insn".
5749 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
5750 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
5751 "tbegin_insn".
5752 (s390_load_got): Likewise for return type and local "insns".
5753 (s390_save_gprs_to_fprs): Likewise for local "insn".
5754 (s390_restore_gprs_from_fprs): Likewise.
5755 (pass_s390_early_mach::execute): Likewise.
5756 (s390_emit_prologue): Likewise for local "insns".
5757 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
5758 rtx_code_label *.
5759 (s390_emit_call): Strengthen return type and local "insn" from
5760 rtx to rtx_insn *.
5761 (s390_emit_tpf_eh_return): Likewise for local "insn".
5762 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
5763 "next_insn", introducing locals "s_pat", "rpat" to allow this.
5764 (s390_fix_long_loop_prediction): Likewise for param "insn" and
5765 local "cur_insn".
5766 (s390_non_addr_reg_read_p): Likewise for param "insn".
5767 (find_cond_jump): Likewise for return type and param "insn".
5768 (s390_swap_cmp): Likewise for param "insn".
5769 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
5770 "prev_insn", "next_insn".
5771 (s390_reorg): Likewise for locals "insn", "target".
5772 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
5773 (s390_sched_variable_issue): For now, rename param "insn" to
5774 "uncast_insn", introducing a checked cast.
5775 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
5776 insn.
5777 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
5778 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
5779
5780 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5781
5782 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
5783 param from rtx to rtx_insn *.
5784 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
5785
5786 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5787
5788 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
5789 4 from rtx to rtx_insn *.
5790 (rs6000_final_prescan_insn): Likewise for first param.
5791 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
5792 local "insn".
5793 (rs6000_get_some_local_dynamic_name): Likewise.
5794 (output_cbranch): Likewise for param "insn".
5795 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
5796 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
5797 (rs6000_emit_allocate_stack): Likewise for local "insn".
5798 (load_cr_save): Likewise.
5799 (restore_saved_cr): Likewise.
5800 (restore_saved_lr): Likewise.
5801 (emit_cfa_restores): Likewise.
5802 (rs6000_output_function_epilogue): Likewise for locals "insn" and
5803 "deleted_debug_label".
5804 (rs6000_output_mi_thunk): Likewise for local "insn".
5805 (rs6000_final_prescan_insn): Likewise for param "insn".
5806
5807 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5808
5809 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
5810 Strengthen param "insn" from rtx to rtx_insn *.
5811 * config/picochip/picochip.c (picochip_current_prescan_insn):
5812 Likewise for this variable.
5813 (picochip_final_prescan_insn): Likewise for param "insn".
5814
5815 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5816
5817 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
5818 from rtx to rtx_insn *.
5819 (pa_output_indirect_call): Likewise.
5820 (pa_adjust_insn_length): Likewise.
5821 (pa_attr_length_millicode_call): Likewise.
5822 (pa_attr_length_call): Likewise.
5823 (pa_attr_length_indirect_call): Likewise.
5824
5825 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
5826 "insn".
5827 (pa_attr_length_millicode_call): Likewise.
5828 (pa_attr_length_call): Likewise.
5829 (pa_output_call): Likewise.
5830 (pa_attr_length_indirect_call): Likewise.
5831 (pa_output_indirect_call): Likewise.
5832
5833 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5834
5835 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
5836 Strengthen first param from rtx to rtx_insn *.
5837 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
5838 param "insn".
5839
5840 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5841
5842 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
5843 type from rtx to rtx_insn *.
5844 (mips_expand_call): Likewise.
5845 (mips_adjust_insn_length): Likewise for first param.
5846 (mips_output_conditional_branch): Likewise.
5847 (mips_output_order_conditional_branch): Likewise.
5848 (mips_final_prescan_insn): Likewise.
5849
5850 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
5851 rtx_insn * for the SEQUENCE case.
5852 (SEQ_END): Likewise.
5853 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
5854 (mips_emit_call_insn): Likewise, also for local "insn".
5855 (mips16_gp_pseudo_reg): Likewise for local "scan".
5856 (mips16_build_call_stub): Likewise for return type and for local
5857 "insn". Introduce a new local "pattern" so that "insn" can indeed
5858 be an insn.
5859 (mips_expand_call): Strengthen return type and local "insn" from
5860 rtx to rtx_insn *.
5861 (mips_block_move_loop): Strengthen local "label" from rtx to
5862 rtx_code_label *.
5863 (mips_expand_synci_loop): Likewise for locals "label",
5864 "end_label".
5865 (mips_set_frame_expr): Strengthen local "insn" from rtx to
5866 rtx_insn *.
5867 (mips16e_collect_argument_saves): Likewise for locals "insn",
5868 "next".
5869 (mips_find_gp_ref): Likewise for param of callback for "pred"
5870 param, and for local "insn".
5871 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
5872 (mips_insn_has_flexible_gp_ref_p): Likewise.
5873 (mips_epilogue_emit_cfa_restores): Likewise for return type and
5874 local "insn".
5875 (mips_epilogue_set_cfa): Likewise for local "insn".
5876 (mips_expand_epilogue): Likewise.
5877 (mips_adjust_insn_length): Likewise for param "insn".
5878 (mips_output_conditional_branch): Likewise.
5879 (mips_output_order_conditional_branch): Likewise.
5880 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
5881 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
5882 "falu2_turn_enabled_insn".
5883 (mips_builtin_branch_and_move): Strengthen locals "true_label",
5884 "done_label" from rtx to rtx_code_label *.
5885 (struct mips16_constant): Likewise for field "label".
5886 (mips16_add_constant): Likewise for return type.
5887 (mips16_emit_constants_1): Strengthen return type and param "insn"
5888 from rtx to rtx_insn *.
5889 (mips16_emit_constants): Likewise for param "insn".
5890 (mips16_insn_length): Likewise.
5891 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
5892 to rtx_code_label *.
5893 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
5894 from rtx to rtx_insn *.
5895 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
5896 "jump". Strengthen local "label" from rtx to rtx_code_label *.
5897 (r10k_simplify_address): Strengthen param "insn" and local
5898 "def_insn" from rtx to rtx_insn *.
5899 (r10k_safe_address_p): Strengthen param "insn" from rtx to
5900 rtx_insn *.
5901 (r10k_needs_protection_p_1): Update target type of cast of data
5902 from to rtx to rtx_insn *.
5903 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
5904 rtx * to rtx_insn **.
5905 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
5906 rtx_insn *.
5907 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
5908 (mips_call_expr_from_insn): Likewise for param "insn".
5909 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
5910 (mips_find_pic_call_symbol): Likewise for param "insn".
5911 (mips_annotate_pic_calls): Likewise for local "insn".
5912 (mips_sim_insn): Likewise for this variable.
5913 (struct mips_sim): Likewise for field "insn" within elements of
5914 last_set array.
5915 (mips_sim_wait_reg): Likewise for param "insn".
5916 (mips_sim_wait_regs): Likewise.
5917 (mips_sim_wait_units): Likewise.
5918 (mips_sim_wait_insn): Likewise.
5919 (mips_sim_issue_insn): Likewise.
5920 (mips_sim_finish_insn): Likewise.
5921 (mips_seq_time): Likewise for param "seq" and local "insn".
5922 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
5923 locals "first", "second".
5924 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
5925 "last", "last2", "next".
5926 (mips_avoid_hazard): Likewise for params "after", "insn".
5927 (mips_reorg_process_insns): Likewise for locals "insn",
5928 "last_insn", "subinsn", "next_insn".
5929 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
5930 (mips16_split_long_branches): Likewise for locals "insn" "jump",
5931 "jump_sequence".
5932 (mips_output_mi_thunk): Likewise for local "insn".
5933 (mips_final_prescan_insn): Likewise for param "insn".
5934
5935 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5936
5937 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
5938 Strengthen return type and local "insns" from rtx to rtx_insn *.
5939 (microblaze_legitimize_tls_address): Likewise for local "insns".
5940 (microblaze_block_move_loop): Strengthen local "label" from rtx
5941 to rtx_code_label *.
5942 (microblaze_expand_prologue): Strengthen two locals named "insn"
5943 from rtx to rtx_insn *.
5944 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
5945 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
5946 "insn". Strengthen locals "div_label", "div_end_label" from rtx
5947 to rtx_code_label *.
5948
5949 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5950
5951 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
5952 param from rtx to rtx_insn *.
5953 (mep_reuse_lo): Likewise for third param.
5954 (mep_use_post_modify_p): Likewise for first param.
5955 (mep_core_address_length): Likewise.
5956 (mep_cop_address_length): Likewise.
5957 (mep_final_prescan_insn): Likewise.
5958 (mep_store_data_bypass_p): Likewise for both params.
5959 (mep_mul_hilo_bypass_p): Likewise.
5960 (mep_ipipe_ldc_p): Likewise for param.
5961
5962 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
5963 (mep_rewrite_mult): Likewise.
5964 (mep_rewrite_mulsi3): Likewise.
5965 (mep_rewrite_maddsi3): Likewise.
5966 (mep_reuse_lo_p_1): Likewise.
5967 (mep_reuse_lo_p): Likewise.
5968 (mep_frame_expr): Likewise.
5969 (mep_make_parallel): Likewise for both params.
5970 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
5971 local "insn".
5972 (mep_use_post_modify_p): Likewise for param "insn".
5973 (mep_core_address_length): Likewise.
5974 (mep_cop_address_length): Likewise.
5975 (mep_reg_set_in_function): Likewise for local "insn".
5976 (mep_asm_without_operands_p): Likewise.
5977 (F): Likewise for return type and param "x".
5978 (add_constant): Likewise for local "insn".
5979 (maybe_dead_move): Likewise for return type and local "insn".
5980 (mep_expand_prologue): Likewise for local "insn".
5981 (mep_final_prescan_insn): Likewise for param "insn".
5982 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
5983 "next", "follow", "x".
5984 (mep_insert_repeat_label_last): Likewise for return type, param
5985 "last_insn", and locals "next", "prev". Strengthen param "label"
5986 from rtx to rtx_code_label *.
5987 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
5988 rtx_insn *.
5989 (struct mep_doloop_end): Likewise for fields "insn" and
5990 "fallthrough".
5991 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
5992 Strengthen local "repeat_label" from rtx to rtx_code_label *.
5993 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
5994 rtx_insn *.
5995 (mep_invert_branch): Likewise for params "insn" and "after".
5996 (mep_reorg_erepeat): Likewise for param "insns" and locals
5997 "insn", "prev", "new_last", "barrier", "user". Strengthen local
5998 "l" from rtx to rtx_code_label *.
5999 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
6000 from rtx to rtx_insn *.
6001 (mep_reorg_addcombine): Likewise for param "insns" and locals
6002 "i", "n".
6003 (add_sp_insn_p): Likewise for param "insn".
6004 (mep_reorg_noframe): Likewise for param "insns" and locals
6005 "start_frame_insn", "end_frame_insn", "next".
6006 (mep_reorg): Likewise for local "insns".
6007 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
6008 cast.
6009 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
6010 (mep_mul_hilo_bypass_p): Likewise.
6011 (mep_ipipe_ldc_p): Likewise for param "insn".
6012 (mep_make_bundle): Likewise for return type, param "cop" and local
6013 "insn", splitting out the latter into a new local "seq" for when it
6014 is a SEQUENCE rather than an insn.
6015 (core_insn_p): Likewise for param "insn".
6016 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
6017 "last", "first", "note", "prev", "core_insn".
6018
6019 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6020
6021 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
6022 rtx to rtx_insn *.
6023 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
6024 (m68k_final_prescan_insn): Likewise for first param.
6025
6026 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
6027 (m68k_set_frame_related): Likewise for param "insn".
6028 (output_btst): Likewise for param "insn".
6029 (m68k_final_prescan_insn): Likewise.
6030 (m68k_move_to_reg): Likewise for local "insn".
6031 (m68k_call_tls_get_addr): Likewise for local "insns".
6032 (m68k_call_m68k_read_tp): Likewise.
6033 (strict_low_part_peephole_ok): Likewise for param "first_insn".
6034 (m68k_output_mi_thunk): Likewise for local "insn".
6035
6036 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6037
6038 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
6039 first param from rtx to rtx_insn *.
6040 (iq2000_adjust_insn_length): Likewise.
6041 (iq2000_output_conditional_branch): Likewise.
6042 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
6043 "insn" and local "nop_insn".
6044 (iq2000_annotate_frame_insn): Likewise for param "insn".
6045 (iq2000_expand_prologue): Likewise for both locals "insn".
6046 (iq2000_adjust_insn_length): Likewise for param "insn".
6047 (iq2000_output_conditional_branch): Likewise.
6048
6049 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6050
6051 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
6052 "insns" from rtx to rtx_insn *.
6053 (ia64_emit_cond_move): Likewise for locals "insn", "first".
6054 (struct spill_fill_data): Likewise for field "init_after" and for
6055 elements of array field "prev_insn".
6056 (spill_restore_mem): Likewise for locals "insn", "first".
6057 (do_spill): Likewise for local "insn".
6058 (do_restore): Likewise.
6059 (ia64_expand_prologue): Likewise.
6060 (ia64_expand_epilogue): Likewise.
6061 (emit_insn_group_barriers): Likewise for locals "insn",
6062 "last_label".
6063 (emit_all_insn_group_barriers): Likewise for locals "insn",
6064 "last".
6065 (dfa_stop_insn): Likewise for this global.
6066 (dfa_pre_cycle_insn): Likewise.
6067 (ia64_nop): Likewise.
6068 (final_emit_insn_group_barriers): Likewise for locals "insn",
6069 "last".
6070 (emit_predicate_relation_info): Likewise for locals "head", "n",
6071 "insn", "b", "a".
6072 (ia64_reorg): Likewise for local "insn".
6073 (ia64_output_mi_thunk): Likewise.
6074 (expand_vec_perm_interleave_2): Likewise for local "seq".
6075
6076 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6077
6078 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
6079 param 1 "insn" from rtx to rtx_insn *.
6080 (ix86_use_lea_for_mov): Likewise.
6081 (ix86_avoid_lea_for_addr): Likewise.
6082 (ix86_split_lea_for_addr): Likewise.
6083 (ix86_lea_for_add_ok): Likewise.
6084 (ix86_output_call_insn): Likewise.
6085
6086 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
6087 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
6088 (ix86_output_function_epilogue): Likewise for locals "insn",
6089 "deleted_debug_label".
6090 (legitimize_tls_address): Likewise for local "insn".
6091 (get_some_local_dynamic_name): Likewise.
6092 (increase_distance): Likewise for params "prev", "next".
6093 (distance_non_agu_define_in_bb): Likewise for params "insn",
6094 "start" and locals "prev", "next".
6095 (distance_non_agu_define): Likewise for param "insn".
6096 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
6097 locals "next", "prev".
6098 (distance_agu_use): Likewise for param "insn".
6099 (ix86_lea_outperforms): Likewise.
6100 (ix86_ok_to_clobber_flags): Likewise.
6101 (ix86_avoid_lea_for_add): Likewise.
6102 (ix86_use_lea_for_mov): Likewise.
6103 (ix86_avoid_lea_for_addr): Likewise.
6104 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
6105 (ix86_split_lea_for_addr): Likewise for param "insn".
6106 (ix86_lea_for_add_ok): Likewise for param "insn".
6107 (ix86_expand_carry_flag_compare): Likewise for local
6108 "compare_seq".
6109 (ix86_expand_int_movcc): Likewise.
6110 (ix86_output_call_insn): Likewise for param "insn".
6111 (ix86_output_call_insn): Likewise for local "i".
6112 (x86_output_mi_thunk): Introduce local "insn", using it in place
6113 of "tmp" when dealing with insns.
6114 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
6115 "start".
6116 (ix86_pad_returns): Likewise for locals "ret", "prev".
6117 (ix86_count_insn_bb): Likewise for local "insn".
6118 (ix86_pad_short_function): Likewise for locals "ret", "insn".
6119 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
6120 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
6121 (expand_vec_perm_interleave2): Likewise for local "seq".
6122 (expand_vec_perm_vperm2f128_vblend): Likewise.
6123 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
6124 call to for_each_rtx with for_each_rtx_in_insn.
6125
6126 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6127
6128 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
6129 "label" from rtx to rtx_code_label *.
6130 (ix86_expand_prologue): Likewise.
6131 (ix86_expand_split_stack_prologue): Likewise for locals "label",
6132 "varargs_label".
6133 (ix86_split_idivmod): Likewise for locals "end_label" and
6134 "qimode_label".
6135 (ix86_expand_branch): Likewise for local "label2".
6136 (ix86_expand_aligntest): Likewise for return type and local "label".
6137 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
6138 "top_label".
6139 (expand_movmem_epilogue): Likewise for the various locals named
6140 "label".
6141 (expand_setmem_epilogue): Likewise.
6142 (expand_small_movmem_or_setmem): Likewise for local "label".
6143 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
6144 Strengthen param "done_label" from rtx * to rtx_code_label **.
6145 Strengthen locals "loop_label" and "label" from rtx to
6146 rtx_code_label *.
6147 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
6148 Likewise for locals "loop_label", "label".
6149 (ix86_expand_set_or_movmem): Likewise for locals "label",
6150 "jump_around_label", "hot_label".
6151 (ix86_expand_strlensi_unroll_1): Likewise for locals
6152 "align_2_label", align_3_label", "align_4_label", "end_0_label",
6153 "end_2_label".
6154 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
6155 (void ix86_emit_i387_log1p): Likewise for locals "label1",
6156 "label2", "jump_label".
6157 (ix86_expand_sse_compare_and_jump): Likewise for return type and
6158 local "label".
6159 (ix86_expand_lfloorceil): Likewise for local "label".
6160 (ix86_expand_rint): Likewise.
6161 (ix86_expand_floorceildf_32): Likewise.
6162 (ix86_expand_floorceil): Likewise.
6163 (ix86_expand_rounddf_32): Likewise.
6164 (ix86_expand_trunc): Likewise.
6165 (ix86_expand_truncdf_32): Likewise.
6166 (ix86_expand_round): Likewise.
6167
6168 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6169
6170 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
6171 first param from rtx to rtx_insn *.
6172 (h8300_insn_length_from_table): Likewise.
6173 * config/h8300/h8300.c (F): Likewise for return type and param
6174 "x".
6175 (Fpa): Add a checked cast to rtx_insn *.
6176 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
6177 rtx_insn *.
6178 (final_prescan_insn): Likewise for param "insn".
6179 (h8300_binary_length): Likewise.
6180 (h8300_insn_length_from_table): Likewise.
6181
6182 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6183
6184 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
6185 Strengthen first param "insn" from rtx to rtx_insn *.
6186
6187 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
6188 Likewise.
6189 (frame_insn): Likewise for return type. Introduce local "insn"
6190 for use in place of local "x" for use as an rtx_insn *.
6191 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
6192 (epiphany_expand_prologue): Likewise for local "insn".
6193 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
6194 * config/epiphany/resolve-sw-modes.c
6195 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
6196 "seq".
6197
6198 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6199
6200 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
6201 param from rtx to rtx_insn *.
6202 (c6x_final_prescan_insn): Likewise for first param.
6203
6204 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
6205 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
6206 (c6x_expand_compare): Strengthen local "insns" from rtx to
6207 rtx_insn *.
6208 (c6x_get_unit_specifier): Likewise for param "insn".
6209 (c6x_print_unit_specifier_field): Likewise.
6210 (c6x_final_prescan_insn): Likewise.
6211 (emit_add_sp_const): Likewise for local "insn".
6212 (c6x_expand_prologue): Likewise.
6213
6214 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6215
6216 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
6217 param 1 from rtx to rtx_insn *.
6218 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
6219 the various locals named "insn".
6220 (expand_epilogue_reg_restore): Likewise.
6221 (frame_related_constant_load): Likewise.
6222 (add_to_reg): Likewise.
6223 (emit_link_insn): Likewise.
6224 (do_link): Likewise.
6225 (expand_interrupt_handler_prologue): Likewise.
6226 (branch_dest): Likewise for param "branch".
6227 (asm_conditional_branch): Likewise for param "insn".
6228 (gen_one_bundle): Likewise for elements of param "slot" and local
6229 "t".
6230 (bfin_gen_bundles): Likewise for locals "insn", "next" and
6231 elements of local "slot".
6232 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6233 "queue", "next_queue", "prev".
6234 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
6235 (add_sched_insns_for_speculation): Likewise for local "insn".
6236
6237 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6238
6239 * config/avr/avr-protos.h (output_movqi): Strengthen first param
6240 from rtx to rtx_insn *.
6241 (output_movhi): Likewise.
6242 (output_movsisf): Likewise.
6243 (avr_out_tstsi): Likewise.
6244 (avr_out_tsthi): Likewise.
6245 (avr_out_tstpsi): Likewise.
6246 (avr_out_compare): Likewise.
6247 (avr_out_compare64): Likewise.
6248 (avr_out_movpsi): Likewise.
6249 (ashlqi3_out): Likewise.
6250 (ashlhi3_out): Likewise.
6251 (ashlsi3_out): Likewise.
6252 (ashrqi3_out): Likewise.
6253 (ashrhi3_out): Likewise.
6254 (ashrsi3_out): Likewise.
6255 (lshrqi3_out): Likewise.
6256 (lshrhi3_out): Likewise.
6257 (lshrsi3_out): Likewise.
6258 (avr_out_ashlpsi3): Likewise.
6259 (avr_out_ashrpsi3): Likewise.
6260 (avr_out_lshrpsi3): Likewise.
6261 (avr_out_fract): Likewise.
6262 (avr_out_sbxx_branch): Likewise.
6263 (avr_out_round): Likewise.
6264 (avr_out_xload): Likewise.
6265 (avr_out_movmem): Likewise.
6266 (adjust_insn_length): Likewise.
6267 (avr_out_lpm): Likewise.
6268 (reg_unused_after): Likewise.
6269 (_reg_unused_after): Likewise.
6270 (avr_jump_mode): Likewise for second param.
6271 (jump_over_one_insn): Likewise for first param.
6272 (avr_final_prescan_insn): Likewise.
6273 (out_shift_with_cnt): Likewise for second param.
6274
6275 * config/avr/avr.c (get_sequence_length): Likewise for param
6276 "insns" and local "insn".
6277 (emit_push_byte): Likewise for local "insn".
6278 (emit_push_sfr): Likewise.
6279 (avr_prologue_setup_frame): Likewise for locals "insn",
6280 "fp_plus_insns", "sp_plus_insns".
6281 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
6282 "sp_plus_insns".
6283 (avr_jump_mode): Likewise for param "insn".
6284 (avr_final_prescan_insn): Likewise.
6285 (avr_find_unused_d_reg): Likewise.
6286 (avr_out_lpm_no_lpmx): Likewise.
6287 (avr_out_lpm): Likewise.
6288 (avr_out_xload): Likewise.
6289 (output_movqi): Likewise.
6290 (output_movhi): Likewise.
6291 (out_movqi_r_mr): Likewise.
6292 (out_movhi_r_mr): Likewise.
6293 (out_movsi_r_mr): Likewise.
6294 (out_movsi_mr_r): Likewise.
6295 (output_movsisf): Likewise.
6296 (avr_out_load_psi): Likewise.
6297 (avr_out_store_psi): Likewise.
6298 (avr_out_movpsi): Likewise.
6299 (out_movqi_mr_r): Likewise.
6300 (avr_out_movhi_mr_r_xmega): Likewise.
6301 (out_movhi_mr_r): Likewise.
6302 (compare_condition): Likewise for param "insn" and local "next".
6303 (compare_sign_p): Likewise for param "insn".
6304 (compare_diff_p): Likewise.
6305 (compare_eq_p): Likewise.
6306 (avr_out_compare): Likewise.
6307 (avr_out_compare64): Likewise.
6308 (avr_out_tsthi): Likewise.
6309 (avr_out_tstpsi): Likewise.
6310 (avr_out_tstsi): Likewise.
6311 (out_shift_with_cnt): Likewise.
6312 (ashlqi3_out): Likewise.
6313 (ashlhi3_out): Likewise.
6314 (avr_out_ashlpsi3): Likewise.
6315 (ashlsi3_out): Likewise.
6316 (ashrqi3_out): Likewise.
6317 (ashrhi3_out): Likewise.
6318 (avr_out_ashrpsi3): Likewise.
6319 (ashrsi3_out): Likewise.
6320 (lshrqi3_out): Likewise.
6321 (lshrhi3_out): Likewise.
6322 (avr_out_lshrpsi3): Likewise.
6323 (lshrsi3_out): Likewise.
6324 (avr_out_fract): Likewise.
6325 (avr_out_round): Likewise.
6326 (avr_adjust_insn_length): Likewise.
6327 (reg_unused_after): Likewise.
6328 (_reg_unused_after): Likewise.
6329 (avr_compare_pattern): Likewise.
6330 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
6331 and locals "branch1", "branch2", "insn2", "jump".
6332 (avr_reorg): Likewise for local "insn".
6333 (avr_2word_insn_p): Likewise for param "insn".
6334 (jump_over_one_insn_p): Likewise.
6335 (avr_out_sbxx_branch): Likewise.
6336 (avr_out_movmem): Likewise.
6337
6338 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6339
6340 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
6341 param from rtx to rtx_insn *.
6342 (thumb1_final_prescan_insn): Likewise.
6343 (thumb2_final_prescan_insn): Likewise.
6344
6345 * config/arm/arm.c (emit_set_insn): Strengthen return type from
6346 rtx to rtx_insn *.
6347 (struct minipool_node): Likewise for field "insn".
6348 (dump_minipool): Likewise for param "scan".
6349 (create_fix_barrier): Likewise for local "from". Strengthen local
6350 "label" from rtx to rtx_code_label *.
6351 (push_minipool_barrier): Strengthen param "insn" from rtx to
6352 rtx_insn *.
6353 (push_minipool_fix): Likewise.
6354 (note_invalid_constants): Likewise.
6355 (thumb2_reorg): Likewise for local "insn".
6356 (arm_reorg): Likewise.
6357 (thumb2_final_prescan_insn): Likewise for param
6358 "insn" and local "first_insn".
6359 (arm_final_prescan_insn): Likewise for param "insn" and locals
6360 "start_insn", "this_insn".
6361 (arm_debugger_arg_offset): Likewise for param "insn".
6362 (thumb1_emit_multi_reg_push): Likewise for return type and local
6363 "insn".
6364 (thumb1_final_prescan_insn): Likewise for param "insn".
6365 (thumb_far_jump_used_p): Likewise for local "insn".
6366 (thumb1_expand_prologue): Likewise.
6367 (arm_expand_epilogue_apcs_frame): Likewise.
6368 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
6369 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
6370 from rtx to rtx_code_label *.
6371 (arm_split_atomic_op): Likewise for local "label".
6372 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
6373
6374 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6375
6376 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
6377 first param from rtx to rtx_insn *.
6378 (arc_verify_short): Likewise.
6379 (arc_short_long): Likewise.
6380 (arc_need_delay): Likewise.
6381
6382 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
6383 "target_insn".
6384 (arc_ccfsm_advance): Likewise for param "insn" and locals
6385 "start_insn", "this_insn".
6386 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
6387 (arc_ccfsm_post_advance): Likewise for param "insn".
6388 (arc_next_active_insn): Likewise for return type and param "insn".
6389 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
6390 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
6391 (output_short_suffix): Likewise for local "insn".
6392 (arc_final_prescan_insn): Likewise for param "insn". Remove
6393 now-redundant checked cast.
6394 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
6395 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
6396 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
6397 for use where lc_set became an insn.
6398 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
6399 rtx to rtx_insn *.
6400 (arc_get_insn_variants): Likewise for local "prev".
6401 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
6402 "next".
6403 (arc_predicate_delay_insns): Likewise for local "insn".
6404 (arc_pad_return): Likewise for local "prev". For now, add a
6405 checked cast when extracting the insn from "final_sequence".
6406 (arc_short_long): Likewise for param "insn".
6407 (arc_need_delay): Likewise for param "insn" and local "next".
6408 (arc_label_align): Likewise for locals "prev", "next".
6409
6410 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6411
6412 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
6413 "insn" from rtx to rtx_insn *.
6414 (alpha_gp_save_rtx): Likewise for local "seq".
6415 (alpha_instantiate_decls): Likewise for local "top".
6416 (get_some_local_dynamic_name): Likewise for local "insn".
6417 (alpha_does_function_need_gp): Likewise.
6418 (set_frame_related_p): Likewise for return type and for locals
6419 "seq" and "insn".
6420 (emit_frame_store_1): Likewise for local "insn".
6421 (alpha_expand_prologue): Likewise for locals "insn", "seq".
6422 (alpha_end_function): Likewise for local "insn".
6423 (alpha_output_mi_thunk_osf): Likewise.
6424 (alphaev4_insn_pipe): Likewise for param "insn".
6425 (alphaev5_insn_pipe): Likewise.
6426 (alphaev4_next_group): Likewise for return type and param 1
6427 "insn".
6428 (alphaev5_next_group): Likewise.
6429 (alpha_align_insns_1): Likewise for return type and param 1 of
6430 callback param "next_group", and for locals "i", "next", "prev",
6431 "where", "where2", "insn".
6432
6433 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
6434
6435 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
6436 rather than modifying the stmt.
6437
6438 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6439
6440 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
6441 cgraph_state conversion.
6442
6443 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6444
6445 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6446 Strengthen local "insns" from rtx to rtx_insn *.
6447 (aarch64_set_frame_expr): Likewise for local "insn".
6448 (aarch64_save_or_restore_fprs): Likewise.
6449 (aarch64_save_or_restore_callee_save_registers): Likewise.
6450 (aarch64_expand_prologue): Likewise.
6451 (aarch64_expand_epilogue): Likewise.
6452 (aarch64_output_mi_thunk): Likewise.
6453 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
6454 "label2" from rtx to rtx_code_label *.
6455 (aarch64_split_atomic_op): Likewise for local "label".
6456
6457 2014-08-25 Martin Liska <mliska@suse.cz>
6458
6459 * cgraph.h (symtab_node):
6460 (bool needed_p (void)): created from decide_is_symbol_needed
6461 (bool referred_to_p (void)): created from referred_to_p
6462 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
6463 * cgraph.h (cgraph_node):
6464 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
6465 (void expand (void)): created from expand_function
6466 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
6467 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
6468 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
6469 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
6470 * cgraph.h (varpool_node):
6471 (static void add (tree decl): created from varpool_add_new_variable
6472 * cgraph.h (cgraph_edge):
6473 void remove (void);
6474 (void remove_caller (void)): created from cgraph_edge_remove_caller
6475 (void remove_callee (void)): created from cgraph_edge_remove_callee
6476 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
6477 created from cgraph_set_call_stmt
6478 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
6479 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
6480 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
6481 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
6482 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
6483 created from cgraph_speculative_call_info
6484 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
6485 int freq_scale, bool update_original)): created from cgraph_clone_edge
6486 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
6487 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
6488 (bool recursive_p (void)): created from cgraph_edge_recursive_p
6489 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
6490 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
6491 (static void rebuild_references (void)): created from cgraph_rebuild_references
6492 * cgraph.h (symbol_table):
6493 (create_reference): renamed from add_reference
6494 (maybe_create_reference): renamed from maybe_add_reference
6495 (void register_symbol (symtab_node *node)): new function
6496 (void clear_asm_symbols (void)): new function
6497 (void unregister (symtab_node *node)): new function
6498 (void release_symbol (cgraph_node *node, int uid)): new function
6499 (cgraph_node * allocate_cgraph_symbol (void)): new function
6500 (void initialize (void)): created from cgraph_init
6501 (symtab_node *first_symbol (void)):new function
6502 (asm_node *first_asm_symbol (void)):new function
6503 (symtab_node *first_defined_symbol (void)):new function
6504 (varpool_node *first_variable (void)):new function
6505 (varpool_node *next_variable (varpool_node *node)):new function
6506 (varpool_node *first_static_initializer (void)):new function
6507 (varpool_node *next_static_initializer (varpool_node *node)):new function
6508 (varpool_node *first_defined_variable (void)):new function
6509 (varpool_node *next_defined_variable (varpool_node *node)):new function
6510 (cgraph_node *first_defined_function (void)):new function
6511 (cgraph_node *next_defined_function (cgraph_node *node)):new function
6512 (cgraph_node *first_function (void)):new function
6513 (cgraph_node *next_function (cgraph_node *node)):new function
6514 (cgraph_node *first_function_with_gimple_body (void)):new function
6515 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
6516 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
6517 created from symtab_remove_unreachable_nodes
6518 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
6519 (void process_new_functions (void)): created from cgraph_process_new_functions
6520 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
6521 (bool output_variables (void)): created from varpool_node::output_variables
6522 (void output_asm_statements (void)): created from output_asm_statements
6523 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
6524 (void compile (void)): created from compile
6525 (void output_weakrefs (void)): created from output_weakrefs
6526 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
6527 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
6528 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
6529 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
6530 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
6531 created from cgraph_next_function_with_gimple_body
6532 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
6533 created from cgraph_remove_edge_removal_hook
6534 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
6535 created from cgraph_add_node_removal_hook
6536 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
6537 created from cgraph_remove_node_removal_hook
6538 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
6539 created from varpool_add_node_removal_hook
6540 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
6541 created from varpool_remove_node_removal_hook
6542 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
6543 created from cgraph_add_function_insertion_hook
6544 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
6545 created from cgraph_remove_function_insertion_hook
6546 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
6547 created from varpool_add_variable_insertion_hook
6548 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
6549 created from varpool_remove_variable_insertion_hook
6550 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
6551 created from cgraph_add_edge_duplication_hook
6552 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
6553 created from cgraph_remove_edge_duplication_hook
6554 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
6555 created from cgraph_add_node_duplication_hook
6556 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
6557 created from cgraph_remove_node_duplication_hook
6558 (void call_edge_removal_hooks (cgraph_edge *e)):
6559 created from cgraph_call_edge_removal_hooks
6560 (void call_cgraph_insertion_hooks (cgraph_node *node)):
6561 created from call_function_insertion_hooks
6562 (void call_cgraph_removal_hooks (cgraph_node *node)):
6563 created from cgraph_call_node_removal_hooks
6564 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
6565 created from cgraph_node::call_duplication_hooks
6566 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
6567 created from cgraph_call_edge_duplication_hooks
6568 (void call_varpool_removal_hooks (varpool_node *node)):
6569 created from varpool_call_node_removal_hooks
6570 (void call_varpool_insertion_hooks (varpool_node *node)):
6571 created from varpool_call_variable_insertion_hooks
6572 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
6573 created from insert_to_assembler_name_hash
6574 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
6575 created from unlink_from_assembler_name_hash
6576 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
6577 created from symtab_prevail_in_asm_name_hash
6578 (void symtab_initialize_asm_name_hash (void)):
6579 created from symtab_initialize_asm_name_hash
6580 (void change_decl_assembler_name (tree decl, tree name)):
6581 created from change_decl_assembler_name
6582 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
6583 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
6584 created from decl_assembler_name_hash
6585 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
6586 created from decl_assembler_name_equal
6587 (static hashval_t hash_node_by_assembler_name (const void *p)):
6588 created from hash_node_by_assembler_name
6589 (static int eq_assembler_name (const void *p1, const void *p2)):
6590 created from eq_assembler_name
6591
6592 2014-08-25 Marek Polacek <polacek@redhat.com>
6593
6594 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
6595
6596 2014-08-25 Petr Murzin <petr.murzin@intel.com>
6597
6598 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
6599 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
6600 SWI1248_AVX512BW mode iterator.
6601
6602 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
6603
6604 PR target/62111
6605 * config/sh/predicates.md (general_extend_operand): Disable
6606 TRUNCATE before reload completes.
6607
6608 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
6609
6610 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
6611
6612 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
6613
6614 PR target/61996
6615 * config/sh/sh.opt (musermode): Allow negative form.
6616 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
6617 targets that don't support it.
6618 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
6619 Document -mno-usermode option.
6620
6621 2014-08-24 Kito Cheng <kito@0xlab.org>
6622
6623 * system.h (CALLER_SAVE_PROFITABLE): Poison.
6624 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
6625 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
6626 * doc/tm.texi: Regenerate.
6627
6628 2014-08-24 Kito Cheng <kito@0xlab.org>
6629
6630 * ira.c: Fix typo in comment.
6631
6632 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
6633
6634 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
6635 Deprecate c++1y. Change language to reflect greater confidence in C++14.
6636
6637 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
6638
6639 PR target/62038
6640 * config/pa/pa.c (pa_output_function_epilogue): Don't set
6641 last_address when the current function is a thunk.
6642 (pa_asm_output_mi_thunk): When we don't have named sections or they
6643 are not being used, check that thunk can reach the stub table with a
6644 short branch.
6645
6646 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6647
6648 * web.c (union_match_dups): Strengthen param "insn" from rtx to
6649 rtx_insn *.
6650 (pass_web::execute): Likewise for local "insn".
6651
6652 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6653
6654 * var-tracking.c (struct micro_operation_def): Strengthen field
6655 "insn" from rtx to rtx_insn *.
6656 (struct emit_note_data_def): Likewise.
6657 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
6658 (vt_stack_adjustments): Likewise for local "insn".
6659 (adjust_insn): Likewise for param "insn".
6660 (val_store): Likewise.
6661 (val_resolve): Likewise.
6662 (struct count_use_info): Likewise for field "insn".
6663 (log_op_type): Likewise for param "insn".
6664 (reverse_op): Likewise.
6665 (prepare_call_arguments): Likewise.
6666 (add_with_sets): The initial param takes an insn, but we can't
6667 yet strengthen it from rtx to rtx_insn * since it's used as a
6668 cselib_record_sets_hook callback. For now rename initial param
6669 from "insn" to "uncast_insn", and introduce a local "insn" of
6670 the stronger rtx_insn * type, with a checked cast.
6671 (compute_bb_dataflow): Strengthen local "insn" from rtx to
6672 rtx_insn *.
6673 (emit_note_insn_var_location): Likewise.
6674 (emit_notes_for_changes): Likewise.
6675 (emit_notes_for_differences): Likewise.
6676 (next_non_note_insn_var_location): Likewise for return type and
6677 for param "insn".
6678 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
6679 (vt_initialize): Likewise for local "insn".
6680 (delete_debug_insns): Likewise for locals "insn" and "next".
6681
6682 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6683
6684 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
6685 rtx_insn *.
6686 (mark_constant_pool): Likewise for local "insn".
6687
6688 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6689
6690 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
6691 rtx to rtx_insn *.
6692 (dead_debug_promote_uses): Likewise.
6693 (dead_debug_insert_temp): Likewise.
6694
6695 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6696
6697 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
6698 from const_rtx to const rtx_insn *.
6699 (store_killed_after): Likewise. Strengthen locals "last", "act"
6700 from rtx to rtx_insn *.
6701 (store_killed_before): Strengthen param "insn" from const_rtx to
6702 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
6703 (find_moveable_store): Strengthen param "insn" from rtx to
6704 rtx_insn *.
6705 (compute_store_table): Likewise for local "insn".
6706 (insert_insn_start_basic_block): Likewise for param "insn" and
6707 locals "prev", "before", "insn".
6708 (insert_store): For now, add a checked cast to rtx_insn * on the
6709 result of gen_move_insn.
6710 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
6711 to rtx_insn *.
6712 (replace_store_insn): Likewise. For now, add a checked cast to
6713 rtx_insn * on the result of gen_move_insn.
6714
6715 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6716
6717 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
6718 rtx_insn *.
6719 (expand_sjlj_dispatch_table): Likewise.
6720
6721 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6722
6723 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
6724 "insn" from rtx to rtx_insn *.
6725
6726 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6727
6728 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
6729 "insn" from rtx to rtx_insn *.
6730 (dup_block_and_redirect): Likewise for param 3 "before".
6731
6732 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
6733 from rtx to rtx_insn *.
6734 (move_insn_for_shrink_wrap): Likewise.
6735 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
6736 (dup_block_and_redirect): Likewise for param "before" and local
6737 "insn".
6738 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
6739 "end".
6740 (convert_to_simple_return): Likewise for local "start".
6741
6742 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
6743 Strengthen local "insn" from rtx to rtx_insn *, for use when
6744 invoking requires_stack_frame_p.
6745
6746 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6747
6748 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
6749 rtx_insn *.
6750 (speculate_expr): Likewise for locals "orig_insn_rtx",
6751 "spec_insn_rtx".
6752 (eq_transformed_insns): Likewise for locals "i1", "i2".
6753 (check_for_new_jump): Likewise for return type and local "end".
6754 (find_new_jump): Likewise for return type and local "jump".
6755 (sel_split_edge): Likewise for local "jump".
6756 (sel_create_recovery_block): Likewise.
6757 (sel_redirect_edge_and_branch_force): Likewise.
6758 (sel_redirect_edge_and_branch): Likewise.
6759
6760 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6761
6762 * sel-sched.c (substitute_reg_in_expr): Strengthen local
6763 "new_insn" from rtx to rtx_insn *.
6764 (create_insn_rtx_with_rhs): Likewise for return type and for local
6765 "insn_rtx".
6766 (create_insn_rtx_with_lhs): Likewise.
6767 (create_speculation_check): Likewise for local "insn_rtx".
6768 (implicit_clobber_conflict_p): Likewise for local "insn".
6769 (get_expr_cost): Likewise.
6770 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
6771 (move_cond_jump): Likewise for locals "next", "prev", "link",
6772 "head", "from", "to".
6773
6774 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6775
6776 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
6777 "next" from rtx to rtx_insn *.
6778 (find_conditional_protection): Likewise for local "next".
6779 (is_conditionally_protected): Likewise for local "insn1".
6780 (is_pfree): Likewise for locals "insn1", "insn2".
6781
6782 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6783
6784 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
6785 from rtx to rtx_insn *.
6786
6787 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
6788 locals "insn1", "insn2" from rtx to rtx_insn *.
6789 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
6790 locals "insn", "prev", "last_jump", "next_tail".
6791 (schedule_ebb): Likewise for params "head", "tail".
6792 (schedule_ebbs): Likewise for locals "tail", "head".
6793
6794 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
6795 to rtx_insn on "last_insn" in one of the invocations of
6796 schedule_ebb.
6797
6798 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6799
6800 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
6801 "elem", "insn" from rtx to rtx_insn *.
6802 (change_spec_dep_to_hard): Likewise.
6803 (get_back_and_forw_lists): Likewise for local "con".
6804 (sd_add_dep): Likewise for locals "elem", "insn".
6805 (sd_resolve_dep): Likewise for locals "pro", "con".
6806 (sd_unresolve_dep): Likewise.
6807 (sd_delete_dep): Likewise.
6808 (chain_to_prev_insn): Likewise for local "pro".
6809 (find_inc): Likewise for locals "pro", "con".
6810
6811 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6812
6813 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
6814 to rtx_insn *.
6815 (reg_set_between_p): Strengthen local "insn" from const_rtx to
6816 const rtx_insn *.
6817 (modified_between_p): Strengthen local "insn" from rtx to
6818 rtx_insn *.
6819 (remove_reg_equal_equiv_notes_for_regno): Likewise.
6820 (keep_with_call_p): Strengthen local "i2" from const_rtx to
6821 const rtx_insn *.
6822
6823 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6824
6825 * resource.c (next_insn_no_annul): Strengthen local "next" from
6826 rtx to rtx_insn *.
6827 (mark_referenced_resources): Likewise for local "insn".
6828
6829 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6830
6831 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
6832 to rtx_insn *.
6833 (find_reloads): Likewise for param 1.
6834 (subst_reloads): Likewise for sole param.
6835 (find_equiv_reg): Likwise for param 2.
6836 (regno_clobbered_p): Likwise for param 2.
6837 (reload): Likewise for param 1.
6838
6839 * caller-save.c (save_call_clobbered_regs): Strengthen local
6840 "insn" from rtx to rtx_insn *.
6841 (insert_one_insn): Likewise for local "insn".
6842
6843 * reload.c (this_insn): Likewise for this global.
6844 (find_reloads): Likewise for param "insn".
6845 (find_reloads_toplev): Likewise.
6846 (find_reloads_address): Likewise.
6847 (subst_reg_equivs): Likewise.
6848 (update_auto_inc_notes): Likewise.
6849 (find_reloads_address_1): Likewise.
6850 (find_reloads_subreg_address): Likewise.
6851 (subst_reloads): Likewise.
6852 (find_equiv_reg): Likewise, also for local "p".
6853 (regno_clobbered_p): Likewise for param "insn".
6854
6855 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
6856 array.
6857 (spill_reg_store): Likewise for the elements of this array.
6858 (remove_init_insns): Likewise for local "equiv_insn".
6859 (will_delete_init_insn_p): Likewise for param "insn".
6860 (reload): Likewise for param ""first" and local "insn".
6861 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
6862 rtx_insn *.
6863 (calculate_elim_costs_all_insns): Likewise.
6864 (delete_caller_save_insns): Likewise.
6865 (spill_failure): Likewise for param "insn".
6866 (delete_dead_insn): Likewise.
6867 (set_label_offsets): Likewise.
6868 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
6869 "prev_insn".
6870 (elimination_costs_in_insn): Likewise for param "insn".
6871 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
6872 when referring to an insn.
6873 (set_initial_label_offsets): Likewise.
6874 (set_offsets_for_label): Strengthen param "insn" from rtx to
6875 rtx_insn *.
6876 (init_eliminable_invariants): Likewise for param "first" and local
6877 "insn".
6878 (fixup_eh_region_note): Likewise for param "insn".
6879 (reload_as_needed): Likewise for locals "prev", "insn",
6880 "old_next", "old_prev", "next".
6881 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
6882 "last".
6883 (reload_inheritance_insn): Strengthen elements of this array from
6884 rtx to rtx_insn *.
6885 (failed_reload): Likewise for param "insn".
6886 (choose_reload_regs): Likewise for local "insn". Replace use of
6887 NULL_RTX with NULL when referring to an insn.
6888 (input_reload_insns): Strengthen elements of this array from rtx
6889 to rtx_insn *.
6890 (other_input_address_reload_insns): Likewise for this global.
6891 (other_input_reload_insns): Likewise for this global.
6892 (input_address_reload_insns): Likwise for the elements of this
6893 array.
6894 (inpaddr_address_reload_insns): Likwise for the elements of this
6895 array.
6896 (output_reload_insns): Likewise for the elements of this array.
6897 (output_address_reload_insns): Likewise for the elements of this
6898 array.
6899 (outaddr_address_reload_insns): Likewise for the elements of this
6900 array.
6901 (operand_reload_insns): Likewise for this global.
6902 (other_operand_reload_insns): Likewise for this global.
6903 (other_output_reload_insns): Likewise for the elements of this
6904 array.
6905 (new_spill_reg_store): Likewise for the elements of this
6906 array.
6907 (emit_input_reload_insns): Likewise for locals "insn", "temp".
6908 Strengthen local "where" from rtx * to rtx_insn **.
6909 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
6910 from rtx to rtx_insn *.
6911 (do_input_reload): Likewise for local "insn".
6912 (do_output_reload): Likewise for local "insn".
6913 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
6914 (emit_insn_if_valid_for_reload): Likewise for return type and local
6915 "last". Add checked cast to rtx_insn when returning "insn" since
6916 this has been through emit_insn.
6917 (gen_reload): Strengthen return type and locals "last", "insn", "set"
6918 from rtx to rtx_insn *. Add checked cast to rtx_insn when
6919 returning "insn" since it's been through
6920 emit_insn_if_valid_for_reload at this point.
6921 (delete_output_reload): Strengthen param "insn" and locals
6922 "output_reload_insn", "i2" from rtx to rtx_insn *.
6923 (delete_address_reloads): Likewise for params "dead_insn",
6924 "current_insn" and locals "prev", "next".
6925 (delete_address_reloads_1): Likewise for params "dead_insn",
6926 "current_insn" and locals "prev", "i2".
6927 (inc_for_reload): Likewise for locals "last", "add_insn".
6928 (add_auto_inc_notes): Strengthen param "insn" from rtx to
6929 rtx_insn *.
6930
6931 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
6932 param of this duplicate of the prototype from reload.h
6933
6934 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6935
6936 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
6937 rtx to rtx_insn *.
6938 (regstat_bb_compute_calls_crossed): Likewise.
6939
6940 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6941
6942 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
6943 to rtx_insn *.
6944 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
6945 with an insn.
6946 (regrename_analyze): Strengthen local "insn" from rtx to
6947 rtx_insn *.
6948 (scan_rtx_reg): Likewise for param "insn".
6949 (scan_rtx_address): Likewise.
6950 (scan_rtx): Likewise.
6951 (restore_operands): Likewise.
6952 (record_out_operands): Likewise.
6953 (build_def_use): Likewise for local "insn". Replace use of
6954 NULL_RTX with NULL when dealing with an insn.
6955
6956 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6957
6958 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
6959 * reginfo.c (reg_scan): Likewise, also for local "insn".
6960 (reg_scan_mark_refs): Likewise for param "insn".
6961 (init_subregs_of_mode): Likewise for local "insn".
6962
6963 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6964
6965 * regcprop.c (struct queued_debug_insn_change): Strengthen field
6966 "insn" from rtx to rtx_insn *.
6967 (replace_oldest_value_reg): Likewise for param "insn".
6968 (replace_oldest_value_addr): Likewise.
6969 (replace_oldest_value_mem): Likewise.
6970 (apply_debug_insn_changes): Likewise for local "last_insn".
6971 (copyprop_hardreg_forward_1): Likewise for local "insn".
6972
6973 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6974
6975 * reg-stack.c (next_flags_user): Strengthen return type and param
6976 "insn" from rtx to rtx_insn *.
6977 (straighten_stack): Likewise for param "insn".
6978 (check_asm_stack_operands): Likewise.
6979 (remove_regno_note): Likewise.
6980 (emit_pop_insn): Likewise for return type, param "insn", local
6981 "pop_insn".
6982 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
6983 "limit" from rtx to rtx_insn *.
6984 (swap_to_top): Likewise for param "insn".
6985 (move_for_stack_reg): Likewise.
6986 (move_nan_for_stack_reg): Likewise.
6987 (swap_rtx_condition): Likewise.
6988 (compare_for_stack_reg): Likewise.
6989 (subst_all_stack_regs_in_debug_insn): Likewise.
6990 (subst_stack_regs_pat): Likewise, and local "insn2".
6991 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
6992 rtx_insn *.
6993 (subst_stack_regs): Likewise.
6994 (change_stack): Likewise.
6995 (convert_regs_1): Likewise for locals "insn", "next".
6996
6997 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6998
6999 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
7000 rtx_insn *.
7001 (combine_set_extension): Likewise for param "curr_insn".
7002 (transform_ifelse): Likewise for param "def_insn".
7003 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
7004 from vec<rtx> * to vec<rtx_insn *> *.
7005 (is_cond_copy_insn): Likewise for param "insn".
7006 (struct ext_state): Strengthen the four vec fields from vec<rtx>
7007 to vec<rtx_insn *>.
7008 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
7009 local "def_insn" from rtx to rtx_insn *.
7010 (get_sub_rtx): Likewise for param "def_insn".
7011 (merge_def_and_ext): Likewise.
7012 (combine_reaching_defs): Likewise.
7013 (add_removable_extension): Likewise for param "insn".
7014 (find_removable_extensions): Likewise for local "insn".
7015 (find_and_remove_re): Likewise for locals "curr_insn" and
7016 "def_insn". Strengthen locals "reinsn_del_list" and
7017 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
7018
7019 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7020
7021 * recog.c (split_insn): Strengthen param "insn" and locals
7022 "first", "last" from rtx to rtx_insn *.
7023 (split_all_insns): Likewise for locals "insn", "next".
7024 (split_all_insns_noflow): Likewise.
7025
7026 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7027
7028 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
7029 const rtx_insn *.
7030 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
7031 (debug_rtx_find): Likewise for param 1 "x".
7032
7033 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
7034 const_rtx to const rtx_insn *. Likewise for local "insn".
7035 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
7036 (debug_rtx_find): Likewise for param 1 "x".
7037 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
7038 from const_rtx to const rtx_insn * within the appropriate cases of
7039 the switch statement.
7040
7041 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
7042 Strengthen local "insns" from rtx to rtx_insn * since this is
7043 passed to a call to debug_rtx_list.
7044
7045 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7046
7047 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
7048 to rtx_insn *.
7049
7050 * function.c (stack_protect_epilogue): Add checked cast to
7051 rtx_insn for now when invoking predict_insn_def.
7052
7053 * predict.c (predict_insn): Strengthen param "insn" from rtx to
7054 rtx_insn *.
7055 (predict_insn_def): Likewise.
7056 (rtl_predict_edge): Likewise for local "last_insn".
7057 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
7058 const rtx_insn *.
7059 (combine_predictions_for_insn): Strengthen param "insn" from rtx
7060 to rtx_insn *.
7061 (bb_estimate_probability_locally): Likewise for local "last_insn".
7062 (expensive_function_p): Likewise for local "insn".
7063
7064 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
7065 local "jmp", since this is used when invoking predict_insn_def.
7066
7067 2014-08-22 Marek Polacek <polacek@redhat.com>
7068
7069 PR c++/62199
7070 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
7071
7072 2014-08-22 Marek Polacek <polacek@redhat.com>
7073
7074 PR c/61271
7075 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
7076 a comparison in parens.
7077 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
7078 in parens.
7079
7080 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7081
7082 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
7083 rtx_insn *.
7084
7085 * cprop.c (fis_get_condition): Likewise.
7086
7087 * postreload.c (reload_cse_regs): Likewise for param "first".
7088 (reload_cse_simplify): Likewise for param "insn".
7089 (reload_cse_regs_1): Likewise for local "insn".
7090 (reload_cse_simplify_set): Likewise for param "insn".
7091 (reload_cse_simplify_operands): Likewise.
7092 (struct reg_use): Likewise for field "insn".
7093 (reload_combine_purge_insn_uses): Likewise for param "insn".
7094 (fixup_debug_insns): Likewise for params "from", "to" and local
7095 "insn".
7096 (try_replace_in_use): Likewise for local "use_insn".
7097 (reload_combine_recognize_const_pattern): Likewise for param
7098 "insn" and locals "add_moved_after_insn", "use_insn".
7099 (reload_combine_recognize_pattern): Likewise for param "insn" and
7100 local "prev".
7101 (reload_combine): Likewise for locals "insn", "prev".
7102 (reload_combine_note_use): Likewise for param "insn".
7103 (move2add_use_add2_insn): Likewise.
7104 (move2add_use_add3_insn): Likewise.
7105 (reload_cse_move2add): Likewise, also for local "next".
7106 (move2add_note_store): Likewise for local "insn".
7107
7108 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7109
7110 * postreload-gcse.c (struct occr): Strengthen field "insn" from
7111 rtx to rtx_insn *.
7112 (struct unoccr): Likewise.
7113 (struct modifies_mem): Likewise.
7114 (alloc_mem): Likewise for local "insn".
7115 (insert_expr_in_table): Likewise for param "insn".
7116 (dump_expr_hash_table_entry): Likewise for local "insn".
7117 (oprs_unchanged_p): Likewise for param "insn".
7118 (load_killed_in_block_p): Likewise for local "setter".
7119 (record_last_reg_set_info): Likewise for param "insn".
7120 (record_last_reg_set_info_regno): Likewise.
7121 (record_last_mem_set_info): Likewise.
7122 (record_last_set_info): Likewise for local "last_set_insn".
7123 (record_opr_changes): Likewise for param "insn".
7124 (hash_scan_set): Likewise.
7125 (compute_hash_table): Likewise for local "insn".
7126 (get_avail_load_store_reg): Likewise for param "insn".
7127 (eliminate_partially_redundant_load): Likewise, also for locals
7128 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
7129 RTX for insns.
7130 (eliminate_partially_redundant_loads): Likewise for local "insn".
7131
7132 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7133
7134 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
7135 rtx to rtx_insn *.
7136 (expand_binop): Likewise for locals "entry_last", "last", "insns"
7137 (expand_twoval_unop): Likewise for locals entry_last", "last".
7138 (expand_twoval_binop): Likewise.
7139 (expand_twoval_binop_libfunc): Likewise for local "insns".
7140 (widen_leading): Likewise for local "last".
7141 (expand_doubleword_clz): Likewise for local "seq". Strengthen
7142 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
7143 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
7144 (expand_parity): Likewise for locals "last" and "seq".
7145 (expand_ffs): Likewise for local "seq". Strengthen local
7146 "nonzero_label" from rtx to rtx_code_label *.
7147 (expand_absneg_bit): Strengthen local "insns" from rtx to
7148 rtx_insn *.
7149 (expand_unop_direct): Likewise for local "last".
7150 (expand_unop): Likewise for locals "last", "insns".
7151 (expand_abs_nojump): Likewise for local "last".
7152 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
7153 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
7154 rtx_insn *.
7155 (expand_copysign_absneg): Strengthen local "label" from rtx to
7156 rtx_code_label *.
7157 (expand_copysign_bit): Strengthen local "insns" from rtx to
7158 rtx_insn *.
7159 (struct no_conflict_data): Likewise for fields "first", "insn".
7160 (emit_libcall_block_1): Likewise for param "insns" and locals
7161 "next", "last", "insn".
7162 (emit_libcall_block): For now, add a checked cast to rtx_insn *
7163 on "insns" when invoking emit_libcall_block_1. Ultimately we
7164 want to strengthen insns itself.
7165 (prepare_cmp_insn): Strengthen local "last" from rtx to
7166 rtx_insn *.
7167 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
7168 (prepare_float_lib_cmp): Likewise for local "insns".
7169 (emit_conditional_move): Likewise for local "last".
7170 (emit_conditional_add): Likewise.
7171 (have_sub2_insn): Likewise for local "seq".
7172 (expand_float): Likewise for local "insns". Strengthen locals
7173 "label", "neglabel" from rtx to rtx_code_label *.
7174 (expand_fix): Likewise for locals "last", "insn", "insns" (to
7175 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
7176 (expand_fixed_convert): Likewise for local "insns" (to
7177 rtx_insn *).
7178 (expand_sfix_optab): Likewise for local "last".
7179 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
7180 to rtx_code_label *.
7181 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
7182 from rtx to rtx_insn *.
7183 (expand_atomic_fetch_op): Likewise for local "insn".
7184 (maybe_legitimize_operand_same_code): Likewise for local "last".
7185 (maybe_legitimize_operands): Likewise.
7186
7187 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7188
7189 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
7190 "insn" from rtx to rtx_insn *.
7191 (ps_rtl_insn): Likewise for return type.
7192 (doloop_register_get): Likewise for params "head", "tail" and
7193 locals "insn", "first_insn_not_to_check".
7194 (schedule_reg_move): Likewise for local "this_insn".
7195 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
7196 of gen_move_insn for now.
7197 (reset_sched_times): Strengthen local "insn" from rtx to
7198 rtx_insn *.
7199 (permute_partial_schedule): Likewise.
7200 (duplicate_insns_of_cycles): Likewise for local "u_insn".
7201 (dump_insn_location): Likewise for param "insn".
7202 (loop_canon_p): Likewise for local "insn".
7203 (sms_schedule): Likewise.
7204 (print_partial_schedule): Likewise.
7205 (ps_has_conflicts): Likewise.
7206
7207 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7208
7209 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
7210 "tailp" from rtx * to rtx_insn **.
7211
7212 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
7213 from rtx to rtx_insn *.
7214 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
7215 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
7216 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
7217 rtx to rtx_insn *.
7218 * modulo-sched.c (const_iteration_count): Strengthen return type
7219 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
7220 use of NULL_RTX with NULL when working with insns.
7221 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
7222 to rtx_insn *.
7223 (sms_schedule): Likewise.
7224 * sched-rgn.c (init_ready_list): Likewise, also for locals
7225 "src_head" and "src_next_tail".
7226 (compute_block_dependences): Likewise.
7227 (free_block_dependencies): Likewise.
7228 (debug_rgn_dependencies): Likewise.
7229 (free_rgn_deps): Likewise.
7230 (compute_priorities): Likewise.
7231 (schedule_region): Likewise.
7232 * sel-sched.c (find_ebb_boundaries): Likewise.
7233
7234 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
7235 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
7236
7237 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7238
7239 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
7240 from rtx to rtx_insn *.
7241 (new_seginfo): Likewise for param "insn".
7242 (create_pre_exit): Likewise for locals "last_insn",
7243 "before_return_copy", "return_copy".
7244 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
7245 "mode_set".
7246
7247 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7248
7249 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
7250 from rtx to rtx_insn *.
7251 (lra_push_insn): Likewise for 1st param.
7252 (lra_push_insn_and_update_insn_regno_info): Likewise.
7253 (lra_pop_insn): Likewise for return type.
7254 (lra_invalidate_insn_data): Likewise for 1st param.
7255 (lra_set_insn_deleted): Likewise.
7256 (lra_delete_dead_insn): Likewise.
7257 (lra_process_new_insns): Likewise for first 3 params.
7258 (lra_set_insn_recog_data): Likewise for 1st param.
7259 (lra_update_insn_recog_data): Likewise.
7260 (lra_set_used_insn_alternative): Likewise.
7261 (lra_invalidate_insn_regno_info): Likewise.
7262 (lra_update_insn_regno_info): Likewise.
7263 (lra_former_scratch_operand_p): Likewise.
7264 (lra_eliminate_regs_1): Likewise.
7265 (lra_get_insn_recog_data): Likewise.
7266
7267 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
7268 rtx to rtx_insn *.
7269
7270 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
7271 "mv1" and "mv2".
7272 (substitute_within_insn): New.
7273 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
7274 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
7275 Replace call to "substitute" with call to substitute_within_insn.
7276
7277 * lra-constraints.c (curr_insn): Strengthen from rtx to
7278 rtx_insn *.
7279 (get_equiv_with_elimination): Likewise for param "insn".
7280 (match_reload): Strengthen params "before" and "after" from rtx *
7281 to rtx_insn **.
7282 (emit_spill_move): Likewise for return type. Add a checked cast
7283 to rtx_insn * on result of gen_move_insn for now.
7284 (check_and_process_move): Likewise for local "before". Replace
7285 NULL_RTX with NULL when referring to insns.
7286 (process_addr_reg): Strengthen params "before" and "after" from
7287 rtx * to rtx_insn **.
7288 (insert_move_for_subreg): Likewise.
7289 (simplify_operand_subreg): Strengthen locals "before" and "after"
7290 from rtx to rtx_insn *.
7291 (process_address_1): Strengthen params "before" and "after" from
7292 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
7293 rtx to rtx_insn *.
7294 (process_address): Strengthen params "before" and "after" from
7295 rtx * to rtx_insn **.
7296 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
7297 (curr_insn_transform): Strengthen locals "before" and "after"
7298 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
7299 to insns.
7300 (loc_equivalence_callback): Update cast of "data", changing
7301 resulting type from rtx to rtx_insn *.
7302 (substitute_pseudo_within_insn): New.
7303 (inherit_reload_reg): Strengthen param "insn" from rtx to
7304 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
7305 NULL when referring to insns. Add a checked cast to rtx_insn *
7306 when using usage_insn to invoke lra_update_insn_regno_info.
7307 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
7308 likewise for locals "restore", "save". Add checked casts to
7309 rtx_insn * when using usage_insn to invoke
7310 lra_update_insn_regno_info and lra_process_new_insns. Replace
7311 NULL_RTX with NULL when referring to insns.
7312 (split_if_necessary): Strengthen param "insn" from rtx to
7313 rtx_insn *.
7314 (update_ebb_live_info): Likewise for params "head", "tail" and local
7315 "prev_insn".
7316 (get_last_insertion_point): Likewise for return type and local "insn".
7317 (get_live_on_other_edges): Likewise for local "last".
7318 (inherit_in_ebb): Likewise for params "head", "tail" and locals
7319 "prev_insn", "next_insn", "restore".
7320 (remove_inheritance_pseudos): Likewise for local "prev_insn".
7321 (undo_optional_reloads): Likewise for local "insn".
7322
7323 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
7324 "insn".
7325 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
7326 insns.
7327 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
7328 rtx_insn *.
7329 (spill_pseudos): Likewise for local "insn".
7330 (init_elimination): Likewise.
7331 (process_insn_for_elimination): Likewise for param "insn".
7332
7333 * lra-lives.c (curr_insn): Likewise.;
7334
7335 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
7336 (remove_pseudos): Likewise for param "insn".
7337 (spill_pseudos): Likewise for local "insn".
7338 (lra_final_code_change): Likewise for locals "insn", "curr".
7339
7340 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
7341 (lra_set_insn_deleted): Likewise.
7342 (lra_delete_dead_insn): Likewise, and for local "prev".
7343 (new_insn_reg): Likewise for param "insn".
7344 (lra_set_insn_recog_data): Likewise.
7345 (lra_update_insn_recog_data): Likewise.
7346 (lra_set_used_insn_alternative): Likewise.
7347 (get_insn_freq): Likewise.
7348 (invalidate_insn_data_regno_info): Likewise.
7349 (lra_invalidate_insn_regno_info): Likewise.
7350 (lra_update_insn_regno_info): Likewise.
7351 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
7352 vec<rtx_insn *>.
7353 (lra_push_insn_1): Strengthen param "insn" from rtx to
7354 rtx_insn *.
7355 (lra_push_insn): Likewise.
7356 (lra_push_insn_and_update_insn_regno_info): Likewise.
7357 (lra_pop_insn): Likewise for return type and local "insn".
7358 (push_insns): Likewise for params "from", "to", and local "insn".
7359 (setup_sp_offset): Likewise for params "from", "last" and locals
7360 "before", "insn".
7361 (lra_process_new_insns): Likewise for params "insn", "before",
7362 "after" and local "last".
7363 (struct sloc): Likewise for field "insn".
7364 (lra_former_scratch_operand_p): Likewise for param "insn".
7365 (remove_scratches): Likewise for locals "insn", "last".
7366 (check_rtl): Likewise for local "insn".
7367 (add_auto_inc_notes): Likewise for param "insn".
7368 (update_inc_notes): Likewise for local "insn".
7369 (lra): Replace NULL_RTX with NULL when referring to insn.
7370
7371 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7372
7373 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
7374 to rtx_insn *.
7375 (resolve_reg_notes): Likewise.
7376 (resolve_simple_move): Likewise for return type, param "insn", and
7377 locals "insns", "minsn".
7378 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
7379 (resolve_use): Likewise.
7380 (resolve_debug): Likewise.
7381 (find_decomposable_shift_zext): Likewise.
7382 (resolve_shift_zext): Likewise for return type, param "insn", and
7383 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
7384 (decompose_multiword_subregs): Likewise for local "insn",
7385 "orig_insn", "decomposed_shift", "end".
7386
7387 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7388
7389 * basic-block.h (basic_block split_edge_and_insert): Strengthen
7390 param "insns" from rtx to rtx_insn *.
7391
7392 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
7393 rtx to rtx_insn *.
7394 (struct iv_to_split): Likewise.
7395 (loop_exit_at_end_p): Likewise for local "insn".
7396 (split_edge_and_insert): Likewise for param "insns".
7397 (compare_and_jump_seq): Likewise for return type, param "cinsn",
7398 and locals "seq", "jump".
7399 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
7400 "branch_code"; update invocations of compare_and_jump_seq to
7401 eliminate NULL_RTX in favor of NULL.
7402 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
7403 rtx to rtx_insn *.
7404 (reset_debug_uses_in_loop): Likewise.
7405 (analyze_insn_to_expand_var): Likewise for param "insn".
7406 (analyze_iv_to_split_insn): Likewise.
7407 (analyze_insns_in_loop): Likewise for local "insn".
7408 (insert_base_initialization): Likewise for param
7409 "insn" and local "seq".
7410 (split_iv): Likewise for param "insn" and local "seq".
7411 (expand_var_during_unrolling): Likewise for param "insn".
7412 (insert_var_expansion_initialization): Likewise for local "seq".
7413 (combine_var_copies_in_loop_exit): Likewise.
7414 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
7415 "insn".
7416 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
7417 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
7418 "next".
7419
7420 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7421
7422 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
7423 rtx_insn *.
7424 (iv_analyze_result): Likewise.
7425 (iv_analyze_expr): Likewise.
7426 (biv_p): Likewise.
7427
7428 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
7429 local "def_insn" from rtx to rtx_insn *.
7430 (get_biv_step_1): Likewise for local "insn".
7431 (iv_analyze_expr): Likewise for param "insn".
7432 (iv_analyze_def): Likewise for local "insn".
7433 (iv_analyze_op): Likewise for param "insn".
7434 (iv_analyze): Likewise.
7435 (iv_analyze_result): Likewise.
7436 (biv_p): Likewise.
7437 (suitable_set_for_replacement): Likewise.
7438 (simplify_using_initial_values): Likewise for local "insn".
7439 (iv_number_of_iterations): Likewise for param "insn".
7440 (check_simple_exit): Add checked cast to rtx_insn when invoking
7441 iv_number_of_iterations for now (until get_condition is
7442 strengthened).
7443
7444 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
7445 "insn" from rtx to rtx_insn *.
7446 (analyze_insns_in_loop): Likewise for local "insn".
7447
7448 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7449
7450 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
7451 to rtx_insn *.
7452 (struct invariant): Likewise.
7453 (hash_invariant_expr_1): Likewise for param "insn".
7454 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
7455 (find_exits): Likewise for local "insn".
7456 (create_new_invariant): Likewise for param "insn".
7457 (check_dependencies): Likewise.
7458 (find_invariant_insn): Likewise.
7459 (record_uses): Likewise.
7460 (find_invariants_insn): Likewise.
7461 (find_invariants_bb): Likewise for local "insn".
7462 (get_pressure_class_and_nregs): Likewise for param "insn".
7463 (calculate_loop_reg_pressure): Likewise for local "insn".
7464
7465 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7466
7467 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
7468 to rtx_insn *.
7469 (add_test): Likewise for locals "seq", "jump".
7470 (doloop_modify): Likewise for locals "sequence", "jump_insn".
7471
7472 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7473
7474 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
7475 rtx_insn *.
7476 (rebuild_jump_labels_chain): Likewise for param "chain".
7477
7478 * cfgexpand.c (pass_expand::execute): Add checked cast to
7479 rtx_insn * when calling rebuild_jump_labels_chain in region where
7480 we know e->insns.r is non-NULL.
7481
7482 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
7483 rtx_insn *.
7484 (rebuild_jump_labels): Likewise.
7485 (rebuild_jump_labels_chain): Likewise for param "chain".
7486 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
7487 (init_label_info): Likewise for param "f".
7488 (maybe_propagate_label_ref): Likewise for params "jump_insn",
7489 "prev_nonjump_insn".
7490 (mark_all_labels): Likewise for param "f" and locals "insn",
7491 "prev_nonjump_insn".
7492
7493 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7494
7495 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
7496 from rtx to rtx_insn *insn.
7497 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
7498 (ira_add_allocno_copy): Likewise.
7499 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
7500 rtx to rtx_insn *.
7501 (ira_create_copy): Likewise.
7502 (ira_add_allocno_copy): Likewise.
7503 (create_bb_allocnos): Likewise for local "insn".
7504 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
7505 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
7506 process_regs_for_copy for rtx_insn * param.
7507 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
7508 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
7509 process_regs_for_copy for rtx_insn * param.
7510 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
7511 * ira-costs.c (record_reg_classes): Likewise for param "insn".
7512 (record_operand_costs): Likewise.
7513 (scan_one_insn): Likewise for return type, and for param "insn".
7514 (process_bb_for_costs): Likewise for local "insn".
7515 (process_bb_node_for_hard_reg_moves): Likewise.
7516 * ira-emit.c (struct move): Likewise for field "insn".
7517 (create_move): Eliminate use of NULL_RTX when dealing with an
7518 rtx_insn *.
7519 (emit_move_list): Strengthen return type and locals "result",
7520 "insn" from rtx to rtx_insn *insn.
7521 (emit_moves): Likewise for locals "insns", "tmp".
7522 (ira_emit): Likewise for local "insn".
7523 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
7524 "insn".
7525 (find_call_crossed_cheap_reg): Likewise.
7526 (process_bb_node_lives): Likewise for local "insn".
7527 * ira.c (decrease_live_ranges_number): Likewise.
7528 (compute_regs_asm_clobbered): Likewise.
7529 (build_insn_chain): Likewise.
7530 (find_moveable_pseudos): Likewise, also locals "def_insn",
7531 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
7532 to rtx_insn **. Add a checked cast when assigning from
7533 "closest_use" into closest_uses array in a region where we know
7534 it's a non-NULL insn.
7535 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
7536 to rtx_insn *.
7537 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
7538 "last_interesting_insn", "uin".
7539 (move_unallocated_pseudos): Likewise for locals "def_insn",
7540 "move_insn", "newinsn".
7541
7542 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7543
7544 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
7545 Strengthen locals "done_label", "do_error" from rtx to
7546 rtx_code_label *.
7547 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
7548 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
7549 rtx_code_label *.
7550 (ubsan_expand_si_overflow_neg_check): Likewise for locals
7551 "done_label", "do_error" to rtx_code_label * and local "last" to
7552 rtx_insn *.
7553 (ubsan_expand_si_overflow_mul_check): Likewise for locals
7554 "done_label", "do_error", "large_op0", "small_op0_large_op1",
7555 "one_small_one_large", "both_ops_large", "after_hipart_neg",
7556 "after_lopart_neg", "do_overflow", "hipart_different" to
7557 rtx_code_label * and local "last" to rtx_insn *.
7558
7559 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7560
7561 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
7562 "insn" and "move_insn" from rtx to rtx_insn *.
7563
7564 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7565
7566 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
7567 rtx_insn *.
7568 (cheap_bb_rtx_cost_p): Likewise.
7569 (first_active_insn): Likewise for return type and local "insn".
7570 (last_active_insn): Likewise for return type and locals "insn",
7571 "head".
7572 (struct noce_if_info): Likewise for fields "jump", "insn_a",
7573 "insn_b".
7574 (end_ifcvt_sequence): Likewise for return type and locals "insn",
7575 "seq".
7576 (noce_try_move): Likewise for local "seq".
7577 (noce_try_store_flag): Likewise.
7578 (noce_try_store_flag_constants): Likewise.
7579 (noce_try_addcc): Likewise.
7580 (noce_try_store_flag_mask): Likewise.
7581 (noce_try_cmove): Likewise.
7582 (noce_try_minmax): Likewise.
7583 (noce_try_abs): Likewise.
7584 (noce_try_sign_mask): Likewise.
7585 (noce_try_bitop): Likewise.
7586 (noce_can_store_speculate_p): Likewise for local "insn".
7587 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
7588 seq".
7589 (check_cond_move_block): Likewise for local "insn".
7590 (cond_move_convert_if_block): Likewise.
7591 (cond_move_process_if_block): Likewise for locals "seq",
7592 "loc_insn".
7593 (noce_find_if_block): Likewise for local "jump".
7594 (merge_if_block): Likewise for local "last".
7595 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
7596 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
7597 (block_has_only_trap): Likewise for return type and local "trap".
7598 (find_if_case_1): Likewise for local "jump".
7599 (dead_or_predicable): Likewise for locals "head", "end", "jump",
7600 "insn".
7601
7602 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7603
7604 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
7605 "last_insn", "loop_end" from rtx to rtx_insn *.
7606
7607 * hw-doloop.c (scan_loop): Likewise for local "insn".
7608 (discover_loop): Likewise for param "tail_insn".
7609 (discover_loops): Likewise for local "tail".
7610
7611 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
7612 cast to rtx_insn * when assigning from an rtx local to a
7613 hwloop_info's "last_insn" field.
7614
7615 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7616
7617 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
7618 (add_delay_dependencies): Strengthen local "pro" from rtx to
7619 rtx_insn *.
7620 (recompute_todo_spec): Likewise.
7621 (dep_cost_1): Likewise for locals "insn", "used".
7622 (schedule_insn): Likewise for local "dbg".
7623 (schedule_insn): Likewise for locals "pro", "next".
7624 (unschedule_insns_until): Likewise for local "con".
7625 (restore_pattern): Likewise for local "next".
7626 (estimate_insn_tick): Likewise for local "pro".
7627 (resolve_dependencies): Likewise for local "next".
7628 (fix_inter_tick): Likewise.
7629 (fix_tick_ready): Likewise for local "pro".
7630 (add_to_speculative_block): Likewise for locals "check", "twin",
7631 "pro".
7632 (sched_extend_bb): Likewise for locals "end", "insn".
7633 (init_before_recovery): Likewise for local "x".
7634 (sched_create_recovery_block): Likewise for local "barrier".
7635 (create_check_block_twin): Likewise for local "pro".
7636 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
7637 "consumer".
7638 (unlink_bb_notes): Update for change to type of bb_header.
7639 Strengthen locals "prev", "label", "note", "next" from rtx to
7640 rtx_insn *.
7641 (clear_priorities): Likewise for local "pro".
7642
7643 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7644
7645 * gcse.c (struct occr): Strengthen field "insn" from rtx to
7646 rtx_insn *.
7647 (test_insn): Likewise for this global.
7648 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
7649 const rtx_insn *.
7650 (oprs_anticipatable_p): Likewise.
7651 (oprs_available_p): Likewise.
7652 (insert_expr_in_table): Strengthen param "insn" from rtx to
7653 rtx_insn *.
7654 (hash_scan_set): Likewise.
7655 (hash_scan_clobber): Likewise.
7656 (hash_scan_call): Likewise.
7657 (hash_scan_insn): Likewise.
7658 (compute_hash_table_work): Likewise for local "insn".
7659 (process_insert_insn): Likewise for return type and local "pat".
7660 (insert_insn_end_basic_block): Likewise for locals "new_insn",
7661 "pat", "pat_end", "maybe_cc0_setter".
7662 (pre_edge_insert): Likewise for local "insn".
7663 (pre_insert_copy_insn): Likewise for param "insn".
7664 (pre_insert_copies): Likewise for local "insn".
7665 (struct set_data): Likewise for field "insn".
7666 (single_set_gcse): Likewise for param "insn".
7667 (gcse_emit_move_after): Likewise.
7668 (pre_delete): Likewise for local "insn".
7669 (update_bb_reg_pressure): Likewise for param "from" and local
7670 "insn".
7671 (should_hoist_expr_to_dom): Likewise for param "from".
7672 (hoist_code): Likewise for local "insn".
7673 (get_pressure_class_and_nregs): Likewise for param "insn".
7674 (calculate_bb_reg_pressure): Likewise for local "insn".
7675 (compute_ld_motion_mems): Likewise.
7676
7677 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7678
7679 * genpeep.c (main): Rename param back from "uncast_ins1" to
7680 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
7681 checked cast.
7682
7683 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
7684
7685 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
7686
7687 PR target/62195
7688 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
7689 documentation to state it is only for VSX operations.
7690
7691 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
7692 constraint only active if VSX.
7693
7694 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
7695 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
7696 (lfiwzx): Likewise.
7697
7698 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7699
7700 * fwprop.c (single_def_use_dom_walker::before_dom_children):
7701 Strengthen local "insn" from rtx to rtx_insn *.
7702 (use_killed_between): Likewise for param "target_insn".
7703 (all_uses_available_at): Likewise for param "target_insn" and
7704 local "next".
7705 (update_df_init): Likewise for params "def_insn", "insn".
7706 (update_df): Likewise for param "insn".
7707 (try_fwprop_subst): Likewise for param "def_insn" and local
7708 "insn".
7709 (free_load_extend): Likewise for param "insn".
7710 (forward_propagate_subreg): Likewise for param "def_insn" and
7711 local "use_insn".
7712 (forward_propagate_asm): Likewise for param "def_insn" and local
7713 "use_insn".
7714 (forward_propagate_and_simplify): Likewise for param "def_insn"
7715 and local "use_insn".
7716 (forward_propagate_into): Likewise for locals "def_insn" and
7717 "use_insn".
7718
7719 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7720
7721 * function.c (emit_initial_value_sets): Strengthen local "seq"
7722 from rtx to rtx_insn *.
7723 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
7724 local "seq".
7725 (instantiate_virtual_regs): Likewise for local "insn".
7726 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
7727 (reorder_blocks_1): Likewise for param "insns" and local "insn".
7728 (expand_function_end): Likewise for locals "insn" and "seq".
7729 (epilogue_done): Likewise for local "insn".
7730 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
7731 "last", "trial".
7732 (reposition_prologue_and_epilogue_notes): Likewise for locals
7733 "insn", "last", "note", "first".
7734 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
7735 (pass_match_asm_constraints::execute): Likewise for local "insn".
7736
7737 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7738
7739 * output.h (final_scan_insn): Strengthen return type from rtx to
7740 rtx_insn *.
7741 (final_forward_branch_p): Likewise for param.
7742 (current_output_insn): Likewise for this global.
7743
7744 * final.c (rtx debug_insn): Likewise for this variable.
7745 (current_output_insn): Likewise.
7746 (get_attr_length_1): Rename param "insn" to "uncast_insn",
7747 adding "insn" back in as an rtx_insn * with a checked cast, so
7748 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
7749 first param.
7750 (compute_alignments): Strengthen local "label" from rtx to
7751 rtx_insn *.
7752 (shorten_branches): Rename param from "first" to "uncast_first",
7753 introducing a new local rtx_insn * "first" using a checked cast to
7754 effectively strengthen "first" from rtx to rtx_insn * without
7755 affecting the type signature. Strengthen locals "insn", "seq",
7756 "next", "label" from rtx to rtx_insn *.
7757 (change_scope): Strengthen param "orig_insn" and local "insn" from
7758 rtx to rtx_insn *.
7759 (final_start_function): Rename param from "first" to "uncast_first",
7760 introducing a new local rtx_insn * "first" using a checked cast to
7761 effectively strengthen "first" from rtx to rtx_insn * without
7762 affecting the type signature. Strengthen local "insn" from rtx to
7763 rtx_insn *.
7764 (dump_basic_block_info): Strengthen param "insn" from rtx to
7765 rtx_insn *.
7766 (final): Rename param from "first" to "uncast_first",
7767 introducing a new local rtx_insn * "first" using a checked cast to
7768 effectively strengthen "first" from rtx to rtx_insn * without
7769 affecting the type signature. Strengthen locals "insn", "next"
7770 from rtx to rtx_insn *.
7771 (output_alternate_entry_point): Strengthen param "insn" from rtx to
7772 rtx_insn *.
7773 (call_from_call_insn): Strengthen param "insn" from rtx to
7774 rtx_call_insn *.
7775 (final_scan_insn): Rename param from "insn" to "uncast_insn",
7776 introducing a new local rtx_insn * "insn" using a checked cast to
7777 effectively strengthen "insn" from rtx to rtx_insn * without
7778 affecting the type signature. Strengthen return type and locals
7779 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
7780 now-redundant checked cast to rtx_insn * from both invocations of
7781 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
7782 introducing a local "call_insn" for use when invoking
7783 call_from_call_insn.
7784 (notice_source_line): Strengthen param "insn" from rtx to
7785 rtx_insn *.
7786 (leaf_function_p): Likewise for local "insn".
7787 (final_forward_branch_p): Likewise.
7788 (leaf_renumber_regs): Likewise for param "first".
7789 (rest_of_clean_state): Likewise for locals "insn" and "next".
7790 (self_recursive_call_p): Likewise for param "insn".
7791 (collect_fn_hard_reg_usage): Likewise for local "insn".
7792 (get_call_fndecl): Likewise for param "insn".
7793 (get_call_cgraph_rtl_info): Likewise.
7794 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
7795 introducing a new local rtx_insn * "insn" using a checked cast to
7796 effectively strengthen "insn" from rtx to rtx_insn * without
7797 affecting the type signature.
7798
7799 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
7800 cast when assigning from param "insn" to current_output_insn.
7801 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
7802 so that we can assign it back to current_output_insn.
7803
7804 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
7805
7806 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
7807 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
7808 atmxt540s and atmxt540sreva devices.
7809 * config/avr/avr-tables.opt: Regenerate.
7810 * config/avr/t-multilib: Regenerate.
7811 * doc/avr-mmcu.texi: Regenerate.
7812
7813 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7814
7815 * expr.c (convert_move): Strengthen local "insns" from rtx to
7816 rtx_insn *.
7817 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
7818 "top_label" from rtx to rtx_code_label *.
7819 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
7820 rtx_insn *.
7821 (emit_single_push_insn): Likewise for locals "prev", "last".
7822 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
7823 to rtx_code_label *.
7824 (store_constructor): Likewise for locals "loop_start", "loop_end".
7825 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
7826 rtx_insn *.
7827 (expand_expr_real_2): Likewise.
7828 (expand_expr_real_1): Strengthen local "label" from rtx to
7829 rtx_code_label *.
7830
7831 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7832
7833 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
7834 from rtx to rtx_insn *.
7835 (store_bit_field_1): Likewise.
7836 (extract_bit_field_1): Likewise.
7837 (expand_mult_const): Likewise for local "insns".
7838 (expmed_mult_highpart): Strengthen local "label" from rtx to
7839 rtx_code_label *.
7840 (expand_smod_pow2): Likewise.
7841 (expand_sdiv_pow2): Likewise.
7842 (expand_divmod): Strengthen locals "last", "insn" from rtx to
7843 rtx_insn *. Strengthen locals "label", "label1", "label2",
7844 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
7845 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
7846 (emit_store_flag): Likewise.
7847 (emit_store_flag_force): Strengthen local "label" from rtx to
7848 rtx_code_label *.
7849 (do_cmp_and_jump): Likewise for param "label".
7850
7851 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7852
7853 * explow.c (force_reg): Strengthen local "insn" from rtx to
7854 rtx_insn *.
7855 (adjust_stack_1): Likewise.
7856 (allocate_dynamic_stack_space): Likewise. Strengthen locals
7857 "final_label", "available_label", "space_available" from rtx to
7858 rtx_code_label *.
7859 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
7860 (anti_adjust_stack_and_probe): Likewise.
7861
7862 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7863
7864 * except.h (sjlj_emit_function_exit_after): Strengthen param
7865 "after" from rtx to rtx_insn *. This is only called with
7866 result of get_last_insn (in function.c) so type-change should be
7867 self-contained.
7868
7869 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
7870 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
7871 to rtx_insn *. These fields are only used from except.c so this
7872 type-change should be self-contained to this patch.
7873
7874 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
7875 local "last" from rtx to rtx_insn *.
7876 (dw2_build_landing_pads): Likewise for local "seq".
7877 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
7878 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
7879 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
7880 rtx to rtx_insn *.
7881 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
7882 to rtx_insn *.
7883 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
7884 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
7885 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
7886 referring to an insn. Strengthen local "dispatch_label" from
7887 rtx to rtx_code_label *.
7888 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
7889 rtx_insn *.
7890 (expand_eh_return): Strengthen local "around_label" from
7891 rtx to rtx_code_label *.
7892 (convert_to_eh_region_ranges): Strengthen locals "iter",
7893 "last_action_insn", "first_no_action_insn",
7894 "first_no_action_insn_before_switch",
7895 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
7896
7897 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7898
7899 * dwarf2out.c (last_var_location_insn): Strengthen this variable
7900 from rtx to rtx_insn *.
7901 (cached_next_real_insn): Likewise.
7902 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
7903 working with insns.
7904 (dwarf2out_var_location): Strengthen locals "next_real",
7905 "next_note", "expected_next_loc_note", "last_start", "insn" from
7906 rtx to rtx_insn *.
7907
7908 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7909
7910 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
7911 from rtx to rtx_insn *.
7912 (create_pseudo_cfg): Likewise for local "insn".
7913
7914 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7915
7916 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
7917 from rtx to rtx_insn *.
7918 (df_bb_regno_last_def_find): Likewise.
7919
7920 * df-problems.c (df_rd_bb_local_compute): Likewise.
7921 (df_lr_bb_local_compute): Likewise.
7922 (df_live_bb_local_compute): Likewise.
7923 (df_chain_remove_problem): Likewise.
7924 (df_chain_create_bb): Likewise.
7925 (df_word_lr_bb_local_compute): Likewise.
7926 (df_remove_dead_eq_notes): Likewise for param "insn".
7927 (df_note_bb_compute): Likewise for local "insn".
7928 (simulate_backwards_to_point): Likewise.
7929 (df_md_bb_local_compute): Likewise.
7930
7931 * df-scan.c (df_scan_free_bb_info): Likewise.
7932 (df_scan_start_dump): Likewise.
7933 (df_scan_start_block): Likewise.
7934 (df_install_ref_incremental): Likewise for local "insn".
7935 (df_insn_rescan_all): Likewise.
7936 (df_reorganize_refs_by_reg_by_insn): Likewise.
7937 (df_reorganize_refs_by_insn_bb): Likewise.
7938 (df_recompute_luids): Likewise.
7939 (df_bb_refs_record): Likewise.
7940 (df_update_entry_exit_and_calls): Likewise.
7941 (df_bb_verify): Likewise.
7942
7943 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7944
7945 * ddg.h (struct ddg_node): Strengthen fields "insn" and
7946 "first_note" from rtx to rtx_insn *.
7947 (get_node_of_insn): Likewise for param 2 "insn".
7948 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
7949
7950 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
7951 rtx_insn *.
7952 (mem_write_insn_p): Likewise.
7953 (mem_access_insn_p): Likewise.
7954 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
7955 (def_has_ccmode_p): Likewise for param "insn".
7956 (add_cross_iteration_register_deps): Likewise for locals
7957 "def_insn" and "use_insn".
7958 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
7959 (build_intra_loop_deps): Likewise for local "src_insn".
7960 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
7961 to rtx_insn *.
7962 (get_node_of_insn): Likewise for param "insn".
7963
7964 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7965
7966 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
7967 (deletable_insn_p): Strengthen param "insn" from rtx to
7968 rtx_insn *. Add checked cast to rtx_call_insn when invoking
7969 find_call_stack_args, since this is guarded by CALL_P (insn).
7970 (marked_insn_p): Strengthen param "insn" from rtx to
7971 rtx_insn *.
7972 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
7973 invoking find_call_stack_args, since this is guarded by
7974 CALL_P (insn).
7975 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
7976 rtx_insn *; we know this is an insn since this was called by
7977 mark_nonreg_stores.
7978 (mark_nonreg_stores_2): Likewise.
7979 (mark_nonreg_stores): Strengthen param "insn" from rtx to
7980 rtx_insn *.
7981 (find_call_stack_args): Strengthen param "call_insn" from rtx to
7982 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
7983 to rtx_insn *.
7984 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
7985 from rtx to rtx_insn *.
7986 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
7987 "next", "ref_insn".
7988 (delete_unmarked_insns): Likewise for locals "insn", "next".
7989 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
7990 (mark_reg_dependencies): Likewise for param "insn".
7991 (rest_of_handle_ud_dce): Likewise for local "insn".
7992 (word_dce_process_block): Likewise.
7993 (dce_process_block): Likewise.
7994
7995 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7996
7997 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
7998 from rtx to rtx_insn *.
7999 (struct change_cc_mode_args): Likewise for field "insn".
8000 (this_insn): Strengthen from rtx to rtx_insn *.
8001 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
8002 with insn.
8003 (validate_canon_reg): Strengthen param "insn" from rtx to
8004 rtx_insn *.
8005 (canon_reg): Likewise.
8006 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
8007 dealing with insn.
8008 (record_jump_equiv): Strengthen param "insn" from rtx to
8009 rtx_insn *.
8010 (try_back_substitute_reg): Likewise, also for locals "prev",
8011 "bb_head".
8012 (find_sets_in_insn): Likewise for param "insn".
8013 (canonicalize_insn): Likewise.
8014 (cse_insn): Likewise. Add a checked cast.
8015 (invalidate_from_clobbers): Likewise for param "insn".
8016 (invalidate_from_sets_and_clobbers): Likewise.
8017 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
8018 dealing with insn.
8019 (cse_prescan_path): Strengthen local "insn" from rtx to
8020 rtx_insn *.
8021 (cse_extended_basic_block): Likewise for locals "insn" and
8022 "prev_insn".
8023 (cse_main): Likewise for param "f".
8024 (check_for_label_ref): Likewise for local "insn".
8025 (set_live_p): Likewise for second param ("insn").
8026 (insn_live_p): Likewise for first param ("insn") and for local
8027 "next".
8028 (cse_change_cc_mode_insn): Likewise for first param "insn".
8029 (cse_change_cc_mode_insns): Likewise for first and second params
8030 "start" and "end".
8031 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
8032 and "end".
8033 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
8034 "cc_src_insn".
8035
8036 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8037 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8038 Anna Tikhonova <anna.tikhonova@intel.com>
8039 Ilya Tocar <ilya.tocar@intel.com>
8040 Andrey Turetskiy <andrey.turetskiy@intel.com>
8041 Ilya Verbin <ilya.verbin@intel.com>
8042 Kirill Yukhin <kirill.yukhin@intel.com>
8043 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8044
8045 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
8046 New.
8047 * config/i386/sse.md
8048 (define_mode_iterator VI248_AVX2): Delete.
8049 (define_mode_iterator VI2_AVX2_AVX512BW): New.
8050 (define_mode_iterator VI48_AVX2): Ditto.
8051 (define_insn <shift_insn><mode>3): Delete.
8052 (define_insn "<shift_insn><mode>3<mask_name>" with
8053 VI2_AVX2_AVX512BW): New.
8054 (define_insn "<shift_insn><mode>3<mask_name>" with
8055 VI48_AVX2): Ditto.
8056
8057 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8058 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8059 Anna Tikhonova <anna.tikhonova@intel.com>
8060 Ilya Tocar <ilya.tocar@intel.com>
8061 Andrey Turetskiy <andrey.turetskiy@intel.com>
8062 Ilya Verbin <ilya.verbin@intel.com>
8063 Kirill Yukhin <kirill.yukhin@intel.com>
8064 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8065
8066 * config/i386/sse.md
8067 (define_mode_iterator VI4F_BRCST32x2): New.
8068 (define_mode_attr 64x2_mode): Ditto.
8069 (define_mode_attr 32x2mode): Ditto.
8070 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
8071 with VI4F_BRCST32x2): Ditto.
8072 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
8073 with V16FI mode iterator): Ditto.
8074 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
8075 with V16FI): Ditto.
8076 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
8077 with VI8F_BRCST64x2): Ditto.
8078
8079 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8080 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8081 Anna Tikhonova <anna.tikhonova@intel.com>
8082 Ilya Tocar <ilya.tocar@intel.com>
8083 Andrey Turetskiy <andrey.turetskiy@intel.com>
8084 Ilya Verbin <ilya.verbin@intel.com>
8085 Kirill Yukhin <kirill.yukhin@intel.com>
8086 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8087
8088 * config/i386/sse.md
8089 (define_mode_iterator VI8_AVX512VL): New.
8090 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
8091
8092 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
8093
8094 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
8095 (define_mode_iterator V48_AVX512VL): New.
8096 (define_mode_iterator V12_AVX512VL): Ditto.
8097 (define_insn <avx512>_load<mode>_mask): Split into two similar
8098 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
8099 Refactor output template.
8100 (define_insn "<avx512>_store<mode>_mask"): Ditto.
8101
8102 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8103
8104 * cprop.c (struct occr): Strengthen field "insn" from rtx to
8105 rtx_insn *.
8106 (reg_available_p): Likewise for param "insn".
8107 (insert_set_in_table): Likewise.
8108 (hash_scan_set): Likewise.
8109 (hash_scan_insn): Likewise.
8110 (make_set_regs_unavailable): Likewise.
8111 (compute_hash_table_work): Likewise for local "insn".
8112 (reg_not_set_p): Strengthen param "insn" from const_rtx to
8113 const rtx_insn *.
8114 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
8115 (try_replace_reg): Likewise.
8116 (find_avail_set): Likewise.
8117 (cprop_jump): Likewise for params "setcc", "jump".
8118 (constprop_register): Likewise for param "insn".
8119 (cprop_insn): Likewise.
8120 (do_local_cprop): Likewise.
8121 (local_cprop_pass): Likewise for local "insn".
8122 (bypass_block): Likewise for params "setcc" and "jump".
8123 (bypass_conditional_jumps): Likewise for locals "setcc" and
8124 "insn".
8125 (one_cprop_pass): Likewise for local "insn".
8126
8127 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8128
8129 * compare-elim.c (struct comparison_use): Strengthen field "insn"
8130 from rtx to rtx_insn *.
8131 (struct comparison): Likewise, also for field "prev_clobber".
8132 (conforming_compare): Likewise for param "insn".
8133 (arithmetic_flags_clobber_p): Likewise.
8134 (find_flags_uses_in_insn): Likewise.
8135 (find_comparison_dom_walker::before_dom_children): Likewise for
8136 locals "insn", "next", "last_clobber".
8137 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
8138
8139 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8140
8141 * combine-stack-adj.c (struct csa_reflist): Strengthen field
8142 "insn" from rtx to rtx_insn *.
8143 (single_set_for_csa): Likewise for param "insn".
8144 (record_one_stack_ref): Likewise.
8145 (try_apply_stack_adjustment): Likewise.
8146 (struct record_stack_refs_data): Likewise for field "insn".
8147 (maybe_move_args_size_note): Likewise for params "last" and "insn".
8148 (prev_active_insn_bb): Likewise for return type and param "insn".
8149 (next_active_insn_bb): Likewise.
8150 (force_move_args_size_note): Likewise for params "prev" and "last"
8151 and locals "test", "next_candidate", "prev_candidate".
8152 (combine_stack_adjustments_for_block): Strengthen locals
8153 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
8154 rtx_insn *.
8155
8156 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8157
8158 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
8159 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
8160 (subst_insn): Likewise for this variable.
8161 (added_links_insn): Likewise.
8162 (struct insn_link): Likewise for field "insn".
8163 (alloc_insn_link): Likewise for param "insn".
8164 (struct undobuf): Likewise for field "other_insn".
8165 (find_single_use): Likewise for param "insn" and local "next".
8166 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
8167 (delete_noop_moves): Likewise for locals "insn", "next".
8168 (create_log_links): Likewise for locals "insn", "use_insn".
8169 Strengthen local "next_use" from rtx * to rtx_insn **.
8170 (insn_a_feeds_b): Likewise for params "a", "b".
8171 (combine_instructions): Likewise for param "f" and locals "insn",
8172 "next", "prev", "first", "last_combined_insn", "link", "link1",
8173 "temp". Replace use of NULL_RTX with NULL when referring to
8174 insns.
8175 (setup_incoming_promotions): Likewise for param "first"
8176 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
8177 (can_combine_p): Likewise for params "insn", "i3", "pred",
8178 "pred2", "succ", "succ2" and for local "p".
8179 (combinable_i3pat): Likewise for param "i3".
8180 (cant_combine_insn_p): Likewise for param "insn".
8181 (likely_spilled_retval_p): Likewise.
8182 (adjust_for_new_dest): Likewise.
8183 (update_cfg_for_uncondjump): Likewise, also for local "insn".
8184 (try_combine): Likewise for return type and for params "i3", "i2",
8185 "i1", "i0", "last_combined_insn", and for locals "insn",
8186 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
8187 "i0_insn". Eliminate local "tem" in favor of new locals
8188 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
8189 checked cast for now to rtx_insn * on the return type of
8190 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
8191 insns.
8192 (find_split_point): Strengthen param "insn" from rtx to
8193 rtx_insn *.
8194 (simplify_set): Likewise for local "other_insn".
8195 (recog_for_combine): Likewise for param "insn".
8196 (record_value_for_reg): Likewise.
8197 (record_dead_and_set_regs_1): Likewise for local
8198 "record_dead_insn".
8199 (record_dead_and_set_regs): Likewise for param "insn".
8200 (record_promoted_value): Likewise.
8201 (check_promoted_subreg): Likewise.
8202 (get_last_value_validate): Likewise.
8203 (reg_dead_at_p): Likewise.
8204 (move_deaths): Likewise for param "to_insn".
8205 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
8206 and locals "place", "place2", "cc0_setter". Eliminate local "tem
8207 in favor of new locals "tem_note" and "tem_insn", the latter being
8208 an rtx_insn *.
8209 (distribute_links): Strengthen locals "place", "insn" from rtx to
8210 rtx_insn *.
8211
8212 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8213
8214 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
8215 than a const_rtx.
8216 (can_delete_label_p): Require a const rtx_code_label * rather than
8217 a const_rtx.
8218 (delete_insn): Add checked cast to rtx_code_label * when we know
8219 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
8220 rtx to rtx_insn *.
8221 (delete_insn_chain): Strengthen locals "prev" and "current" from
8222 rtx to rtx_insn *. Add a checked cast when assigning from
8223 "finish" (strengthening the params will come later). Add a
8224 checked cast to rtx_note * in region where we know
8225 NOTE_P (current).
8226 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
8227 rtx_insn *.
8228 (compute_bb_for_insn): Likewise.
8229 (free_bb_for_insn): Likewise for local "insn".
8230 (compute_bb_for_insn): Likewise.
8231 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
8232 local "insn" from rtx to rtx_insn *
8233 (flow_active_insn_p): Require a const rtx_insn * rather than a
8234 const_rtx.
8235 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
8236 rtx_insn *.
8237 (can_fallthru): Likewise for locals "insn" and "insn2".
8238 (bb_note): Likewise for local "note".
8239 (first_insn_after_basic_block_note): Likewise for local "note" and
8240 for return type.
8241 (rtl_split_block): Likewise for locals "insn" and "next".
8242 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
8243 "end".
8244 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
8245 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
8246 "prev", "tmp".
8247 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
8248 them), "kill_from", "barrier", "new_insn".
8249 (patch_jump_insn): Likewise for params "insn", "old_label".
8250 (redirect_branch_edge): Likewise for locals "old_label", "insn".
8251 (force_nonfallthru_and_redirect): Likewise for locals "insn",
8252 "old_label", "new_label".
8253 (rtl_tidy_fallthru_edge): Likewise for local "q".
8254 (rtl_split_edge): Likewise for locals "before", "last".
8255 (commit_one_edge_insertion): Likewise for locals "before",
8256 "after", "insns", "tmp", "last", adding a checked cast where
8257 currently necessary.
8258 (commit_edge_insertions): Likewise.
8259 (rtl_dump_bb): Likewise for locals "insn", "last".
8260 (print_rtl_with_bb): Likewise for local "x".
8261 (rtl_verify_bb_insns): Likewise for local "x".
8262 (rtl_verify_bb_pointers): Likewise for local "insn".
8263 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
8264 "head", "end".
8265 (rtl_verify_fallthru): Likewise for local "insn".
8266 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
8267 (purge_dead_edges): Likewise for local "insn".
8268 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
8269 (skip_insns_after_block): Likewise for return type and for locals
8270 "insn", "last_insn", "next_head", "prev".
8271 (record_effective_endpoints): Likewise for locals "next_insn",
8272 "insn", "end".
8273 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
8274 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
8275 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
8276 (duplicate_insn_chain): For now, add checked cast from rtx to
8277 rtx_insn * when returning insn.
8278 (cfg_layout_duplicate_bb): Likewise for local "insn".
8279 (cfg_layout_delete_block): Likewise for locals "insn", "next",
8280 "prev", "remaints".
8281 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
8282 (rtl_block_empty_p): Likewise.
8283 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
8284 "split_point", "last".
8285 (rtl_block_ends_with_call_p): Likewise for local "insn".
8286 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
8287 const rtx_insn *.
8288 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
8289 "split_at_insn" from rtx to rtx_insn *.
8290 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
8291 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
8292 to const rtx_insn *.
8293 (rtl_account_profile_record): Likewise.
8294
8295 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8296
8297 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
8298 rtx to rtx_insn *.
8299 (average_num_loop_insns): Likewise.
8300 (init_set_costs): Likewise for local "seq".
8301 (seq_cost): Likewise for param "seq", from const_rtx to const
8302 rtx_insn *.
8303
8304 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8305
8306 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
8307 rtx to rtx_insn *.
8308
8309 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8310
8311 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
8312 "f1" and "f2" from rtx * to rtx_insn **.
8313 (flow_find_head_matching_sequence): Likewise.
8314
8315 * cfgcleanup.c (try_simplify_condjump): Strengthen local
8316 "cbranch_insn" from rtx to rtx_insn *.
8317 (thread_jump): Likewise for local "insn".
8318 (try_forward_edges): Likewise for local "last".
8319 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
8320 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
8321 "real_b_end".
8322 (can_replace_by): Likewise for params "i1", "i2".
8323 (old_insns_match_p): Likewise.
8324 (merge_notes): Likewise.
8325 (walk_to_nondebug_insn): Likewise for param "i1".
8326 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
8327 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
8328 "afterlast1", "afterlast2" from rtx to rtx_insn *.
8329 (flow_find_head_matching_sequence): Strengthen params "f1" and
8330 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
8331 "last1", "last2", "beforelast1", "beforelast2" from rtx to
8332 rtx_insn *.
8333 (outgoing_edges_match): Likewise for locals "last1", "last2".
8334 (try_crossjump_to_edge): Likewise for local "insn".
8335 Replace call to for_each_rtx with for_each_rtx_in_insn.
8336
8337 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
8338 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
8339 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
8340 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
8341 (try_optimize_cfg): Strengthen local "last" from rtx to
8342 rtx_insn *.
8343 (delete_dead_jumptables): Likewise for locals "insn", "next",
8344 "label".
8345
8346 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
8347 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
8348 "rtx else_first_tail", to reflect the basic-block.h changes above.
8349
8350 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8351
8352 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
8353 rtx_insn *.
8354 (purge_dead_tablejump_edges): Likewise.
8355 (find_bb_boundaries): Likewise for locals "insn", "end",
8356 "flow_transfer_insn".
8357
8358 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8359
8360 * caller-save.c (save_call_clobbered_regs): Strengthen locals
8361 "ins" and "prev" from rtx to rtx_insn *.
8362
8363 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8364
8365 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
8366 rtx_insn *.
8367 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
8368 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
8369 "scan_start".
8370 (load_register_parameters): Likewise for local "before_arg".
8371 (check_sibcall_argument_overlap): Likewise for param "insn".
8372 (expand_call): Likewise for locals "normal_call_insns",
8373 "tail_call_insns", "insns", "before_call", "after_args",
8374 "before_arg", "last", "prev". Strengthen one of the "last" from
8375 rtx to rtx_call_insn *.
8376 (fixup_tail_calls): Strengthen local "insn" from rtx to
8377 rtx_insn *.
8378 (emit_library_call_value_1): Likewise for locals "before_call" and
8379 "last".
8380
8381 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8382
8383 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
8384 and "last" from rtx to rtx_insn *.
8385 (expand_builtin_nonlocal_goto): Likewise for local "insn".
8386 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
8387 rtx_call_insn *.
8388 (expand_errno_check): Strengthen local "lab" from rtx to
8389 rtx_code_label *.
8390 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
8391 rtx_insn *.
8392 (expand_builtin_mathfn_2): Likewise.
8393 (expand_builtin_mathfn_ternary): Likewise.
8394 (expand_builtin_mathfn_3): Likewise.
8395 (expand_builtin_interclass_mathfn): Likewise for local "last".
8396 (expand_builtin_int_roundingfn): Likewise for local "insns".
8397 (expand_builtin_int_roundingfn_2): Likewise.
8398 (expand_builtin_strlen): Likewise for local "before_strlen".
8399 (expand_builtin_strncmp): Likewise for local "seq".
8400 (expand_builtin_signbit): Likewise for local "last".
8401 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
8402 from rtx to rtx_code_label *.
8403 (expand_stack_restore): Strengthen local "prev" from rtx to
8404 rtx_insn *.
8405
8406 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8407
8408 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
8409 to rtx_insn *.
8410 (struct btr_def_s): Likewise.
8411 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
8412 const rtx_insn *.
8413 (add_btr_def): Likewise.
8414 (new_btr_user): Likewise.
8415 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
8416 rtx to rtx_insn *.
8417 (link_btr_uses): Likewise.
8418 (move_btr_def): Likewise for locals "insp", "old_insn",
8419 "new_insn". Add checked cast to rtx_insn * for now on result of
8420 gen_move_insn.
8421 (can_move_up): Strengthen param "insn" from const_rtx to
8422 const rtx_insn *.
8423
8424 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8425
8426 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
8427 rtx_insn *.
8428 (get_uncond_jump_length): Likewise for locals "label", "jump".
8429 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
8430 "jump", "insn".
8431 (add_labels_and_missing_jumps): Likewise for local "new_jump".
8432 (fix_up_fall_thru_edges): Likewise for local "old_jump".
8433 (find_jump_block): Likewise for local "insn".
8434 (fix_crossing_conditional_branches): Likewise for locals
8435 "old_jump", "new_jump".
8436 (fix_crossing_unconditional_branches): Likewise for locals
8437 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
8438 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
8439
8440 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8441
8442 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
8443 rtx to rtx_insn *.
8444 (struct mem_insn): Likewise for field "insn".
8445 (reg_next_use): Strengthen from rtx * to rtx_insn **.
8446 (reg_next_inc_use): Likewise.
8447 (reg_next_def): Likewise.
8448 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
8449 from rtx to rtx_insn *.
8450 (move_insn_before): Likewise for param "next_insn" and local "insns".
8451 (attempt_change): Likewise for local "mov_insn".
8452 (try_merge): Likewise for param "last_insn".
8453 (get_next_ref): Likewise for return type and local "insn".
8454 Strengthen param "next_array" from rtx * to rtx_insn **.
8455 (parse_add_or_inc): Strengthen param "insn" from rtx to
8456 rtx_insn *.
8457 (find_inc): Likewise for locals "insn" and "other_insn" (three of
8458 the latter).
8459 (merge_in_block): Likewise for locals "insn", "curr",
8460 "other_insn".
8461 (pass_inc_dec::execute): Update allocations of the arrays to
8462 reflect the stronger types.
8463
8464 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8465
8466 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
8467 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
8468 from rtx to rtx_code_label *.
8469
8470 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8471
8472 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
8473 to rtx_insn *.
8474
8475 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8476
8477 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
8478 generated a warning and prevented bootstrapping the compiler.
8479
8480 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8481
8482 * rtl.h (delete_related_insns): Strengthen return type from rtx to
8483 rtx_insn *.
8484
8485 * jump.c (delete_related_insns): Likewise, also for locals "next"
8486 and "prev".
8487
8488 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8489
8490 * genautomata.c (output_internal_insn_latency_func): When writing
8491 the function "internal_insn_latency" to insn-automata.c,
8492 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
8493 allowing the optional guard function of (define_bypass) clauses to
8494 expect a pair of rtx_insn *, rather than a pair of rtx.
8495 (output_insn_latency_func): When writing the function
8496 "insn_latency", add an "uncast_" prefix to params "insn" and
8497 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
8498 using checked casts from the params, thus enabling the above
8499 change to the generated "internal_insn_latency" function.
8500
8501 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
8502
8503 PR tree-optimization/62091
8504 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
8505 handle correctly arrays.
8506 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
8507 inheritance binfos.
8508 (record_known_type): Walk into inner type.
8509 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
8510 condition on no type changes.
8511
8512 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8513
8514 * genattrtab.c (write_attr_get): Within the generated get_attr_
8515 functions, rename param "insn" to "uncast_insn" and reintroduce
8516 "insn" as an local rtx_insn * using a checked cast, so that "insn"
8517 is an rtx_insn * within insn-attrtab.c
8518
8519 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8520
8521 * output.h (peephole): Strengthen return type from rtx to
8522 rtx_insn *.
8523 * rtl.h (delete_for_peephole): Likewise for both params.
8524 * genpeep.c (main): In generated "peephole" function, strengthen
8525 return type and local "insn" from rtx to rtx_insn *. For now,
8526 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
8527 rtx_insn *, with a checked cast.
8528 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
8529 locals "insn", "next", "prev" from rtx to rtx_insn *.
8530
8531 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
8532
8533 PR tree-optimization/62112
8534 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
8535 * gimple-iterator.h (gsi_replace): Return bool.
8536 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
8537 moved from ref_may_alias_global_p.
8538 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
8539 New overloads.
8540 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
8541 (stmt_kills_ref_p_1): Rename...
8542 (stmt_kills_ref_p): ... to this.
8543 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
8544 stmt_kills_ref_p): Declare.
8545 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
8546 Move the self-assignment case...
8547 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
8548
8549 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8550
8551 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
8552
8553 * emit-rtl.c (try_split): Likewise, also for locals "before" and
8554 "after". For now, don't strengthen param "trial", which requires
8555 adding checked casts when returning it.
8556
8557 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8558
8559 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
8560 "label" from rtx to rtx_code_label *. Strengthen param 1 of
8561 "var_location" hook from rtx to rtx_insn *.
8562 (debug_nothing_rtx): Delete in favor of...
8563 (debug_nothing_rtx_code_label): New prototype.
8564 (debug_nothing_rtx_rtx): Delete unused prototype.
8565 (debug_nothing_rtx_insn): New prototype.
8566
8567 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
8568 invoking debug_hooks->var_location (in two places, one in a NOTE
8569 case of a switch statement, the other guarded by a CALL_P
8570 conditional. Add checked cast to rtx_code_label * when invoking
8571 debug_hooks->label (within CODE_LABEL case of switch statement).
8572
8573 * dbxout.c (dbx_debug_hooks): Update "label" hook from
8574 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
8575 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
8576 (xcoff_debug_hooks): Likewise.
8577 * debug.c (do_nothing_debug_hooks): Likewise.
8578 (debug_nothing_rtx): Delete in favor of...
8579 (debug_nothing_rtx_insn): New function.
8580 (debug_nothing_rtx_rtx): Delete unused function.
8581 (debug_nothing_rtx_code_label): New function.
8582 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
8583 debug_nothing_rtx to debug_nothing_rtx_code_label.
8584 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
8585 to rtx_insn *.
8586 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
8587 debug_nothing_rtx to debug_nothing_rtx_insn.
8588 (sdbout_label): Strengthen param "insn" from rtx to
8589 rtx_code_label *.
8590 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
8591 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
8592 "var_location" hook from debug_nothing_rtx to
8593 debug_nothing_rtx_insn.
8594
8595 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8596
8597 * recog.h (insn_output_fn): Update this function typedef to match
8598 the changes below to the generated output functions, strengthening
8599 the 2nd param from rtx to rtx_insn *.
8600
8601 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
8602 insn when invoking an output function, to match the new signature
8603 of insn_output_fn with a stronger second param.
8604
8605 * genconditions.c (write_header): In the generated code for
8606 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
8607 to match the other changes in this patch.
8608
8609 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
8610 the generated "gen_" functions from rtx to rtx_insn * within their
8611 implementations.
8612
8613 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
8614 the subfunctions within the generated "recog_", "split", "peephole2"
8615 function trees from rtx to rtx_insn *. For now, the top-level
8616 generated functions ("recog", "split", "peephole2") continue to
8617 take a plain rtx for "insn", to avoid introducing dependencies on
8618 other patches. Rename this 2nd param from "insn" to
8619 "uncast_insn", and reintroduce "insn" as a local variable of type
8620 rtx_insn *, initialized at the top of the generated function with
8621 a checked cast on "uncast_insn".
8622 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
8623 the generated "gen_" functions from rtx to rtx_insn * within their
8624 prototypes.
8625
8626 * genoutput.c (process_template): Strengthen the 2nd param within
8627 the generated "output_" functions "insn" from rtx to rtx_insn *.
8628
8629 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
8630
8631 * tree-profile.c (tree_profiling): Skip external functions
8632 when doing coverage instrumentation.
8633 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
8634
8635 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8636
8637 * config/rs6000/altivec.h (vec_cpsgn): New #define.
8638 (vec_mergee): Likewise.
8639 (vec_mergeo): Likewise.
8640 (vec_cntlz): Likewise.
8641 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
8642 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
8643 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
8644 VMRGEW, and VMRGOW.
8645 * doc/extend.texi: Document various forms of vec_cpsgn,
8646 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
8647 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
8648 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
8649 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
8650 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
8651
8652 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8653
8654 * config/rs6000/rs6000.c (context.h): New include.
8655 (tree-pass.h): Likewise.
8656 (make_pass_analyze_swaps): New decl.
8657 (rs6000_option_override): Register pass_analyze_swaps.
8658 (swap_web_entry): New subsclass of web_entry_base (df.h).
8659 (special_handling_values): New enum.
8660 (union_defs): New function.
8661 (union_uses): Likewise.
8662 (insn_is_load_p): Likewise.
8663 (insn_is_store_p): Likewise.
8664 (insn_is_swap_p): Likewise.
8665 (rtx_is_swappable_p): Likewise.
8666 (insn_is_swappable_p): Likewise.
8667 (chain_purpose): New enum.
8668 (chain_contains_only_swaps): New function.
8669 (mark_swaps_for_removal): Likewise.
8670 (swap_const_vector_halves): Likewise.
8671 (adjust_subreg_index): Likewise.
8672 (permute_load): Likewise.
8673 (permute_store): Likewise.
8674 (handle_special_swappables): Likewise.
8675 (replace_swap_with_copy): Likewise.
8676 (dump_swap_insn_table): Likewise.
8677 (rs6000_analyze_swaps): Likewise.
8678 (pass_data_analyze_swaps): New pass_data.
8679 (pass_analyze_swaps): New rtl_opt_pass.
8680 (make_pass_analyze_swaps): New function.
8681 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
8682
8683 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8684
8685 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
8686 type from rtx to rtx_insn *.
8687 (create_copy_of_insn_rtx): Likewise.
8688 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
8689 (create_copy_of_insn_rtx): Likewise, also for local "res".
8690
8691 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8692
8693 * rtl.h (find_first_parameter_load): Strengthen return type from
8694 rtx to rtx_insn *.
8695 * rtlanal.c (find_first_parameter_load): Strengthen return type
8696 from rtx to rtx_insn *. Add checked cast for now, to postpone
8697 strengthening the params.
8698
8699 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
8700
8701 PR fortran/44054
8702 * diagnostic.c: Set default caret.
8703 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
8704 line is needed.
8705 * diagnostic.h (struct diagnostic_context):
8706
8707 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8708
8709 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
8710 (sel_bb_head): Strengthen return type insn_t (currently just an
8711 rtx) to rtx_insn *.
8712 (sel_bb_end): Likewise.
8713
8714 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
8715 (sel_bb_head): Strengthen return type and local "head" from
8716 insn_t (currently just an rtx) to rtx_insn *.
8717 (sel_bb_end): Likewise for return type.
8718 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
8719 working with insn.
8720
8721 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8722
8723 * basic-block.h (get_last_bb_insn): Strengthen return type from
8724 rtx to rtx_insn *.
8725 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
8726 end".
8727
8728 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
8729
8730 PR fortran/44054
8731 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
8732 to here ...
8733 (diagnostic_report_diagnostic): ... from here.
8734 * toplev.c (general_init): Move code to c-family.
8735
8736 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8737
8738 * df.h (web_entry_base): Replace existing struct web_entry with a
8739 new class web_entry_base with only the predecessor member.
8740 (unionfind_root): Remove declaration and move to class member.
8741 (unionfind_union): Remove declaration and move to friend
8742 function.
8743 (union_defs): Remove declaration.
8744 * web.c (web_entry_base::unionfind_root): Modify to be member
8745 function and adjust accessors.
8746 (unionfind_union): Modify to be friend function and adjust
8747 accessors.
8748 (web_entry): New subclass of web_entry_base containing the reg
8749 member.
8750 (union_match_dups): Modify for struct -> class changes.
8751 (union_defs): Likewise.
8752 (entry_register): Likewise.
8753 (pass_web::execute): Likewise.
8754
8755 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
8756
8757 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
8758 builtin define __VEC_ELEMENT_REG_ORDER__.
8759
8760 2014-08-20 Martin Jambor <mjambor@suse.cz>
8761 Wei Mi <wmi@google.com>
8762
8763 PR ipa/60449
8764 PR middle-end/61776
8765 * tree-ssa-operands.c (update_stmt_operands): Remove
8766 MODIFIED_NORETURN_CALLS.
8767 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
8768 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
8769 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
8770 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
8771 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
8772 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
8773 (gimple_call_set_ctrl_altering): New func.
8774 (gimple_call_ctrl_altering_p): Ditto.
8775 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
8776 (make_blocks): Use gimple_call_initialize_ctrl_altering.
8777 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
8778 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
8779 remove MODIFIED_NORETURN_CALLS.
8780
8781 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
8782
8783 * coverage.c (coverage_compute_profile_id): Return non-0;
8784 also handle symbols with unique name.
8785 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
8786
8787 2014-08-20 Steve Ellcey <sellcey@mips.com>
8788
8789 PR middle-end/49191
8790 * doc/sourcebuild.texi (non_strict_align): New.
8791
8792 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
8793
8794 * cgraphunit.c (ipa_passes, compile): Reshedule
8795 symtab_remove_unreachable_nodes passes; update comments.
8796 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
8797 TODO_remove_functions before the pass; the functions ought to be
8798 already removed.
8799 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
8800 TODO_remove_functions.
8801 * passes.c (pass_data_early_local_passes): Do not schedule function
8802 removal.
8803 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
8804
8805 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8806
8807 PR c/59304
8808 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
8809 before setting the option.
8810 * diagnostic.c (diagnostic_classify_diagnostic): Record
8811 command-line status.
8812
8813 2014-08-20 Richard Biener <rguenther@suse.de>
8814
8815 PR lto/62190
8816 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
8817 to build uint{16,32,64}_type_node.
8818
8819 2014-08-20 Terry Guo <terry.guo@arm.com>
8820
8821 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
8822 with immediate_operand.
8823
8824 2014-08-20 David Malcolm <dmalcolm@redhat.com>
8825
8826 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
8827 "insn" from an as_a to a safe_as_a, for the case when "insn" is
8828 NULL.
8829
8830 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8831
8832 PR preprocessor/51303
8833 * incpath.c (remove_duplicates): Use cpp_warning.
8834
8835 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8836
8837 PR c/60975
8838 PR c/53063
8839 * doc/options.texi (CPP): Document it.
8840 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
8841 * optc-gen.awk: Handle CPP.
8842 * opth-gen.awk: Likewise.
8843
8844 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8845
8846 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
8847 rtx_insn *.
8848 (duplicate_insn_chain): Likewise.
8849 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
8850 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
8851 checked cast for now (until we can strengthen the params in the
8852 same way).
8853 (duplicate_insn_chain): Likewise.
8854
8855 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8856
8857 * rtl.h (next_cc0_user): Strengthen return type from rtx to
8858 rtx_insn *.
8859 (prev_cc0_setter): Likewise.
8860
8861 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
8862 rtx_insn *, adding checked casts for now as necessary.
8863 (prev_cc0_setter): Likewise.
8864
8865 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8866
8867 * expr.h (emit_move_insn): Strengthen return type from rtx to
8868 rtx_insn *.
8869 (emit_move_insn_1): Likewise.
8870 (emit_move_complex_push): Likewise.
8871 (emit_move_complex_parts): Likewise.
8872
8873 * expr.c (emit_move_via_integer): Strengthen return type from rtx
8874 to rtx_insn *. Replace use of NULL_RTX with NULL when working
8875 with insns.
8876 (emit_move_complex_push): Strengthen return type from rtx to
8877 rtx_insn *.
8878 (emit_move_complex): Likewise, also for local "ret".
8879 (emit_move_ccmode): Likewise.
8880 (emit_move_multi_word): Likewise for return type and locals
8881 "last_insn", "seq".
8882 (emit_move_insn_1): Likewise for return type and locals "result",
8883 "ret".
8884 (emit_move_insn): Likewise for return type and local "last_insn".
8885 (compress_float_constant): Likewise.
8886
8887 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8888
8889 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
8890 from rtx to rtx_insn *.
8891
8892 * rtl.h (emit_insn_before): Likewise.
8893 (emit_insn_before_noloc): Likewise.
8894 (emit_insn_before_setloc): Likewise.
8895 (emit_jump_insn_before): Likewise.
8896 (emit_jump_insn_before_noloc): Likewise.
8897 (emit_jump_insn_before_setloc): Likewise.
8898 (emit_call_insn_before): Likewise.
8899 (emit_call_insn_before_noloc): Likewise.
8900 (emit_call_insn_before_setloc): Likewise.
8901 (emit_debug_insn_before): Likewise.
8902 (emit_debug_insn_before_noloc): Likewise.
8903 (emit_debug_insn_before_setloc): Likewise.
8904 (emit_label_before): Likewise.
8905 (emit_insn_after): Likewise.
8906 (emit_insn_after_noloc): Likewise.
8907 (emit_insn_after_setloc): Likewise.
8908 (emit_jump_insn_after): Likewise.
8909 (emit_jump_insn_after_noloc): Likewise.
8910 (emit_jump_insn_after_setloc): Likewise.
8911 (emit_call_insn_after): Likewise.
8912 (emit_call_insn_after_noloc): Likewise.
8913 (emit_call_insn_after_setloc): Likewise.
8914 (emit_debug_insn_after): Likewise.
8915 (emit_debug_insn_after_noloc): Likewise.
8916 (emit_debug_insn_after_setloc): Likewise.
8917 (emit_label_after): Likewise.
8918 (emit_insn): Likewise.
8919 (emit_debug_insn): Likewise.
8920 (emit_jump_insn): Likewise.
8921 (emit_call_insn): Likewise.
8922 (emit_label): Likewise.
8923 (gen_clobber): Likewise.
8924 (emit_clobber): Likewise.
8925 (gen_use): Likewise.
8926 (emit_use): Likewise.
8927 (emit): Likewise.
8928
8929 (emit_barrier_before): Strengthen return type from rtx to
8930 rtx_barrier *.
8931 (emit_barrier_after): Likewise.
8932 (emit_barrier): Likewise.
8933
8934 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
8935 from rtx to rtx_insn *. Add checked casts for now when converting
8936 "last" from rtx to rtx_insn *.
8937 (emit_insn_before_noloc): Likewise for return type.
8938 (emit_jump_insn_before_noloc): Likewise.
8939 (emit_call_insn_before_noloc): Likewise.
8940 (emit_debug_insn_before_noloc): Likewise.
8941 (emit_barrier_before): Strengthen return type and local "insn"
8942 from rtx to rtx_barrier *.
8943 (emit_label_before): Strengthen return type from rtx to
8944 rtx_insn *. Add checked cast for now when returning param
8945 (emit_pattern_after_noloc): Strengthen return type from rtx to
8946 rtx_insn *. Add checked casts for now when converting "last" from
8947 rtx to rtx_insn *.
8948 (emit_insn_after_noloc): Strengthen return type from rtx to
8949 rtx_insn *.
8950 (emit_jump_insn_after_noloc): Likewise.
8951 (emit_call_insn_after_noloc): Likewise.
8952 (emit_debug_insn_after_noloc): Likewise.
8953 (emit_barrier_after): Strengthen return type from rtx to
8954 rtx_barrier *.
8955 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
8956 Add checked cast for now when converting "label" from rtx to
8957 rtx_insn *.
8958 (emit_pattern_after_setloc): Strengthen return type from rtx to
8959 rtx_insn *. Add checked casts for now when converting "last" from
8960 rtx to rtx_insn *.
8961 (emit_pattern_after): Strengthen return type from rtx to
8962 rtx_insn *.
8963 (emit_insn_after_setloc): Likewise.
8964 (emit_insn_after): Likewise.
8965 (emit_jump_insn_after_setloc): Likewise.
8966 (emit_jump_insn_after): Likewise.
8967 (emit_call_insn_after_setloc): Likewise.
8968 (emit_call_insn_after): Likewise.
8969 (emit_debug_insn_after_setloc): Likewise.
8970 (emit_debug_insn_after): Likewise.
8971 (emit_pattern_before_setloc): Likewise. Add checked casts for now
8972 when converting "last" from rtx to rtx_insn *.
8973 (emit_pattern_before): Strengthen return type from rtx to
8974 rtx_insn *.
8975 (emit_insn_before_setloc): Likewise.
8976 (emit_insn_before): Likewise.
8977 (emit_jump_insn_before_setloc): Likewise.
8978 (emit_jump_insn_before): Likewise.
8979 (emit_call_insn_before_setloc): Likewise.
8980 (emit_call_insn_before): Likewise.
8981 (emit_debug_insn_before_setloc): Likewise.
8982 (emit_debug_insn_before): Likewise.
8983 (emit_insn): Strengthen return type and locals "last", "insn",
8984 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
8985 within cases where we know we have an insn.
8986 (emit_debug_insn): Likewise.
8987 (emit_jump_insn): Likewise.
8988 (emit_call_insn): Strengthen return type and local "insn" from rtx
8989 to rtx_insn *.
8990 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
8991 a checked cast to rtx_insn * for now on "label".
8992 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
8993 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
8994 (emit_use): Likewise.
8995 (gen_use): Likewise, also for local "seq".
8996 (emit): Likewise for return type and local "insn".
8997 (rtx_insn): Likewise for return type and local "new_rtx".
8998
8999 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
9000 from rtx to rtx_barrier *.
9001
9002 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
9003 changed return type from rtx to rtx_insn *, we must update
9004 "emit_fn" type, and this in turn means updating...
9005 (frame_insn): ...this. Strengthen return type from rtx to
9006 rtx_insn *. Introduce a new local "insn" of the appropriate type.
9007
9008 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9009
9010 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
9011 rtx to rtx_jump_table_data *. Also for local.
9012 * rtl.h (emit_jump_table_data): Likewise.
9013
9014 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9015
9016 * basic-block.h (create_basic_block_structure): Strengthen third
9017 param "bb_note" from rtx to rtx_note *.
9018 * rtl.h (emit_note_before): Strengthen return type from rtx to
9019 rtx_note *.
9020 (emit_note_after): Likewise.
9021 (emit_note): Likewise.
9022 (emit_note_copy): Likewise. Also, strengthen param similarly.
9023 * function.h (struct rtl_data): Strengthen field
9024 "x_stack_check_probe_note" from rtx to rtx_note *.
9025
9026 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
9027 from rtx to rtx_note *.
9028 * cfgrtl.c (create_basic_block_structure): Strengthen third param
9029 "bb_note" from rtx to rtx_note *.
9030 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
9031 when calling emit_note_copy.
9032 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
9033 rtx_note *.
9034 (emit_note_after): Likewise.
9035 (emit_note_before): Likewise.
9036 (emit_note_copy): Likewise. Also, strengthen param similarly.
9037 (emit_note): Likewise.
9038 * except.c (emit_note_eh_region_end): Likewise for return type.
9039 Strengthen local "next" from rtx to rtx_insn *.
9040 (convert_to_eh_region_ranges): Strengthen local "note"
9041 from rtx to rtx_note *.
9042 * final.c (change_scope): Likewise.
9043 (reemit_insn_block_notes): Likewise, for both locals named "note".
9044 Also, strengthen local "insn" from rtx to rtx_insn *.
9045 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
9046 rtx to rtx_note *.
9047 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
9048 strengthen local "seq" from rtx to rtx_insn *.
9049 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
9050 to rtx_note *.
9051 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
9052 vec<rtx_note *>.
9053 (get_bb_note_from_pool): Strengthen return type from rtx to
9054 rtx_note *.
9055 (sel_create_basic_block): Strengthen local "new_bb_note" from
9056 insn_t to rtx_note *.
9057 * var-tracking.c (emit_note_insn_var_location): Strengthen local
9058 "note" from rtx to rtx_note *.
9059 (emit_notes_in_bb): Likewise.
9060
9061 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9062
9063 * function.h (struct rtl_data): Strengthen field
9064 "x_parm_birth_insn" from rtx to rtx_insn *.
9065 * function.c (struct assign_parm_data_all): Strengthen fields
9066 "first_conversion_insn" and "last_conversion_insn" from rtx to
9067 rtx_insn *.
9068
9069 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9070
9071 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
9072 to rtx_insn *; also for local "var_end_seq".
9073 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
9074 (maybe_cleanup_end_of_block): Likewise for param "last" and local
9075 "insn".
9076 (expand_gimple_cond): Likewise for locals "last2" and "last".
9077 (mark_transaction_restart_calls): Likewise for local "insn".
9078 (expand_gimple_stmt): Likewise for return type and locals "last"
9079 and "insn".
9080 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
9081 (avoid_complex_debug_insns): Likewise for param "insn".
9082 (expand_debug_locations): Likewise for locals "insn", "last",
9083 "prev_insn" and "insn2".
9084 (expand_gimple_basic_block): Likewise for local "last".
9085 (construct_exit_block): Likewise for locals "head", "end",
9086 "orig_end".
9087 (pass_expand::execute): Likewise for locals "var_seq",
9088 "var_ret_seq", "next".
9089
9090 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9091
9092 * asan.h (asan_emit_stack_protection): Strengthen return type from
9093 rtx to rtx_insn *.
9094 * asan.c (asan_emit_stack_protection): Likewise. Add local
9095 "insns" to hold the return value.
9096
9097 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9098
9099 * basic-block.h (bb_note): Strengthen return type from rtx to
9100 rtx_note *.
9101 * sched-int.h (bb_note): Likewise.
9102 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
9103
9104 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9105
9106 * rtl.h (make_insn_raw): Strengthen return type from rtx to
9107 rtx_insn *.
9108
9109 * emit-rtl.c (make_insn_raw): Strengthen return type and local
9110 "insn" from rtx to rtx_insn *.
9111 (make_debug_insn_raw): Strengthen return type from rtx to
9112 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
9113 (make_jump_insn_raw): Strengthen return type from rtx to
9114 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
9115 (make_call_insn_raw): Strengthen return type from rtx to
9116 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
9117 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
9118 callback from rtx to rtx_insn *; likewise for local "insn" and
9119 "next", adding a checked cast to rtx_insn in the relevant cases of
9120 the switch statement.
9121 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
9122 callback from rtx to rtx_insn *.
9123 (emit_pattern_after_setloc): Likewise.
9124 (emit_pattern_after): Likewise.
9125 (emit_pattern_before_setloc): Likewise.
9126 (emit_pattern_before): Likewise.
9127
9128 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9129
9130 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
9131 rtx_call_insn *.
9132 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
9133 accepting an rtx_insn *.
9134 (last_call_insn): Strengthen return type from rtx to
9135 rtx_call_insn *.
9136
9137 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9138
9139 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
9140 "insns" from rtx to rtx_insn *.
9141 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
9142 locals "insn" and "prev".
9143
9144 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9145
9146 * rtl.h (tablejump_p): Strengthen third param from rtx * to
9147 rtx_jump_table_data **.
9148
9149 * cfgbuild.c (make_edges): Introduce local "table", using it in
9150 place of "tmp" for jump table data.
9151 (find_bb_boundaries): Strengthen local "table" from rtx to
9152 rtx_jump_table_data *.
9153 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9154 (outgoing_edges_match): Likewise for locals "table1" and "table2".
9155 (try_crossjump_to_edge): Likewise.
9156 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
9157 "table".
9158 (patch_jump_insn): Introduce local "table", using it in place of
9159 "tmp" for jump table data.
9160 (force_nonfallthru_and_redirect): Introduce local "table", so that
9161 call to tablejump_p can receive an rtx_jump_table_data **. Update
9162 logic around the call to overwrite "note" appropriately if
9163 tablejump_p returns non-zero.
9164 (get_last_bb_insn): Introduce local "table", using it in place of
9165 "tmp" for jump table data.
9166 * dwarf2cfi.c (create_trace_edges): Likewise.
9167
9168 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
9169 from rtx to rtx_jump_table_data *.
9170 (create_fix_barrier): Strengthen local "tmp" from rtx to
9171 rtx_jump_table_data *.
9172 (arm_reorg): Likewise for local "table".
9173
9174 * config/s390/s390.c (s390_chunkify_start): Likewise.
9175
9176 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
9177
9178 * jump.c (delete_related_insns): Strengthen local "lab_next" from
9179 rtx to rtx_jump_table_data *.
9180
9181 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
9182 rtx_jump_table_data **. Add a checked cast when writing through
9183 the pointer: we know there that local "table" is non-NULL and that
9184 JUMP_TABLE_DATA_P (table) holds.
9185 (label_is_jump_target_p): Introduce local "table", using it in
9186 place of "tmp" for jump table data.
9187
9188 2014-08-19 Marek Polacek <polacek@redhat.com>
9189
9190 PR c++/62153
9191 * doc/invoke.texi: Document -Wbool-compare.
9192
9193 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9194
9195 * rtl.h (entry_of_function): Strengthen return type from rtx to
9196 rtx_insn *.
9197 * cfgrtl.c (entry_of_function): Likewise.
9198
9199 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9200
9201 * emit-rtl.h (get_insns): Strengthen return type from rtx to
9202 rtx_insn *, adding a checked cast for now.
9203 (get_last_insn): Likewise.
9204
9205 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9206
9207 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
9208 rtx_code_label *.
9209
9210 * emit-rtl.c (gen_label_rtx): Likewise.
9211
9212 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9213
9214 * rtl.h (previous_insn): Strengthen return type from rtx to
9215 rtx_insn *.
9216 (next_insn): Likewise.
9217 (prev_nonnote_insn): Likewise.
9218 (prev_nonnote_insn_bb): Likewise.
9219 (next_nonnote_insn): Likewise.
9220 (next_nonnote_insn_bb): Likewise.
9221 (prev_nondebug_insn): Likewise.
9222 (next_nondebug_insn): Likewise.
9223 (prev_nonnote_nondebug_insn): Likewise.
9224 (next_nonnote_nondebug_insn): Likewise.
9225 (prev_real_insn): Likewise.
9226 (next_real_insn): Likewise.
9227 (prev_active_insn): Likewise.
9228 (next_active_insn): Likewise.
9229
9230 * emit-rtl.c (next_insn): Strengthen return type from rtx to
9231 rtx_insn *, adding a checked cast.
9232 (previous_insn): Likewise.
9233 (next_nonnote_insn): Likewise.
9234 (next_nonnote_insn_bb): Likewise.
9235 (prev_nonnote_insn): Likewise.
9236 (prev_nonnote_insn_bb): Likewise.
9237 (next_nondebug_insn): Likewise.
9238 (prev_nondebug_insn): Likewise.
9239 (next_nonnote_nondebug_insn): Likewise.
9240 (prev_nonnote_nondebug_insn): Likewise.
9241 (next_real_insn): Likewise.
9242 (prev_real_insn): Likewise.
9243 (next_active_insn): Likewise.
9244 (prev_active_insn): Likewise.
9245
9246 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
9247 param "stepfunc" so that it returns an rtx_insn * rather than an
9248 rtx, to track the change to prev_nonnote_insn_bb, which is the
9249 only function this is called with.
9250 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
9251
9252 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
9253
9254 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
9255 assert.
9256
9257 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9258
9259 * coretypes.h (class rtx_debug_insn): Add forward declaration.
9260 (class rtx_nonjump_insn): Likewise.
9261 (class rtx_jump_insn): Likewise.
9262 (class rtx_call_insn): Likewise.
9263 (class rtx_jump_table_data): Likewise.
9264 (class rtx_barrier): Likewise.
9265 (class rtx_code_label): Likewise.
9266 (class rtx_note): Likewise.
9267
9268 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
9269 adding the invariant DEBUG_INSN_P (X).
9270 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
9271 the invariant NONJUMP_INSN_P (X).
9272 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
9273 the invariant JUMP_P (X).
9274 (class rtx_call_insn): New, a subclass of rtx_insn, adding
9275 the invariant CALL_P (X).
9276 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
9277 invariant JUMP_TABLE_DATA_P (X).
9278 (class rtx_barrier): New, a subclass of rtx_insn, adding the
9279 invariant BARRIER_P (X).
9280 (class rtx_code_label): New, a subclass of rtx_insn, adding
9281 the invariant LABEL_P (X).
9282 (class rtx_note): New, a subclass of rtx_insn, adding
9283 the invariant NOTE_P(X).
9284 (is_a_helper <rtx_debug_insn *>::test): New.
9285 (is_a_helper <rtx_nonjump_insn *>::test): New.
9286 (is_a_helper <rtx_jump_insn *>::test): New.
9287 (is_a_helper <rtx_call_insn *>::test): New.
9288 (is_a_helper <rtx_jump_table_data *>::test): New functions,
9289 overloaded for both rtx and rtx_insn *.
9290 (is_a_helper <rtx_barrier *>::test): New.
9291 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
9292 for both rtx and rtx_insn *.
9293 (is_a_helper <rtx_note *>::test): New.
9294
9295 2014-08-19 Marek Polacek <polacek@redhat.com>
9296
9297 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
9298 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9299 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
9300 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9301
9302 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9303
9304 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
9305 rtx_insn *. To help with transition, for now, convert from an
9306 access macro into a pair of functions: BND_TO, returning an
9307 rtx_insn *, and...
9308 (SET_BND_TO): New function, for use where BND_TO is used as an
9309 lvalue.
9310
9311 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
9312 SET_BND_TO.
9313 (BND_TO): New function, adding a checked cast.
9314 (SET_BND_TO): New function.
9315
9316 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
9317 SET_BND_TO.
9318 (compute_av_set_on_boundaries): Likewise.
9319
9320 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
9321
9322 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
9323 destination if it is used in source.
9324 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
9325 (*popcount<mode>2_falsedep_1): Likewise.
9326
9327 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
9328
9329 PR other/62168
9330 * configure.ac: Set install_gold_as_default to no first.
9331 * configure: Regenerated.
9332
9333 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9334
9335 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
9336 "note_list" field will eventually be an rtx_insn *. To help with
9337 transition, for now, convert from an access macro into a pair of
9338 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
9339 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
9340 used as an lvalue.
9341
9342 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
9343 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
9344
9345 * sel-sched-ir.c (init_bb): Likewise.
9346 (sel_restore_notes): Likewise.
9347 (move_bb_info): Likewise.
9348 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
9349 (SET_BB_NOTE_LIST): New function.
9350
9351 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9352
9353 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
9354 field will eventually be an rtx_insn *. To help with transition,
9355 for now, convert from an access macro into a pair of functions:
9356 VINSN_INSN_RTX, returning an rtx_insn *, and...
9357 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
9358 is used as an lvalue.
9359
9360 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
9361 SET_VINSN_INSN_RTX where it's used as an lvalue.
9362 (VINSN_INSN_RTX): New function.
9363 (SET_VINSN_INSN_RTX): New function.
9364
9365 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9366
9367 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
9368 eventually be rtx_insn *, but to help with transition, for now,
9369 convert from an access macro into a pair of functions: DEP_PRO
9370 returning an rtx_insn * and...
9371 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
9372 lvalue, returning an rtx&.
9373 (DEP_CON): Analogous changes to DEP_PRO above.
9374 (SET_DEP_CON): Likewise.
9375
9376 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
9377 an lvalue to SET_DEP_CON.
9378 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
9379 (sd_copy_back_deps): Likewise for DEP_CON.
9380 (DEP_PRO): New function, adding a checked cast for now.
9381 (DEP_CON): Likewise.
9382 (SET_DEP_PRO): New function.
9383 (SET_DEP_CON): Likewise.
9384
9385 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
9386
9387 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
9388 (extra_options): Add i386/cygwin.opt.
9389 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
9390 (CPP_SPEC): Accept -pthread.
9391 (LINK_SPEC): Ditto.
9392 (GOMP_SELF_SPECS): Update comment.
9393 * config/i386/cygwin.opt: New file for -pthread flag.
9394
9395 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9396
9397 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
9398 * df.h (DF_REF_INSN): Convert from a macro to a function, so
9399 that we can return an rtx_insn *.
9400
9401 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
9402
9403 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
9404 when building executables, not DLLs. Add --large-address-aware
9405 under the same conditions.
9406 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
9407 when building executables, not DLLs. Add --large-address-aware
9408 under the same conditions when using -m32.
9409
9410 * config/i386/cygwin-stdint.h: Throughout, make type
9411 definitions dependent on target architecture, not host.
9412
9413 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9414
9415 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
9416 the return type from rtx to rtx_insn *, which will enable various
9417 conversions in followup patches. For now this is is done by a
9418 checked cast.
9419 (NEXT_INSN): Likewise.
9420 (SET_PREV_INSN): Convert to an inline function. This is intended
9421 for use as an lvalue, and so returns an rtx& to allow in-place
9422 modification.
9423 (SET_NEXT_INSN): Likewise.
9424
9425 2014-07-08 Mark Wielaard <mjw@redhat.com>
9426
9427 PR debug/59051
9428 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
9429
9430 2014-08-19 Marek Polacek <polacek@redhat.com>
9431
9432 PR c/61271
9433 * cgraphunit.c (handle_alias_pairs): Fix condition.
9434
9435 2014-08-19 Richard Biener <rguenther@suse.de>
9436
9437 * gimple-fold.c (fold_gimple_assign): Properly build a
9438 null-pointer constant when devirtualizing addresses.
9439
9440 2014-07-07 Mark Wielaard <mjw@redhat.com>
9441
9442 * dwarf2out.c (decl_quals): New function.
9443 (modified_type_die): Take one cv_quals argument instead of two,
9444 one for const and one for volatile.
9445 (add_type_attribute): Likewise.
9446 (generic_parameter_die): Call add_type_attribute with one modifier
9447 argument.
9448 (base_type_for_mode): Likewise.
9449 (add_bounds_info): Likewise.
9450 (add_subscript_info): Likewise.
9451 (gen_array_type_die): Likewise.
9452 (gen_descr_array_type_die): Likewise.
9453 (gen_entry_point_die): Likewise.
9454 (gen_enumeration_type_die): Likewise.
9455 (gen_formal_parameter_die): Likewise.
9456 (gen_subprogram_die): Likewise.
9457 (gen_variable_die): Likewise.
9458 (gen_const_die): Likewise.
9459 (gen_field_die): Likewise.
9460 (gen_pointer_type_die): Likewise.
9461 (gen_reference_type_die): Likewise.
9462 (gen_ptr_to_mbr_type_die): Likewise.
9463 (gen_inheritance_die): Likewise.
9464 (gen_subroutine_type_die): Likewise.
9465 (gen_typedef_die): Likewise.
9466 (force_type_die): Likewise.
9467
9468 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9469
9470 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
9471 if unset.
9472 * configure: Regenerate.
9473
9474 2014-08-19 Richard Biener <rguenther@suse.de>
9475
9476 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
9477 DECL_EXTERNALs in BLOCKs as non-references.
9478 * tree-streamer-out.c (streamer_write_chain): Likewise.
9479
9480 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
9481 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9482 Anna Tikhonova <anna.tikhonova@intel.com>
9483 Ilya Tocar <ilya.tocar@intel.com>
9484 Andrey Turetskiy <andrey.turetskiy@intel.com>
9485 Ilya Verbin <ilya.verbin@intel.com>
9486 Kirill Yukhin <kirill.yukhin@intel.com>
9487 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9488
9489 * config/i386/sse.md
9490 (define_mode_iterator VI48_AVX512F): Delete.
9491 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
9492 (define_mode_iterator VI2_AVX512VL): Ditto.
9493 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
9494 Delete.
9495 (define_insn
9496 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
9497 New.
9498 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
9499 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
9500 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
9501 with VI48_AVX512F_AVX512VL): New.
9502 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
9503 with VI2_AVX512VL): Ditto.
9504
9505 2014-08-19 Marek Polacek <polacek@redhat.com>
9506
9507 * doc/invoke.texi: Document -Wc99-c11-compat.
9508
9509 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9510
9511 * rtl.h (PREV_INSN): Split macro in two: the existing one,
9512 for rvalues, and...
9513 (SET_PREV_INSN): New macro, for use as an lvalue.
9514 (NEXT_INSN, SET_NEXT_INSN): Likewise.
9515
9516 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
9517 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
9518 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
9519 (fixup_abnormal_edges): Likewise.
9520 (unlink_insn_chain): Likewise.
9521 (fixup_reorder_chain): Likewise.
9522 (cfg_layout_delete_block): Likewise.
9523 (cfg_layout_merge_blocks): Likewise.
9524 * combine.c (update_cfg_for_uncondjump): Likewise.
9525 * emit-rtl.c (link_insn_into_chain): Likewise.
9526 (remove_insn): Likewise.
9527 (delete_insns_since): Likewise.
9528 (reorder_insns_nobb): Likewise.
9529 (emit_insn_after_1): Likewise.
9530 * final.c (rest_of_clean_state): Likewise.
9531 (final_scan_insn): Likewise.
9532 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
9533 * haifa-sched.c (concat_note_lists): Likewise.
9534 (remove_notes): Likewise.
9535 (restore_other_notes): Likewise.
9536 (move_insn): Likewise.
9537 (unlink_bb_notes): Likewise.
9538 (restore_bb_notes): Likewise.
9539 * jump.c (delete_for_peephole): Likewise.
9540 * optabs.c (emit_libcall_block_1): Likewise.
9541 * reorg.c (emit_delay_sequence): Likewise.
9542 (fill_simple_delay_slots): Likewise.
9543 * sel-sched-ir.c (sel_move_insn): Likewise.
9544 (sel_remove_insn): Likewise.
9545 (get_bb_note_from_pool): Likewise.
9546 * sel-sched.c (move_nop_to_previous_block): Likewise.
9547
9548 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
9549 * config/c6x/c6x.c (gen_one_bundle): Likewise.
9550 (c6x_gen_bundles): Likewise.
9551 (hwloop_optimize): Likewise.
9552 * config/frv/frv.c (frv_function_prologue): Likewise.
9553 (frv_register_nop): Likewise.
9554 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
9555 (ia64_reorg): Likewise.
9556 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
9557 (mep_make_bundle): Likewise.
9558 (mep_bundle_insns): Likewise.
9559 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
9560 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
9561 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
9562
9563 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9564
9565 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
9566 return type from rtx to rtx_insn *.
9567 (BB_END): Likewise.
9568 (BB_HEADER): Likewise.
9569 (BB_FOOTER): Likewise.
9570 (SET_BB_HEAD): Convert to a function.
9571 (SET_BB_END): Likewise.
9572 (SET_BB_HEADER): Likewise.
9573 (SET_BB_FOOTER): Likewise.
9574
9575 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
9576 Strengthen the return type from rtx to rtx_insn *. For now, this
9577 is done by adding a checked cast, but this will eventually
9578 become a field lookup.
9579 (BB_END): Likewise.
9580 (BB_HEADER): Likewise.
9581 (BB_FOOTER): Likewise.
9582 (SET_BB_HEAD): New function, from macro of same name. This is
9583 intended for use as an lvalue, and so returns an rtx& to allow
9584 in-place modification.
9585 (SET_BB_END): Likewise.
9586 (SET_BB_HEADER): Likewise.
9587 (SET_BB_FOOTER): Likewise.
9588
9589 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9590
9591 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
9592 for rvalues, and...
9593 (SET_BB_HEAD): New macro, for use as a lvalue.
9594 (BB_END, SET_BB_END): Likewise.
9595 (BB_HEADER, SET_BB_HEADER): Likewise.
9596 (BB_FOOTER, SET_BB_FOOTER): Likewise.
9597
9598 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
9599 of BB_* macros into SET_BB_* macros.
9600 (fix_crossing_unconditional_branches): Likewise.
9601 * caller-save.c (save_call_clobbered_regs): Likewise.
9602 (insert_one_insn): Likewise.
9603 * cfgbuild.c (find_bb_boundaries): Likewise.
9604 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9605 (outgoing_edges_match): Likewise.
9606 (try_optimize_cfg): Likewise.
9607 * cfgexpand.c (expand_gimple_cond): Likewise.
9608 (expand_gimple_tailcall): Likewise.
9609 (expand_gimple_basic_block): Likewise.
9610 (construct_exit_block): Likewise.
9611 * cfgrtl.c (delete_insn): Likewise.
9612 (create_basic_block_structure): Likewise.
9613 (rtl_delete_block): Likewise.
9614 (rtl_split_block): Likewise.
9615 (emit_nop_for_unique_locus_between): Likewise.
9616 (rtl_merge_blocks): Likewise.
9617 (block_label): Likewise.
9618 (try_redirect_by_replacing_jump): Likewise.
9619 (emit_barrier_after_bb): Likewise.
9620 (fixup_abnormal_edges): Likewise.
9621 (record_effective_endpoints): Likewise.
9622 (relink_block_chain): Likewise.
9623 (fixup_reorder_chain): Likewise.
9624 (fixup_fallthru_exit_predecessor): Likewise.
9625 (cfg_layout_duplicate_bb): Likewise.
9626 (cfg_layout_split_block): Likewise.
9627 (cfg_layout_delete_block): Likewise.
9628 (cfg_layout_merge_blocks): Likewise.
9629 * combine.c (update_cfg_for_uncondjump): Likewise.
9630 * emit-rtl.c (add_insn_after): Likewise.
9631 (remove_insn): Likewise.
9632 (reorder_insns): Likewise.
9633 (emit_insn_after_1): Likewise.
9634 * haifa-sched.c (get_ebb_head_tail): Likewise.
9635 (restore_other_notes): Likewise.
9636 (move_insn): Likewise.
9637 (sched_extend_bb): Likewise.
9638 (fix_jump_move): Likewise.
9639 * ifcvt.c (noce_process_if_block): Likewise.
9640 (dead_or_predicable): Likewise.
9641 * ira.c (update_equiv_regs): Likewise.
9642 * reg-stack.c (change_stack): Likewise.
9643 * sel-sched-ir.c (sel_move_insn): Likewise.
9644 * sel-sched.c (move_nop_to_previous_block): Likewise.
9645
9646 * config/c6x/c6x.c (hwloop_optimize): Likewise.
9647 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
9648
9649 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9650
9651 * rtl.h (for_each_rtx_in_insn): New function.
9652 * rtlanal.c (for_each_rtx_in_insn): Likewise.
9653
9654 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9655
9656 * coretypes.h (class rtx_insn): Add forward declaration.
9657
9658 * rtl.h: Include is-a.h.
9659 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
9660 workaround to ensure gengtype knows inheritance is occurring,
9661 whilst continuing to use the pre-existing special-casing for
9662 rtx_def.
9663 (class rtx_insn): New subclass of rtx_def, adding the
9664 invariant that we're dealing with something we can sanely use
9665 INSN_UID, NEXT_INSN, PREV_INSN on.
9666 (is_a_helper <rtx_insn *>::test): New.
9667 (is_a_helper <const rtx_insn *>::test): New.
9668
9669 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9670
9671 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
9672
9673 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
9674
9675 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
9676 comdats as extern.
9677
9678 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
9679
9680 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
9681 to BUILT_IN_UNREACHABLE.
9682
9683 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
9684
9685 PR target/62011
9686 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
9687 New tune flag.
9688 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
9689 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
9690 (ffs<mode>2): Do not expand with tzcnt for
9691 TARGET_AVOID_FALSE_DEP_FOR_BMI.
9692 (ffssi2_no_cmove): Ditto.
9693 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
9694 (ctz<mode>2): New expander.
9695 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
9696 (*ctz<mode>2_falsedep): New insn.
9697 (*ctz<mode>2): Rename from ctz<mode>2.
9698 (clz<mode>2_lzcnt): New expander.
9699 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
9700 (*clz<mode>2_lzcnt_falsedep): New insn.
9701 (*clz<mode>2): Rename from ctz<mode>2.
9702 (popcount<mode>2): New expander.
9703 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
9704 (*popcount<mode>2_falsedep): New insn.
9705 (*popcount<mode>2): Rename from ctz<mode>2.
9706 (*popcount<mode>2_cmp): Remove.
9707 (*popcountsi2_cmp_zext): Ditto.
9708
9709 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
9710
9711 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
9712 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
9713 * config/microblaze/microblaze.h
9714 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
9715
9716 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
9717
9718 PR other/62168
9719 * configure.ac: Set install_gold_as_default to no for
9720 --enable-gold=no.
9721 * configure: Regenerated.
9722
9723 2014-08-18 Roman Gareev <gareevroman@gmail.com>
9724
9725 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
9726 * config.in: Add undef of HAVE_isl.
9727 * configure: Regenerate.
9728 * configure.ac: Add definition of HAVE_isl.
9729 * graphite-blocking.c: Add checking of HAVE_isl.
9730 * graphite-dependences.c: Likewise.
9731 * graphite-interchange.c: Likewise.
9732 * graphite-isl-ast-to-gimple.c: Likewise.
9733 * graphite-optimize-isl.c: Likewise.
9734 * graphite-poly.c: Likewise.
9735 * graphite-scop-detection.c: Likewise.
9736 * graphite-sese-to-poly.c: Likewise.
9737 * graphite.c: Likewise.
9738 * toplev.c: Replace the checking of HAVE_cloog with the checking
9739 of HAVE_isl.
9740
9741 2014-08-18 Richard Biener <rguenther@suse.de>
9742
9743 PR tree-optimization/62090
9744 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
9745 (fold_builtin_3): Do not fold snprintf.
9746 (fold_builtin_4): Likewise.
9747 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
9748 moved from builtins.c.
9749 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
9750 (gimple_fold_builtin): Do not fold sprintf here.
9751
9752 2014-08-18 Richard Biener <rguenther@suse.de>
9753
9754 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
9755 code to ...
9756 (maybe_canonicalize_mem_ref_addr): ... this function.
9757 (fold_stmt_1): Apply it here before all simplification.
9758
9759 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
9760
9761 PR ipa/61800
9762 * cgraph.h (cgraph_node::create_indirect_edge): Add
9763 compute_indirect_info param.
9764 * cgraph.c (cgraph_node::create_indirect_edge): Compute
9765 indirect_info only when it is required.
9766 * cgraphclones.c (cgraph_clone_edge): Do not recompute
9767 indirect_info fore cloned indirect edge.
9768
9769 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9770 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9771 Anna Tikhonova <anna.tikhonova@intel.com>
9772 Ilya Tocar <ilya.tocar@intel.com>
9773 Andrey Turetskiy <andrey.turetskiy@intel.com>
9774 Ilya Verbin <ilya.verbin@intel.com>
9775 Kirill Yukhin <kirill.yukhin@intel.com>
9776 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9777
9778 * config/i386/sse.md
9779 (define_mode_iterator VI8_AVX2_AVX512BW): New.
9780 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
9781
9782 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9783 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9784 Anna Tikhonova <anna.tikhonova@intel.com>
9785 Ilya Tocar <ilya.tocar@intel.com>
9786 Andrey Turetskiy <andrey.turetskiy@intel.com>
9787 Ilya Verbin <ilya.verbin@intel.com>
9788 Kirill Yukhin <kirill.yukhin@intel.com>
9789 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9790
9791 * config/i386/sse.md
9792 (define_mode_iterator VF1_AVX512VL): New.
9793 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
9794 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
9795 New.
9796
9797 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9798 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9799 Anna Tikhonova <anna.tikhonova@intel.com>
9800 Ilya Tocar <ilya.tocar@intel.com>
9801 Andrey Turetskiy <andrey.turetskiy@intel.com>
9802 Ilya Verbin <ilya.verbin@intel.com>
9803 Kirill Yukhin <kirill.yukhin@intel.com>
9804 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9805
9806 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
9807 * config/i386/i386.md
9808 (define_code_iterator any_float): New.
9809 (define_code_attr floatsuffix): New.
9810 * config/i386/sse.md
9811 (define_mode_iterator VF1_128_256VL): New.
9812 (define_mode_iterator VF2_512_256VL): New.
9813 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
9814 TARGET check.
9815 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
9816 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
9817 New.
9818 (define_mode_attr qq2pssuff): New.
9819 (define_mode_attr sselongvecmode): New.
9820 (define_mode_attr sselongvecmodelower): New.
9821 (define_mode_attr sseintvecmode3): New.
9822 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
9823 New.
9824 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
9825 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
9826 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
9827 (define_insn "ufloatv2siv2df2<mask_name>"): New.
9828
9829 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9830 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9831 Anna Tikhonova <anna.tikhonova@intel.com>
9832 Ilya Tocar <ilya.tocar@intel.com>
9833 Andrey Turetskiy <andrey.turetskiy@intel.com>
9834 Ilya Verbin <ilya.verbin@intel.com>
9835 Kirill Yukhin <kirill.yukhin@intel.com>
9836 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9837
9838 * config/i386/sse.md
9839 (define_mode_iterator VF2_AVX512VL): New.
9840 (define_mode_attr sseintvecmode2): New.
9841 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
9842 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
9843 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
9844 (define_insn
9845 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
9846 Ditto.
9847 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
9848 Ditto.
9849 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
9850 Ditto.
9851
9852 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9853 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9854 Anna Tikhonova <anna.tikhonova@intel.com>
9855 Ilya Tocar <ilya.tocar@intel.com>
9856 Andrey Turetskiy <andrey.turetskiy@intel.com>
9857 Ilya Verbin <ilya.verbin@intel.com>
9858 Kirill Yukhin <kirill.yukhin@intel.com>
9859 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9860
9861 * config/i386/i386.md
9862 (define_insn "*movoi_internal_avx"): Add evex version.
9863 (define_insn "*movti_internal"): Ditto.
9864
9865 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9866 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9867 Anna Tikhonova <anna.tikhonova@intel.com>
9868 Ilya Tocar <ilya.tocar@intel.com>
9869 Andrey Turetskiy <andrey.turetskiy@intel.com>
9870 Ilya Verbin <ilya.verbin@intel.com>
9871 Kirill Yukhin <kirill.yukhin@intel.com>
9872 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9873
9874 * config/i386/i386.md
9875 (define_attr "isa"): Add avx512dq, noavx512dq.
9876 (define_attr "enabled"): Ditto.
9877 * config/i386/sse.md
9878 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
9879
9880 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9881 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9882 Anna Tikhonova <anna.tikhonova@intel.com>
9883 Ilya Tocar <ilya.tocar@intel.com>
9884 Andrey Turetskiy <andrey.turetskiy@intel.com>
9885 Ilya Verbin <ilya.verbin@intel.com>
9886 Kirill Yukhin <kirill.yukhin@intel.com>
9887 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9888
9889 * config/i386/i386.c
9890 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
9891 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
9892 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
9893 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
9894 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
9895 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
9896 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
9897 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
9898 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
9899 * config/i386/sse.md
9900 (define_mode_iterator VMOVE): Allow V4TI mode.
9901 (define_mode_iterator V_AVX512VL): New.
9902 (define_mode_iterator V): New handling for AVX512VL.
9903 (define_insn "avx512f_load<mode>_mask"): Delete.
9904 (define_insn "<avx512>_load<mode>_mask"): New.
9905 (define_insn "avx512f_store<mode>_mask"): Delete.
9906 (define_insn "<avx512>_store<mode>_mask"): New.
9907
9908
9909 2014-08-18 Yury Gribov <y.gribov@samsung.com>
9910
9911 PR sanitizer/62089
9912 * asan.c (instrument_derefs): Fix bitfield check.
9913
9914 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9915
9916 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
9917 * config/rs6000/htm.md (ttest): Remove clobber.
9918 * config/rs6000/predicates.md (any_mask_operand): New predicate.
9919 (and_operand): Reformat.
9920 (and_2rld_operand): New predicate.
9921 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
9922 parameter.
9923 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
9924 parameter. Handle AND directly.
9925 (rs6000_split_logical_di): Remove last parameter.
9926 (rs6000_split_logical): Remove last parameter. Remove obsolete
9927 comment.
9928 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
9929 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
9930 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
9931 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
9932 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
9933 and 5 anonymous splitters): Delete.
9934 (and<mode>3): New expander.
9935 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
9936 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
9937 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
9938 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
9939 (floatdisf2_internal1): Remove clobbers.
9940 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
9941 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
9942 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
9943 (and<mode>3 for BOOL_128): Remove clobber.
9944 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
9945 rs6000_split_logical.
9946 (*bool<mode>3_internal for BOOL_128): Adjust call of
9947 rs6000_split_logical.
9948 (*boolc<mode>3_internal1 for BOOL_128,
9949 *boolc<mode>3_internal2 for BOOL_128,
9950 *boolcc<mode>3_internal1 for BOOL_128,
9951 *boolcc<mode>3_internal2 for BOOL_128,
9952 *eqv<mode>3_internal1 for BOOL_128,
9953 *eqv<mode>3_internal2 for BOOL_128,
9954 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
9955 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
9956 clobber.
9957 (*vec_reload_and_reg_<mptrsize>): Delete.
9958
9959 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9960
9961 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
9962 and split, *boolccsi3_internal3 and split): Delete.
9963 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
9964 *boolccdi3_internal3 and split): Delete.
9965 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
9966 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
9967
9968 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9969
9970 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
9971 and split, *boolcsi3_internal3 and split): Delete.
9972 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
9973 *boolcdi3_internal3 and split): Delete.
9974 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
9975
9976 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9977
9978 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
9979 <'u'>: Also support printing the low-order 16 bits.
9980 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
9981 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
9982 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
9983 *booldi3_internal3 and split): Delete.
9984 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
9985 *bool<mode>3_dot2): New.
9986 (two anonymous define_splits for non_logical_cint_operand): Merge.
9987
9988 2014-08-17 Marek Polacek <polacek@redhat.com>
9989 Manuel López-Ibáñez <manu@gcc.gnu.org>
9990
9991 PR c/62059
9992 * diagnostic.c (adjust_line): Add gcc_checking_assert.
9993 (diagnostic_show_locus): Don't print caret diagnostic
9994 if a column is larger than the line_width.
9995
9996 2014-08-17 Roman Gareev <gareevroman@gmail.com>
9997
9998 * common.opt: Make the ISL AST generator to be the main code generator
9999 of Graphite.
10000
10001 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
10002
10003 * wide-int.h (generic_wide_int): Declare as class instead of struct.
10004
10005 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
10006
10007 PR target/61641
10008 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
10009 Declare.
10010 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
10011 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
10012 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
10013 Define.
10014 * config/pa/pa.md (begin_brtab): Delete insn.
10015 (end_brtab): Likewise.
10016
10017 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
10018
10019 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
10020
10021 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
10022
10023 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
10024 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
10025 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
10026 (get_dynamic_type): Remove.
10027 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
10028 (clear_speculation): Bring to ipa-deivrt.h
10029 (get_class_context): Rename to ...
10030 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
10031 (contains_type_p): Update.
10032 (get_dynamic_type): Rename to ...
10033 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
10034 (possible_polymorphic_call_targets): UPdate.
10035 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
10036 * ipa-prop.c (ipa_analyze_call_uses): Update.
10037
10038 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
10039
10040 * doc/invoke.texi (SH options): Document missing processor variant
10041 options. Remove references to Hitachi. Undocument deprecated mspace
10042 option.
10043
10044 2014-08-15 Jason Merrill <jason@redhat.com>
10045
10046 * tree.c (type_hash_canon): Uncomment assert.
10047
10048 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10049
10050 * input.h (in_system_header_at): Add comment.
10051
10052 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10053
10054 PR fortran/44054
10055 * diagnostic.c (build_message_string): Make it extern.
10056 * diagnostic.h (build_message_string): Make it extern.
10057
10058 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
10059
10060 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
10061 load/store from/to non-floating class pseudo.
10062
10063 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10064
10065 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
10066
10067 2014-08-15 Richard Biener <rguenther@suse.de>
10068
10069 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
10070 (get_constraint_for_ssa_var): Remove dead code.
10071 (get_constraint_for_1): Adjust.
10072 (find_what_var_points_to): Likewise.
10073 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
10074
10075 2014-08-15 Ilya Tocar <tocarip@gmail.com>
10076
10077 PR target/61878
10078 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
10079 (_mm512_mask_cmpge_epu32_mask): Ditto.
10080 (_mm512_cmpge_epu32_mask): Ditto.
10081 (_mm512_mask_cmpge_epi64_mask): Ditto.
10082 (_mm512_cmpge_epi64_mask): Ditto.
10083 (_mm512_mask_cmpge_epu64_mask): Ditto.
10084 (_mm512_cmpge_epu64_mask): Ditto.
10085 (_mm512_mask_cmple_epi32_mask): Ditto.
10086 (_mm512_cmple_epi32_mask): Ditto.
10087 (_mm512_mask_cmple_epu32_mask): Ditto.
10088 (_mm512_cmple_epu32_mask): Ditto.
10089 (_mm512_mask_cmple_epi64_mask): Ditto.
10090 (_mm512_cmple_epi64_mask): Ditto.
10091 (_mm512_mask_cmple_epu64_mask): Ditto.
10092 (_mm512_cmple_epu64_mask): Ditto.
10093 (_mm512_mask_cmplt_epi32_mask): Ditto.
10094 (_mm512_cmplt_epi32_mask): Ditto.
10095 (_mm512_mask_cmplt_epu32_mask): Ditto.
10096 (_mm512_cmplt_epu32_mask): Ditto.
10097 (_mm512_mask_cmplt_epi64_mask): Ditto.
10098 (_mm512_cmplt_epi64_mask): Ditto.
10099 (_mm512_mask_cmplt_epu64_mask): Ditto.
10100 (_mm512_cmplt_epu64_mask): Ditto.
10101 (_mm512_mask_cmpneq_epi32_mask): Ditto.
10102 (_mm512_mask_cmpneq_epu32_mask): Ditto.
10103 (_mm512_cmpneq_epu32_mask): Ditto.
10104 (_mm512_mask_cmpneq_epi64_mask): Ditto.
10105 (_mm512_cmpneq_epi64_mask): Ditto.
10106 (_mm512_mask_cmpneq_epu64_mask): Ditto.
10107 (_mm512_cmpneq_epu64_mask): Ditto.
10108 (_mm512_castpd_ps): Ditto.
10109 (_mm512_castpd_si512): Ditto.
10110 (_mm512_castps_pd): Ditto.
10111 (_mm512_castps_si512): Ditto.
10112 (_mm512_castsi512_ps): Ditto.
10113 (_mm512_castsi512_pd): Ditto.
10114 (_mm512_castpd512_pd128): Ditto.
10115 (_mm512_castps512_ps128): Ditto.
10116 (_mm512_castsi512_si128): Ditto.
10117 (_mm512_castpd512_pd256): Ditto.
10118 (_mm512_castps512_ps256): Ditto.
10119 (_mm512_castsi512_si256): Ditto.
10120 (_mm512_castpd128_pd512): Ditto.
10121 (_mm512_castps128_ps512): Ditto.
10122 (_mm512_castsi128_si512): Ditto.
10123 (_mm512_castpd256_pd512): Ditto.
10124 (_mm512_castps256_ps512): Ditto.
10125 (_mm512_castsi256_si512): Ditto.
10126 (_mm512_cmpeq_epu32_mask): Ditto.
10127 (_mm512_mask_cmpeq_epu32_mask): Ditto.
10128 (_mm512_mask_cmpeq_epu64_mask): Ditto.
10129 (_mm512_cmpeq_epu64_mask): Ditto.
10130 (_mm512_cmpgt_epu32_mask): Ditto.
10131 (_mm512_mask_cmpgt_epu32_mask): Ditto.
10132 (_mm512_mask_cmpgt_epu64_mask): Ditto.
10133 (_mm512_cmpgt_epu64_mask): Ditto.
10134 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
10135 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
10136 * config/i386/i386.c (enum ix86_builtins): Add
10137 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
10138 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
10139 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
10140 (bdesc_args): Add __builtin_ia32_si512_256si,
10141 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
10142 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
10143 __builtin_ia32_pd512_pd.
10144 (ix86_expand_args_builtin): Handle new FTYPEs.
10145 * config/i386/sse.md (castmode): Add 512-bit modes.
10146 (AVX512MODE2P): New.
10147 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
10148 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
10149
10150 2014-08-15 Richard Biener <rguenther@suse.de>
10151
10152 * fold-const.c (tree_swap_operands_p): Put all constants
10153 last, also strip sign-changing NOPs when considering further
10154 canonicalization. Canonicalize also when optimizing for size.
10155
10156 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10157
10158 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
10159 one_match > zero_match case to just before simple_sequence.
10160
10161 2014-08-15 Richard Biener <rguenther@suse.de>
10162
10163 * data-streamer.h (streamer_string_index, string_for_index):
10164 Remove.
10165 * data-streamer-out.c (streamer_string_index): Make static.
10166 * data-streamer-in.c (string_for_index): Likewise.
10167 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
10168 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
10169
10170 2014-08-15 Richard Biener <rguenther@suse.de>
10171
10172 PR tree-optimization/62031
10173 * tree-data-ref.c (dr_analyze_indices): Do not set
10174 DR_UNCONSTRAINED_BASE.
10175 (dr_may_alias_p): All indirect accesses have to go the
10176 formerly DR_UNCONSTRAINED_BASE path.
10177 * tree-data-ref.h (struct indices): Remove
10178 unconstrained_base member.
10179 (DR_UNCONSTRAINED_BASE): Remove.
10180
10181 2014-08-15 Jakub Jelinek <jakub@redhat.com>
10182
10183 PR middle-end/62092
10184 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
10185 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
10186 in OMP_CLAUSE_MAP in some outer target region.
10187
10188 2014-08-15 Bin Cheng <bin.cheng@arm.com>
10189
10190 * tree-ssa-loop-ivopts.c (ivopts_data): New field
10191 name_expansion_cache.
10192 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
10193 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
10194 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
10195 (difference_cannot_overflow_p): New parameter. Use affine
10196 expansion for equality check.
10197 (iv_elimination_compare_lt): Pass new argument.
10198
10199 2014-08-14 DJ Delorie <dj@redhat.com>
10200
10201 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
10202 variables to the accumulator.
10203
10204 * config/rl78/predicates.md (rl78_near_mem_operand): New.
10205 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
10206 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
10207 with far-far moves.
10208
10209 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
10210 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
10211 (umulqihi3_virt): Likewise.
10212 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
10213 (umulqihi3_real): Likewise.
10214
10215 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
10216
10217 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
10218
10219 PR tree-optimization/62091
10220 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
10221 function_entry_reached.
10222 (walk_aliased_vdefs): Clear it here.
10223 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
10224
10225 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
10226
10227 * ipa-utils.h (compare_virtual_tables): Declare.
10228 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
10229
10230 2014-08-14 Marek Polacek <polacek@redhat.com>
10231
10232 DR 458
10233 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
10234 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
10235
10236 2014-08-14 Tom de Vries <tom@codesourcery.com>
10237
10238 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
10239
10240 2014-08-14 Tom de Vries <tom@codesourcery.com>
10241
10242 PR rtl-optimization/62004
10243 PR rtl-optimization/62030
10244 * ifcvt.c (rtx_interchangeable_p): New function.
10245 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
10246 * emit-rtl.h (mem_attrs_eq_p): Declare.
10247
10248 2014-08-14 Roman Gareev <gareevroman@gmail.com>
10249
10250 * graphite-scop-detection.c:
10251 Add inclusion of cp-tree.h.
10252 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
10253 in case they are pointers to object types
10254
10255 2014-08-14 Richard Biener <rguenther@suse.de>
10256
10257 * BASE-VER: Change to 5.0.0
10258
10259 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10260 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10261 Anna Tikhonova <anna.tikhonova@intel.com>
10262 Ilya Tocar <ilya.tocar@intel.com>
10263 Andrey Turetskiy <andrey.turetskiy@intel.com>
10264 Ilya Verbin <ilya.verbin@intel.com>
10265 Kirill Yukhin <kirill.yukhin@intel.com>
10266 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10267
10268 * config/i386/sse.md (define_mode_attr avx512): New.
10269 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
10270 V4DI modes.
10271 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
10272 (define_mode_attr ssse3_avx2): Ditto.
10273 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
10274 (define_mode_attr avx2_avx512bw): New.
10275 (define_mode_attr ssedoublemodelower): New.
10276 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
10277 V32HI, V64QI modes.
10278 (define_mode_attr ssebytemode): Allow V8DI modes.
10279 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
10280 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
10281 (define_mode_attr ssePSmode2): New.
10282 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
10283 V16HI, V32HI modes.
10284 (define_mode_attr dbpsadbwmode): New.
10285 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
10286 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
10287 (vi8_sse4_1_avx2_avx512): New.
10288 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
10289 mode attribute.
10290 (define_mode_attr blendbits): Move before its immediate use.
10291
10292 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10293 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10294 Anna Tikhonova <anna.tikhonova@intel.com>
10295 Ilya Tocar <ilya.tocar@intel.com>
10296 Andrey Turetskiy <andrey.turetskiy@intel.com>
10297 Ilya Verbin <ilya.verbin@intel.com>
10298 Kirill Yukhin <kirill.yukhin@intel.com>
10299 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10300
10301 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
10302 * config/i386/subst.md
10303 (define_mode_iterator SUBST_V): Update.
10304 (define_mode_iterator SUBST_A): Ditto.
10305 (define_subst_attr "mask_operand7"): New.
10306 (define_subst_attr "mask_operand10"): New.
10307 (define_subst_attr "mask_operand_arg34") : New.
10308 (define_subst_attr "mask_expand_op3"): New.
10309 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
10310 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
10311 (define_subst_attr "mask_avx512vl_condition"): New.
10312 (define_subst_attr "round_mask_operand4"): Ditto.
10313 (define_subst_attr "round_mask_scalar_op3"): Delete.
10314 (define_subst_attr "round_mask_op4"): New.
10315 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
10316 V16SImode.
10317 (define_subst_attr "round_modev8sf_condition"): New.
10318 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
10319 <MODE>mode.
10320 (define_subst_attr "round_saeonly_mask_operand4"): New.
10321 (define_subst_attr "round_saeonly_mask_op4"): New.
10322 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
10323 V8DImode, V16SImode.
10324 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
10325 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
10326 (define_subst_attr "mask_expand4_args"): New.
10327 (define_subst "mask_expand4"): New.
10328
10329 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10330 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10331 Anna Tikhonova <anna.tikhonova@intel.com>
10332 Ilya Tocar <ilya.tocar@intel.com>
10333 Andrey Turetskiy <andrey.turetskiy@intel.com>
10334 Ilya Verbin <ilya.verbin@intel.com>
10335 Kirill Yukhin <kirill.yukhin@intel.com>
10336 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10337
10338 * config/i386/i386.md
10339 (define_attr "isa"): Add avx512bw,noavx512bw.
10340 (define_attr "enabled"): Ditto.
10341 (define_split): Add 32/64-bit mask logic.
10342 (define_insn "*k<logic>qi"): New.
10343 (define_insn "*k<logic>hi"): New.
10344 (define_insn "*anddi_1"): Add mask version.
10345 (define_insn "*andsi_1"): Ditto.
10346 (define_insn "*<code><mode>_1"): Ditto.
10347 (define_insn "*<code>hi_1"): Ditto.
10348 (define_insn "kxnor<mode>"): New.
10349 (define_insn "kunpcksi"): New.
10350 (define_insn "kunpckdi"): New.
10351 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
10352 (define_insn "*one_cmplhi2_1"): Ditto.
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 (ix86_preferred_simd_mode): Allow V64QImode and
10364 V32HImode.
10365
10366 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10367 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10368 Anna Tikhonova <anna.tikhonova@intel.com>
10369 Ilya Tocar <ilya.tocar@intel.com>
10370 Andrey Turetskiy <andrey.turetskiy@intel.com>
10371 Ilya Verbin <ilya.verbin@intel.com>
10372 Kirill Yukhin <kirill.yukhin@intel.com>
10373 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10374
10375 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
10376 registers.
10377 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
10378 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
10379 xmm/ymm16+ when availble.
10380 * config/i386/i386.h
10381 (HARD_REGNO_NREGS): Add mask regs.
10382 (VALID_AVX512F_REG_MODE): Ditto.
10383 (VALID_AVX512F_REG_MODE) : Define.
10384 (VALID_MASK_AVX512BW_MODE): Ditto.
10385 (reg_class) (MASK_REG_P(X)): Define.
10386 * config/i386/i386.md: Do not split long moves with mask register,
10387 use kmovb if avx512bw is availible.
10388 (movdi_internal): Handle mask registers.
10389
10390 2014-08-14 Richard Biener <rguenther@suse.de>
10391
10392 PR tree-optimization/62081
10393 * tree-ssa-loop.c (pass_fix_loops): New pass.
10394 (pass_tree_loop::gate): Do not fixup loops here.
10395 * tree-pass.h (make_pass_fix_loops): Declare.
10396 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
10397
10398 2014-08-14 Richard Biener <rguenther@suse.de>
10399
10400 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
10401 (type_hash_canon): ... this and avoid 2nd lookup for the add.
10402
10403 2014-08-14 Richard Biener <rguenther@suse.de>
10404
10405 PR tree-optimization/62090
10406 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
10407 (fold_builtin_2): Do not fold sprintf.
10408 (fold_builtin_3): Likewise.
10409 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
10410 moved from builtins.c.
10411 (gimple_fold_builtin): Fold sprintf.
10412
10413 2014-08-14 Richard Biener <rguenther@suse.de>
10414
10415 PR rtl-optimization/62079
10416 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
10417 run cleanup_cfg.
10418
10419 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
10420
10421 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
10422 current_function_decl.
10423
10424 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
10425
10426 * cgraph.c (cgraph_node::function_symbol): Fix wrong
10427 cgraph_function_node to cgraph_node::function_symbol
10428 refactoring.
10429
10430 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
10431
10432 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
10433 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
10434
10435 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
10436
10437 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
10438 warning.
10439
10440 2014-08-13 Roman Gareev <gareevroman@gmail.com>
10441
10442 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
10443 generator.
10444
10445 2014-08-12 Jakub Jelinek <jakub@redhat.com>
10446
10447 PR target/62025
10448 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
10449 any registers that are used in mem_insn.
10450
10451 2014-08-12 Steve Ellcey <sellcey@mips.com>
10452
10453 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
10454
10455 2014-08-12 Steve Ellcey <sellcey@mips.com>
10456
10457 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
10458 (MULTILIB_DIRNAMES): Ditto.
10459 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
10460 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
10461 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
10462 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
10463 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
10464 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
10465
10466 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10467
10468 PR target/61413
10469 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
10470 of __ARM_SIZEOF_WCHAR_T.
10471
10472 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10473
10474 PR target/62098
10475 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
10476 Remove unnecessary attributes.
10477
10478 2014-08-12 Yury Gribov <y.gribov@samsung.com>
10479
10480 * internal-fn.c (init_internal_fns): Fix off-by-one.
10481
10482 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
10483 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10484 Anna Tikhonova <anna.tikhonova@intel.com>
10485 Ilya Tocar <ilya.tocar@intel.com>
10486 Andrey Turetskiy <andrey.turetskiy@intel.com>
10487 Ilya Verbin <ilya.verbin@intel.com>
10488 Kirill Yukhin <kirill.yukhin@intel.com>
10489 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10490
10491 * config/i386/i386.c (standard_sse_constant_opcode): Use
10492 vpxord/vpternlog if avx512 is availible.
10493
10494 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
10495
10496 PR middle-end/62103
10497 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
10498 bitfields, that is when size doesn't match the size of type or the
10499 size of the constructor.
10500
10501 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10502
10503 * config/rs6000/constraints.md (wh constraint): New constraint,
10504 for FP registers if direct move is available.
10505 (wi constraint): New constraint, for VSX/FP registers that can
10506 handle 64-bit integers.
10507 (wj constraint): New constraint for VSX/FP registers that can
10508 handle 64-bit integers for direct moves.
10509 (wk constraint): New constraint for VSX/FP registers that can
10510 handle 64-bit doubles for direct moves.
10511 (wy constraint): Make documentation match implementation.
10512
10513 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
10514 scalar_in_vmx_p field to simplify tests of whether SFmode or
10515 DFmode can go in the Altivec registers.
10516 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
10517 (rs6000_setup_reg_addr_masks): Likewise.
10518 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
10519 field, and wh/wi/wj/wk constraints.
10520 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
10521 the wh/wi/wj/wk constraints.
10522 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
10523 upper registers, prefer VSX registers unless the operation is a
10524 memory operation with REG+OFFSET addressing.
10525
10526 * config/rs6000/vsx.md (VSr mode attribute): Add support for
10527 DImode. Change SFmode to use ww constraint instead of d to allow
10528 SF registers in the upper registers.
10529 (VSr2): Likewise.
10530 (VSr3): Likewise.
10531 (VSr5): Fix thinko in comment.
10532 (VSa): New mode attribute that is an alternative to wa, that
10533 returns the VSX register class that a mode can go in, but may not
10534 be the preferred register class.
10535 (VS_64dm): New mode attribute for appropriate register classes for
10536 referencing 64-bit elements of vectors for direct moves and normal
10537 moves.
10538 (VS_64reg): Likewise.
10539 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
10540 register allocator to only registers the data type can handle.
10541 (vsx_le_perm_load_<mode>): Likewise.
10542 (vsx_le_perm_store_<mode>): Likewise.
10543 (vsx_xxpermdi2_le_<mode>): Likewise.
10544 (vsx_xxpermdi4_le_<mode>): Likewise.
10545 (vsx_lxvd2x2_le_<mode>): Likewise.
10546 (vsx_lxvd2x4_le_<mode>): Likewise.
10547 (vsx_stxvd2x2_le_<mode>): Likewise.
10548 (vsx_add<mode>3): Likewise.
10549 (vsx_sub<mode>3): Likewise.
10550 (vsx_mul<mode>3): Likewise.
10551 (vsx_div<mode>3): Likewise.
10552 (vsx_tdiv<mode>3_internal): Likewise.
10553 (vsx_fre<mode>2): Likewise.
10554 (vsx_neg<mode>2): Likewise.
10555 (vsx_abs<mode>2): Likewise.
10556 (vsx_nabs<mode>2): Likewise.
10557 (vsx_smax<mode>3): Likewise.
10558 (vsx_smin<mode>3): Likewise.
10559 (vsx_sqrt<mode>2): Likewise.
10560 (vsx_rsqrte<mode>2): Likewise.
10561 (vsx_tsqrt<mode>2_internal): Likewise.
10562 (vsx_fms<mode>4): Likewise.
10563 (vsx_nfma<mode>4): Likewise.
10564 (vsx_eq<mode>): Likewise.
10565 (vsx_gt<mode>): Likewise.
10566 (vsx_ge<mode>): Likewise.
10567 (vsx_eq<mode>_p): Likewise.
10568 (vsx_gt<mode>_p): Likewise.
10569 (vsx_ge<mode>_p): Likewise.
10570 (vsx_xxsel<mode>): Likewise.
10571 (vsx_xxsel<mode>_uns): Likewise.
10572 (vsx_copysign<mode>3): Likewise.
10573 (vsx_float<VSi><mode>2): Likewise.
10574 (vsx_floatuns<VSi><mode>2): Likewise.
10575 (vsx_fix_trunc<mode><VSi>2): Likewise.
10576 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
10577 (vsx_x<VSv>r<VSs>i): Likewise.
10578 (vsx_x<VSv>r<VSs>ic): Likewise.
10579 (vsx_btrunc<mode>2): Likewise.
10580 (vsx_b2trunc<mode>2): Likewise.
10581 (vsx_floor<mode>2): Likewise.
10582 (vsx_ceil<mode>2): Likewise.
10583 (vsx_<VS_spdp_insn>): Likewise.
10584 (vsx_xscvspdp): Likewise.
10585 (vsx_xvcvspuxds): Likewise.
10586 (vsx_float_fix_<mode>2): Likewise.
10587 (vsx_set_<mode>): Likewise.
10588 (vsx_extract_<mode>_internal1): Likewise.
10589 (vsx_extract_<mode>_internal2): Likewise.
10590 (vsx_extract_<mode>_load): Likewise.
10591 (vsx_extract_<mode>_store): Likewise.
10592 (vsx_splat_<mode>): Likewise.
10593 (vsx_xxspltw_<mode>): Likewise.
10594 (vsx_xxspltw_<mode>_direct): Likewise.
10595 (vsx_xxmrghw_<mode>): Likewise.
10596 (vsx_xxmrglw_<mode>): Likewise.
10597 (vsx_xxsldwi_<mode>): Likewise.
10598 (vsx_xscvdpspn): Tighten constraints to only use register classes
10599 the types use.
10600 (vsx_xscvspdpn): Likewise.
10601 (vsx_xscvdpspn_scalar): Likewise.
10602
10603 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
10604 wj, and wk constraints.
10605 (GPR_REG_CLASS_P): New helper macro for register classes targeting
10606 general purpose registers.
10607
10608 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
10609 direct moves.
10610 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
10611 DImode instead of wm. Use wk constraint for direct move of DFmode
10612 instead of wm.
10613 (extendsidi2_lfiwax): Likewise.
10614 (lfiwax): Likewise.
10615 (lfiwzx): Likewise.
10616 (movdi_internal64): Likewise.
10617
10618 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
10619 wk constraints. Make the wy constraint documentation match them
10620 implementation.
10621
10622 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
10623
10624 Replacement of isl_int by isl_val
10625 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
10626 (compute_bounds_for_param): use isl_val instead of isl_int
10627 (compute_bounds_for_loop): likewise
10628 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
10629 (build_linearized_memory_access): use isl_val instead of isl_int
10630 (pdr_stride_in_loop): likewise
10631 * graphite-optimize-isl.c:
10632 (getPrevectorMap): use isl_val instead of isl_int
10633 * graphite-poly.c:
10634 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
10635 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
10636 (extern the_isl_ctx): declare
10637 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
10638 (extract_affine_gmp): likewise
10639 (wrap): likewise
10640 (build_loop_iteration_domains): likewise
10641 (add_param_constraints): likewise
10642
10643 2014-08-11 Richard Biener <rguenther@suse.de>
10644
10645 PR tree-optimization/62075
10646 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
10647 handle uses in patterns.
10648
10649 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10650 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10651 Anna Tikhonova <anna.tikhonova@intel.com>
10652 Ilya Tocar <ilya.tocar@intel.com>
10653 Andrey Turetskiy <andrey.turetskiy@intel.com>
10654 Ilya Verbin <ilya.verbin@intel.com>
10655 Kirill Yukhin <kirill.yukhin@intel.com>
10656 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10657
10658 * common/config/i386/i386-common.c
10659 (OPTION_MASK_ISA_AVX512VL_SET): Define.
10660 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
10661 (ix86_handle_option): Handle OPT_mavx512vl.
10662 * config/i386/cpuid.h (bit_AVX512VL): Define.
10663 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
10664 set -mavx512vl accordingly.
10665 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10666 OPTION_MASK_ISA_AVX512VL.
10667 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
10668 (ix86_option_override_internal): Define PTA_AVX512VL, handle
10669 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
10670 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
10671 * config/i386/i386.h (TARGET_AVX512VL): Define.
10672 (TARGET_AVX512VL_P(x)): Ditto.
10673 * config/i386/i386.opt: Add mavx512vl.
10674
10675 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
10676
10677 PR tree-optimization/62073
10678 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
10679 a basic block.
10680
10681 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10682 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10683 Anna Tikhonova <anna.tikhonova@intel.com>
10684 Ilya Tocar <ilya.tocar@intel.com>
10685 Andrey Turetskiy <andrey.turetskiy@intel.com>
10686 Ilya Verbin <ilya.verbin@intel.com>
10687 Kirill Yukhin <kirill.yukhin@intel.com>
10688 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10689
10690 * common/config/i386/i386-common.c
10691 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
10692 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
10693 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
10694 (ix86_handle_option): Handle OPT_mavx512bw.
10695 * config/i386/cpuid.h (bit_AVX512BW): Define.
10696 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
10697 set -mavx512bw accordingly.
10698 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10699 OPTION_MASK_ISA_AVX512BW.
10700 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
10701 (ix86_option_override_internal): Define PTA_AVX512BW, handle
10702 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
10703 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
10704 * config/i386/i386.h (TARGET_AVX512BW): Define.
10705 (TARGET_AVX512BW_P(x)): Ditto.
10706 * config/i386/i386.opt: Add mavx512bw.
10707
10708 2014-08-11 Richard Biener <rguenther@suse.de>
10709
10710 PR tree-optimization/62070
10711 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
10712 Remove SSA checking.
10713
10714 2014-08-11 Yury Gribov <y.gribov@samsung.com>
10715
10716 * asan.c (asan_check_flags): New enum.
10717 (build_check_stmt_with_calls): Removed function.
10718 (build_check_stmt): Split inlining logic to
10719 asan_expand_check_ifn.
10720 (instrument_derefs): Rename parameter.
10721 (instrument_mem_region_access): Rename parameter.
10722 (instrument_strlen_call): Likewise.
10723 (asan_expand_check_ifn): New function.
10724 (asan_instrument): Remove old code.
10725 (pass_sanopt::execute): Change handling of
10726 asan-instrumentation-with-call-threshold.
10727 (asan_clear_shadow): Fix formatting.
10728 (asan_function_start): Likewise.
10729 (asan_emit_stack_protection): Likewise.
10730 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
10731 Update description.
10732 * internal-fn.c (expand_ASAN_CHECK): New function.
10733 * internal-fn.def (ASAN_CHECK): New internal function.
10734 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
10735 Update description.
10736 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
10737 * tree.c: Small comment fix.
10738
10739 2014-08-11 Yury Gribov <y.gribov@samsung.com>
10740
10741 * gimple.c (gimple_call_fnspec): Support internal functions.
10742 (gimple_call_return_flags): Use const.
10743 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
10744 * internal-fn.def: Add fnspec information.
10745 * internal-fn.h (internal_fn_fnspec): New function.
10746 (init_internal_fns): Declare new function.
10747 * internal-fn.c (internal_fn_fnspec_array): New global variable.
10748 (init_internal_fns): New function.
10749 * tree-core.h: Update macro call.
10750 * tree.c (build_common_builtin_nodes): Initialize internal fns.
10751
10752 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
10753
10754 * lto-streamer.h (struct output_block::symbol): Change from
10755 struct symtab_node to plain symtab_node.
10756 (referenced_from_this_partition_p): Change first parameter
10757 from struct symtab_node to plain symtab_node.
10758
10759 2014-08-10 Marek Polacek <polacek@redhat.com>
10760
10761 PR c/51849
10762 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
10763
10764 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
10765
10766 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
10767 DECL correctly; do not give up on types in static storage.
10768
10769 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
10770
10771 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
10772
10773 2014-08-09 Roman Gareev <gareevroman@gmail.com>
10774
10775 * graphite-isl-ast-to-gimple.c:
10776 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
10777
10778 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
10779
10780 2014-08-08 Guozhi Wei <carrot@google.com>
10781
10782 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
10783
10784 2014-08-08 Cary Coutant <ccoutant@google.com>
10785
10786 * dwarf2out.c (get_skeleton_type_unit): Remove.
10787 (output_skeleton_debug_sections): Remove skeleton type units.
10788 (output_comdat_type_unit): Likewise.
10789 (dwarf2out_finish): Likewise.
10790
10791 2014-08-07 Yi Yang <ahyangyi@google.com>
10792
10793 * predict.c (expr_expected_value_1): Remove the redundant assignment.
10794
10795 2014-08-08 Richard Biener <rguenther@suse.de>
10796
10797 * lto-streamer.h (struct lto_input_block): Make it a class
10798 with a constructor.
10799 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
10800 (struct lto_function_header, struct lto_simple_header,
10801 struct lto_simple_header_with_strings,
10802 struct lto_decl_header, struct lto_function_header): Make
10803 a simple inheritance hieararchy. Remove unused fields.
10804 (struct lto_asm_header): Remove.
10805 * lto-streamer-out.c (produce_asm): Adjust.
10806 (lto_output_toplevel_asms): Likewise.
10807 (produce_asm_for_decls): Likewise.
10808 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
10809 * data-streamer-in.c (string_for_index): Likewise.
10810 * ipa-inline-analysis.c (inline_read_section): Likewise.
10811 * ipa-prop.c (ipa_prop_read_section): Likewise.
10812 (read_replacements_section): Likewise.
10813 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
10814 * lto-section-in.c (lto_create_simple_input_block): Likewise.
10815 (lto_destroy_simple_input_block): Likewise.
10816 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
10817 (lto_input_toplevel_asms): Likewise.
10818
10819 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
10820 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10821 Anna Tikhonova <anna.tikhonova@intel.com>
10822 Ilya Tocar <ilya.tocar@intel.com>
10823 Andrey Turetskiy <andrey.turetskiy@intel.com>
10824 Ilya Verbin <ilya.verbin@intel.com>
10825 Kirill Yukhin <kirill.yukhin@intel.com>
10826 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10827
10828 * common/config/i386/i386-common.c
10829 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
10830 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
10831 (ix86_handle_option): Handle OPT_mavx512dq.
10832 * config/i386/cpuid.h (bit_AVX512DQ): Define.
10833 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
10834 set -mavx512dq accordingly.
10835 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10836 OPTION_MASK_ISA_AVX512DQ.
10837 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
10838 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
10839 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
10840 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
10841 * config/i386/i386.h (TARGET_AVX512DQ): Define.
10842 (TARGET_AVX512DQ_P(x)): Ditto.
10843 * config/i386/i386.opt: Add mavx512dq.
10844
10845 2014-08-08 Richard Biener <rguenther@suse.de>
10846
10847 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
10848 target_percent, target_percent_s): Export.
10849 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
10850 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
10851 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
10852 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
10853 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
10854 Move to gimple-fold.c.
10855 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
10856 strcat and strcpy.
10857 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
10858 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
10859 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
10860 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
10861 (rewrite_call_expr_array): Remove.
10862 (fold_builtin_sprintf_chk): Likewise.
10863 (fold_builtin_snprintf_chk): Likewise.
10864 (fold_builtin_varargs): Remove handling of sprintf_chk,
10865 vsprintf_chk, snprintf_chk and vsnprintf_chk.
10866 (gimple_fold_builtin_sprintf_chk): Remove.
10867 (gimple_fold_builtin_snprintf_chk): Likewise.
10868 (gimple_fold_builtin_varargs): Likewise.
10869 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
10870 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
10871 * gimple.c (gimple_seq_add_seq_without_update): New function.
10872 * gimple.h (gimple_seq_add_seq_without_update): Declare.
10873 * gimple-fold.c: Include output.h.
10874 (gsi_replace_with_seq_vops): New function, split out from ...
10875 (gimplify_and_update_call_from_tree): ... here.
10876 (replace_call_with_value): New function.
10877 (replace_call_with_call_and_fold): Likewise.
10878 (var_decl_component_p): Moved from builtins.c.
10879 (gimple_fold_builtin_memory_op): Moved from builtins.c
10880 fold_builtin_memory_op and rewritten to GIMPLE.
10881 (gimple_fold_builtin_memset): Likewise.
10882 (gimple_fold_builtin_strcpy): Likewise.
10883 (gimple_fold_builtin_strncpy): Likewise.
10884 (gimple_fold_builtin_strcat): Likewise.
10885 (gimple_fold_builtin_fputs): Likewise.
10886 (gimple_fold_builtin_memory_chk): Likewise.
10887 (gimple_fold_builtin_stxcpy_chk): Likewise.
10888 (gimple_fold_builtin_stxncpy_chk): Likewise.
10889 (gimple_fold_builtin_snprintf_chk): Likewise.
10890 (gimple_fold_builtin_sprintf_chk): Likewise.
10891 (gimple_fold_builtin_strlen): New function.
10892 (gimple_fold_builtin_with_strlen): New function split out from
10893 gimple_fold_builtin.
10894 (gimple_fold_builtin): Change signature and handle
10895 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
10896 here. Call gimple_fold_builtin_with_strlen.
10897 (gimple_fold_call): Adjust.
10898
10899 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
10900
10901 * calls.c (precompute_arguments): Check
10902 promoted_for_signed_and_unsigned_p and set the promoted mode.
10903 (promoted_for_signed_and_unsigned_p): New function.
10904 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
10905 and set the promoted mode.
10906 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
10907 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
10908 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
10909
10910
10911 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
10912
10913 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
10914 instead of SUBREG_PROMOTED_UNSIGNED_SET.
10915 (expand_call): Likewise.
10916 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
10917 to get promoted mode.
10918 * combine.c (record_promoted_value): Skip > 0 comparison with
10919 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
10920 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
10921 of SUBREG_PROMOTED_UNSIGNED_P.
10922 (convert_modes): Likewise.
10923 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
10924 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
10925 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
10926 SUBREG_PROMOTED_UNSIGNED_SET.
10927 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
10928 instead of SUBREG_PROMOTED_UNSIGNED_SET.
10929 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
10930 SUBREG_PROMOTED_SET.
10931 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
10932 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
10933 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
10934 of SUBREG_PROMOTED_UNSIGNED_P.
10935 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
10936 (SUBREG_PROMOTED_SET): New define.
10937 (SUBREG_PROMOTED_GET): Likewise.
10938 (SUBREG_PROMOTED_SIGN): Likewise.
10939 (SUBREG_PROMOTED_SIGNED_P): Likewise.
10940 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
10941 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
10942 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
10943 instead of SUBREG_PROMOTED_UNSIGNED_GET.
10944 (nonzero_bits1): Skip > 0 comparison with the results as
10945 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
10946 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
10947 of !SUBREG_PROMOTED_UNSIGNED_P.
10948 * simplify-rtx.c (simplify_unary_operation_1): Use new
10949 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
10950 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
10951 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
10952 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
10953
10954 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
10955
10956 * ipa-devirt.c: Include gimple-pretty-print.h
10957 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
10958 further tests.
10959 (decl_maybe_in_construction_p): Fix conditional on cdtor check
10960 (get_polymorphic_call_info): Fix return value
10961 (type_change_info): New sturcture based on ipa-prop
10962 variant.
10963 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
10964 based on ipa-prop variant.
10965 (extr_type_from_vtbl_ptr_store): New function
10966 based on ipa-prop variant.
10967 (record_known_type): New function.
10968 (check_stmt_for_type_change): New function.
10969 (get_dynamic_type): New function.
10970 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
10971 * tree-ssa-pre.c: ipa-utils.h
10972 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
10973 machinery; sanity check with ipa-prop devirtualization.
10974 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
10975 polymorphic flag.
10976
10977 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
10978
10979 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
10980 * alias.c, cfgexpand.c, cgraphbuild.c,
10981 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
10982 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
10983 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
10984 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
10985 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
10986 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
10987 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
10988 dse.c, except.c, gengtype.c, gimple-expr.c,
10989 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
10990 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
10991 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
10992 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
10993 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
10994 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
10995 pointer-set.h.
10996 * pointer-set.c: Remove file.
10997 * pointer-set.h: Remove file.
10998
10999 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11000
11001 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
11002 * config/arm/types.md (f_sels, f_seld): Delete.
11003
11004 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11005
11006 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
11007 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
11008 (aarch64_movdi_<mode>high): Likewise.
11009 (aarch64_mov<mode>high_di): Likewise.
11010 (aarch64_movdi_<mode>low): Likewise.
11011 (aarch64_mov<mode>low_di): Likewise.
11012 (aarch64_movtilow_tilow): Likewise.
11013 Add comment explaining usage of fp,simd attributes and of
11014 TARGET_FLOAT and TARGET_SIMD.
11015
11016 2014-08-07 Ian Bolton <ian.bolton@arm.com>
11017 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11018
11019 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
11020 Use MOVN when one of the half-words is 0xffff.
11021
11022 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
11023
11024 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
11025
11026 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11027
11028 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
11029 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
11030 (rfs_str): String corresponding to RFS_* constants.
11031 (rank_for_schedule_stats_t): New typedef.
11032 (rank_for_schedule_stats): New static variable.
11033 (rfs_result): New static function.
11034 (rank_for_schedule): Track statistics for deciding heuristics.
11035 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
11036 static functions.
11037 (ready_sort): Use them for debug printouts.
11038 (schedule_block): Init statistics state. Print statistics on
11039 rank_for_schedule decisions.
11040
11041 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11042
11043 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
11044
11045 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
11046
11047 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
11048 constraint.
11049
11050 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
11051
11052 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
11053 function to not conflict.
11054 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
11055 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
11056 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
11057 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
11058 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
11059 of pointer_map.
11060
11061 2014-08-07 Marek Polacek <polacek@redhat.com>
11062
11063 * fold-const.c (fold_binary_loc): Add folding of
11064 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
11065
11066 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
11067
11068 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
11069 instead of type size.
11070 (ASM_FINISH_DECLARE_OBJECT): Likewise.
11071
11072 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
11073
11074 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
11075 (*thumb1_movqi_insn): Likewise.
11076 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
11077
11078 2014-08-07 Tom de Vries <tom@codesourcery.com>
11079
11080 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
11081 (glibc_2_11_or_earlier): Remove effective-target keywords.
11082
11083 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
11084
11085 * config/arm/arm.c (bdesc_2arg): Fix typo.
11086 (arm_atomic_assign_expand_fenv): Remove The default implementation.
11087
11088 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
11089
11090 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
11091
11092 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
11093
11094 PR debug/61923
11095 * haifa-sched.c (advance_one_cycle): Fix dump.
11096 (schedule_block): Don't advance cycle if we are already at the
11097 beginning of the cycle.
11098
11099 2014-08-06 Martin Jambor <mjambor@suse.cz>
11100
11101 PR ipa/61393
11102 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
11103
11104 2014-08-06 Richard Biener <rguenther@suse.de>
11105
11106 PR lto/62034
11107 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
11108 SCCs here.
11109 (lto_input_tree): Pop SCCs here.
11110
11111 2014-08-06 Richard Biener <rguenther@suse.de>
11112
11113 PR tree-optimization/61320
11114 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
11115 handle misaligned loads.
11116
11117 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
11118
11119 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
11120 (aarch64_expand_vec_perm_const): Check for dup before zip.
11121
11122 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11123
11124 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
11125 CONST_INT_P instead of GET_CODE and compare.
11126 (aarch64_select_cc_mode): Likewise.
11127 (aarch64_print_operand): Likewise.
11128 (aarch64_rtx_costs): Likewise.
11129 (aarch64_simd_valid_immediate): Likewise.
11130 (aarch64_simd_check_vect_par_cnst_half): Likewise.
11131 (aarch64_simd_emit_pair_result_insn): Likewise.
11132
11133 2014-08-05 David Malcolm <dmalcolm@redhat.com>
11134
11135 * gdbhooks.py (find_gcc_source_dir): New helper function.
11136 (class PassNames): New class, locating and parsing passes.def.
11137 (class BreakOnPass): New command "break-on-pass".
11138
11139 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
11140
11141 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
11142 getting olde.
11143
11144 2014-08-05 Richard Biener <rguenther@suse.de>
11145
11146 PR rtl-optimization/61672
11147 * emit-rtl.h (mem_attrs_eq_p): Declare.
11148 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
11149 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
11150 * cfgcleanup.c (merge_memattrs): Likewise.
11151 Include emit-rtl.h.
11152
11153 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11154
11155 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
11156 rather than singleton vectors.
11157 (vqdmlsls_lane_s32): Likewise.
11158
11159 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11160
11161 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
11162 Use VSDQ_HSI mode iterator.
11163 (aarch64_sqrdmulh_laneq<mode>): Likewise.
11164 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
11165 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
11166 Use BUILTIN_VDQHS macro.
11167 (sqrdmulh_laneq): Likewise.
11168 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
11169 (vqdmlals_laneq_s32): Likewise.
11170 (vqdmlslh_laneq_s16): Likewise.
11171 (vqdmlsls_laneq_s32): Likewise.
11172 (vqdmulhh_laneq_s16): Likewise.
11173 (vqdmulhs_laneq_s32): Likewise.
11174 (vqrdmulhh_laneq_s16): Likewise.
11175 (vqrdmulhs_laneq_s32): Likewise.
11176
11177 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11178
11179 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
11180 (vmuld_laneq_f64): Likewise.
11181 (vmuls_laneq_f32): Likewise.
11182 (vmul_n_f64): Likewise.
11183 (vmuld_lane_f64): Reimplement in C.
11184 (vmuls_lane_f32): Likewise.
11185
11186 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11187
11188 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
11189 to reservation.
11190 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
11191
11192 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11193
11194 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
11195 (rbitsi2): Likewise.
11196 (*arm_rev): Set predicable and predicable_short_it attributes.
11197
11198 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11199
11200 * convert.c (convert_to_integer): Guard transformation to lrint by
11201 -fno-math-errno.
11202
11203 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
11204
11205 * config/aarch64/aarch64-builtins.c
11206 (aarch64_simd_builtin_type_mode): Delete.
11207 (v8qi_UP): Remap to V8QImode.
11208 (v4hi_UP): Remap to V4HImode.
11209 (v2si_UP): Remap to V2SImode.
11210 (v2sf_UP): Remap to V2SFmode.
11211 (v1df_UP): Remap to V1DFmode.
11212 (di_UP): Remap to DImode.
11213 (df_UP): Remap to DFmode.
11214 (v16qi_UP):V16QImode.
11215 (v8hi_UP): Remap to V8HImode.
11216 (v4si_UP): Remap to V4SImode.
11217 (v4sf_UP): Remap to V4SFmode.
11218 (v2di_UP): Remap to V2DImode.
11219 (v2df_UP): Remap to V2DFmode.
11220 (ti_UP): Remap to TImode.
11221 (ei_UP): Remap to EImode.
11222 (oi_UP): Remap to OImode.
11223 (ci_UP): Map to CImode.
11224 (xi_UP): Remap to XImode.
11225 (si_UP): Remap to SImode.
11226 (sf_UP): Remap to SFmode.
11227 (hi_UP): Remap to HImode.
11228 (qi_UP): Remap to QImode.
11229 (aarch64_simd_builtin_datum): Make mode a machine_mode.
11230 (VAR1): Build builtin name.
11231 (aarch64_init_simd_builtins): Remove dead code.
11232
11233 2014-08-05 Roman Gareev <gareevroman@gmail.com>
11234
11235 * graphite-isl-ast-to-gimple.c:
11236 (set_options): New function.
11237 (scop_to_isl_ast): Add calling of set_options.
11238
11239 2014-08-05 Jakub Jelinek <jakub@redhat.com>
11240
11241 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
11242 (analyze_iv_to_split_insn): Don't initialize them.
11243 (get_ivts_expr): Removed.
11244 (allocate_basic_variable, insert_base_initialization): Use
11245 SET_SRC instead of *get_ivts_expr.
11246 (split_iv): Use &SET_SRC instead of get_ivts_expr.
11247
11248 2014-08-05 Roman Gareev <gareevroman@gmail.com>
11249
11250 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
11251 (translate_isl_ast_for_loop): Add checking of the
11252 flag_loop_parallelize_all.
11253 (ast_build_before_for): New function.
11254 (scop_to_isl_ast): Add checking of the
11255 flag_loop_parallelize_all.
11256 * graphite-dependences.c: Move the defenition of the
11257 scop_get_dependences from graphite-optimize-isl.c to this file.
11258 (apply_schedule_on_deps): Add checking of the ux's emptiness.
11259 (carries_deps): Add checking of the x's value.
11260 * graphite-optimize-isl.c: Move the defenition of the
11261 scop_get_dependences to graphite-dependences.c.
11262 * graphite-poly.h: Add declarations of scop_get_dependences
11263 and carries_deps.
11264
11265 2014-08-04 Rohit <rohitarulraj@freescale.com>
11266
11267 PR target/60102
11268 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
11269 names.
11270 (alt_reg_names): Likewise.
11271 (rs6000_dwarf_register_span): For SPE high registers, replace
11272 dwarf register numbers with GCC hard register numbers.
11273 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
11274 (rs6000_dbx_register_number): For SPE high registers, return dwarf
11275 register number for the corresponding GCC hard register number.
11276 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
11277 newly added GCC hard register numbers for SPE high registers.
11278 (DWARF_FRAME_REGISTERS): Likewise.
11279 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
11280 (DWARF_FRAME_REGNUM): Likewise.
11281 (FIXED_REGISTERS): Likewise.
11282 (CALL_USED_REGISTERS): Likewise.
11283 (CALL_REALLY_USED_REGISTERS): Likewise.
11284 (REG_ALLOC_ORDER): Likewise.
11285 (enum reg_class): Likewise.
11286 (REG_CLASS_NAMES): Likewise.
11287 (REG_CLASS_CONTENTS): Likewise.
11288 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
11289
11290 2014-08-04 Richard Biener <rguenther@suse.de>
11291
11292 * gimple-fold.h (gimple_fold_builtin): Remove.
11293 * gimple-fold.c (gimple_fold_builtin): Make static.
11294 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
11295 fold_stmt, not gimple_fold_builtin.
11296
11297 2014-08-04 Martin Liska <mliska@suse.cz>
11298
11299 * cgraph.h (csi_end_p): Removed.
11300 (csi_next): Likewise.
11301 (csi_node): Likewise.
11302 (csi_start): Likewise.
11303 (cgraph_node_in_set_p): Likewise.
11304 (cgraph_node_set_size): Likewise.
11305 (vsi_end_p): Likewise.
11306 (vsi_next): Likewise.
11307 (vsi_node): Likewise.
11308 (vsi_start): Likewise.
11309 (varpool_node_set_size): Likewise.
11310 (cgraph_node_set_nonempty_p): Likewise.
11311 (varpool_node_set_nonempty_p): Likewise.
11312 * cgraphunit.c (cgraph_process_new_functions): vec replaces
11313 cgraph_node_set.
11314 * ipa-inline-transform.c: Likewise.
11315 * ipa-utils.c (cgraph_node_set_new): Removed.
11316 (cgraph_node_set_add): Likewise.
11317 (cgraph_node_set_remove): Likewise.
11318 (cgraph_node_set_find): Likewise.
11319 (dump_cgraph_node_set): Likewise.
11320 (debug_cgraph_node_set): Likewise.
11321 (free_cgraph_node_set): Likewise.
11322 (varpool_node_set_new): Likewise.
11323 (varpool_node_set_add): Likewise.
11324 (varpool_node_set_remove): Likewise.
11325 (varpool_node_set_find): Likewise.
11326 (dump_varpool_node_set): Likewise.
11327 (free_varpool_node_set): Likewise.
11328 (debug_varpool_node_set): Likewise.
11329 * tree-emutls.c (struct tls_var_data):
11330 (emutls_index): Removed.
11331 (emutls_decl): Likewise.
11332 (gen_emutls_addr): Function implementation uses newly added
11333 hash_map<varpool_node *, tls_var_data>.
11334 (clear_access_vars): Likewise.
11335 (create_emultls_var): Likewise.
11336 (ipa_lower_emutls): Likewise.
11337 (reset_access): New function.
11338
11339 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11340
11341 * config/i386/i386.c (ix86_option_override_internal): Add
11342 PTA_RDRND and PTA_MOVBE for bdver4.
11343
11344 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11345 James Greenhalgh <james.greenhalgh@arm.com>
11346
11347 * doc/md.texi (clrsb): Document.
11348 (clz): Change reference to x into operand 1.
11349 (ctz): Likewise.
11350 (popcount): Likewise.
11351
11352 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11353
11354 PR target/61713
11355 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
11356 move to subtarget in serial version if result is ignored.
11357
11358 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11359 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11360
11361 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
11362 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
11363 (sched_analyze_insn): Update use of try_group_insn to
11364 sched_macro_fuse_insns.
11365 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
11366 arguments that are not conditional jumps.
11367
11368 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11369
11370 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
11371 family information. Handle BTVER2 cpu with cpuid family value.
11372
11373 2014-08-04 Tom de Vries <tom@codesourcery.com>
11374
11375 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
11376 (glibc_2_11_or_earlier): Document effective-target keywords.
11377
11378 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
11379
11380 * ipa-devirt.c (odr_type_warn_count): Add type.
11381 (possible_polymorphic_call_targets): Set it.
11382 (ipa_devirt): Use it.
11383
11384 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
11385
11386 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
11387 Document.
11388 * ipa-devirt.c: Include hash-map.h
11389 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
11390 (clear_speculation): Break out of ...
11391 (get_class_context): ... here; speed up handling obviously useless
11392 speculations.
11393 (odr_type_warn_count, decl_warn_count): New structures.
11394 (final_warning_record): New structure.
11395 (final_warning_records): New static variable.
11396 (possible_polymorphic_call_targets): Cleanup handling of
11397 speculative info; do not build speculation when user do not care;
11398 record info about warnings when asked for.
11399 (add_decl_warning): New function.
11400 (type_warning_cmp): New function.
11401 (decl_warning_cmp): New function.
11402 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
11403 (gate): Enable pass when warnings are requested.
11404 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
11405 options.
11406
11407 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
11408
11409 * hash-map.h (default_hashmap_traits::mark_key_deleted):
11410 Fix cast.
11411 (hash_map::remove): New method.
11412 (hash_map::traverse): New method.
11413 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
11414 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
11415 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
11416 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
11417 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
11418 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
11419 pointer_map.
11420
11421 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
11422
11423 * hash-set.h: new File.
11424 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
11425 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
11426 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
11427 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
11428 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
11429 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
11430 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
11431 varpool.c: Use hash_set instead of pointer_set.
11432
11433 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
11434
11435 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
11436
11437 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11438
11439 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
11440 for frame access when strict_p is false.
11441
11442 2014-08-01 Renlin Li <renlin.li@arm.com>
11443 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11444
11445 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
11446 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
11447 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
11448 Declaration.
11449 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
11450 predicate.
11451 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
11452 aarch64_mem_pair_offset.
11453
11454 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11455
11456 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
11457 offset.
11458 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
11459 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
11460
11461 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
11462
11463 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
11464
11465 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
11466
11467 PR regression/61510
11468 * cgraphunit.c (analyze_functions): Use get_create rather than get
11469 for decls which are clones of abstract functions.
11470
11471 2014-08-01 Martin Liska <mliska@suse.cz>
11472
11473 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
11474 * ipa-prop.h (count_formal_params): Global function created from static.
11475 * ipa-prop.c (count_formal_params): Likewise.
11476 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
11477 profiles for semantically equivalent functions.
11478 * passes.c (do_per_function): If we load body of a function
11479 during WPA, this condition should behave same.
11480 * varpool.c (ctor_for_folding): More tolerant assert for variable
11481 aliases created during WPA.
11482
11483 2014-08-01 Martin Liska <mliska@suse.cz>
11484
11485 * doc/invoke.texi (Options That Control Optimization): Documentation
11486 for -foptimize-strlen introduced. Optimization levels default options
11487 fixed.
11488
11489 2014-08-01 Jakub Jelinek <jakub@redhat.com>
11490
11491 * opts.c (common_handle_option): Handle -fsanitize=alignment.
11492 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
11493 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
11494 type to bool.
11495 * stor-layout.h (min_align_of_type): New prototype.
11496 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
11497 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
11498 check.
11499 * ubsan.c: Include builtins.h.
11500 (ubsan_expand_bounds_ifn): Change return type to bool,
11501 always return true.
11502 (ubsan_expand_null_ifn): Change return type to bool, change
11503 argument to gimple_stmt_iterator *. Handle both null and alignment
11504 sanitization, take type from ckind argument's type rather than
11505 first argument.
11506 (instrument_member_call): Removed.
11507 (instrument_mem_ref): Remove t argument, add mem and base arguments.
11508 Handle both null and alignment sanitization, don't say whole
11509 struct access is member access. Build 3 argument IFN_UBSAN_NULL
11510 call instead of 2 argument.
11511 (instrument_null): Adjust instrument_mem_ref caller. Don't
11512 instrument calls here.
11513 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
11514 like SANITIZE_NULL.
11515 * stor-layout.c (min_align_of_type): New function.
11516 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
11517 Or it into SANITIZE_UNDEFINED.
11518 * doc/invoke.texi (-fsanitize=alignment): Document.
11519
11520 2014-07-31 Andi Kleen <ak@linux.intel.com>
11521
11522 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
11523
11524 2014-07-31 Andi Kleen <ak@linux.intel.com>
11525
11526 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
11527 inchash.
11528 (vn_reference_compute_hash): Dito.
11529 (vn_nary_op_compute_hash): Dito.
11530 (vn_phi_compute_hash): Dito.
11531 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
11532
11533 2014-07-31 Andi Kleen <ak@linux.intel.com>
11534
11535 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
11536 Rename to inchash:add_expr_commutative. Convert to inchash.
11537 (iterative_hash_hashable_expr): Rename to
11538 inchash:add_hashable_expr. Convert to inchash.
11539 (avail_expr_hash): Dito.
11540
11541 2014-07-31 Andi Kleen <ak@linux.intel.com>
11542
11543 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
11544 Convert to inchash.
11545
11546 2014-07-31 Andi Kleen <ak@linux.intel.com>
11547
11548 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
11549
11550 2014-07-31 Andi Kleen <ak@linux.intel.com>
11551
11552 * Makefile.in (OBJS): Add rtlhash.o
11553 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
11554 (loc_checksum): Dito.
11555 (loc_checksum_ordered): Dito.
11556 (hash_loc_operands): Dito.
11557 (hash_locs): Dito.
11558 (hash_loc_list): Dito.
11559 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
11560 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
11561 * rtlhash.c: New file.
11562 * rtlhash.h: New file.
11563
11564 2014-07-31 Andi Kleen <ak@linux.intel.com>
11565
11566 * inchash.h (inchash): Change inchash class to namespace.
11567 (class hash): ... Rename from inchash.
11568 (add_object): Move from macro to class template.
11569 * lto-streamer-out.c (hash_tree): Change inchash
11570 to inchash::hash.
11571 * tree.c (build_type_attribute_qual_variant): Dito.
11572 (type_hash_list): Dito.
11573 (attribute_hash_list): Dito.
11574 (iterative_hstate_expr): Rename to inchash::add_expr
11575 (build_range_type_1): Change inchash to inchash::hash
11576 and use hash::add_expr.
11577 (build_array_type_1): Dito.
11578 (build_function_type): Dito
11579 (build_method_type_directly): Dito.
11580 (build_offset_type): Dito.
11581 (build_complex_type): Dito.
11582 (make_vector_type): Dito.
11583 * tree.h (iterative_hash_expr): Dito.
11584
11585 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
11586
11587 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
11588
11589 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
11590
11591 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
11592 correct alphabetical position.
11593 (vpaddd_f64): Rewrite using builtins.
11594 (vpaddd_s64): Move to correct alphabetical position.
11595 (vpaddd_u64): New.
11596
11597 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
11598
11599 PR target/61844
11600 * config/sh/sh.c (sh_legitimate_address_p,
11601 sh_legitimize_reload_address): Handle reg+reg address modes when
11602 ALLOW_INDEXED_ADDRESS is false.
11603 * config/sh/predicates.md (general_movsrc_operand,
11604 general_movdst_operand): Likewise.
11605
11606 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
11607
11608 * config/aarch64/aarch64-builtins.c
11609 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
11610 BYTES_BIG_ENDIAN.
11611
11612 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
11613
11614 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
11615 the generated mask based on BYTES_BIG_ENDIAN.
11616 (aarch64_simd_check_vect_par_cnst_half): New.
11617 * config/aarch64/aarch64-protos.h
11618 (aarch64_simd_check_vect_par_cnst_half): New.
11619 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
11620 the check out to aarch64_simd_check_vect_par_cnst_half.
11621 (vect_par_cnst_lo_half): Likewise.
11622 * config/aarch64/aarch64-simd.md
11623 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
11624 (move_hi_quad_<mode>): Always generate a low mask.
11625
11626 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11627
11628 * doc/invoke.texi (AVR Options): Add documentation about
11629 __AVR_DEVICE_NAME__ built-in macro.
11630
11631 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
11632
11633 PR target/61948
11634 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
11635 constraints are satisfied.
11636 (<shift>di3_neon): Likewise.
11637
11638 2014-07-31 Richard Biener <rguenther@suse.de>
11639
11640 PR tree-optimization/61964
11641 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
11642 by structural equality.
11643
11644 2014-07-31 Yury Gribov <y.gribov@samsung.com>
11645
11646 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
11647 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
11648 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
11649 New enums.
11650 * gcc.c (sanitize_spec_function): Support new option.
11651 (SANITIZER_SPEC): Remove now redundant check.
11652 * opts.c (common_handle_option): Support new option.
11653 (finish_options): Check for incompatibilities.
11654 * toplev.c (process_options): Split userspace-specific checks.
11655
11656 2014-07-31 Richard Biener <rguenther@suse.de>
11657
11658 * lto-streamer.h (struct output_block): Remove global.
11659 (struct data_in): Remove labels, num_named_labels and
11660 num_unnamed_labels.
11661 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
11662 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
11663
11664 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
11665
11666 PR c++/60517
11667 * common.opt (-Wreturn-local-addr): Moved from c.opt.
11668 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
11669 (isolate_path): New argument to avoid inserting a trap.
11670 (find_implicit_erroneous_behaviour): Handle returning the address
11671 of a local variable.
11672 (find_explicit_erroneous_behaviour): Likewise.
11673
11674 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
11675
11676 PR lto/61868
11677 * toplev.c (init_random_seed): Move piece of code never called to
11678 set_random_seed.
11679 (set_random_seed): see above.
11680
11681 2014-07-31 Tom de Vries <tom@codesourcery.com>
11682
11683 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
11684
11685 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
11686
11687 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
11688 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
11689
11690 2014-07-31 Richard Biener <rguenther@suse.de>
11691
11692 * data-streamer.h (streamer_write_data_stream): Declare here,
11693 renamed from ...
11694 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
11695 * lto-cgraph.c (lto_output_node): Adjust.
11696 (lto_output_varpool_node): Likewise.
11697 * data-streamer-out.c (streamer_string_index): Likewise.
11698 (streamer_write_data_stream, lto_append_block): Move from ...
11699 * lto-section-out.c (lto_output_data_stream,
11700 lto_append_block): ... here.
11701
11702 2014-07-30 Mike Stump <mikestump@comcast.net>
11703
11704 * configure.ac: Also check for popen.
11705 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
11706 * configure: Regenerate.
11707 * config.in: Regenerate.
11708
11709 2014-07-30 Martin Jambor <mjambor@suse.cz>
11710
11711 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
11712 parameter to gimple.
11713
11714 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11715
11716 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
11717 address as second parameter to __tpf_eh_return routine.
11718
11719 2014-07-30 Jiong Wang <jiong.wang@arm.com>
11720
11721 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
11722 Thumb2.
11723
11724 2014-07-30 Tom Tromey <tromey@redhat.com>
11725
11726 PR c/59855
11727 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
11728 * doc/extend.texi (Type Attributes): Document designated_init
11729 attribute.
11730
11731 2014-07-30 Roman Gareev <gareevroman@gmail.com>
11732
11733 * graphite-isl-ast-to-gimple.c:
11734 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
11735 (gcc_expression_from_isl_expression): Pass type to
11736 gcc_expression_from_isl_ast_expr_id.
11737
11738 2014-07-30 Richard Biener <rguenther@suse.de>
11739
11740 * lto-streamer.h (lto_write_data): New function.
11741 * langhooks.c (lhd_append_data): Do not free block.
11742 * lto-section-out.c (lto_write_data): New function writing
11743 raw data to the current section.
11744 (lto_write_stream): Adjust for langhook semantic change.
11745 (lto_destroy_simple_output_block): Write header directly.
11746 * lto-opts.c (lto_write_options): Write options directly.
11747 * lto-streamer-out.c (produce_asm): Write heaeder directly.
11748 (lto_output_toplevel_asms): Likewise.
11749 (copy_function_or_variable): Copy data directly.
11750 (write_global_references): Output index table directly.
11751 (lto_output_decl_state_refs): Likewise.
11752 (write_symbol): Write data directly.
11753 (produce_symtab): Adjust.
11754 (produce_asm_for_decls): Output header and refs directly.
11755
11756 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
11757
11758 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
11759 to speculative_targets
11760 (get_class_context): Fix handling of contextes without outer type;
11761 avoid matching non-polymorphic types in LTO.
11762 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
11763 parameter to speculative_targetsp; handle speculation.
11764 (dump_possible_polymorphic_call_targets): Update dumping.
11765
11766 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
11767
11768 * common.opt (Wodr): Enable by default.
11769
11770 2014-07-29 Olivier Hainque <hainque@adacore.com>
11771
11772 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
11773
11774 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
11775
11776 PR bootstrap/61914
11777 * gengtype.c (strtoken): New function.
11778 (create_user_defined_type): Replace strtok with strtoken.
11779
11780 2014-07-29 Nathan Sidwell <nathan@acm.org>
11781
11782 * gcov-io.c (gcov_var): Make hidden.
11783 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
11784 (gcov_do_dump): Declare.
11785 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
11786
11787 2014-07-29 Martin Jambor <mjambor@suse.cz>
11788
11789 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
11790 parameter to gimple.
11791 (sra_modify_assign): Likewise.
11792
11793 2014-07-29 Richard Biener <rguenther@suse.de>
11794
11795 PR middle-end/52478
11796 * expr.c (expand_expr_real_2): Revert last change.
11797
11798 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
11799
11800 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
11801 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
11802 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
11803 call.
11804 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
11805 (contains_type_p): Forward declare.
11806 (polymorphic_call_target_hasher::hash): Hash speculative info.
11807 (polymorphic_call_target_hasher::equal): Compare speculative info.
11808 (get_class_context): Handle speuclation.
11809 (contains_type_p): Update.
11810 (get_polymorphic_call_info_for_decl): Update.
11811 (walk_ssa_copies): Break out from ...
11812 (get_polymorphic_call_info): ... here; set speculative context
11813 before giving up.
11814 * ipa-prop.c (ipa_write_indirect_edge_info,
11815 ipa_read_indirect_edge_info): Stream speculative context.
11816 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
11817 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
11818 SPECULATIVE_MAYBE_DERIVED_TYPE).
11819 (possible_polymorphic_call_targets overriders): Update.
11820 (dump_possible_polymorphic_call_targets overriders): Update.
11821 (dump_possible_polymorphic_call_target_p overriders): Update.
11822
11823 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
11824
11825 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
11826 ipa-devirt path; fix thinko there.
11827
11828 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
11829
11830 * config/i386/i386.c (ix86_return_in_memory): Replace one
11831 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
11832
11833 2014-07-28 Marek Polacek <polacek@redhat.com>
11834
11835 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
11836
11837 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
11838
11839 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
11840 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
11841 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
11842 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
11843 (USE_LD_AS_NEEDED): Likewise.
11844 (ASM_APP_ON): Likewise.
11845 (ASM_APP_OFF): Likewise.
11846 (TARGET_POSIX_IO): Likewise.
11847 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
11848 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
11849 (USE_LD_AS_NEEDED): Likewise.
11850 (ASM_APP_ON): Likewise.
11851 (ASM_APP_OFF): Likewise.
11852 (TARGET_POSIX_IO): Likewise.
11853
11854 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
11855
11856 PR middle-end/61734
11857 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
11858 operators other than the equality operators.
11859
11860 2014-07-28 Richard Biener <rguenther@suse.de>
11861
11862 PR middle-end/52478
11863 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
11864 sure to register SImode ones, not only >= word_mode ones.
11865 * expr.c (expand_expr_real_2): When expanding -ftrapv
11866 binops do not use OPTAB_LIB_WIDEN.
11867
11868 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
11869
11870 PR middle-end/61919
11871 * tree-outof-ssa.c (insert_partition_copy_on_edge)
11872 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
11873 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
11874 inserting them in the insn stream.
11875
11876 2014-07-28 Marek Polacek <polacek@redhat.com>
11877
11878 PR middle-end/61913
11879 * common.opt (Wodr): Add Var.
11880
11881 2014-07-28 Richard Biener <rguenther@suse.de>
11882
11883 PR tree-optimization/61921
11884 * tree-ssa-structalias.c (create_variable_info_for_1): Check
11885 if there is a varpool node before dereferencing it.
11886
11887 2014-07-28 Roman Gareev <gareevroman@gmail.com>
11888
11889 * graphite-sese-to-poly.c:
11890 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
11891 id of the pbb), which contains pointer to the pbb1.
11892
11893 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
11894
11895 2014-07-28 Roman Gareev <gareevroman@gmail.com>
11896
11897 * graphite-isl-ast-to-gimple.c:
11898 (graphite_create_new_guard): New function.
11899 (translate_isl_ast_node_if): New function.
11900 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
11901
11902 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
11903
11904 2014-07-27 Anthony Green <green@moxielogic.com>
11905
11906 * config.gcc: Add moxie-*-moxiebox* configuration.
11907 * config/moxie/moxiebox.h: New file.
11908
11909 2014-07-26 Andrew Pinski <apinski@cavium.com>
11910
11911 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
11912 from the read only register.
11913
11914 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
11915
11916 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
11917 as the allocation class if it isn't likely to be spilled.
11918
11919 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
11920
11921 * rtl.h (tls_referenced_p): Declare.
11922 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
11923 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
11924 (mips_cannot_force_const_mem): Use tls_referenced_p.
11925 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
11926 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
11927 instead of pa_tls_referenced_p.
11928 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
11929 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
11930 (pa_legitimate_constant_p): Likewise.
11931 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
11932 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
11933 (rs6000_cannot_force_const_mem, rs6000_emit_move)
11934 (rs6000_address_for_altivec): Use tls_referenced_p instead of
11935 rs6000_tls_referenced_p.
11936 (rs6000_tls_symbol_ref_1): Delete.
11937
11938 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
11939
11940 PR target/44551
11941 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
11942 Optimize inverse of a VEC_CONCAT.
11943
11944 2014-07-25 Xinliang David Li <davidxl@google.com>
11945
11946 * params.def: New parameter.
11947 * coverage.c (get_coverage_counts): Check new flag.
11948 (coverage_compute_profile_id): Check new flag.
11949 (coverage_begin_function): Check new flag.
11950 (coverage_end_function): Check new flag.
11951 * value-prof.c (coverage_node_map_initialized_p): New function.
11952 (init_node_map): Populate map with all functions.
11953 * doc/invoke.texi: Document new parameter.
11954
11955 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
11956 Richard Biener <rguenther@suse.de>
11957
11958 * lto-streamer-out.c (struct sccs): Turn to ...
11959 (class DFS): ... this one; refactor the DFS walk so it can
11960 be re-done on per-SCC basis.
11961 (DFS::DFS): New constructor.
11962 (DFS::~DFS): New destructor.
11963 (hash_tree): Add new MAP argument holding in-SCC hash values;
11964 remove POINTER_TYPE hashing hack.
11965 (scc_entry_compare): Rename to ...
11966 (DFS::scc_entry_compare): ... this one.
11967 (hash_scc): Rename to ...
11968 (DFS::hash_scc): ... this one; pass output_block instead
11969 of streamer_cache; work harder to get unique and stable SCC
11970 hashes.
11971 (DFS_write_tree): Rename to ...
11972 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
11973 (lto_output_tree): Update.
11974
11975 2014-07-25 Andi Kleen <ak@linux.intel.com>
11976
11977 * lto-streamer-out.c (hash_tree): Convert to inchash.
11978
11979 2014-07-25 Andi Kleen <ak@linux.intel.com>
11980
11981 * tree.c (build_type_attribute_qual_variant): Use inchash.
11982 (type_hash_list): Dito.
11983 (attribute_hash_list): Dito
11984 (iterative_hstate_expr): Dito.
11985 (iterative_hash_expr): Dito.
11986 (build_range_type_1): Dito.
11987 (build_array_type_1): Dito.
11988 (build_function_type): Dito.
11989 (build_method_type_directly): Dito.
11990 (build_offset_type): Dito.
11991 (build_complex_type): Dito.
11992 (make_vector_type): Dito.
11993 * tree.h (iterative_hash_expr): Add compat wrapper.
11994 (iterative_hstate_expr): Add.
11995
11996 2014-07-25 Andi Kleen <ak@linux.intel.com>
11997
11998 * Makefile.in (OBJS): Add inchash.o.
11999 (PLUGIN_HEADERS): Add inchash.h.
12000 * ipa-devirt.c: Include inchash.h.
12001 * lto-streamer-out.c: Dito.
12002 * tree-ssa-dom.c: Dito.
12003 * tree-ssa-pre.c: Dito.
12004 * tree-ssa-sccvn.c: Dito.
12005 * tree-ssa-tail-merge.c: Dito.
12006 * asan.c: Dito.
12007 * tree.c (iterative_hash_hashval_t): Move to ...
12008 (iterative_hash_host_wide_int): Move to ...
12009 * inchash.c: Here. New file.
12010 * tree.h (iterative_hash_hashval_t): Move to ...
12011 (iterative_hash_host_wide_int): Move to ...
12012 * inchash.h: Here. New file.
12013
12014 2014-07-25 Richard Biener <rguenther@suse.de>
12015
12016 PR middle-end/61762
12017 PR middle-end/61894
12018 * fold-const.c (native_encode_int): Add and handle offset
12019 parameter to do partial encodings of expr.
12020 (native_encode_fixed): Likewise.
12021 (native_encode_real): Likewise.
12022 (native_encode_complex): Likewise.
12023 (native_encode_vector): Likewise.
12024 (native_encode_string): Likewise.
12025 (native_encode_expr): Likewise.
12026 * fold-const.c (native_encode_expr): Add offset parameter
12027 defaulting to -1.
12028 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
12029 (fold_ctor_reference): Handle all reads from tcc_constant
12030 ctors.
12031
12032 2014-07-25 Richard Biener <rguenther@suse.de>
12033
12034 * tree-inline.c (estimate_move_cost): Mark speed_p argument
12035 as possibly unused.
12036
12037 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12038
12039 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
12040
12041 2014-07-24 Kyle McMartin <kyle@redhat.com>
12042
12043 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
12044
12045 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12046
12047 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
12048 Add prototype.
12049 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
12050 function.
12051 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
12052 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
12053 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
12054
12055 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12056
12057 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
12058 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
12059 aggregate types. Instead, *all* aggregate types, except for single-
12060 element or homogeneous float/vector aggregates, are quadword-aligned
12061 if required by their type alignment. Issue -Wpsabi note when a type
12062 is now treated differently than before.
12063
12064 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12065
12066 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
12067 does not fit fully into floating-point registers, and there is still
12068 space in the register parameter area, use GPRs to pass those parts
12069 of the argument. Issue -Wpsabi note if any parameter is now treated
12070 differently than before.
12071 (rs6000_arg_partial_bytes): Update.
12072
12073 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
12074
12075 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
12076
12077 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12078
12079 * rtl.h (target_rtl): Remove lang_dependent_initialized.
12080 * toplev.c (initialize_rtl): Don't use it. Move previously
12081 "language-dependent" calls to...
12082 (backend_init): ...here.
12083 (lang_dependent_init_target): Don't set lang_dependent_initialized.
12084 Assert that RTL initialization hasn't happend yet.
12085
12086 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12087
12088 PR rtl-optimization/61629
12089 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
12090 they have already been initialized.
12091
12092 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12093
12094 PR middle-end/61268
12095 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
12096 DECL_INCOMING_RTL and entry_parm.
12097 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
12098 * calls.c (load_register_parameters): Likewise argument values.
12099 (emit_library_call_value_1, store_one_arg): Likewise argument
12100 save areas.
12101 * config/i386/i386.c (assign_386_stack_local): Likewise the local
12102 stack slot.
12103 * explow.c (validize_mem): Modify the argument in-place.
12104
12105 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12106
12107 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
12108 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
12109
12110 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12111
12112 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
12113 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
12114
12115 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12116
12117 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
12118 (aarch64_save_callee_saves): New parameter "skip_wb".
12119 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
12120
12121 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12122
12123 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
12124 "wb_candidate2".
12125 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
12126
12127 2014-07-24 Roman Gareev <gareevroman@gmail.com>
12128
12129 * graphite-isl-ast-to-gimple.c:
12130 (graphite_create_new_loop): Add calling of isl_id_free to properly
12131 decrement reference counts.
12132
12133 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
12134
12135 2014-07-24 Martin Liska <mliska@suse.cz>
12136 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
12137 function used.
12138 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
12139 (rs6000_code_end): Likewise.
12140
12141 2014-07-24 Martin Liska <mliska@suse.cz>
12142
12143 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
12144 symtab_node funtion used.
12145 (rs6000_xcoff_declare_object_name): Likewise.
12146
12147 2014-07-24 Martin Liska <mliska@suse.cz>
12148
12149 * cgraphunit.c (compile): Correct function used.
12150
12151 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
12152
12153 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
12154 as non-indexable.
12155
12156 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
12157
12158 PR lto/61802
12159 * varasm.c (bss_initializer_p): Handle offlined ctors.
12160 (align_variable, get_variable_align): Likewise.
12161 (make_decl_one_only): Likewise.
12162 (default_binds_local_p_1): Likewise.
12163 (decl_binds_to_current_def_p): Likewise.
12164 (get_variable_section): Get constructor if it is offlined.
12165 (assemble_variable_contents): Sanity check that the caller
12166 streamed in the ctor in LTO.
12167
12168 2014-07-24 Roman Gareev <gareevroman@gmail.com>
12169
12170 * graphite-isl-ast-to-gimple.c:
12171 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
12172 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
12173 isl_ast_op_pdiv_r to the different case.
12174
12175 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
12176
12177 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12178
12179 PR middle-end/61876
12180 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
12181 when flag_errno_math is on.
12182
12183 2014-07-24 Martin Liska <mliska@suse.cz>
12184
12185 * cgraph.h (varpool_node):
12186 (availability get_availability (void)):
12187 created from cgraph_variable_initializer_availability
12188 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
12189 created from: cgraph_variable_initializer_availability
12190 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
12191 (void finalize_named_section_flags (void)):
12192 created from varpool_finalize_named_section_flags
12193 (bool assemble_decl (void)): created from varpool_assemble_decl
12194 (void analyze (void)): created from varpool_analyze_node
12195 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
12196 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
12197 (void remove_initializer (void)): created from varpool_remove_initializer
12198 (tree get_constructor (void)): created from varpool_get_constructor
12199 (bool externally_visible_p (void)): created from varpool_externally_visible_p
12200 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
12201 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
12202 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
12203 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
12204 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
12205 (static bool output_variables (void)): created from varpool_output_variables
12206 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
12207 created from varpool_extra_name_alias
12208 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
12209 (static void dump_varpool (FILE *f)): created from dump_varpool
12210 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
12211 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
12212 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
12213 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
12214 (void assemble_aliases (void)): created from assemble_aliases
12215
12216 2014-07-24 Martin Liska <mliska@suse.cz>
12217
12218 * cgraph.h (symtab_node):
12219 (void register_symbol (void)): created from symtab_register_node
12220 (void remove (void)): created from symtab_remove_node
12221 (void dump (FILE *f)): created from dump_symtab_node
12222 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
12223 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
12224 (struct ipa_ref *add_reference (symtab_node *referred_node,
12225 enum ipa_ref_use use_type)): created from add_reference
12226 (struct ipa_ref *add_reference (symtab_node *referred_node,
12227 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
12228 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
12229 gimple stmt)): created from maybe_add_reference
12230 (bool semantically_equivalent_p (symtab_node *target)): created from
12231 symtab_semantically_equivalent_p
12232 (void remove_from_same_comdat_group (void)): created from
12233 remove_from_same_comdat_group
12234 (void add_to_same_comdat_group (symtab_node *old_node)): created from
12235 symtab_add_to_same_comdat_group
12236 (void dissolve_same_comdat_group_list (void)): created from
12237 symtab_dissolve_same_comdat_group_list
12238 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
12239 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
12240 created from symtab_alias_ultimate_target
12241 (inline symtab_node *next_defined_symbol (void)): created from
12242 symtab_next_defined_symbol
12243 (bool resolve_alias (symtab_node *target)): created from
12244 symtab_resolve_alias
12245 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
12246 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
12247 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
12248 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
12249 (void set_section (const char *section)): created from set_section_1
12250 (enum availability get_availability (void)): created from symtab_node_availability
12251 (void make_decl_local (void)): created from symtab_make_decl_local
12252 (bool real_symbol_p (void)): created from symtab_read_node
12253 (can_be_discarded_p (void)): created from symtab_can_be_discarded
12254 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
12255 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
12256 symtab_in_same_comdat_p;
12257 (bool address_taken_from_non_vtable_p (void)): created from
12258 address_taken_from_non_vtable_p
12259 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
12260 (static void dump_table (FILE *)): created from dump_symtab
12261 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
12262 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
12263 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
12264 symtab_used_from_object_file_p
12265 (void dump_base (FILE *)): created from dump_symtab_base
12266 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
12267 (void unregister (void)): created from symtab_unregister_node
12268 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
12269 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
12270 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
12271 symtab_nonoverwritable_alias_1
12272 * cgraph.h (cgraph_node):
12273 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
12274 created from cgraph_remove_node_and_inline_clones
12275 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
12276 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
12277 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
12278 (cgraph_node *function_symbol (enum availability *avail = NULL)):
12279 created from cgraph_function_node
12280 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
12281 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
12282 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
12283 created from cgraph_create_clone
12284 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
12285 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
12286 created from cgraph_create_virtual_clone
12287 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
12288 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
12289 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
12290 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
12291 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
12292 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
12293 created from cgraph_function_version_info
12294 (struct cgraph_function_version_info *insert_new_function_version (void)):
12295 created from insert_new_cgraph_node_version
12296 (struct cgraph_function_version_info *function_version (void)): created from
12297 get_cgraph_node_version
12298 (void analyze (void)): created from analyze_function
12299 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
12300 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
12301 tree real_alias) cgraph_add_thunk
12302 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
12303 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
12304 created from cgraph_function_or_thunk_node
12305 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
12306 created from expand_thunk
12307 (void reset (void)): created from cgraph_reset_node
12308 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
12309 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
12310 (void remove (void)): created from cgraph_remove_node
12311 (void dump (FILE *f)): created from dump_cgraph_node
12312 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
12313 (bool get_body (void)): created from cgraph_get_body
12314 (void release_body (void)): created from cgraph_release_function_body
12315 (void unnest (void)): created from cgraph_unnest_node
12316 (void make_local (void)): created from cgraph_make_node_local
12317 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
12318 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
12319 gcov_type count, int freq)): created from cgraph_create_edge
12320 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
12321 gcov_type count, int freq)): created from cgraph_create_indirect_edge
12322 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
12323 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
12324 created from cgraph_create_edge_including_clones
12325 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
12326 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
12327 (void remove_callers (void)): created from cgraph_node_remove_callers
12328 (void remove_callees (void)): created from cgraph_node_remove_callees
12329 (enum availability get_availability (void)): created from cgraph_function_body_availability
12330 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
12331 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
12332 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
12333 (void call_duplication_hooks (cgraph_node *node2)): created from
12334 cgraph_call_node_duplication_hooks
12335 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
12336 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
12337 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
12338 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
12339 (void call_function_insertion_hooks (void)):
12340 created from cgraph_call_function_insertion_hooks
12341 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
12342 (bool local_p (void)): created from cgraph_local_node
12343 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
12344 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
12345 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
12346 (inline bool only_called_directly_or_aliased_p (void)):
12347 created from cgraph_only_called_directly_or_aliased_p
12348 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
12349 created from cgraph_will_be_removed_from_program_if_no_direct_calls
12350 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
12351 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
12352 (bool can_remove_if_no_direct_calls_p (void)):
12353 created from cgraph_can_remove_if_no_direct_calls_p
12354 (inline bool has_gimple_body_p (void)):
12355 created from cgraph_function_with_gimple_body_p
12356 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
12357 (static void dump_cgraph (FILE *f)): created from dump_cgraph
12358 (static inline void debug_cgraph (void)): created from debug_cgraph
12359 (static void record_function_versions (tree decl1, tree decl2)):
12360 created from record_function_versions
12361 (static void delete_function_version (tree decl)):
12362 created from delete_function_version
12363 (static void add_new_function (tree fndecl, bool lowered)):
12364 created from cgraph_add_new_function
12365 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
12366 (static cgraph_node * create (tree decl)): created from cgraph_create_node
12367 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
12368 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
12369 (static cgraph_node *get_for_asmname (tree asmname)):
12370 created from cgraph_node_for_asm
12371 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
12372 created from cgraph_same_body_alias
12373 (static bool used_from_object_file_p_worker (cgraph_node *node,
12374 void *): new function
12375 (static bool non_local_p (cgraph_node *node, void *)):
12376 created from cgraph_non_local_node_p_1
12377 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
12378 created from verify_cgraph
12379 (static bool make_local (cgraph_node *node, void *)):
12380 created from cgraph_make_node_local
12381 (static cgraph_node *create_alias (tree alias, tree target)):
12382 created from cgraph_create_function_alias
12383 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
12384 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
12385 created from cgraph_create_edge_1
12386 * cgraph.h (varpool_node):
12387 (void remove (void)): created from varpool_remove_node
12388 (void dump (FILE *f)): created from dump_varpool_node
12389
12390 2014-07-24 Richard Biener <rguenther@suse.de>
12391
12392 PR ipa/61823
12393 * tree-ssa-structalias.c (create_variable_info_for_1):
12394 Use varpool_get_constructor.
12395 (create_variable_info_for): Likewise.
12396
12397 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12398
12399 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
12400 subtract outgoing area size when restoring stack_pointer_rtx.
12401
12402 2014-07-24 Nick Clifton <nickc@redhat.com>
12403
12404 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
12405 that operations are taking place in parallel.
12406 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
12407
12408 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
12409
12410 * omp-low.c (extract_omp_for_data): Add missing break statement.
12411
12412 2014-07-24 Richard Biener <rguenther@suse.de>
12413
12414 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
12415 * tree-inline.c (estimate_move_cost): Add speed_p parameter
12416 and adjust MOVE_RATIO query accordingly.
12417 (estimate_num_insns): Adjust callers.
12418 * ipa-prop.c (ipa_populate_param_decls): Likewise.
12419 * ipa-cp.c (gather_context_independent_values,
12420 estimate_local_effects): Likewise.
12421 * ipa-split.c (consider_split): Likewise.
12422
12423 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
12424
12425 * config/i386/driver-i386.c: Remove names of unused arguments and
12426 unnecessary unused attributes.
12427 * config/i386/host-mingw32.c: Likewise.
12428 * config/i386/i386.c: Likewise.
12429 * config/i386/winnt-stubs.c: Likewise.
12430 * config/i386/winnt.c: Likewise.
12431
12432 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12433
12434 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
12435 (aarch64_gen_loadwb_pair): New helper function.
12436 (aarch64_expand_epilogue): Simplify code using new helper functions.
12437 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
12438
12439 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12440
12441 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
12442 (aarch64_gen_storewb_pair): New helper function.
12443 (aarch64_expand_prologue): Simplify code using new helper functions.
12444 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
12445
12446 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12447
12448 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
12449 Rename to aarch64_save_callee_saves, remove restore code.
12450 (aarch64_restore_callee_saves): New function.
12451
12452 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12453
12454 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
12455 (aarch64_save_callee_saves): New function to handle reg save
12456 for both core and vectore regs.
12457
12458 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12459
12460 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
12461 (aarch64_gen_store_pair): New helper function.
12462 (aarch64_save_or_restore_callee_save_registers)
12463 (aarch64_save_or_restore_fprs): Use new helper functions.
12464
12465 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12466
12467 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
12468 (aarch64_save_or_restore_callee_save_registers)
12469 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
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): Hoist calculation of register rtx.
12476
12477 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12478
12479 * config/aarch64/aarch64.c
12480 (aarch64_save_or_restore_callee_save_registers)
12481 (aarch64_save_or_restore_fprs): Remove 'increment'.
12482
12483 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12484
12485 * config/aarch64/aarch64.c
12486 (aarch64_save_or_restore_callee_save_registers)
12487 (aarch64_save_or_restore_fprs): Use register offset in
12488 cfun->machine->frame.reg_offset.
12489
12490 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12491
12492 * config/aarch64/aarch64.c
12493 (aarch64_save_or_restore_callee_save_registers)
12494 (aarch64_save_or_restore_fprs): Remove base_rtx.
12495
12496 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12497
12498 * config/aarch64/aarch64.c
12499 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
12500 to 'start_offset'. Remove local variable 'start_offset'.
12501
12502 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12503
12504 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
12505 type to HOST_WIDE_INT.
12506
12507 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12508
12509 * config/aarch64/aarch64.c (aarch64_expand_prologue)
12510 (aarch64_save_or_restore_fprs)
12511 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
12512
12513 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
12514
12515 * config/arm/t-rtems-eabi: Add
12516 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
12517 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
12518 mbig-endian/mthumb/march=armv7-r, and
12519 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
12520 multilibs.
12521
12522 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
12523 Chris Johns <chrisj@rtems.org>
12524 Joel Sherrill <joel.sherrill@oarcorp.com>
12525
12526 * config.gcc: Add nios2-*-rtems*.
12527 * config/nios2/rtems.h: New file.
12528 * gcc/config/nios2/t-rtems: New file.
12529
12530 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
12531
12532 PR target/61396
12533 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
12534 constant numbers, not general constants.
12535 (rs6000_expand_vector_init): Ditto.
12536
12537 2014-07-23 Nathan Sidwell <nathan@acm.org>
12538
12539 * gcov-tool.c (gcov_list): Declare here.
12540 (set_gcov_list): Remove.
12541 (gcov_output_files): Set gcov_list directly.
12542
12543 2014-07-23 Host Schirmeier <horst@schirmeier.com>
12544
12545 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
12546
12547 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12548
12549 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
12550 callee-saved registers are available for padding purpose
12551 and r3 is not mandatory, then prefer use those callee-saved
12552 instead of r3.
12553
12554 2014-07-23 Richard Biener <rguenther@suse.de>
12555
12556 * params.def (PARAM_MAX_COMBINE_INSNS): New.
12557 * combine.c: Include statistics.h and params.h.
12558 (combine_instructions): Guard three and four insn combines
12559 with max-combine-insns value. Record statistics for combines
12560 performed.
12561 * doc/invoke.texi (max-combine-insns): Document new param.
12562
12563 2014-07-23 Roman Gareev <gareevroman@gmail.com>
12564
12565 * graphite-isl-ast-to-gimple.c:
12566 (translate_isl_ast_node_block): New function.
12567 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
12568
12569 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
12570 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
12571
12572 2014-07-23 Roman Gareev <gareevroman@gmail.com>
12573
12574 * graphite-isl-ast-to-gimple.c:
12575 (get_max_schedule_dimensions): New function.
12576 (extend_schedule): Likewise.
12577 (generate_isl_schedule): Add calling of extend_schedule and
12578 get_max_schedule_dimensions.
12579
12580 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12581
12582 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
12583 (case UNSPEC): Handle UNSPEC_RBIT.
12584
12585 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12586
12587 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
12588 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
12589
12590 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12591
12592 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
12593
12594 2014-07-22 Roman Gareev <gareevroman@gmail.com>
12595
12596 * graphite-isl-ast-to-gimple.c:
12597 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
12598 (ivs_params_clear):
12599 (build_iv_mapping): New function.
12600 (translate_isl_ast_node_user): Likewise.
12601 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
12602
12603 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
12604 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
12605 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
12606
12607 2014-07-21 Bin Cheng <bin.cheng@arm.com>
12608
12609 PR target/55701
12610 * config/arm/arm.md (setmem): New pattern.
12611 * config/arm/arm-protos.h (struct tune_params): New fields.
12612 (arm_gen_setmem): New prototype.
12613 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
12614 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
12615 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
12616 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
12617 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
12618 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
12619 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
12620 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
12621 (arm_const_inline_cost): New function.
12622 (arm_block_set_max_insns): New function.
12623 (arm_block_set_non_vect_profit_p): New function.
12624 (arm_block_set_vect_profit_p): New function.
12625 (arm_block_set_unaligned_vect): New function.
12626 (arm_block_set_aligned_vect): New function.
12627 (arm_block_set_unaligned_non_vect): New function.
12628 (arm_block_set_aligned_non_vect): New function.
12629 (arm_block_set_vect, arm_gen_setmem): New functions.
12630
12631 2014-07-21 Bin Cheng <bin.cheng@arm.com>
12632
12633 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
12634
12635 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
12636
12637 PR target/61855
12638 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
12639 out of #ifdef __OPTIMIZE__.
12640
12641 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
12642
12643 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
12644 different trapping status if -fnon-call-exceptions is enabled.
12645
12646 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
12647
12648 * expr.c (store_field): Handle VOIDmode for calls that return values
12649 in multiple locations.
12650
12651 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12652
12653 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
12654 (altivec_vsldoi_<mode>): Likewise.
12655
12656 2014-07-20 Roman Gareev <gareevroman@gmail.com>
12657
12658 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
12659 to the number of characters in the line.
12660
12661 2014-07-20 Roman Gareev <gareevroman@gmail.com>
12662
12663 * graphite-isl-ast-to-gimple.c: Add using of
12664 build_nonstandard_integer_type instead of int128_integer_type_node.
12665
12666 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
12667
12668 * toplev.c (output_stack_usage): Adjust the location of the warning.
12669
12670 2014-07-19 Daniel Cederman <cederman@gaisler.com>
12671
12672 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
12673 (*membar_storeload): Disable for LEON3.
12674
12675 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12676
12677 PR rtl-optimization/61461
12678 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
12679
12680 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
12681
12682 PR target/61794
12683 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
12684 Fix instruction constraint.
12685 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
12686
12687 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
12688
12689 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
12690
12691 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
12692
12693 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
12694 GNU coding standards.
12695 (nds32_register_move_cost): Likewise.
12696 (nds32_memory_move_cost): Likewise.
12697 (nds32_address_cost): Likewise.
12698
12699 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12700
12701 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
12702
12703 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
12704
12705 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
12706 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
12707 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
12708 (HAVE_sync_compare_and_swapqi): Define.
12709 (HAVE_sync_compare_and_swaphi): Likewise.
12710 (HAVE_sync_compare_and_swapsi): Likewise.
12711
12712 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
12713
12714 * config/mips/p5600.md: Add missing cpu tests.
12715
12716 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12717
12718 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
12719 (vmla_f64): Likewise.
12720 (vfms_f64): Likewise.
12721 (vmls_f64): Likewise.
12722
12723 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12724
12725 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
12726 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
12727
12728 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12729
12730 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
12731 (vmlal_high_lane_s32): Likewise.
12732 (vmlal_high_lane_u16): Likewise.
12733 (vmlal_high_lane_u32): Likewise.
12734 (vmlsl_high_lane_s16): Likewise.
12735 (vmlsl_high_lane_s32): Likewise.
12736 (vmlsl_high_lane_u16): Likewise.
12737 (vmlsl_high_lane_u32): Likewise.
12738
12739 2014-07-17 Terry Guo <terry.guo@arm.com>
12740
12741 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
12742 (alus_reg): Renamed to alus_sreg.
12743 * config/arm/arm-fixed.md: Change type of non-dsp instructions
12744 from alu_reg to alu_sreg. Change type of dsp instructions from
12745 alu_reg to alu_dsp_reg.
12746 * config/arm/thumb1.md: Likewise.
12747 * config/arm/thumb2.md: Likewise.
12748 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
12749 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
12750 with alu_sreg and alus_sreg.
12751 * config/arm/arm1026ejs.md (alu_op): Likewise.
12752 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
12753 * config/arm/arm926ejs.md (9_alu_op): Likewise.
12754 * config/arm/fa526.md (526_alu_op): Likewise.
12755 * config/arm/fa606te.md (606te_alu_op): Likewise.
12756 * config/arm/fa626te.md (626te_alu_op): Likewise.
12757 * config/arm/fa726te.md (726te_alu_op): Likewise.
12758 * config/arm/fmp626.md (mp626_alu_op): Likewise.
12759 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
12760 alu_sreg, alu_dsp_reg and alus_sreg.
12761 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
12762 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12763 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12764 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
12765 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
12766 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12767 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12768 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
12769 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
12770 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
12771 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
12772 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
12773 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
12774 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
12775 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
12776 alus_reg to alus_sreg.
12777
12778 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
12779
12780 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
12781 infinity format.
12782
12783 2014-07-17 Richard Biener <rguenther@suse.de>
12784
12785 PR rtl-optimization/61801
12786 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
12787 don't set reg_pending_barrier if it appears in a debug-insn.
12788
12789 2014-07-16 DJ Delorie <dj@redhat.com>
12790
12791 * config/rx/rx.c (rx_option_override): Fix alignment values.
12792 (rx_align_for_label): Likewise.
12793
12794 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
12795
12796 PR target/61737.
12797 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
12798 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
12799 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
12800 functions.
12801 (cris_print_index, cris_print_operand, cris_constant_index_p)
12802 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
12803 (cris_address_cost): Ditto last CONSTANT_P.
12804 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
12805 callers changed. Yield cris_offsettable_symbol for non-PIC
12806 constant symbolic expressions including labels. Yield cris_unspec
12807 for all unspecs.
12808 (cris_expand_pic_call_address): New parameter MARKERP. Set its
12809 target to pic_offset_table_rtx for calls that will likely go
12810 through PLT, const0_rtx when they can't. All callers changed.
12811 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
12812 symbolic expressions to be PICified. Remove second, redundant,
12813 assert on can_create_pseudo_p returning non-zero. Use
12814 replace_equiv_address_nv, not replace_equiv_address, for final
12815 operand update.
12816 * config/cris/cris.md ("movsi"): Move variable t to pattern
12817 toplevel. Adjust assert for new cris_symbol_type member. Use
12818 CONSTANT_P instead of CONSTANT_ADDRESS_P.
12819 ("*movsi_internal") <case 9>: Make check for valid unspec operands
12820 for lapc stricter.
12821 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
12822 ("call", "call_value"): Use second incoming operand as a marker
12823 for pic-offset-table-register being used.
12824 ("*expanded_call_non_v32", "*expanded_call_v32")
12825 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
12826 second incoming operand to CALL, match cris_call_type_marker.
12827 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
12828 ("*expanded_call_side"): Ditto. Fix typo in comment.
12829 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
12830 CONSTANT_P.
12831 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
12832 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
12833 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
12834 users changed. Add members cris_offsettable_symbol and cris_unspec.
12835 (cris_symbol_type): Rename from cris_pic_symbol_type.
12836 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
12837 just CONSTANT_P.
12838 * config/cris/cris-protos.h (cris_symbol_type_of,
12839 cris_expand_pic_call_address): Adjust prototypes.
12840 (cris_legitimate_constant_p): New prototype.
12841
12842 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
12843 an existing tmake_file. Don't add t-slibgcc and t-linux.
12844
12845 2014-07-17 Jason Merrill <jason@redhat.com>
12846
12847 PR c++/61623
12848 * symtab.c (symtab_remove_from_same_comdat_group): Also
12849 set_comdat_group to NULL_TREE.
12850 (verify_symtab): Fix diagnostic.
12851
12852 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
12853
12854 PR target/61662
12855 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
12856
12857 2014-07-16 Dodji Seketeli <dodji@redhat.com>
12858
12859 Support location tracking for built-in macro tokens
12860 * input.h (is_location_from_builtin_token): New function declaration.
12861 * input.c (is_location_from_builtin_token): New function definition.
12862 * toplev.c (general_init): Tell libcpp what the pre-defined
12863 spelling location for built-in tokens is.
12864
12865 2014-07-16 Jakub Jelinek <jakub@redhat.com>
12866
12867 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
12868 on the FUNCTION_DECL.
12869
12870 2014-07-16 Richard Biener <rguenther@suse.de>
12871
12872 PR other/61782
12873 * doc/extend.texi (always_inline): Clarify.
12874
12875 2014-07-15 Eric Christopher <echristo@gmail.com>
12876
12877 * doc/invoke.texi (Link Options): Document -z option.
12878
12879 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
12880
12881 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
12882 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
12883
12884 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
12885
12886 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
12887
12888 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
12889
12890 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
12891 varpool_assemble_decl.
12892 * varpool.c (varpool_assemble_decl): Assert that node->definition is
12893 true.
12894
12895 2014-07-15 Michael Matz <matz@suse.de>
12896
12897 PR rtl-optimization/61772
12898 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
12899
12900 2014-07-15 Richard Biener <rguenther@suse.de>
12901
12902 * opts.c (default_options_table): Disable bit-ccp at -Og.
12903
12904 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
12905
12906 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
12907
12908 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
12909
12910 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
12911 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
12912 call langhook for unknown declaration.
12913 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
12914 * tree.h (DECL_ARGUMENTS): Update.
12915 * print-tree.c (print_node): Update.
12916 * tree-core.h (tree_decl_non_common): Remove arguments.
12917 (tree_function_decl): Add arguments.
12918
12919 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
12920
12921 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
12922
12923 2014-07-14 Richard Biener <rguenther@suse.de>
12924
12925 PR tree-optimization/61779
12926 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
12927 simplifying a condition.
12928
12929 2014-07-14 Richard Biener <rguenther@suse.de>
12930
12931 * builtins.c (c_strlen): Make only_value == 2 really only
12932 affect warning generation.
12933
12934 2014-07-14 Richard Biener <rguenther@suse.de>
12935
12936 PR tree-optimization/61757
12937 PR tree-optimization/61783
12938 PR tree-optimization/61787
12939 * tree-ssa-dom.c (record_equality): Revert canonicalization
12940 change and add comment.
12941 (propagate_rhs_into_lhs): Revert previous fix, removing
12942 loop depth restriction again.
12943
12944 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12945
12946 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
12947 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12948 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12949 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
12950 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12951 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12952 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
12953
12954 2014-07-14 Richard Biener <rguenther@suse.de>
12955
12956 * cgraph.h (decl_in_symtab_p): Make inline.
12957
12958 2014-07-14 Jakub Jelinek <jakub@redhat.com>
12959
12960 PR middle-end/61294
12961 * doc/invoke.texi (-Wmemset-transposed-args): Document.
12962
12963 PR target/61656
12964 * config/i386/i386.c (classify_argument): Don't merge classes above
12965 number of words.
12966
12967 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
12968
12969 * cgraph.h (symtab_node): Add nonzero_address.
12970 (decl_in_symtab_p): Break out from ...
12971 (symtab_get_node): ... here.
12972 * fold-const.c: Include cgraph.h
12973 (tree_single_nonzero_warnv_p): Use symtab to determine
12974 if symbol is non-zero.
12975 * symtab.c (symtab_node::nonzero_address): New method.
12976
12977 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
12978
12979 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
12980 forgotten in previous commit.
12981
12982 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
12983
12984 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
12985 on builtin types.
12986 * ipa-devirt.c: Include stor-layout.h and intl.h
12987 (odr_subtypes_equivalent_p): New function.
12988 (warn_odr): New function.
12989 (warn_type_mismatch): New function.
12990 (odr_types_equivalent_p): New function.
12991 (add_type_duplicate): Use it.
12992 * common.opt (Wodr): New flag.
12993 * doc/invoke.texi (Wodr): Document new warning.
12994
12995 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
12996
12997 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
12998 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
12999 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
13000 (varpool_get_constructor): Push CTORS_IN timevar.
13001 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
13002
13003 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
13004
13005 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
13006 Remove VOID_FTYPE_PUSHORT.
13007 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
13008 Change code to USHORT_FTYPE_VOID.
13009 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
13010 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
13011 (ix86_atomic_assign_expand_fenv): Update for
13012 __builtin_ia32_fnstsw changes.
13013 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
13014 (fnstsw): Change operand 0 to nonimmediate operand.
13015
13016 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13017
13018 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
13019 (varpool_get_constructor): New function.
13020 (varpool_ctor_useable_for_folding_p): Break out from ...
13021 (ctor_for_folding): ... here; use varpool_get_constructor.
13022 (varpool_assemble_decl): Likewise.
13023 * lto-streamer.h (struct output_block): Turn cgraph_node
13024 to symbol filed.
13025 (lto_input_variable_constructor): Declare.
13026 * ipa-visibility.c (function_and_variable_visibility): Use
13027 varpool_get_constructor.
13028 * cgraph.h (varpool_get_constructor): Declare.
13029 (varpool_ctor_useable_for_folding_p): New function.
13030 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
13031 parameter; return error_mark_node for non-trivial constructors.
13032 (lto_write_tree_1, DFS_write_tree): Update use of
13033 get_symbol_initial_value.
13034 (output_function): Update initialization of symbol.
13035 (output_constructor): New function.
13036 (copy_function): Rename to ..
13037 (copy_function_or_variable): ... this one; handle vars too.
13038 (lto_output): Output variable sections.
13039 * lto-streamer-in.c (input_constructor): New function.
13040 (lto_read_body): Rename from ...
13041 (lto_read_body_or_constructor): ... this one; handle vars too.
13042 (lto_input_variable_constructor): New function.
13043 * ipa-prop.c (ipa_prop_write_jump_functions,
13044 ipa_prop_write_all_agg_replacement): Update.
13045 * lto-cgraph.c (compute_ltrans_boundary): Use it.
13046 (output_cgraph_opt_summary): Set symbol to NULL.
13047
13048 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13049
13050 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
13051 non-polymorphic types.
13052 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
13053 * ipa-devirt.c (types_same_for_odr): Do not explode when one
13054 of types is not polymorphic.
13055
13056 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
13057
13058 * lra-constraints.c (remove_inheritance_pseudos): Process
13059 destination pseudo too.
13060
13061 2014-07-11 Rong Xu <xur@google.com>
13062
13063 * gcov-tool.c (gcov_output_files): Fix build error introduced in
13064 commit r212448.
13065
13066 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13067
13068 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
13069 * config/avr/avr-devices.c (AVR_MCU): Same.
13070 (avr_mcu_types): add text start value to end of device list.
13071 * config/avr/avr-mcus.def: Add text section start for all devices.
13072 (ata5782): Add new avr5 device.
13073 (ata5831): Same.
13074 * config/avr/avr-tables.opt: Regenerate.
13075 * config/avr/avr.h: Add declaration for text section start handler.
13076 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
13077 SPEC functions.
13078 (LINK_SPEC): Include text section start handler to linker spec.
13079 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
13080 pass -Ttext option to linker if the text section start for the device
13081 is not zero.
13082 * config/avr/t-multilib: Regenerate.
13083 * doc/avr-mmcu.texi: Regenerate.
13084
13085 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
13086
13087 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
13088 * config/rs6000/aix52.h (LINK_SPEC): Same.
13089 * config/rs6000/aix53.h (LINK_SPEC): Same.
13090 * config/rs6000/aix61.h (LINK_SPEC): Same.
13091 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
13092
13093 2014-07-11 Roman Gareev <gareevroman@gmail.com>
13094
13095 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
13096 (graphite_verify): New function.
13097 (ivs_params_clear): New function.
13098 (gcc_expression_from_isl_ast_expr_id): New function.
13099 (gcc_expression_from_isl_expr_int): New function.
13100 (binary_op_to_tree): New function.
13101 (ternary_op_to_tree): New function.
13102 (unary_op_to_tree): New function.
13103 (nary_op_to_tree): New function.
13104 (gcc_expression_from_isl_expr_op): New function.
13105 (gcc_expression_from_isl_expression): New function.
13106 (graphite_create_new_loop): New function.
13107 (translate_isl_ast_for_loop): New function.
13108 (get_upper_bound): New function.
13109 (graphite_create_new_loop_guard): New function.
13110 (translate_isl_ast_node_for): New function.
13111 (translate_isl_ast): New function.
13112 (add_parameters_to_ivs_params): New function.
13113 (scop_to_isl_ast): New parameter ip.
13114 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
13115
13116 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13117
13118 * config/xtensa/predicates.md (call expander): Update for
13119 DECL_SECTION_NAME being string.
13120
13121 2014-07-11 Richard Biener <rguenther@suse.de>
13122
13123 PR middle-end/61473
13124 * builtins.c (fold_builtin_memory_op): Inline memory moves that
13125 can be implemented with a single load followed by a single store.
13126 (c_strlen): Only warn when only_value is not 2.
13127
13128 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
13129
13130 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
13131
13132 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
13133
13134 PR target/61561
13135 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
13136 (*movhi_bytes): Likewise.
13137 (*arm_movqi_insn): Likewise.
13138
13139 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
13140
13141 PR target/56858
13142 * config/alpha/alpha.c: Include tree-pass.h, context.h
13143 and pass_manager.h.
13144 (pass_data_handle_trap_shadows): New pass.
13145 (pass_handle_trap_shadows::gate): New pass gate function.
13146 (make_pass_handle_trap_shadows): New function.
13147 (rest_of_handle_trap_shadows): Ditto.
13148
13149 (alpha_align_insns_1): Rename from alpha_align_insns.
13150 (pass_data_align_insns): New pass.
13151 (pass_align_insns::gate): New pass gate function.
13152 (make_pass_aling_insns): New function.
13153 (rest_of_align_insns): Ditto.
13154 (alpha_align_insns): Ditto.
13155
13156 (alpha_option_override): Declare handle_trap_shadows info
13157 and align_insns_info. Register handle_trap_shadows and align_insns
13158 passes here.
13159 (alpha_reorg): Do not call alpha_trap_shadows and
13160 alpha_align_insn from here.
13161
13162 (alpha_pad_function_end): Do not skip BARRIERs.
13163
13164 2014-07-10 Rong Xu <xur@google.com>
13165
13166 Add gcov-tool: an offline gcda profile processing tool support.
13167 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
13168 (gcov_is_error): Ditto.
13169 (gcov_read_string): Ditto.
13170 (gcov_read_sync): Ditto.
13171 * gcov-io.h: Move counter defines to gcov-counter.def.
13172 * gcov-dump.c (tag_counters): Use gcov-counter.def.
13173 * coverage.c: Ditto.
13174 * gcov-tool.c: Offline gcda profile processing tool.
13175 (unlink_gcda_file): Remove one gcda file.
13176 (unlink_profile_dir): Remove gcda files from the profile path.
13177 (gcov_output_files): Output gcda files to an output dir.
13178 (profile_merge): Merge two profiles in directory.
13179 (print_merge_usage_message): Print merge usage.
13180 (merge_usage): Print merge usage and exit.
13181 (do_merge): Driver for profile merge sub-command.
13182 (profile_rewrite): Rewrite profile.
13183 (print_rewrite_usage_message): Print rewrite usage.
13184 (rewrite_usage): Print rewrite usage and exit.
13185 (do_rewrite): Driver for profile rewrite sub-command.
13186 (print_usage): Print gcov-info usage and exit.
13187 (print_version): Print gcov-info version.
13188 (process_args): Process arguments.
13189 (main): Main routine for gcov-tool.
13190 * Makefile.in: Build and install gcov-tool.
13191 * gcov-counter.def: New file split from gcov-io.h.
13192 * doc/gcc.texi: Include gcov-tool.texi.
13193 * doc/gcov-tool.texi: Document for gcov-tool.
13194
13195 2014-07-10 Richard Biener <rguenther@suse.de>
13196
13197 PR tree-optimization/61757
13198 * tree-ssa-dom.c (loop_depth_of_name): Restore.
13199 (propagate_rhs_into_lhs): Revert part of last change.
13200
13201 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
13202
13203 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
13204 FUNCTION_DECLs.
13205
13206 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
13207
13208 PR middle-end/53590
13209 * function.c (allocate_struct_function): Revert r188667 change.
13210
13211 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
13212
13213 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
13214
13215 * doc/install.texi: Remove links to defunct package providers for
13216 Solaris.
13217
13218 2014-07-09 Tom de Vries <tom@codesourcery.com>
13219
13220 * final.c (get_call_fndecl): Declare.
13221 (self_recursive_call_p): New function.
13222 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
13223
13224 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13225
13226 * ipa-devirt.c (record_node): Walk through aliases.
13227
13228 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13229
13230 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
13231
13232 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13233
13234 Revert:
13235 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
13236
13237 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13238
13239 * ipa-visibility.c (function_and_variable_visibility): Remove
13240 temporary hack disabling local aliases on AIX.
13241
13242 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13243
13244 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
13245 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
13246
13247 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13248
13249 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
13250 * rs6000/rs6000.c: Inline output of .set instruction.
13251 (declare_alias_data): New struct.
13252 (rs6000_declare_alias): New function.
13253 (rs6000_xcoff_declare_function_name): Use it.
13254 (rs6000_xcoff_declare_object_name): New function.
13255 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
13256 (ASM_OUTPUT_DEF): Turn to empty definition.
13257
13258 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13259
13260 PR bootstrap/61679
13261 * hash-table.h: use hash_table::value_type instead of
13262 Descriptor::value_type in the return types of several methods.
13263
13264 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13265
13266 * tree-pass.h (pass_data): Remove has_execute member.
13267 * passes.c (execute_one_pass): Don't check pass->has_execute.
13268 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
13269 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
13270 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
13271 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
13272 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
13273 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
13274 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
13275 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
13276 gimple-low.c, gimple-ssa-isolate-paths.c,
13277 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
13278 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
13279 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
13280 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
13281 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
13282 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
13283 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
13284 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
13285 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
13286 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
13287 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
13288 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
13289 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13290 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13291 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
13292 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
13293 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
13294 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13295 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13296 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
13297 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
13298 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
13299 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
13300 web.c: Remove initializer for pass_data::has_execute.
13301
13302 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13303
13304 * graphite-htab.h: Use hash_map instead of hash_table.
13305 * graphite-clast-to-gimple.c: Adjust.
13306 * passes.c: Use hash_map instead of hash_table.
13307 * sese.c: Likewise.
13308 * sese.h: Remove now unused code.
13309
13310 2014-07-08 Sriraman Tallam <tmsriram@google.com>
13311
13312 PR target/61599
13313 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
13314 than zero.
13315
13316 2014-07-08 Jakub Jelinek <jakub@redhat.com>
13317
13318 PR rtl-optimization/61673
13319 * combine.c (simplify_comparison): Test just mode's sign bit
13320 in tmode rather than the sign bit and any bits above it.
13321
13322 2014-07-08 Roman Gareev <gareevroman@gmail.com>
13323
13324 * graphite-isl-ast-to-gimple.c (generate_isl_context):
13325 Add __isl_give to the declaration.
13326 (generate_isl_schedule): Likewise.
13327 (scop_to_isl_ast): Likewise.
13328
13329 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13330
13331 * config/arm/arm.c (cortexa5_extra_costs): New table.
13332 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
13333
13334 2014-07-08 Jakub Jelinek <jakub@redhat.com>
13335
13336 PR tree-optimization/61725
13337 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
13338 range, use range_includes_zerop_p instead of integer_zerop on
13339 vr0->min, only use log2 of max if min is not negative.
13340
13341 2014-07-08 Richard Biener <rguenther@suse.de>
13342
13343 * tree-ssa-dom.h (loop_depth_of_name): Remove.
13344 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
13345 restriction on loop depth difference.
13346 (record_equality): Likewise.
13347 (propagate_rhs_into_lhs): Likewise. Simplify condition.
13348 (loop_depth_of_name): Remove.
13349 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
13350 restriction on loop depth difference.
13351 (init_copy_prop): Likewise.
13352
13353 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13354
13355 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
13356 parameter.
13357 (walk_aliased_vdefs): Likewise.
13358 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
13359 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
13360 (detect_type_change_from_memory_writes): Check if entry was reached.
13361
13362 2014-07-08 Richard Biener <rguenther@suse.de>
13363
13364 PR tree-optimization/61681
13365 * tree-ssa-structalias.c (find_what_var_points_to): Expand
13366 NONLOCAL inside ESCAPED.
13367
13368 2014-07-08 Richard Biener <rguenther@suse.de>
13369
13370 PR tree-optimization/61680
13371 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13372 Handle properly all read-write dependences with group accesses.
13373
13374 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
13375
13376 PR tree-optimization/61576
13377 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
13378 block containing reduction statement is predecessor of phi basi block.
13379
13380 2014-07-08 Marek Polacek <polacek@redhat.com>
13381
13382 PR c/60226
13383 * fold-const.c (round_up_loc): Change the parameter type.
13384 Remove assert.
13385 * fold-const.h (round_up_loc): Adjust declaration.
13386 * stor-layout.c (finalize_record_size): Check for too large types.
13387
13388 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
13389
13390 * symtab.c: Include calls.h.
13391 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
13392
13393 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
13394
13395 * config/rs6000/rs6000.c (output_vec_const_move): Handle
13396 little-endian code generation.
13397 * config/rs6000/spe.md (spe_evmergehi): Rename to...
13398 (vec_perm00_v2si): ... this. Handle little-endian code generation.
13399 (spe_evmergehilo): Rename to...
13400 (vec_perm01_v2si): ... this. Handle little-endian code generation.
13401 (spe_evmergelo): Rename to...
13402 (vec_perm11_v2si): ... this. Handle little-endian code generation.
13403 (spe_evmergelohi): Rename to...
13404 (vec_perm10_v2si): ... this. Handle little-endian code generation.
13405 (spe_evmergehi, spe_evmergehilo): New expanders.
13406 (spe_evmergelo, spe_evmergelohi): Likewise.
13407 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
13408 (*frob_tf_ti): Likewise.
13409 (*frob_<mode>_di_2): Likewise.
13410 (*frob_tf_di_8_2): Likewise.
13411 (*frob_di_<mode>): Likewise.
13412 (*frob_ti_tf): Likewise.
13413 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
13414 (*frob_ti_<mode>_8_2): Likewise.
13415 (*frob_ti_tf_2): Likewise.
13416 (mov_si<mode>_e500_subreg0): Rename to...
13417 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
13418 endianness only.
13419 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
13420 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
13421 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
13422 the big endianness only.
13423 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
13424 (*mov_si<mode>_e500_subreg0_2): Rename to...
13425 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
13426 big big endianness only.
13427 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
13428 (*mov_si<mode>_e500_subreg4): Rename to...
13429 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
13430 endianness only.
13431 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
13432 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
13433 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
13434 the big endianness only.
13435 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
13436 pattern.
13437 (*mov_si<mode>_e500_subreg4_2): Rename to...
13438 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
13439 endianness only.
13440 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
13441 (*mov_sitf_e500_subreg8): Rename to...
13442 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
13443 endianness only.
13444 (*mov_sitf_e500_subreg8_le): New instruction pattern.
13445 (*mov_sitf_e500_subreg8_2): Rename to...
13446 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
13447 endianness only.
13448 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
13449 (*mov_sitf_e500_subreg12): Rename to...
13450 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
13451 endianness only.
13452 (*mov_sitf_e500_subreg12_le): New instruction pattern.
13453 (*mov_sitf_e500_subreg12_2): Rename to...
13454 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
13455 endianness only.
13456 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
13457
13458 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
13459
13460 * asan.c (instrument_strlen_call): Do not instrument first byte
13461 in strlen if already instrumented.
13462
13463 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13464
13465 * config/arm/arm.opt (mwords-little-endian): Delete.
13466 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
13467 of TARGET_LITTLE_WORDS.
13468 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
13469 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
13470 warning.
13471 * doc/invoke.texi: Remove references to -mwords-little-endian.
13472
13473 2014-07-07 Jakub Jelinek <jakub@redhat.com>
13474
13475 * expmed.c (struct init_expmed_rtl): Change all fields but
13476 pow2 and cint from struct rtx_def to rtx.
13477 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
13478 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
13479 at the end again.
13480
13481 2014-07-06 Marek Polacek <polacek@redhat.com>
13482
13483 PR c/6940
13484 * doc/invoke.texi: Document -Wsizeof-array-argument.
13485
13486 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
13487
13488 * wide-int.h (wide_int_storage): Change declaration from struct
13489 to class.
13490
13491 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
13492
13493 * cgraph.c (cgraph_create_indirect_edge): Update call of
13494 get_polymorphic_call_info.
13495 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
13496 (possible_polymorphic_call_targets): Add parameter call.
13497 (decl_maybe_in_construction_p): New predicate.
13498 (get_polymorphic_call_info): Add parameter call;
13499 use decl_maybe_in_construction_p.
13500 * gimple-fold.c (fold_gimple_assign): Update use of
13501 possible_polymorphic_call_targets.
13502 (gimple_fold_call): Likewise.
13503 * ipa-prop.c: Inlcude calls.h
13504 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
13505 (param_type_may_change_p): New predicate.
13506 (detect_type_change_from_memory_writes): Break out from ...
13507 (detect_type_change): ... this one; use param_type_may_change_p.
13508 (detect_type_change_ssa): Use param_type_may_change_p.
13509 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
13510
13511 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
13512
13513 PR target/49423
13514 * config/arm/arm-protos.h (arm_legitimate_address_p,
13515 arm_is_constant_pool_ref): Add prototypes.
13516 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
13517 (arm_is_constant_pool_ref) New function.
13518 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
13519 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
13520 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
13521 operand. Remove pool_range and neg_pool_range attributes.
13522 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
13523 pool_range and neg_pool_range attributes.
13524 * config/arm/constraints.md (Uh): New constraint.
13525 (Uq): Don't allow constant pool references.
13526
13527 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
13528
13529 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
13530 (move_lo_quad_internal_be_<mode>): Likewise.
13531 (move_lo_quad_<mode>): Convert to define_expand.
13532 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
13533 (aarch64_simd_move_hi_quad_be_<mode>): New.
13534 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
13535 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
13536 (aarch64_combinez_be<mode>): New.
13537 (aarch64_combine<mode>): Convert to define_expand.
13538 (aarch64_combine_internal<mode>): New.
13539 (aarch64_simd_combine<mode>): Remove bogus RTL description.
13540
13541 2014-07-04 Tom de Vries <tom@codesourcery.com>
13542
13543 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
13544 combination of earlyclobber and read/write modifiers.
13545
13546 2014-07-04 Tom de Vries <tom@codesourcery.com>
13547
13548 * config/aarch64/aarch64-simd.md
13549 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
13550
13551 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
13552
13553 PR target/61714
13554 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
13555
13556 2014-07-04 Jakub Jelinek <jakub@redhat.com>
13557
13558 PR middle-end/61654
13559 * cgraphunit.c (expand_thunk): Call free_dominance_info.
13560
13561 PR tree-optimization/61684
13562 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
13563 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
13564
13565 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13566 Kito Cheng <kito@0xlab.org>
13567 Monk Chiang <sh.chiang04@gmail.com>
13568
13569 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
13570 (nds32_symbol_load_store_p): Move to ...
13571 (nds32_fp_as_gp_check_available): Move to ...
13572 * config/nds32/nds32-fp-as-gp.c: ... here.
13573 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
13574 extern declaration.
13575
13576 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13577 Kito Cheng <kito@0xlab.org>
13578 Monk Chiang <sh.chiang04@gmail.com>
13579
13580 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
13581 (nds32_expand_store_multiple): Move to ...
13582 (nds32_expand_movmemqi): Move to ...
13583 * config/nds32/nds32-memory-manipulation.c: ... here.
13584
13585 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13586 Kito Cheng <kito@0xlab.org>
13587 Monk Chiang <sh.chiang04@gmail.com>
13588
13589 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
13590 (nds32_output_casesi_pc_relative): Move to ...
13591 (nds32_output_casesi): Move to ...
13592 (nds32_mem_format): Move to ...
13593 (nds32_output_16bit_store): Move to ...
13594 (nds32_output_16bit_load): Move to ...
13595 (nds32_output_32bit_store): Move to ...
13596 (nds32_output_32bit_load): Move to ...
13597 (nds32_output_32bit_load_s): Move to ...
13598 (nds32_output_stack_push): Move to ...
13599 (nds32_output_stack_pop): Move to ...
13600 * config/nds32/nds32-md-auxiliary.c: ... here.
13601
13602 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13603 Ling-Hua Tseng <uranus@tinlans.org>
13604
13605 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
13606 the purpose of this file.
13607
13608 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13609 Kito Cheng <kito@0xlab.org>
13610 Monk Chiang <sh.chiang04@gmail.com>
13611
13612 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
13613 (nds32_address_cost): Move implementation to ...
13614 * config/nds32/nds32-cost.c: ... here.
13615 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
13616 (nds32_address_cost_impl): Declare.
13617
13618 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13619 Kito Cheng <kito@0xlab.org>
13620 Monk Chiang <sh.chiang04@gmail.com>
13621
13622 * config/nds32/nds32.c
13623 (nds32_consecutive_registers_load_store_p): Move to ...
13624 (nds32_valid_multiple_load_store): Move to ...
13625 (nds32_valid_stack_push_pop): Move to ...
13626 (nds32_can_use_bclr_p): Move to ...
13627 (nds32_can_use_bset_p): Move to ...
13628 (nds32_can_use_btgl_p): Move to ...
13629 (nds32_can_use_bitci_p): Move to ...
13630 * config/nds32/nds32-predicates.c: ... here.
13631
13632 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13633 Kito Cheng <kito@0xlab.org>
13634 Monk Chiang <sh.chiang04@gmail.com>
13635
13636 * config/nds32/nds32.c
13637 (nds32_expand_builtin_null_ftype_reg): Move to ...
13638 (nds32_expand_builtin_reg_ftype_imm): Move to ...
13639 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
13640 (nds32_init_builtins): Move implementation to ...
13641 (nds32_expand_builtin): Move implementation to ...
13642 * config/nds32/nds32-intrinsic.c: ... here.
13643 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
13644 (nds32_expand_builtin_impl): Declare.
13645
13646 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13647 Kito Cheng <kito@0xlab.org>
13648 Monk Chiang <sh.chiang04@gmail.com>
13649
13650 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
13651 (nds32_emit_section_tail_template): Move to ...
13652 (nds32_emit_isr_jmptbl_section): Move to ...
13653 (nds32_emit_isr_vector_section): Move to ...
13654 (nds32_emit_isr_reset_conten): Move to ...
13655 (nds32_check_isr_attrs_conflict): Move to ...
13656 (nds32_construct_isr_vectors_information): Move to ...
13657 (nds32_asm_file_start): Move implementation to ...
13658 (nds32_asm_file_end): Move implementation to ...
13659 * config/nds32/nds32-isr.c: ... here.
13660 * config/nds32/nds32-protos.h
13661 (nds32_check_isr_attrs_conflict): Declare.
13662 (nds32_construct_isr_vectors_information): Declare.
13663 (nds32_asm_file_start_for_isr): Declare.
13664 (nds32_asm_file_end_for_isr): Declare.
13665
13666 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13667 Kito Cheng <kito@0xlab.org>
13668 Monk Chiang <sh.chiang04@gmail.com>
13669
13670 * config.gcc (nds32*): Add new modules to extra_objs.
13671 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
13672 (nds32be-*-*): Likewise.
13673 * config/nds32/nds32-cost.c: New file.
13674 * config/nds32/nds32-fp-as-gp.c: New file.
13675 * config/nds32/nds32-intrinsic.c: New file.
13676 * config/nds32/nds32-isr.c: New file.
13677 * config/nds32/nds32-md-auxiliary.c: New file.
13678 * config/nds32/nds32-memory-manipulation.c: New file.
13679 * config/nds32/nds32-pipelines-auxiliary.c: New file.
13680 * config/nds32/nds32-predicates.c: New file.
13681 * config/nds32/t-nds32: New file.
13682
13683 2014-07-03 Jakub Jelinek <jakub@redhat.com>
13684
13685 PR tree-optimization/61682
13686 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
13687 using cases and when one of the operands is equal to 1.
13688
13689 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
13690
13691 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
13692 ashr<mode>3): Correct mode of operands[2].
13693 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
13694 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
13695 Correct mode of operands[2]. Fix split condition.
13696
13697 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
13698
13699 * arm.md (arch): Add armv6_or_vfpv3.
13700 (arch_enabled): Add test for the above.
13701 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
13702 on VFP9.
13703 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
13704
13705 2014-07-03 Jakub Jelinek <jakub@redhat.com>
13706
13707 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
13708 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
13709 HWI 1 and negate the unsigned value.
13710 * expmed.c (expand_sdiv_pow2): For modes wider than word always
13711 use AND instead of shift.
13712 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
13713
13714 2014-07-03 Marek Polacek <polacek@redhat.com>
13715
13716 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
13717 (-fsanitize=float-divide-by-zero): Move to the table with
13718 -fsanitize=undefined suboptions.
13719 (-fsanitize=float-cast-overflow): Likewise.
13720
13721 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
13722
13723 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
13724 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
13725 endianness.
13726
13727 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13728
13729 * loop-invariant.c (struct invariant): Add a new member: eqno;
13730 (find_identical_invariants): Update eqno;
13731 (create_new_invariant): Init eqno;
13732 (get_inv_cost): Compute comp_cost with eqno;
13733
13734 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
13735
13736 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
13737 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
13738 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
13739 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
13740 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
13741
13742 2014-07-02 Christian Bruel <christian.bruel@st.com>
13743
13744 PR target/29349
13745 PR target/53513
13746 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
13747 (make_preds_opaque): Delete.
13748 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
13749 (commit_mode_sets): New function.
13750 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
13751 Process all modes at once.
13752 * basic-block.h (pre_edge_lcm_avs): Declare.
13753 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
13754 Call clear_aux_for_edges. Fix comments.
13755 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
13756 (pre_edge_rev_lcm): Idem.
13757 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
13758 parameter.
13759 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
13760 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
13761 Idem.
13762 * config/i386/i386.c (x96_emit_mode_set): Idem.
13763 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
13764 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
13765 (fpscr_toggle) Disallow from delay slot.
13766 * target.def (emit_mode_set): Add prev_mode parameter.
13767 * doc/tm.texi: Regenerate.
13768
13769 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13770
13771 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
13772 variable i.
13773
13774 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
13775
13776 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
13777 vtable_pointer_value_to_vtable): Constify.
13778 (contains_polymorphic_type_p): Declare.
13779 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
13780 vtable_pointer_value_to_vtable): Constify.
13781 (contains_polymorphic_type_p): New predicate.
13782 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
13783 polymorphic types.
13784 (ipa_set_ancestor_jf): Likewise.
13785 (detect_type_change): Return false in easy cases.
13786 (compute_complex_assign_jump_func): Require type to contain
13787 polymorphic type.
13788 (compute_known_type_jump_func): Likewise.
13789
13790 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
13791
13792 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
13793 Remove.
13794 (type_in_anonymous_namespace_p): Constify argument.
13795 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
13796 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
13797 (main_odr_variant): New function.
13798 (hash_type_name): Make static; update assert; do not ICE on
13799 non-records.
13800 (types_same_for_odr): Bring here from tree.c; simplify and remove
13801 old structural comparing code that doesn't work for templates.
13802 (odr_hasher::equal): Update assert.
13803 (add_type_duplicate): Return true when bases should be computed;
13804 replace incomplete loader by complete; do not output duplicated
13805 warnings; do not ICE on non-records; set odr_violated flag.
13806 (get_odr_type): Be ready to replace incomplete type by complete
13807 one; work on ODR variants instead of main variants; reorder item
13808 in array so bases have still smaller indexes.
13809 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
13810 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
13811
13812 2014-07-01 Cary Coutant <ccoutant@google.com>
13813
13814 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
13815 lookup.
13816 (resolve_addr_in_expr): When replacing the rtx in a location list
13817 entry, get a new address table entry.
13818 (dwarf2out_finish): Call index_location_lists even if there are no
13819 addr_index_table entries yet.
13820
13821 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
13822
13823 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
13824 change for not being obvious.
13825
13826 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
13827
13828 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
13829 unused argument.
13830
13831 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13832
13833 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
13834 (vcagt_f64): Likewise.
13835 (vcale_f64): Likewise.
13836 (vcaled_f64): Likewise.
13837 (vcales_f32): Likewise.
13838 (vcalt_f64): Likewise.
13839 (vcaltd_f64): Likewise.
13840 (vcalts_f32): Likewise.
13841
13842 2014-07-01 Marek Polacek <polacek@redhat.com>
13843
13844 * doc/invoke.texi: Document -Wint-conversion.
13845
13846 2014-07-01 Marek Polacek <polacek@redhat.com>
13847
13848 PR c/58286
13849 * doc/invoke.texi: Document -Wincompatible-pointer-types.
13850
13851 2014-07-01 Martin Liska <mliska@suse.cz>
13852
13853 IPA REF alias refactoring
13854 * cgraph.h (iterate_direct_aliases): New function.
13855 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
13856 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
13857 FOR_EACH_ALIAS added.
13858 (cgraph_for_node_and_aliases): Likewise.
13859 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
13860 * ipa-inline.c (reset_edge_caches): Likewise.
13861 (update_caller_keys): Likewise.
13862 * trans-mem.c (ipa_tm_execute): Likewise.
13863 *varpool.c (varpool_analyze_node): Likewise.
13864 (varpool_for_node_and_aliases): Likewise.
13865 * ipa-ref.h (first_alias): New function.
13866 (last_alias): Likewise.
13867 (has_aliases_p): Likewise.
13868 * ipa-ref.c (ipa_ref::remove_reference): Removal function
13869 is sensitive to IPA_REF_ALIASes.
13870 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
13871 are put at the beginning of the list.
13872 (symtab_node::iterate_direct_aliases): New function.
13873
13874 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13875
13876 Revert:
13877 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
13878 type is complete.
13879 (write_ts_type_common_tree_pointers): Do not stream fields not set
13880 for incomplete types; do not stream duplicated fields for variants;
13881 sanity check that variant and type match.
13882 (write_ts_type_non_common_tree_pointers): Likewise.
13883 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
13884 TYPE_SIZE whether type is complete.
13885 (lto_input_ts_type_common_tree_pointers): Do same changes as in
13886 write_ts_type_common_tree_pointers
13887 (lto_input_ts_type_non_common_tree_pointers): Likewise.
13888
13889 2014-06-30 Joseph Myers <joseph@codesourcery.com>
13890
13891 * var-tracking.c (add_stores): Return instead of asserting if old
13892 and new values for conditional store are the same.
13893
13894 2014-06-30 Richard Henderson <rth@redhat.com>
13895
13896 PR rtl-opt/61608
13897 PR target/39284
13898 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
13899 the cfg if there were any changes.
13900 * passes.def: Revert move of peephole2 after reorder_blocks;
13901 move duplicate_computed_gotos before peephole2.
13902
13903 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
13904
13905 * except.c (emit_note_eh_region_end): New helper function.
13906 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
13907 emit EH_REGION_END note.
13908 * jump.c (cleanup_barriers): Do not split a call and its
13909 corresponding CALL_ARG_LOCATION note.
13910
13911 2014-06-30 Jeff Law <law@redhat.com>
13912
13913 PR tree-optimization/61607
13914 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
13915 deeper into the SSA_NAME_VALUE chain.
13916
13917 2014-06-30 Marek Polacek <polacek@redhat.com>
13918
13919 * convert.c (convert_to_integer): Don't instrument conversions if the
13920 function has no_sanitize_undefined attribute.
13921 * ubsan.c: Don't run the ubsan pass if the function has
13922 no_sanitize_undefined attribute.
13923
13924 2014-06-30 Jakub Jelinek <jakub@redhat.com>
13925
13926 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
13927 -fsanitize=undefined suboptions.
13928
13929 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
13930
13931 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
13932 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
13933 against bigendian and adjust indices.
13934
13935 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
13936
13937 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
13938
13939 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
13940
13941 PR target/61633
13942 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
13943 Add alternative; make early clobber. Adjust both split patterns
13944 to use operand 0 as the working register.
13945
13946 2014-06-30 Jakub Jelinek <jakub@redhat.com>
13947
13948 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
13949 as ira_object_id_map might be NULL, or 1.
13950
13951 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13952
13953 * loop-invariant.c (get_inv_cost): Handle register class.
13954 (gain_for_invariant): Check the register pressure of the inv
13955 and its overlapped register class, other than all.
13956
13957 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
13958
13959 * doc/invoke.texi (Optimize Options): Fix descriptions of
13960 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
13961
13962 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
13963
13964 * doc/extend.texi (Function Attributes): Update 'naked' attribute
13965 documentation.
13966
13967 2014-06-29 Tobias Grosser <tobias@grosser.es>
13968
13969 PR bootstrap/61650
13970 * graphite-isl-ast-to-gimple.c: Add missing guards.
13971
13972 2014-06-29 Roman Gareev <gareevroman@gmail.com>
13973
13974 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
13975 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
13976 * flag-types.h: Add new enum fgraphite_generator.
13977 * graphite-isl-ast-to-gimple.c: New.
13978 * graphite-isl-ast-to-gimple.h: New.
13979 * graphite.c (graphite_transform_loops): Add choice of Graphite
13980 code generator, which depends on flag_graphite_code_gen.
13981
13982 2014-06-29 Roman Gareev <gareevroman@gmail.com>
13983
13984 * graphite-dependences.c (subtract_commutative_associative_deps):
13985 Add NULL checking of the following variables: must_raw_no_source,
13986 may_raw_no_source, must_war_no_source, may_war_no_source,
13987 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
13988 must_war, may_war, must_waw, may_waw.
13989
13990 2014-06-29 Roman Gareev <gareevroman@gmail.com>
13991
13992 * graphite-clast-to-gimple.c: gloog is renamed to
13993 graphite_regenerate_ast_cloog. gloog_error is renamed to
13994 graphite_regenerate_error.
13995 * graphite-clast-to-gimple.h: The definition of the struct
13996 bb_pbb_def is moved to graphite-htab.h.
13997 Add inclusion of the hash-table.h.
13998 * graphite-htab.h: The declaration of the function gloog is moved
13999 to graphite-clast-to-gimple.h and renamed to
14000 graphite_regenerate_ast_cloog.
14001 * graphite.c (graphite_transform_loops): gloog is renamed
14002 to graphite_regenerate_ast_cloog.
14003
14004 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14005
14006 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
14007 type is complete.
14008 (write_ts_type_common_tree_pointers): Do not stream fields not set
14009 for incomplete types; do not stream duplicated fields for variants;
14010 sanity check that variant and type match.
14011 (write_ts_type_non_common_tree_pointers): Likewise.
14012 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
14013 TYPE_SIZE whether type is complete.
14014 (lto_input_ts_type_common_tree_pointers): Do same changes as in
14015 write_ts_type_common_tree_pointers
14016 (lto_input_ts_type_non_common_tree_pointers): Likewise.
14017
14018 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14019
14020 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
14021
14022 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14023
14024 * tree-inline.c (remap_type_1): Do not duplicate fields
14025 that are shared in between type and its main variant.
14026
14027 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14028
14029 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
14030 of the type.
14031 (ipa_set_ancestor_jf) Likewise.
14032 (check_stmt_for_type_change): Check that we work on main variant.
14033 (detect_type_change): Look into main variant.
14034 (compute_known_type_jump_func): Check that main variant has BINFO.
14035
14036 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14037
14038 * ipa-devirt.c (set_type_binfo): New function.
14039 (add_type_duplicate): Use it.
14040 (get_odr_type): Sanity check that binfos points to main variants.
14041 (get_class_context): Be sure the context's outer_type is main variant.
14042 (contains_type_p): Walk main variant.
14043 (get_polymorphic_call_info_for_decl): Set outer_type to be
14044 main variant.
14045 (get_polymorphic_call_info): Likewise.
14046 (possible_polymorphic_call_targets): Sanity check that we operate
14047 on main variant.
14048
14049 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14050
14051 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
14052
14053 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14054
14055 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
14056 accidental change due to wide-int branch merge.
14057
14058 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14059
14060 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
14061 compressed debug support.
14062 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
14063 * configure: Regenerate.
14064 * config.in: Regenerate.
14065 * common.opt (compressed_debug_sections): New enum.
14066 (gz, gz=): New options.
14067 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
14068 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
14069 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
14070 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
14071 LINK_COMPRESS_DEBUG_SPEC.
14072 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
14073 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
14074 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
14075 (Debugging Options): Document -gz[=type].
14076
14077 2014-06-27 Martin Jambor <mjambor@suse.cz>
14078
14079 PR ipa/61160
14080 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
14081 args_to_skip, use those from node instead. Copy args_to_skip and
14082 combined_args_to_skip from node to the new thunk.
14083 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
14084 (cgraph_create_virtual_clone): Moved computation of
14085 combined_args_to_skip...
14086 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
14087
14088 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
14089
14090 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
14091 redundant diagnostic machinary.
14092
14093 2014-06-27 Richard Biener <rguenther@suse.de>
14094
14095 * tree-ssa-math-opts.c (bswap_replace): Fix
14096 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
14097
14098 2014-06-27 Martin Liska <mliska@suse.cz>
14099
14100 * gimple.h (gimple_location_safe): New function introduced.
14101 * cgraphunit.c (walk_polymorphic_call_targets): Usage
14102 of gimple_location_safe replaces gimple_location.
14103 (gimple_fold_call): Likewise.
14104 * ipa-devirt.c (ipa_devirt): Likewise.
14105 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
14106 * ipa.c (walk_polymorphic_call_targets): Likewise.
14107 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
14108
14109 2014-06-27 Jakub Jelinek <jakub@redhat.com>
14110
14111 PR tree-optimization/57233
14112 PR tree-optimization/61299
14113 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
14114 functions.
14115 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
14116 would be lowered to scalar shifts, check if corresponding
14117 shifts and vector BIT_IOR_EXPR are supported and don't lower
14118 or lower just to narrower vector type in that case.
14119 * expmed.c (expand_shift_1): Fix up handling of vector
14120 shifts and rotates.
14121
14122 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
14123
14124 PR target/61586
14125 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
14126
14127 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
14128
14129 * doc/invoke.texi (-fsemantic-interposition): Document.
14130 * common.opt (fsemantic-interposition): New flag.
14131 * varasm.c (decl_replaceable_p): Use it.
14132
14133 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14134
14135 PR target/61542
14136 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
14137 extraction other than index 3.
14138
14139 2014-06-26 Teresa Johnson <tejohnson@google.com>
14140
14141 * doc/invoke.texi: Fix typo.
14142 * dumpfile.c: Add support for documented -fdump-* options
14143 optimized/missed/note/optall.
14144
14145 2014-06-26 Martin Jambor <mjambor@suse.cz>
14146
14147 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
14148 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
14149 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
14150 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
14151 * opts.c (default_options_optimization): Set
14152 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
14153 * doc/invoke.texi (allow-load-data-races)
14154 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
14155 (allow-store-data-races): Document the new default.
14156
14157 2014-06-26 Martin Jambor <mjambor@suse.cz>
14158
14159 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
14160 renamed to ipa_impossible_devirt_target. Fix typo.
14161 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
14162 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
14163 ipa_impossible_devirt_target.
14164
14165 2014-06-26 Richard Biener <rguenther@suse.de>
14166
14167 PR tree-optimization/61607
14168 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
14169 explaining why we restrict copies on loop depth.
14170 * tree-ssa-dom.c (cprop_operand): Remove restriction on
14171 on loop depth.
14172 (record_equivalences_from_phis): Instead add it here.
14173
14174 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
14175
14176 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
14177 (LTO_WRAPPER_OBJS): New variable.
14178 (lto-wrapper$(exeext)): Use it.
14179 * collect2.c: Include "collect-utils.h".
14180 (verbose, debug): Remove variables.
14181 (at_file_supplied): No longer static.
14182 (tool_name): New variable.
14183 (do_wait, fork_execute, maybe_unlink): Don't declare.
14184 (tool_cleanup): No longer static.
14185 (notice): Remove function.
14186 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
14187 fork_execute calls.
14188 (collect_wait, do_wait, collect_execute): Remove functions.
14189 (maybe_unlink): No longer static.
14190 * collect2.h (verbose, debug): Don't declare.
14191 (at_file_supplied): Declare.
14192 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
14193 changed.
14194 (collect_execute): Replace with implementation from collect2, plus a
14195 new arg use_atfile. All callers changed.
14196 (collect_wait): Replace with implementation from collect2.
14197 (maybe_unlink_file): Remove function.
14198 (fork_execute): Replace with implementation from collect2, plus a
14199 new arg use_atfile. All callers changed.
14200 (do_wait): Add call to utils_cleanup to the error path.
14201 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
14202 (tool_cleanup): Adjust declarations.
14203 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
14204 * tlink.c: Include "collect-utils.h".
14205 (tlink_execute): New arg use_atfile. All callers changed.
14206 (tlink_init, tlink_execute): Remove declarations.
14207
14208 * collect-utils.c (save_temps): New variable.
14209 (do_wait): Use it instead of debug. Use fatal_error.
14210 * collect-utils.h (save_temps): Declare.
14211 * collect2.c (verbose): Rename from vflag. All uses changed.
14212 (tool_cleanup): New function, copied from collect_atexit.
14213 (collect_atexit, handler): Just call it.
14214 * collect2.h (verbose): Declaration renamed from vflag.
14215 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
14216 debug.
14217
14218 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
14219 (lto-wrapper$(exeext)): Link with collect-utils.o.
14220 * collect-utils.c: New file.
14221 * collect-utils.h: New file.
14222 * lto-wrapper.c: Include "collect-utils.h".
14223 (args_name): Delete variable.
14224 (tool_name): New variable.
14225 (tool_cleanup): New function.
14226 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
14227 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
14228 (fork_execute): Remove functions.
14229
14230 2014-06-26 Nick Clifton <nickc@redhat.com>
14231
14232 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
14233
14234 * doc/extend.texi (Function Attributes): Fix typo in description
14235 of RX vector attribute.
14236
14237 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
14238
14239 * config.gcc (supported_defaults): Error when passing either
14240 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
14241
14242 2014-06-26 Richard Biener <rguenther@suse.de>
14243
14244 * tree-ssa-dom.c (cprop_operand): Remove restriction on
14245 propagating volatile pointers.
14246
14247 2014-06-26 Richard Biener <rguenther@suse.de>
14248
14249 PR tree-optimization/61607
14250 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
14251 loop if we redirected its latch edge.
14252 (thread_block_1): Do not cancel loops prematurely.
14253
14254 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
14255
14256 * toplev.c (backend_init_target): Move init_emit_regs and
14257 init_regs to...
14258 (backend_init) ... here; skip ira_init_once and backend_init_target.
14259 (target_reinit) ... and here; clear
14260 this_target_rtl->lang_dependent_initialized.
14261 (lang_dependent_init_target): Clear
14262 this_target_rtl->lang_dependent_initialized;
14263 break out rtl initialization to ...
14264 (initialize_rtl): ... here; call also backend_init_target
14265 and ira_init_once.
14266 * toplev.h (initialize_rtl): New function.
14267 * function.c: Include toplev.h
14268 (init_function_start): Call initialize_rtl.
14269 * rtl.h (target_rtl): Add target_specific_initialized,
14270 lang_dependent_initialized.
14271
14272 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
14273 Jakub Jelinek <jakub@redhat.com>
14274
14275 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
14276
14277 2014-06-25 Tom de Vries <tom@codesourcery.com>
14278
14279 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
14280
14281 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
14282
14283 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
14284 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
14285 Issue a strict overflow warning if appropriate.
14286
14287 2014-06-25 Martin Liska <mliska@suse.cz>
14288
14289 IPA REF refactoring
14290 * Makefile.in: Removed header file (ipa-ref-inline.h).
14291 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
14292 called.
14293 (cgraph_speculative_call_info): Likewise.
14294 (cgraph_for_node_thunks_and_aliases): Likewise.
14295 (cgraph_for_node_and_aliases): Likewise.
14296 (verify_cgraph_node): Likewise.
14297 * cgraph.h: Batch of IPA REF functions become member functions of
14298 symtab_node: add_reference, maybe_add_reference, clone_references,
14299 clone_referring, clone_reference, find_reference,
14300 remove_stmt_references, remove_all_references,
14301 remove_all_referring, dump_references, dump_referring,
14302 has_alias_p, iterate_reference, iterate_referring.
14303 * cgraphbuild.c (record_reference): New IPA REF function used.
14304 (record_type_list): Likewise.
14305 (record_eh_tables): Likewise.
14306 (mark_address): Likewise.
14307 (mark_load): Likewise.
14308 (mark_store): Likewise.
14309 (pass_build_cgraph_edges): Likewise.
14310 (rebuild_cgraph_edge): Likewise.
14311 (cgraph_rebuild_references): Likewise.
14312 (pass_remove_cgraph_callee_edges): Likewise.
14313 * cgraphclones.c (cgraph_clone_node): Likewise.
14314 (cgraph_create_virtual_clone): Likewise.
14315 (cgraph_materialize_clone): Likewise.
14316 (cgraph_materialize_all_clones): Likewise.
14317 * cgraphunit.c (cgraph_reset_node): Likewise.
14318 (cgraph_reset_node): Likewise.
14319 (analyze_function): Likewise.
14320 (assemble_thunks_and_aliases): Likewise.
14321 (expand_function): Likewise.
14322 * ipa-comdats.c (propagate_comdat_group): Likewise.
14323 (enqueue_references): Likewise.
14324 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
14325 (create_specialized_node): Likewise.
14326 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
14327 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
14328 * ipa-inline.c (reset_edge_caches): Likewise.
14329 (update_caller_keys): Likewise.
14330 (execute): Likewise.
14331 * ipa-prop.c (remove_described_reference): Likewise.
14332 (propagate_controlled_uses): Likewise.
14333 (ipa_edge_duplication_hook): Likewise.
14334 (ipa_modify_call_arguments): Likewise.
14335 * ipa-pure-const.c (propagate_pure_const): Likewise.
14336 * ipa-ref-inline.h: Header file removed, functions moved
14337 to symtab_node class.
14338 * ipa-ref.c (remove_reference): New class member function.
14339 (cannot_lead_to_return): New class member function.
14340 (referring_ref_list): Likewise.
14341 (referred_ref_list): Likewise.
14342 Rest of functions moved to symtab_node class.
14343 * ipa-ref.h: New member functions remove_reference,
14344 cannot_lead_to_return, referring_ref_list, referred_ref_list added
14345 to ipa_ref class.
14346 ipa_ref_list class has new member functions: first_reference,
14347 first_referring, clear, nreferences.
14348 * ipa-reference.c (analyze_function): New IPA REF function used.
14349 (write_node_summary_p): Likewise.
14350 (ipa_reference_write_optimization_summary): Likewise.
14351 * ipa-split.c (split_function): Likewise.
14352 * ipa-utils.c (ipa_reverse_postorder): Likewise.
14353 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
14354 (function_and_variable_visibility): Likewise.
14355 * ipa.c (has_addr_references_p): Likewise.
14356 (process_references): Argument type changed.
14357 (symtab_remove_unreachable_nodes): New IPA REF function used.
14358 (process_references): Likewise.
14359 (set_writeonly_bit): Likewise.
14360 * lto-cgraph.c: Implementation of new symtab_node member functions
14361 that uses new IPA REF functions.
14362 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
14363 function used.
14364 * lto-streamer-out.c (output_symbol_p): Likewise.
14365 * lto-streamer.h (referenced_from_this_partition_p): Argument type
14366 changed.
14367 * symtab.c: Implementation of new IPA REF API.
14368 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
14369 (ipa_tm_create_version): Likewise.
14370 (ipa_tm_execute): Likewise.
14371 * tree-emutls.c (gen_emutls_addr): Likewise.
14372 * tree-inline.c (copy_bb): Likewise.
14373 (delete_unreachable_blocks_update_callgraph): Likewise.
14374 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
14375 (varpool_for_node_and_aliases): Likewise.
14376
14377 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
14378
14379 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
14380
14381 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
14382
14383 PR bootstrap/61598
14384 * fold-const.c (fold_checksum_tree): Use a hash_table of const
14385 tree_node * instead of tree_node *.
14386 (fold): Adjust.
14387 (print_fold_checksum): Likewise.
14388 (fold_check_failed): Likewise.
14389 (debug_fold_checksum): Likewise.
14390 (fold_build1_stat_loc): Likewise.
14391 (fold_build2_stat_loc): Likewise.
14392 (fold_build3_stat_loc): Likewise.
14393 (fold_build_call_array_loc): Likewise.
14394
14395 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
14396
14397 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
14398 implementation with call to...
14399 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
14400 function.
14401 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
14402 Declare.
14403
14404 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
14405
14406 PR tree-optimization/57742
14407 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
14408 after replacing the statement.
14409
14410 2014-06-25 Nick Clifton <nickc@redhat.com>
14411
14412 * config/v850/v850.c (GHS_default_section_names): Change to const
14413 char * type.
14414 (GHS_current_section_names): Likewise.
14415 (v850_insert_attributes): Do not build strings, just assign the
14416 names directly. Change the type of 'chosen_section' to const
14417 char*.
14418 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
14419 directly to the array entry.
14420 * config/v850/v850.h (GHS_default_section_names): Change to const
14421 char * type.
14422 (GHS_current_section_names): Likewise.
14423
14424 2014-06-25 Jakub Jelinek <jakub@redhat.com>
14425
14426 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
14427 (LANG_HOOKS_DECLS): Add it.
14428 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
14429 has correct type.
14430 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
14431 * langhooks.h (struct lang_hooks_for_decls): Add
14432 omp_clause_linear_ctor hook.
14433 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
14434 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
14435 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
14436 combined simd loop use omp_clause_linear_ctor hook.
14437
14438 2014-06-24 Cong Hou <congh@google.com>
14439
14440 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
14441 pattern recognition.
14442 (type_conversion_p): PROMOTION is true if it's a type promotion
14443 conversion, and false otherwise. Return true if the given expression
14444 is a type conversion one.
14445 * tree-vectorizer.h: Adjust the number of patterns.
14446 * tree.def: Add SAD_EXPR.
14447 * optabs.def: Add sad_optab.
14448 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
14449 * expr.c (expand_expr_real_2): Likewise.
14450 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
14451 * gimple.c (get_gimple_rhs_num_ops): Likewise.
14452 * optabs.c (optab_for_tree_code): Likewise.
14453 * tree-cfg.c (estimate_operator_cost): Likewise.
14454 * tree-ssa-operands.c (get_expr_operands): Likewise.
14455 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
14456 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
14457 * doc/generic.texi: Add document for SAD_EXPR.
14458 * doc/md.texi: Add document for ssad and usad.
14459
14460 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14461
14462 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
14463 qualification in cast.
14464
14465 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
14466
14467 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
14468 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
14469 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
14470 (tree_function_decl): ... here.
14471 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
14472 streaming of vindex to ...
14473 (write_ts_function_decl_tree_pointers): ... here.
14474 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
14475 Do not stream DECL_VINDEX.
14476 (lto_input_ts_function_decl_tree_pointers): Stream it here.
14477
14478 2014-06-24 Catherine Moore <clm@codesourcery.com>
14479 Sandra Loosemore <sandra@codesourcery.com>
14480
14481 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
14482 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
14483 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
14484
14485 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
14486
14487 * doc/invoke.texi (Warning Options): Remove duplicated
14488 -Wmaybe-uninitialized.
14489
14490 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
14491
14492 PR tree-optimization/57742
14493 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
14494 (handle_builtin_malloc, handle_builtin_memset): New functions.
14495 (strlen_optimize_stmt): Call them.
14496 * passes.def: Move strlen after loop+dom but before vrp.
14497
14498 2014-06-24 Jakub Jelinek <jakub@redhat.com>
14499
14500 PR target/61570
14501 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
14502 model family 6 CPU with has_longmode never use a CPU without
14503 64-bit support.
14504
14505 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
14506
14507 PR target/61570
14508 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
14509 the last change.
14510
14511 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14512
14513 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
14514 * dominance.c (iterate_fix_dominators): Use hash_map instead of
14515 pointer_map.
14516 * hash-map.h: New file.
14517 * ipa-comdats.c: Use hash_map instead of pointer_map.
14518 * ipa.c: Likewise.
14519 * lto-section-out.c: Adjust.
14520 * lto-streamer.h: Replace pointer_map with hash_map.
14521 * symtab.c (verify_symtab): Likewise.
14522 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
14523 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
14524 * tree-streamer.h: Likewise.
14525 * tree-streamer.c: Adjust.
14526 * pointer-set.h: Remove pointer_map.
14527
14528 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14529
14530 * hash-table.h: Add a template arg to choose between storing values
14531 and storing pointers to values, and then provide partial
14532 specializations for both.
14533 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
14534 should store, not the type values should point to.
14535 * tree-into-ssa.c (var_info_hasher): Likewise.
14536 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
14537 * tree-complex.c: Adjust.
14538 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
14539 table instead of int_tree_map *.
14540 * tree-parloops.c: Adjust.
14541 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
14542 type is being stored.
14543 * tree-vectorizer.c: Adjust.
14544
14545 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14546
14547 * hash-table.h: Remove a layer of indirection from hash_table so that
14548 it contains the hash table's data instead of a pointer to the data.
14549 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
14550 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
14551 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
14552 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
14553 fold-const.c, gcse.c, ggc-common.c,
14554 gimple-ssa-strength-reduction.c, gimplify.c,
14555 graphite-clast-to-gimple.c, graphite-dependences.c,
14556 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
14557 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
14558 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
14559 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
14560 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
14561 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
14562 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
14563 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
14564 tree-ssa-live.c, tree-ssa-loop-im.c,
14565 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
14566 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
14567 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
14568 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
14569 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
14570 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
14571 vtable-verify.c, vtable-verify.h: Adjust.
14572
14573 2014-06-24 Richard Biener <rguenther@suse.de>
14574
14575 PR tree-optimization/61572
14576 * tree-ssa-sink.c (statement_sink_location): Do not sink
14577 loads from hard registers.
14578
14579 2014-06-24 Jakub Jelinek <jakub@redhat.com>
14580
14581 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
14582 not mentioned in clauses use private clause if the iterator is
14583 declared in #pragma omp for simd, and when adding lastprivate
14584 instead, add it to the outer #pragma omp for too. Diagnose
14585 if the variable is private in outer context. For simd collapse > 1
14586 loops, replace all iterators with temporaries.
14587 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
14588 same even in collapse > 1 loops.
14589
14590 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
14591 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
14592 non-NULL.
14593 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
14594 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
14595 non-NULL.
14596 (gimplify_adjust_omp_clauses): Likewise.
14597 * omp-low.c (lower_rec_simd_input_clauses,
14598 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
14599 safelen the same as safelen(1).
14600 * tree-nested.c (convert_nonlocal_omp_clauses,
14601 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
14602 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
14603 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
14604 Fixup handling of GIMPLE_OMP_TARGET.
14605 (convert_tramp_reference_stmt, convert_gimple_call): Handle
14606 GIMPLE_OMP_TARGET.
14607
14608 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
14609
14610 PR tree-optimization/61554
14611 * tree-ssa-propagate.c: Include "bitmap.h".
14612 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
14613 properly update constructor/destructor.
14614 (substitute_and_fold_dom_walker::before_dom_children):
14615 Remove call to gimple_purge_dead_eh_edges, add bb->index to
14616 need_eh_cleaup instead.
14617 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
14618 need_eh_cleanup.
14619
14620 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
14621
14622 * varpool.c (dump_varpool_node): Dump used_by_single_function.
14623 * tree-pass.h (make_pass_ipa_single_use): New pass.
14624 * cgraph.h (used_by_single_function): New flag.
14625 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
14626 Stream it.
14627 * passes.def (pass_ipa_single_use): Scedule.
14628 * ipa.c (BOTTOM): New macro.
14629 (meet): New function
14630 (propagate_single_user): New function.
14631 (ipa_single_use): New function.
14632 (pass_data_ipa_single_use): New pass.
14633 (pass_ipa_single_use): New pass.
14634 (pass_ipa_single_use::gate): New gate.
14635 (make_pass_ipa_single_use): New function.
14636
14637 2014-06-23 Kai Tietz <ktietz@redhat.com>
14638
14639 PR target/39284
14640 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
14641 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
14642
14643 2014-06-23 Richard Biener <rguenther@suse.de>
14644
14645 * tree-ssa-loop.c (gate_loop): New function.
14646 (pass_tree_loop::gate): Call it.
14647 (pass_data_tree_no_loop, pass_tree_no_loop,
14648 make_pass_tree_no_loop): New.
14649 * tree-vectorizer.c: Include tree-scalar-evolution.c
14650 (pass_slp_vectorize::execute): Initialize loops and SCEV if
14651 required.
14652 (pass_slp_vectorize::clone): New method.
14653 * timevar.def (TV_TREE_NOLOOP): New.
14654 * tree-pass.h (make_pass_tree_no_loop): Declare.
14655 * passes.def (pass_tree_no_loop): New pass group with
14656 SLP vectorizer.
14657
14658 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
14659
14660 PR target/61570
14661 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
14662 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
14663
14664 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
14665
14666 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
14667 "yes" where needed.
14668
14669 2014-06-23 Alan Modra <amodra@gmail.com>
14670
14671 PR bootstrap/61583
14672 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
14673 to zero on debug statements.
14674
14675 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
14676
14677 PR target/60825
14678 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
14679 Ignore third operand if present by marking qualifier_internal.
14680
14681 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
14682
14683 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
14684 vector extension.
14685 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
14686 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
14687 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
14688 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
14689 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
14690 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
14691 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
14692 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
14693 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
14694 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
14695 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
14696 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
14697 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
14698 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
14699 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
14700 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
14701 logic in GCC vector extensions
14702
14703 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
14704 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
14705 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
14706 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
14707 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
14708 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
14709 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
14710 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
14711 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
14712 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
14713
14714 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
14715
14716 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
14717 extensions.
14718
14719 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
14720 (vget_low_s64): Use __GET_LOW macro.
14721 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
14722 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
14723 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
14724 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
14725 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
14726
14727 (vcombine_s64): Use GCC vector extensions; remove cast.
14728 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
14729 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
14730 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
14731 Fix type signature; remove cast.
14732
14733 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
14734
14735 PR target/60825
14736 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
14737 V1DFmode.
14738 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
14739 add V1DFmode
14740 (BUILTIN_VD1): New.
14741 (BUILTIN_VD_RE): Remove.
14742 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
14743 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
14744 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
14745 variant but not df.
14746 (vreinterpretv1df*, vreinterpret*v1df): New.
14747 (vreinterpretdf*, vreinterpret*df): Remove.
14748 * config/aarch64/aarch64-simd.md (aarch64_create,
14749 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
14750 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
14751 (VD1): New.
14752 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
14753 (vcreate_f64): Remove cast, use v1df builtin.
14754 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
14755 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
14756 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
14757 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
14758 vmov_n_f64, vst1_f64): Use gcc vector extensions.
14759 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
14760 add range check using __builtin_aarch64_im_lane_boundsi.
14761 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
14762 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
14763 type signature, use gcc vector extensions.
14764 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
14765 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
14766 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
14767 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
14768 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
14769 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
14770 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
14771 vreinterpret_u64_f64): Use v1df builtin not df.
14772
14773 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
14774
14775 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
14776 vector registers.
14777
14778 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
14779
14780 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
14781 priority directly.
14782
14783 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14784
14785 * loop-invariant.c (pre_check_invariant_p): New function.
14786 (find_invariant_insn): Call pre_check_invariant_p.
14787
14788 2014-06-22 Richard Henderson <rth@redhat.com>
14789
14790 PR target/61565
14791 * compare-elim.c (struct comparison): Add eh_note.
14792 (find_comparison_dom_walker::before_dom_children): Don't eliminate
14793 a redundant comparison in a different EH region. Purge EH edges if
14794 necessary.
14795
14796 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14797
14798 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
14799 (var_shift): Use it.
14800 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
14801 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14802 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14803 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14804 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14805 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
14806 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
14807 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
14808 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
14809 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
14810 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
14811 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
14812 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
14813 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
14814 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
14815 *rotldi3_internal15be): Use the new attribute. Merge register and
14816 integer alternatives.
14817
14818 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14819
14820 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
14821 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
14822 split, *ashrdi3_internal3 and split): Delete, merge into...
14823 (ashr<mode>3): New expander.
14824 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
14825 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
14826
14827 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14828
14829 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
14830 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
14831 *rotldi3_internal3 and split): Delete, merge into...
14832 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
14833 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
14834 Use "rotlw" extended mnemonic.
14835
14836 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14837
14838 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
14839 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
14840 and split, *ashldi3_internal3 and split): Delete, merge into...
14841 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
14842 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
14843
14844 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14845
14846 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
14847 (lshrsi3, two anonymous define_insns and define_splits,
14848 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
14849 *lshrdi3_internal3 and split): Delete, merge into...
14850 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
14851 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
14852
14853 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14854
14855 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
14856 Remove "O" alternative.
14857
14858 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
14859
14860 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
14861 (mips_move_from_gpr_cost): Likewise.
14862 (mips_register_move_cost): Update accordingly.
14863 (mips_secondary_reload_class): Remove name of in_p.
14864
14865 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
14866
14867 PR target/61503
14868 * config/i386/i386.md (x86_64_shrd, x86_shrd,
14869 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
14870
14871 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14872
14873 * config/nios2/nios2.c: Include "builtins.h".
14874
14875 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
14876
14877 * cgraph.h (tls_model_names): New variable.
14878 * print-tree.c (print_node): Simplify.
14879 * varpool.c (tls_model_names): New variable.
14880 (dump_varpool_node): Output tls model.
14881
14882 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
14883
14884 * ipa-visibility.c (function_and_variable_visibility): Disable
14885 temporarily local aliases for some targets.
14886
14887 2014-06-20 Marek Polacek <polacek@redhat.com>
14888
14889 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
14890 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
14891 into SANITIZE_UNDEFINED.
14892 * doc/invoke.texi: Describe -fsanitize=bounds.
14893 * gimplify.c (gimplify_call_expr): Add gimplification of internal
14894 functions created in the FEs.
14895 * internal-fn.c: Move "internal-fn.h" after "tree.h".
14896 (expand_UBSAN_BOUNDS): New function.
14897 * internal-fn.def (UBSAN_BOUNDS): New internal function.
14898 * internal-fn.h: Don't define internal functions here.
14899 * opts.c (common_handle_option): Add -fsanitize=bounds.
14900 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
14901 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
14902 * tree-core.h: Define internal functions here.
14903 (struct tree_base): Add ifn field.
14904 * tree-pretty-print.c: Include "internal-fn.h".
14905 (dump_generic_node): Handle functions without CALL_EXPR_FN.
14906 * tree.c (get_callee_fndecl): Likewise.
14907 (build_call_expr_internal_loc): New function.
14908 * tree.def (CALL_EXPR): Update description.
14909 * tree.h (CALL_EXPR_IFN): Define.
14910 (build_call_expr_internal_loc): Declare.
14911 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
14912 types.
14913 (ubsan_type_descriptor): Change bool parameter to enum
14914 ubsan_print_style. Adjust the code. Add handling of
14915 UBSAN_PRINT_ARRAY.
14916 (ubsan_expand_bounds_ifn): New function.
14917 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
14918 (ubsan_build_overflow_builtin): Likewise.
14919 (instrument_bool_enum_load): Likewise.
14920 (ubsan_instrument_float_cast): Likewise.
14921 * ubsan.h (enum ubsan_print_style): New enum.
14922 (ubsan_expand_bounds_ifn): Declare.
14923 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
14924
14925 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
14926
14927 * config/rs6000/rs6000.md: Append `DONE' to preparation
14928 statements of `bswap' pattern splitters.
14929
14930 2014-06-20 Tom de Vries <tom@codesourcery.com>
14931
14932 * target.def (call_fusage_contains_non_callee_clobbers): Update
14933 definition.
14934 * doc/tm.texi: Regenerate.
14935
14936 2014-06-20 Yury Gribov <y.gribov@samsung.com>
14937 Max Ostapenko <m.ostapenko@partner.samsung.com>
14938
14939 PR sanitizer/61547
14940 * asan.c (instrument_strlen_call): Fixed instrumentation of
14941 trailing byte.
14942
14943 2014-06-20 Martin Jambor <mjambor@suse.cz>
14944
14945 PR ipa/61540
14946 * ipa-prop.c (impossible_devirt_target): New function.
14947 (try_make_edge_direct_virtual_call): Use it, also instead of
14948 asserting.
14949
14950 2014-06-20 Yury Gribov <y.gribov@samsung.com>
14951 Max Ostapenko <m.ostapenko@partner.samsung.com>
14952
14953 PR sanitizer/61530
14954 * asan.c (build_check_stmt): Add condition.
14955
14956 2014-06-20 Martin Jambor <mjambor@suse.cz>
14957
14958 PR ipa/61211
14959 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
14960 expanded clones.
14961
14962 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14963
14964 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
14965 Update comments.
14966 (VCONQ): Make comment more helpful.
14967 (VCON): Delete.
14968 * config/aarch64/aarch64-simd.md
14969 (aarch64_sqdmulh_lane<mode>):
14970 Use VCOND for operands 2. Update lane checking and flipping logic.
14971 (aarch64_sqrdmulh_lane<mode>): Likewise.
14972 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
14973 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
14974 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
14975 attribute of operand 3 to VCOND.
14976 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
14977 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
14978 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
14979 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
14980 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
14981 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
14982 define_insn.
14983 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
14984 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
14985 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
14986 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
14987 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
14988 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
14989 operand to VCOND. Update lane flipping and bounds checking logic.
14990 (aarch64_sqdmlal2_lane<mode>): Likewise.
14991 (aarch64_sqdmlsl_lane<mode>): Likewise.
14992 (aarch64_sqdmull_lane<mode>): Likewise.
14993 (aarch64_sqdmull2_lane<mode>): Likewise.
14994 (aarch64_sqdmlal_laneq<mode>):
14995 Replace VCON usage with VCONQ.
14996 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
14997 (aarch64_sqdmlal2_laneq<mode>): Emit
14998 aarch64_sqdmlal2_laneq<mode>_internal insn.
14999 Replace VCON with VCONQ.
15000 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
15001 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
15002 (aarch64_sqdmull_laneq<mode>): Emit
15003 aarch64_sqdmull_laneq<mode>_internal insn.
15004 Replace VCON with VCONQ.
15005 (aarch64_sqdmull2_laneq<mode>): Emit
15006 aarch64_sqdmull2_laneq<mode>_internal insn.
15007 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
15008 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
15009 of 3rd argument to int16x4_t.
15010 (vqdmlalh_lane_s16): Likewise.
15011 (vqdmlslh_lane_s16): Likewise.
15012 (vqdmull_high_lane_s16): Likewise.
15013 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
15014 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
15015 (vqdmlsl_lane_s16): Likewise.
15016 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
15017 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
15018 (vqdmlals_lane_s32): Likewise.
15019 (vqdmlsls_lane_s32): Likewise.
15020 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
15021 (vqdmulls_lane_s32): Likewise.
15022 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
15023 (vqdmlsl_lane_s32): Likewise.
15024 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
15025 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
15026 (vqrdmulhh_lane_s16): Likewise.
15027 (vqdmlsl_high_lane_s16): Likewise.
15028 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
15029 (vqdmlsl_high_lane_s32): Likewise.
15030 (vqrdmulhs_lane_s32): Likewise.
15031
15032 2014-06-20 Tom de Vries <tom@codesourcery.com>
15033
15034 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
15035 get_call_reg_set_usage.
15036
15037 2014-06-20 Tom de Vries <tom@codesourcery.com>
15038
15039 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
15040 it contains all call_used_regs.
15041
15042 2014-06-20 Tom de Vries <tom@codesourcery.com>
15043
15044 * final.c (collect_fn_hard_reg_usage): Add and use variable
15045 function_used_regs.
15046
15047 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
15048
15049 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
15050 (set_init_priority, get_init_priority, set_fini_priority,
15051 get_fini_priority): New methods.
15052 * tree.c (init_priority_for_decl): Remove.
15053 (init_ttree): Do not initialize init priority.
15054 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
15055 (decl_priority_info): Remove.
15056 (decl_init_priority_insert): Rewrite.
15057 (decl_fini_priority_insert): Rewrite.
15058 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
15059 tree_priority_map_marked_p): Remove.
15060 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
15061 * lto-streamer-out.c (hash_tree): Do not hash priorities.
15062 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
15063 not output priorities.
15064 (pack_ts_function_decl_value_fields): Likewise.
15065 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
15066 not input priorities.
15067 (unpack_ts_function_decl_value_fields): Likewise.
15068 * symtab.c (symbol_priority_map): Declare.
15069 (init_priority_hash): Declare.
15070 (symtab_unregister_node): Unregister from priority hash, too.
15071 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
15072 New methods.
15073 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
15074 (symbol_priority_info): New function.
15075 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
15076 New methods.
15077 * tree-core.h (tree_priority_map): Remove.
15078
15079 2014-06-20 Jakub Jelinek <jakub@redhat.com>
15080
15081 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
15082 0xff to uint64_t before shifting it up.
15083
15084 2014-06-20 Julian Brown <julian@codesourcery.com>
15085 Chung-Lin Tang <cltang@codesourcery.com>
15086
15087 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
15088 TARGET_THUMB1_ONLY. Add comments.
15089
15090 2014-06-19 Tom de Vries <tom@codesourcery.com>
15091
15092 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
15093 return type to void.
15094 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
15095
15096 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15097
15098 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
15099 as "move", from depends_on.
15100
15101 2014-06-19 Terry Guo <terry.guo@arm.com>
15102
15103 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
15104 stage.
15105
15106 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
15107
15108 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
15109 Remove cr5.
15110 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
15111
15112 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
15113
15114 PR target/61550
15115 * config/sh/sh.c (prepare_move_operands): Don't process TLS
15116 addresses here if reload in progress or completed.
15117
15118 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
15119
15120 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
15121 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
15122 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
15123 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
15124 (mips_register_priority): New function that implements the target
15125 hook TARGET_REGISTER_PRIORITY.
15126 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
15127 (mips_lra_p): Likewise for TARGET_LRA_P.
15128 (TARGET_REGISTER_PRIORITY): Define macro.
15129 (TARGET_SPILL_CLASS): Likewise.
15130 (TARGET_LRA_P): Likewise.
15131 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
15132 classes.
15133 (REG_CLASS_NAMES): Likewise.
15134 (REG_CLASS_CONTENTS): Likewise.
15135 (BASE_REG_CLASS): Use M16_SP_REGS.
15136 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
15137 New set attribute to enable alternatives depending on the register
15138 allocator used.
15139 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
15140 (*lea64): Disable pattern for MIPS16.
15141 * config/mips/mips.opt (mlra): New option.
15142
15143 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
15144
15145 * lra-constraints.c (base_to_reg): New function.
15146 (process_address): Use new function.
15147
15148 2014-06-18 Tom de Vries <tom@codesourcery.com>
15149
15150 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
15151 * config/aarch64/aarch64.c
15152 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
15153 (aarch64_emit_call_insn): New function.
15154 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
15155 of emit_call_insn.
15156 * config/aarch64/aarch64.md (define_expand "call_internal")
15157 (define_expand "call_value_internal", define_expand "sibcall_internal")
15158 (define_expand "sibcall_value_internal"): New.
15159 (define_expand "call", define_expand "call_value")
15160 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
15161 expand variant and aarch64_emit_call_insn.
15162
15163 2014-06-18 Radovan Obradovic <robradovic@mips.com>
15164 Tom de Vries <tom@codesourcery.com>
15165
15166 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
15167 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
15168 Redefine to true.
15169 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
15170 clobbers to CALL_INSN_FUNCTION_USAGE.
15171 (define_expand "sibcall_internal")
15172 (define_expand "sibcall_value_internal"): New.
15173 (define_expand "call", define_expand "call_value"): Add argument to
15174 arm_emit_call_insn.
15175 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
15176 (define_expand "sibcall_value"): Use sibcall_value_internal and
15177 arm_emit_call_insn.
15178
15179 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15180
15181 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
15182
15183 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15184
15185 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
15186 __udivmoddi4.
15187
15188 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15189
15190 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
15191 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
15192 annotations. Fix DWARF information.
15193
15194 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15195
15196 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
15197 __udivmoddi4, and fixups for negative operands.
15198
15199 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15200
15201 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
15202
15203 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15204
15205 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
15206 to __udivmoddi4.
15207
15208 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15209
15210 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
15211 manipulation.
15212
15213 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15214
15215 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
15216 describing register usage on function entry and exit.
15217
15218 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15219
15220 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
15221 (__aeabi_ldivmod): Fix whitespace.
15222
15223 2014-06-18 Andreas Schwab <schwab@suse.de>
15224
15225 * doc/md.texi (Standard Names): Use @itemx for grouped items.
15226 Remove blank line after @item.
15227
15228 2014-06-18 Richard Henderson <rth@redhat.com>
15229
15230 PR target/61545
15231 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
15232
15233 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15234
15235 * config/arm/arm.c (neon_vector_mem_operand): Allow register
15236 POST_MODIFY for neon loads and stores.
15237 (arm_print_operand): Output post-index register for neon loads and
15238 stores.
15239
15240 2014-06-18 Richard Biener <rguenther@suse.de>
15241
15242 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
15243
15244 2014-06-18 Richard Biener <rguenther@suse.de>
15245
15246 * tree-pass.h (make_pass_dce_loop): Remove.
15247 * passes.def: Replace pass_dce_loop with pass_dce.
15248 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
15249 changed free niter estimates and reset the scev cache.
15250 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
15251 make_pass_dce_loop): Remove.
15252 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
15253 (fini_copy_prop): Return whether something changed. Always
15254 let substitute_and_fold perform DCE and free niter estimates
15255 and reset the scev cache if so.
15256 (execute_copy_prop): If sth changed schedule cleanup-cfg.
15257 (pass_data_copy_prop): Do not unconditionally schedule
15258 cleanup-cfg or update-ssa.
15259
15260 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
15261
15262 PR tree-optimization/61518
15263 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
15264 reduction var is used in reduction stmt or phi-function only.
15265
15266 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15267
15268 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
15269
15270 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
15271
15272 PR tree-optimization/61517
15273 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
15274 whose rhs's first tree is the source expression instead of the
15275 expression itself.
15276 (find_bswap_or_nop): Likewise.
15277 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
15278 gimple stmt whose rhs's first tree is the source. In the memory source
15279 case, move the stmt to be replaced close to one of the original load to
15280 avoid the problem of a store between the load and the stmt's original
15281 location.
15282 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
15283 signature.
15284
15285 2014-06-18 Andreas Schwab <schwab@suse.de>
15286
15287 PR rtl-optimization/54555
15288 * postreload.c (move2add_use_add2_insn): Substitute
15289 STRICT_LOW_PART only if it is cheaper.
15290
15291 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
15292
15293 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
15294 Do not use unspec as call operand. Use memory_operand instead of
15295 memory_nox32_operand and add "m" operand constraint. Disable
15296 pattern for TARGET_X32.
15297 (*sibcall_pop_memory): Ditto.
15298 (*sibcall_value_memory): Ditto.
15299 (*sibcall_value_pop_memory): Ditto.
15300 (sibcall peepholes): Merge SImode and DImode patterns using
15301 W mode iterator. Use memory_operand instead of memory_nox32_operand.
15302 Disable pattern for TARGET_X32. Check if eliminated register is
15303 really dead after call insn. Generate call RTX without unspec operand.
15304 (sibcall_value peepholes): Ditto.
15305 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
15306 instead of memory_nox32_operand. Check if eliminated register is
15307 really dead after call insn. Generate call RTX without unspec operand.
15308 (sibcall_value_pop peepholes): Ditto.
15309 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
15310
15311 2014-06-18 Terry Guo <terry.guo@arm.com>
15312
15313 PR target/61544
15314 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
15315 reach the head.
15316
15317 2014-06-18 Olivier Hainque <hainque@adacore.com>
15318
15319 * tree-core.h (tree_block): Add an "end_locus" field, allowing
15320 memorization of the end of block source location.
15321 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
15322 * gimplify.c (gimplify_bind_expr): Propagate the block start and
15323 end source location info we have on the block entry/exit code we
15324 generate.
15325
15326 2014-06-18 Richard Biener <rguenther@suse.de>
15327
15328 * common.opt (fssa-phiopt): New option.
15329 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
15330 but not with -Og.
15331 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
15332 * doc/invoke.texi (-fssa-phiopt): Document.
15333
15334 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15335
15336 * genattrtab.c (n_bypassed): New variable.
15337 (process_bypasses): Initialise n_bypassed.
15338 Count number of bypassed reservations.
15339 (make_automaton_attrs): Allocate space for bypassed reservations
15340 rather than number of bypasses.
15341
15342 2014-06-18 Richard Biener <rguenther@suse.de>
15343
15344 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
15345 we propagated anything.
15346 (substitute_and_fold_dom_walker::before_dom_children): Something
15347 changed if we propagated into PHI arguments.
15348 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
15349 we removed a stmt.
15350
15351 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
15352
15353 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
15354 vector case.
15355 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
15356 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
15357 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
15358 Introduces alternative way of loads group permutaions.
15359 (vect_transform_grouped_load): Try alternative way of permutations.
15360
15361 2014-06-18 Jakub Jelinek <jakub@redhat.com>
15362
15363 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
15364 changed in ORT_TARGET region, don't jump to do_outer.
15365 (struct gimplify_adjust_omp_clauses_data): New type.
15366 (gimplify_adjust_omp_clauses_1): Adjust for data being
15367 a struct gimplify_adjust_omp_clauses_data pointer instead
15368 of tree *. Pass pre_p as a new argument to
15369 lang_hooks.decls.omp_finish_clause hook.
15370 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
15371 splay_tree_foreach to pass both list_p and pre_p.
15372 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
15373 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
15374 gimplify_adjust_omp_clauses callers.
15375 * langhooks.c (lhd_omp_finish_clause): New function.
15376 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
15377 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
15378 * langhooks.h (struct lang_hooks_for_decls): Add a new
15379 gimple_seq * argument to omp_finish_clause hook.
15380 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
15381 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
15382 (scan_omp_parallel, lower_omp_for): When adding
15383 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
15384 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
15385 * tree-nested.c (convert_nonlocal_omp_clauses,
15386 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
15387 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
15388
15389 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
15390
15391 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
15392 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
15393
15394 2014-06-17 Xinliang David Li <davidxl@google.com>
15395
15396 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
15397 * passes.c (pass_init_dump_file): Do not set initialize
15398 flag to false unconditionally.
15399
15400 2014-06-17 Richard Biener <rguenther@suse.de>
15401
15402 * genopinit.c (main): Use vec<>::qsort method.
15403 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
15404 Likewise.
15405 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
15406
15407 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
15408
15409 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
15410 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
15411 (mips_move_to_gpr_cost): Remove ST_REGS case.
15412 (mips_move_from_gpr_cost): Likewise.
15413 (mips_register_move_cost): Likewise.
15414 (mips_secondary_reload_class): Likewise.
15415
15416 2014-06-17 Richard Biener <rguenther@suse.de>
15417
15418 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
15419 (pass_all_optimizations): Move 3rd copy-prop pass from after
15420 fre to before ifcombine/phiopt.
15421
15422 2014-06-17 Richard Biener <rguenther@suse.de>
15423
15424 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
15425 and allow all blocks to be forwarders.
15426
15427 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
15428
15429 PR target/61483
15430 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
15431 variable 'size'; calculate 'size' right in the front; use
15432 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
15433 pcum->aapcs_stack_words.
15434
15435 2014-06-17 Nick Clifton <nickc@redhat.com>
15436
15437 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
15438 (umulhi3, mulsidi3, umulsidi3): Likewise.
15439
15440 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
15441
15442 PR middle-end/61508
15443 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
15444 check for section name.
15445
15446 2014-06-17 Richard Biener <rguenther@suse.de>
15447
15448 * tree-ssa-propagate.c: Include domwalk.h.
15449 (substitute_and_fold): Outline main worker into a domwalker ...
15450 (substitute_and_fold_dom_walker::before_dom_children): ... here.
15451 Schedule stmts we can fully propagate for removal. Remove
15452 poor-mans DCE.
15453 (substitute_and_fold): Apply a dominator walk to perform
15454 substitution. Process stmts scheduled for removal here.
15455
15456 2014-06-17 Richard Biener <rguenther@suse.de>
15457
15458 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
15459 of PHI node moving.
15460
15461 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
15462
15463 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
15464 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
15465 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
15466 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
15467 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
15468 TARGET_HARD_FLOAT.
15469 (get_fpscr) : Likewise.
15470
15471 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
15472
15473 PR rtl-optimization/61325
15474 * lra-constraints.c (valid_address_p): Add forward declaration.
15475 (simplify_operand_subreg): Check address validity before and after
15476 alter_reg of memory subreg.
15477
15478 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
15479
15480 * config/i386/i386.c (decide_alg): Correctly handle
15481 maximum size of stringop algorithm.
15482
15483 2014-06-16 Yury Gribov <y.gribov@samsung.com>
15484
15485 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
15486
15487 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
15488
15489 PR rtl-optimization/61522
15490 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
15491
15492 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
15493
15494 Revert:
15495 * symtab.c (symtab_node::reset_section): New method.
15496 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
15497 for localization.
15498 * cgraph.h (reset_section): Declare.
15499 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
15500 do not consider comdat locals.
15501 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
15502 for new symbol.
15503 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
15504 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
15505 reset sections of symbols dragged out of the comdats.
15506 (function_and_variable_visibility): Reset sections of
15507 localized symbols.
15508
15509 2014-06-16 Richard Biener <rguenther@suse.de>
15510
15511 PR tree-optimization/61482
15512 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
15513 [-INF(OVF), +INF(OVF)] range.
15514
15515 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
15516
15517 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
15518 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
15519 handling 32-bit multiplication.
15520
15521 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
15522
15523 PR middle-end/61430
15524 * lra-lives.c (process_bb_lives): Skip creating copy during
15525 insn scan when src/dest has constrained to same regno.
15526
15527 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
15528
15529 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
15530 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
15531
15532 2014-06-16 Yury Gribov <y.gribov@samsung.com>
15533
15534 * asan.c (check_func): New function.
15535 (maybe_create_ssa_name): Likewise.
15536 (build_check_stmt_with_calls): Likewise.
15537 (use_calls_p): Likewise.
15538 (report_error_func): Change interface.
15539 (build_check_stmt): Allow non-integer lengths; add support
15540 for new parameter.
15541 (asan_instrument): Likewise.
15542 (instrument_mem_region_access): Moved code to build_check_stmt.
15543 (instrument_derefs): Likewise.
15544 (instrument_strlen_call): Likewise.
15545 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
15546 * doc/invoke.texi: Describe new parameter.
15547 * params.def: Define new parameter.
15548 * params.h: Likewise.
15549 * sanitizer.def: Describe new builtins.
15550
15551 2014-06-16 Richard Biener <rguenther@suse.de>
15552
15553 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15554 Make all defs available at the end.
15555 (eliminate): If we remove a PHI node schedule cfg-cleanup.
15556
15557 2014-06-18 Jakub Jelinek <jakub@redhat.com>
15558
15559 PR plugins/45078
15560 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
15561
15562 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
15563
15564 PR bootstrap/61516
15565 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
15566 initialization. Replace remaining use of uid.
15567
15568 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
15569
15570 * c-family/c-common.c (handle_tls_model_attribute): Use
15571 set_decl_tls_model.
15572 * c-family/c-common.c (handle_tls_model_attribute): Use
15573 set_decl_tls_model.
15574 * cgraph.h (struct varpool_node): Add tls_model.
15575 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
15576 * tree.h (DECL_TLS_MODEL): Update.
15577 (DECL_THREAD_LOCAL_P): Check that variable is static.
15578 (decl_tls_model): Declare.
15579 (set_decl_tls_model): Declare.
15580 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
15581 set symbol prorperties.
15582 (get_emutls_init_templ_addr): Cleanup.
15583 (new_emutls_decl): Update.
15584 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
15585 (lto_input_varpool_node): Likewise.
15586 * lto-streamer-out.c (hash_tree): Likewise.
15587 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
15588 not stream DECL_TLS_MODEL.
15589 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
15590 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
15591
15592 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15593
15594 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
15595
15596 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15597
15598 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
15599 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
15600 lists.
15601 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
15602 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
15603 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
15604 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
15605 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
15606 (df_get_artificial_defs, df_get_artificial_uses)
15607 (df_single_def, df_single_use): Update accordingly.
15608 (df_refs_chain_dump): Take the first element in a linked list as
15609 parameter, rather than a pointer to an array of pointers.
15610 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
15611 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
15612 (df_chain_create_bb_process_use): Likewise.
15613 (df_md_bb_local_compute_process_def): Likewise.
15614 * fwprop.c (process_defs, process_uses): Likewise.
15615 (register_active_defs, update_uses): Likewise.
15616 (forward_propagate_asm): Update for new df_ref linking.
15617 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
15618 (df_null_ref_rec, df_null_mw_rec): Likewise.
15619 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
15620 explicitly.
15621 (df_scan_free_bb_info): Remove check for null artificial_defs.
15622 (df_install_ref_incremental): Adjust for new df_ref linking.
15623 Use a single-element insertion rather than a full sort.
15624 (df_ref_chain_delete_du_chain): Take the first element
15625 in a linked list as parameter, rather than a pointer to an array of
15626 pointers.
15627 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
15628 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
15629 (df_insn_info_delete): Remove check for null defs and call to
15630 df_scan_free_mws_vec.
15631 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
15632 null rather than df_null_*_rec.
15633 (df_insn_rescan_debug_internal): Likewise, and update null
15634 checks in the same way. Remove check for null defs.
15635 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
15636 Move a single element rather doing a full sort.
15637 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
15638 linking.
15639 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
15640 Initialize df_ref and df_mw_hardreg lists to null rather than
15641 df_null_*_rec.
15642 (df_ref_compare): Take df_refs as parameter, transferring the
15643 old interface to...
15644 (df_ref_ptr_compare): ...this new function.
15645 (df_sort_and_compress_refs): Update accordingly.
15646 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
15647 old interface to...
15648 (df_mw_ptr_compare): ...this new function.
15649 (df_sort_and_compress_mws): Update accordingly.
15650 (df_install_refs, df_install_mws): Return a linked list rather than
15651 an array of pointers.
15652 (df_refs_add_to_chains): Assert that old lists are empty rather
15653 than freeing them.
15654 (df_insn_refs_verify): Don't handle null defs speciailly.
15655 * web.c (union_match_dups): Update for new df_ref linking.
15656
15657 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15658
15659 * df.h (df_ref_create, df_ref_remove): Delete.
15660 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
15661 (df_ref_remove): Likewise.
15662
15663 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15664
15665 * df.h (df_single_def, df_single_use): New functions.
15666 * ira.c (find_moveable_pseudos): Use them.
15667
15668 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15669
15670 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
15671 * df-problems.c (df_note_bb_compute): Use it.
15672 * regstat.c (regstat_bb_compute_ri): Likewise.
15673
15674 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15675
15676 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
15677 * cse.c (cse_extended_basic_block): Use them.
15678 * dce.c (mark_artificial_use): Likewise.
15679 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
15680 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
15681 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
15682 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
15683 (df_simulate_initialize_backwards): Likewise.
15684 (df_simulate_finalize_backwards): Likewise.
15685 (df_simulate_initialize_forwards): Likewise.
15686 (df_md_simulate_artificial_defs_at_top): Likewise.
15687 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
15688 * regrename.c (init_rename_info): Likewise.
15689 * regstat.c (regstat_bb_compute_ri): Likewise.
15690 (regstat_bb_compute_calls_crossed): Likewise.
15691
15692 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15693
15694 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
15695 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
15696 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
15697 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
15698 * combine.c (create_log_links): Likewise.
15699 * compare-elim.c (find_flags_uses_in_insn): Likewise.
15700 (try_eliminate_compare): Likewise.
15701 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
15702 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
15703 (remove_reg_equal_equiv_notes_for_defs): Likewise.
15704 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
15705 (word_dce_process_block, dce_process_block): Likewise.
15706 * ddg.c (def_has_ccmode_p): Likewise.
15707 * df-core.c (df_bb_regno_first_def_find): Likewise.
15708 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
15709 * df-problems.c (df_rd_simulate_one_insn): Likewise.
15710 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
15711 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
15712 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
15713 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
15714 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
15715 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
15716 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
15717 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
15718 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
15719 * fwprop.c (local_ref_killed_between_p): Likewise.
15720 (all_uses_available_at, free_load_extend): Likewise.
15721 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
15722 * hw-doloop.c (scan_loop): Likewise.
15723 * ifcvt.c (dead_or_predicable): Likewise.
15724 * init-regs.c (initialize_uninitialized_regs): Likewise.
15725 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
15726 (process_bb_node_lives): Likewise.
15727 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
15728 (find_moveable_pseudos): Likewise.
15729 * loop-invariant.c (check_dependencies, record_uses): Likewise.
15730 * recog.c (peep2_find_free_register): Likewise.
15731 * ree.c (get_defs): Likewise.
15732 * regstat.c (regstat_bb_compute_ri): Likewise.
15733 (regstat_bb_compute_calls_crossed): Likewise.
15734 * sched-deps.c (find_inc, find_mem): Likewise.
15735 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
15736 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
15737 * shrink-wrap.c (requires_stack_frame_p): Likewise.
15738 (prepare_shrink_wrap): Likewise.
15739 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
15740 * web.c (union_defs, pass_web::execute): Likewise.
15741 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
15742 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
15743
15744 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
15745
15746 * lra-assign.c (assign_by_spills): Add code to assign vector regs
15747 to inheritance pseudos.
15748 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
15749
15750 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
15751
15752 PR target/61415
15753 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
15754 (BU_MISC_2): Rename to ...
15755 (BU_LDBL128_2): ... this.
15756 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
15757 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
15758 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
15759 RS6000_BTM_LDBL128.
15760 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
15761 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
15762 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
15763 (unpacktf_1): Likewise.
15764 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
15765 (__builtin_longdouble_dw1): Likewise.
15766 * doc/sourcebuild.texi (longdouble128): Document.
15767
15768 2014-06-13 Jeff Law <law@redhat.com>
15769
15770 PR rtl-optimization/61094
15771 PR rtl-optimization/61446
15772 * ree.c (combine_reaching_defs): Get the mode for the copy from
15773 the extension insn rather than the defining insn.
15774
15775 2014-06-13 Dehao Chen <dehao@google.com>
15776
15777 * dwarf2out.c (add_linkage_name): Emit more linkage name.
15778
15779 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
15780
15781 * doc/install.texi (--enable-linker-plugin-configure-flags)
15782 (--enable-linker-plugin-flags): Document new flags.
15783
15784 2014-06-13 Martin Jambor <mjambor@suse.cz>
15785
15786 PR ipa/61186
15787 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
15788 cache_token if returning early.
15789
15790 2014-06-13 Nick Clifton <nickc@redhat.com>
15791
15792 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
15793 requested alignment is active.
15794 (LABEL_ALIGN): Likewise.
15795 (LOOP_ALIGN): Likewise.
15796
15797 2014-06-13 Richard Biener <rguenther@suse.de>
15798
15799 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15800 Rewrite to propagate the VN result into all uses where
15801 possible and to remove stmts becoming dead because of that.
15802 (eliminate): Generalize stmt removal handling, remove in
15803 reverse dominator order to support proper debug stmt
15804 generation. Update stmts before removing stmts.
15805 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
15806
15807 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
15808
15809 PR tree-optimization/61375
15810 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
15811 symbolic number cannot be represented in an uint64_t.
15812 (find_bswap_or_nop_1): Likewise.
15813
15814 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
15815
15816 * symtab.c (symtab_node::reset_section): New method.
15817 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
15818 for localization.
15819 * cgraph.h (reset_section): Declare.
15820 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
15821 do not consider comdat locals.
15822 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
15823 for new symbol.
15824 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
15825 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
15826 reset sections of symbols dragged out of the comdats.
15827 (function_and_variable_visibility): Reset sections of
15828 localized symbols.
15829
15830 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
15831
15832 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
15833 to use symtab and decl_binds_to_current_def_p
15834 * tree-vectorizer.c (increase_alignment): Increase alignment
15835 of alias target, too.
15836
15837 2014-06-12 Jakub Jelinek <jakub@redhat.com>
15838
15839 PR middle-end/61486
15840 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
15841 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
15842 if outer combined construct is distribute.
15843 (gimplify_omp_for): For OMP_DISTRIBUTE set
15844 gimplify_omp_ctxp->distribute.
15845 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
15846 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
15847 mapping into decl map.
15848
15849 2014-06-12 Jason Merrill <jason@redhat.com>
15850
15851 * common.opt (fabi-version): Change default to 0.
15852
15853 2014-06-12 Jason Merrill <jason@redhat.com>
15854
15855 * toplev.c (process_options): Reject -fabi-version=1.
15856
15857 2014-06-12 Jeff Law <law@redhat.com>
15858
15859 PR tree-optimization/61009
15860 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
15861 value when we stop processing a block due to problematic PHIs.
15862
15863 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
15864
15865 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
15866 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
15867 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
15868 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
15869 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
15870 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
15871 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
15872 are not in the spec.
15873
15874 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
15875
15876 PR target/59843
15877 * config/aarch64/aarch64-modes.def: Add V1DFmode.
15878 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
15879 Support V1DFmode.
15880
15881 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
15882
15883 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
15884
15885 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
15886
15887 PR target/61443
15888 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
15889 loading from address spaces.
15890
15891 2014-06-12 Martin Liska <mliska@suse.cz>
15892
15893 PR ipa/61462
15894 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
15895 statement is reachable.
15896
15897 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
15898
15899 * symtab.c (section_hash): New hash.
15900 (symtab_unregister_node): Clear section before freeing.
15901 (hash_section_hash_entry): New haser.
15902 (eq_sections): New function.
15903 (symtab_node::set_section_for_node): New method.
15904 (set_section_1): Update.
15905 (symtab_node::set_section): Take string instead of tree as parameter.
15906 (symtab_resolve_alias): Update.
15907 * cgraph.h (section_hash_entry_d): New structure.
15908 (section_hash_entry): New typedef.
15909 (cgraph_node): Change comdat_group_ to x_comdat_group,
15910 change section_ to x_section and turn into section_hash_entry;
15911 update accestors; put set_section_for_node offline.
15912 * tree.c (decl_section_name): Turn into string.
15913 (set_decl_section_name): Change parameter to be string.
15914 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
15915 * sdbout.c (sdbout_one_type): Update.
15916 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
15917 * varasm.c (IN_NAMED_SECTION, get_named_section,
15918 resolve_unique_section, hot_function_section, get_named_text_section,
15919 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
15920 make_decl_rtl, default_unique_section): Update.
15921 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
15922 (c6x_elf_unique_section): Update.
15923 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
15924 * config/pa/pa.c (pa_function_section): Update.
15925 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
15926 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
15927 * config/arc/arc.c (arc_in_small_data_p): Update.
15928 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
15929 * config/mcore/mcore.c (mcore_unique_section): Update.
15930 * config/mips/mips.c (mips16_build_function_stub): Update.
15931 (mips16_build_call_stub): Update.
15932 (mips_function_rodata_section): Update.
15933 (mips_in_small_data_p): Update.
15934 * config/score/score.c (score_in_small_data_p): Update.
15935 * config/rx/rx.c (rx_in_small_data): Update.
15936 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
15937 (rs6000_xcoff_asm_named_section): Update.
15938 (rs6000_xcoff_unique_section): Update.
15939 * config/frv/frv.c (frv_string_begins_with): Update.
15940 (frv_in_small_data_p): Update.
15941 * config/v850/v850.c (v850_encode_data_area): Update.
15942 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
15943 (bfin_handle_l1_data_attribute): Update.
15944 (bfin_handle_l2_attribute): Update.
15945 * config/mep/mep.c (mep_unique_section): Update.
15946 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
15947 Update.
15948 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
15949 (h8300_handle_tiny_data_attribute): Update.
15950 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
15951 (m32r_in_small_data_p): Update.
15952 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
15953 * config/i386/i386.c (ix86_in_large_data_p): Update.
15954 * config/i386/winnt.c (i386_pe_unique_section): Update.
15955 * config/darwin.c (darwin_function_section): Update.
15956 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
15957 * tree-emutls.c (get_emutls_init_templ_addr): Update.
15958 (new_emutls_decl): Update.
15959 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
15960 input_varpool_node): Update.
15961 (ead_string_cst): Turn to ...
15962 (read_string): ... this one.
15963 * dwarf2out.c (secname_for_decl): Update.
15964 * asan.c (asan_protect_global): Update.
15965
15966 2014-06-11 DJ Delorie <dj@redhat.com>
15967
15968 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
15969 cache lines.
15970 * config/rx/rx.c (rx_option_override): Likewise.
15971 (rx_align_for_label): Likewise.
15972
15973 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
15974
15975 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
15976
15977 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
15978 prototype.
15979
15980 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15981
15982 * common.md: New file.
15983 * doc/md.texi: Update description of generic, machine-independent
15984 constraints.
15985 * config/s390/constraints.md (e): Delete.
15986 * Makefile.in (md_file): Include common.md.
15987 * config/m32c/t-m32c (md_file): Likewise.
15988 * genpreds.c (general_mem): New array.
15989 (generic_constraint_letters): Remove constraints now defined by
15990 common.md.
15991 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
15992 Allow the first character to be '<' or '>' as well.
15993 * genoutput.c (general_mem): New array.
15994 (indep_constraints): Remove constraints now defined by common.md.
15995 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
15996 Remove special handling of 'm'.
15997 * ira-costs.c (record_reg_classes): Remove special handling of
15998 constraints now defined by common.md.
15999 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
16000 * ira-lives.c (single_reg_class): Likewise.
16001 (ira_implicitly_set_insn_hard_regs): Likewise.
16002 * lra-constraints.c (reg_class_from_constraints): Likewise.
16003 (process_alt_operands, process_address, curr_insn_transform): Likewise.
16004 * postreload.c (reload_cse_simplify_operands): Likewise.
16005 * reload.c (push_secondary_reload, scratch_reload_class)
16006 (find_reloads, alternative_allows_const_pool_ref): Likewise.
16007 * reload1.c (maybe_fix_stack_asms): Likewise.
16008 * targhooks.c (default_secondary_reload): Likewise.
16009 * stmt.c (parse_output_constraint): Likewise.
16010 * recog.c (preprocess_constraints): Likewise.
16011 (constrain_operands, peep2_find_free_register): Likewise.
16012 (asm_operand_ok): Likewise, but add a comment saying why 'o'
16013 must be handled specially.
16014
16015 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16016
16017 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
16018 * genpreds.c (have_const_dbl_constraints): Delete.
16019 (add_constraint): Don't set it.
16020 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
16021 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
16022 constraints using the lookup_constraint logic.
16023 * ira-lives.c (single_reg_class): Likewise.
16024 * ira.c (ira_setup_alts): Likewise.
16025 * lra-constraints.c (process_alt_operands): Likewise.
16026 * recog.c (asm_operand_ok, constrain_operands): Likewise.
16027 * reload.c (find_reloads): Likewise.
16028
16029 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16030
16031 * genpreds.c (const_int_start, const_int_end): New variables.
16032 (choose_enum_order): Output CONST_INT constraints before memory
16033 constraints.
16034 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
16035 Add CT_CONST_INT.
16036 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
16037 * ira.c (ira_setup_alts): Likewise.
16038 * lra-constraints.c (process_alt_operands): Likewise.
16039 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
16040 * reload.c (find_reloads): Likewise.
16041
16042 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16043
16044 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
16045 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
16046 * recog.c (preprocess_constraints): Update accordingly.
16047
16048 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16049
16050 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
16051 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
16052 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
16053 * genpreds.c (print_type_tree): New function.
16054 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
16055 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
16056 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
16057 Write out enum constraint_type and get_constraint_type.
16058 * lra-constraints.c (satisfies_memory_constraint_p): Take a
16059 constraint_num rather than a constraint string.
16060 (satisfies_address_constraint_p): Likewise.
16061 (reg_class_from_constraints): Avoid old constraint macros.
16062 (process_alt_operands, process_address_1): Likewise.
16063 (curr_insn_transform): Likewise.
16064 * ira-costs.c (record_reg_classes): Likewise.
16065 (record_operand_costs): Likewise.
16066 * ira-lives.c (single_reg_class): Likewise.
16067 (ira_implicitly_set_insn_hard_regs): Likewise.
16068 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
16069 * postreload.c (reload_cse_simplify_operands): Likewise.
16070 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
16071 (constrain_operands, peep2_find_free_register): Likewise.
16072 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
16073 (find_reloads, alternative_allows_const_pool_ref): Likewise.
16074 * reload1.c (maybe_fix_stack_asms): Likewise.
16075 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
16076 * targhooks.c (default_secondary_reload): Likewise.
16077 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
16078 to EXTRA_CONSTRAINT_STR.
16079 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
16080
16081 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16082
16083 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
16084 (write_constraint_satisfied_p_array): ...this new function.
16085 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
16086 an array.
16087 (write_insn_preds_c): Update accordingly.
16088
16089 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16090
16091 * genpreds.c (write_lookup_constraint): Rename to...
16092 (write_lookup_constraint_1): ...this.
16093 (write_lookup_constraint_array): New function.
16094 (write_tm_preds_h): Define lookup_constraint as an inline function
16095 that uses write_lookup_constraint_array where possible.
16096 (write_insn_preds_c): Update for the changes above.
16097
16098 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16099
16100 * doc/md.texi (regclass_for_constraint): Rename to...
16101 (reg_class_for_constraint): ...this.
16102 * genpreds.c (num_constraints, enum_order, register_start)
16103 (register_end, satisfied_start, memory_start, memory_end)
16104 (address_start, address_end): New variables.
16105 (add_constraint): Count the number of constraints.
16106 (choose_enum_order): New function.
16107 (write_enum_constraint_num): Iterate over enum_order.
16108 (write_regclass_for_constraint): Rename to...
16109 (write_reg_class_for_constraint_1): ...this and update output
16110 accordingly.
16111 (write_constraint_satisfied_p): Rename to...
16112 (write_constraint_satisfied_p_1): ...this and update output
16113 accordingly. Do nothing if all extra constraints are register
16114 constraints.
16115 (write_insn_extra_memory_constraint): Delete.
16116 (write_insn_extra_address_constraint): Delete.
16117 (write_range_function): New function.
16118 (write_tm_preds_h): Define constraint_satisfied_p and
16119 reg_class_for_constraint as inline functions that do a range check
16120 before calling the out-of-line function. Use write_range_function
16121 to implement insn_extra_{register,memory,address}_constraint,
16122 the first of which is new.
16123 (write_insn_preds_c): Update after above changes to write_* functions.
16124 (main): Call choose_enum_order.
16125
16126 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
16127
16128 PR tree-optimization/61306
16129 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
16130 expression instead of its size.
16131 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
16132 false to prevent optimization when the result is unpredictable due to
16133 arithmetic right shift of signed type with highest byte is set.
16134 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
16135 (init_symbolic_number): Likewise.
16136 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
16137 when the result is unpredictable due to sign extension.
16138
16139 2014-06-11 Terry Guo <terry.guo@arm.com>
16140
16141 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
16142 (*thumb1_addsi3): Ditto.
16143 (*thumb_subdi3): Ditto.
16144 (thumb1_subsi3_insn): Ditto.
16145 (*thumb_mulsi3): Ditto.
16146 (*thumb_mulsi3_v6): Ditto.
16147 (*thumb1_andsi3_insn): Ditto.
16148 (thumb1_bicsi3): Ditto.
16149 (*thumb1_iorsi3_insn): Ditto.
16150 (*thumb1_xorsi3_insn): Ditto.
16151 (*thumb1_ashlsi3): Ditto.
16152 (*thumb1_ashrsi3): Ditto.
16153 (*thumb1_lshrsi3): Ditto.
16154 (*thumb1_rotrsi3): Ditto.
16155 (*thumb1_negdi2): Ditto.
16156 (*thumb1_negsi2): Ditto.
16157 (*thumb1_abssi2): Ditto.
16158 (*thumb1_neg_abssi2): Ditto.
16159 (*thumb1_one_cmplsi2): Ditto.
16160 (*thumb1_zero_extendhisi2): Ditto.
16161 (*thumb1_zero_extendqisi2): Ditto.
16162 (*thumb1_zero_extendqisi2_v6): Ditto.
16163 (thumb1_extendhisi2): Ditto.
16164 (thumb1_extendqisi2): Ditto.
16165 (*thumb1_movdi_insn): Ditto.
16166 (*thumb1_movsi_insn): Ditto.
16167 (*thumb1_movhi_insn): Ditto.
16168 (thumb_movhi_clobber): Ditto.
16169 (*thumb1_movqi_insn): Ditto.
16170 (*thumb1_movhf): Ditto.
16171 (*thumb1_movsf_insn): Ditto.
16172 (*thumb_movdf_insn): Ditto.
16173 (movmem12b): Ditto.
16174 (movmem8b): Ditto.
16175 (cbranchqi4): Ditto.
16176 (cbranchsi4_insn): Ditto.
16177 (cbranchsi4_scratch): Ditto.
16178 (*negated_cbranchsi4): Ditto.
16179 (*tbit_cbranch): Ditto.
16180 (*tlobits_cbranch): Ditto.
16181 (*tstsi3_cbranch): Ditto.
16182 (*cbranchne_decr1): Ditto.
16183 (*addsi3_cbranch): Ditto.
16184 (*addsi3_cbranch_scratch): Ditto.
16185 (*thumb_cmpdi_zero): Ditto.
16186 (cstoresi_eq0_thumb1): Ditto.
16187 (cstoresi_ne0_thumb1): Ditto.
16188 (*cstoresi_eq0_thumb1_insn): Ditto.
16189 (*cstoresi_ne0_thumb1_insn): Ditto.
16190 (cstoresi_nltu_thumb1): Ditto.
16191 (cstoresi_ltu_thumb1): Ditto.
16192 (thumb1_addsi3_addgeu): Ditto.
16193 (*thumb_jump): Ditto.
16194 (*call_reg_thumb1_v5): Ditto.
16195 (*call_reg_thumb1): Ditto.
16196 (*call_value_reg_thumb1_v5): Ditto.
16197 (*call_value_reg_thumb1): Ditto.
16198 (*call_insn): Ditto.
16199 (*call_value_insn): Ditto.
16200 (thumb1_casesi_internal_pic): Ditto.
16201 (thumb1_casesi_dispatch): Ditto.
16202 (*thumb1_indirect_jump): Ditto.
16203 (prologue_thumb1_interwork): Ditto.
16204 (*epilogue_insns): Ditto.
16205 (consttable_1): Ditto.
16206 (consttable_2): Ditto.
16207 (tablejump): Ditto.
16208 (*thumb1_tablejump): Ditto.
16209 (thumb_eh_return): Ditto.
16210 (define_peephole2): Two of them are thumb1 only and got moved into
16211 new file thumb1.md.
16212 (define_split): Six of them are thumb1 only and got moved into new
16213 file thumb1.md.
16214 * config/arm/thumb1.md: New file comprised of above thumb1 only
16215 patterns.
16216
16217 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16218
16219 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
16220 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
16221 dependencies.
16222 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
16223 (aarch64_crc_builtin_datum): New struct.
16224 (aarch64_crc_builtin_data): New.
16225 (aarch64_init_crc32_builtins): New function.
16226 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
16227 (aarch64_crc32_expand_builtin): New.
16228 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
16229 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16230 __ARM_FEATURE_CRC32 when appropriate.
16231 (TARGET_CRC32): Define.
16232 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
16233 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
16234 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
16235 (aarch64_<crc_variant>): New pattern.
16236 * config/aarch64/arm_acle.h: New file.
16237 * config/aarch64/iterators.md (CRC): New int iterator.
16238 (crc_variant, crc_mode): New int attributes.
16239 * doc/aarch64-acle-intrinsics.texi: New file.
16240 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
16241 Include aarch64-acle-intrinsics.texi.
16242
16243 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
16244
16245 * tree-vect-data-refs.c (vect_grouped_store_supported): New
16246 check for stores group of length 3.
16247 (vect_permute_store_chain): New permutations for stores group of
16248 length 3.
16249 * tree-vect-stmts.c (vect_model_store_cost): Change cost
16250 of vec_perm_shuffle for the new permutations.
16251
16252 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
16253
16254 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
16255 table rewriting temporarily on targets not supporting ONE_ONLY.
16256
16257 2014-06-11 Richard Biener <rguenther@suse.de>
16258
16259 PR middle-end/61437
16260 Revert
16261 2014-06-04 Richard Biener <rguenther@suse.de>
16262
16263 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
16264 TREE_PUBLIC and DECL_EXTERNAL decls.
16265
16266 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
16267
16268 * varasm.c (set_implicit_section): New function.
16269 (resolve_unique_section): Use it to set implicit section
16270 for aliases, too.
16271 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
16272 (default_function_section): Likewise.
16273 (decl_binds_to_current_def_p): Constify argument.
16274 * varasm.h (decl_binds_to_current_def_p): Update prototype.
16275 * asan.c (asan_protect_global): Use
16276 symtab_get_node (decl)->implicit_section.
16277 * symtab.c (dump_symtab_base): Dump implicit sections.
16278 (verify_symtab_base): Verify sanity of sectoins and comdats.
16279 (symtab_resolve_alias): Alias share the section of its target.
16280 (set_section_1): New function.
16281 (symtab_node::set_section): Move here, recurse to aliases.
16282 (verify_symtab): Check for duplicated symtab lists.
16283 * tree-core.h (implicit_section_name_p): Remove.
16284 * tree-vect-data-refs.c: Include varasm.h.
16285 (vect_can_force_dr_alignment_p): Fix conditional on when
16286 decl bints to current definition; use
16287 symtab_get_node (decl)->implicit_section.
16288 * cgraph.c (cgraph_make_node_local_1): Fix section set.
16289 * cgraph.h (struct symtab_node): Add implicit_section.
16290 (set_section): Rename to ...
16291 (set_section_for_node): ... this one.
16292 (set_section): Declare.
16293 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
16294 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
16295 input_overwrite_node, input_varpool_node): Stream implicit_section.
16296 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
16297 removal; it will fail in LTO.
16298
16299 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16300
16301 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
16302 Change second alternative type to f_mcr.
16303 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
16304 and 12th alternatives' types to f_mcr and f_mrc.
16305 (*movdi_aarch64): Same for 12th and 13th alternatives.
16306 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
16307 (aarch64_movtilow_tilow): Change type to fmov.
16308
16309 2014-06-10 Jiong Wang <jiong.wang@arm.com>
16310
16311 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
16312 (aarch64_save_or_restore_callee_save_registers): Fix layout.
16313
16314 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16315
16316 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
16317 New expander.
16318 (aarch64_sqrdmulh_lane<mode>): Likewise.
16319 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16320 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16321 (aarch64_sqdmulh_laneq<mode>): New expander.
16322 (aarch64_sqrdmulh_laneq<mode>): Likewise.
16323 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
16324 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
16325 (aarch64_sqdmulh_lane<mode>): New expander.
16326 (aarch64_sqrdmulh_lane<mode>): Likewise.
16327 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16328 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16329 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
16330 (aarch64_sqdmlal_laneq<mode>): Likewise.
16331 (aarch64_sqdmlsl_lane<mode>): Likewise.
16332 (aarch64_sqdmlsl_laneq<mode>): Likewise.
16333 (aarch64_sqdmlal2_lane<mode>): Likewise.
16334 (aarch64_sqdmlal2_laneq<mode>): Likewise.
16335 (aarch64_sqdmlsl2_lane<mode>): Likewise.
16336 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
16337 (aarch64_sqdmull_lane<mode>): Likewise.
16338 (aarch64_sqdmull_laneq<mode>): Likewise.
16339 (aarch64_sqdmull2_lane<mode>): Likewise.
16340 (aarch64_sqdmull2_laneq<mode>): Likewise.
16341
16342 2014-06-10 Richard Biener <rguenther@suse.de>
16343
16344 PR tree-optimization/61438
16345 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
16346 (eliminate_dom_walker::before_dom_children): Only try to inhibit
16347 insertion of IVs if running PRE.
16348 (eliminate): Adjust.
16349 (pass_pre::execute): Likewise.
16350 (pass_fre::execute): Likewise.
16351
16352 2014-06-10 Richard Biener <rguenther@suse.de>
16353
16354 PR middle-end/61456
16355 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16356 Do not use the main variant for the type comparison.
16357 (ncr_compar): Likewise.
16358 (nonoverlapping_component_refs_p): Likewise.
16359
16360 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
16361
16362 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
16363 REG_CFA_RESTORE mode.
16364
16365 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
16366
16367 * config/i386/i386.c (expand_vec_perm_pblendv): New.
16368 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
16369 expand_vec_perm_pblendv.
16370
16371 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16372
16373 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
16374 available.
16375 Simplify description of __crc32d and __crc32cd intrinsics.
16376 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
16377 availability.
16378
16379 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
16380
16381 PR lto/61334
16382 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
16383 * config.in: Regenerate.
16384 * configure: Likewise.
16385
16386 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
16387
16388 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
16389 and public vars.
16390 (intersect_static_var_sets): Remove.
16391 (propagate): Do not prune local statics.
16392
16393 2014-06-10 Jakub Jelinek <jakub@redhat.com>
16394
16395 PR fortran/60928
16396 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
16397 Set lastprivate_firstprivate even if omp_private_outer_ref
16398 langhook returns true.
16399 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
16400 langhook, call unshare_expr on new_var and call
16401 build_outer_var_ref to get the last argument.
16402
16403 2014-06-10 Marek Polacek <polacek@redhat.com>
16404
16405 PR c/60988
16406 * doc/extend.texi: Add cindex for transparent_union.
16407
16408 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
16409
16410 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
16411 init_symbolic_number ().
16412
16413 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
16414
16415 PR middle-end/61141
16416 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
16417 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
16418 (verify_rtl_sharing): Likewise.
16419
16420 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
16421
16422 PR c++/54442
16423 * tree.c (build_qualified_type): Use a canonical type for
16424 TYPE_CANONICAL.
16425
16426 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16427
16428 * config/arm/arm-modes.def: Remove XFmode.
16429
16430 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
16431
16432 PR target/61062
16433 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
16434 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
16435 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
16436 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
16437 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
16438 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
16439 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
16440 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
16441 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
16442
16443 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
16444
16445 * tree-core.h (tree_decl_with_vis): Remove section_name.
16446
16447 2014-06-09 Kito Cheng <kito@0xlab.org>
16448
16449 * ira.c (ira): Don't call init_caller_save if LRA enabled
16450 since LRA use its own infrastructure to handle that.
16451
16452 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16453
16454 * symtab.c (dump_symtab_base): Update dumping.
16455 (symtab_make_decl_local): Clear only DECL_COMDAT.
16456 * tree-vect-data-refs.c (Check that variable is static before
16457 tampering with sections.
16458 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
16459 (cgraph_create_virtual_clone): Likewise.
16460 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
16461 (decl_section_name, set_decl_section_name): New accessors.
16462 (find_decls_types_r): Do not walk section name
16463 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
16464 (decl_comdat_group, decl_comdat_group_id): Constify.
16465 (decl_section_name, set_decl_section_name): Update.
16466 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
16467 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
16468 (cgraph_make_node_local_1): Clear section and comdat group.
16469 * cgraph.h (set_comdat_group): Sanity check.
16470 (get_section, set_section): New.
16471 * ipa-comdats.c (ipa_comdats): Use get_section.
16472 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
16473 * lto-streamer-out.c: Do not follow section names.
16474 * c-family/c-common.c (handle_section_attribute): Update.
16475 * lto-cgraph.c (lto_output_node): Output section.
16476 (lto_output_varpool_node): Likewise.
16477 (read_comdat_group): Rename to ...
16478 (read_identifier): ... this one.
16479 (read_string_cst): New function.
16480 (input_node, input_varpool_node): Input section names.
16481 * tree-emutls.c (get_emutls_init_templ_addr): Update.
16482 (new_emutls_decl): Update.
16483 (secname_for_decl): Check section names only of static vars.
16484 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
16485 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
16486 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
16487 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
16488 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
16489 * config/mcore/mcore.c (mcore_unique_section): Likewise.
16490 * config/mips/mips.c (mips16_build_function_stub): Likewise.
16491 * config/v850/v850.c (v850_insert_attributes): Likewise.
16492 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
16493 Likewise.
16494 (h8300_handle_tiny_data_attribute): Likewise.
16495 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
16496 (bfin_handle_l2_attribute): Likewise.
16497
16498 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16499
16500 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
16501 remove static initializer.
16502
16503 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16504
16505 * varasm.c (use_blocks_for_decl_p): Check symbol table
16506 instead of alias attribute.
16507 (place_block_symbol): Recurse on aliases.
16508
16509 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16510
16511 * ipa-visibility.c: Include varasm.h
16512 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
16513
16514 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16515
16516 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
16517 outputting aliases.
16518
16519 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
16520
16521 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
16522 from test_insn into GGC space escape via SET_SRC.
16523
16524 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
16525
16526 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
16527 call statement, if any.
16528 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
16529 statements, if any. Tidy up.
16530
16531 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
16532
16533 PR target/61431
16534 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
16535 iterators, VSX_D that handles 64-bit types, and VSX_LE that
16536 handles swapping the two 64-bit double words on little endian
16537 systems. Include V1TImode and optionally TImode in VSX_LE so that
16538 these types are properly swapped. Change all of the insns and
16539 splits that do the 64-bit swaps to use VSX_LE.
16540 (vsx_le_perm_load_<mode>): Likewise.
16541 (vsx_le_perm_store_<mode>): Likewise.
16542 (splitters for little endian memory operations): Likewise.
16543 (vsx_xxpermdi2_le_<mode>): Likewise.
16544 (vsx_lxvd2x2_le_<mode>): Likewise.
16545 (vsx_stxvd2x2_le_<mode>): Likewise.
16546
16547 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
16548
16549 PR target/61423
16550 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
16551 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
16552 and corresponding splitters. Zero extend general register
16553 or memory input operand to XMM temporary. Enable for
16554 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
16555 (floatunssi<mode>2): Update expander predicate.
16556
16557 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
16558
16559 PR rtl-optimization/61325
16560 * lra-constraints.c (process_address_1): Check scale equal to one
16561 to prevent transformation: base + scale * index => base + new_reg.
16562
16563 2014-06-06 Richard Biener <rguenther@suse.de>
16564
16565 PR tree-optimization/59299
16566 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
16567 a def operand.
16568 (nearest_common_dominator_of_uses): Likewise.
16569 (statement_sink_location): Adjust. Support sinking loads.
16570
16571 2014-06-06 Martin Jambor <mjambor@suse.cz>
16572
16573 * ipa-prop.c (get_place_in_agg_contents_list): New function.
16574 (build_agg_jump_func_from_list): Likewise.
16575 (determine_known_aggregate_parts): Renamed to
16576 determine_locally_known_aggregate_parts. Moved some functionality
16577 to the two functions above, removed bound checks.
16578
16579 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
16580
16581 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
16582 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
16583 (aarch64_progress_pointer): Likewise.
16584 (aarch64_copy_one_part_and_move_pointers): Likewise.
16585 (aarch64_expand_movmen): Likewise.
16586 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
16587 * config/aarch64/aarch64.md (movmem<mode>): New.
16588
16589 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
16590
16591 * targhooks.c (default_add_stmt_cost): Call target specific
16592 hook instead of default one.
16593
16594 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
16595
16596 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
16597 endianness instead of host endianness.
16598 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
16599 comments.
16600
16601 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
16602
16603 PR debug/53927
16604 * function.c (instantiate_decls): Process the saved static chain.
16605 (expand_function_start): If not optimizing, save the static chain
16606 onto the stack.
16607 * tree-nested.c (convert_all_function_calls): Always create the static
16608 chain for nested functions if not optimizing.
16609
16610 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
16611
16612 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
16613
16614 2014-06-06 Richard Biener <rguenther@suse.de>
16615
16616 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
16617 (construct_init_block): Likewise.
16618 (construct_exit_block): Likewise.
16619 (pass_expand::execute): Likewise.
16620 * graphite.c (graphite_transforms): Replace check for current_loops
16621 with a check for > 1 loops.
16622 (pass_graphite_transforms::execute): Adjust.
16623 * ipa-split.c (split_function): Remove check for current_loops.
16624 * omp-low.c (expand_parallel_call): Likewise.
16625 (expand_omp_for_init_counts): Likewise.
16626 (extract_omp_for_update_vars): Likewise.
16627 (expand_omp_for_generic): Likewise.
16628 (expand_omp_sections): Likewise.
16629 (expand_omp_target): Likewise.
16630 * tracer.c (tail_duplicate): Likewise.
16631 (pass_tracer::execute): Likewise.
16632 * trans-mem.c (expand_transaction): Likewise.
16633 * tree-complex.c (expand_complex_div_wide): Likewise.
16634 * tree-eh.c (lower_resx): Likewise.
16635 (cleanup_empty_eh_merge_phis): Likewise.
16636 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
16637 current_loops with a check for > 1 loops.
16638 (pass_predcom::execute): Adjust.
16639 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
16640 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
16641 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
16642 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
16643 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
16644 * tree-switch-conversion.c (process_switch): Likewise.
16645 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
16646 * tree-vrp.c (vrp_visit_phi_node): Likewise.
16647 (execute_vrp): Likewise.
16648 * ubsan.c (ubsan_expand_null_ifn): Likewise.
16649
16650 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
16651
16652 * rtl.h (insn_location): Declare.
16653 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
16654 with UNKNOWN_LOCATION.
16655 * emit-rtl.c (insn_location): New function.
16656 * final.c (notice_source_line): Check that the instruction has a
16657 location before retrieving it and use insn_location.
16658 * modulo-sched.c (loop_single_full_bb_p): Likewise.
16659 * print-rtl.c (print_rtx): Likewise.
16660
16661 2014-06-06 Richard Biener <rguenther@suse.de>
16662
16663 * passes.def: Move 2nd VRP pass before phi-only-cprop.
16664
16665 2014-06-06 Christian Bruel <christian.bruel@st.com>
16666
16667 PR tree-optimization/43934
16668 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
16669 cost.
16670
16671 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
16672
16673 * ira-lives.c (single_reg_class): Add missing break. Explicitly
16674 return NO_REGS for extra address and memory constraints. Handle
16675 operands that match (or are equivalent to something that matches)
16676 extra constant constraints. Ignore other non-register operands.
16677
16678 2014-06-06 Alan Modra <amodra@gmail.com>
16679
16680 PR target/61300
16681 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
16682 * doc/tm.texi: Regenerate.
16683 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
16684 Use throughout in place of REG_PARM_STACK_SPACE.
16685 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
16686 "incoming" param. Pass to rs6000_function_parms_need_stack.
16687 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
16688 prototype_p when incoming. Use function decl when incoming
16689 to handle K&R style functions.
16690 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
16691 (INCOMING_REG_PARM_STACK_SPACE): Define.
16692
16693 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16694
16695 PR target/52472
16696 * cfgexpand.c (expand_debug_expr): Use address space of nested
16697 TREE_TYPE for ADDR_EXPR and MEM_REF.
16698
16699 2014-06-05 Jeff Law <law@redhat.com>
16700
16701 PR tree-optimization/61289
16702 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
16703 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
16704 looking for those which match LHS. All callers changed.
16705 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
16706 parameters and code which manipulated them. All callers changed.
16707 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
16708 and DST_MAP parameters. Simplify invalidation code by just calling
16709 invalidate_equivalences. All callers changed.
16710 (thread_across_edge): Simplify now that we don't need to maintain
16711 the map of equivalences to invalidate.
16712
16713 2014-06-05 Kai Tietz <ktietz@redhat.com>
16714 Richard Henderson <rth@redhat.com>
16715
16716 PR target/46219
16717 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
16718 checking for !TARGET_X32.
16719 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
16720 (sibcall_intern): New define_insn, plus required peepholes.
16721 (sibcall_pop_intern): Likewise.
16722 (sibcall_value_intern): Likewise.
16723 (sibcall_value_pop_intern): Likewise.
16724
16725 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
16726
16727 * tree-inline.c (tree_function_versioning): Check DF info existence
16728 before accessing it.
16729
16730 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16731
16732 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
16733 frame_size.
16734 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
16735 aarch64_frame hard_fp_offset and frame_size.
16736 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
16737 frame_size; remove original_frame_size.
16738 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
16739 (aarch64_initial_elimination_offset): Remove frame_size and
16740 offset. Use aarch64_frame frame_size.
16741
16742 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16743 Jiong Wang <jiong.wang@arm.com>
16744 Renlin <renlin.li@arm.com>
16745
16746 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
16747 initialization of R30 offset. Update offset. Iterate core
16748 regisers upto X30. Remove X29, X30 specific code.
16749
16750 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16751 Jiong Wang <jiong.wang@arm.com>
16752
16753 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
16754 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
16755 (aarch64_register_saved_on_entry): Adjust test.
16756
16757 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16758
16759 * config/aarch64/aarch64.h (machine_function): Move
16760 saved_varargs_size from here...
16761 (aarch64_frame): ... to here.
16762
16763 * config/aarch64/aarch64.c (aarch64_expand_prologue)
16764 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
16765 (aarch64_initial_elimination_offset)
16766 (aarch64_setup_incoming_varargs): Adjust location of
16767 saved_varargs_size.
16768
16769 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16770
16771 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
16772 layout comment.
16773
16774 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
16775 Prachi Godbole <Prachi.Godbole@imgtec.com>
16776
16777 * config/mips/mips-cpus.def: Add definition for p5600. Updated
16778 mips32r5 entry to use PROCESSOR_P5600.
16779 * config/mips/mips-tables.opt: Regenerate.
16780 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
16781 * config/mips/mips.c (mips_fmadd_bypass): New function.
16782 (mips_rtx_cost_data): Add costs for p5600.
16783 (mips_issue_rate): Add support for p5600.
16784 (mips_multipass_dfa_lookahead): Likewise.
16785 * config/mips/mips.h (TUNE_P5600): New define.
16786 (TUNE_MACC_CHAINS): Add TUNE_P5600.
16787 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
16788 * config/mips/mips.md: Include p5600.md.
16789 (processor): Add p5600.
16790 * config/mips/p5600.md: New file.
16791
16792 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
16793
16794 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
16795 * config/i386/predicates.md (palignr_operand): New.
16796 Indicates if permutation is suitable for palignr instruction.
16797
16798 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
16799
16800 PR tree-optimization/61319
16801 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
16802 stmt belongs to loop.
16803
16804 2014-06-05 Richard Biener <rguenther@suse.de>
16805
16806 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
16807 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
16808 (lookup_tmp_var): Adjust.
16809 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
16810
16811 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16812
16813 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
16814
16815 2014-06-05 Marek Polacek <polacek@redhat.com>
16816
16817 PR c/49706
16818 * doc/invoke.texi: Document -Wlogical-not-parentheses.
16819
16820 2014-06-04 Tom de Vries <tom@codesourcery.com>
16821
16822 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
16823 CONST_INT.
16824
16825 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
16826
16827 PR tree-optimization/61385
16828 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
16829
16830 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
16831
16832 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
16833 changed to use fatal_error.
16834 (main): Ensure lto_wrapper_cleanup is run atexit.
16835
16836 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16837
16838 * lra-constraints.c (valid_address_p): Move earlier in file.
16839 (address_eliminator): New structure.
16840 (satisfies_memory_constraint_p): New function.
16841 (satisfies_address_constraint_p): Likewise.
16842 (process_alt_operands, process_address, curr_insn_transform): Use them.
16843
16844 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16845
16846 * lra-int.h (lra_static_insn_data): Make operand_alternative a
16847 const pointer.
16848 (target_lra_int, default_target_lra_int, this_target_lra_int)
16849 (op_alt_data): Delete.
16850 * lra.h (lra_init): Delete.
16851 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
16852 (init_insn_code_data_once): Remove op_alt_data handling.
16853 (finish_insn_code_data_once): Likewise.
16854 (init_op_alt_data): Delete.
16855 (get_static_insn_data): Initialize operand_alternative to null.
16856 (free_insn_recog_data): Cast operand_alternative before freeing it.
16857 (setup_operand_alternative): Take the operand_alternative as
16858 parameter and assume it isn't already cached in the static
16859 insn data.
16860 (lra_set_insn_recog_data): Update accordingly.
16861 (lra_init): Delete.
16862 * ira.c (ira_init): Don't call lra_init.
16863 * target-globals.h (this_target_lra_int): Declare.
16864 (target_globals): Remove lra_int.
16865 (restore_target_globals): Update accordingly.
16866 * target-globals.c: Don't include lra-int.h.
16867 (default_target_globals, save_target_globals): Remove lra_int.
16868
16869 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16870
16871 * recog.h (operand_alternative): Convert reg_class, reject,
16872 matched and matches into bitfields.
16873 (preprocess_constraints): New overload.
16874 (preprocess_insn_constraints): New function.
16875 (preprocess_constraints): Take the insn as parameter.
16876 (recog_op_alt): Change into a pointer.
16877 (target_recog): Add x_op_alt.
16878 * recog.c (asm_op_alt): New variable.
16879 (recog_op_alt): Change into a pointer.
16880 (preprocess_constraints): New overload, replacing the old function
16881 definition with one that doesn't use global state.
16882 (preprocess_insn_constraints): New function.
16883 (preprocess_constraints): Use them. Take the insn as parameter.
16884 Use asm_op_alt for asms.
16885 (recog_init): Free existing x_op_alt entries.
16886 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
16887 pointer const.
16888 (make_early_clobber_and_input_conflicts): Likewise.
16889 (process_bb_node_lives): Pass the insn to process_constraints.
16890 * reg-stack.c (check_asm_stack_operands): Likewise.
16891 (subst_asm_stack_regs): Likewise.
16892 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
16893 * regrename.c (build_def_use): Likewise.
16894 * sched-deps.c (sched_analyze_insn): Likewise.
16895 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
16896 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
16897 (note_invalid_constants): Likewise.
16898 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
16899 (ix86_legitimate_combined_insn): Make operand_alternative pointer
16900 const.
16901
16902 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16903
16904 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
16905 * ira-lives.c (check_and_make_def_conflict): Check for disabled
16906 alternatives.
16907 (make_early_clobber_and_input_conflicts): Likewise.
16908 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
16909
16910 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16911
16912 * recog.h (alternative_class): New function.
16913 (which_op_alt): Return a const recog_op_alt.
16914 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
16915 (subst_asm_stack_regs): Likewise.
16916 * config/arm/arm.c (note_invalid_constants): Likewise.
16917 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
16918 the operand_alternative; use alternative class instead.
16919 * sel-sched.c (get_reg_class): Likewise.
16920 * regrename.c (build_def_use): Likewise.
16921 (hide_operands, restore_operands, record_out_operands): Update type
16922 accordingly.
16923
16924 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16925
16926 * recog.h (recog_op_alt): Convert to a flat array.
16927 (which_op_alt): New function.
16928 * recog.c (recog_op_alt): Convert to a flat array.
16929 (preprocess_constraints): Update accordingly, grouping all
16930 operands of the same alternative together, rather than the
16931 other way around.
16932 * ira-lives.c (check_and_make_def_conflict): Likewise.
16933 (make_early_clobber_and_input_conflicts): Likewise.
16934 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
16935 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
16936 (subst_asm_stack_regs): Likewise.
16937 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
16938 * regrename.c (hide_operands, record_out_operands): Likewise.
16939 (build_def_use): Likewise.
16940 * sel-sched.c (get_reg_class): Likewise.
16941 * config/arm/arm.c (note_invalid_constants): Likewise.
16942
16943 2014-06-04 Jason Merrill <jason@redhat.com>
16944
16945 PR c++/51253
16946 PR c++/61382
16947 * gimplify.c (gimplify_arg): Non-static.
16948 * gimplify.h: Declare it.
16949
16950 2014-06-04 Richard Biener <rguenther@suse.de>
16951
16952 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
16953 TREE_PUBLIC and DECL_EXTERNAL decls.
16954
16955 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
16956
16957 * regcprop.c (copyprop_hardreg_forward_1): Account for
16958 HARD_REGNO_CALL_PART_CLOBBERED.
16959
16960 2014-06-04 Richard Biener <rguenther@suse.de>
16961
16962 * configure.ac: Check whether the underlying type of int64_t
16963 is long or long long.
16964 * configure: Regenerate.
16965 * config.in: Likewise.
16966 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
16967 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
16968
16969 2014-06-04 Richard Biener <rguenther@suse.de>
16970
16971 PR tree-optimization/60098
16972 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
16973 we hit a kill.
16974 (dse_optimize_stmt): Simplify, now that we found a kill
16975 earlier.
16976
16977 2014-06-04 Richard Biener <rguenther@suse.de>
16978
16979 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
16980 of accesses with non-invariant address.
16981
16982 2014-06-04 Martin Liska <mliska@suse.cz>
16983
16984 * cgraph.h (cgraph_make_wrapper): New function introduced.
16985 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
16986 * ipa-inline.h (inline_analyze_function): The function is global.
16987 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
16988
16989 2014-06-04 Martin Liska <mliska@suse.cz>
16990
16991 * tree.h (private_lookup_attribute_starting): New function.
16992 (lookup_attribute_starting): Likewise.
16993 * tree.c (private_lookup_attribute_starting): Likewise.
16994
16995 2014-06-04 Martin Liska <mliska@suse.cz>
16996
16997 * cgraph.h (expand_thunk): New argument added.
16998 (address_taken_from_non_vtable_p): New global function.
16999 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
17000 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
17001 * cgraphunit.c (analyze_function): Likewise.
17002 (assemble_thunks_and_aliases): Argument added to call.
17003 (expand_thunk): New argument forces to produce GIMPLE thunk.
17004
17005 2014-06-04 Martin Liska <mliska@suse.cz>
17006
17007 * coverage.h (coverage_compute_cfg_checksum): Argument added.
17008 * coverage.c (coverage_compute_cfg_checksum): Likewise.
17009 * profile.c (branch_prob): Likewise.
17010
17011 2014-06-04 Martin Jambor <mjambor@suse.cz>
17012
17013 PR ipa/61340
17014 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
17015 handler for switch on an ipa_ref_use enum.
17016 * ipa-reference.c (analyze_function): Likewise.
17017
17018 2014-06-04 Kai Tietz <ktietz@redhat.com>
17019
17020 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
17021 from old call-instruction.
17022
17023 2014-06-04 Bin Cheng <bin.cheng@arm.com>
17024
17025 * config/aarch64/aarch64.c (aarch64_classify_address)
17026 (aarch64_legitimize_reload_address): Support full addressing modes
17027 for vector modes.
17028 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
17029 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
17030
17031 2014-06-03 Andrew Pinski <apinski@cavium.com>
17032
17033 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
17034 for OP0.
17035
17036 2014-06-03 Andrew Pinski <apinski@cavium.com>
17037
17038 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
17039 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
17040
17041 2014-06-03 Kai Tietz <ktietz@redhat.com>
17042
17043 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
17044 for 64-bit ms-abi.
17045
17046 2014-06-03 Dehao Chen <dehao@google.com>
17047
17048 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
17049 the same loop.
17050
17051 2014-06-03 Marek Polacek <polacek@redhat.com>
17052
17053 PR c/60439
17054 * doc/invoke.texi: Document -Wswitch-bool.
17055 * function.c (stack_protect_epilogue): Cast controlling expression of
17056 the switch to int.
17057 * gengtype.c (walk_type): Generate switch expression with its
17058 controlling expression cast to int.
17059
17060 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
17061
17062 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
17063 and attiny841.
17064 * config/avr/avr-tables.opt: Regenerate.
17065 * config/avr/t-multilib: Regenerate.
17066 * doc/avr-mmcu.texi: Regenerate.
17067
17068 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
17069 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17070
17071 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
17072 (ata6617c, ata664251): Add new avr35 devices.
17073 (ata6612c): Add new avr4 device.
17074 (ata6613c, ata6614q): Add new avr5 devices.
17075 * config/avr/avr-tables.opt: Regenerate.
17076 * config/avr/t-multilib: Regenerate.
17077 * doc/avr-mmcu.texi: Regenerate.
17078
17079 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17080
17081 * gcc/config/aarch64/aarch64-builtins.c
17082 (aarch64_types_binop_ssu_qualifiers): New static data.
17083 (TYPES_BINOP_SSU): Define.
17084 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
17085 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
17086 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
17087 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
17088 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
17089 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
17090 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
17091 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
17092 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
17093 suffix to builtin function name, remove cast.
17094 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
17095 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
17096 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
17097
17098 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17099
17100 * gcc/config/aarch64/aarch64-builtins.c
17101 (aarch64_types_binop_uus_qualifiers,
17102 aarch64_types_shift_to_unsigned_qualifiers,
17103 aarch64_types_unsigned_shiftacc_qualifiers): Define.
17104 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
17105 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
17106 sqshlu_n, uqshl_n): Update qualifiers.
17107 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
17108 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
17109 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
17110 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
17111 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
17112 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
17113 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
17114 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
17115 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
17116 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
17117 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
17118 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
17119 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
17120 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
17121 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
17122 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
17123 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
17124 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
17125 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
17126 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
17127 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
17128 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
17129 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
17130 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
17131 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
17132 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
17133 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
17134
17135 2014-06-03 Teresa Johnson <tejohnson@google.com>
17136
17137 * tree-sra.c (modify_function): Record caller nodes after rebuild.
17138
17139 2014-06-02 Jason Merrill <jason@redhat.com>
17140
17141 PR c++/61020
17142 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
17143
17144 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17145
17146 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
17147 location == 0.
17148
17149 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17150
17151 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
17152 New pattern.
17153 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
17154 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
17155 * config/aarch64/iterators.md (REVERSE): New iterator.
17156 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
17157 (rev_op): New int_attribute.
17158 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
17159 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
17160 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
17161 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
17162 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
17163 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
17164 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
17165 Replace temporary __asm__ with __builtin_shuffle.
17166
17167 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
17168
17169 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
17170 mips64r5.
17171 * config/mips/mips-tables.opt: Regenerate.
17172 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
17173 to use mips_isa_rev rather than ISA_MIPS32R2.
17174 * config/mips/mips.h (ISA_MIPS32R3): New define.
17175 (ISA_MIPS32R5): New define.
17176 (ISA_MIPS64R3): New define.
17177 (ISA_MIPS64R5): New define.
17178 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
17179 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
17180 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
17181 and mips64r5.
17182 (MIPS_ISA_SYNCI_SPEC): Likewise.
17183 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
17184 (LINK_SPEC): Added mips32r3 and mips32r5.
17185 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
17186 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
17187 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
17188 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
17189 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
17190 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
17191 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
17192
17193 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
17194
17195 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
17196 options.
17197 * config/mips/mips.opt (mxpa): New option.
17198 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
17199 assembler.
17200
17201 2014-06-03 Martin Jambor <mjambor@suse.cz>
17202
17203 PR ipa/61160
17204 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
17205 thunks.
17206
17207 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
17208
17209 PR tree-optimization/61328
17210 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
17211 initialization from find_bswap_or_nop_1.
17212 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
17213 in source_expr2 before using the size value the function sets. Also
17214 make use of init_symbolic_number () in both the old place and
17215 find_bswap_or_nop_load () to avoid reading uninitialized memory when
17216 doing recursion in the GIMPLE_BINARY_RHS case.
17217
17218 2014-06-03 Richard Biener <rguenther@suse.de>
17219
17220 PR tree-optimization/61383
17221 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
17222 stmts can't trap.
17223
17224 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
17225
17226 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
17227 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
17228 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
17229 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
17230 in this file.
17231 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
17232 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
17233 * system.h: ...here and make it unconditional.
17234 * target.def (conditional_register_usage): Mention
17235 define_register_constraint instead of old-style constraint macros.
17236 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
17237 * doc/tm.texi: Regenerate.
17238 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
17239 protected by !USE_MD_CONSTRAINTS.
17240 * config/frv/frv.md: Remove quote from old version of documentation.
17241 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
17242 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
17243 CONST_DOUBLE_OK_FOR_LETTER.
17244 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
17245
17246 2014-06-02 Andrew Pinski <apinski@cavium.com>
17247
17248 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
17249 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
17250 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
17251 file whose name depends on -mabi= and -mbig-endian.
17252 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
17253 Handle LP64 better and handle ilp32 too.
17254 (MULTILIB_OPTIONS): Delete.
17255 (MULTILIB_DIRNAMES): Delete.
17256
17257 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
17258
17259 * expr.h: Remove prototypes of functions defined in builtins.c.
17260 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
17261 Remove prototypes of functions defined in builtins.c.
17262 * builtins.h: Update prototype list to include all exported functions.
17263 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
17264 no_c99_libc_has_function): Move to targhooks.c
17265 (build_string_literal, build_call_expr_loc_array,
17266 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
17267 to tree.c.
17268 (expand_builtin_object_size, fold_builtin_object_size): Make static.
17269 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
17270 no_c99_libc_has_function): Relocate from builtins.c.
17271 * tree.c: Include builtins.h.
17272 (build_call_expr_loc_array, build_call_expr_loc_vec,
17273 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
17274 from builtins.c.
17275 * fold-const.h (fold_fma): Move prototype to builtins.h.
17276 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
17277 * asan.c: Include builtins.h.
17278 * cfgexpand.c: Likewise.
17279 * convert.c: Likewise.
17280 * emit-rtl.c: Likewise.
17281 * except.c: Likewise.
17282 * expr.c: Likewise.
17283 * fold-const.c: Likewise.
17284 * gimple-fold.c: Likewise.
17285 * gimple-ssa-strength-reduction.c: Likewise.
17286 * gimplify.c: Likewise.
17287 * ipa-inline.c: Likewise.
17288 * ipa-prop.c: Likewise.
17289 * lto-streamer-out.c: Likewise.
17290 * stmt.c: Likewise.
17291 * tree-inline.c: Likewise.
17292 * tree-object-size.c: Likewise.
17293 * tree-sra.c: Likewise.
17294 * tree-ssa-ccp.c: Likewise.
17295 * tree-ssa-forwprop.c: Likewise.
17296 * tree-ssa-loop-ivcanon.c: Likewise.
17297 * tree-ssa-loop-ivopts.c: Likewise.
17298 * tree-ssa-math-opts.c: Likewise.
17299 * tree-ssa-reassoc.c: Likewise.
17300 * tree-ssa-threadedge.c: Likewise.
17301 * tree-streamer-in.c: Likewise.
17302 * tree-vect-data-refs.c: Likewise.
17303 * tree-vect-patterns.c: Likewise.
17304 * tree-vect-stmts.c: Likewise.
17305 * config/aarch64/aarch64.c: Likewise.
17306 * config/alpha/alpha.c: Likewise.
17307 * config/arc/arc.c: Likewise.
17308 * config/arm/arm.c: Likewise.
17309 * config/avr/avr.c: Likewise.
17310 * config/bfin/bfin.c: Likewise.
17311 * config/c6x/c6x.c: Likewise.
17312 * config/cr16/cr16.c: Likewise.
17313 * config/cris/cris.c: Likewise.
17314 * config/epiphany/epiphany.c: Likewise.
17315 * config/fr30/fr30.c: Likewise.
17316 * config/frv/frv.c: Likewise.
17317 * config/h8300/h8300.c: Likewise.
17318 * config/i386/i386.c: Likewise.
17319 * config/i386/winnt.c: Likewise.
17320 * config/ia64/ia64.c: Likewise.
17321 * config/iq2000/iq2000.c: Likewise.
17322 * config/lm32/lm32.c: Likewise.
17323 * config/m32c/m32c.c: Likewise.
17324 * config/m32r/m32r.c: Likewise.
17325 * config/m68k/m68k.c: Likewise.
17326 * config/mcore/mcore.c: Likewise.
17327 * config/mep/mep.c: Likewise.
17328 * config/microblaze/microblaze.c: Likewise.
17329 * config/mips/mips.c: Likewise.
17330 * config/mmix/mmix.c: Likewise.
17331 * config/mn10300/mn10300.c: Likewise.
17332 * config/moxie/moxie.c: Likewise.
17333 * config/msp430/msp430.c: Likewise.
17334 * config/nds32/nds32.c: Likewise.
17335 * config/pa/pa.c: Likewise.
17336 * config/pdp11/pdp11.c: Likewise.
17337 * config/picochip/picochip.c: Likewise.
17338 * config/rl78/rl78.c: Likewise.
17339 * config/rs6000/rs6000.c: Likewise.
17340 * config/rx/rx.c: Likewise.
17341 * config/s390/s390.c: Likewise.
17342 * config/score/score.c: Likewise.
17343 * config/sh/sh.c: Likewise.
17344 * config/sparc/sparc.c: Likewise.
17345 * config/spu/spu.c: Likewise.
17346 * config/stormy16/stormy16.c: Likewise.
17347 * config/tilegx/tilegx.c: Likewise.
17348 * config/tilepro/tilepro.c: Likewise.
17349 * config/v850/v850.c: Likewise.
17350 * config/vax/vax.c: Likewise.
17351 * config/xtensa/xtensa.c: Likewise.
17352
17353 2014-06-02 Jeff Law <law@redhat.com>
17354
17355 PR rtl-optimization/61094
17356 * ree.c (combine_reaching_defs): Do not reextend an insn if it
17357 was marked as do_no_reextend. If a copy is needed to eliminate
17358 an extension, then mark it as do_not_reextend.
17359
17360 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
17361
17362 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
17363
17364 2014-06-02 Richard Henderson <rth@redhat.com>
17365
17366 PR target/61336
17367 * config/alpha/alpha.c (print_operand_address): Allow symbolic
17368 addresses inside asms. Use output_operand_lossage instead of
17369 gcc_unreachable.
17370
17371 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
17372
17373 PR target/61239
17374 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
17375 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
17376
17377 2014-06-02 Tom de Vries <tom@codesourcery.com>
17378
17379 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
17380 case that x has VOIDmode.
17381
17382 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
17383
17384 * varasm.c (copy_constant): Delete function.
17385 (build_constant_desc): Don't call it.
17386
17387 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17388
17389 PR target/61154
17390 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
17391 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
17392 with immediate_operand.
17393
17394 2014-06-02 Andreas Schwab <schwab@suse.de>
17395
17396 * config/ia64/ia64.c
17397 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
17398 pending_data_specs first.
17399
17400 2014-06-02 Richard Biener <rguenther@suse.de>
17401
17402 PR tree-optimization/61378
17403 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
17404 valueized_anything.
17405
17406 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
17407
17408 * config/i386/constraints.md (Bw): Rename from 'w'.
17409 (Bz): Rename from 'z'.
17410 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
17411
17412 2014-06-01 Kai Tietz <ktietz@redhat.com>
17413
17414 PR target/61377
17415 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
17416 * config/i386/i386.md (sibcall_insn_operand): Use Bs
17417 instead of m constraint.
17418
17419 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
17420
17421 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
17422 a separate alternative where the scratch operand 2 is marked as
17423 early clobber.
17424
17425 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
17426
17427 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
17428 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
17429 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
17430 and __builtins_arm_get_fpscr.
17431 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
17432 __builtins_arm_get_fpscr.
17433 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
17434 __builtins_arm_ldfpscr.
17435 (arm_atomic_assign_expand_fenv): New function.
17436 * config/arm/vfp.md (set_fpscr): New pattern.
17437 (get_fpscr) : Likewise.
17438 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
17439 VUNSPEC_SET_FPSCR.
17440 * doc/extend.texi (AARCH64 Built-in Functions) : Document
17441 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
17442
17443 2014-05-30 Jakub Jelinek <jakub@redhat.com>
17444
17445 * asan.c (report_error_func): Add SLOW_P argument, use
17446 BUILT_IN_ASAN_*_N if set.
17447 (build_check_stmt): Likewise.
17448 (instrument_derefs): If T has insufficient alignment,
17449 force same handling as for odd sizes.
17450
17451 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
17452 BUILT_IN_ASAN_REPORT_STORE_N): New.
17453 * asan.c (struct asan_mem_ref): Change access_size type to
17454 HOST_WIDE_INT.
17455 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
17456 update_mem_ref_hash_table): Likewise.
17457 (asan_mem_ref_hasher::hash): Hash in a HWI.
17458 (report_error_func): Change size_in_bytes argument to HWI.
17459 Use *_N builtins if size_in_bytes is larger than 16 or not power of
17460 two.
17461 (build_shadow_mem_access): New function.
17462 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
17463 Handle size_in_bytes not power of two or larger than 16.
17464 (instrument_derefs): Don't give up if size_in_bytes is not
17465 power of two or is larger than 16.
17466
17467 2014-05-30 Kai Tietz <ktietz@redhat.com>
17468
17469 PR target/60104
17470 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
17471 for sibling-tail-calls.
17472 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
17473 to its use.
17474 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
17475 (sibcall_insn_operand): Add check for sibcall_memory_operand.
17476
17477 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17478
17479 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
17480 * config/avr/avr-tables.opt: Regenerate.
17481 * config/avr/t-multilib: Regenerate.
17482 * doc/avr-mmcu.texi: Regenerate.
17483
17484 2014-05-30 Ian Lance Taylor <iant@google.com>
17485
17486 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
17487 target("sse").
17488
17489 2014-05-30 Tom de Vries <tom@codesourcery.com>
17490
17491 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
17492 Redefine as true.
17493
17494 2014-05-30 Tom de Vries <tom@codesourcery.com>
17495
17496 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17497 * lra.c (initialize_lra_reg_info_element): Add init of
17498 actual_call_used_reg_set field.
17499 (lra): Call lra_create_live_ranges before lra_inheritance for
17500 -fuse-caller-save.
17501 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17502 -fuse-caller-save.
17503 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
17504 instead of call_used_reg_set for -fuse-caller-save.
17505 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17506
17507 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17508
17509 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
17510 to mov_imm.
17511 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
17512
17513 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
17514
17515 * ira.c (ira_get_dup_out_num): Check for output operands at
17516 the start of the loop. Handle cases where an included alternative
17517 follows an excluded one.
17518
17519 2014-05-29 Mike Stump <mikestump@comcast.net>
17520
17521 PR debug/61352
17522 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
17523 post ld passes when lto is used.
17524
17525 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
17526
17527 PR rtl-optimization/61325
17528 * lra-constraints.c (process_address): Rename to process_address_1.
17529 (process_address): New function.
17530
17531 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
17532
17533 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
17534 TYPES_BINOPV): New static data.
17535 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
17536 New builtin.
17537 * config/aarch64/aarch64-simd.md (aarch64_ext,
17538 aarch64_im_lane_boundsi): New patterns.
17539 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
17540 patterns for EXT.
17541 (aarch64_evpc_ext): New function.
17542
17543 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
17544
17545 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
17546 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
17547 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
17548 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
17549 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
17550
17551 2014-05-29 Tom de Vries <tom@codesourcery.com>
17552
17553 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
17554
17555 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
17556 Richard Sandiford <rdsandiford@googlemail.com>
17557
17558 * arm/iterators.md (shiftable_ops): New code iterator.
17559 (t2_binop0, arith_shift_insn): New code attributes.
17560 * arm/predicates.md (shift_nomul_operator): New predicate.
17561 * arm/arm.md (insn_enabled): Delete.
17562 (enabled): Remove insn_enabled test.
17563 (*arith_shiftsi): Delete. Replace with ...
17564 (*<arith_shift_insn>_multsi): ... new pattern.
17565 (*<arith_shift_insn>_shiftsi): ... new pattern.
17566 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
17567
17568 2014-05-29 Radovan Obradovic <robradovic@mips.com>
17569 Tom de Vries <tom@codesourcery.com>
17570
17571 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
17572 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
17573 clobber.
17574 (mips_split_call): Use POST_CALL_TMP_REG.
17575 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
17576
17577 2014-05-29 Tom de Vries <tom@codesourcery.com>
17578
17579 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
17580 with #ifdef STACK_REGS.
17581
17582 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
17583
17584 * varasm.c (get_variable_section): Walk aliases.
17585 (place_block_symbol): Walk aliases.
17586
17587 2014-05-28 Tom de Vries <tom@codesourcery.com>
17588
17589 Revert:
17590 2014-05-28 Tom de Vries <tom@codesourcery.com>
17591
17592 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17593 * lra.c (initialize_lra_reg_info_element): Add init of
17594 actual_call_used_reg_set field.
17595 (lra): Call lra_create_live_ranges before lra_inheritance for
17596 -fuse-caller-save.
17597 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17598 -fuse-caller-save.
17599 * lra-constraints.c (need_for_call_save_p): Use
17600 actual_call_used_reg_set instead of call_used_reg_set for
17601 -fuse-caller-save.
17602 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17603
17604 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17605
17606 * doc/md.texi: Document that the % constraint character must
17607 be at the beginning of the string.
17608 * genoutput.c (validate_insn_alternatives): Check that '=',
17609 '+' and '%' only appear at the beginning of a constraint.
17610 * ira.c (commutative_constraint_p): Delete.
17611 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
17612 at the start of the string.
17613 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
17614 duplicate '='s.
17615 * config/arm/neon.md (bicdi3_neon): Likewise.
17616 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
17617 (slt_si, sltu_si): Likewise.
17618 * config/vax/vax.md (sbcdi3): Likewise.
17619 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
17620 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
17621 (mul64): Move '%' to beginning of constraint.
17622 * config/arm/arm.md (*xordi3_insn): Likewise.
17623 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
17624 (xorsi3): Likewise.
17625
17626 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17627
17628 * doc/md.texi: Document the restrictions on the "enabled" attribute.
17629
17630 2014-05-28 Jason Merrill <jason@redhat.com>
17631
17632 PR c++/47202
17633 * cgraph.h (symtab_node::get_comdat_group_id): New.
17634 * cgraphunit.c (analyze_functions): Call it.
17635 * symtab.c (dump_symtab_node): Likewise.
17636 * tree.c (decl_comdat_group_id): New.
17637 * tree.h: Declare it.
17638 * lto-streamer-out.c (write_symbol): Use it.
17639 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
17640
17641 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17642
17643 PR bootstrap/PR61146
17644 * wide-int.cc: Do not include longlong.h when compiling with clang.
17645
17646 2014-05-28 Richard Biener <rguenther@suse.de>
17647
17648 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
17649 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
17650 (vrp_visit_assignment_or_call): Print less vertical space.
17651 (vrp_visit_stmt): Likewise.
17652 (vrp_visit_phi_node): Likewise. For a PHI argument with
17653 VR_VARYING range consider recording it as copy.
17654
17655 2014-05-28 Richard Biener <rguenther@suse.de>
17656
17657 Revert
17658 2014-05-28 Richard Biener <rguenther@suse.de>
17659
17660 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17661
17662 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
17663
17664 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
17665 sufficiently aligned and an offset is used at the same time.
17666 (expand_expr_real_1): Likewise.
17667
17668 2014-05-28 Richard Biener <rguenther@suse.de>
17669
17670 PR middle-end/61045
17671 * fold-const.c (fold_comparison): When folding
17672 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
17673 the sign of the remaining constant operand stays the same.
17674
17675 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
17676
17677 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
17678 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
17679 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
17680 to the assembler.
17681 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
17682 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
17683 (m32bit-doubles) Likewise.
17684 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
17685 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
17686 option for RL78.
17687
17688 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17689
17690 * configure.ac ($gcc_cv_ld_clearcap): New test.
17691 * configure: Regenerate.
17692 * config.in: Regenerate.
17693 * config/sol2.opt (mclear-hwcap): New option.
17694 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
17695 * config/sol2-clearcap.map: Moved here from
17696 testsuite/gcc.target/i386/clearcap.map.
17697 * config/sol2-clearcapv2.map: Move here from
17698 gcc.target/i386/clearcapv2.map.
17699 * config/t-sol2 (install): Depend on install-clearcap-map.
17700 (install-clearcap-map): New target.
17701 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
17702 -mclear-hwcap.
17703
17704 2014-05-28 Richard Biener <rguenther@suse.de>
17705
17706 * hwint.h (*_HALF_WIDE_INT*): Move to ...
17707 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
17708 ... here and remove the rest.
17709 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17710
17711 2014-05-28 Richard Biener <rguenther@suse.de>
17712
17713 PR tree-optimization/61335
17714 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
17715 new range fails, drop to varying.
17716
17717 2014-05-28 Olivier Hainque <hainque@adacore.com>
17718
17719 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
17720 (CPP_SPEC): Add entry for -mcpu=8548.
17721 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
17722 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
17723
17724 2014-05-28 Tom de Vries <tom@codesourcery.com>
17725
17726 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17727 * lra.c (initialize_lra_reg_info_element): Add init of
17728 actual_call_used_reg_set field.
17729 (lra): Call lra_create_live_ranges before lra_inheritance for
17730 -fuse-caller-save.
17731 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17732 -fuse-caller-save.
17733 * lra-constraints.c (need_for_call_save_p): Use
17734 actual_call_used_reg_set instead of call_used_reg_set for
17735 -fuse-caller-save.
17736 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17737
17738 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17739 Tom de Vries <tom@codesourcery.com>
17740
17741 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
17742 to gccoptlist.
17743 (@item -fuse-caller-save): New item.
17744
17745 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17746 Tom de Vries <tom@codesourcery.com>
17747
17748 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
17749 OPT_fuse_caller_save.
17750
17751 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17752 Tom de Vries <tom@codesourcery.com>
17753
17754 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
17755 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
17756 get_call_reg_set_usage.
17757 * resource.c (mark_set_resources, mark_target_live_regs): Use
17758 get_call_reg_set_usage.
17759 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
17760 field.
17761 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
17762 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
17763 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
17764 * ira-build.c (ira_create_allocno): Init
17765 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
17766 (create_cap_allocno, propagate_allocno_info)
17767 (propagate_some_info_from_allocno)
17768 (copy_info_to_removed_store_destinations): Handle
17769 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
17770 * ira-costs.c (ira_tune_allocno_costs): Use
17771 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
17772
17773 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17774 Tom de Vries <tom@codesourcery.com>
17775
17776 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
17777 and function_used_regs_valid fields.
17778 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
17779 find_all_hard_reg_sets.
17780 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
17781 (get_call_reg_set_usage): New function.
17782 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
17783 * regs.h (get_call_reg_set_usage): Declare.
17784
17785 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
17786
17787 PR libgcc/61152
17788 * config/dbx.h (License): Add Runtime Library Exception.
17789 * config/newlib-stdint.h (License): Same.
17790 * config/rtems.h (License): Same
17791 * config/initfini-array.h (License): Same
17792 * config/v850/v850.h (License): Same.
17793 * config/v850/v850-opts.h (License): Same
17794 * config/v850/rtems.h (License): Same.
17795
17796 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
17797
17798 PR target/61044
17799 * doc/extend.texi (Local Labels): Note that label differences are
17800 not supported for AVR.
17801
17802 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17803 Olivier Hainque <hainque@adacore.com>
17804
17805 * rtl.h (set_for_reg_notes): Declare.
17806 * emit-rtl.c (set_for_reg_notes): New function.
17807 (set_unique_reg_note): Use it.
17808 * optabs.c (add_equal_note): Likewise
17809
17810 2014-05-27 Andrew Pinski <apinski@cavium.com>
17811
17812 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
17813 Use <w> for the register in assembly template.
17814 (stack_protect_test): Use the mode of operands[0] for the result.
17815 (stack_protect_test_<mode>): Use <w> for the register
17816 in assembly template.
17817
17818 2014-05-27 DJ Delorie <dj@redhat.com>
17819
17820 * config/rx/rx.c (add_vector_labels): New.
17821 (rx_output_function_prologue): Call it.
17822 (rx_handle_func_attribute): Don't require empty arguments.
17823 (rx_handle_vector_attribute): New.
17824 (rx_attribute_table): Add "vector" attribute.
17825 * doc/extend.texi (interrupt, vector): Document new/changed
17826 RX-specific attributes.
17827
17828 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
17829
17830 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
17831
17832 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
17833 predicate to detect a negative quotient.
17834
17835 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
17836
17837 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
17838 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
17839 Add X - Y CMP 0 to X CMP Y transformation.
17840 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
17841
17842 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
17843
17844 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
17845 before printing.
17846
17847 2014-05-27 Steve Ellcey <sellcey@mips.com>
17848
17849 * config/mips/mips.c: Add include of cgraph.h.
17850
17851 2014-05-27 Richard Biener <rguenther@suse.de>
17852
17853 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
17854
17855 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
17856
17857 PR libgcc/61152
17858 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
17859 * config/arm/arm-cores.def (License): Same.
17860 * config/arm/arm-opts.h (License): Same.
17861 * config/arm/aout.h (License): Same.
17862 * config/arm/bpabi.h (License): Same.
17863 * config/arm/elf.h (License): Same.
17864 * config/arm/linux-elf.h (License): Same.
17865 * config/arm/linux-gas.h (License): Same.
17866 * config/arm/netbsd-elf.h (License): Same.
17867 * config/arm/uclinux-eabi.h (License): Same.
17868 * config/arm/uclinux-elf.h (License): Same.
17869 * config/arm/vxworks.h (License): Same.
17870
17871 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17872
17873 * config/arm/neon.md (neon_bswap<mode>): New pattern.
17874 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
17875 (arm_init_neon_builtins): Handle NEON_BSWAP.
17876 Define required type nodes.
17877 (arm_expand_neon_builtin): Handle NEON_BSWAP.
17878 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
17879 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
17880 * config/arm/iterators.md (VDQHSD): New mode iterator.
17881
17882 2014-05-27 Richard Biener <rguenther@suse.de>
17883
17884 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
17885 Try using literal operands when comparing value-ranges failed.
17886
17887 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
17888
17889 * ira.c (commutative_operand): Adjust for change to recog_data.
17890 [Missing from previous commit.]
17891
17892 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
17893
17894 * system.h (TEST_BIT): New macro.
17895 * recog.h (alternative_mask): New type.
17896 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
17897 (recog_data_d): Replace alternative_enabled_p array with
17898 enabled_alternatives.
17899 (target_recog): New structure.
17900 (default_target_recog, this_target_recog): Declare.
17901 (get_enabled_alternatives, recog_init): Likewise.
17902 * recog.c (default_target_recog, this_target_recog): New variables.
17903 (get_enabled_alternatives): New function.
17904 (extract_insn): Use it.
17905 (recog_init): New function.
17906 (preprocess_constraints, constrain_operands): Adjust for change to
17907 recog_data.
17908 * postreload.c (reload_cse_simplify_operands): Likewise.
17909 * reload.c (find_reloads): Likewise.
17910 * ira-costs.c (record_reg_classes): Likewise.
17911 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
17912 all alternatives after a disabled one would be skipped.
17913 (ira_implicitly_set_insn_hard_regs): Likewise.
17914 * ira.c (ira_setup_alts): Adjust for change to recog_data.
17915 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
17916 with enabled_alternatives.
17917 * lra.c (free_insn_recog_data): Update accordingly.
17918 (lra_update_insn_recog_data): Likewise.
17919 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
17920 * lra-constraints.c (process_alt_operands): Likewise. Handle
17921 only_alternative as part of the enabled mask.
17922 * target-globals.h (this_target_recog): Declare.
17923 (target_globals): Add a recog field.
17924 (restore_target_globals): Restore this_target_recog.
17925 * target-globals.c: Include recog.h.
17926 (default_target_globals): Initialize recog field.
17927 (save_target_globals): Likewise.
17928 * reginfo.c (reinit_regs): Call recog_init.
17929 * toplev.c (backend_init_target): Likewise.
17930
17931 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
17932
17933 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
17934 rather than any named insn's code.
17935
17936 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
17937
17938 PR libgcc/61152
17939 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
17940 * config/arm/arm-cores.def (License): Same.
17941
17942 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
17943
17944 * tree.h (decl_comdat_group): Declare.
17945 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
17946 * tree.c (decl_comdat_group): Here.
17947
17948 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
17949
17950 PR rtl-optimization/61222
17951 * combine.c (simplify_shift_const_1): When moving a PLUS outside
17952 the shift, truncate the PLUS operand to the result mode.
17953
17954 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
17955
17956 PR target/61271
17957 * config/i386/i386.c (ix86_rtx_costs)
17958 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
17959 Fix condition.
17960
17961 2014-05-26 Martin Jambor <mjambor@suse.cz>
17962
17963 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
17964 subreg uses.
17965
17966 2014-05-26 Richard Biener <rguenther@suse.de>
17967
17968 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
17969 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
17970 Provide specializations.
17971 (wi::int_traits <HOST_WIDE_INT>,
17972 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
17973
17974 2014-05-26 Alan Modra <amodra@gmail.com>
17975
17976 PR target/61098
17977 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
17978 params and return a bool. Remove dead code. Update comment.
17979 Assert we have a const_int source. Remove bogus code from
17980 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
17981 handling of constants > 2G and reg_equal note, from..
17982 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
17983 return value. Update comment. If we can, use a new pseudo
17984 for intermediate calculations.
17985 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
17986 prototype.
17987 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
17988 call to rs6000_emit_set_const in splitter.
17989 (movdi_internal64+2, +3): Likewise.
17990
17991 2014-05-26 Richard Biener <rguenther@suse.de>
17992
17993 * system.h: Define __STDC_FORMAT_MACROS before
17994 including inttypes.h.
17995 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
17996 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
17997 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
17998 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
17999 HOST_WIDEST_INT_C): Remove.
18000 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
18001 if C99 inttypes.h is not available.
18002 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
18003 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
18004 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
18005 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
18006 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
18007 (struct output_info): Likewise.
18008 (print_statistics): Adjust.
18009 (dump_bitmap_statistics): Likewise.
18010 * bt-load.c (migrate_btr_defs): Print with PRId64.
18011 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
18012 (MAX_SAFE_MULTIPLIER): Adjust.
18013 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
18014 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
18015 dump_cgraph_node): Likewise.
18016 * final.c (dump_basic_block_info): Likewise.
18017 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
18018 * gcov.c (format_gcov): Likewise.
18019 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
18020 for calculation.
18021 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
18022 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
18023 (inline_small_functions, dump_overall_stats, dump_inline_stats):
18024 Use PRId64 for dumping.
18025 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
18026 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
18027 (add_allocno_hard_regs): Adjust.
18028 * loop-doloop.c (doloop_modify): Print using PRId64.
18029 * loop-iv.c (inverse): Compute in uint64_t.
18030 (determine_max_iter, iv_number_of_iterations): Likewise.
18031 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
18032 Print using PRId64.
18033 * lto-streamer-out.c (write_symbol): Use uint64_t.
18034 * mcf.c (CAP_INFINITY): Use int64_t maximum.
18035 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
18036 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
18037 * modulo-sched.c (const_iteration_count): Use int64_t.
18038 (sms_schedule): Dump using PRId64.
18039 * predict.c (dump_prediction): Likewise.
18040 * pretty-print.h (pp_widest_integer): Remove.
18041 * profile.c (get_working_sets, is_edge_inconsistent,
18042 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
18043 * tree-pretty-print.c (pp_double_int): Remove case handling
18044 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
18045 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
18046 and adjust users.
18047 (pass_optimize_bswap::execute): Remove restriction on hosts.
18048 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
18049 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
18050 * tree.c (widest_int_cst_value): Remove.
18051 * tree.h (widest_int_cst_value): Likewise.
18052 * value-prof.c (dump_histogram_value): Print using PRId64.
18053 * gengtype.c (main): Also inject int64_t.
18054 * ggc-page.c (struct max_alignment): Use int64_t.
18055 * alloc-pool.c (struct allocation_object_def): Likewise.
18056 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
18057 for computation.
18058 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
18059 * doc/tm.texi: Regenerated.
18060 * gengtype-lex.l (IWORD): Handle [u]int64_t.
18061 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
18062 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
18063 mmix_output_register_setting): Use [u]int64_t in prototypes.
18064 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
18065 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
18066 mmix_output_octa, mmix_output_shifted_value): Adjust.
18067 (mmix_intval): Adjust. Remove unreachable case.
18068 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
18069
18070 2014-05-26 Richard Biener <rguenther@suse.de>
18071
18072 * configure.ac: Drop __int64 type check. Insist that we
18073 found uint64_t and int64_t.
18074 * hwint.h (HOST_BITS_PER___INT64): Remove.
18075 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
18076 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
18077 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
18078 (HOST_WIDEST_FAST_INT): Remove __int64 case.
18079 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
18080 for dst_q_src_df_rms_cdt.
18081 * configure: Regenerate.
18082 * config.in: Likewise.
18083
18084 2014-05-26 Michael Tautschnig <mt@debian.org>
18085
18086 PR target/61249
18087 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
18088 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
18089
18090 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18091
18092 PR rtl-optimization/61278
18093 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
18094
18095 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18096
18097 PR rtl-optimization/61220
18098 Part of PR rtl-optimization/61225
18099 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
18100 insn; skip split_edge for a block with only one successor.
18101
18102 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18103
18104 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
18105 for variables.
18106
18107 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18108
18109 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
18110 (update_vtable_references): New function.
18111 (function_and_variable_visibility): Rewrite also vtable initializers.
18112 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
18113
18114 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18115
18116 * ggc.h (ggc_grow): New function.
18117 * ggc-none.c (ggc_grow): New function.
18118 * ggc-page.c (ggc_grow): Likewise.
18119
18120 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18121
18122 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
18123 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
18124 comdat_can_be_unshared_p, cgraph_externally_visible_p,
18125 varpool_externally_visible_p, can_replace_by_local_alias,
18126 update_visibility_by_resolution_info, function_and_variable_visibility,
18127 pass_data_ipa_function_and_variable_visibility,
18128 make_pass_ipa_function_and_variable_visibility,
18129 whole_program_function_and_variable_visibility,
18130 pass_data_ipa_whole_program_visibility,
18131 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
18132 * cgraph.h (cgraph_local_node_p): Declare.
18133 * ipa-visibility.c: New file.
18134 * Makefile.in (OBJS): Add ipa-visiblity.o
18135
18136 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18137
18138 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
18139 that var decl is available.
18140
18141 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18142
18143 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
18144 symtab_node pointer.
18145 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
18146 (find_decls_types_r): Do not walk COMDAT_GROUP.
18147 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
18148 * varasm.c (make_decl_one_only): Use set_comdat_group;
18149 create node if needed.
18150 * ipa-inline-transform.c (save_inline_function_body): Update
18151 way we decl->symtab mapping.
18152 * symtab.c (symtab_hash, hash_node, eq_node
18153 symtab_insert_node_to_hashtable): Remove.
18154 (symtab_register_node): Update.
18155 (symtab_unregister_node): Update.
18156 (symtab_get_node): Reimplement as inline function.
18157 (symtab_add_to_same_comdat_group): Update.
18158 (symtab_dissolve_same_comdat_group_list): Update.
18159 (dump_symtab_base): Update.
18160 (verify_symtab_base): Update.
18161 (symtab_make_decl_local): Update.
18162 (fixup_same_cpp_alias_visibility): Update.
18163 (symtab_nonoverwritable_alias): Update.
18164 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
18165 * ipa.c (update_visibility_by_resolution_info): UPdate.
18166 * bb-reorder.c: Include cgraph.h
18167 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
18168 with comdat groups.
18169 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
18170 * cgraph.c (cgraph_get_create_node): Update.
18171 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
18172 and comdat_group_.
18173 (symtab_get_node): Make inline.
18174 (symtab_insert_node_to_hashtable): Remove.
18175 (symtab_can_be_discarded): Update.
18176 (decl_comdat_group): New function.
18177 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
18178 Update.
18179 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
18180 comdat group name.
18181 (read_comdat_group): New function.
18182 (input_node, input_varpool_node): Use it.
18183 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
18184 comdat groups.
18185 * mips.c (mips_start_unique_function): Likewise.
18186 (ix86_code_end): Likewise.
18187 (rs6000_code_end): Likweise.
18188 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
18189
18190 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18191
18192 * gengtype-state.c (fatal_reading_state): Bring offline.
18193 * optabs.c (widening_optab_handler): Bring offline.
18194 * optabs.h (widening_optab_handler): Likewise.
18195 * final.c (get_attr_length_1): Likewise.
18196
18197 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18198
18199 * sched-int.h (sd_iterator_cond): Manually tail recurse.
18200
18201 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18202
18203 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
18204 (ppc440-compare): Include shift with dot.
18205 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
18206 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
18207 without dot.
18208 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
18209 without dot.
18210 (e6500_sfx2): Include it.
18211 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
18212 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
18213 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
18214 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
18215 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
18216 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
18217 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
18218 *lshiftrt_internal1le, *lshiftrt_internal1be,
18219 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
18220 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
18221 *rotldi3_internal10le, *rotldi3_internal10be,
18222 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
18223 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
18224 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
18225 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
18226 define_insns): Use type "shift" in the appropriate alternatives.
18227
18228 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18229
18230 * config/rs6000/rs6000.md (type): Add "logical". Delete
18231 "fast_compare".
18232 (dot): Adjust comment.
18233 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
18234 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
18235 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
18236 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
18237 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
18238 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
18239 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
18240 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
18241
18242 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18243 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
18244 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18245 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18246 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18247 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18248 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18249 * config/rs6000/8540.md (ppc8540_su): Adjust.
18250 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18251 cell-cmp-microcoded): Adjust.
18252 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
18253 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18254 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
18255 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
18256 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
18257 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18258 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
18259 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
18260 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
18261 Adjust.
18262 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
18263 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
18264 Adjust. Adjust comment.
18265 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18266 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
18267
18268 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18269
18270 * config/rs6000/rs6000.md (type): Add "add".
18271 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
18272 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
18273 define_insns): Use it.
18274 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
18275
18276 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18277 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
18278 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18279 * config/rs6000/601.md (ppc601-integer): Adjust.
18280 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18281 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18282 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18283 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18284 * config/rs6000/8540.md (ppc8540_su): Adjust.
18285 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18286 cell-cmp-microcoded): Adjust.
18287 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
18288 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18289 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
18290 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
18291 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
18292 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18293 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
18294 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
18295 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
18296 Adjust.
18297 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
18298 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
18299 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18300 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
18301
18302 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18303
18304 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
18305 "delayed_compare", "var_delayed_compare".
18306 (var_shift): New attribute.
18307 (cell_micro): Adjust.
18308 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
18309 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
18310 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
18311 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
18312 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
18313 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
18314 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
18315 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
18316 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
18317 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
18318 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
18319 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
18320 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
18321 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
18322 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
18323 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
18324 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
18325 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
18326 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
18327 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
18328 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
18329 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
18330 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
18331 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18332 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18333
18334 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18335 * config/rs6000/440.md (ppc440-integer): Adjust.
18336 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18337 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
18338 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18339 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18340 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18341 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18342 * config/rs6000/8540.md (ppc8540_su): Adjust.
18343 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18344 cell-cmp-microcoded): Adjust.
18345 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
18346 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18347 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
18348 e500mc64_delayed): Adjust.
18349 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
18350 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
18351 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18352 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
18353 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
18354 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
18355 power6-delayed-compare, power6-var-delayed-compare): Adjust.
18356 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
18357 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
18358 Adjust comment.
18359 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18360 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18361
18362 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18363
18364 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
18365 (bits): New mode_attr.
18366 (idiv_ldiv): Delete mode_attr.
18367 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
18368 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18369 rs6000_adjust_priority, is_nonpipeline_insn,
18370 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18371
18372 * config/rs6000/40x.md (ppc403-idiv): Adjust.
18373 * config/rs6000/440.md (ppc440-idiv): Adjust.
18374 * config/rs6000/476.md (ppc476-idiv): Adjust.
18375 * config/rs6000/601.md (ppc601-idiv): Adjust.
18376 * config/rs6000/603.md (ppc603-idiv): Adjust.
18377 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
18378 ppc620-ldiv): Adjust.
18379 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
18380 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
18381 * config/rs6000/8540.md (ppc8540_divide): Adjust.
18382 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
18383 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
18384 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
18385 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
18386 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
18387 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
18388 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
18389 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
18390 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
18391 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
18392 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
18393 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
18394 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
18395 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
18396 * config/rs6000/titan.md (titan_fxu_div): Adjust.
18397
18398 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18399
18400 * config/rs6000/rs6000.md (type): Delete "insert_word",
18401 "insert_dword". Add "insert".
18402 (size): Update comment.
18403 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18404 insn_must_be_first_in_group): Adjust.
18405 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
18406 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
18407 *insvsi_internal6, insvdi_internal): Adjust.
18408
18409 * config/rs6000/40x.md (ppc403-integer): Adjust.
18410 * config/rs6000/440.md (ppc440-integer): Adjust.
18411 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
18412 * config/rs6000/601.md (ppc601-integer): Adjust.
18413 * config/rs6000/603.md (ppc603-integer): Adjust.
18414 * config/rs6000/6xx.md (ppc604-integer): Adjust.
18415 * config/rs6000/7450.md (ppc7450-integer): Adjust.
18416 * config/rs6000/7xx.md (ppc750-integer): Adjust.
18417 * config/rs6000/8540.md (ppc8540_su): Adjust.
18418 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
18419 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
18420 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18421 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
18422 * config/rs6000/e5500.md (e5500_sfx): Adjust.
18423 * config/rs6000/e6500.md (e6500_sfx): Adjust.
18424 * config/rs6000/mpc.md (mpccore-integer): Adjust.
18425 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
18426 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
18427 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
18428 * config/rs6000/power7.md (power7-integer): Adjust.
18429 * config/rs6000/power8.md (power8-1cyc): Adjust.
18430 * config/rs6000/rs64.md (rs64a-integer): Adjust.
18431 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18432
18433 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18434
18435 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
18436 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
18437 (size): New attribute.
18438 (dot): New attribute.
18439 (cell_micro): Adjust.
18440 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
18441 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
18442 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
18443 umuldi3_highpart): Adjust.
18444 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18445 rs6000_adjust_priority, is_nonpipeline_insn,
18446 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18447
18448 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
18449 ppc405-imul3): Adjust.
18450 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
18451 * config/rs6000/476.md (ppc476-imul): Adjust.
18452 * config/rs6000/601.md (ppc601-imul): Adjust.
18453 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
18454 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
18455 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
18456 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
18457 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
18458 Adjust.
18459 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
18460 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
18461 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
18462 cell-imul): Adjust.
18463 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
18464 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
18465 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
18466 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
18467 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
18468 * config/rs6000/mpc.md (mpccore-imul): Adjust.
18469 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
18470 power4-lmul, power4-imul, power4-imul3): Adjust.
18471 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
18472 power5-lmul, power5-imul, power5-imul3): Adjust.
18473 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
18474 power6-lmul, power6-imul, power6-imul3): Adjust.
18475 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
18476 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
18477
18478 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
18479 rs64a-lmul): Adjust.
18480 * config/rs6000/titan.md (titan_imul): Adjust.
18481
18482 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18483
18484 * config/rs6000/rs6000.md (type): Add new value "halfmul".
18485 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
18486 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
18487 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
18488 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
18489 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
18490 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
18491 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
18492 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
18493 * config/rs6000/titan.md: Delete nonsensical comment.
18494 (titan_imul): Add type imul3.
18495 (titan_mulhw): Remove type imul3; add type halfmul.
18496
18497 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18498
18499 * config/rs6000/rs6000.md (type): Reorder, reformat.
18500
18501 2014-05-23 Martin Jambor <mjambor@suse.cz>
18502
18503 PR tree-optimization/53787
18504 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
18505 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
18506 analysis_done, update all uses.
18507 * ipa-prop.c: Include domwalk.h
18508 (param_analysis_info): Removed.
18509 (param_aa_status): New type.
18510 (ipa_bb_info): Likewise.
18511 (func_body_info): Likewise.
18512 (ipa_get_bb_info): New function.
18513 (aa_overwalked): Likewise.
18514 (find_dominating_aa_status): Likewise.
18515 (parm_bb_aa_status_for_bb): Likewise.
18516 (parm_preserved_before_stmt_p): Changed to use new param AA info.
18517 (load_from_unmodified_param): Accept func_body_info as a parameter
18518 instead of parms_ainfo.
18519 (parm_ref_data_preserved_p): Changed to use new param AA info.
18520 (parm_ref_data_pass_through_p): Likewise.
18521 (ipa_load_from_parm_agg_1): Likewise. Update callers.
18522 (compute_complex_assign_jump_func): Changed to use new param AA info.
18523 (compute_complex_ancestor_jump_func): Likewise.
18524 (ipa_compute_jump_functions_for_edge): Likewise.
18525 (ipa_compute_jump_functions): Removed.
18526 (ipa_compute_jump_functions_for_bb): New function.
18527 (ipa_analyze_indirect_call_uses): Likewise, moved variable
18528 declarations down.
18529 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
18530 and info, moved variable declarations down.
18531 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
18532 node and info.
18533 (ipa_analyze_stmt_uses): Likewise.
18534 (ipa_analyze_params_uses): Removed.
18535 (ipa_analyze_params_uses_in_bb): New function.
18536 (ipa_analyze_controlled_uses): Likewise.
18537 (free_ipa_bb_info): Likewise.
18538 (analysis_dom_walker): New class.
18539 (ipa_analyze_node): Handle node-specific forbidden analysis,
18540 initialize and free func_body_info, use dominator walker.
18541 (ipcp_modif_dom_walker): New class.
18542 (ipcp_transform_function): Create and free func_body_info, use
18543 ipcp_modif_dom_walker, moved a lot of functionality there.
18544
18545 2014-05-23 Marek Polacek <polacek@redhat.com>
18546 Jakub Jelinek <jakub@redhat.com>
18547
18548 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
18549 * gcc.c (sanitize_spec_function): Likewise.
18550 * convert.c (convert_to_integer): Include "ubsan.h". Add
18551 floating-point to integer instrumentation.
18552 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
18553 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
18554 SANITIZE_NONDEFAULT.
18555 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
18556 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
18557 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
18558 * ubsan.c: Include "realmpfr.h" and "dfp.h".
18559 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
18560 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
18561 float/double/long double.
18562 (ubsan_instrument_float_cast): New function.
18563 * ubsan.h (ubsan_instrument_float_cast): Declare.
18564
18565 2014-05-23 Jiong Wang <jiong.wang@arm.com>
18566
18567 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
18568 predicate.
18569 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
18570 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
18571 Adjust for tailcalling through registers.
18572 * config/aarch64/aarch64.h (enum reg_class): New caller save
18573 register class.
18574 (REG_CLASS_NAMES): Likewise.
18575 (REG_CLASS_CONTENTS): Likewise.
18576 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
18577 Allow tailcalling without decls.
18578
18579 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
18580
18581 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
18582 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
18583
18584 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
18585 gsi, and variables v_* to v*.
18586
18587 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
18588
18589 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
18590
18591 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
18592
18593 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
18594 * omp-low.c: Update accordingly.
18595
18596 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
18597 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
18598 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
18599 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
18600 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
18601 GF_OMP_TARGET_KIND_UPDATE.
18602
18603 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
18604 Explicitly enumerate the expected region types.
18605
18606 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
18607
18608 PR other/56955
18609 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
18610 documentation; the old documentation didn't clearly state the
18611 constraints on the contents of the pointed-to storage.
18612
18613 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18614
18615 Fix bootstrap error on ia64
18616 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
18617 Return default value.
18618
18619 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
18620
18621 PR tree-optimization/54733
18622 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
18623 (CMPNOP): Define.
18624 (find_bswap_or_nop_load): New.
18625 (find_bswap_1): Renamed to ...
18626 (find_bswap_or_nop_1): This. Also add support for memory source.
18627 (find_bswap): Renamed to ...
18628 (find_bswap_or_nop): This. Also add support for memory source and
18629 detection of bitwise operations equivalent to load in target
18630 endianness.
18631 (execute_optimize_bswap): Likewise. Also move its leading comment back
18632 in place and split statement transformation into ...
18633 (bswap_replace): This.
18634
18635 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
18636
18637 PR rtl-optimization/61215
18638 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
18639 simplify_gen_subreg until final substitution.
18640
18641 2014-05-23 Alan Modra <amodra@gmail.com>
18642
18643 PR target/61231
18644 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
18645 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
18646 Use "Y" constraint rather than "m".
18647
18648 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
18649
18650 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
18651 define.
18652 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
18653 New function declaration.
18654 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
18655 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
18656 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
18657 (aarch64_init_builtins) : Initialize builtins
18658 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
18659 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
18660 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
18661 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
18662 and __builtins_aarch64_set_fpsr.
18663 (aarch64_atomic_assign_expand_fenv): New function.
18664 * config/aarch64/aarch64.md (set_fpcr): New pattern.
18665 (get_fpcr) : Likewise.
18666 (set_fpsr) : Likewise.
18667 (get_fpsr) : Likewise.
18668 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
18669 and UNSPECV_SET_FPSR.
18670 * doc/extend.texi (AARCH64 Built-in Functions) : Document
18671 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
18672 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
18673
18674 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
18675
18676 PR rtl-optimization/60969
18677 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
18678 constraints. Set up mem cost for NO_REGS case.
18679
18680 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
18681
18682 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
18683
18684 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
18685
18686 * config/darwin.c: Include "lto-section-names.h".
18687 (LTO_SEGMENT_NAME): Don't define.
18688 * config/i386/winnt.c: Include "lto-section-names.h".
18689 * lto-streamer.c: Include "lto-section-names.h".
18690 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
18691 * lto-wrapper.c: Include "lto-section-names.h".
18692 (LTO_SECTION_NAME_PREFIX): Don't define.
18693 * lto-section-names.h: New file.
18694 * cgraphunit.c: Include "lto-section-names.h".
18695
18696 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
18697
18698 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
18699
18700 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
18701
18702 PR target/61208
18703 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
18704
18705 2014-05-22 Nick Clifton <nickc@redhat.com>
18706
18707 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
18708
18709 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
18710
18711 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
18712 -> (T)A transformation to integer types.
18713
18714 2014-05-22 Teresa Johnson <tejohnson@google.com>
18715
18716 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
18717 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
18718 (gcov_rewrite): Use gcov_nonruntime_assert.
18719 (gcov_open): Ditto.
18720 (gcov_write_words): Ditto.
18721 (gcov_write_length): Ditto.
18722 (gcov_read_words): Use gcov_nonruntime_assert, and remove
18723 gcc_assert from IN_LIBGCOV code.
18724 (gcov_read_summary): Use gcov_error to flag profile corruption.
18725 (gcov_sync): Use gcov_nonruntime_assert.
18726 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
18727 (gcov_histo_index): Use gcov_nonruntime_assert.
18728 (static void gcov_histogram_merge): Ditto.
18729 (compute_working_sets): Ditto.
18730 * gcov-io.h (gcov_nonruntime_assert): Define.
18731 (gcov_error): Define for !IN_LIBGCOV
18732
18733 2014-05-22 Richard Biener <rguenther@suse.de>
18734
18735 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18736 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
18737 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
18738 and deallocation site.
18739 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
18740 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
18741 passing through the incoming points-to set.
18742 (handle_lhs_call): Use flags argument instead of recomputing it.
18743 (find_func_aliases_for_call): Call handle_lhs_call with proper
18744 call return flags.
18745
18746 2014-05-22 Jakub Jelinek <jakub@redhat.com>
18747
18748 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
18749 all padding bits in REAL_VALUE_TYPE are cleared.
18750
18751 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18752
18753 Cleanup and improve multipass_dfa_lookahead_guard
18754 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
18755 (core2i7_first_cycle_multipass_begin,)
18756 (core2i7_first_cycle_multipass_issue,)
18757 (core2i7_first_cycle_multipass_backtrack): Update signature.
18758 * config/ia64/ia64.c
18759 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
18760 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
18761 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
18762 hook definition.
18763 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
18764 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
18765 values.
18766 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
18767 return values.
18768 * doc/tm.texi: Regenerate.
18769 * doc/tm.texi.in
18770 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
18771 * haifa-sched.c (ready_try): Make signed to allow negative values.
18772 (rebug_ready_list_1): Update.
18773 (choose_ready): Simplify.
18774 (sched_extend_ready_list): Update.
18775
18776 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18777
18778 Remove IA64 speculation tweaking flags
18779 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
18780 speculation tuning flags.
18781 (msched-prefer-non-data-spec-insns,)
18782 (msched-prefer-non-control-spec-insns): Obsolete options.
18783 * haifa-sched.c (choose_ready): Remove handling of
18784 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
18785 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
18786 and PREFER_NON_DATA_SPEC.
18787 * sel-sched.c (process_spec_exprs): Remove handling of
18788 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
18789
18790 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18791
18792 Improve scheduling debug output
18793 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
18794 (advance_one_cycle): Update.
18795 (schedule_insn, queue_to_ready): Add debug printouts.
18796 (debug_ready_list_1): New static function.
18797 (debug_ready_list): Update.
18798 (max_issue): Add debug printouts.
18799 (dump_insn_stream): New static function.
18800 (schedule_block): Use it. Also better indent printouts.
18801
18802 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18803
18804 Fix sched_insn debug counter
18805 * haifa-sched.c (schedule_insn): Update.
18806 (struct haifa_saved_data): Add nonscheduled_insns_begin.
18807 (save_backtrack_point, restore_backtrack_point): Update.
18808 (first_nonscheduled_insn): New static function.
18809 (queue_to_ready, choose_ready): Use it.
18810 (schedule_block): Init nonscheduled_insns_begin.
18811 (sched_emit_insn): Update.
18812
18813
18814 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
18815
18816 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
18817 to GENERAL_REGS.
18818 (aarch64_secondary_reload) : LikeWise.
18819 (aarch64_class_max_nregs) : Remove CORE_REGS.
18820 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
18821 (REG_CLASS_NAMES) : Likewise.
18822 (REG_CLASS_CONTENTS) : LikeWise.
18823 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
18824
18825 2014-05-21 Guozhi Wei <carrot@google.com>
18826
18827 PR target/61202
18828 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
18829 constraint.
18830 (vqdmulhq_n_s16): Likewise.
18831
18832 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18833
18834 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
18835
18836 2014-05-21 Marek Polacek <polacek@redhat.com>
18837
18838 PR sanitizer/61272
18839 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
18840
18841 2014-05-21 Martin Jambor <mjambor@suse.cz>
18842
18843 * doc/invoke.texi (Optimize Options): Document parameters
18844 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
18845 ipa-cp-array-index-hint-bonus.
18846
18847 2014-05-21 Mark Wielaard <mjw@redhat.com>
18848
18849 PR debug/16063
18850 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
18851 version >= 3 or not strict DWARF.
18852 * langhooks.h (struct lang_hooks_for_types): Add
18853 enum_underlying_base_type.
18854 * langhooks.c (lhd_enum_underlying_base_type): New function.
18855 * gcc/langhooks.h (struct lang_hooks_for_types): Add
18856 enum_underlying_base_type.
18857 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
18858 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
18859 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
18860
18861 2014-05-21 Richard Biener <rguenther@suse.de>
18862
18863 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
18864
18865 2014-05-21 John Marino <gnugcc@marino.st>
18866
18867 * config.gcc (*-*-dragonfly*): New target.
18868 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
18869 * configure: Regenerate.
18870 * config/dragonfly-stdint.h: New.
18871 * config/dragonfly.h: New.
18872 * config/dragonfly.opt: New.
18873 * config/i386/dragonfly.h: New.
18874 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
18875
18876 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18877
18878 * tree.def (VOID_CST): New.
18879 * tree-core.h (TI_VOID): New.
18880 * tree.h (void_node): New.
18881 * tree.c (tree_node_structure_for_code, tree_code_size)
18882 (iterative_hash_expr): Handle VOID_CST.
18883 (build_common_tree_nodes): Initialize void_node.
18884
18885 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
18886
18887 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
18888 functions.
18889 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
18890
18891 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
18892 more places.
18893
18894 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
18895 flag_reorder_blocks_and_partition.
18896 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
18897
18898 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
18899
18900 PR target/54236
18901 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
18902 constraints.
18903 (*addc_r_t): Add new insn_and_split.
18904
18905 2014-05-21 Jakub Jelinek <jakub@redhat.com>
18906
18907 PR middle-end/61252
18908 * omp-low.c (handle_simd_reference): New function.
18909 (lower_rec_input_clauses): Use it. Defer adding reference
18910 initialization even for reduction without placeholder if in simd,
18911 handle it properly later on.
18912
18913 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18914
18915 PR tree-optimization/60899
18916 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
18917 assume all static symbols will have definition wile parsing and
18918 check the do have definition later in compilation; check that
18919 variable referring symbol will be output before concluding that
18920 reference is safe; be conservative for referring local statics;
18921 be more precise about when comdat is output in other partition.
18922
18923 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18924
18925 PR bootstrap/60984
18926 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
18927 parameter.
18928 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
18929 (ipa_inline): Loop inline_to_all_callers until no more aliases
18930 are removed.
18931
18932 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18933
18934 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
18935 set writeonly flag only for vars actually written to.
18936
18937 2014-05-20 Dehao Chen <dehao@google.com>
18938
18939 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
18940 and callee count to get clone count.
18941 * tree-inline.c (expand_call_inline): Use callee count instead of bb
18942 count in copy_body.
18943
18944 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
18945
18946 PR rtl-optimization/61243
18947 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
18948
18949 2014-05-20 Xinliang David Li <davidxl@google.com>
18950
18951 * cgraphunit.c (walk_polymorphic_call_targets): Add
18952 dbgcnt and fopt-info support.
18953 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
18954 * ipa-devirt.c (ipa_devirt): Ditto.
18955 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
18956 * ipa.c (walk_polymorphic_call_targets): Ditto.
18957 * gimple-fold.c (fold_gimple_assign): Ditto.
18958 (gimple_fold_call): Ditto.
18959 * dbgcnt.def: New counter.
18960
18961 2014-05-20 DJ Delorie <dj@redhat.com>
18962
18963 * config/msp430/msp430.md (split): Don't allow subregs when
18964 splitting SImode adds.
18965 (andneghi): Fix subtraction logic.
18966 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
18967
18968 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18969
18970 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
18971 symbols.
18972 * except.c (switch_to_exception_section, resolve_unique_section,
18973 get_named_text_section, default_function_rodata_section,
18974 align_variable, get_block_for_decl, default_section_type_flags):
18975 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
18976 * symtab.c (symtab_add_to_same_comdat_group,
18977 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
18978 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
18979 Likewise.
18980 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
18981 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
18982 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
18983 (c6x_function_in_section_p): Likewise.
18984 * config/darwin.c (machopic_select_section): Likewise.
18985 * config/arm/arm.c (arm_function_in_section_p): Likewise.
18986 * config/mips/mips.c (mips_function_rodata_section): Likewise.
18987 * config/mep/mep.c (mep_select_section): LIkewise.
18988 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
18989
18990 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
18991
18992 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
18993 EH region of calls to pure functions that can throw an exception.
18994 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
18995 (copy_reference_ops_from_call): Also copy the EH region of the call if
18996 it can throw an exception.
18997
18998 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18999
19000 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
19001 nested VEC_SELECTs that are inverses of each other.
19002
19003 2014-05-20 Richard Biener <rguenther@suse.de>
19004
19005 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
19006 (extract_and_process_scc_for_name): not here.
19007 (cond_dom_walker::before_dom_children): Only process
19008 stmts that end the BB in interesting ways.
19009 (run_scc_vn): Mark param uses as visited.
19010
19011 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19012
19013 * config/arm/arm.md (arith_shiftsi): Do not predicate for
19014 arm_restrict_it.
19015
19016 2014-05-20 Nick Clifton <nickc@redhat.com>
19017
19018 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
19019 (msp430_gimplify_va_arg_expr): New function.
19020 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
19021
19022 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
19023 operand 0 in order to prevent confusion about the number of
19024 registers involved.
19025
19026 2014-05-20 Richard Biener <rguenther@suse.de>
19027
19028 PR tree-optimization/61221
19029 * tree-ssa-pre.c (el_to_update): Remove.
19030 (eliminate_dom_walker::before_dom_children): Handle released
19031 VDEFs by value-numbering them to the associated VUSE. Update
19032 stmt immediately for substituted call address.
19033 (eliminate): Remove delayed stmt updating code.
19034 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
19035 possibly late re-numbered vuses.
19036 (vn_reference_lookup_2): Adjust.
19037 (vn_reference_lookup_pieces): Likewise.
19038 (vn_reference_lookup): Likewise.
19039
19040 2014-05-20 Richard Biener <rguenther@suse.de>
19041
19042 * config.gcc: Remove need_64bit_hwint.
19043 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
19044 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
19045 it to be true.
19046 * config.in: Regenerate.
19047 * configure: Likewise.
19048
19049 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
19050
19051 * doc/extend.texi: Create Label Attributes section,
19052 move all label attributes into it and reference it.
19053
19054 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
19055
19056 * arm.c (thumb1_reorg): When scanning backwards skip anything
19057 that's not a proper insn.
19058
19059 2014-05-19 Richard Biener <rguenther@suse.de>
19060
19061 PR tree-optimization/61221
19062 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
19063 Do nothing for unreachable blocks.
19064 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
19065 Improve unreachability detection.
19066
19067 2014-05-19 Richard Biener <rguenther@suse.de>
19068
19069 PR tree-optimization/61209
19070 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
19071
19072 2014-05-19 Nick Clifton <nickc@redhat.com>
19073
19074 * except.c (init_eh): Fix computation of builtin setjmp buffer
19075 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
19076
19077 2014-05-19 Richard Biener <rguenther@suse.de>
19078
19079 PR tree-optimization/61184
19080 * tree-vrp.c (is_negative_overflow_infinity): Use
19081 TREE_OVERFLOW_P and do that check first.
19082 (is_positive_overflow_infinity): Likewise.
19083 (is_overflow_infinity): Likewise.
19084 (vrp_operand_equal_p): Properly treat operands with
19085 differing overflow as not equal.
19086
19087 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
19088
19089 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
19090 shift simplification where it was intended.
19091
19092 2014-05-19 Christian Bruel <christian.bruel@st.com>
19093
19094 PR target/61195
19095 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
19096
19097 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
19098
19099 PR target/61084
19100 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
19101 than wide_int.
19102
19103 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
19104
19105 * reg-notes.def (CROSSING_JUMP): Likewise.
19106 * rtl.h (rtx_def): Update comment for jump flag.
19107 (CROSSING_JUMP_P): Define.
19108 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
19109 of a REG_CROSSING_JUMP note.
19110 * cfghooks.c (tidy_fallthru_edges): Likewise.
19111 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
19112 * emit-rtl.c (try_split): Likewise.
19113 * haifa-sched.c (sched_create_recovery_edges): Likewise.
19114 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
19115 * jump.c (redirect_jump_2): Likewise.
19116 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
19117 (relax_delay_slots): Likewise.
19118 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
19119 (bbit_di): Likewise.
19120 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
19121 * config/sh/sh.md (jump_compact): Likewise.
19122 * bb-reorder.c (rotate_loop): Likewise.
19123 (pass_duplicate_computed_gotos::execute): Likewise.
19124 (add_reg_crossing_jump_notes): Rename to...
19125 (update_crossing_jump_flags): ...this.
19126 (pass_partition_blocks::execute): Update accordingly.
19127
19128 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
19129
19130 * tree.h: Remove extraneous template <>.
19131
19132 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19133
19134 * ipa.c (symtab_remove_unreachable_nodes): Remove
19135 symbol from comdat group if its body was eliminated.
19136 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
19137 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
19138 (symtab_unregister_node): ... this one.
19139 (verify_symtab_base): More strict checking of comdats.
19140 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
19141
19142 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19143
19144 * tree-pass.h (make_pass_ipa_comdats): New pass.
19145 * timevar.def (TV_IPA_COMDATS): New timevar.
19146 * passes.def (pass_ipa_comdats): Add.
19147 * Makefile.in (OBJS): Add ipa-comdats.o
19148 * ipa-comdats.c: New file.
19149
19150 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19151
19152 * ipa.c (update_visibility_by_resolution_info): New function.
19153 (function_and_variable_visibility): Use it.
19154
19155 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19156
19157 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
19158 New functions.
19159 (FOR_EACH_DEFINED_SYMBOL): New macro.
19160 (varpool_first_static_initializer, varpool_next_static_initializer,
19161 varpool_first_defined_variable, varpool_next_defined_variable):
19162 Fix comments.
19163 (symtab_in_same_comdat_p): Correctly deal with inline functions.
19164
19165 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19166
19167 * ggc-page.c (ggc_handle_finalizers): Add comment.
19168
19169 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19170
19171 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
19172 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
19173 (ggc_internal_cleared_alloc): Likewise.
19174 * ggc-page.c (finalizer): New class.
19175 (vec_finalizer): Likewise.
19176 (globals::finalizers): New member.
19177 (globals::vec_finalizers): Likewise.
19178 (ggc_internal_alloc): Record the finalizer if any for the block being
19179 allocated.
19180 (ggc_handle_finalizers): New function.
19181 (ggc_collect): Call ggc_handle_finalizers.
19182 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
19183 finalizer.
19184 (ggc_internal_cleared_alloc): Likewise.
19185 (finalize): New function.
19186 (need_finalization_p): Likewise.
19187 (ggc_alloc): Install the type's destructor as the finalizer if it
19188 might do something.
19189 (ggc_cleared_alloc): Likewise.
19190 (ggc_vec_alloc): Likewise.
19191 (ggc_cleared_vec_alloc): Likewise.
19192
19193 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19194
19195 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
19196
19197 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19198
19199 * alias.c (record_alias_subset): Adjust.
19200 * bitmap.c (bitmap_element_allocate): Likewise.
19201 (bitmap_gc_alloc_stat): Likewise.
19202 * cfg.c (init_flow): Likewise.
19203 (alloc_block): Likewise.
19204 (unchecked_make_edge): Likewise.
19205 * cfgloop.c (alloc_loop): Likewise.
19206 (flow_loops_find): Likewise.
19207 (rescan_loop_exit): Likewise.
19208 * cfgrtl.c (init_rtl_bb_info): Likewise.
19209 * cgraph.c (insert_new_cgraph_node_version): Likewise.
19210 (cgraph_allocate_node): Likewise.
19211 (cgraph_create_edge_1): Likewise.
19212 (cgraph_allocate_init_indirect_info): Likewise.
19213 * cgraphclones.c (cgraph_clone_edge): Likewise.
19214 * cgraphunit.c (add_asm_node): Likewise.
19215 (init_lowered_empty_function): Likewise.
19216 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
19217 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
19218 (alpha_use_linkage): Likewise.
19219 * config/arc/arc.c (arc_init_machine_status): Likewise.
19220 * config/arm/arm.c (arm_init_machine_status): Likewise.
19221 * config/avr/avr.c (avr_init_machine_status): Likewise.
19222 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
19223 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
19224 * config/cris/cris.c (cris_init_machine_status): Likewise.
19225 * config/darwin.c (machopic_indirection_name): Likewise.
19226 (darwin_build_constant_cfstring): Likewise.
19227 (darwin_enter_string_into_cfstring_table): Likewise.
19228 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
19229 * config/frv/frv.c (frv_init_machine_status): Likewise.
19230 * config/i386/i386.c (get_dllimport_decl): Likewise.
19231 (ix86_init_machine_status): Likewise.
19232 (assign_386_stack_local): Likewise.
19233 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
19234 (i386_pe_maybe_record_exported_symbol): Likewise.
19235 (i386_pe_record_stub): Likewise.
19236 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
19237 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
19238 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
19239 (m32c_note_pragma_address): Likewise.
19240 * config/mep/mep.c (mep_init_machine_status): Likewise.
19241 (mep_note_pragma_flag): Likewise.
19242 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
19243 (mips16_local_alias): Likewise.
19244 (mips_init_machine_status): Likewise.
19245 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
19246 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
19247 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
19248 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
19249 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
19250 * config/pa/pa.c (pa_init_machine_status): Likewise.
19251 (pa_get_deferred_plabel): Likewise.
19252 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
19253 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
19254 (rs6000_init_machine_status): Likewise.
19255 (output_toc): Likewise.
19256 * config/s390/s390.c (s390_init_machine_status): Likewise.
19257 * config/score/score.c (score_output_external): Likewise.
19258 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
19259 * config/spu/spu.c (spu_init_machine_status): Likewise.
19260 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
19261 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
19262 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
19263 * coverage.c (coverage_end_function): Likewise.
19264 * dbxout.c (dbxout_init): Likewise.
19265 * doc/gty.texi: Don't mention variable_size attribute.
19266 * dwarf2cfi.c (new_cfi): Adjust.
19267 (new_cfi_row): Likewise.
19268 (copy_cfi_row): Likewise.
19269 (create_cie_data): Likewise.
19270 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
19271 (new_loc_descr): Likewise.
19272 (find_AT_string_in_table): Likewise.
19273 (add_addr_table_entry): Likewise.
19274 (new_die): Likewise.
19275 (add_var_loc_to_decl): Likewise.
19276 (clone_die): Likewise.
19277 (clone_as_declaration): Likewise.
19278 (break_out_comdat_types): Likewise.
19279 (new_loc_list): Likewise.
19280 (add_loc_descr_to_each): Likewise.
19281 (add_location_or_const_value_attribute): Likewise.
19282 (add_linkage_name): Likewise.
19283 (lookup_filename): Likewise.
19284 (dwarf2out_var_location): Likewise.
19285 (new_line_info_table): Likewise.
19286 (dwarf2out_init): Likewise.
19287 (mem_loc_descriptor): Likewise.
19288 (loc_descriptor): Likewise.
19289 (add_const_value_attribute): Likewise.
19290 (tree_add_const_value_attribute): Likewise.
19291 (comp_dir_string): Likewise.
19292 (dwarf2out_vms_debug_main_pointer): Likewise.
19293 (string_cst_pool_decl): Likewise.
19294 * emit-rtl.c (set_mem_attrs): Likewise.
19295 (get_reg_attrs): Likewise.
19296 (start_sequence): Likewise.
19297 (init_emit): Likewise.
19298 (init_emit_regs): Likewise.
19299 * except.c (init_eh_for_function): Likewise.
19300 (gen_eh_region): Likewise.
19301 (gen_eh_region_catch): Likewise.
19302 (gen_eh_landing_pad): Likewise.
19303 (add_call_site): Likewise.
19304 * function.c (add_frame_space): Likewise.
19305 (insert_temp_slot_address): Likewise.
19306 (assign_stack_temp_for_type): Likewise.
19307 (get_hard_reg_initial_val): Likewise.
19308 (allocate_struct_function): Likewise.
19309 (prepare_function_start): Likewise.
19310 (types_used_by_var_decl_insert): Likewise.
19311 * gengtype.c (variable_size_p): Remove function.
19312 (enum alloc_quantity): Remove enum.
19313 (write_typed_alloc_def): Remove function.
19314 (write_typed_struct_alloc_def): Likewise.
19315 (write_typed_typedef_alloc_def): Likewise.
19316 (write_typed_alloc_defns): Likewise.
19317 (main): Adjust.
19318 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
19319 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
19320 * ggc.h (ggc_alloc): new function.
19321 (ggc_cleared_alloc): Likewise.
19322 (ggc_vec_alloc): Template on type of vector element, and remove
19323 element size argument.
19324 (ggc_cleared_vec_alloc): Likewise.
19325 * gimple.c (gimple_build_omp_for): Adjust.
19326 (gimple_copy): Likewise.
19327 * ipa-cp.c (get_replacement_map): Likewise.
19328 (find_aggregate_values_for_callers_subset): Likewise.
19329 (known_aggs_to_agg_replacement_list): Likewise.
19330 * ipa-devirt.c (get_odr_type): Likewise.
19331 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
19332 (read_agg_replacement_chain): Likewise.
19333 * loop-iv.c (get_simple_loop_desc): Likewise.
19334 * lto-cgraph.c (input_node_opt_summary): Likewise.
19335 * lto-section-in.c (lto_new_in_decl_state): Likewise.
19336 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
19337 (input_eh_region): Likewise.
19338 (input_eh_lp): Likewise.
19339 (input_cfg): Likewise.
19340 * optabs.c (set_optab_libfunc): Likewise.
19341 (init_tree_optimization_optabs): Likewise.
19342 (set_conv_libfunc): Likewise.
19343 * passes.c (do_per_function_toporder): Likewise.
19344 * rtl.h: Don't use variable_size gty attribute.
19345 * sese.c (if_region_set_false_region): Adjust.
19346 * stringpool.c (gt_pch_save_stringpool): Likewise.
19347 * target-globals.c (save_target_globals): Likewise.
19348 * toplev.c (general_init): Likewise.
19349 * trans-mem.c (record_tm_replacement): Likewise.
19350 (split_bb_make_tm_edge): Likewise.
19351 * tree-cfg.c (move_sese_region_to_fn): Likewise.
19352 * tree-data-ref.h (lambda_vector_new): Likewise.
19353 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
19354 * tree-iterator.c (tsi_link_before): Likewise.
19355 (tsi_link_after): Likewise.
19356 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
19357 * tree-ssa-loop-niter.c (record_estimate): Likewise.
19358 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
19359 * tree-ssa-operands.h: Don't use variable_size gty attribute.
19360 * tree-ssa.c (init_tree_ssa): Adjust.
19361 * tree-ssanames.c (set_range_info): Likewise.
19362 (get_ptr_info): Likewise.
19363 (duplicate_ssa_name_ptr_info): Likewise.
19364 (duplicate_ssa_name_range_info): Likewise.
19365 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
19366 (unpack_ts_fixed_cst_value_fields): Likewise.
19367 * tree.c (build_fixed): Likewise.
19368 (build_real): Likewise.
19369 (build_string): Likewise.
19370 (decl_priority_info): Likewise.
19371 (decl_debug_expr_insert): Likewise.
19372 (decl_value_expr_insert): Likewise.
19373 (decl_debug_args_insert): Likewise.
19374 (type_hash_add): Likewise.
19375 (build_omp_clause): Likewise.
19376 * ubsan.c (decl_for_type_insert): Likewise.
19377 * varasm.c (get_unnamed_section): Likewise.
19378 (get_noswitch_section): Likewise.
19379 (get_section): Likewise.
19380 (get_block_for_section): Likewise.
19381 (create_block_symbol): Likewise.
19382 (build_constant_desc): Likewise.
19383 (create_constant_pool): Likewise.
19384 (force_const_mem): Likewise.
19385 (record_tm_clone_pair): Likewise.
19386 * varpool.c (varpool_create_empty_node): Likewise.
19387
19388 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19389
19390 * dwarf2out.c (tree_add_const_value_attribute): Call
19391 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
19392 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
19393 instead of ggc_internal_<x>alloc_stat.
19394 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
19395 (ggc_realloc): Likewise.
19396 * ggc-none.c (ggc_internal_alloc): Likewise.
19397 (ggc_internal_cleared_alloc): Likewise.
19398 * ggc-page.c: Likewise.
19399 * ggc.h (ggc_internal_alloc_stat): Likewise.
19400 (ggc_internal_alloc): Remove macro.
19401 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
19402 (ggc_internal_cleared_alloc): Remove macro.
19403 (GGC_RESIZEVEC): Adjust.
19404 (ggc_resizevar): Remove macro.
19405 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
19406 (ggc_internal_cleared_vec_alloc_stat): Likewise.
19407 (ggc_internal_vec_cleared_alloc): Remove macro.
19408 (ggc_alloc_atomic_stat): Drop _stat suffix.
19409 (ggc_alloc_atomic): Remove macro.
19410 (ggc_alloc_cleared_atomic): Remove macro.
19411 (ggc_alloc_string_stat): Drop _stat suffix.
19412 (ggc_alloc_string): Remove macro.
19413 (ggc_alloc_rtx_def_stat): Adjust.
19414 (ggc_alloc_tree_node_stat): Likewise.
19415 (ggc_alloc_cleared_tree_node_stat): Likewise.
19416 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
19417 (ggc_alloc_cleared_simd_clone_stat): Likewise.
19418 * gimple.c (gimple_build_omp_for): Likewise.
19419 (gimple_copy): Likewise.
19420 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
19421 * toplev.c (realloc_for_line_map): Adjust.
19422 * tree-data-ref.h (lambda_vector_new): Likewise.
19423 * tree-phinodes.c (allocate_phi_node): Likewise.
19424 * tree.c (grow_tree_vec_stat): Likewise.
19425 * vec.h (va_gc::reserve): Adjust.
19426
19427 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
19428
19429 * config/microblaze/microblaze.c (break_handler): New Declaration.
19430 (microblaze_break_function_p,microblaze_is_break_handler): New.
19431 (compute_frame_size): Use microblaze_break_function_p.
19432 Add the test of break_handler.
19433 (microblaze_function_prologue) : Add the test of variable
19434 break_handler. Check the fnname by BREAK_HANDLER_NAME.
19435 (microblaze_function_epilogue) : Add the test of break_handler.
19436 (microblaze_globalize_label) : Add the test of break_handler.
19437 Check the name by BREAK_HANDLER_NAME.
19438
19439 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
19440
19441 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
19442 microblaze_is_break_handler test.
19443 (call_internal1,call_value_intern): Use microblaze_break_function_p.
19444 Use SYMBOL_REF_DECL.
19445
19446 * config/microblaze/microblaze-protos.h
19447 (microblaze_break_function_p,microblaze_is_break_handler):
19448 New Declaration.
19449
19450 * doc/extend.texi (MicroBlaze break_handler Functions): Document
19451 new MicroBlaze break_handler functions.
19452
19453 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
19454
19455 * doc/extend.texi (Size of an asm): Move node text according
19456 to its @menu entry position.
19457
19458 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
19459
19460 PR tree-optimization/61140
19461 PR tree-optimization/61150
19462 PR tree-optimization/61197
19463 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
19464
19465 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
19466
19467 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
19468
19469 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
19470
19471 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
19472 __SIZEOF_INT128__ is defined.
19473
19474 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
19475
19476 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
19477 (rs6000_delegitimize_address): Use it.
19478
19479 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
19480
19481 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
19482 inplace argument. Store the new address in the original MEM when true.
19483 * emit-rtl.c (change_address_1): Likewise.
19484 (adjust_address_1, adjust_automodify_address_1, offset_address):
19485 Update accordingly.
19486 * rtl.h (plus_constant): Add an inplace argument.
19487 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
19488 when true. Avoid generating (plus X (const_int 0)).
19489 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
19490 in-place. Pass true to plus_constant.
19491 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
19492
19493 2014-05-16 Dehao Chen <dehao@google.com>
19494
19495 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
19496
19497 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19498
19499 PR target/54089
19500 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
19501 patterns.
19502 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
19503
19504 2014-05-16 Dehao Chen <dehao@google.com>
19505
19506 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
19507 optimize_function_for_size_p.
19508 * regs.h (REG_FREQ_FROM_BB): Likewise.
19509
19510 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19511
19512 PR target/51244
19513 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
19514 negt_reg_operand cases.
19515 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
19516 predicate.
19517 * config/sh/predicates.md (cbranch_treg_value): Simplify.
19518
19519 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19520
19521 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
19522 target variants.
19523
19524 2014-05-16 David Malcolm <dmalcolm@redhat.com>
19525
19526 Revert:
19527 2014-04-29 David Malcolm <dmalcolm@redhat.com>
19528
19529 * tree-cfg.c (dump_function_to_file): Dump the return type of
19530 functions, in a line to itself before the function body, mimicking
19531 the layout of a C function.
19532
19533 2014-05-16 Dehao Chen <dehao@google.com>
19534
19535 * cfghooks.c (make_forwarder_block): Use direct computation to
19536 get fall-through edge's count and frequency.
19537
19538 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
19539
19540 * config/arc/arc.c (arc_init): Fix typo in error message.
19541 * config/i386/i386.c (ix86_expand_builtin): Likewise.
19542 (split_stack_prologue_scratch_regno): Likewise.
19543 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
19544 word from error message.
19545
19546 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
19547
19548 * ira-costs.c: Fix typo in comment.
19549
19550 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
19551
19552 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
19553
19554 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
19555
19556 * varpool.c (dump_varpool_node): Dump write-only flag.
19557 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
19558 write-only flag.
19559 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
19560 write-only variables.
19561 * ipa.c (process_references): New function.
19562 (set_readonly_bit): New function.
19563 (set_writeonly_bit): New function.
19564 (clear_addressable_bit): New function.
19565 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
19566 fix handling of aliases.
19567 * cgraph.h (struct varpool_node): Add writeonly flag.
19568
19569 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
19570
19571 PR rtl-optimization/60969
19572 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
19573 Calculate costs for this case.
19574
19575 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
19576
19577 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
19578 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
19579
19580 2014-05-16 Richard Biener <rguenther@suse.de>
19581
19582 PR tree-optimization/61194
19583 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
19584 bool patterns ending in a COND_EXPR.
19585
19586 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19587
19588 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
19589
19590 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19591
19592 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
19593 where we were unable to cost an RTX.
19594
19595 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19596
19597 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
19598 HIGH, LO_SUM.
19599
19600 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19601 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19602
19603 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
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): Cost FMA,
19609 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
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_costs): Cost comparison
19615 operators.
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 DIV/MOD.
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_arith_op_extract_p): New.
19627 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
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 costs for
19633 rotates and shifts.
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): Cost
19639 ZERO_EXTEND and SIGN_EXTEND better.
19640
19641 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19642 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19643
19644 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
19645 logical operations.
19646
19647 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19648 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19649
19650 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
19651 costs when costing loads and stores to memory.
19652
19653 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19654 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
19655
19656 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
19657 for SET RTX.
19658
19659 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19660
19661 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
19662
19663 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19664 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19665
19666 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
19667 to...
19668 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
19669 well formed.
19670 (aarch64_rtx_mult_cost): New.
19671 (aarch64_rtx_costs): Use it, refactor as appropriate.
19672
19673 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19674 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19675
19676 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
19677 emit instructions, return number of instructions which would
19678 be emitted.
19679 (aarch64_add_constant): Update call to aarch64_build_constant.
19680 (aarch64_output_mi_thunk): Likewise.
19681 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
19682 a CONST_DOUBLE.
19683
19684 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19685
19686 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
19687 (TARGET_RTX_COSTS): Call it.
19688
19689 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19690
19691 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
19692 (cortexa57_vector_cost): Likewise.
19693 (cortexa57_tunings): Use them.
19694
19695 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19696
19697 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
19698 (cpu_addrcost_table): Use it.
19699 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
19700 (aarch64_address_cost): Rewrite using aarch64_classify_address,
19701 move it.
19702
19703 2014-05-16 Richard Biener <rguenther@suse.de>
19704
19705 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
19706 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
19707 (visit_phi): Ignore edges marked as not executable.
19708 (class cond_dom_walker): New.
19709 (cond_dom_walker::before_dom_children): Value-number
19710 control statements and mark successor edges as not
19711 executable if possible.
19712 (run_scc_vn): First walk all control statements in
19713 dominator order, marking edges as not executable.
19714 * tree-inline.c (copy_edges_for_bb): Be not confused
19715 about random edge flags.
19716
19717 2014-05-16 Richard Biener <rguenther@suse.de>
19718
19719 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
19720
19721 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
19722
19723 PR target/61193
19724 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
19725 (__TM_simple_begin): Use it.
19726 (__TM_begin): Likewise.
19727
19728 2014-05-15 Martin Jambor <mjambor@suse.cz>
19729
19730 PR ipa/61085
19731 * ipa-prop.c (update_indirect_edges_after_inlining): Check
19732 type_preserved flag when the indirect edge is polymorphic.
19733
19734 2014-05-15 Martin Jambor <mjambor@suse.cz>
19735
19736 PR tree-optimization/61090
19737 * tree-sra.c (sra_modify_expr): Pass the current gsi to
19738 build_ref_for_model.
19739
19740 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19741
19742 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
19743 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
19744
19745 2014-05-15 Jakub Jelinek <jakub@redhat.com>
19746
19747 PR tree-optimization/61158
19748 * fold-const.c (fold_binary_loc): If X is zero-extended and
19749 shiftc >= prec, make sure zerobits is all ones instead of
19750 invoking undefined behavior.
19751
19752 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19753
19754 * regcprop.h: New file.
19755 * regcprop.c (skip_debug_insn_p): New decl.
19756 (replace_oldest_value_reg): Check skip_debug_insn_p.
19757 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
19758 * shrink-wrap.c: Include regcprop.h.
19759 (prepare_shrink_wrap): Call
19760 copyprop_hardreg_forward_bb_without_debug_insn.
19761
19762 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19763
19764 * shrink-wrap.h: Update comment.
19765 * shrink-wrap.c: Update comment.
19766 (next_block_for_reg): Rename to live_edge_for_reg.
19767 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
19768 (move_insn_for_shrink_wrap): Split live_edge.
19769 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
19770
19771 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
19772
19773 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
19774 Delete.
19775 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
19776 * config/sparc/sparc.md (fptype_ut699): New attribute.
19777 (in_branch_delay): Return false if -mfix-ut699 is specified and
19778 fptype_ut699 is set to single.
19779 (truncdfsf2): Add fptype_ut699 attribute.
19780 (fix_truncdfsi2): Likewise.
19781 (floatsisf2): Change fptype attribute.
19782 (fix_truncsfsi2): Likewise.
19783 (negtf2_notv9): Delete.
19784 (negtf2_v9): Likewise.
19785 (negtf2_hq): New instruction.
19786 (negtf2): New instruction and splitter.
19787 (negdf2_notv9): Rewrite.
19788 (abstf2_notv9): Delete.
19789 (abstf2_hq_v9): Likewise.
19790 (abstf2_v9): Likewise.
19791 (abstf2_hq): New instruction.
19792 (abstf2): New instruction and splitter.
19793 (absdf2_notv9): Rewrite.
19794
19795 2014-05-14 Cary Coutant <ccoutant@google.com>
19796
19797 PR debug/61013
19798 * opts.c (common_handle_option): Don't special-case "-g".
19799 (set_debug_level): Default to at least level 2 with "-g".
19800
19801 2014-05-14 DJ Delorie <dj@redhat.com>
19802
19803 * config/msp430/msp430.c (msp430_builtin): Add
19804 MSP430_BUILTIN_DELAY_CYCLES.
19805 (msp430_init_builtins): Register void __delay_cycles(long long).
19806 (msp430_builtin_decl): Add it.
19807 (cg_magic_constant): New.
19808 (msp430_expand_delay_cycles): New.
19809 (msp430_expand_builtin): Call it.
19810 (msp430_print_operand_raw): Change integer printing from "int" to
19811 HOST_WIDE_INT.
19812 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
19813 (delay_cycles_start): New.
19814 (delay_cycles_end): New.
19815 (delay_cycles_32): New.
19816 (delay_cycles_32x): New.
19817 (delay_cycles_16): New.
19818 (delay_cycles_16x): New.
19819 (delay_cycles_2): New.
19820 (delay_cycles_1): New.
19821 * doc/extend.texi: Document __delay_cycles().
19822
19823 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
19824
19825 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
19826 length attribute computation.
19827
19828 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
19829
19830 PR debug/61188
19831 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
19832
19833 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
19834
19835 PR target/61084
19836 * config/sparc/sparc.md: Fix types of low and high in DI constant
19837 splitter. Use gen_int_mode in some other splitters.
19838
19839 2014-05-14 Martin Jambor <mjambor@suse.cz>
19840
19841 PR ipa/60897
19842 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
19843
19844 2014-05-14 James Norris <jnorris@codesourcery.com>
19845
19846 * omp-low.c (expand_parallel_call): Remove shadow variable.
19847 (expand_omp_taskreg): Likewise.
19848
19849 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
19850
19851 * common/config/i386/i386-common.c
19852 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
19853 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
19854 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
19855 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
19856 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
19857 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
19858 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
19859 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
19860 xsavecintrin.h, xsavesintrin.h.
19861 (x86_64-*-*): Ditto.
19862 * config/i386/clflushoptintrin.h: New.
19863 * config/i386/xsavecintrin.h: Ditto.
19864 * config/i386/xsavesintrin.h: Ditto.
19865 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
19866 (bit_XSAVES): Ditto.
19867 (bit_XSAVES): Ditto.
19868 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
19869 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
19870 -mno-clflushopt.
19871 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
19872 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
19873 OPTION_MASK_ISA_XSAVES.
19874 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
19875 -mxsavec, -mxsaves.
19876 (PTA_CLFLUSHOPT) Define.
19877 (PTA_XSAVEC): Ditto.
19878 (PTA_XSAVES): Ditto.
19879 (ix86_option_override_internal): Handle new options.
19880 (ix86_valid_target_attribute_inner_p): Ditto.
19881 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
19882 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
19883 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
19884 (bdesc_special_args): Add __builtin_ia32_xsaves,
19885 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
19886 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
19887 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
19888 (ix86_expand_builtin): Handle new builtins.
19889 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
19890 (TARGET_CLFLUSHOPT_P): Ditto.
19891 (TARGET_XSAVEC): Ditto.
19892 (TARGET_XSAVEC_P): Ditto.
19893 (TARGET_XSAVES): Ditto.
19894 (TARGET_XSAVES_P): Ditto.
19895 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
19896 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
19897 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
19898 (ANY_XRSTOR): New.
19899 (ANY_XRSTOR64): Ditto.
19900 (xrstor): Ditto.
19901 (xrstor): Change into <xrstor>.
19902 (xrstor_rex64): Change into <xrstor>_rex64.
19903 (xrstor64): Change into <xrstor>64
19904 (clflushopt): New.
19905 * config/i386/i386.opt (mclflushopt): New.
19906 (mxsavec): Ditto.
19907 (mxsaves): Ditto.
19908 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
19909 xsavecintrin.h.
19910 * doc/invoke.texi: Document new options.
19911
19912 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
19913
19914 PR rtl-optimization/60866
19915 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
19916 Default it to -1. Pass it down to init_simplejump_data.
19917 (init_simplejump_data): New parameter old_seqno. Pass it down
19918 to get_seqno_for_a_jump.
19919 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
19920 initializing new jump seqno as a last resort. Add comment.
19921 (sel_redirect_edge_and_branch): Save old seqno of the conditional
19922 jump and pass it down to sel_init_new_insn.
19923 (sel_redirect_edge_and_branch_force): Likewise.
19924
19925 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
19926
19927 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
19928 shifted values to avoid build warning.
19929
19930 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
19931
19932 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
19933 * cfgrtl.c (rtl_merge_blocks): Fix comment.
19934 (cfg_layout_merge_blocks): Likewise.
19935 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
19936
19937 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
19938
19939 PR rtl-optimization/60901
19940 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
19941 bb predecessor belongs to the same scheduling region. Adjust comment.
19942
19943 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
19944
19945 * doc/sourcebuild.texi: (dfp_hw): Document.
19946 (p8vector_hw): Likewise.
19947 (powerpc_eabi_ok): Likewise.
19948 (powerpc_elfv2): Likewise.
19949 (powerpc_htm_ok): Likewise.
19950 (ppc_recip_hw): Likewise.
19951 (vsx_hw): Likewise.
19952
19953 2014-05-13 Cary Coutant <ccoutant@google.com>
19954
19955 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
19956
19957 2014-05-13 David Malcolm <dmalcolm@redhat.com>
19958
19959 * gengtype-parse.c (require3): Eliminate in favor of...
19960 (require4): New.
19961 (require_template_declaration): Update to support optional single *
19962 on a type.
19963
19964 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
19965 (create_user_defined_type): Handle a single level of explicit
19966 pointerness within template arguments.
19967 (struct write_types_data): Add field "kind".
19968 (filter_type_name): Handle "*" character.
19969 (write_user_func_for_structure_ptr): Require a write_types_data
19970 rather than just a prefix string, so that we can look up the kind
19971 of the wtd and use it as an index into wrote_user_func_for_ptr,
19972 ensuring that such functions are written at most once. Support
19973 subclasses by invoking the marking function of the ultimate base class.
19974 (write_user_func_for_structure_body): Require a write_types_data
19975 rather than just a prefix string, so that we can pass this to
19976 write_user_func_for_structure_ptr.
19977 (write_func_for_structure): Likewise.
19978 (ggc_wtd): Add initializer of new "kind" field.
19979 (pch_wtd): Likewise.
19980
19981 * gengtype.h (enum write_types_kinds): New.
19982 (struct type): Add field wrote_user_func_for_ptr to the "s"
19983 union member.
19984
19985 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
19986
19987 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
19988 instead of const_binop.
19989 (fold_binary_loc): Likewise.
19990
19991 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
19992
19993 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
19994 calculation to match get_ref_base_and_extent.
19995
19996 2014-05-13 Catherine Moore <clm@codesourcery.com>
19997 Sandra Loosemore <sandra@codesourcery.com>
19998
19999 * configure.ac: Fix assembly for explicit JALR relocation check.
20000 * configure: Regenerate.
20001
20002 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20003
20004 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
20005 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
20006 Remove associated type declarations and initialisations.
20007 (arm_expand_neon_builtin): Likewise.
20008 (neon_emit_pair_result_insn): Delete.
20009 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
20010 * config/arm/neon.md (neon_vtrn<mode>): Delete.
20011 (neon_vzip<mode>): Likewise.
20012 (neon_vuzp<mode>): Likewise.
20013
20014 2014-05-13 Richard Biener <rguenther@suse.de>
20015
20016 PR ipa/60973
20017 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
20018 it needs revisiting whether the call still may be tail-called.
20019
20020 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20021
20022 * rtl.def (SYMBOL_REF): Remove middle "0" field.
20023 * rtl.h (block_symbol): Reduce number of fields to 2.
20024 (rtx_def): Add u2.symbol_ref_flags.
20025 (SYMBOL_REF_FLAGS): Use it.
20026 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
20027 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
20028 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
20029 Lower index of SYMBOL_REF_DATA.
20030 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
20031 Print SYMBOL_REF_FLAGS at the same time.
20032 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
20033
20034 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20035
20036 * rtl.def (VAR_LOCATION): Remove "i" field.
20037 * rtl.h (rtx_def): Add u2.var_location_status.
20038 (PAT_VAR_LOCATION_STATUS): Use it.
20039 (gen_rtx_VAR_LOCATION): Declare.
20040 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
20041 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
20042 * var-tracking.c (emit_note_insn_var_location): Remove casts.
20043
20044 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20045
20046 * rtl.def (scratch): Fix outdated comment and remove "0" field.
20047 * gengtype.c (adjust_field_rtx_def): Update accordingly.
20048
20049 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20050
20051 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
20052 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
20053 * rtl.h (rtx_def): Add insn_uid to u2 field.
20054 (RTX_FLAG_CHECK8): Delete in favor of...
20055 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
20056 (INSN_DELETED_P): Update accordingly.
20057 (INSN_UID): Use u2.insn_uid.
20058 (INSN_CHAIN_CODE_P): Define.
20059 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
20060 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
20061 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
20062 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
20063 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
20064 indices accordingly.
20065 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
20066 Update indices for insn-chain rtxes.
20067 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
20068 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
20069 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
20070 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
20071 * combine.c (try_combine): Likewise.
20072 * ira.c (setup_prohibited_mode_move_regs): Likewise.
20073
20074 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20075
20076 * rtl.def (REG): Remove middle field.
20077 * rtl.h (rtx_def): Add orignal_regno to u2.
20078 (ORIGINAL_REGNO): Use it instead of field 1.
20079 (REG_ATTRS): Lower field index accordingly.
20080 * gengtype.c (adjust_field_rtx_def): Remove handling of
20081 ORIGINAL_REGNO. Move REG_ATTRS index down.
20082 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
20083 code that prints the REGNO.
20084
20085 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20086
20087 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
20088 GENERATOR_FILE.
20089
20090 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20091
20092 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
20093
20094 2014-05-13 Bin Cheng <bin.cheng@arm.com>
20095
20096 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
20097 (alloc_iv): Lower base expressions containing ADDR_EXPR.
20098
20099 2014-05-13 Ian Bolton <ian.bolton@arm.com>
20100
20101 * config/aarch64/aarch64-protos.h
20102 (aarch64_hard_regno_caller_save_mode): New prototype.
20103 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
20104 New function.
20105 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
20106
20107 2014-05-13 Christian Bruel <christian.bruel@st.com>
20108
20109 * target.def (mode_switching): New hook vector.
20110 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
20111 (mode_exit, modepriority_to_mode): Likewise.
20112 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
20113 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20114 * target.h: Include tm.h and hard-reg-set.h.
20115 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
20116 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
20117 * doc/tm.texi Regenerate.
20118 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
20119 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20120 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
20121 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
20122 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
20123 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20124 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
20125 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
20126 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
20127 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
20128 (ix86_emit_mode_set): Hookify.
20129 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
20130 Delete.
20131 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20132 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
20133 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
20134 (epiphany_mode_priority_to_mode): Remove declaration.
20135 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
20136 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
20137 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
20138 Likewise.
20139 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
20140 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
20141 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
20142
20143 2014-05-13 Jakub Jelinek <jakub@redhat.com>
20144
20145 PR target/61060
20146 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
20147 is const0_rtx, return immediately. Don't test count == 0 when
20148 it is always true.
20149
20150 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20151
20152 * Makefile.in: add shrink-wrap.o.
20153 * config/i386/i386.c: include "shrink-wrap.h"
20154 * function.c: Likewise.
20155 (requires_stack_frame_p, next_block_for_reg,
20156 move_insn_for_shrink_wrap, prepare_shrink_wrap,
20157 dup_block_and_redirect): Move to shrink-wrap.c
20158 (thread_prologue_and_epilogue_insns): Extract three code segments
20159 as functions in shrink-wrap.c
20160 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
20161 shrink-wrap.h
20162 * shrink-wrap.c: New file.
20163 * shrink-wrap.h: New file.
20164
20165 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
20166
20167 * doc/extend.texi: Reflect current numbers of pragmas. Remove
20168 reference to Solaris.
20169
20170 2014-05-12 Mike Stump <mikestump@comcast.net>
20171
20172 PR other/31778
20173 * genattrtab.c (filename): Add.
20174 (convert_set_attr_alternative): Improve error message.
20175 (check_defs): Restore read_md_filename for error messages.
20176 (gen_insn): Save filename.
20177
20178 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
20179
20180 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
20181 -fno-local-ivars and -fivar-visibility.
20182 * c-family/c.opt: Make -Wshadow also implicitly enable
20183 -Wshadow-ivar.
20184
20185 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
20186
20187 * doc/tm.texi: Remove reference to deleted macro.
20188 * doc/tm.texi.in: Likewise.
20189
20190 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
20191
20192 PR target/60991
20193 * config/avr/avr.c (avr_out_store_psi): Use correct constant
20194 to restore Y.
20195
20196 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
20197
20198 PR libgcc/61152
20199 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
20200 * config/arm/aout.h (License): Same.
20201 * config/arm/bpabi.h (License): Same.
20202 * config/arm/elf.h (License): Same.
20203 * config/arm/linux-elf.h (License): Same.
20204 * config/arm/linux-gas.h (License): Same.
20205 * config/arm/netbsd-elf.h (License): Same.
20206 * config/arm/uclinux-eabi.h (License): Same.
20207 * config/arm/uclinux-elf.h (License): Same.
20208 * config/arm/vxworks.h (License): Same.
20209
20210 2014-05-11 Jakub Jelinek <jakub@redhat.com>
20211
20212 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
20213 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
20214 number of operands to 3.
20215 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
20216 * tree-nested.c (convert_nonlocal_omp_clauses,
20217 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
20218 * gimplify.c (gimplify_scan_omp_clauses): Handle
20219 OMP_CLAUSE_LINEAR_STMT.
20220 * omp-low.c (lower_rec_input_clauses): Fix typo.
20221 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
20222 cast between Fortran boolean_type_node and C _Bool if
20223 needed.
20224
20225 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
20226
20227 PR tree-optimization/61136
20228 * wide-int.h (multiple_of_p): Define a version that doesn't return
20229 the quotient.
20230 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
20231 integer_zerop/const_binop pair.
20232 (multiple_of_p): Likewise, converting both operands to widest_int
20233 precision.
20234
20235 2014-05-09 Teresa Johnson <tejohnson@google.com>
20236
20237 * cgraphunit.c (analyze_functions): Use correct dump file.
20238
20239 2014-05-09 Florian Weimer <fweimer@redhat.com>
20240
20241 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
20242 expand_used_vars.
20243 (stack_protect_return_slot_p): New function.
20244 (expand_used_vars): Call stack_protect_decl_p and
20245 stack_protect_return_slot_p for -fstack-protector-strong.
20246
20247 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
20248 Andrew Haley <aph@redhat.com>
20249 Richard Sandiford <rdsandiford@googlemail.com>
20250
20251 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
20252 pages.
20253
20254 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
20255
20256 PR middle-end/61111
20257 * fold-const.c (fold_binary_loc): Changed width of mask.
20258
20259 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
20260
20261 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
20262 unsigned int initializers for regno_in, regno_out.
20263
20264 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
20265
20266 PR target/61055
20267 * config/avr/avr.md (cc): Add new attribute set_vzn.
20268 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
20269 Set cc insn attribute to set_vzn instead of set_zn for alternatives
20270 with INC, DEC or NEG.
20271 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
20272 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
20273 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
20274
20275 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20276
20277 Revert:
20278 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20279
20280 * wide-int.cc (UTItype): Define.
20281 (UDWtype): Define for appropriate W_TYPE_SIZE.
20282
20283 2014-05-09 Richard Biener <rguenther@suse.de>
20284
20285 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
20286 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
20287 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
20288 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
20289 ssa_propagate): Adjust.
20290
20291 2014-05-08 Jeff Law <law@redhat.com>
20292
20293 PR tree-optimization/61009
20294 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
20295 tri-state rather than a boolean. When a block is too big to
20296 thread through, inform caller via negative return value.
20297 (thread_across_edge): If a block was too big for normal threading,
20298 then it's too big for a joiner too, so remove temporary equivalences
20299 and return immediately.
20300
20301 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
20302 Matthias Klose <doko@ubuntu.com>
20303
20304 PR driver/61106
20305 * optc-gen.awk: Fix option handling for -Wunused-parameter.
20306
20307 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
20308
20309 PR target/59952
20310 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
20311
20312 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
20313
20314 PR target/61092
20315 * config/alpha/alpha.c: Include gimple-iterator.h.
20316 (alpha_gimple_fold_builtin): New function. Move
20317 ALPHA_BUILTIN_UMULH folding from ...
20318 (alpha_fold_builtin): ... here.
20319 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
20320
20321 2014-05-08 Wei Mi <wmi@google.com>
20322
20323 PR target/58066
20324 * config/i386/i386.c (ix86_compute_frame_layout): Update
20325 preferred_stack_boundary for call, expanded from tls descriptor.
20326 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
20327 to depend on SP register.
20328 (*tls_local_dynamic_base_32_gnu): Ditto.
20329 (*tls_local_dynamic_32_once): Ditto.
20330 (tls_global_dynamic_64_<mode>): Set
20331 ix86_tls_descriptor_calls_expanded_in_cfun.
20332 (tls_local_dynamic_base_64_<mode>): Ditto.
20333 (tls_global_dynamic_32): Set
20334 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
20335 to depend on SP register.
20336 (tls_local_dynamic_base_32): Ditto.
20337
20338 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20339
20340 * config/arm/arm_neon.h: Update comment.
20341 * config/arm/neon-docgen.ml: Delete.
20342 * config/arm/neon-gen.ml: Delete.
20343 * doc/arm-neon-intrinsics.texi: Update comment.
20344
20345 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20346
20347 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
20348 and v4sf versions.
20349 (vand, vorr, veor, vorn, vbic): Remove.
20350 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
20351 iterator.
20352 (neon_vsub_unspec): Likewise.
20353 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
20354
20355 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20356
20357 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
20358 (vadd_s16): Likewise.
20359 (vadd_s32): Likewise.
20360 (vadd_f32): Likewise.
20361 (vadd_u8): Likewise.
20362 (vadd_u16): Likewise.
20363 (vadd_u32): Likewise.
20364 (vadd_s64): Likewise.
20365 (vadd_u64): Likewise.
20366 (vaddq_s8): Likewise.
20367 (vaddq_s16): Likewise.
20368 (vaddq_s32): Likewise.
20369 (vaddq_s64): Likewise.
20370 (vaddq_f32): Likewise.
20371 (vaddq_u8): Likewise.
20372 (vaddq_u16): Likewise.
20373 (vaddq_u32): Likewise.
20374 (vaddq_u64): Likewise.
20375 (vmul_s8): Likewise.
20376 (vmul_s16): Likewise.
20377 (vmul_s32): Likewise.
20378 (vmul_f32): Likewise.
20379 (vmul_u8): Likewise.
20380 (vmul_u16): Likewise.
20381 (vmul_u32): Likewise.
20382 (vmul_p8): Likewise.
20383 (vmulq_s8): Likewise.
20384 (vmulq_s16): Likewise.
20385 (vmulq_s32): Likewise.
20386 (vmulq_f32): Likewise.
20387 (vmulq_u8): Likewise.
20388 (vmulq_u16): Likewise.
20389 (vmulq_u32): Likewise.
20390 (vsub_s8): Likewise.
20391 (vsub_s16): Likewise.
20392 (vsub_s32): Likewise.
20393 (vsub_f32): Likewise.
20394 (vsub_u8): Likewise.
20395 (vsub_u16): Likewise.
20396 (vsub_u32): Likewise.
20397 (vsub_s64): Likewise.
20398 (vsub_u64): Likewise.
20399 (vsubq_s8): Likewise.
20400 (vsubq_s16): Likewise.
20401 (vsubq_s32): Likewise.
20402 (vsubq_s64): Likewise.
20403 (vsubq_f32): Likewise.
20404 (vsubq_u8): Likewise.
20405 (vsubq_u16): Likewise.
20406 (vsubq_u32): Likewise.
20407 (vsubq_u64): Likewise.
20408 (vand_s8): Likewise.
20409 (vand_s16): Likewise.
20410 (vand_s32): Likewise.
20411 (vand_u8): Likewise.
20412 (vand_u16): Likewise.
20413 (vand_u32): Likewise.
20414 (vand_s64): Likewise.
20415 (vand_u64): Likewise.
20416 (vandq_s8): Likewise.
20417 (vandq_s16): Likewise.
20418 (vandq_s32): Likewise.
20419 (vandq_s64): Likewise.
20420 (vandq_u8): Likewise.
20421 (vandq_u16): Likewise.
20422 (vandq_u32): Likewise.
20423 (vandq_u64): Likewise.
20424 (vorr_s8): Likewise.
20425 (vorr_s16): Likewise.
20426 (vorr_s32): Likewise.
20427 (vorr_u8): Likewise.
20428 (vorr_u16): Likewise.
20429 (vorr_u32): Likewise.
20430 (vorr_s64): Likewise.
20431 (vorr_u64): Likewise.
20432 (vorrq_s8): Likewise.
20433 (vorrq_s16): Likewise.
20434 (vorrq_s32): Likewise.
20435 (vorrq_s64): Likewise.
20436 (vorrq_u8): Likewise.
20437 (vorrq_u16): Likewise.
20438 (vorrq_u32): Likewise.
20439 (vorrq_u64): Likewise.
20440 (veor_s8): Likewise.
20441 (veor_s16): Likewise.
20442 (veor_s32): Likewise.
20443 (veor_u8): Likewise.
20444 (veor_u16): Likewise.
20445 (veor_u32): Likewise.
20446 (veor_s64): Likewise.
20447 (veor_u64): Likewise.
20448 (veorq_s8): Likewise.
20449 (veorq_s16): Likewise.
20450 (veorq_s32): Likewise.
20451 (veorq_s64): Likewise.
20452 (veorq_u8): Likewise.
20453 (veorq_u16): Likewise.
20454 (veorq_u32): Likewise.
20455 (veorq_u64): Likewise.
20456 (vbic_s8): Likewise.
20457 (vbic_s16): Likewise.
20458 (vbic_s32): Likewise.
20459 (vbic_u8): Likewise.
20460 (vbic_u16): Likewise.
20461 (vbic_u32): Likewise.
20462 (vbic_s64): Likewise.
20463 (vbic_u64): Likewise.
20464 (vbicq_s8): Likewise.
20465 (vbicq_s16): Likewise.
20466 (vbicq_s32): Likewise.
20467 (vbicq_s64): Likewise.
20468 (vbicq_u8): Likewise.
20469 (vbicq_u16): Likewise.
20470 (vbicq_u32): Likewise.
20471 (vbicq_u64): Likewise.
20472 (vorn_s8): Likewise.
20473 (vorn_s16): Likewise.
20474 (vorn_s32): Likewise.
20475 (vorn_u8): Likewise.
20476 (vorn_u16): Likewise.
20477 (vorn_u32): Likewise.
20478 (vorn_s64): Likewise.
20479 (vorn_u64): Likewise.
20480 (vornq_s8): Likewise.
20481 (vornq_s16): Likewise.
20482 (vornq_s32): Likewise.
20483 (vornq_s64): Likewise.
20484 (vornq_u8): Likewise.
20485 (vornq_u16): Likewise.
20486 (vornq_u32): Likewise.
20487 (vornq_u64): Likewise.
20488
20489 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20490
20491 * wide-int.cc (UTItype): Define.
20492 (UDWtype): Define for appropriate W_TYPE_SIZE.
20493
20494 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
20495
20496 PR tree-optimization/59100
20497 * tree-ssa-phiopt.c: Include tree-inline.h.
20498 (neutral_element_p, absorbing_element_p): New functions.
20499 (value_replacement): Handle conditional binary operations with a
20500 neutral or absorbing element.
20501
20502 2014-05-08 Richard Biener <rguenther@suse.de>
20503
20504 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
20505 folding the expression.
20506 (valueize_expr): Remove.
20507 (visit_reference_op_load): Do not valueize the result of
20508 vn_get_expr_for.
20509 (simplify_binary_expression): Likewise.
20510 (simplify_unary_expression): Likewise.
20511
20512 2014-05-08 Richard Biener <rguenther@suse.de>
20513
20514 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
20515 looking at TYPE_ARG_TYPES.
20516
20517 2014-05-08 Richard Biener <rguenther@suse.de>
20518
20519 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
20520 pointer propagation special-case.
20521
20522 2014-05-08 Bin Cheng <bin.cheng@arm.com>
20523
20524 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
20525 core part of address expressions.
20526
20527 2014-05-08 Alan Modra <amodra@gmail.com>
20528
20529 PR target/60737
20530 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
20531 loads and stores when -mno-strict-align at any alignment.
20532 (expand_block_clear): Similarly. Also correct calculation of
20533 instruction count.
20534
20535 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
20536
20537 PR middle-end/39246
20538 * tree-complex.c (expand_complex_move): Keep line info when expanding
20539 complex move.
20540 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
20541 of complex expression. Use new argument to display correct location
20542 for values coming from phi statement.
20543 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
20544 (warn_uninitialized_phi): Pass location of phi argument to
20545 warn_uninit.
20546 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
20547 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
20548
20549 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
20550
20551 * config/rs6000/predicates.md (indexed_address_mem): New.
20552 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
20553 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
20554 fpstore_ux, fpstore_u.
20555 (sign_extend, indexed, update): New.
20556 (cell_micro): Adjust.
20557 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
20558 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
20559 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
20560 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
20561 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
20562 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
20563 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
20564 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
20565 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
20566 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
20567 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
20568 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
20569 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
20570 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
20571 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
20572
20573 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
20574 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
20575 *vsx_extract_<mode>_store): Adjust.
20576 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
20577 is_cracked_insn, insn_must_be_first_in_group,
20578 insn_must_be_last_in_group): Adjust.
20579
20580 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
20581 Adjust.
20582 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
20583 ppc440-fpstore): Adjust.
20584 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
20585 ppc476-fpstore): Adjust.
20586 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
20587 ppc601-fpstore): Adjust.
20588 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
20589 Adjust.
20590 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
20591 Adjust.
20592 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
20593 ppc7450-fpstore): Adjust.
20594 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
20595 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
20596 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
20597 Adjust.
20598 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
20599 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
20600 cell-fpstore, cell-fpstore-update): Adjust.
20601 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
20602 ppce300c3_store, ppce300c3_fpstore): Adjust.
20603 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
20604 e500mc_fpstore): Adjust.
20605 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
20606 e500mc64_store, e500mc64_fpstore): Adjust.
20607 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
20608 e5500_fpstore): Adjust.
20609 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
20610 e6500_fpstore): Adjust.
20611 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
20612 Adjust.
20613 * config/rs6000/power4.md (power4-load, power4-load-ext,
20614 power4-load-ext-update, power4-load-ext-update-indexed,
20615 power4-load-update-indexed, power4-load-update, power4-fpload,
20616 power4-fpload-update, power4-store, power4-store-update,
20617 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
20618 Adjust.
20619 * config/rs6000/power5.md (power5-load, power5-load-ext,
20620 power5-load-ext-update, power5-load-ext-update-indexed,
20621 power5-load-update-indexed, power5-load-update, power5-fpload,
20622 power5-fpload-update, power5-store, power5-store-update,
20623 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
20624 Adjust.
20625 * config/rs6000/power6.md (power6-load, power6-load-ext,
20626 power6-load-update, power6-load-update-indexed,
20627 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
20628 power6-fpload-update, power6-store, power6-store-update,
20629 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
20630 Adjust.
20631 * config/rs6000/power7.md (power7-load, power7-load-ext,
20632 power7-load-update, power7-load-update-indexed,
20633 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
20634 power7-fpload-update, power7-store, power7-store-update,
20635 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
20636 Adjust.
20637 * config/rs6000/power8.md (power8-load, power8-load-update,
20638 power8-load-ext, power8-load-ext-update, power8-fpload,
20639 power8-fpload-update, power8-store, power8-store-update-indexed,
20640 power8-fpstore, power8-fpstore-update): Adjust.
20641 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
20642 Adjust.
20643 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
20644 titan_lsu_store, titan_lsu_fpstore): Adjust.
20645 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
20646
20647 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
20648
20649 PR target/60884
20650 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
20651 unrolled byte insns. Emit address increments after move insns.
20652
20653 2014-05-07 David Malcolm <dmalcolm@redhat.com>
20654
20655 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
20656 const_gimple, rather than a gimple.
20657 (gimple_call_builtin_p): Likewise, for the three variants.
20658
20659 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
20660 (gimple_call_builtin_p): Likewise, for the three variants.
20661
20662 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
20663
20664 PR tree-optimization/61095
20665 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
20666
20667 2014-05-07 Richard Biener <rguenther@suse.de>
20668
20669 PR tree-optimization/61034
20670 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
20671 (maybe_skip_until): Use translate to take into account
20672 lattices when trying to do disambiguations.
20673 (get_continuation_for_phi_1): Likewise.
20674 (get_continuation_for_phi): Adjust for added translate arguments.
20675 (walk_non_aliased_vuses): Likewise.
20676 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
20677 (walk_non_aliased_vuses): Likewise.
20678 (call_may_clobber_ref_p_1): Declare.
20679 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
20680 calls. Stop early if we are only supposed to disambiguate.
20681 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
20682
20683 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
20684
20685 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
20686 Emit an error when the function has arguments.
20687
20688 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
20689
20690 * cfgloop.h (unswitch_loops): Remove.
20691 * doc/passes.texi: Remove references to loop-unswitch.c
20692 * timevar.def (TV_LOOP_UNSWITCH): Remove.
20693
20694 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
20695
20696 * tree-vect-data-refs.c (vect_grouped_load_supported): New
20697 check for loads group of length 3.
20698 (vect_permute_load_chain): New permutations for loads group of
20699 length 3.
20700 * tree-vect-stmts.c (vect_model_load_cost): Change cost
20701 of vec_perm_shuffle for the new permutations.
20702
20703 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
20704
20705 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
20706 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
20707 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
20708 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
20709 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
20710 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
20711 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
20712 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
20713
20714 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
20715
20716 * loop-unswitch.c: Delete.
20717
20718 2014-05-07 Richard Biener <rguenther@suse.de>
20719
20720 * config.gcc: Always set need_64bit_hwint to yes.
20721
20722 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
20723
20724 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
20725 of using optimize_size.
20726
20727 2014-05-06 Mike Stump <mikestump@comcast.net>
20728
20729 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
20730
20731 2014-05-06 Joseph Myers <joseph@codesourcery.com>
20732
20733 * config/i386/sse.md (*mov<mode>_internal)
20734 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
20735 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
20736 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
20737 (*<code><mode>3, *andnot<mode>3<mask_name>)
20738 (<mask_codefor><code><mode>3<mask_name>): Only consider
20739 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
20740
20741 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
20742
20743 Revert:
20744 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
20745
20746 * lra-constraints.c (valid_address_p): Move earlier in file.
20747 Add a constraint argument to the address_info version.
20748 (satisfies_memory_constraint_p): New function.
20749 (satisfies_address_constraint_p): Likewise.
20750 (process_alt_operands, curr_insn_transform): Use them.
20751 (process_address): Pass the constraint to valid_address_p when
20752 checking address operands.
20753
20754 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
20755
20756 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
20757 to their respective blocks. Fix inadvertent use of "node".
20758
20759 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
20760
20761 * emit-rtl.c (init_derived_machine_modes): New functionm, split
20762 out from...
20763 (init_emit_once): ...here.
20764 * rtl.h (init_derived_machine_modes): Declare.
20765 * toplev.c (do_compile): Call it even if no_backend.
20766
20767 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
20768 Mike Stump <mikestump@comcast.net>
20769 Richard Sandiford <rdsandiford@googlemail.com>
20770 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20771
20772 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
20773 (rtx_equal_for_memref_p): Update comment.
20774 (adjust_offset_for_component_ref): Use wide-int interfaces.
20775 * builtins.c (get_object_alignment_2): Likewise.
20776 (c_readstr): Likewise.
20777 (target_char_cast): Add comment.
20778 (determine_block_size): Use wide-int interfaces.
20779 (expand_builtin_signbit): Likewise.
20780 (fold_builtin_int_roundingfn): Likewise.
20781 (fold_builtin_bitop): Likewise.
20782 (fold_builtin_bswap): Likewise.
20783 (fold_builtin_logarithm): Use signop.
20784 (fold_builtin_pow): Likewise.
20785 (fold_builtin_memory_op): Use wide-int interfaces.
20786 (fold_builtin_object_size): Likewise.
20787 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
20788 nb_iterations_estimate.
20789 (record_niter_bound): Use wide-int interfaces.
20790 (get_estimated_loop_iterations_int): Likewise.
20791 (get_estimated_loop_iterations): Likewise.
20792 (get_max_loop_iterations): Likewise.
20793 * cfgloop.h: Include wide-int.h.
20794 (struct nb_iter_bound): Change bound to widest_int.
20795 (struct loop): Change nb_iterations_upper_bound and
20796 nb_iterations_estimate to widest_int.
20797 (record_niter_bound): Switch to use widest_int.
20798 (get_estimated_loop_iterations): Likewise.
20799 (get_max_loop_iterations): Likewise.
20800 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
20801 update for wide-int.
20802 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
20803 * combine.c (try_combine): Likewise.
20804 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
20805 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
20806 interfaces.
20807 (aarch64_float_const_representable_p): Likewise.
20808 * config/arc/arc.c: Include wide-int.h.
20809 (arc_can_use_doloop_p): Use wide-int interfaces.
20810 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
20811 (vfp3_const_double_index): Likewise.
20812 * config/avr/avr.c (avr_out_round): Likewise.
20813 (avr_fold_builtin): Likewise.
20814 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
20815 (bfin_can_use_doloop_p): Likewise.
20816 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
20817 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
20818 * config/i386/i386.c: Include wide-int.h.
20819 (ix86_data_alignment): Use wide-int interfaces.
20820 (ix86_local_alignment): Likewise.
20821 (ix86_emit_swsqrtsf): Update real_from_integer.
20822 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
20823 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
20824 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
20825 (zero_constant): Likewise.
20826 (input_operand): Likewise.
20827 (splat_input_operand): Likewise.
20828 (non_logical_cint_operand): Change const_double to const_wide_int.
20829 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
20830 (easy_altivec_constant): Remove comment.
20831 (paired_expand_vector_init): Use CONSTANT_P.
20832 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
20833 (rs6000_emit_move): Update checks.
20834 (rs6000_aggregate_candidate): Use wide-int interfaces.
20835 (rs6000_expand_ternop_builtin): Likewise.
20836 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
20837 (rs6000_assemble_integer): Likewise.
20838 (rs6000_hash_constant): Likewise.
20839 (output_toc): Likewise.
20840 (rs6000_rtx_costs): Likewise.
20841 (rs6000_emit_swrsqrt); Update call to real_from_integer.
20842 * config/rs6000/rs6000-c.c: Include wide-int.h.
20843 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
20844 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
20845 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
20846 Handle CONST_WIDE_INT.
20847 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
20848 Use tree_fits_uhwi_p.
20849 * config/sparc/sparc.c: Include wide-int.h.
20850 (sparc_fold_builtin): Use wide-int interfaces.
20851 * config/vax/vax.c: Include wide-int.h.
20852 (vax_float_literal): Use real_from_integer.
20853 * coretypes.h (struct hwivec_def): New.
20854 (hwivec): New.
20855 (const_hwivec): New.
20856 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
20857 (equiv_constant): Handle CONST_WIDE_INT.
20858 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
20859 (cselib_hash_rtx): Handle CONST_WIDE_INT.
20860 * dbxout.c (stabstr_U): Use wide-int interfaces.
20861 (dbxout_type): Update to use cst_fits_shwi_p.
20862 * defaults.h (LOG2_BITS_PER_UNIT): Define.
20863 (TARGET_SUPPORTS_WIDE_INT): Add default.
20864 * dfp.c: Include wide-int.h.
20865 (decimal_real_to_integer2): Use wide-int interfaces and rename to
20866 decimal_real_to_integer.
20867 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
20868 decimal_real_to_integer.
20869 * doc/generic.texi (Constant expressions): Update for wide_int.
20870 * doc/rtl.texi (const_double): Likewise.
20871 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
20872 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
20873 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
20874 (REAL_VALUE_FROM_INT): Remove.
20875 (TARGET_SUPPORTS_WIDE_INT): New.
20876 * doc/tm.texi: Regenerate.
20877 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
20878 * double-int.h: Include wide-int.h.
20879 (struct wi::int_traits): New.
20880 * dwarf2out.c (get_full_len): New.
20881 (dw_val_equal_p): Add case dw_val_class_wide_int.
20882 (size_of_loc_descr): Likewise.
20883 (output_loc_operands): Likewise.
20884 (insert_double): Remove.
20885 (insert_wide_int): New.
20886 (add_AT_wide): New.
20887 (print_die): Add case dw_val_class_wide_int.
20888 (attr_checksum): Likewise.
20889 (attr_checksum_ordered): Likewise.
20890 (same_dw_val_p): Likewise.
20891 (size_of_die): Likewise.
20892 (value_format): Likewise.
20893 (output_die): Likewise.
20894 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
20895 Use wide-int.
20896 (clz_loc_descriptor): Use wide-int interfaces.
20897 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
20898 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
20899 (round_up_to_align): Use wide-int interfaces.
20900 (field_byte_offset): Likewise.
20901 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
20902 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
20903 CONST_DOUBLE handling. Use wide-int interfaces.
20904 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
20905 (gen_enumeration_type_die): Use add_AT_wide.
20906 (hash_loc_operands): Add case dw_val_class_wide_int.
20907 (compare_loc_operands): Likewise.
20908 * dwarf2out.h: Include wide-int.h.
20909 (wide_int_ptr): New.
20910 (enum dw_val_class): Add dw_val_class_wide_int.
20911 (struct dw_val_struct): Add val_wide.
20912 * emit-rtl.c (const_wide_int_htab): New.
20913 (const_wide_int_htab_hash): New.
20914 (const_wide_int_htab_eq): New.
20915 (lookup_const_wide_int): New.
20916 (const_double_htab_hash): Use wide-int interfaces.
20917 (const_double_htab_eq): Likewise.
20918 (rtx_to_double_int): Conditionally compile for wide-int.
20919 (immed_double_int_const): Rename to immed_wide_int_const and
20920 update for wide-int.
20921 (immed_double_const): Conditionally compile for wide-int.
20922 (init_emit_once): Use wide-int interfaces.
20923 * explow.c (plus_constant): Likewise.
20924 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
20925 (lshift_value): Use wide-int interfaces.
20926 (expand_mult): Likewise.
20927 (choose_multiplier): Likewise.
20928 (expand_smod_pow2): Likewise.
20929 (make_tree): Likewise.
20930 * expr.c (convert_modes): Consolidate handling of constants.
20931 Use wide-int interfaces.
20932 (emit_group_load_1): Add note.
20933 (store_expr): Update comment.
20934 (get_inner_reference): Use wide-int interfaces.
20935 (expand_constructor): Update comment.
20936 (expand_expr_real_2): Use wide-int interfaces.
20937 (expand_expr_real_1): Likewise.
20938 (reduce_to_bit_field_precision): Likewise.
20939 (const_vector_from_tree): Likewise.
20940 * final.c: Include wide-int-print.h.
20941 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
20942 * fixed-value.c: Include wide-int.h.
20943 (fixed_from_string): Use wide-int interfaces.
20944 (fixed_to_decimal): Likewise.
20945 (fixed_convert_from_real): Likewise.
20946 (real_convert_from_fixed): Likewise.
20947 * fold-const.h (mem_ref_offset): Return an offset_int.
20948 (div_if_zero_remainder): Remove code parameter.
20949 * fold-const.c (div_if_zero_remainder): Remove code parameter.
20950 Use wide-int interfaces.
20951 (may_negate_without_overflow_p): Use wide-int interfaces.
20952 (negate_expr_p): Likewise.
20953 (fold_negate_expr): Likewise.
20954 (int_const_binop_1): Likewise.
20955 (const_binop): Likewise.
20956 (fold_convert_const_int_from_int): Likewise.
20957 (fold_convert_const_int_from_real): Likewise.
20958 (fold_convert_const_int_from_fixed): Likewise.
20959 (fold_convert_const_fixed_from_int): Likewise.
20960 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
20961 (sign_bit_p): Use wide-int interfaces.
20962 (make_range_step): Likewise.
20963 (build_range_check): Likewise. Pass an integer of the correct type
20964 instead of using integer_one_node.
20965 (range_predecessor): Pass an integer of the correct type instead
20966 of using integer_one_node.
20967 (range_successor): Likewise.
20968 (merge_ranges): Likewise.
20969 (unextend): Use wide-int interfaces.
20970 (extract_muldiv_1): Likewise.
20971 (fold_div_compare): Likewise.
20972 (fold_single_bit_test): Likewise.
20973 (fold_sign_changed_comparison): Likewise.
20974 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
20975 (fold_plusminus_mult_expr): Use wide-int interfaces.
20976 (native_encode_int): Likewise.
20977 (native_interpret_int): Likewise.
20978 (fold_unary_loc): Likewise.
20979 (pointer_may_wrap_p): Likewise.
20980 (size_low_cst): Likewise.
20981 (mask_with_tz): Likewise.
20982 (fold_binary_loc): Likewise.
20983 (fold_ternary_loc): Likewise.
20984 (multiple_of_p): Likewise.
20985 (tree_call_nonnegative_warnv_p): Update calls to
20986 tree_int_cst_min_precision and real_from_integer.
20987 (fold_negate_const): Use wide-int interfaces.
20988 (fold_abs_const): Likewise.
20989 (fold_relational_const): Use tree_int_cst_lt.
20990 (round_up_loc): Use wide-int interfaces.
20991 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
20992 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
20993 * gengtype.c: Remove include of double-int.h.
20994 (do_typedef): Use wide-int interfaces.
20995 (open_base_files): Add wide-int.h.
20996 (main): Add offset_int and widest_int typedefs.
20997 * gengtype-lex.l: Handle "^".
20998 (CXX_KEYWORD): Add "static".
20999 * gengtype-parse.c (require3): New.
21000 (require_template_declaration): Handle constant template arguments
21001 and nested templates.
21002 * gengtype-state.c: Don't include "double-int.h".
21003 * genpreds.c (write_one_predicate_function): Update comment.
21004 (write_tm_constrs_h): Add check for hval and lval use in
21005 CONST_WIDE_INT.
21006 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
21007 (add_to_sequence): Likewise.
21008 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
21009 and const_double_operand.
21010 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
21011 interfaces.
21012 * gimple-fold.c (get_base_constructor): Likewise.
21013 (fold_array_ctor_reference): Likewise.
21014 (fold_nonarray_ctor_reference): Likewise.
21015 (fold_const_aggregate_ref_1): Likewise.
21016 (gimple_val_nonnegative_real_p): Likewise.
21017 (gimple_fold_indirect_ref): Likewise.
21018 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
21019 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
21020 (struct slsr_cand_d): Change index to be widest_int.
21021 (struct incr_info_d): Change incr to be widest_int.
21022 (alloc_cand_and_find_basis): Use wide-int interfaces.
21023 (slsr_process_phi): Likewise.
21024 (backtrace_base_for_ref): Likewise. Return a widest_int.
21025 (restructure_reference): Take a widest_int instead of a double_int.
21026 (slsr_process_ref): Use wide-int interfaces.
21027 (create_mul_ssa_cand): Likewise.
21028 (create_mul_imm_cand): Likewise.
21029 (create_add_ssa_cand): Likewise.
21030 (create_add_imm_cand): Take a widest_int instead of a double_int.
21031 (slsr_process_add): Use wide-int interfaces.
21032 (slsr_process_cast): Likewise.
21033 (slsr_process_copy): Likewise.
21034 (dump_candidate): Likewise.
21035 (dump_incr_vec): Likewise.
21036 (replace_ref): Likewise.
21037 (cand_increment): Likewise. Return a widest_int.
21038 (cand_abs_increment): Likewise.
21039 (replace_mult_candidate): Take a widest_int instead of a double_int.
21040 (replace_unconditional_candidate): Use wide-int interfaces.
21041 (incr_vec_index): Take a widest_int instead of a double_int.
21042 (create_add_on_incoming_edge): Likewise.
21043 (create_phi_basis): Use wide-int interfaces.
21044 (replace_conditional_candidate): Likewise.
21045 (record_increment): Take a widest_int instead of a double_int.
21046 (record_phi_increments): Use wide-int interfaces.
21047 (phi_incr_cost): Take a widest_int instead of a double_int.
21048 (lowest_cost_path): Likewise.
21049 (total_savings): Likewise.
21050 (analyze_increments): Use wide-int interfaces.
21051 (ncd_with_phi): Take a widest_int instead of a double_int.
21052 (ncd_of_cand_and_phis): Likewise.
21053 (nearest_common_dominator_for_cands): Likewise.
21054 (insert_initializers): Use wide-int interfaces.
21055 (all_phi_incrs_profitable): Likewise.
21056 (replace_one_candidate): Likewise.
21057 (replace_profitable_candidates): Likewise.
21058 * godump.c: Include wide-int-print.h.
21059 (go_output_typedef): Use wide-int interfaces.
21060 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
21061 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
21062 (build_loop_iteration_domains): Likewise.
21063 * hooks.h: Include wide-int.h rather than double-int.h.
21064 (hook_bool_dint_dint_uint_bool_true): Delete.
21065 (hook_bool_wint_wint_uint_bool_true): Declare.
21066 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
21067 (hook_bool_wint_wint_uint_bool_true): New.
21068 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
21069 interfaces.
21070 (ubsan_expand_si_overflow_mul_check): Likewise.
21071 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
21072 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
21073 (get_ancestor_addr_info): Likewise.
21074 (ipa_modify_call_arguments): Likewise.
21075 * loop-doloop.c (doloop_modify): Likewise.
21076 (doloop_optimize): Likewise.
21077 * loop-iv.c (iv_number_of_iterations): Likewise.
21078 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
21079 (unroll_loop_constant_iterations): Likewise.
21080 (decide_unroll_runtime_iterations): Likewise.
21081 (unroll_loop_runtime_iterations): Likewise.
21082 (decide_peel_simple): Likewise.
21083 (decide_unroll_stupid): Likewise.
21084 * lto-streamer-in.c (streamer_read_wi): Add.
21085 (input_cfg): Use wide-int interfaces.
21086 (lto_input_tree_1): Likewise.
21087 * lto-streamer-out.c (streamer_write_wi): Add.
21088 (hash_tree): Use wide-int interfaces.
21089 (output_cfg): Likewise.
21090 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
21091 (GTFILES): Add wide-int.h and signop.h.
21092 (TAGS): Look for .cc files too.
21093 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
21094 * optabs.c (expand_subword_shift): Likewise.
21095 (expand_doubleword_shift): Likewise.
21096 (expand_absneg_bit): Likewise.
21097 (expand_copysign_absneg): Likewise.
21098 (expand_copysign_bit): Likewise.
21099 * postreload.c (reload_cse_simplify_set): Likewise.
21100 * predict.c (predict_iv_comparison): Likewise.
21101 * pretty-print.h: Include wide-int-print.h.
21102 (pp_wide_int) New.
21103 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
21104 * print-tree.c: Include wide-int-print.h.
21105 (print_node_brief): Use wide-int interfaces.
21106 (print_node): Likewise.
21107 * read-rtl.c (validate_const_wide_int): New.
21108 (read_rtx_code): Add CONST_WIDE_INT case.
21109 * real.c: Include wide-int.h.
21110 (real_to_integer2): Delete.
21111 (real_to_integer): New function, returning a wide_int.
21112 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
21113 (ten_to_ptwo): Update call to real_from_integer.
21114 (real_digit): Likewise.
21115 * real.h: Include signop.h, wide-int.h and insn-modes.h.
21116 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
21117 (REAL_VALUE_TO_INT): Delete.
21118 (real_to_integer): Declare a wide-int form.
21119 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
21120 * recog.c (const_int_operand): Improve comment.
21121 (const_scalar_int_operand): New.
21122 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
21123 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
21124 (split_double): Likewise.
21125 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
21126 (rtx_size): Likewise.
21127 (rtx_alloc_stat_v): New.
21128 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
21129 (cwi_output_hex): New.
21130 (iterative_hash_rtx): Handle CONST_WIDE_INT.
21131 (cwi_check_failed_bounds): New.
21132 * rtl.def (CONST_WIDE_INT): New.
21133 * rtl.h: Include <utility> and wide-int.h.
21134 (struct hwivec_def): New.
21135 (CWI_GET_NUM_ELEM): New.
21136 (CWI_PUT_NUM_ELEM): New.
21137 (struct rtx_def): Add num_elem and hwiv.
21138 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
21139 (CASE_CONST_UNIQUE): Likewise.
21140 (CASE_CONST_ANY): Likewise.
21141 (CONST_SCALAR_INT_P): Likewise.
21142 (CONST_WIDE_INT_P): New.
21143 (CWI_ELT): New.
21144 (HWIVEC_CHECK): New.
21145 (cwi_check_failed_bounds): New.
21146 (CWI_ELT): New.
21147 (HWIVEC_CHECK): New.
21148 (CONST_WIDE_INT_VEC) New.
21149 (CONST_WIDE_INT_NUNITS) New.
21150 (CONST_WIDE_INT_ELT) New.
21151 (rtx_mode_t): New type.
21152 (wi::int_traits <rtx_mode_t>): New.
21153 (wi::shwi): New.
21154 (wi::min_value): New.
21155 (wi::max_value): New.
21156 (rtx_alloc_v) New.
21157 (const_wide_int_alloc): New.
21158 (immed_wide_int_const): New.
21159 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
21160 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
21161 * signop.h: New file.
21162 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
21163 (simplify_const_unary_operation): Use wide-int interfaces.
21164 (simplify_binary_operation_1): Likewise.
21165 (simplify_const_binary_operation): Likewise.
21166 (simplify_const_relational_operation): Likewise.
21167 (simplify_immed_subreg): Likewise.
21168 * stmt.c (expand_case): Likewise.
21169 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
21170 signop rather than a bool.
21171 * stor-layout.c (layout_type): Use wide-int interfaces.
21172 (initialize_sizetypes): Update calls to
21173 set_min_and_max_values_for_integral_type.
21174 (set_min_and_max_values_for_integral_type): Take a signop rather
21175 than a bool. Use wide-int interfaces.
21176 (fixup_signed_type): Update accordingly. Remove
21177 HOST_BITS_PER_DOUBLE_INT limit.
21178 (fixup_unsigned_type): Likewise.
21179 * system.h (STATIC_CONSTANT_P): New.
21180 (STATIC_ASSERT): New.
21181 * target.def (can_use_doloop_p): Take widest_ints rather than
21182 double_ints.
21183 * target.h: Include wide-int.h rather than double-int.h.
21184 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
21185 than double_ints.
21186 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
21187 rather than INT_CST_LT_UNSIGNED.
21188 (can_use_doloop_if_innermost): Take widest_ints rather than
21189 double_ints.
21190 * tree-affine.c: Include wide-int-print.h.
21191 (double_int_ext_for_comb): Delete.
21192 (wide_int_ext_for_comb): New.
21193 (aff_combination_zero): Use wide-int interfaces.
21194 (aff_combination_const): Take a widest_int instead of a double_int.
21195 (aff_combination_elt): Use wide-int interfaces.
21196 (aff_combination_scale): Take a widest_int instead of a double_int.
21197 (aff_combination_add_elt): Likewise.
21198 (aff_combination_add_cst): Likewise.
21199 (aff_combination_add): Use wide-int interfaces.
21200 (aff_combination_convert): Likewise.
21201 (tree_to_aff_combination): Likewise.
21202 (add_elt_to_tree): Take a widest_int instead of a double_int.
21203 (aff_combination_to_tree): Use wide-int interfaces.
21204 (aff_combination_remove_elt): Likewise.
21205 (aff_combination_add_product): Take a widest_int instead of
21206 a double_int.
21207 (aff_combination_mult): Use wide-int interfaces.
21208 (aff_combination_expand): Likewise.
21209 (double_int_constant_multiple_p): Delete.
21210 (wide_int_constant_multiple_p): New.
21211 (aff_combination_constant_multiple_p): Take a widest_int pointer
21212 instead of a double_int pointer.
21213 (print_aff): Use wide-int interfaces.
21214 (get_inner_reference_aff): Take a widest_int pointer
21215 instead of a double_int pointer.
21216 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
21217 * tree-affine.h: Include wide-int.h.
21218 (struct aff_comb_elt): Change type of coef to widest_int.
21219 (struct affine_tree_combination): Change type of offset to widest_int.
21220 (double_int_ext_for_comb): Delete.
21221 (wide_int_ext_for_comb): New.
21222 (aff_combination_const): Use widest_int instead of double_int.
21223 (aff_combination_scale): Likewise.
21224 (aff_combination_add_elt): Likewise.
21225 (aff_combination_constant_multiple_p): Likewise.
21226 (get_inner_reference_aff): Likewise.
21227 (aff_comb_cannot_overlap_p): Likewise.
21228 (aff_combination_zero_p): Use wide-int interfaces.
21229 * tree.c: Include tree.h.
21230 (init_ttree): Use make_int_cst.
21231 (tree_code_size): Removed code for INTEGER_CST case.
21232 (tree_size): Add INTEGER_CST case.
21233 (make_node_stat): Update comment.
21234 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
21235 (build_int_cst_type): Use wide-int interfaces.
21236 (double_int_to_tree): Likewise.
21237 (double_int_fits_to_tree_p): Delete.
21238 (force_fit_type_double): Delete.
21239 (force_fit_type): New.
21240 (int_cst_hash_hash): Use wide-int interfaces.
21241 (int_cst_hash_eq): Likewise.
21242 (build_int_cst_wide): Delete.
21243 (wide_int_to_tree): New.
21244 (cache_integer_cst): Use wide-int interfaces.
21245 (build_low_bits_mask): Likewise.
21246 (cst_and_fits_in_hwi): Likewise.
21247 (real_value_from_int_cst): Likewise.
21248 (make_int_cst_stat): New.
21249 (integer_zerop): Use wide_int interfaces.
21250 (integer_onep): Likewise.
21251 (integer_all_onesp): Likewise.
21252 (integer_pow2p): Likewise.
21253 (integer_nonzerop): Likewise.
21254 (tree_log2): Likewise.
21255 (tree_floor_log2): Likewise.
21256 (tree_ctz): Likewise.
21257 (int_size_in_bytes): Likewise.
21258 (mem_ref_offset): Return an offset_int rather than a double_int.
21259 (build_type_attribute_qual_variant): Use wide_int interfaces.
21260 (type_hash_eq): Likewise
21261 (tree_int_cst_equal): Likewise.
21262 (tree_int_cst_lt): Delete.
21263 (tree_int_cst_compare): Likewise.
21264 (tree_fits_shwi_p): Use wide_int interfaces.
21265 (tree_fits_uhwi_p): Likewise.
21266 (tree_int_cst_sign_bit): Likewise.
21267 (tree_int_cst_sgn): Likewise.
21268 (tree_int_cst_min_precision): Take a signop rather than a bool.
21269 (simple_cst_equal): Use wide_int interfaces.
21270 (compare_tree_int): Likewise.
21271 (iterative_hash_expr): Likewise.
21272 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
21273 INT_CST_LT.
21274 (get_type_static_bounds): Use wide_int interfaces.
21275 (tree_int_cst_elt_check_failed): New.
21276 (build_common_tree_nodes): Reordered to set prec before filling in
21277 value.
21278 (int_cst_value): Check cst_and_fits_in_hwi.
21279 (widest_int_cst_value): Use wide_int interfaces.
21280 (upper_bound_in_type): Likewise.
21281 (lower_bound_in_type): Likewise.
21282 (num_ending_zeros): Likewise.
21283 (drop_tree_overflow): Likewise.
21284 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
21285 (gen_conditions_for_pow_cst_base): Likewise.
21286 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
21287 (group_case_labels_stmt): Use wide-int interfaces.
21288 (verify_gimple_assign_binary): Likewise.
21289 (print_loop): Likewise.
21290 * tree-chrec.c (tree_fold_binomial): Likewise.
21291 * tree-core.h (struct tree_base): Add int_length.
21292 (struct tree_int_cst): Change rep of value.
21293 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
21294 (dr_may_alias_p): Likewise.
21295 (max_stmt_executions_tree): Likewise.
21296 * tree.def (INTEGER_CST): Update comment.
21297 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
21298 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
21299 * tree-dump.c: Include wide-int.h and wide-int-print.h.
21300 (dequeue_and_dump): Use wide-int interfaces.
21301 * tree.h: Include wide-int.h.
21302 (NULL_TREE): Moved to earlier loc in file.
21303 (TREE_INT_CST_ELT_CHECK): New.
21304 (tree_int_cst_elt_check_failed): New.
21305 (TYPE_SIGN): New.
21306 (TREE_INT_CST): Delete.
21307 (TREE_INT_CST_LOW): Use wide-int interfaces.
21308 (TREE_INT_CST_HIGH): Delete.
21309 (TREE_INT_CST_NUNITS): New.
21310 (TREE_INT_CST_EXT_NUNITS): Likewise.
21311 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
21312 (TREE_INT_CST_ELT): Likewise.
21313 (INT_CST_LT): Delete.
21314 (tree_int_cst_elt_check): New (two forms).
21315 (type_code_size): Update comment.
21316 (make_int_cst_stat, make_int_cst): New.
21317 (tree_to_double_int): Delete.
21318 (double_int_fits_to_tree_p): Delete.
21319 (force_fit_type_double): Delete.
21320 (build_int_cstu): Replace with out-of-line function.
21321 (build_int_cst_wide): Delete.
21322 (tree_int_cst_lt): Define inline.
21323 (tree_int_cst_le): New.
21324 (tree_int_cst_compare): Define inline.
21325 (tree_int_cst_min_precision): Take a signop rather than a bool.
21326 (wi::int_traits <const_tree>): New.
21327 (wi::int_traits <tree>): New.
21328 (wi::extended_tree): New.
21329 (wi::int_traits <wi::extended_tree>): New.
21330 (wi::to_widest): New.
21331 (wi::to_offset): New.
21332 (wi::fits_to_tree_p): New.
21333 (wi::min_value): New.
21334 (wi::max_value): New.
21335 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
21336 (copy_tree_body_r): Likewise.
21337 * tree-object-size.c (compute_object_offset): Likewise.
21338 (addr_object_size): Likewise.
21339 * tree-predcom.c: Include wide-int-print.h.
21340 (struct dref_d): Change type of offset to widest_int.
21341 (dump_dref): Call wide-int printer.
21342 (aff_combination_dr_offset): Use wide-int interfaces.
21343 (determine_offset): Take a widest_int pointer rather than a
21344 double_int pointer.
21345 (split_data_refs_to_components): Use wide-int interfaces.
21346 (suitable_component_p): Likewise.
21347 (order_drefs): Likewise.
21348 (add_ref_to_chain): Likewise.
21349 (valid_initializer_p): Likewise.
21350 (determine_roots_comp): Likewise.
21351 * tree-pretty-print.c: Include wide-int-print.h.
21352 (dump_generic_node): Use wide-int interfaces.
21353 * tree-sra.c (sra_ipa_modify_expr): Likewise.
21354 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
21355 (move_fixed_address_to_symbol): Likewise.
21356 (move_hint_to_base): Likewise.
21357 (move_pointer_to_base): Likewise.
21358 (move_variant_to_index): Likewise.
21359 (most_expensive_mult_to_index): Likewise.
21360 (addr_to_parts): Likewise.
21361 (copy_ref_info): Likewise.
21362 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
21363 (indirect_refs_may_alias_p): Likewise.
21364 (stmt_kills_ref_p_1): Likewise.
21365 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
21366 * tree-ssa-ccp.c: Update comment at top of file. Include
21367 wide-int-print.h.
21368 (struct prop_value_d): Change type of mask to widest_int.
21369 (extend_mask): New function.
21370 (dump_lattice_value): Use wide-int interfaces.
21371 (get_default_value): Likewise.
21372 (set_constant_value): Likewise.
21373 (set_value_varying): Likewise.
21374 (valid_lattice_transition): Likewise.
21375 (set_lattice_value): Likewise.
21376 (value_to_double_int): Delete.
21377 (value_to_wide_int): New.
21378 (get_value_from_alignment): Use wide-int interfaces.
21379 (get_value_for_expr): Likewise.
21380 (do_dbg_cnt): Likewise.
21381 (ccp_finalize): Likewise.
21382 (ccp_lattice_meet): Likewise.
21383 (bit_value_unop_1): Use widest_ints rather than double_ints.
21384 (bit_value_binop_1): Likewise.
21385 (bit_value_unop): Use wide-int interfaces.
21386 (bit_value_binop): Likewise.
21387 (bit_value_assume_aligned): Likewise.
21388 (evaluate_stmt): Likewise.
21389 (ccp_fold_stmt): Likewise.
21390 (visit_cond_stmt): Likewise.
21391 (ccp_visit_stmt): Likewise.
21392 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
21393 (constant_pointer_difference): Likewise.
21394 (associate_pointerplus): Likewise.
21395 (combine_conversions): Likewise.
21396 * tree-ssa-loop.h: Include wide-int.h.
21397 (struct tree_niter_desc): Change type of max to widest_int.
21398 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
21399 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
21400 (remove_redundant_iv_tests): Likewise.
21401 (canonicalize_loop_induction_variables): Likewise.
21402 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
21403 (constant_multiple_of): Take a widest_int pointer instead of
21404 a double_int pointer.
21405 (get_computation_aff): Use wide-int interfaces.
21406 (ptr_difference_cost): Likewise.
21407 (difference_cost): Likewise.
21408 (get_loop_invariant_expr_id): Likewise.
21409 (get_computation_cost_at): Likewise.
21410 (iv_elimination_compare_lt): Likewise.
21411 (may_eliminate_iv): Likewise.
21412 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
21413 instead of double_int.
21414 (max_loop_iterations): Likewise.
21415 (max_stmt_executions): Likewise.
21416 (estimated_stmt_executions): Likewise.
21417 * tree-ssa-loop-niter.c: Include wide-int-print.h.
21418 (split_to_var_and_offset): Use wide-int interfaces.
21419 (determine_value_range): Likewise.
21420 (bound_difference_of_offsetted_base): Likewise.
21421 (bounds_add): Take a widest_int instead of a double_int.
21422 (number_of_iterations_ne_max): Use wide-int interfaces.
21423 (number_of_iterations_ne): Likewise.
21424 (number_of_iterations_lt_to_ne): Likewise.
21425 (assert_loop_rolls_lt): Likewise.
21426 (number_of_iterations_lt): Likewise.
21427 (number_of_iterations_le): Likewise.
21428 (number_of_iterations_cond): Likewise.
21429 (number_of_iterations_exit): Likewise.
21430 (finite_loop_p): Likewise.
21431 (derive_constant_upper_bound_assign): Likewise.
21432 (derive_constant_upper_bound): Return a widest_int.
21433 (derive_constant_upper_bound_ops): Likewise.
21434 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
21435 (record_estimate): Take a widest_int rather than a double_int.
21436 (record_nonwrapping_iv): Use wide-int interfaces.
21437 (double_int_cmp): Delete.
21438 (wide_int_cmp): New.
21439 (bound_index): Take a widest_int rather than a double_int.
21440 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
21441 (maybe_lower_iteration_bound): Likewise.
21442 (estimate_numbers_of_iterations_loop): Likewise.
21443 (estimated_loop_iterations): Take a widest_int pointer than than
21444 a double_int pointer.
21445 (estimated_loop_iterations_int): Use wide-int interfaces.
21446 (max_loop_iterations): Take a widest_int pointer than than
21447 a double_int pointer.
21448 (max_loop_iterations_int): Use wide-int interfaces.
21449 (max_stmt_executions): Take a widest_int pointer than than
21450 a double_int pointer.
21451 (estimated_stmt_executions): Likewise.
21452 (n_of_executions_at_most): Use wide-int interfaces.
21453 (scev_probably_wraps_p): Likewise.
21454 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
21455 to real_to_integer.
21456 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
21457 interfaces.
21458 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
21459 double_ints. Adjust for trailing_wide_ints <3> representation.
21460 (set_nonzero_bits): Likewise.
21461 (get_range_info): Return wide_ints rather than double_ints.
21462 Adjust for trailing_wide_ints <3> representation.
21463 (get_nonzero_bits): Likewise.
21464 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
21465 representation.
21466 * tree-ssanames.h (struct range_info_def): Replace min, max and
21467 nonzero_bits with a trailing_wide_ints <3>.
21468 (set_range_info): Use wide_int_refs rather than double_ints.
21469 (set_nonzero_bits): Likewise.
21470 (get_range_info): Return wide_ints rather than double_ints.
21471 (get_nonzero_bits): Likewise.
21472 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
21473 * tree-ssa-pre.c (phi_translate_1): Likewise.
21474 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
21475 (acceptable_pow_call): Likewise.
21476 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
21477 interfaces.
21478 (vn_reference_fold_indirect): Likewise.
21479 (vn_reference_maybe_forwprop_address): Likewise.
21480 (valueize_refs_1): Likewise.
21481 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
21482 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
21483 tree_int_cst_lt and tree_int_cst_le.
21484 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
21485 interfaces.
21486 (streamer_alloc_tree): Likewise.
21487 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
21488 (streamer_write_tree_header): Likewise.
21489 (streamer_write_integer_cst): Likewise.
21490 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
21491 (build_constructors): Likewise.
21492 (array_value_type): Likewise.
21493 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
21494 (vect_check_gather): Likewise.
21495 * tree-vect-generic.c (build_replicated_const): Likewise.
21496 (expand_vector_divmod): Likewise.
21497 * tree-vect-loop.c (vect_transform_loop): Likewise.
21498 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
21499 (vect_do_peeling_for_alignment): Likewise.
21500 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
21501 * tree-vrp.c: Include wide-int.h.
21502 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
21503 (extract_range_from_assert): Use wide-int interfaces.
21504 (vrp_int_const_binop): Likewise.
21505 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
21506 double_int pointers.
21507 (ranges_from_anti_range): Use wide-int interfaces.
21508 (quad_int_cmp): Delete.
21509 (quad_int_pair_sort): Likewise.
21510 (extract_range_from_binary_expr_1): Use wide-int interfaces.
21511 (extract_range_from_unary_expr_1): Likewise.
21512 (adjust_range_with_scev): Likewise.
21513 (masked_increment): Take and return wide_ints rather than double_ints.
21514 (register_edge_assert_for_2): Use wide-int interfaces.
21515 (check_array_ref): Likewise.
21516 (search_for_addr_array): Likewise.
21517 (maybe_set_nonzero_bits): Likewise.
21518 (union_ranges): Pass an integer of the correct type instead of
21519 using integer_one_node.
21520 (intersect_ranges): Likewise.
21521 (simplify_truth_ops_using_ranges): Likewise.
21522 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
21523 (range_fits_type_p): Likewise.
21524 (simplify_cond_using_ranges): Likewise. Take a signop rather than
21525 a bool.
21526 (simplify_conversion_using_ranges): Use wide-int interfaces.
21527 (simplify_float_conversion_using_ranges): Likewise.
21528 (vrp_finalize): Likewise.
21529 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
21530 (gimple_stringops_transform): Likewise.
21531 * varasm.c (decode_addr_const): Likewise.
21532 (const_hash_1): Likewise.
21533 (const_rtx_hash_1): Likewise
21534 (output_constant): Likewise.
21535 (array_size_for_constructor): Likewise.
21536 (output_constructor_regular_field): Likewise.
21537 (output_constructor_bitfield): Likewise.
21538 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
21539 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
21540 GENERATOR_FILEs.
21541 * gencheck.c: Define BITS_PER_UNIT.
21542 * wide-int.cc: New.
21543 * wide-int.h: New.
21544 * wide-int-print.cc: New.
21545 * wide-int-print.h: New.
21546
21547 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21548
21549 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
21550
21551 2014-05-06 Richard Biener <rguenther@suse.de>
21552
21553 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
21554 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
21555 (TODO_verify_all): Adjust.
21556 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
21557 TODO_verify_stmts and TODO_verify_rtl_sharing.
21558 * bb-reorder.c: Likewise.
21559 * cfgexpand.c: Likewise.
21560 * cprop.c: Likewise.
21561 * cse.c: Likewise.
21562 * function.c: Likewise.
21563 * fwprop.c: Likewise.
21564 * gcse.c: Likewise.
21565 * gimple-ssa-isolate-paths.c: Likewise.
21566 * gimple-ssa-strength-reduction.c: Likewise.
21567 * ipa-split.c: Likewise.
21568 * loop-init.c: Likewise.
21569 * loop-unroll.c: Likewise.
21570 * lower-subreg.c: Likewise.
21571 * modulo-sched.c: Likewise.
21572 * postreload-gcse.c: Likewise.
21573 * predict.c: Likewise.
21574 * recog.c: Likewise.
21575 * sched-rgn.c: Likewise.
21576 * store-motion.c: Likewise.
21577 * tracer.c: Likewise.
21578 * trans-mem.c: Likewise.
21579 * tree-call-cdce.c: Likewise.
21580 * tree-cfg.c: Likewise.
21581 * tree-cfgcleanup.c: Likewise.
21582 * tree-complex.c: Likewise.
21583 * tree-eh.c: Likewise.
21584 * tree-emutls.c: Likewise.
21585 * tree-if-conv.c: Likewise.
21586 * tree-into-ssa.c: Likewise.
21587 * tree-loop-distribution.c: Likewise.
21588 * tree-object-size.c: Likewise.
21589 * tree-parloops.c: Likewise.
21590 * tree-pass.h: Likewise.
21591 * tree-sra.c: Likewise.
21592 * tree-ssa-ccp.c: Likewise.
21593 * tree-ssa-copy.c: Likewise.
21594 * tree-ssa-copyrename.c: Likewise.
21595 * tree-ssa-dce.c: Likewise.
21596 * tree-ssa-dom.c: Likewise.
21597 * tree-ssa-dse.c: Likewise.
21598 * tree-ssa-forwprop.c: Likewise.
21599 * tree-ssa-ifcombine.c: Likewise.
21600 * tree-ssa-loop-ch.c: Likewise.
21601 * tree-ssa-loop-ivcanon.c: Likewise.
21602 * tree-ssa-loop.c: Likewise.
21603 * tree-ssa-math-opts.c: Likewise.
21604 * tree-ssa-phiopt.c: Likewise.
21605 * tree-ssa-phiprop.c: Likewise.
21606 * tree-ssa-pre.c: Likewise.
21607 * tree-ssa-reassoc.c: Likewise.
21608 * tree-ssa-sink.c: Likewise.
21609 * tree-ssa-strlen.c: Likewise.
21610 * tree-ssa-tail-merge.c: Likewise.
21611 * tree-ssa-uncprop.c: Likewise.
21612 * tree-switch-conversion.c: Likewise.
21613 * tree-tailcall.c: Likewise.
21614 * tree-vect-generic.c: Likewise.
21615 * tree-vectorizer.c: Likewise.
21616 * tree-vrp.c: Likewise.
21617 * tsan.c: Likewise.
21618 * var-tracking.c: Likewise.
21619 * bt-load.c: Likewise.
21620 * cfgcleanup.c: Likewise.
21621 * combine-stack-adj.c: Likewise.
21622 * combine.c: Likewise.
21623 * compare-elim.c: Likewise.
21624 * config/epiphany/resolve-sw-modes.c: Likewise.
21625 * config/i386/i386.c: Likewise.
21626 * config/mips/mips.c: Likewise.
21627 * config/s390/s390.c: Likewise.
21628 * config/sh/sh_treg_combine.cc: Likewise.
21629 * config/sparc/sparc.c: Likewise.
21630 * dce.c: Likewise.
21631 * dse.c: Likewise.
21632 * final.c: Likewise.
21633 * ifcvt.c: Likewise.
21634 * mode-switching.c: Likewise.
21635 * passes.c: Likewise.
21636 * postreload.c: Likewise.
21637 * ree.c: Likewise.
21638 * reg-stack.c: Likewise.
21639 * regcprop.c: Likewise.
21640 * regrename.c: Likewise.
21641 * web.c: Likewise.
21642
21643 2014-05-06 Richard Biener <rguenther@suse.de>
21644
21645 PR middle-end/61070
21646 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
21647 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
21648
21649 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
21650
21651 PR ipa/60965
21652 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
21653
21654 2014-05-05 Radovan Obradovic <robradovic@mips.com>
21655 Tom de Vries <tom@codesourcery.com>
21656
21657 * target.def (call_fusage_contains_non_callee_clobbers): New
21658 DEFHOOKPOD.
21659 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
21660 Hooks to @menu.
21661 (@node Miscellaneous Register Hooks): New node.
21662 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
21663 * doc/tm.texi: Regenerate.
21664
21665 2014-05-05 Marek Polacek <polacek@redhat.com>
21666
21667 PR driver/61065
21668 * opts.c (common_handle_option): Call error_at instead of warning_at.
21669
21670 2014-05-05 Richard Biener <rguenther@suse.de>
21671
21672 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
21673 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
21674 under the TODO_verify_il umbrella.
21675
21676 2014-05-05 Richard Biener <rguenther@suse.de>
21677
21678 * passes.c (execute_function_todo): Move TODO_verify_flow under
21679 the TODO_verify_ul umbrella.
21680
21681 2014-05-05 Richard Biener <rguenther@suse.de>
21682
21683 PR middle-end/61010
21684 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
21685 X & CST away from a CST that is the mask of a mode.
21686
21687 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21688
21689 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
21690 int argument to enum machine_mode.
21691 (picochip_class_max_nregs): Ditto.
21692 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
21693 (picochip_class_max_nregs): Ditto.
21694
21695 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21696
21697 * target.def: Add new target hook.
21698 * doc/tm.texi: Regenerate.
21699 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
21700 * targhooks.c (default_keep_leaf_when_profiled): New function.
21701
21702 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
21703 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
21704
21705 2014-05-05 Bin Cheng <bin.cheng@arm.com>
21706
21707 PR tree-optimization/60363
21708 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
21709 (copy_phi_args): New parameters. Call get_value_locus_in_path.
21710 (update_destination_phis): New parameter.
21711 (create_edge_and_update_destination_phis): Ditto.
21712 (ssa_fix_duplicate_block_edges): Pass new arguments.
21713 (thread_single_edge): Ditto.
21714
21715 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
21716
21717 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
21718 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
21719 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
21720 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
21721 Use RS6000_BTM_HARD_FLOAT.
21722 (BU_MISC_2): Likewise.
21723 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
21724 RS6000_BTM_HARD_FLOAT.
21725 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
21726 is explicitly used.
21727 (rs6000_invalid_builtin): Add hard floating builtin support.
21728 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
21729 hard float builtins.
21730 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
21731
21732 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21733
21734 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
21735 Add missing function* argument.
21736
21737 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
21738
21739 * lra-constraints.c (valid_address_p): Move earlier in file.
21740 Add a constraint argument to the address_info version.
21741 (satisfies_memory_constraint_p): New function.
21742 (satisfies_address_constraint_p): Likewise.
21743 (process_alt_operands, curr_insn_transform): Use them.
21744 (process_address): Pass the constraint to valid_address_p when
21745 checking address operands.
21746
21747 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
21748
21749 * config/mips/mips.c (mips_isa_rev): New variable.
21750 (mips_set_architecture): Set it.
21751 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
21752 from mips_isa_rev.
21753 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
21754 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
21755 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
21756 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
21757 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
21758 conditions in terms of mips_isa_rev.
21759 (mips_isa_rev): Declare.
21760
21761 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21762
21763 * config/sh/sh-mem.cc: Use tabs instead of spaces.
21764 (prob_unlikely, prob_likely): Make variables const.
21765
21766 2014-05-03 Denis Chertykov <chertykov@gmail.com>
21767
21768 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
21769
21770 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21771
21772 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
21773
21774 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21775
21776 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
21777 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
21778 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
21779 functions.
21780 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
21781 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
21782 sh_pass_in_reg_p.
21783 Replace usage of ROUND_REG with sh_round_reg.
21784 Use CEIL instead of ROUND_ADVANCE.
21785
21786 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21787
21788 PR target/61026
21789 * config/sh/sh.c: Include stdlib headers before everything else.
21790
21791 2014-05-02 Jakub Jelinek <jakub@redhat.com>
21792
21793 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
21794 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
21795 (gimplify_adjust_omp_clauses): Simd region is never
21796 directly nested in combined parallel. Instead, for linear
21797 with copyin/copyout, if in combined for simd loop, make decl
21798 firstprivate/lastprivate on OMP_FOR.
21799 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
21800 expand_omp_for_static_chunk): When setting endvar, also set
21801 fd->loop.v to the same value.
21802
21803 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21804
21805 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
21806
21807 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
21808
21809 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
21810 expression.
21811
21812 2014-05-02 Marek Polacek <polacek@redhat.com>
21813
21814 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
21815
21816 2014-05-02 Kito Cheng <kito@0xlab.org>
21817
21818 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
21819 to a C expression marco.
21820 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
21821 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
21822 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
21823 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
21824 HONOR_REG_ALLOC_ORDER.
21825 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
21826
21827 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21828
21829 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
21830
21831 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21832
21833 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
21834
21835 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
21836
21837 * tree-if-conv.c (is_cond_scalar_reduction): New function.
21838 (convert_scalar_cond_reduction): Likewise.
21839 (predicate_scalar_phi): Add recognition and transformation
21840 of simple conditioanl reduction to be vectorizable.
21841
21842 2014-05-01 Marek Polacek <polacek@redhat.com>
21843
21844 PR c/43245
21845 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
21846
21847 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
21848
21849 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
21850 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
21851 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
21852 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
21853 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
21854 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
21855 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
21856 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
21857
21858 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
21859
21860 * config/arc/arc.opt (mlra): Move comment above option name
21861 to avoid mis-parsing as language options.
21862
21863 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21864
21865 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
21866 * config/sol2.h: ... here.
21867 * config/sol2-10.h: Remove.
21868
21869 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
21870 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
21871 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
21872 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
21873 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
21874 * config/sol2.h: ... here.
21875 (SECTION_NAME_FORMAT): Don't redefine.
21876 (STARTFILE_ARCH32_SPEC): Rename to ...
21877 (STARTFILE_ARCH_SPEC): ... this.
21878 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
21879 * config/sparc/sol2.h: ... here.
21880 (SECTION_NAME_FORMAT): Don't undef.
21881 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
21882 (SUBTARGET_EXTRA_SPECS): Remove.
21883 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
21884
21885 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
21886 (MD_STARTFILE_PREFIX): Remove.
21887 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
21888 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
21889 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
21890 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
21891 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
21892 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
21893 * config/i386/sol2.h: ... here.
21894 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
21895 * config/i386/sol2-bi.h: Remove.
21896 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
21897 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
21898
21899 * config/i386/t-sol2-64: Rename to ...
21900 * config/i386/t-sol2: ... this.
21901 * config/sparc/t-sol2-64: Rename to ...
21902 * config/sparc/t-sol2: ... this.
21903
21904 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
21905 sol2_tm_file_head, sol2_tm_file_tail.
21906 Include ${cpu_type}/sol2.h before sol2.h.
21907 Remove sol2-10.h.
21908 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
21909 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
21910 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
21911 Reflect i386/t-sol2-64 renaming.
21912 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
21913 Reflect sparc/t-sol2-64 renaming.
21914
21915 2014-04-30 Richard Biener <rguenther@suse.de>
21916
21917 * passes.c (execute_function_todo): Move TODO_verify_stmts
21918 and TODO_verify_ssa under the TODO_verify_il umbrella.
21919 * tree-ssa.h (verify_ssa): Adjust prototype.
21920 * tree-ssa.c (verify_ssa): Add parameter to tell whether
21921 we should verify SSA operands.
21922 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
21923 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
21924 whether we should verify whether not throwing stmts have EH info.
21925 * graphite-scop-detection.c (create_sese_edges): Adjust.
21926 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
21927 * tree-eh.c (lower_try_finally_switch): Do not add the
21928 default case label twice.
21929
21930 2014-04-30 Marek Polacek <polacek@redhat.com>
21931
21932 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
21933 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
21934 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
21935 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
21936
21937 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
21938
21939 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
21940 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
21941 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
21942 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
21943 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
21944 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
21945 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
21946 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
21947
21948 2014-04-29 David Malcolm <dmalcolm@redhat.com>
21949
21950 * tree-cfg.c (dump_function_to_file): Dump the return type of
21951 functions, in a line to itself before the function body, mimicking
21952 the layout of a C function.
21953
21954 2014-04-29 Jakub Jelinek <jakub@redhat.com>
21955
21956 PR tree-optimization/60971
21957 * tree-tailcall.c (process_assignment): Reject conversions which
21958 reduce precision.
21959
21960 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
21961
21962 * calls.c (initialize_argument_information): Always treat
21963 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
21964 (expand_call): Likewise.
21965 (emit_library_call_calue_1): Likewise.
21966 * expr.c (PUSH_ARGS_REVERSED): Do not define.
21967 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
21968 code accordingly.
21969
21970 2014-04-29 Nick Clifton <nickc@redhat.com>
21971
21972 * config/msp430/msp430.md (umulsidi): Fix typo.
21973 (mulhisi3): Enable even inside interrupt handlers.
21974 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
21975 bigger return address pushed in large mode.
21976
21977 2014-04-29 Nick Clifton <nickc@redhat.com>
21978
21979 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
21980 (arc_init_reg_tables): Use a machine_mode enum to iterate over
21981 available modes.
21982 * config/m32r/m32r.c (init_reg_tables): Likewise.
21983 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
21984 enum to hold the modes.
21985
21986 2014-04-29 Richard Biener <rguenther@suse.de>
21987
21988 * dominance.c (free_dominance_info): Add overload with
21989 function parameter.
21990 (dom_info_state): Likewise.
21991 (dom_info_available_p): Likewise.
21992 * basic-block.h (free_dominance_info, dom_info_state,
21993 dom_info_available_p): Declare overloads.
21994 * passes.c (execute_function_todo): Verify that verifiers
21995 don't change dominator info state. Drop dominator info
21996 for IPA pass invocations.
21997 * cgraph.c (release_function_body): Restore asserts that
21998 dominator information is released.
21999
22000 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
22001
22002 * doc/invoke.texi: Fix typo.
22003 * tree-vrp.c: Fix typos.
22004 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
22005
22006 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22007
22008 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
22009
22010 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
22011
22012 * config/aarch64/aarch64-builtins.c
22013 (aarch64_types_storestruct_lane_qualifiers): New.
22014 (TYPES_STORESTRUCT_LANE): Likewise.
22015 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
22016 (st3_lane): Likewise.
22017 (st4_lane): Likewise.
22018 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
22019 (vec_store_lanesci_lane<mode>): Likewise.
22020 (vec_store_lanesxi_lane<mode>): Likewise.
22021 (aarch64_st2_lane<VQ:mode>): Likewise.
22022 (aarch64_st3_lane<VQ:mode>): Likewise.
22023 (aarch64_st4_lane<VQ:mode>): Likewise.
22024 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
22025 * config/aarch64/arm_neon.h
22026 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
22027 use new macro arguments.
22028 (__ST3_LANE_FUNC): Likewise.
22029 (__ST4_LANE_FUNC): Likewise.
22030 * config/aarch64/iterators.md (V_TWO_ELEM): New.
22031 (V_THREE_ELEM): Likewise.
22032 (V_FOUR_ELEM): Likewise.
22033
22034 2014-04-28 David Malcolm <dmalcolm@redhat.com>
22035
22036 * doc/gimple.texi: Replace the description of the now-defunct
22037 union gimple_statement_d with a diagram showing the
22038 gimple_statement_base class hierarchy and its relationships to
22039 the GSS_ and GIMPLE_ enums.
22040
22041 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
22042
22043 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
22044 * config/aarch64/aarch64.c
22045 (aarch64_cannot_change_mode_class): Weaken conditions.
22046 (aarch64_modes_tieable_p): New.
22047 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
22048
22049 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
22050
22051 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
22052 (loadsync_<mode>): Change mode.
22053 (load_quadpti, store_quadpti): New.
22054 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
22055 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
22056
22057 2014-04-28 Martin Jambor <mjambor@suse.cz>
22058
22059 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
22060 same alias type as the original statement.
22061 (subreplacement_assignment_data): New type.
22062 (handle_unscalarized_data_in_subtree): New type of parameter,
22063 generate new memory accesses with same alias type as the original
22064 statement.
22065 (load_assign_lhs_subreplacements): Likewise.
22066 (sra_modify_constructor_assign): Generate new memory accesses with
22067 same alias type as the original statement.
22068
22069 2014-04-28 Richard Biener <rguenther@suse.de>
22070
22071 * tree-pass.h (TODO_verify_il): Define.
22072 (TODO_verify_all): Complete properly.
22073 * passes.c (execute_function_todo): Move existing loop-closed
22074 SSA verification under TODO_verify_il.
22075 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
22076 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
22077 Fix tree sharing issue.
22078
22079 2014-04-28 Richard Biener <rguenther@suse.de>
22080
22081 PR middle-end/60092
22082 * builtins.def (DEF_C11_BUILTIN): Add.
22083 (BUILT_IN_ALIGNED_ALLOC): Likewise.
22084 * coretypes.h (enum function_class): Add function_c11_misc.
22085 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
22086 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
22087 (call_may_clobber_ref_p_1): Likewise.
22088 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
22089 (mark_all_reaching_defs_necessary_1): Likewise.
22090 (propagate_necessity): Likewise.
22091 (eliminate_unnecessary_stmts): Likewise.
22092 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
22093
22094 2014-04-28 Richard Biener <rguenther@suse.de>
22095
22096 * tree-vrp.c (vrp_var_may_overflow): Remove.
22097 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
22098 with overflow immediately bump to one before that value and
22099 let iteration figure out overflow status.
22100
22101 2014-04-28 Richard Biener <rguenther@suse.de>
22102
22103 * configure.ac: Do valgrind header checks unconditionally.
22104 Add --enable-valgrind-annotations.
22105 * system.h: Guard valgrind header inclusion with
22106 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
22107 * alloc-pool.c (pool_alloc, pool_free): Use
22108 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
22109 to guard possibly dead code.
22110 * config.in: Regenerated.
22111 * configure: Likewise.
22112
22113 2014-04-28 Jeff Law <law@redhat.com>
22114
22115 PR tree-optimization/60902
22116 * tree-ssa-threadedge.c
22117 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
22118 over real defs when invalidating outputs from statements that do not
22119 produce useful outputs for threading.
22120
22121 2014-04-28 Richard Biener <rguenther@suse.de>
22122
22123 PR tree-optimization/60979
22124 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
22125 SCOPs that end in a block with a successor with abnormal
22126 predecessors.
22127
22128 2014-04-28 Richard Biener <rguenther@suse.de>
22129
22130 * tree-pass.h (execute_pass_list): Adjust prototype.
22131 * passes.c (pass_manager::execute_early_local_passes): Adjust.
22132 (do_per_function): Change callback signature, push all actual
22133 work to the callbals.
22134 (do_per_function_toporder): Likewise.
22135 (execute_function_dump): Adjust.
22136 (execute_function_todo): Likewise.
22137 (clear_last_verified): Likewise.
22138 (verify_curr_properties): Likewise.
22139 (update_properties_after_pass): Likewise.
22140 (execute_pass_list_1): Split out from ...
22141 (execute_pass_list): ... here. Adjust.
22142 (execute_ipa_pass_list): Likewise.
22143 * cgraphunit.c (cgraph_add_new_function): Adjust.
22144 (analyze_function): Likewise.
22145 (expand_function): Likewise.
22146 * cgraph.c (release_function_body): Free dominance info
22147 here instead of asserting it was magically freed elsewhere.
22148
22149 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
22150
22151 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
22152 * configure: Regenerate.
22153 * config/sparc/sparc.opt (muser-mode): New option.
22154 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
22155 for LEON3.
22156 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
22157 * doc/invoke.texi (SPARC options): Document -muser-mode.
22158
22159 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
22160
22161 * cselib.c (find_slot_memmode): Delete.
22162 (cselib_hasher): Change compare_type to a struct.
22163 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
22164 constants.
22165 (preserve_constants_and_equivs): Adjust for new compare_type.
22166 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
22167 (wrap_constant): Delete.
22168 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
22169
22170 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
22171
22172 * doc/install.texi (Building with profile feedback): Remove
22173 outdated sentence.
22174
22175 2014-04-26 Tom de Vries <tom@codesourcery.com>
22176
22177 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
22178 array accesses.
22179
22180 2014-04-25 Cary Coutant <ccoutant@google.com>
22181
22182 PR debug/60929
22183 * dwarf2out.c (should_move_die_to_comdat): A type definition
22184 can contain a subprogram definition, but don't move it to a
22185 comdat unit.
22186 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
22187 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
22188 from original DIE.
22189 (clone_tree_hash): Rename to...
22190 (clone_tree_partial): ...this; change callers. Copy
22191 DW_TAG_subprogram DIEs as declarations.
22192 (copy_decls_walk): Don't copy children of a declaration into a
22193 type unit.
22194
22195 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
22196
22197 PR target/60969
22198 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
22199 alternative 12.
22200
22201 2014-04-25 Jiong Wang <jiong.wang@arm.com>
22202
22203 * config/arm/predicates.md (call_insn_operand): Add long_call check.
22204 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
22205 reg for long_call.
22206 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
22207 restriction.
22208
22209 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22210
22211 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
22212
22213 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22214
22215 PR tree-optimization/60930
22216 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
22217 creating a multiply candidate by folding two constant
22218 multiplicands when the result overflows.
22219
22220 2014-04-25 Jakub Jelinek <jakub@redhat.com>
22221
22222 PR tree-optimization/60960
22223 * tree-vect-generic.c (expand_vector_operation): Only call
22224 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
22225
22226 2014-04-25 Tom de Vries <tom@codesourcery.com>
22227
22228 * expr.c (clobber_reg_mode): New function.
22229 * expr.h (clobber_reg): New function.
22230
22231 2014-04-25 Tom de Vries <tom@codesourcery.com>
22232
22233 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
22234 clobbers.
22235
22236 2014-04-25 Radovan Obradovic <robradovic@mips.com>
22237 Tom de Vries <tom@codesourcery.com>
22238
22239 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
22240 handle.
22241 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
22242 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
22243 new argument to find_all_hard_reg_sets call.
22244
22245 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22246
22247 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
22248 Use HOST_WIDE_INT_C for mask literal.
22249 (aarch_rev16_shleft_mask_imm_p): Likewise.
22250
22251 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
22252
22253 PR target/60941
22254 * config/sparc/sparc.md (ashlsi3_extend): Delete.
22255
22256 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
22257
22258 PR preprocessor/56540
22259 * config/i386/i386-c.c (ix86_target_macros): Define
22260 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
22261
22262 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22263
22264 * configure.ac (tga_func): Remove.
22265 (LIB_TLS_SPEC): Remove.
22266 * configure: Regenerate.
22267 * config.in: Regenerate.
22268 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
22269
22270 2014-04-25 Richard Biener <rguenther@suse.de>
22271
22272 PR ipa/60912
22273 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
22274 call stmt use/clobber sets during stmt walk instead of
22275 walking the possibly incomplete set of caller edges.
22276
22277 2014-04-25 Richard Biener <rguenther@suse.de>
22278
22279 PR ipa/60911
22280 * passes.c (apply_ipa_transforms): Inline into only caller ...
22281 (execute_one_pass): ... here. Properly bring in function
22282 bodies for nodes we want to apply IPA transforms to.
22283
22284 2014-04-24 Cong Hou <congh@google.com>
22285
22286 PR tree-optimization/60896
22287 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
22288 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
22289 (vect_mark_pattern_stmts): Set the def type of all statements in
22290 PATTERN_DEF_SEQ as vect_internal_def.
22291
22292 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22293
22294 * doc/extend.texi (PowerPC Built-in Functions): Document new
22295 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
22296 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
22297
22298 * config/rs6000/predicates.md (const_0_to_3_operand): New
22299 predicate to match 0..3 integer constants.
22300
22301 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
22302 to support adding miscellaneous builtin functions.
22303 (BU_DFP_MISC_2): Likewise.
22304 (BU_P7_MISC_1): Likewise.
22305 (BU_P7_MISC_2): Likewise.
22306 (BU_P8V_MISC_3): Likewise.
22307 (BU_MISC_1): Likewise.
22308 (BU_MISC_2): Likewise.
22309 (DIVWE): Add extended divide builtin functions.
22310 (DIVWEO): Likewise.
22311 (DIVWEU): Likewise.
22312 (DIVWEUO): Likewise.
22313 (DIVDE): Likewise.
22314 (DIVDEO): Likewise.
22315 (DIVDEU): Likewise.
22316 (DIVDEUO): Likewise.
22317 (DXEX): Add decimal floating-point builtin functions.
22318 (DXEXQ): Likewise.
22319 (DDEDPD): Likewise.
22320 (DDEDPDQ): Likewise.
22321 (DENBCD): Likewise.
22322 (DENBCDQ): Likewise.
22323 (DIEX): Likewise.
22324 (DIEXQ): Likewise.
22325 (DSCLI): Likewise.
22326 (DSCLIQ): Likewise.
22327 (DSCRI): Likewise.
22328 (DSCRIQ): Likewise.
22329 (CDTBCD): Add new BCD builtin functions.
22330 (CBCDTD): Likewise.
22331 (ADDG6S): Likewise.
22332 (BCDADD): Likewise.
22333 (BCDADD_LT): Likewise.
22334 (BCDADD_EQ): Likewise.
22335 (BCDADD_GT): Likewise.
22336 (BCDADD_OV): Likewise.
22337 (BCDSUB): Likewise.
22338 (BCDSUB_LT): Likewise.
22339 (BCDSUB_EQ): Likewise.
22340 (BCDSUB_GT): Likewise.
22341 (BCDSUB_OV): Likewise.
22342 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
22343 (UNPACK_TD): Likewise.
22344 (PACK_TF): Likewise.
22345 (UNPACK_TF): Likewise.
22346 (UNPACK_TF_0): Likewise.
22347 (UNPACK_TF_1): Likewise.
22348 (PACK_V1TI): Likewise.
22349 (UNPACK_V1TI): Likewise.
22350
22351 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
22352 support for decimal floating point builtin functions.
22353 (rs6000_expand_ternop_builtin): Add checks for the new builtin
22354 functions that take constant arguments.
22355 (rs6000_invalid_builtin): Add decimal floating point builtin support.
22356 (rs6000_init_builtins): Setup long double, _Decimal64, and
22357 _Decimal128 types for new builtin functions.
22358 (builtin_function_type): Set the unsigned flags appropriately for
22359 the new builtin functions.
22360 (rs6000_opt_masks): Add support for decimal floating point builtin
22361 functions.
22362
22363 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
22364 floating point builtin functions.
22365 (RS6000_BTM_COMMON): Likewise.
22366 (RS6000_BTI_long_double): Likewise.
22367 (RS6000_BTI_dfloat64): Likewise.
22368 (RS6000_BTI_dfloat128): Likewise.
22369 (long_double_type_internal_node): Likewise.
22370 (dfloat64_type_internal_node): Likewise.
22371 (dfloat128_type_internal_node): Likewise.
22372
22373 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
22374 2.07 bcd arithmetic instructions.
22375 (UNSPEC_BCDSUB): Likewise.
22376 (UNSPEC_BCD_OVERFLOW): Likewise.
22377 (UNSPEC_BCD_ADD_SUB): Likewise.
22378 (bcd_add_sub): Likewise.
22379 (BCD_TEST): Likewise.
22380 (bcd<bcd_add_sub>): Likewise.
22381 (bcd<bcd_add_sub>_test): Likewise.
22382 (bcd<bcd_add_sub>_test2): Likewise.
22383 (bcd<bcd_add_sub>_<code>): Likewise.
22384 (peephole2 for combined bcd ops): Likewise.
22385
22386 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
22387 decimal floating point builtin functions.
22388 (UNSPEC_DENBCD): Likewise.
22389 (UNSPEC_DXEX): Likewise.
22390 (UNSPEC_DIEX): Likewise.
22391 (UNSPEC_DSCLI): Likewise.
22392 (UNSPEC_DSCRI): Likewise.
22393 (D64_D128): Likewise.
22394 (dfp_suffix): Likewise.
22395 (dfp_ddedpd_<mode>): Likewise.
22396 (dfp_denbcd_<mode>): Likewise.
22397 (dfp_dxex_<mode>): Likewise.
22398 (dfp_diex_<mode>): Likewise.
22399 (dfp_dscli_<mode>): Likewise.
22400 (dfp_dscri_<mode>): Likewise.
22401
22402 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
22403 builtin functions.
22404 (UNSPEC_CDTBCD): Likewise.
22405 (UNSPEC_CBCDTD): Likewise.
22406 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
22407 (UNSPEC_DIVEO): Likewise.
22408 (UNSPEC_DIVEU): Likewise.
22409 (UNSPEC_DIVEUO): Likewise.
22410 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
22411 pack/unpack 128-bit types.
22412 (UNSPEC_PACK_128BIT): Likewise.
22413 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
22414 (udiv<mode>3): Use idiv_ldiv mode attribute.
22415 (div<mode>3): Likewise.
22416 (addg6s): Add new BCD builtin functions.
22417 (cdtbcd): Likewise.
22418 (cbcdtd): Likewise.
22419 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
22420 (div_extend): Likewise.
22421 (div<div_extend>_<mode>"): Likewise.
22422 (FP128_64): Add support for new builtin functions to pack/unpack
22423 128-bit types.
22424 (unpack<mode>): Likewise.
22425 (unpacktf_0): Likewise.
22426 (unpacktf_1): Likewise.
22427 (unpack<mode>_dm): Likewise.
22428 (unpack<mode>_nodm): Likewise.
22429 (pack<mode>): Likewise.
22430 (unpackv1ti): Likewise.
22431 (packv1ti): Likewise.
22432
22433 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
22434
22435 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
22436 is disabled.
22437
22438 2014-04-24 Jakub Jelinek <jakub@redhat.com>
22439
22440 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
22441 * gimplify.c (omp_is_private): Change last argument's type to int.
22442 Only diagnose lastprivate if the simd argument is 1, only diagnose
22443 linear if the simd argument is 2.
22444 (gimplify_omp_for): Adjust omp_is_private callers. When adding
22445 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
22446 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
22447 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
22448 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
22449 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
22450 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
22451 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
22452 * tree-nested.c (convert_nonlocal_omp_clauses,
22453 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
22454
22455 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
22456
22457 PR target/60822
22458 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
22459 operand 1.
22460
22461 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
22462
22463 * flag-types.h (enum ivar_visibility): Add.
22464
22465 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
22466
22467 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
22468 function * argument.
22469
22470 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
22471
22472 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
22473
22474 2014-04-24 Radovan Obradovic <robradovic@mips.com>
22475 Tom de Vries <tom@codesourcery.com>
22476
22477 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
22478 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
22479 reg-note.
22480 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
22481 * emit-rtl.c (try_split): Same.
22482
22483 2014-04-24 Radovan Obradovic <robradovic@mips.com>
22484 Tom de Vries <tom@codesourcery.com>
22485
22486 * common.opt (fuse-caller-save): New option.
22487
22488 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
22489
22490 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
22491 elements for big-endian.
22492
22493 2014-04-24 Richard Biener <rguenther@suse.de>
22494
22495 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
22496 during TER and instead use the sepops interface for expanding
22497 non-GIMPLE_SINGLE_RHS.
22498
22499 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22500
22501 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
22502 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
22503
22504 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22505
22506 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
22507 assembler 64-bit option.
22508 * configure: Regenerate.
22509
22510 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22511
22512 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
22513 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
22514 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
22515 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
22516 (TARGET_CRYPTO): Take TARGET_SIMD into account.
22517
22518 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22519
22520 * config/aarch64/aarch64-builtins.c
22521 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
22522 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
22523 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
22524 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
22525 builtins.
22526 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
22527 (Vrevsuff): New mode attribute.
22528
22529 2014-04-24 Terry Guo <terry.guo@arm.com>
22530
22531 * config/arm/arm.h (machine_function): Define variable
22532 after_arm_reorg here.
22533 * config/arm/arm.c (after_arm_reorg): Remove the definition.
22534 (arm_split_constant): Update the way to access variable
22535 after_arm_reorg.
22536 (arm_reorg): Ditto.
22537 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
22538
22539 2014-04-23 Tom de Vries <tom@codesourcery.com>
22540
22541 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
22542
22543 2014-04-23 David Malcolm <dmalcolm@redhat.com>
22544
22545 * is-a.h: Update comments to reflect the following changes to the
22546 "pointerness" of the API, making the template parameter match the
22547 return type, allowing use of is-a.h with typedefs of pointers.
22548 (is_a_helper::cast): Return a T rather then a pointer to a T, so
22549 that the return type matches the parameter to the is_a_helper.
22550 (as_a): Likewise.
22551 (dyn_cast): Likewise.
22552
22553 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
22554 pointer from the is-a.h API.
22555
22556 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
22557 (is_a_helper <cgraph_node *>::test): ...this, matching change to
22558 is-a.h API.
22559 (is_a_helper <varpool_node>::test): Likewise, convert to...
22560 (is_a_helper <varpool_node *>::test): ...this.
22561
22562 (varpool_first_variable): Update for removal of implicit pointer
22563 from the is-a.h API.
22564 (varpool_next_variable): Likewise.
22565 (varpool_first_static_initializer): Likewise.
22566 (varpool_next_static_initializer): Likewise.
22567 (varpool_first_defined_variable): Likewise.
22568 (varpool_next_defined_variable): Likewise.
22569 (cgraph_first_defined_function): Likewise.
22570 (cgraph_next_defined_function): Likewise.
22571 (cgraph_first_function): Likewise.
22572 (cgraph_next_function): Likewise.
22573 (cgraph_first_function_with_gimple_body): Likewise.
22574 (cgraph_next_function_with_gimple_body): Likewise.
22575 (cgraph_alias_target): Likewise.
22576 (varpool_alias_target): Likewise.
22577 (cgraph_function_or_thunk_node): Likewise.
22578 (varpool_variable_node): Likewise.
22579 (symtab_real_symbol_p): Likewise.
22580 * cgraphunit.c (referred_to_p): Likewise.
22581 (analyze_functions): Likewise.
22582 (handle_alias_pairs): Likewise.
22583 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
22584 * gimple-ssa.h (gimple_vuse_op): Likewise.
22585 (gimple_vdef_op): Likewise.
22586 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
22587 * gimple.c (gimple_build_asm_1): Likewise.
22588 (gimple_build_try): Likewise.
22589 (gimple_build_resx): Likewise.
22590 (gimple_build_eh_dispatch): Likewise.
22591 (gimple_build_omp_for): Likewise.
22592 (gimple_omp_for_set_clauses): Likewise.
22593
22594 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
22595 (is_a_helper <gimple_statement_asm *>::test): ...this.
22596 (is_a_helper <gimple_statement_bind>::test): Convert to...
22597 (is_a_helper <gimple_statement_bind *>::test): ...this.
22598 (is_a_helper <gimple_statement_call>::test): Convert to...
22599 (is_a_helper <gimple_statement_call *>::test): ...this.
22600 (is_a_helper <gimple_statement_catch>::test): Convert to...
22601 (is_a_helper <gimple_statement_catch *>::test): ...this.
22602 (is_a_helper <gimple_statement_resx>::test): Convert to...
22603 (is_a_helper <gimple_statement_resx *>::test): ...this.
22604 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
22605 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
22606 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
22607 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
22608 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
22609 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
22610 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
22611 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
22612 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
22613 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
22614 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
22615 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
22616 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
22617 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
22618 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
22619 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
22620 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
22621 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
22622 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
22623 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
22624 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
22625 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
22626 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
22627 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
22628 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
22629 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
22630 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
22631 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
22632 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
22633 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
22634 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
22635 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
22636 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
22637 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
22638 (is_a_helper <gimple_statement_phi>::test): Convert to...
22639 (is_a_helper <gimple_statement_phi *>::test): ...this.
22640 (is_a_helper <gimple_statement_transaction>::test): Convert to...
22641 (is_a_helper <gimple_statement_transaction *>::test): ...this.
22642 (is_a_helper <gimple_statement_try>::test): Convert to...
22643 (is_a_helper <gimple_statement_try *>::test): ...this.
22644 (is_a_helper <gimple_statement_wce>::test): Convert to...
22645 (is_a_helper <gimple_statement_wce *>::test): ...this.
22646 (is_a_helper <const gimple_statement_asm>::test): Convert to...
22647 (is_a_helper <const gimple_statement_asm *>::test): ...this.
22648 (is_a_helper <const gimple_statement_bind>::test): Convert to...
22649 (is_a_helper <const gimple_statement_bind *>::test): ...this.
22650 (is_a_helper <const gimple_statement_call>::test): Convert to...
22651 (is_a_helper <const gimple_statement_call *>::test): ...this.
22652 (is_a_helper <const gimple_statement_catch>::test): Convert to...
22653 (is_a_helper <const gimple_statement_catch *>::test): ...this.
22654 (is_a_helper <const gimple_statement_resx>::test): Convert to...
22655 (is_a_helper <const gimple_statement_resx *>::test): ...this.
22656 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
22657 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
22658 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
22659 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
22660 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
22661 Convert to...
22662 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
22663 ...this.
22664 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
22665 Convert to...
22666 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
22667 ...this.
22668 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
22669 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
22670 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
22671 to...
22672 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
22673 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
22674 to...
22675 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
22676 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
22677 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
22678 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
22679 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
22680 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
22681 to...
22682 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
22683 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
22684 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
22685 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
22686 to...
22687 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
22688 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
22689 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
22690 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
22691 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
22692 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
22693 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
22694 (is_a_helper <const gimple_statement_phi>::test): Convert to...
22695 (is_a_helper <const gimple_statement_phi *>::test): ...this.
22696 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
22697 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
22698 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
22699 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
22700 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
22701 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
22702 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
22703 to...
22704 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
22705 ...this.
22706 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
22707 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
22708
22709 (gimple_use_ops): Update for removal of implicit pointer from the
22710 is-a.h API.
22711 (gimple_set_use_ops): Likewise.
22712 (gimple_vuse): Likewise.
22713 (gimple_vdef): Likewise.
22714 (gimple_vuse_ptr): Likewise.
22715 (gimple_vdef_ptr): Likewise.
22716 (gimple_set_vuse): Likewise.
22717 (gimple_set_vdef): Likewise.
22718 (gimple_omp_return_set_lhs): Likewise.
22719 (gimple_omp_return_lhs): Likewise.
22720 (gimple_omp_return_lhs_ptr): Likewise.
22721 (gimple_call_fntype): Likewise.
22722 (gimple_call_set_fntype): Likewise.
22723 (gimple_call_set_internal_fn): Likewise.
22724 (gimple_call_use_set): Likewise.
22725 (gimple_call_clobber_set): Likewise.
22726 (gimple_bind_vars): Likewise.
22727 (gimple_bind_set_vars): Likewise.
22728 (gimple_bind_body_ptr): Likewise.
22729 (gimple_bind_set_body): Likewise.
22730 (gimple_bind_add_stmt): Likewise.
22731 (gimple_bind_block): Likewise.
22732 (gimple_bind_set_block): Likewise.
22733 (gimple_asm_ninputs): Likewise.
22734 (gimple_asm_noutputs): Likewise.
22735 (gimple_asm_nclobbers): Likewise.
22736 (gimple_asm_nlabels): Likewise.
22737 (gimple_asm_input_op): Likewise.
22738 (gimple_asm_input_op_ptr): Likewise.
22739 (gimple_asm_output_op): Likewise.
22740 (gimple_asm_output_op_ptr): Likewise.
22741 (gimple_asm_set_output_op): Likewise.
22742 (gimple_asm_clobber_op): Likewise.
22743 (gimple_asm_set_clobber_op): Likewise.
22744 (gimple_asm_label_op): Likewise.
22745 (gimple_asm_set_label_op): Likewise.
22746 (gimple_asm_string): Likewise.
22747 (gimple_catch_types): Likewise.
22748 (gimple_catch_types_ptr): Likewise.
22749 (gimple_catch_handler_ptr): Likewise.
22750 (gimple_catch_set_types): Likewise.
22751 (gimple_catch_set_handler): Likewise.
22752 (gimple_eh_filter_types): Likewise.
22753 (gimple_eh_filter_types_ptr): Likewise.
22754 (gimple_eh_filter_failure_ptr): Likewise.
22755 (gimple_eh_filter_set_types): Likewise.
22756 (gimple_eh_filter_set_failure): Likewise.
22757 (gimple_eh_must_not_throw_fndecl): Likewise.
22758 (gimple_eh_must_not_throw_set_fndecl): Likewise.
22759 (gimple_eh_else_n_body_ptr): Likewise.
22760 (gimple_eh_else_e_body_ptr): Likewise.
22761 (gimple_eh_else_set_n_body): Likewise.
22762 (gimple_eh_else_set_e_body): Likewise.
22763 (gimple_try_eval_ptr): Likewise.
22764 (gimple_try_cleanup_ptr): Likewise.
22765 (gimple_try_set_eval): Likewise.
22766 (gimple_try_set_cleanup): Likewise.
22767 (gimple_wce_cleanup_ptr): Likewise.
22768 (gimple_wce_set_cleanup): Likewise.
22769 (gimple_phi_capacity): Likewise.
22770 (gimple_phi_num_args): Likewise.
22771 (gimple_phi_result): Likewise.
22772 (gimple_phi_result_ptr): Likewise.
22773 (gimple_phi_set_result): Likewise.
22774 (gimple_phi_arg): Likewise.
22775 (gimple_phi_set_arg): Likewise.
22776 (gimple_resx_region): Likewise.
22777 (gimple_resx_set_region): Likewise.
22778 (gimple_eh_dispatch_region): Likewise.
22779 (gimple_eh_dispatch_set_region): Likewise.
22780 (gimple_omp_critical_name): Likewise.
22781 (gimple_omp_critical_name_ptr): Likewise.
22782 (gimple_omp_critical_set_name): Likewise.
22783 (gimple_omp_for_clauses): Likewise.
22784 (gimple_omp_for_clauses_ptr): Likewise.
22785 (gimple_omp_for_set_clauses): Likewise.
22786 (gimple_omp_for_collapse): Likewise.
22787 (gimple_omp_for_index): Likewise.
22788 (gimple_omp_for_index_ptr): Likewise.
22789 (gimple_omp_for_set_index): Likewise.
22790 (gimple_omp_for_initial): Likewise.
22791 (gimple_omp_for_initial_ptr): Likewise.
22792 (gimple_omp_for_set_initial): Likewise.
22793 (gimple_omp_for_final): Likewise.
22794 (gimple_omp_for_final_ptr): Likewise.
22795 (gimple_omp_for_set_final): Likewise.
22796 (gimple_omp_for_incr): Likewise.
22797 (gimple_omp_for_incr_ptr): Likewise.
22798 (gimple_omp_for_set_incr): Likewise.
22799 (gimple_omp_for_pre_body_ptr): Likewise.
22800 (gimple_omp_for_set_pre_body): Likewise.
22801 (gimple_omp_parallel_clauses): Likewise.
22802 (gimple_omp_parallel_clauses_ptr): Likewise.
22803 (gimple_omp_parallel_set_clauses): Likewise.
22804 (gimple_omp_parallel_child_fn): Likewise.
22805 (gimple_omp_parallel_child_fn_ptr): Likewise.
22806 (gimple_omp_parallel_set_child_fn): Likewise.
22807 (gimple_omp_parallel_data_arg): Likewise.
22808 (gimple_omp_parallel_data_arg_ptr): Likewise.
22809 (gimple_omp_parallel_set_data_arg): Likewise.
22810 (gimple_omp_task_clauses): Likewise.
22811 (gimple_omp_task_clauses_ptr): Likewise.
22812 (gimple_omp_task_set_clauses): Likewise.
22813 (gimple_omp_task_child_fn): Likewise.
22814 (gimple_omp_task_child_fn_ptr): Likewise.
22815 (gimple_omp_task_set_child_fn): Likewise.
22816 (gimple_omp_task_data_arg): Likewise.
22817 (gimple_omp_task_data_arg_ptr): Likewise.
22818 (gimple_omp_task_set_data_arg): Likewise.
22819 (gimple_omp_taskreg_clauses): Likewise.
22820 (gimple_omp_taskreg_clauses_ptr): Likewise.
22821 (gimple_omp_taskreg_set_clauses): Likewise.
22822 (gimple_omp_taskreg_child_fn): Likewise.
22823 (gimple_omp_taskreg_child_fn_ptr): Likewise.
22824 (gimple_omp_taskreg_set_child_fn): Likewise.
22825 (gimple_omp_taskreg_data_arg): Likewise.
22826 (gimple_omp_taskreg_data_arg_ptr): Likewise.
22827 (gimple_omp_taskreg_set_data_arg): Likewise.
22828 (gimple_omp_task_copy_fn): Likewise.
22829 (gimple_omp_task_copy_fn_ptr): Likewise.
22830 (gimple_omp_task_set_copy_fn): Likewise.
22831 (gimple_omp_task_arg_size): Likewise.
22832 (gimple_omp_task_arg_size_ptr): Likewise.
22833 (gimple_omp_task_set_arg_size): Likewise.
22834 (gimple_omp_task_arg_align): Likewise.
22835 (gimple_omp_task_arg_align_ptr): Likewise.
22836 (gimple_omp_task_set_arg_align): Likewise.
22837 (gimple_omp_single_clauses): Likewise.
22838 (gimple_omp_single_clauses_ptr): Likewise.
22839 (gimple_omp_single_set_clauses): Likewise.
22840 (gimple_omp_target_clauses): Likewise.
22841 (gimple_omp_target_clauses_ptr): Likewise.
22842 (gimple_omp_target_set_clauses): Likewise.
22843 (gimple_omp_target_child_fn): Likewise.
22844 (gimple_omp_target_child_fn_ptr): Likewise.
22845 (gimple_omp_target_set_child_fn): Likewise.
22846 (gimple_omp_target_data_arg): Likewise.
22847 (gimple_omp_target_data_arg_ptr): Likewise.
22848 (gimple_omp_target_set_data_arg): Likewise.
22849 (gimple_omp_teams_clauses): Likewise.
22850 (gimple_omp_teams_clauses_ptr): Likewise.
22851 (gimple_omp_teams_set_clauses): Likewise.
22852 (gimple_omp_sections_clauses): Likewise.
22853 (gimple_omp_sections_clauses_ptr): Likewise.
22854 (gimple_omp_sections_set_clauses): Likewise.
22855 (gimple_omp_sections_control): Likewise.
22856 (gimple_omp_sections_control_ptr): Likewise.
22857 (gimple_omp_sections_set_control): Likewise.
22858 (gimple_omp_for_set_cond): Likewise.
22859 (gimple_omp_for_cond): Likewise.
22860 (gimple_omp_atomic_store_set_val): Likewise.
22861 (gimple_omp_atomic_store_val): Likewise.
22862 (gimple_omp_atomic_store_val_ptr): Likewise.
22863 (gimple_omp_atomic_load_set_lhs): Likewise.
22864 (gimple_omp_atomic_load_lhs): Likewise.
22865 (gimple_omp_atomic_load_lhs_ptr): Likewise.
22866 (gimple_omp_atomic_load_set_rhs): Likewise.
22867 (gimple_omp_atomic_load_rhs): Likewise.
22868 (gimple_omp_atomic_load_rhs_ptr): Likewise.
22869 (gimple_omp_continue_control_def): Likewise.
22870 (gimple_omp_continue_control_def_ptr): Likewise.
22871 (gimple_omp_continue_set_control_def): Likewise.
22872 (gimple_omp_continue_control_use): Likewise.
22873 (gimple_omp_continue_control_use_ptr): Likewise.
22874 (gimple_omp_continue_set_control_use): Likewise.
22875 (gimple_transaction_body_ptr): Likewise.
22876 (gimple_transaction_label): Likewise.
22877 (gimple_transaction_label_ptr): Likewise.
22878 (gimple_transaction_set_body): Likewise.
22879 (gimple_transaction_set_label): Likewise.
22880
22881 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
22882 * ipa-inline-analysis.c (inline_write_summary): Likewise.
22883 * ipa-ref.c (ipa_record_reference): Likewise.
22884 * ipa-reference.c (analyze_function): Likewise.
22885 (ipa_reference_write_optimization_summary): Likewise.
22886 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
22887 (address_taken_from_non_vtable_p): Likewise.
22888 (comdat_can_be_unshared_p_1): Likewise.
22889 * lto-cgraph.c (lto_output_ref): Likewise.
22890 (add_references): Likewise.
22891 (compute_ltrans_boundary): Likewise.
22892 (output_symtab): Likewise.
22893 (input_ref): Likewise.
22894 (input_cgraph_1): Likewise.
22895 (output_cgraph_opt_summary): Likewise.
22896 * lto-streamer-out.c (lto_output): Likewise.
22897 (output_symbol_p): Likewise.
22898 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
22899 (lsei_start_function_in_partition): Likewise.
22900 (lsei_next_variable_in_partition): Likewise.
22901 (lsei_start_variable_in_partition): Likewise.
22902 * symtab.c (insert_to_assembler_name_hash): Likewise.
22903 (unlink_from_assembler_name_hash): Likewise.
22904 (symtab_unregister_node): Likewise.
22905 (symtab_remove_node): Likewise.
22906 (dump_symtab_node): Likewise.
22907 (verify_symtab_base): Likewise.
22908 (verify_symtab_node): Likewise.
22909 (symtab_make_decl_local): Likewise.
22910 (symtab_alias_ultimate_target): Likewise.
22911 (symtab_resolve_alias): Likewise.
22912 (symtab_get_symbol_partitioning_class): Likewise.
22913 * tree-phinodes.c (allocate_phi_node): Likewise.
22914 (reserve_phi_args_for_new_edge): Likewise.
22915 (remove_phi_args): Likewise.
22916 * varpool.c (varpool_node_for_asm): Likewise.
22917 (varpool_remove_unreferenced_decls): Likewise.
22918
22919 2014-04-23 Jeff Law <law@redhat.com>
22920
22921 PR tree-optimization/60902
22922 * tree-ssa-threadedge.c
22923 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
22924 invalidate outputs from statements that do not produce useful
22925 outputs for threading.
22926
22927 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
22928
22929 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
22930 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
22931 machine descriptions for Stack Smashing Protector.
22932
22933 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
22934
22935 * aarch64.md (<optab>_rol<mode>3): New pattern.
22936 (<optab>_rolsi3_uxtw): Likewise.
22937 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
22938
22939 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
22940
22941 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
22942 (arm_cortex_a12_tune): Likewise.
22943
22944 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22945
22946 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
22947
22948 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22949
22950 * config/arm/arm.md (arm_rev16si2): New pattern.
22951 (arm_rev16si2_alt): Likewise.
22952 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
22953
22954 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22955
22956 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
22957 (rev16<mode>2_alt): Likewise.
22958 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
22959 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
22960 (aarch_rev16_shleft_mask_imm_p): Likewise.
22961 (aarch_rev16_p_1): Likewise.
22962 (aarch_rev16_p): Likewise.
22963 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
22964 (aarch_rev16_shright_mask_imm_p): Likewise.
22965 (aarch_rev16_shleft_mask_imm_p): Likewise.
22966
22967 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22968
22969 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
22970 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
22971 rev cost.
22972 (cortex_a53_extra_costs): Likewise.
22973 (cortex_a57_extra_costs): Likewise.
22974 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
22975 (cortexa7_extra_costs): Likewise.
22976 (cortexa8_extra_costs): Likewise.
22977 (cortexa12_extra_costs): Likewise.
22978 (cortexa15_extra_costs): Likewise.
22979 (v7m_extra_costs): Likewise.
22980 (arm_new_rtx_costs): Handle BSWAP.
22981
22982 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22983
22984 * config/arm/arm.c (cortexa8_extra_costs): New table.
22985 (arm_cortex_a8_tune): New tuning struct.
22986 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
22987
22988 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22989
22990 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
22991
22992 2014-04-23 Richard Biener <rguenther@suse.de>
22993
22994 * Makefile.in (OBJS): Remove loop-unswitch.o.
22995 * tree-pass.h (make_pass_rtl_unswitch): Remove.
22996 * passes.def (pass_rtl_unswitch): Likewise.
22997 * loop-init.c (gate_rtl_unswitch): Likewise.
22998 (rtl_unswitch): Likewise.
22999 (pass_data_rtl_unswitch): Likewise.
23000 (pass_rtl_unswitch): Likewise.
23001 (make_pass_rtl_unswitch): Likewise.
23002 * rtl.h (reversed_condition): Likewise.
23003 (compare_and_jump_seq): Likewise.
23004 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
23005 and make static.
23006 * loop-unroll.c (compare_and_jump_seq): Likewise.
23007
23008 2014-04-23 Richard Biener <rguenther@suse.de>
23009
23010 PR tree-optimization/60903
23011 * tree-ssa-loop-im.c (analyze_memory_references): Remove
23012 commented code block.
23013 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
23014 loop flags to newly created BBs and edges.
23015
23016 2014-04-23 Nick Clifton <nickc@redhat.com>
23017
23018 * config/msp430/msp430.c (msp430_handle_option): Move function
23019 to msp430-common.c
23020 (msp430_option_override): Simplify mcu and mcpu option handling.
23021 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
23022 support for -mhwmult command line option.
23023 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
23024 -mhwmult command line option.
23025 (msp430_hwmult_enabled): Delete.
23026 (msp43o_output_labelref): Add support for -mhwmult command line option.
23027 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
23028 (umulsidi3): Likewise.
23029 * config/msp430/msp430.opt (mmcu): Add Report attribute.
23030 (mcpu, mlarge, msmall): Likewise.
23031 (mhwmult): New option.
23032 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
23033 prototype.
23034 (msp430_is_f5_mcu): Remove prototype.
23035 (msp430_use_f5_series_hwmult): Add prototype.
23036 * config/msp430/msp430-opts.h: New file.
23037 * common/config/msp430: New directory.
23038 * common/config/msp430/msp430-common.c: New file.
23039 * config.gcc (msp430): Remove target_has_targetm_common.
23040 * doc/invoke.texi: Document -mhwmult command line option.
23041
23042 2014-04-23 Nick Clifton <nickc@redhat.com>
23043
23044 * config/i386/cygwin.h (ENDFILE_SPEC): Include
23045 default-manifest.o if it can be found in the search path.
23046 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
23047
23048 2014-04-23 Terry Guo <terry.guo@arm.com>
23049
23050 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
23051
23052 2014-04-23 Richard Biener <rguenther@suse.de>
23053
23054 PR middle-end/60895
23055 * tree-inline.c (declare_return_variable): Use mark_addressable.
23056
23057 2014-04-23 Richard Biener <rguenther@suse.de>
23058
23059 PR middle-end/60891
23060 * loop-init.c (loop_optimizer_init): Make sure to apply
23061 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
23062
23063 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23064
23065 PR sanitizer/60275
23066 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
23067 New options.
23068 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
23069 if flag_sanitize_undefined_trap_on_error.
23070 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
23071 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
23072 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
23073 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
23074 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
23075 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
23076 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
23077 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
23078 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
23079 * ubsan.c (ubsan_instrument_unreachable): Return
23080 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
23081 (ubsan_expand_null_ifn): Emit __builtin_trap ()
23082 if flag_sanitize_undefined_trap_on_error and
23083 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
23084 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
23085 instrument_bool_enum_load): Emit __builtin_trap () if
23086 flag_sanitize_undefined_trap_on_error and
23087 __builtin_handle_*_abort () if !flag_sanitize_recover.
23088 * doc/invoke.texi (-fsanitize-recover,
23089 -fsanitize-undefined-trap-on-error): Document.
23090
23091 2014-04-22 Christian Bruel <christian.bruel@st.com>
23092
23093 * config/sh/sh.md (mov<mode>): Replace movQIHI.
23094 Force immediates to SImode.
23095
23096 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
23097
23098 * config/nios2/nios2.md (UNSPEC_ROUND): New.
23099 (lroundsfsi2): New.
23100 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
23101 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
23102 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
23103 (nios2_fpu_insn): Add entry for round.
23104 (N2FPU_NO_ERRNO_P): Define.
23105 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
23106 flag_errno_math.
23107 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
23108
23109 2014-04-22 Richard Henderson <rth@redhat.com>
23110
23111 * config/aarch64/aarch64 (addti3, subti3): New expanders.
23112 (add<GPI>3_compare0): Remove leading * from name.
23113 (add<GPI>3_carryin): Likewise.
23114 (sub<GPI>3_compare0): Likewise.
23115 (sub<GPI>3_carryin): Likewise.
23116 (<su_optab>mulditi3): New expander.
23117 (multi3): New expander.
23118 (madd<GPI>): Remove leading * from name.
23119
23120 2014-04-22 Martin Jambor <mjambor@suse.cz>
23121
23122 * cgraphclones.c (cgraph_function_versioning): Copy
23123 ipa_transforms_to_apply instead of asserting it is empty.
23124
23125 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
23126
23127 PR target/60868
23128 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
23129 on count_exp to get mode.
23130
23131 2014-04-22 Andrew Pinski <apinski@cavium.com>
23132
23133 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
23134 Handle TLS for ILP32.
23135 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
23136 (tlsie_small_<mode>): this and handle PTR.
23137 (tlsie_small_sidi): New pattern.
23138 (tlsle_small): Change to an expand to handle ILP32.
23139 (tlsle_small_<mode>): New pattern.
23140 (tlsdesc_small): Rename to ...
23141 (tlsdesc_small_<mode>): this and handle PTR.
23142
23143 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23144
23145 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
23146
23147 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23148
23149 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
23150 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
23151 (aarch64_types_signed_poly_qualifiers): Likewise.
23152 (aarch64_types_unsigned_signed_qualifiers): Likewise.
23153 (aarch64_types_poly_signed_qualifiers): Likewise.
23154 (TYPES_REINTERP_SS): Type macro added.
23155 (TYPES_REINTERP_SU): Likewise.
23156 (TYPES_REINTERP_SP): Likewise.
23157 (TYPES_REINTERP_US): Likewise.
23158 (TYPES_REINTERP_PS): Likewise.
23159 (aarch64_fold_builtin): New expression folding added.
23160 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
23161 Declarations removed.
23162 (REINTERP_SS): Declarations added.
23163 (REINTERP_US): Likewise.
23164 (REINTERP_PS): Likewise.
23165 (REINTERP_SU): Likewise.
23166 (REINTERP_SP): Likewise.
23167 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
23168 (vreinterpretq_p8_f64): Likewise.
23169 (vreinterpret_p16_f64): Likewise.
23170 (vreinterpretq_p16_f64): Likewise.
23171 (vreinterpret_f32_f64): Likewise.
23172 (vreinterpretq_f32_f64): Likewise.
23173 (vreinterpret_f64_f32): Likewise.
23174 (vreinterpret_f64_p8): Likewise.
23175 (vreinterpret_f64_p16): Likewise.
23176 (vreinterpret_f64_s8): Likewise.
23177 (vreinterpret_f64_s16): Likewise.
23178 (vreinterpret_f64_s32): Likewise.
23179 (vreinterpret_f64_s64): Likewise.
23180 (vreinterpret_f64_u8): Likewise.
23181 (vreinterpret_f64_u16): Likewise.
23182 (vreinterpret_f64_u32): Likewise.
23183 (vreinterpret_f64_u64): Likewise.
23184 (vreinterpretq_f64_f32): Likewise.
23185 (vreinterpretq_f64_p8): Likewise.
23186 (vreinterpretq_f64_p16): Likewise.
23187 (vreinterpretq_f64_s8): Likewise.
23188 (vreinterpretq_f64_s16): Likewise.
23189 (vreinterpretq_f64_s32): Likewise.
23190 (vreinterpretq_f64_s64): Likewise.
23191 (vreinterpretq_f64_u8): Likewise.
23192 (vreinterpretq_f64_u16): Likewise.
23193 (vreinterpretq_f64_u32): Likewise.
23194 (vreinterpretq_f64_u64): Likewise.
23195 (vreinterpret_s64_f64): Likewise.
23196 (vreinterpretq_s64_f64): Likewise.
23197 (vreinterpret_u64_f64): Likewise.
23198 (vreinterpretq_u64_f64): Likewise.
23199 (vreinterpret_s8_f64): Likewise.
23200 (vreinterpretq_s8_f64): Likewise.
23201 (vreinterpret_s16_f64): Likewise.
23202 (vreinterpretq_s16_f64): Likewise.
23203 (vreinterpret_s32_f64): Likewise.
23204 (vreinterpretq_s32_f64): Likewise.
23205 (vreinterpret_u8_f64): Likewise.
23206 (vreinterpretq_u8_f64): Likewise.
23207 (vreinterpret_u16_f64): Likewise.
23208 (vreinterpretq_u16_f64): Likewise.
23209 (vreinterpret_u32_f64): Likewise.
23210 (vreinterpretq_u32_f64): Likewise.
23211
23212 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23213
23214 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
23215 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
23216 (vreinterpret_p8_s8): Likewise.
23217 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
23218 (vreinterpret_p8_s16): Likewise.
23219 (vreinterpret_p8_s32): Likewise.
23220 (vreinterpret_p8_s64): Likewise.
23221 (vreinterpret_p8_f32): Likewise.
23222 (vreinterpret_p8_u8): Likewise.
23223 (vreinterpret_p8_u16): Likewise.
23224 (vreinterpret_p8_u32): Likewise.
23225 (vreinterpret_p8_u64): Likewise.
23226 (vreinterpret_p8_p16): Likewise.
23227 (vreinterpretq_p8_s8): Likewise.
23228 (vreinterpretq_p8_s16): Likewise.
23229 (vreinterpretq_p8_s32): Likewise.
23230 (vreinterpretq_p8_s64): Likewise.
23231 (vreinterpretq_p8_f32): Likewise.
23232 (vreinterpretq_p8_u8): Likewise.
23233 (vreinterpretq_p8_u16): Likewise.
23234 (vreinterpretq_p8_u32): Likewise.
23235 (vreinterpretq_p8_u64): Likewise.
23236 (vreinterpretq_p8_p16): Likewise.
23237 (vreinterpret_p16_s8): Likewise.
23238 (vreinterpret_p16_s16): Likewise.
23239 (vreinterpret_p16_s32): Likewise.
23240 (vreinterpret_p16_s64): Likewise.
23241 (vreinterpret_p16_f32): Likewise.
23242 (vreinterpret_p16_u8): Likewise.
23243 (vreinterpret_p16_u16): Likewise.
23244 (vreinterpret_p16_u32): Likewise.
23245 (vreinterpret_p16_u64): Likewise.
23246 (vreinterpret_p16_p8): Likewise.
23247 (vreinterpretq_p16_s8): Likewise.
23248 (vreinterpretq_p16_s16): Likewise.
23249 (vreinterpretq_p16_s32): Likewise.
23250 (vreinterpretq_p16_s64): Likewise.
23251 (vreinterpretq_p16_f32): Likewise.
23252 (vreinterpretq_p16_u8): Likewise.
23253 (vreinterpretq_p16_u16): Likewise.
23254 (vreinterpretq_p16_u32): Likewise.
23255 (vreinterpretq_p16_u64): Likewise.
23256 (vreinterpretq_p16_p8): Likewise.
23257 (vreinterpret_f32_s8): Likewise.
23258 (vreinterpret_f32_s16): Likewise.
23259 (vreinterpret_f32_s32): Likewise.
23260 (vreinterpret_f32_s64): Likewise.
23261 (vreinterpret_f32_u8): Likewise.
23262 (vreinterpret_f32_u16): Likewise.
23263 (vreinterpret_f32_u32): Likewise.
23264 (vreinterpret_f32_u64): Likewise.
23265 (vreinterpret_f32_p8): Likewise.
23266 (vreinterpret_f32_p16): Likewise.
23267 (vreinterpretq_f32_s8): Likewise.
23268 (vreinterpretq_f32_s16): Likewise.
23269 (vreinterpretq_f32_s32): Likewise.
23270 (vreinterpretq_f32_s64): Likewise.
23271 (vreinterpretq_f32_u8): Likewise.
23272 (vreinterpretq_f32_u16): Likewise.
23273 (vreinterpretq_f32_u32): Likewise.
23274 (vreinterpretq_f32_u64): Likewise.
23275 (vreinterpretq_f32_p8): Likewise.
23276 (vreinterpretq_f32_p16): Likewise.
23277 (vreinterpret_s64_s8): Likewise.
23278 (vreinterpret_s64_s16): Likewise.
23279 (vreinterpret_s64_s32): Likewise.
23280 (vreinterpret_s64_f32): Likewise.
23281 (vreinterpret_s64_u8): Likewise.
23282 (vreinterpret_s64_u16): Likewise.
23283 (vreinterpret_s64_u32): Likewise.
23284 (vreinterpret_s64_u64): Likewise.
23285 (vreinterpret_s64_p8): Likewise.
23286 (vreinterpret_s64_p16): Likewise.
23287 (vreinterpretq_s64_s8): Likewise.
23288 (vreinterpretq_s64_s16): Likewise.
23289 (vreinterpretq_s64_s32): Likewise.
23290 (vreinterpretq_s64_f32): Likewise.
23291 (vreinterpretq_s64_u8): Likewise.
23292 (vreinterpretq_s64_u16): Likewise.
23293 (vreinterpretq_s64_u32): Likewise.
23294 (vreinterpretq_s64_u64): Likewise.
23295 (vreinterpretq_s64_p8): Likewise.
23296 (vreinterpretq_s64_p16): Likewise.
23297 (vreinterpret_u64_s8): Likewise.
23298 (vreinterpret_u64_s16): Likewise.
23299 (vreinterpret_u64_s32): Likewise.
23300 (vreinterpret_u64_s64): Likewise.
23301 (vreinterpret_u64_f32): Likewise.
23302 (vreinterpret_u64_u8): Likewise.
23303 (vreinterpret_u64_u16): Likewise.
23304 (vreinterpret_u64_u32): Likewise.
23305 (vreinterpret_u64_p8): Likewise.
23306 (vreinterpret_u64_p16): Likewise.
23307 (vreinterpretq_u64_s8): Likewise.
23308 (vreinterpretq_u64_s16): Likewise.
23309 (vreinterpretq_u64_s32): Likewise.
23310 (vreinterpretq_u64_s64): Likewise.
23311 (vreinterpretq_u64_f32): Likewise.
23312 (vreinterpretq_u64_u8): Likewise.
23313 (vreinterpretq_u64_u16): Likewise.
23314 (vreinterpretq_u64_u32): Likewise.
23315 (vreinterpretq_u64_p8): Likewise.
23316 (vreinterpretq_u64_p16): Likewise.
23317 (vreinterpret_s8_s16): Likewise.
23318 (vreinterpret_s8_s32): Likewise.
23319 (vreinterpret_s8_s64): Likewise.
23320 (vreinterpret_s8_f32): Likewise.
23321 (vreinterpret_s8_u8): Likewise.
23322 (vreinterpret_s8_u16): Likewise.
23323 (vreinterpret_s8_u32): Likewise.
23324 (vreinterpret_s8_u64): Likewise.
23325 (vreinterpret_s8_p8): Likewise.
23326 (vreinterpret_s8_p16): Likewise.
23327 (vreinterpretq_s8_s16): Likewise.
23328 (vreinterpretq_s8_s32): Likewise.
23329 (vreinterpretq_s8_s64): Likewise.
23330 (vreinterpretq_s8_f32): Likewise.
23331 (vreinterpretq_s8_u8): Likewise.
23332 (vreinterpretq_s8_u16): Likewise.
23333 (vreinterpretq_s8_u32): Likewise.
23334 (vreinterpretq_s8_u64): Likewise.
23335 (vreinterpretq_s8_p8): Likewise.
23336 (vreinterpretq_s8_p16): Likewise.
23337 (vreinterpret_s16_s8): Likewise.
23338 (vreinterpret_s16_s32): Likewise.
23339 (vreinterpret_s16_s64): Likewise.
23340 (vreinterpret_s16_f32): Likewise.
23341 (vreinterpret_s16_u8): Likewise.
23342 (vreinterpret_s16_u16): Likewise.
23343 (vreinterpret_s16_u32): Likewise.
23344 (vreinterpret_s16_u64): Likewise.
23345 (vreinterpret_s16_p8): Likewise.
23346 (vreinterpret_s16_p16): Likewise.
23347 (vreinterpretq_s16_s8): Likewise.
23348 (vreinterpretq_s16_s32): Likewise.
23349 (vreinterpretq_s16_s64): Likewise.
23350 (vreinterpretq_s16_f32): Likewise.
23351 (vreinterpretq_s16_u8): Likewise.
23352 (vreinterpretq_s16_u16): Likewise.
23353 (vreinterpretq_s16_u32): Likewise.
23354 (vreinterpretq_s16_u64): Likewise.
23355 (vreinterpretq_s16_p8): Likewise.
23356 (vreinterpretq_s16_p16): Likewise.
23357 (vreinterpret_s32_s8): Likewise.
23358 (vreinterpret_s32_s16): Likewise.
23359 (vreinterpret_s32_s64): Likewise.
23360 (vreinterpret_s32_f32): Likewise.
23361 (vreinterpret_s32_u8): Likewise.
23362 (vreinterpret_s32_u16): Likewise.
23363 (vreinterpret_s32_u32): Likewise.
23364 (vreinterpret_s32_u64): Likewise.
23365 (vreinterpret_s32_p8): Likewise.
23366 (vreinterpret_s32_p16): Likewise.
23367 (vreinterpretq_s32_s8): Likewise.
23368 (vreinterpretq_s32_s16): Likewise.
23369 (vreinterpretq_s32_s64): Likewise.
23370 (vreinterpretq_s32_f32): Likewise.
23371 (vreinterpretq_s32_u8): Likewise.
23372 (vreinterpretq_s32_u16): Likewise.
23373 (vreinterpretq_s32_u32): Likewise.
23374 (vreinterpretq_s32_u64): Likewise.
23375 (vreinterpretq_s32_p8): Likewise.
23376 (vreinterpretq_s32_p16): Likewise.
23377 (vreinterpret_u8_s8): Likewise.
23378 (vreinterpret_u8_s16): Likewise.
23379 (vreinterpret_u8_s32): Likewise.
23380 (vreinterpret_u8_s64): Likewise.
23381 (vreinterpret_u8_f32): Likewise.
23382 (vreinterpret_u8_u16): Likewise.
23383 (vreinterpret_u8_u32): Likewise.
23384 (vreinterpret_u8_u64): Likewise.
23385 (vreinterpret_u8_p8): Likewise.
23386 (vreinterpret_u8_p16): Likewise.
23387 (vreinterpretq_u8_s8): Likewise.
23388 (vreinterpretq_u8_s16): Likewise.
23389 (vreinterpretq_u8_s32): Likewise.
23390 (vreinterpretq_u8_s64): Likewise.
23391 (vreinterpretq_u8_f32): Likewise.
23392 (vreinterpretq_u8_u16): Likewise.
23393 (vreinterpretq_u8_u32): Likewise.
23394 (vreinterpretq_u8_u64): Likewise.
23395 (vreinterpretq_u8_p8): Likewise.
23396 (vreinterpretq_u8_p16): Likewise.
23397 (vreinterpret_u16_s8): Likewise.
23398 (vreinterpret_u16_s16): Likewise.
23399 (vreinterpret_u16_s32): Likewise.
23400 (vreinterpret_u16_s64): Likewise.
23401 (vreinterpret_u16_f32): Likewise.
23402 (vreinterpret_u16_u8): Likewise.
23403 (vreinterpret_u16_u32): Likewise.
23404 (vreinterpret_u16_u64): Likewise.
23405 (vreinterpret_u16_p8): Likewise.
23406 (vreinterpret_u16_p16): Likewise.
23407 (vreinterpretq_u16_s8): Likewise.
23408 (vreinterpretq_u16_s16): Likewise.
23409 (vreinterpretq_u16_s32): Likewise.
23410 (vreinterpretq_u16_s64): Likewise.
23411 (vreinterpretq_u16_f32): Likewise.
23412 (vreinterpretq_u16_u8): Likewise.
23413 (vreinterpretq_u16_u32): Likewise.
23414 (vreinterpretq_u16_u64): Likewise.
23415 (vreinterpretq_u16_p8): Likewise.
23416 (vreinterpretq_u16_p16): Likewise.
23417 (vreinterpret_u32_s8): Likewise.
23418 (vreinterpret_u32_s16): Likewise.
23419 (vreinterpret_u32_s32): Likewise.
23420 (vreinterpret_u32_s64): Likewise.
23421 (vreinterpret_u32_f32): Likewise.
23422 (vreinterpret_u32_u8): Likewise.
23423 (vreinterpret_u32_u16): Likewise.
23424 (vreinterpret_u32_u64): Likewise.
23425 (vreinterpret_u32_p8): Likewise.
23426 (vreinterpret_u32_p16): Likewise.
23427 (vreinterpretq_u32_s8): Likewise.
23428 (vreinterpretq_u32_s16): Likewise.
23429 (vreinterpretq_u32_s32): Likewise.
23430 (vreinterpretq_u32_s64): Likewise.
23431 (vreinterpretq_u32_f32): Likewise.
23432 (vreinterpretq_u32_u8): Likewise.
23433 (vreinterpretq_u32_u16): Likewise.
23434 (vreinterpretq_u32_u64): Likewise.
23435 (vreinterpretq_u32_p8): Likewise.
23436 (vreinterpretq_u32_p16): Likewise.
23437
23438 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23439
23440 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
23441 Pattern extended.
23442 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
23443 (sqabs): Likewise.
23444 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
23445 (vqnegd_s64): Likewise.
23446 (vqabs_s64): Likewise.
23447 (vqabsd_s64): Likewise.
23448
23449 2014-04-22 Richard Henderson <rth@redhat.com>
23450
23451 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
23452 computation to the top of the loop.
23453
23454 2014-04-22 Renlin <renlin.li@arm.com>
23455 Jiong Wang <jiong.wang@arm.com>
23456
23457 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
23458 * config/aarch64/aarch64.c (aarch64_layout_frame)
23459 (aarch64_initial_elimination_offset): Likewise.
23460
23461 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
23462
23463 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
23464 Fix indentation.
23465
23466 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
23467
23468 * machmode.h (bitwise_mode_for_mode): Declare.
23469 * stor-layout.h (bitwise_type_for_mode): Likewise.
23470 * stor-layout.c (bitwise_mode_for_mode): New function.
23471 (bitwise_type_for_mode): Likewise.
23472 * builtins.c (fold_builtin_memory_op): Use it instead of
23473 int_mode_for_mode and build_nonstandard_integer_type.
23474
23475 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23476
23477 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
23478 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
23479 (*-*-solaris2*): Simplify.
23480 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
23481 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
23482 *-*-solaris2.9* handling.
23483
23484 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
23485 as bug.
23486 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
23487 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
23488 handling, simplify.
23489 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
23490 * configure: Regenerate.
23491
23492 * config/i386/sol2-9.h: Remove.
23493
23494 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
23495 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
23496 Remove Solaris 9 references.
23497
23498 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
23499
23500 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
23501 (floatuns<GPI:mode><GPF:mode>2): Remove.
23502 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
23503 and floatuns conversions.
23504 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
23505 and floatuns conversions.
23506 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
23507 (w1,w2): New mode attributes for inequal width conversions.
23508
23509 2014-04-22 Renlin Li <Renlin.Li@arm.com>
23510
23511 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
23512 the output asm format.
23513
23514 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
23515
23516 * config/aarch64/aarch64-simd.md
23517 (aarch64_cm<optab>di): Always split.
23518 (*aarch64_cm<optab>di): New.
23519 (aarch64_cmtstdi): Always split.
23520 (*aarch64_cmtstdi): New.
23521
23522 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23523
23524 PR tree-optimization/60823
23525 * omp-low.c (ipa_simd_modify_function_body): Go through
23526 all SSA_NAMEs and for those refering to vector arguments
23527 which are going to be replaced adjust SSA_NAME_VAR and,
23528 if it is a default definition, change it into a non-default
23529 definition assigned at the beginning of function from new_decl.
23530 (ipa_simd_modify_stmt_ops): Rewritten.
23531 * tree-dfa.c (set_ssa_default_def): When removing default def,
23532 check for NULL loc instead of NULL *loc.
23533
23534 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23535
23536 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
23537 restrictions on core registers for DImode values in Thumb2.
23538
23539 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23540
23541 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
23542 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
23543
23544 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23545
23546 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
23547 (*iordi_notzesidi_di): Likewise.
23548 (*iordi_notsesidi_di): Likewise.
23549
23550 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23551
23552 * config/arm/arm-protos.h (tune_params): New struct members.
23553 * config/arm/arm.c: Initialise tune_params per processor.
23554 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
23555 for speed, based on new tune_params.
23556
23557 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23558
23559 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
23560 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
23561 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
23562 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
23563 * config/aarch64/arm_neon.h (vrnd_f64): Added.
23564 (vrnda_f64): Likewise.
23565 (vrndi_f64): Likewise.
23566 (vrndm_f64): Likewise.
23567 (vrndn_f64): Likewise.
23568 (vrndp_f64): Likewise.
23569 (vrndx_f64): Likewise.
23570
23571 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23572
23573 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
23574 GET_MODE_SIZE argument is enum machine_mode.
23575
23576 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23577
23578 PR target/60910
23579 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
23580 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
23581
23582 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
23583
23584 PR middle-end/60281
23585 * asan.c (asan_emit_stack_protection): Force the base to align to
23586 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
23587 appropriate bits if STRICT_ALIGNMENT.
23588 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
23589 when asan is on.
23590 (expand_used_vars): Leave a space in the stack frame for alignment
23591 if STRICT_ALIGNMENT.
23592
23593 2014-04-21 David Malcolm <dmalcolm@redhat.com>
23594
23595 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
23596 than a gimple.
23597 (gimple_store_p): Likewise.
23598 (gimple_assign_load_p): Likewise.
23599 (gimple_assign_cast_p): Likewise.
23600 (gimple_clobber_p): Likewise.
23601
23602 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
23603 rather than a gimple.
23604 (gimple_assign_cast_p): Likewise.
23605
23606 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
23607
23608 PR target/60735
23609 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
23610 If mode is DDmode and TARGET_E500_DOUBLE allow move.
23611
23612 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
23613 more debug information for E500 if -mdebug=reg.
23614
23615 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
23616
23617 PR target/60909
23618 * config/i386/i386.c (ix86_expand_builtin)
23619 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
23620 register for target RTX.
23621 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
23622
23623 2014-04-18 Cong Hou <congh@google.com>
23624
23625 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
23626 the widen-mult pattern by handling two operands with different sizes,
23627 and operands whose size is smaller than half of the result type.
23628
23629 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
23630
23631 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
23632 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
23633 (do_estimate_edge_time): Compute it.
23634 * ipa-inline.c (want_inline_small_function_p): Bypass
23635 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
23636
23637 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
23638
23639 * ipa-inline.c (spec_rem): New static variable.
23640 (dump_overall_stats): New function.
23641 (dump_inline_stats): New function.
23642
23643 2014-04-18 Richard Henderson <rth@redhat.com>
23644
23645 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
23646 to GET_MODE_SIZE, not a reg_class_t.
23647
23648 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23649
23650 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
23651 (vsx_xxmrglw_<mode>): Likewise.
23652
23653 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
23654
23655 PR target/60876
23656 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
23657 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
23658 (rs6000_init_hard_regno_mode_ok): Likewise.
23659
23660 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
23661
23662 * ipa-inline.c (inline_small_functions): Account only non-cold
23663 functions.
23664 * doc/invoke.texi (inline-unit-growth): Update documentation.
23665
23666 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
23667
23668 * config/rs6000/rs6000.md (addti3, subti3): New.
23669
23670 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
23671
23672 PR target/60863
23673 * config/i386/i386.c (ix86_expand_clear): Remove outdated
23674 comment. Check optimize_insn_for_size_p instead of
23675 optimize_insn_for_speed_p.
23676
23677 2014-04-17 Martin Jambor <mjambor@suse.cz>
23678
23679 * gimple-iterator.c (gsi_start_edge): New function.
23680 * gimple-iterator.h (gsi_start_edge): Declare.
23681 * tree-sra.c (single_non_eh_succ): New function.
23682 (disqualify_ops_if_throwing_stmt): Renamed to
23683 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
23684 having one non-EH successor BB.
23685 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
23686 generate loads into replacements.
23687 (sra_modify_assign): Likewise and and also use the simple path for
23688 such statements.
23689 (sra_modify_function_body): Commit statements on edges.
23690
23691 2014-04-17 Richard Biener <rguenther@suse.de>
23692
23693 PR middle-end/60849
23694 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
23695 comparison results and add clarifying comment.
23696
23697 2014-04-17 Jakub Jelinek <jakub@redhat.com>
23698
23699 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
23700 (blank_mode): Initialize it.
23701 (emit_mode_size_inline, emit_mode_nunits_inline,
23702 emit_mode_inner_inline): New functions.
23703 (emit_insn_modes_h): Call them and surround their output with
23704 #if GCC_VERSION >= 4001 ... #endif.
23705 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
23706 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
23707 mode_* arrays if the argument is __builtin_constant_p.
23708 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
23709 is enum machine_mode.
23710
23711 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23712
23713 * passes.c (opt_pass::execute): Adjust.
23714 (pass_manager::execute_pass_mode_switching): Likewise.
23715 (early_local_passes::execute): Likewise.
23716 (execute_one_pass): Pass cfun to the pass's execute method.
23717 * tree-pass.h (opt_pass::execute): Add function * argument.
23718 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
23719 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
23720 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
23721 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
23722 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
23723 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
23724 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
23725 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
23726 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
23727 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
23728 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
23729 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
23730 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
23731 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
23732 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
23733 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
23734 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
23735 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
23736 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
23737 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
23738 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
23739 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
23740 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
23741 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
23742 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
23743 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
23744 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
23745 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
23746 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
23747 Adjust.
23748
23749 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23750
23751 * passes.c (opt_pass::gate): Take function * argument.
23752 (gate_all_early_local_passes): Merge into
23753 (early_local_passes::gate): this.
23754 (gate_all_early_optimizations): Merge into
23755 (all_early_optimizations::gate): this.
23756 (gate_all_optimizations): Mege into
23757 (all_optimizations::gate): this.
23758 (gate_all_optimizations_g): Merge into
23759 (all_optimizations_g::gate): this.
23760 (gate_rest_of_compilation): Mege into
23761 (rest_of_compilation::gate): this.
23762 (gate_postreload): Merge into
23763 (postreload::gate): this.
23764 (dump_one_pass): Pass cfun to the pass's gate method.
23765 (execute_ipa_summary_passes): Likewise.
23766 (execute_one_pass): Likewise.
23767 (ipa_write_summaries_2): Likewise.
23768 (ipa_write_optimization_summaries_1): Likewise.
23769 (ipa_read_summaries_1): Likewise.
23770 (ipa_read_optimization_summaries_1): Likewise.
23771 (execute_ipa_stmt_fixups): Likewise.
23772 * tree-pass.h (opt_pass::gate): Add function * argument.
23773 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
23774 combine-stack-adj.c, combine.c, compare-elim.c,
23775 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
23776 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
23777 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
23778 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
23779 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
23780 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
23781 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
23782 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
23783 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
23784 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
23785 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
23786 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
23787 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
23788 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
23789 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
23790 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
23791 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
23792 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
23793 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
23794 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
23795 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
23796 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
23797 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
23798 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
23799 var-tracking.c, vtable-verify.c, web.c: Adjust.
23800
23801 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23802
23803 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
23804 * configure: Regenerate.
23805
23806 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23807
23808 * passes.c (dump_one_pass): don't check pass->has_gate.
23809 (execute_ipa_summary_passes): Likewise.
23810 (execute_one_pass): Likewise.
23811 (ipa_write_summaries_2): Likewise.
23812 (ipa_write_optimization_summaries_1): Likewise.
23813 (ipa_read_optimization_summaries_1): Likewise.
23814 (execute_ipa_stmt_fixups): Likewise.
23815 * tree-pass.h (pass_data::has_gate): Remove.
23816 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
23817 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
23818 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
23819 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
23820 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
23821 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
23822 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
23823 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
23824 gimple-low.c, gimple-ssa-isolate-paths.c,
23825 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
23826 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
23827 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
23828 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
23829 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
23830 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
23831 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
23832 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
23833 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
23834 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
23835 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
23836 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
23837 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
23838 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
23839 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
23840 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
23841 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
23842 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
23843 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
23844 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
23845 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
23846 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
23847 Adjust.
23848
23849 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23850
23851 * pass_manager.h (pass_manager::register_dump_files_1): Remove
23852 declaration.
23853 * passes.c (pass_manager::register_dump_files_1): Merge into
23854 (pass_manager::register_dump_files): this, and remove its handling of
23855 properties since the pass always has the properties anyway.
23856 (pass_manager::pass_manager): Adjust.
23857
23858 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23859
23860 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
23861 * passes.c (pass_manager::register_dump_files_1): Remove dead code
23862 dealing with properties.
23863 (pass_manager::register_dump_files): Adjust.
23864
23865 2014-03-20 Mark Wielaard <mjw@redhat.com>
23866
23867 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
23868 then represent the bound as normal constant value.
23869
23870 2014-04-17 Jakub Jelinek <jakub@redhat.com>
23871
23872 PR target/60847
23873 Forward port from 4.8 branch
23874 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
23875
23876 * config/i386/bmiintrin.h (_blsi_u32): New.
23877 (_blsi_u64): Ditto.
23878 (_blsr_u32): Ditto.
23879 (_blsr_u64): Ditto.
23880 (_blsmsk_u32): Ditto.
23881 (_blsmsk_u64): Ditto.
23882 (_tzcnt_u32): Ditto.
23883 (_tzcnt_u64): Ditto.
23884
23885 2014-04-17 Kito Cheng <kito@0xlab.org>
23886
23887 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
23888
23889 2014-04-17 Richard Biener <rguenther@suse.de>
23890
23891 PR middle-end/60849
23892 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
23893 boolean results for comparisons.
23894
23895 2014-04-17 Richard Biener <rguenther@suse.de>
23896
23897 PR tree-optimization/60836
23898 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
23899 initial PHI args to be gimple values.
23900
23901 2014-04-17 Richard Biener <rguenther@suse.de>
23902
23903 PR tree-optimization/60841
23904 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
23905 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
23906 of stmts to SLP build.
23907 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
23908 (vect_analyze_slp): Likewise.
23909 (vect_analyze_slp_instance): Likewise.
23910 (vect_build_slp_tree): Limit overall SLP tree growth.
23911 * tree-vectorizer.h (vect_analyze_data_refs,
23912 vect_analyze_slp): Adjust prototypes.
23913
23914 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
23915
23916 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
23917 Silvermont.
23918
23919 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
23920
23921 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
23922 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
23923 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
23924 for TARGET_SLOW_PSHUFB
23925
23926 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
23927
23928 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
23929 * config/i386/i386.c (intel_cost): Ditto.
23930
23931 2014-04-17 Joey Ye <joey.ye@arm.com>
23932
23933 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
23934
23935 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
23936
23937 * opts.c (common_handle_option): Disable -fipa-reference coorectly
23938 with -fuse-profile.
23939
23940 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
23941
23942 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
23943 (type_all_derivations_known_p): New predicate.
23944 (type_all_ctors_visible_p): New predicate.
23945 (type_possibly_instantiated_p): New predicate.
23946 (get_odr_type): Compute all_derivations_known.
23947 (dump_odr_type): Dump the flag.
23948 (maybe_record_type): Cleanup.
23949 (record_target_from_binfo): Add bases_to_consider array;
23950 record bases for types w/o instances and skip CXX destructor.
23951 (possible_polymorphic_call_targets_1): Add bases_to_consider
23952 and consider_construction parameters; check if type may have instance.
23953 (get_polymorphic_call_info): Set maybe_in_construction to true
23954 when we know nothing.
23955 (record_targets_from_bases): Skip CXX destructors; they are
23956 never called for types in construction.
23957 (possible_polymorphic_call_targets): Do not record target when
23958 type may not have instance.
23959
23960 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
23961
23962 PR ipa/60854
23963 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
23964 external aliases alive, too.
23965
23966 2014-04-16 Andrew Pinski <apinski@cavium.com>
23967
23968 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
23969 definition.
23970
23971 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
23972
23973 * final.c (compute_alignments): Do not apply loop alignment to a block
23974 falling through to the exit.
23975
23976 2014-04-16 Catherine Moore <clm@codesourcery.com>
23977
23978 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
23979 Adjust constraints for microMIPS store patterns.
23980
23981 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
23982
23983 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
23984
23985 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
23986
23987 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
23988 (append_use): Run at -O0.
23989 (append_vdef): Likewise.
23990 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
23991 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
23992
23993 2014-04-16 Jakub Jelinek <jakub@redhat.com>
23994
23995 PR tree-optimization/60844
23996 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
23997 (propagate_op_to_single_use, remove_visited_stmt_chain,
23998 linearize_expr, repropagate_negates, reassociate_bb): Use it
23999 instead of gsi_remove.
24000
24001 2014-04-16 Martin Jambor <mjambor@suse.cz>
24002
24003 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
24004 ipa_transforms_to_apply.
24005 (cgraph_function_versioning): Assert that old_node has empty
24006 ipa_transforms_to_apply.
24007 * trans-mem.c (ipa_tm_create_version): Likewise.
24008 * tree-inline.c (tree_function_versioning): Do not duplicate
24009 ipa_transforms_to_apply.
24010
24011 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24012
24013 PR target/60817
24014 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
24015 x86_64-*-* cases.
24016 Pass necessary as flags on 64-bit Solaris/x86.
24017 Use lowercase relocs for x86_64-*-*.
24018 * configure: Regenerate.
24019
24020 2014-04-15 Jan Hubicka <jh@suse.cz>
24021
24022 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
24023 (maybe_record_node, likely_target_p): Use it.
24024
24025 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24026
24027 PR target/60839
24028 Revert following patch
24029
24030 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24031
24032 PR target/60735
24033 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
24034 software floating point or no floating point registers, do not
24035 allow any type in the FPRs. Eliminate a test for SPE SIMD types
24036 in GPRs that occurs after we tested for GPRs that would never be
24037 true.
24038
24039 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
24040 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
24041 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
24042 specifically allow DDmode, since that does not use the SPE SIMD
24043 instructions.
24044
24045 2014-03-21 Mark Wielaard <mjw@redhat.com>
24046
24047 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
24048 as unsigned or int depending on type and value used.
24049
24050 2014-04-15 Richard Biener <rguenther@suse.de>
24051
24052 PR rtl-optimization/56965
24053 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
24054 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
24055 ... here.
24056 * alias.c (true_dependence_1): Do not call
24057 nonoverlapping_component_refs_p.
24058 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
24059 nonoverlapping_component_refs_p.
24060 (indirect_refs_may_alias_p): Likewise.
24061
24062 2014-04-15 Teresa Johnson <tejohnson@google.com>
24063
24064 * cfg.c (dump_bb_info): Fix flags check.
24065 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
24066
24067 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24068
24069 PR rtl-optimization/60663
24070 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
24071 avoid 0 cost.
24072
24073 2014-04-15 Richard Biener <rguenther@suse.de>
24074
24075 * lto-streamer.h (LTO_major_version): Bump to 4.
24076
24077 2014-04-15 Richard Biener <rguenther@suse.de>
24078
24079 * common.opt (lto_partition_model): New enum.
24080 (flto-partition=): Merge separate options with a single with argument,
24081 add -flto-partition=one support.
24082 * flag-types.h (enum lto_partition_model): Declare.
24083 * opts.c (finish_options): Remove duplicate -flto-partition=
24084 option check.
24085 * lto-wrapper.c (run_gcc): Adjust.
24086
24087 2014-04-15 Richard Biener <rguenther@suse.de>
24088
24089 * alias.c (ncr_compar): New function.
24090 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
24091
24092 2014-04-15 Richard Biener <rguenther@suse.de>
24093
24094 * alias.c (record_component_aliases): Do not walk BINFOs.
24095
24096 2014-04-15 Richard Biener <rguenther@suse.de>
24097
24098 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24099 Add struct function argument and adjust.
24100 (find_func_aliases_for_call): Likewise.
24101 (find_func_aliases): Likewise.
24102 (find_func_clobbers): Likewise.
24103 (intra_create_variable_infos): Likewise.
24104 (compute_points_to_sets): Likewise.
24105 (ipa_pta_execute): Adjust. Do not push/pop cfun.
24106
24107 2014-04-15 Richard Biener <rguenther@suse.de>
24108
24109 * tree.c (iterative_hash_expr): Use enum tree_code_class
24110 to store TREE_CODE_CLASS.
24111 (tree_block): Likewise.
24112 (tree_set_block): Likewise.
24113 * tree.h (fold_build_pointer_plus_loc): Use
24114 convert_to_ptrofftype_loc.
24115
24116 2014-04-15 Jakub Jelinek <jakub@redhat.com>
24117
24118 PR plugins/59335
24119 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
24120 added in 4.9.
24121
24122 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
24123
24124 * cfgloop.h (struct loop): Move force_vectorize down.
24125 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
24126 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
24127 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
24128 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
24129 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
24130 * tree-core.h (enum annot_expr_kind): Add new kind values.
24131 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
24132 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
24133 kinds.
24134 * tree.def (ANNOTATE_EXPR): Tweak comment.
24135
24136 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24137
24138 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
24139 cxa_pure_virtual).
24140
24141 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
24142
24143 * tree.h (TYPE_IDENTIFIER): Declare.
24144 * tree.c (subrange_type_for_debug_p): Use it.
24145 * godump.c (go_format_type): Likewise.
24146 * dwarf2out.c (is_cxx_auto, modified_type_die,
24147 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
24148 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
24149
24150 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24151
24152 PR lto/60820
24153 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
24154
24155 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
24156
24157 * config/i386/i386.c (examine_argument): Return bool. Return true if
24158 parameter should be passed in memory.
24159 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
24160 (construct_container): Update calls to examine_argument.
24161 (function_arg_advance_64): Ditto.
24162 (return_in_memory_32): Merge with ix86_return_in_memory.
24163 (return_in_memory_64): Ditto.
24164 (return_in_memory_ms_64): Ditto.
24165
24166 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24167
24168 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
24169 * coverage.c (coverage_compute_profile_id): Handle externally visible
24170 symbols.
24171
24172 2014-04-14 Martin Jambor <mjambor@suse.cz>
24173
24174 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
24175 DECL_DISREGARD_INLINE_LIMITS functions.
24176
24177 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
24178
24179 PR target/60827
24180 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
24181
24182 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
24183
24184 PR target/60827
24185 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
24186 optimize_insn_for_speed_p instead of
24187 optimize_function_for_speed_p.
24188
24189 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
24190
24191 * doc/invoke.texi (free): Document AArch64.
24192
24193 2014-04-14 Richard Biener <rguenther@suse.de>
24194
24195 PR tree-optimization/60042
24196 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
24197 (insert_into_preds_of_block): Do not prevent PHI insertion
24198 for REFERENCE exprs here ...
24199 (eliminate_dom_walker::before_dom_children): ... but prevent
24200 their use here under similar conditions when applied to the
24201 IL after PRE optimizations.
24202
24203 2014-04-14 Richard Biener <rguenther@suse.de>
24204
24205 * passes.def: Move early points-to after early SRA.
24206
24207 2014-04-14 Richard Biener <rguenther@suse.de>
24208
24209 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
24210 check for which sign-changes we allow when forwarding
24211 a converted value into a switch.
24212
24213 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
24214
24215 * stor-layout.c (place_field): Finalize non-constant offset for the
24216 field, if any.
24217
24218 2014-04-14 Richard Biener <rguenther@suse.de>
24219
24220 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
24221 as argument.
24222 (expand_switch_using_bit_tests_p): Likewise.
24223 (process_switch): Compute and pass on speed_p based on the
24224 switch stmt.
24225 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
24226 optimize_bb_for_speed_p.
24227
24228 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
24229
24230 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
24231 * function.h (struct function): Rename has_force_vect_loops into
24232 has_force_vectorize_loops.
24233 * lto-streamer-in.c (input_cfg): Adjust for renaming.
24234 (input_struct_function_base): Likewise.
24235 * lto-streamer-out.c (output_cfg): Likewise.
24236 (output_struct_function_base): Likewise.
24237 * omp-low.c (expand_omp_simd): Likewise.
24238 * tree-cfg.c (move_sese_region_to_fn): Likewise.
24239 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
24240 (version_loop_for_if_conversion): Likewise.
24241 (tree_if_conversion): Likewise.
24242 (main_tree_if_conversion): Likewise.
24243 (gate_tree_if_conversion): Likewise.
24244 * tree-inline.c (copy_loops): Likewise.
24245 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
24246 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
24247 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
24248 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
24249 * tree-vectorizer.c (vectorize_loops): Likewise.
24250 * tree-vectorizer.h (unlimited_cost_model): Likewise.
24251
24252 2014-04-14 Richard Biener <rguenther@suse.de>
24253
24254 PR lto/60720
24255 * lto-streamer-out.c (wrap_refs): New function.
24256 (lto_output): Wrap symbol references in global initializes in
24257 type-preserving MEM_REFs.
24258
24259 2014-04-14 Christian Bruel <christian.bruel@st.com>
24260
24261 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
24262
24263 2014-04-14 Christian Bruel <christian.bruel@st.com>
24264
24265 * config/sh/sh.md (setmemqi): New expand pattern.
24266 * config/sh/sh.h (CLEAR_RATIO): Define.
24267 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
24268 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
24269
24270 2014-04-14 Richard Biener <rguenther@suse.de>
24271
24272 PR middle-end/55022
24273 * fold-const.c (negate_expr_p): Don't negate directional rounding
24274 division.
24275 (fold_negate_expr): Likewise.
24276
24277 2014-04-14 Richard Biener <rguenther@suse.de>
24278
24279 PR tree-optimization/59817
24280 PR tree-optimization/60453
24281 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
24282 recursion to catch all CHRECs in the scalar evolution and restrict
24283 the predicate for the remains appropriately.
24284
24285 2014-04-12 Catherine Moore <clm@codesourcery.com>
24286
24287 * config/mips/constraints.md: Add new register constraint "kb".
24288 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
24289 (*movhi_internal): Likewise.
24290 (*movqi_internal): Likewise.
24291 * config/mips/mips.h (M16_STORE_REGS): New register class.
24292 (REG_CLASS_NAMES): Add M16_STORE_REGS.
24293 (REG_CLASS_CONTENTS): Likewise.
24294 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
24295
24296 2014-04-11 Tobias Burnus <burnus@net-b.de>
24297
24298 PR c/60194
24299 * doc/invoke.texi (-Wformat-signedness): Document it.
24300 (Wformat=2): Mention that this enables -Wformat-signedness.
24301
24302 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24303
24304 * common/config/epiphany/epiphany-common.c
24305 (epiphany_option_optimization_table): Enable section anchors by
24306 default at -O1 or higher.
24307 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
24308 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
24309 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
24310 carries no extra cost.
24311 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
24312 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
24313 * config/epiphany/predicates.md (memclob_operand): New predicate.
24314 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
24315 Use memclob_operand predicate and X constraint for operand 3.
24316
24317 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24318
24319 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
24320 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
24321 its operands.
24322
24323 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24324
24325 PR rtl-optimization/60651
24326 * mode-switching.c (optimize_mode_switching): Make sure to emit
24327 sets of a lower numbered entity before sets of a higher numbered
24328 entity to a mode of the same or lower priority.
24329 When creating a seginfo for a basic block that starts with a code
24330 label, move the insertion point past the code label.
24331 (new_seginfo): Document and enforce requirement that
24332 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
24333 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
24334 * doc/tm.texi: Regenerate.
24335
24336 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
24337
24338 PR target/60811
24339 * config/arc/arc.c (arc_save_restore): Fix assert typo.
24340
24341 2013-04-11 Jakub Jelinek <jakub@redhat.com>
24342
24343 * BASE-VER: Set to 4.10.0.
24344
24345 2014-04-11 Tobias Burnus <burnus@net-b.de>
24346
24347 PR other/59055
24348 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
24349 * doc/gcc.texi (Service): Update description in the @menu
24350 * doc/invoke.texi (Option Summary): Remove misplaced and
24351 duplicated @menu.
24352
24353 2014-04-11 Steve Ellcey <sellcey@mips.com>
24354 Jakub Jelinek <jakub@redhat.com>
24355
24356 PR middle-end/60556
24357 * expr.c (convert_move): Use emit_store_flag_force instead of
24358 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
24359 argument to it.
24360
24361 2014-04-11 Richard Biener <rguenther@suse.de>
24362
24363 PR middle-end/60797
24364 * varasm.c (assemble_alias): Avoid endless error reporting
24365 recursion by setting TREE_ASM_WRITTEN.
24366
24367 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24368
24369 * config/s390/s390.md: Add a splitter for NOT rtx.
24370
24371 2014-04-11 Jakub Jelinek <jakub@redhat.com>
24372
24373 PR rtl-optimization/60663
24374 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
24375
24376 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
24377 Jakub Jelinek <jakub@redhat.com>
24378
24379 PR lto/60567
24380 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
24381 flag from decl_node to node.
24382
24383 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24384
24385 PR debug/60655
24386 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
24387 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
24388 ameliorating the cases where it can be.
24389
24390 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
24391
24392 Revert
24393 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
24394
24395 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24396 (loadsync_<mode>): Change mode.
24397 (load_quadpti, store_quadpti): New.
24398 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24399 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24400 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
24401
24402 2014-04-09 Cong Hou <congh@google.com>
24403
24404 PR testsuite/60773
24405 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
24406 documentation.
24407
24408 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24409
24410 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
24411 instead of vnor to exploit possible fusion opportunity in the
24412 future.
24413 (altivec_expand_vec_perm_const_le): Likewise.
24414
24415 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
24416
24417 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24418 (loadsync_<mode>): Change mode.
24419 (load_quadpti, store_quadpti): New.
24420 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24421 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24422
24423 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
24424
24425 PR target/60763
24426 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
24427 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
24428 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
24429
24430 2014-04-08 Richard Biener <rguenther@suse.de>
24431
24432 PR middle-end/60706
24433 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
24434 a 64bit widest int print double-int similar to on HWI64 hosts.
24435
24436 2014-04-08 Richard Biener <rguenther@suse.de>
24437
24438 PR tree-optimization/60785
24439 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
24440 default defs properly.
24441
24442 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
24443
24444 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
24445 (Weffc++): Likewise.
24446
24447 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
24448
24449 * ipa-devirt.c (maybe_record_node): When node is not recorded,
24450 set completep to false rather than true.
24451
24452 2014-04-07 Douglas B Rupp <rupp@adacore.com>
24453
24454 PR target/60504
24455 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
24456 ARM_TARGET2_DWARF_FORMAT.
24457
24458 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
24459
24460 PR target/60609
24461 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
24462 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
24463 ADDR_DIFF_VEC.
24464
24465 2014-04-07 Richard Biener <rguenther@suse.de>
24466
24467 PR tree-optimization/60766
24468 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
24469 (may_eliminate_iv): Convert cand_value_at result to desired type.
24470
24471 2014-04-07 Jason Merrill <jason@redhat.com>
24472
24473 PR c++/60731
24474 * common.opt (-fno-gnu-unique): Add.
24475 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
24476
24477 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24478
24479 * haifa-sched.c: Fix outdated function reference and minor
24480 grammar errors in introductory comment.
24481
24482 2014-04-07 Richard Biener <rguenther@suse.de>
24483
24484 PR middle-end/60750
24485 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
24486 for noreturn calls.
24487 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
24488
24489 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
24490
24491 PR debug/55794
24492 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
24493 size accounting for thunks.
24494 (pa_asm_output_mi_thunk): Use final_start_function() and
24495 final_end_function() to output function start and end directives.
24496
24497 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
24498
24499 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
24500 device specific ISA/ feature information. Remove short_sp and
24501 errata_skip ds. Add avr_device_specific_features enum to have device
24502 specific info.
24503 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
24504 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
24505 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
24506 updated device specific info.
24507 * config/avr/avr-mcus.def: Merge device specific details to
24508 dev_attribute field.
24509 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
24510 errata_skip.
24511 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
24512 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
24513 assembler if RMW isa supported by current device.
24514 * config/avr/genmultilib.awk: Update as device info structure changed.
24515 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
24516
24517 2014-04-04 Cong Hou <congh@google.com>
24518
24519 PR tree-optimization/60656
24520 * tree-vect-stmts.c (supportable_widening_operation):
24521 Fix a bug that elements in a vector with vect_used_by_reduction
24522 property are incorrectly reordered when the operation on it is not
24523 consistant with the one in reduction operation.
24524
24525 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
24526
24527 PR rtl-optimization/60155
24528 * gcse.c (record_set_data): New function.
24529 (single_set_gcse): New function.
24530 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
24531 (hoist_code): Likewise.
24532 (get_pressure_class_and_nregs): Likewise.
24533
24534 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
24535
24536 * explow.c (probe_stack_range): Emit a final optimization blockage.
24537
24538 2014-04-04 Anthony Green <green@moxielogic.com>
24539
24540 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
24541 typos.
24542
24543 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
24544
24545 PR ipa/59626
24546 * lto-cgraph.c (input_overwrite_node): Check that partitioning
24547 flags are set only during streaming.
24548 * ipa.c (process_references, walk_polymorphic_call_targets,
24549 symtab_remove_unreachable_nodes): Drop bodies of always inline
24550 after early inlining.
24551 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
24552
24553 2014-04-04 Jakub Jelinek <jakub@redhat.com>
24554 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24555
24556 PR debug/60655
24557 * dwarf2out.c (const_ok_for_output_1): Reject expressions
24558 containing a NOT.
24559
24560 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24561
24562 PR bootstrap/60743
24563 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
24564 duration.
24565 (cortex_a53_fdivd): Likewise.
24566
24567 2014-04-04 Martin Jambor <mjambor@suse.cz>
24568
24569 PR ipa/60640
24570 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
24571 Adjust all callers.
24572 * cgraph.c (clone_of_p): Also return true if thunks match.
24573 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
24574 cgraph_function_or_thunk_node and an obsolete comment.
24575 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
24576 file.
24577 (build_function_decl_skip_args): Likewise.
24578 (set_new_clone_decl_and_node_flags): New function.
24579 (duplicate_thunk_for_node): Likewise.
24580 (redirect_edge_duplicating_thunks): Likewise.
24581 (cgraph_clone_node): New parameter args_to_skip, pass it to
24582 redirect_edge_duplicating_thunks which is called instead of
24583 cgraph_redirect_edge_callee.
24584 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
24585 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
24586
24587 2014-04-04 Jeff Law <law@redhat.com>
24588
24589 PR target/60657
24590 * config/arm/predicates.md (const_int_I_operand): New predicate.
24591 (const_int_M_operand): Similarly.
24592 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
24593 const_int_operand.
24594 (insv_t2, extv_reg, extzv_t2): Likewise.
24595 (load_multiple_with_writeback): Similarly for const_int_I_operand.
24596 (pop_multiple_with_writeback_and_return): Likewise.
24597 (vfp_pop_multiple_with_writeback): Likewise
24598
24599 2014-04-04 Richard Biener <rguenther@suse.de>
24600
24601 PR ipa/60746
24602 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
24603 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
24604 non-GIMPLE_LABELs.
24605 * gimplify.h (gimple_add_tmp_var_fn): Declare.
24606 * gimplify.c (gimple_add_tmp_var_fn): New function.
24607 * gimple-expr.h (create_tmp_reg_fn): Declare.
24608 * gimple-expr.c (create_tmp_reg_fn): New function.
24609 * gimple-low.c (record_vars_into): Don't change cfun.
24610 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
24611 code generation without cfun.
24612
24613 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
24614
24615 PR bootstrap/60719
24616 * Makefile.in (install-driver): Fix shell scripting.
24617
24618 2014-04-03 Cong Hou <congh@google.com>
24619
24620 PR tree-optimization/60505
24621 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
24622 threshold of number of iterations below which no vectorization
24623 will be done.
24624 * tree-vect-loop.c (new_loop_vec_info):
24625 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
24626 * tree-vect-loop.c (vect_analyze_loop_operations):
24627 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
24628 * tree-vect-loop.c (vect_transform_loop):
24629 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
24630 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
24631 of iterations of the loop and see if we should build the epilogue.
24632
24633 2014-04-03 Richard Biener <rguenther@suse.de>
24634
24635 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
24636 (streamer_tree_cache_create): Adjust.
24637 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
24638 to allow optional nodes array.
24639 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
24640 (streamer_tree_cache_append): Likewise.
24641 (streamer_tree_cache_create): Create nodes array optionally
24642 as specified by parameter.
24643 * lto-streamer-out.c (create_output_block): Avoid maintaining
24644 the node array in the writer cache.
24645 (DFS_write_tree): Remove assertion.
24646 (produce_asm_for_decls): Free the out decl state hash table early.
24647 * lto-streamer-in.c (lto_data_in_create): Adjust for
24648 streamer_tree_cache_create prototype change.
24649
24650 2014-04-03 Richard Biener <rguenther@suse.de>
24651
24652 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
24653 set TREE_CHAIN to NULL_TREE.
24654
24655 2014-04-03 Richard Biener <rguenther@suse.de>
24656
24657 PR tree-optimization/60740
24658 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
24659 over all GIMPLE_COND operands.
24660
24661 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
24662
24663 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
24664 (Weffc++): Remove Scott's numbering, merge lists and reference
24665 Wnon-virtual-dtor.
24666
24667 2014-04-03 Nick Clifton <nickc@redhat.com>
24668
24669 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
24670 properly.
24671
24672 2014-04-03 Martin Jambor <mjambor@suse.cz>
24673
24674 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
24675 mention gcc_unreachable before failing.
24676 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
24677 removed symbols.
24678
24679 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
24680
24681 PR ipa/60659
24682 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
24683 inconsistent code and instead mark the context inconsistent.
24684 (possible_polymorphic_call_targets): For inconsistent contexts
24685 return empty complete list.
24686
24687 2014-04-02 Anthony Green <green@moxielogic.com>
24688
24689 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
24690 (extendqisi2, extendhisi2): Define.
24691 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
24692 (WCHAR_TYPE): Change to unsigned int.
24693
24694 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24695
24696 PR tree-optimization/60733
24697 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
24698 insertion point for PHI candidates to be the end of the feeding
24699 block for the PHI argument.
24700
24701 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
24702
24703 PR rtl-optimization/60650
24704 * lra-constraints.c (process_alt_operands): Decrease reject for
24705 earlyclobber matching.
24706
24707 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24708
24709 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
24710
24711 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24712
24713 * config/spu/spu.c (pad_bb): Do not crash when the last
24714 insn is CODE_FOR_blockage.
24715
24716 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24717
24718 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
24719 lies outside the target mode.
24720
24721 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24722
24723 PR target/60735
24724 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
24725 software floating point or no floating point registers, do not
24726 allow any type in the FPRs. Eliminate a test for SPE SIMD types
24727 in GPRs that occurs after we tested for GPRs that would never be
24728 true.
24729
24730 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
24731 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
24732 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
24733 specifically allow DDmode, since that does not use the SPE SIMD
24734 instructions.
24735
24736 2014-04-02 Richard Biener <rguenther@suse.de>
24737
24738 PR middle-end/60729
24739 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
24740 MODE_INTs. Properly use negv_optab.
24741 (expand_abs): Likewise.
24742
24743 2014-04-02 Richard Biener <rguenther@suse.de>
24744
24745 PR bootstrap/60719
24746 * Makefile.in (install-driver): Guard extra installs with special
24747 names properly.
24748
24749 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
24750
24751 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24752 Document vec_vgbbd.
24753
24754 2014-04-01 Richard Henderson <rth@redhat.com>
24755
24756 PR target/60704
24757 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
24758 alternative enabled before register allocation.
24759
24760 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
24761
24762 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
24763 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
24764 typo.
24765 (nios2_large_got_address): Remove unneeded 'sym' parameter.
24766 (nios2_got_address): Update nios2_large_got_address call site.
24767 (nios2_delegitimize_address): New function.
24768 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
24769 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
24770 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
24771
24772 2014-04-01 Martin Husemann <martin@duskware.de>
24773
24774 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
24775 for -mabi=32.
24776
24777 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
24778
24779 PR rtl-optimization/60604
24780 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
24781 check from register_operand.
24782 (register_operand): Redefine in terms of general_operand.
24783 (nonmemory_operand): Use register_operand for the non-constant cases.
24784
24785 2014-04-01 Richard Biener <rguenther@suse.de>
24786
24787 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
24788
24789 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
24790
24791 * doc/invoke.texi (mapp-regs): Clarify.
24792
24793 2014-03-31 Ulrich Drepper <drepper@gmail.com>
24794
24795 * config/i386/avx512fintrin.h (__v32hi): Define type.
24796 (__v64qi): Likewise.
24797 (_mm512_set1_epi8): Define.
24798 (_mm512_set1_epi16): Define.
24799 (_mm512_set4_epi32): Define.
24800 (_mm512_set4_epi64): Define.
24801 (_mm512_set4_pd): Define.
24802 (_mm512_set4_ps): Define.
24803 (_mm512_setr4_epi64): Define.
24804 (_mm512_setr4_epi32): Define.
24805 (_mm512_setr4_pd): Define.
24806 (_mm512_setr4_ps): Define.
24807 (_mm512_setzero_epi32): Define.
24808
24809 2014-03-31 Martin Jambor <mjambor@suse.cz>
24810
24811 PR middle-end/60647
24812 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
24813 callsite_arguments_match_p. Updated all callers. Also check types of
24814 corresponding formal parameters and actual arguments.
24815 (not_all_callers_have_enough_arguments_p) Renamed to
24816 some_callers_have_mismatched_arguments_p.
24817
24818 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
24819
24820 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
24821
24822 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
24823
24824 PR target/60034
24825 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
24826 section anchor.
24827
24828 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
24829
24830 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
24831 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
24832 Split out
24833 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
24834 Use FMAMODE_NOVF512 mode iterator.
24835 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
24836 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
24837 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
24838 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
24839 Split out
24840 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
24841 Use VF_128_256 mode iterator.
24842 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
24843 Ditto.
24844
24845 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
24846
24847 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
24848 static chain if needed.
24849
24850 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
24851
24852 PR target/60697
24853 * lra-constraints.c (index_part_to_reg): New.
24854 (process_address): Use it.
24855
24856 2014-03-27 Jeff Law <law@redhat.com>
24857 Jakub Jelinek <jakub@redhat.com>
24858
24859 PR target/60648
24860 * expr.c (do_tablejump): Use simplify_gen_binary rather than
24861 gen_rtx_{PLUS,MULT} to build up the address expression.
24862
24863 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
24864 creating non-canonical RTL.
24865
24866 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
24867
24868 PR ipa/60243
24869 * ipa-inline.c (want_inline_small_function_p): Short circuit large
24870 functions; reorganize to make cheap checks first.
24871 (inline_small_functions): Do not estimate growth when dumping;
24872 it is expensive.
24873 * ipa-inline.h (inline_summary): Add min_size.
24874 (growth_likely_positive): New function.
24875 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
24876 (set_cond_stmt_execution_predicate): Cleanup.
24877 (estimate_edge_size_and_time): Compute min_size.
24878 (estimate_calls_size_and_time): Likewise.
24879 (estimate_node_size_and_time): Likewise.
24880 (inline_update_overall_summary): Update min_size.
24881 (do_estimate_edge_time): Likewise.
24882 (do_estimate_edge_size): Update.
24883 (do_estimate_edge_hints): Update.
24884 (growth_likely_positive): New function.
24885
24886 2014-03-28 Jakub Jelinek <jakub@redhat.com>
24887
24888 PR target/60693
24889 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
24890 also if addr has VOIDmode.
24891
24892 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24893
24894 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
24895 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
24896 Declare extern.
24897 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
24898 instructions as well as AdvancedSIMD loads.
24899
24900 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24901
24902 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
24903 Use crypto_aese type.
24904 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
24905 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
24906 crypto_aese, crypto_aesmc. Move to types.md.
24907 * config/arm/types.md (crypto_aes): Split into crypto_aese,
24908 crypto_aesmc.
24909 * config/arm/iterators.md (crypto_type): Likewise.
24910
24911 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
24912
24913 * cgraph.c: Include expr.h and tree-dfa.h.
24914 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
24915 remove LHS.
24916
24917 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
24918
24919 PR target/60675
24920 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
24921 regs from checking multi-reg pseudos.
24922
24923 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24924
24925 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
24926
24927 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24928
24929 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
24930 if it would clobber the stack pointer, even temporarily.
24931
24932 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
24933
24934 * mode-switching.c: Make small adjustments to the top comment.
24935
24936 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
24937
24938 * config/rs6000/constraints.md (wD constraint): New constraint to
24939 match the constant integer to get the top DImode/DFmode out of a
24940 vector in a VSX register.
24941
24942 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
24943 match the constant integer to get the top DImode/DFmode out of a
24944 vector in a VSX register.
24945
24946 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
24947 for ISA 2.07.
24948
24949 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24950 vbpermq builtins.
24951
24952 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
24953 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
24954
24955 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
24956 Optimize vec_extract of 64-bit values, where the value being
24957 extracted is in the top word, where we can use scalar
24958 instructions. Add direct move and store support. Combine the big
24959 endian/little endian vector select load support into a single insn.
24960 (vsx_extract_<mode>_internal1): Likewise.
24961 (vsx_extract_<mode>_internal2): Likewise.
24962 (vsx_extract_<mode>_load): Likewise.
24963 (vsx_extract_<mode>_store): Likewise.
24964 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
24965 combined into vsx_extract_<mode>_load.
24966 (vsx_extract_<mode>_one_le): Likewise.
24967
24968 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
24969 define the top 64-bit vector element.
24970
24971 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
24972 constraint.
24973
24974 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24975 Document vec_vbpermq builtin.
24976
24977 PR target/60672
24978 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
24979 enable use of xxsldwi and xxpermdi builtin functions.
24980 (vec_xxpermdi): Likewise.
24981
24982 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24983 Document use of vec_xxsldwi and vec_xxpermdi builtins.
24984
24985 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
24986
24987 PR rtl-optimization/60650
24988 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
24989 first_p. Use it.
24990 (find_spills_for): New.
24991 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
24992 Spill all pseudos on the second iteration.
24993
24994 2014-03-27 Marek Polacek <polacek@redhat.com>
24995
24996 PR c/50347
24997 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
24998 types.
24999
25000 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25001
25002 * config/s390/s390.c (s390_can_use_return_insn): Check for
25003 call-saved FPRs on 31 bit.
25004
25005 2014-03-27 Jakub Jelinek <jakub@redhat.com>
25006
25007 PR middle-end/60682
25008 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
25009 if they need regimplification, just drop them instead of
25010 calling gimple_regimplify_operands on them.
25011
25012 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
25013
25014 PR target/60580
25015 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
25016 (aarch64_frame_pointer_required): Adjust logic.
25017 (aarch64_can_eliminate): Adjust logic.
25018 (aarch64_override_options_after_change): Adjust logic.
25019
25020 2014-03-27 Dehao Chen <dehao@google.com>
25021
25022 * ipa-inline.c (early_inliner): Update node's inline info.
25023
25024 2014-03-26 Dehao Chen <dehao@google.com>
25025
25026 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
25027 compiler inserted conditional jumps for NAN float check.
25028
25029 2014-03-26 Jakub Jelinek <jakub@redhat.com>
25030
25031 * ubsan.h (ubsan_create_data): Change second argument's type
25032 to const location_t *.
25033 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
25034 _("<unknown>").
25035 (ubsan_create_data): Change second argument to const location_t *PLOC.
25036 Create Loc field whenever PLOC is non-NULL.
25037 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
25038 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
25039 callers.
25040
25041 PR other/59545
25042 * real.c (real_to_integer2): Change type of low to UHWI.
25043
25044 2014-03-26 Tobias Burnus <burnus@net-b.de>
25045
25046 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
25047 (CILK_SELF_SPECS): New define.
25048 (driver_self_specs): Use it.
25049
25050 2014-03-26 Richard Biener <rguenther@suse.de>
25051
25052 * tree-pretty-print.c (percent_K_format): Implement special
25053 case for LTO and its stripped down BLOCK tree.
25054
25055 2014-03-26 Jakub Jelinek <jakub@redhat.com>
25056
25057 PR sanitizer/60636
25058 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
25059
25060 * tree-vrp.c (simplify_internal_call_using_ranges): If only
25061 one range is range_int_cst_p, but not both, at least optimize
25062 addition/subtraction of 0 and multiplication by 0 or 1.
25063 * gimple-fold.c (gimple_fold_call): Fold
25064 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
25065 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
25066 INTEGER_CSTs, try to fold at least x * 0 and y - y.
25067
25068 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
25069
25070 PR rtl-optimization/60452
25071 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
25072 <case REG>: Return 1 for invalid offsets from the frame pointer.
25073
25074 2014-03-26 Marek Polacek <polacek@redhat.com>
25075
25076 PR c/37428
25077 * doc/extend.texi (C Extensions): Mention variable-length arrays in
25078 a structure/union.
25079
25080 2014-03-26 Marek Polacek <polacek@redhat.com>
25081
25082 PR c/39525
25083 * doc/extend.texi (Designated Inits): Describe what happens to omitted
25084 field members.
25085
25086 2014-03-26 Marek Polacek <polacek@redhat.com>
25087
25088 PR other/59545
25089 * ira-color.c (update_conflict_hard_regno_costs): Perform the
25090 multiplication in unsigned type.
25091
25092 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
25093
25094 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
25095
25096 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
25097
25098 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
25099
25100 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
25101
25102 PR ipa/60315
25103 * cif-code.def (UNREACHABLE) New code.
25104 * ipa-inline.c (inline_small_functions): Skip edges to
25105 __builtlin_unreachable.
25106 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
25107 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
25108 predicate to __bulitin_unreachable.
25109 (set_cond_stmt_execution_predicate): Fix issue when
25110 invert_tree_comparison returns ERROR_MARK.
25111 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
25112 propagate to inline clones.
25113 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
25114 to unreachable.
25115 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
25116 * cgraphclones.c (cgraph_clone_node): If call destination is already
25117 ureachable, do not redirect it back.
25118 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
25119 unreachable.
25120
25121 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
25122
25123 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
25124 Do not modify inline clones.
25125
25126 2014-03-25 Jakub Jelinek <jakub@redhat.com>
25127
25128 * config/i386/i386.md (general_sext_operand): New mode attr.
25129 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
25130 don't generate (sign_extend (const_int)).
25131 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
25132 operands[2]. Use We constraint instead of <i> and
25133 <general_sext_operand> predicate instead of <general_operand>.
25134 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
25135 * config/i386/constraints.md (We): New constraint.
25136 * config/i386/predicates.md (x86_64_sext_operand,
25137 sext_operand): New predicates.
25138
25139 2014-03-25 Martin Jambor <mjambor@suse.cz>
25140
25141 PR ipa/60600
25142 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
25143 inconsistent devirtualizations to __builtin_unreachable.
25144
25145 2014-03-25 Marek Polacek <polacek@redhat.com>
25146
25147 PR c/35449
25148 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
25149
25150 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
25151
25152 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
25153 order of elements for big-endian.
25154
25155 2014-03-25 Richard Biener <rguenther@suse.de>
25156
25157 PR middle-end/60635
25158 * gimplify-me.c (gimple_regimplify_operands): Update the
25159 re-gimplifed stmt.
25160
25161 2014-03-25 Martin Jambor <mjambor@suse.cz>
25162
25163 PR ipa/59176
25164 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
25165 (lto_output_varpool_node): Likewise.
25166 (input_overwrite_node): Likewise.
25167 (input_varpool_node): Likewise.
25168
25169 2014-03-25 Richard Biener <rguenther@suse.de>
25170
25171 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
25172 (run_gcc): Likewise.
25173
25174 2014-03-25 Jakub Jelinek <jakub@redhat.com>
25175
25176 * combine.c (simplify_compare_const): Add MODE argument.
25177 Handle mode_width 0 as very large mode_width.
25178 (try_combine, simplify_comparison): Adjust callers.
25179
25180 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
25181 type to avoid signed integer overflow.
25182 * explow.c (plus_constant): Likewise.
25183
25184 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
25185
25186 * doc/generic.texi: Correct typos.
25187
25188 2014-03-24 Tobias Burnus <burnus@net-b.de>
25189
25190 * doc/invoke.texi (-flto): Expand section about
25191 using static libraries with LTO.
25192
25193 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25194
25195 PR rtl-optimization/60501
25196 * optabs.def (addptr3_optab): New optab.
25197 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
25198 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
25199 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
25200
25201 * lra.c (emit_add3_insn): Use the addptr pattern if available.
25202
25203 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
25204
25205 2014-03-24 Ulrich Drepper <drepper@gmail.com>
25206
25207 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
25208 _mm512_set1_pd.
25209
25210 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
25211 (_mm256_undefined_ps): Define.
25212 (_mm256_undefined_pd): Define.
25213 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
25214 (_mm_undefined_pd): Define.
25215 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
25216 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
25217 (_mm512_undefined_ps): Define.
25218 (_mm512_undefined_pd): Define.
25219 Use _mm*_undefined_*.
25220 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
25221
25222 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
25223
25224 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
25225 (lshr_simd): DI mode added.
25226 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
25227 (aarch64_ushr_simddi): Likewise.
25228 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
25229 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
25230 (vshrd_n_u64): Likewise.
25231
25232 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25233
25234 * Makefile.in (s-macro_list): Depend on cc1.
25235
25236 2014-03-23 Teresa Johnson <tejohnson@google.com>
25237
25238 * ipa-utils.c (ipa_print_order): Use specified dump file.
25239
25240 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
25241
25242 PR rtl-optimization/60601
25243 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
25244
25245 * gcc.c (eval_spec_function): Initialize save_growing_value.
25246
25247 2014-03-22 Jakub Jelinek <jakub@redhat.com>
25248
25249 PR sanitizer/60613
25250 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
25251 code == MINUS_EXPR, never swap op0 with op1.
25252
25253 * toplev.c (init_local_tick): Avoid signed integer multiplication
25254 overflow.
25255 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
25256 shift by first operand's bitsize.
25257
25258 2014-03-21 Jakub Jelinek <jakub@redhat.com>
25259
25260 PR target/60610
25261 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
25262 redefine to 1 or 0.
25263 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
25264 TARGET_ISA_64BIT_P(x).
25265
25266 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25267
25268 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
25269 pattern for vector nor instead of subtract from splat(-1).
25270 (altivec_expand_vec_perm_const_le): Likewise.
25271
25272 2014-03-21 Richard Henderson <rth@twiddle.net>
25273
25274 PR target/60598
25275 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
25276 related insns after epilogue_completed.
25277
25278 2014-03-21 Martin Jambor <mjambor@suse.cz>
25279
25280 PR ipa/59176
25281 * cgraph.h (symtab_node): New flag body_removed.
25282 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
25283 when removing bodies.
25284 * symtab.c (dump_symtab_base): Dump body_removed flag.
25285 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
25286 had their bodies removed.
25287
25288 2014-03-21 Martin Jambor <mjambor@suse.cz>
25289
25290 PR ipa/60419
25291 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
25292 in the border.
25293
25294 2014-03-21 Richard Biener <rguenther@suse.de>
25295
25296 PR tree-optimization/60577
25297 * tree-core.h (struct tree_base): Document nothrow_flag use
25298 in DECL_NONALIASED.
25299 * tree.h (DECL_NONALIASED): New.
25300 (may_be_aliased): Adjust.
25301 * coverage.c (build_var): Set DECL_NONALIASED.
25302
25303 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25304
25305 * expr.c (expand_expr_real_1): Remove outdated comment.
25306
25307 2014-03-20 Jakub Jelinek <jakub@redhat.com>
25308
25309 PR middle-end/60597
25310 * ira.c (adjust_cleared_regs): Call copy_rtx on
25311 *reg_equiv[REGNO (loc)].src_p before passing it to
25312 simplify_replace_fn_rtx.
25313
25314 PR target/60568
25315 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
25316 into CONST, put pic register as first operand of PLUS. Use
25317 gen_const_mem for both 32-bit and 64-bit PIC got loads.
25318
25319 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25320
25321 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
25322
25323 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25324
25325 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
25326 around for store forwarding issue in the FPU on the UT699.
25327 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
25328 loads and operations if -mfix-ut699 is specified.
25329 (divtf3_hq): Tweak attribute.
25330 (sqrttf2_hq): Likewise.
25331
25332 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25333
25334 * calls.c (store_one_arg): Remove incorrect const qualification on the
25335 type of the temporary.
25336 * cfgexpand.c (expand_return): Likewise.
25337 * expr.c (expand_constructor): Likewise.
25338 (expand_expr_real_1): Likewise.
25339
25340 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25341
25342 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
25343 of parts.
25344
25345 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
25346
25347 PR target/60039
25348 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
25349
25350 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
25351
25352 * config/arm/aarch-common-protos.h
25353 (alu_cost_table): Fix spelling of "extend".
25354 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
25355
25356 2014-03-19 Richard Biener <rguenther@suse.de>
25357
25358 PR middle-end/60553
25359 * tree-core.h (tree_type_common): Re-order pointer members
25360 to reduce recursion depth during GC walks.
25361
25362 2014-03-19 Marek Polacek <polacek@redhat.com>
25363
25364 PR sanitizer/60569
25365 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
25366 before accessing it.
25367
25368 2014-03-19 Richard Biener <rguenther@suse.de>
25369
25370 PR lto/59543
25371 * lto-streamer-in.c (input_function): In WPA stage do not drop
25372 debug stmts.
25373
25374 2014-03-19 Jakub Jelinek <jakub@redhat.com>
25375
25376 PR tree-optimization/60559
25377 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
25378 with build_zero_cst assignment.
25379
25380 2014-03-18 Kai Tietz <ktietz@redhat.com>
25381
25382 PR rtl-optimization/56356
25383 * sdbout.c (sdbout_parms): Verify that parms'
25384 incoming argument is valid.
25385 (sdbout_reg_parms): Likewise.
25386
25387 2014-03-18 Richard Henderson <rth@redhat.com>
25388
25389 PR target/60562
25390 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
25391 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
25392 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
25393
25394 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
25395
25396 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
25397 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
25398 Italicize plugin event names in description. Explain that
25399 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
25400 Remind that no GCC functions should be called after PLUGIN_FINISH.
25401 Explain what pragmas with expansion are.
25402
25403 2014-03-18 Martin Liska <mliska@suse.cz>
25404
25405 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
25406 gimple call statement is update.
25407 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
25408 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
25409
25410 2014-03-18 Jakub Jelinek <jakub@redhat.com>
25411
25412 PR sanitizer/60557
25413 * ubsan.c (ubsan_instrument_unreachable): Call
25414 initialize_sanitizer_builtins.
25415 (ubsan_pass): Likewise.
25416
25417 PR sanitizer/60535
25418 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
25419 varpool_finalize_decl instead of rest_of_decl_compilation.
25420
25421 2014-03-18 Richard Biener <rguenther@suse.de>
25422
25423 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
25424 by using bitmap_and_compl instead of bitmap_and_compl_into.
25425 (df_rd_transfer_function): Likewise.
25426
25427 2014-03-18 Richard Biener <rguenther@suse.de>
25428
25429 * doc/lto.texi (fresolution): Fix typo.
25430
25431 2014-03-18 Richard Biener <rguenther@suse.de>
25432
25433 * doc/invoke.texi (flto): Update for changes in 4.9.
25434
25435 2014-03-18 Richard Biener <rguenther@suse.de>
25436
25437 * doc/loop.texi: Remove section on the removed lambda framework.
25438 Update loop docs with recent changes in preserving loop structure.
25439
25440 2014-03-18 Richard Biener <rguenther@suse.de>
25441
25442 * doc/lto.texi (-fresolution): Document.
25443
25444 2014-03-18 Richard Biener <rguenther@suse.de>
25445
25446 * doc/contrib.texi: Adjust my name.
25447
25448 2014-03-18 Jakub Jelinek <jakub@redhat.com>
25449
25450 PR ipa/58721
25451 * internal-fn.c: Include diagnostic-core.h.
25452 (expand_BUILTIN_EXPECT): New function.
25453 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
25454 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
25455 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
25456 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
25457 IFN_BUILTIN_EXPECT.
25458 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
25459 Revert 3 argument __builtin_expect code.
25460 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
25461 * gimple-fold.c (gimple_fold_call): Likewise.
25462 * tree.h (fold_builtin_expect): New prototype.
25463 * builtins.c (build_builtin_expect_predicate): Add predictor
25464 argument, if non-NULL, create 3 argument __builtin_expect.
25465 (fold_builtin_expect): No longer static. Add ARG2 argument,
25466 pass it through to build_builtin_expect_predicate.
25467 (fold_builtin_2): Adjust caller.
25468 (fold_builtin_3): Handle BUILT_IN_EXPECT.
25469 * internal-fn.def (BUILTIN_EXPECT): New.
25470
25471 2014-03-18 Tobias Burnus <burnus@net-b.de>
25472
25473 PR ipa/58721
25474 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
25475 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
25476 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
25477
25478 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
25479
25480 PR ipa/58721
25481 * predict.c (combine_predictions_for_bb): Fix up formatting.
25482 (expr_expected_value_1, expr_expected_value): Add predictor argument,
25483 fill what it points to if non-NULL.
25484 (tree_predict_by_opcode): Adjust caller, use the predictor.
25485 * predict.def (PRED_COMPARE_AND_SWAP): Add.
25486
25487 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
25488
25489 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
25490 proper constant for the store mode.
25491
25492 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
25493
25494 * symtab.c (change_decl_assembler_name): Fix transparent alias
25495 chain construction.
25496
25497 2014-03-16 Renlin Li <Renlin.Li@arm.com>
25498
25499 * config/aarch64/aarch64.c: Correct the comments about the
25500 aarch64 stack layout.
25501
25502 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
25503
25504 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
25505 check for GF_OMP_FOR_KIND_FOR.
25506
25507 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
25508
25509 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
25510 ymm and zmm register names.
25511
25512 2014-03-17 Jakub Jelinek <jakub@redhat.com>
25513
25514 PR target/60516
25515 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
25516 note creation for the 2010-08-31 changes.
25517
25518 2014-03-17 Marek Polacek <polacek@redhat.com>
25519
25520 PR middle-end/60534
25521 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
25522 as -fno-tree-loop-vectorize.
25523 (expand_omp_simd): Likewise.
25524
25525 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
25526
25527 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
25528 (eligible_for_call_delay): New prototype.
25529 * config/sparc/sparc.c (tls_call_delay): Rename into...
25530 (eligible_for_call_delay): ...this. Return false if the instruction
25531 cannot be put in the delay slot of a branch.
25532 (eligible_for_restore_insn): Simplify.
25533 (eligible_for_return_delay): Return false if the instruction cannot be
25534 put in the delay slot of a branch and simplify.
25535 (eligible_for_sibcall_delay): Return false if the instruction cannot be
25536 put in the delay slot of a branch.
25537 * config/sparc/sparc.md (fix_ut699): New attribute.
25538 (tls_call_delay): Delete.
25539 (in_call_delay): Reimplement.
25540 (eligible_for_sibcall_delay): Rename into...
25541 (in_sibcall_delay): ...this.
25542 (eligible_for_return_delay): Rename into...
25543 (in_return_delay): ...this.
25544 (in_branch_delay): Reimplement.
25545 (in_uncond_branch_delay): Delete.
25546 (in_annul_branch_delay): Delete.
25547
25548 2014-03-14 Richard Henderson <rth@redhat.com>
25549
25550 PR target/60525
25551 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
25552 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
25553 (*floathi<X87MODEF>2_i387_with_temp): Remove.
25554 (floathi splitters): Remove.
25555 (float<SWI48x>xf2): New pattern.
25556 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
25557 code that tried to handle DImode for 32-bit, but which was excluded
25558 by the pattern's condition. Drop allocation of stack temporary.
25559 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
25560 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
25561 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
25562 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
25563 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
25564 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
25565 (*float<SWI48><MODEF>2_sse_interunit): Remove.
25566 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
25567 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
25568 (*float<SWI48x><X87MODEF>2_i387): Remove.
25569 (all float _with_temp splitters): Remove.
25570 (*float<SWI48x><MODEF>2_i387): New pattern.
25571 (*float<SWI48><MODEF>2_sse): New pattern.
25572 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
25573 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
25574
25575 2014-03-14 Jakub Jelinek <jakub@redhat.com>
25576 Marek Polacek <polacek@redhat.com>
25577
25578 PR middle-end/60484
25579 * common.opt (dump_base_name_prefixed): New Variable.
25580 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
25581 if x_dump_base_name_prefixed is already set, set it at the end.
25582
25583 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
25584
25585 PR rtl-optimization/60508
25586 * lra-constraints.c (get_reload_reg): Add new parameter
25587 in_subreg_p.
25588 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
25589 Pass the new parameter values.
25590
25591 2014-03-14 Richard Biener <rguenther@suse.de>
25592
25593 * common.opt: Revert unintented changes from r205065.
25594 * opts.c: Likewise.
25595
25596 2014-03-14 Richard Biener <rguenther@suse.de>
25597
25598 PR middle-end/60518
25599 * cfghooks.c (split_block): Properly adjust all loops the
25600 block was a latch of.
25601
25602 2014-03-14 Martin Jambor <mjambor@suse.cz>
25603
25604 PR lto/60461
25605 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
25606 and simplify it.
25607
25608 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
25609
25610 PR target/59396
25611 * config/avr/avr.c (avr_set_current_function): Pass function name
25612 through default_strip_name_encoding before sanity checking instead
25613 of skipping the first char of the assembler name.
25614
25615 2014-03-13 Richard Henderson <rth@redhat.com>
25616
25617 PR debug/60438
25618 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
25619 (ix86_force_to_memory, ix86_free_from_memory): Remove.
25620 * config/i386/i386-protos.h: Likewise.
25621 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
25622 in the expander instead of a splitter.
25623 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
25624 any possibility of requiring a memory.
25625 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
25626 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
25627 (fp branch splitters): Update for ix86_split_fp_branch.
25628 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
25629 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
25630 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
25631 (*fop_<MODEF>_2_i387): Remove f/r alternative.
25632 (*fop_<MODEF>_3_i387): Likewise.
25633 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
25634 (splitters for the fop_* register patterns): Remove.
25635 (fscalexf4_i387): Rename from *fscalexf4_i387.
25636 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
25637
25638 2014-03-13 Jakub Jelinek <jakub@redhat.com>
25639
25640 PR tree-optimization/59779
25641 * tree-dfa.c (get_ref_base_and_extent): Use double_int
25642 type for bitsize and maxsize instead of HOST_WIDE_INT.
25643
25644 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
25645
25646 PR rtl-optimization/57320
25647 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
25648 the CFG after thread_prologue_and_epilogue_insns.
25649
25650 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
25651
25652 PR rtl-optimization/57189
25653 * lra-constraints.c (process_alt_operands): Disfavor spilling
25654 vector pseudos.
25655
25656 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
25657
25658 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
25659
25660 2014-03-13 Jakub Jelinek <jakub@redhat.com>
25661
25662 PR tree-optimization/59025
25663 PR middle-end/60418
25664 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
25665 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
25666
25667 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
25668
25669 PR target/60486
25670 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
25671 calls of avr_out_plus_1.
25672
25673 2014-03-13 Bin Cheng <bin.cheng@arm.com>
25674
25675 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
25676 BB's single pred and update the father loop's latch info later.
25677
25678 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
25679
25680 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
25681 (VEC_M): Likewise.
25682 (VEC_N): Likewise.
25683 (VEC_R): Likewise.
25684 (VEC_base): Likewise.
25685 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
25686 registers, we need to swap double words in little endian mode.
25687
25688 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
25689 to be a container mode for 128-bit integer operations added in ISA
25690 2.07. Unlike TImode and PTImode, the preferred register set is
25691 the Altivec/VMX registers for the 128-bit operations.
25692
25693 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
25694 declarations.
25695 (rs6000_split_128bit_ok_p): Likewise.
25696
25697 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
25698 macros for creating ISA 2.07 normal and overloaded builtin
25699 functions with 3 arguments.
25700 (BU_P8V_OVERLOAD_3): Likewise.
25701 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
25702 for use as overloaded functions.
25703 (VPERM_1TI_UNS): Likewise.
25704 (VSEL_1TI): Likewise.
25705 (VSEL_1TI_UNS): Likewise.
25706 (ST_INTERNAL_1ti): Likewise.
25707 (LD_INTERNAL_1ti): Likewise.
25708 (XXSEL_1TI): Likewise.
25709 (XXSEL_1TI_UNS): Likewise.
25710 (VPERM_1TI): Likewise.
25711 (VPERM_1TI_UNS): Likewise.
25712 (XXPERMDI_1TI): Likewise.
25713 (SET_1TI): Likewise.
25714 (LXVD2X_V1TI): Likewise.
25715 (STXVD2X_V1TI): Likewise.
25716 (VEC_INIT_V1TI): Likewise.
25717 (VEC_SET_V1TI): Likewise.
25718 (VEC_EXT_V1TI): Likewise.
25719 (EQV_V1TI): Likewise.
25720 (NAND_V1TI): Likewise.
25721 (ORC_V1TI): Likewise.
25722 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
25723 added in ISA 2.07. Add both normal 'altivec' builtins, and the
25724 overloaded builtin.
25725 (VADDUQM): Likewise.
25726 (VSUBCUQ): Likewise.
25727 (VADDEUQM): Likewise.
25728 (VADDECUQ): Likewise.
25729 (VSUBEUQM): Likewise.
25730 (VSUBECUQ): Likewise.
25731
25732 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
25733 __int128_t and __uint128_t types.
25734 (__uint128_type): Likewise.
25735 (altivec_categorize_keyword): Add support for vector __int128_t,
25736 vector __uint128_t, vector __int128, and vector unsigned __int128
25737 as a container type for TImode operations that need to be done in
25738 VSX/Altivec registers.
25739 (rs6000_macro_to_expand): Likewise.
25740 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
25741 to support 128-bit integer instructions vaddcuq, vadduqm,
25742 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
25743 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
25744
25745 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
25746 for V1TImode, and set up preferences to use VSX/Altivec registers.
25747 Setup VSX reload handlers.
25748 (rs6000_debug_reg_global): Likewise.
25749 (rs6000_init_hard_regno_mode_ok): Likewise.
25750 (rs6000_preferred_simd_mode): Likewise.
25751 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
25752 (easy_altivec_constant): Likewise.
25753 (output_vec_const_move): Likewise.
25754 (rs6000_expand_vector_set): Convert V1TImode set and extract to
25755 simple move.
25756 (rs6000_expand_vector_extract): Likewise.
25757 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
25758 addressing.
25759 (rs6000_const_vec): Add support for V1TImode.
25760 (rs6000_emit_le_vsx_load): Swap double words when loading or
25761 storing TImode/V1TImode.
25762 (rs6000_emit_le_vsx_store): Likewise.
25763 (rs6000_emit_le_vsx_move): Likewise.
25764 (rs6000_emit_move): Add support for V1TImode.
25765 (altivec_expand_ld_builtin): Likewise.
25766 (altivec_expand_st_builtin): Likewise.
25767 (altivec_expand_vec_init_builtin): Likewise.
25768 (altivec_expand_builtin): Likewise.
25769 (rs6000_init_builtins): Add support for V1TImode type. Add
25770 support for ISA 2.07 128-bit integer builtins. Define type names
25771 for the VSX/Altivec vector types.
25772 (altivec_init_builtins): Add support for overloaded vector
25773 functions with V1TImode type.
25774 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
25775 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
25776 external function.
25777 (rs6000_split_128bit_ok_p): Likewise.
25778 (rs6000_handle_altivec_attribute): Create V1TImode from vector
25779 __int128_t and vector __uint128_t.
25780
25781 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
25782 and mode attributes.
25783 (VSX_M): Likewise.
25784 (VSX_M2): Likewise.
25785 (VSm): Likewise.
25786 (VSs): Likewise.
25787 (VSr): Likewise.
25788 (VSv): Likewise.
25789 (VS_scalar): Likewise.
25790 (VS_double): Likewise.
25791 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
25792
25793 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
25794 we support the ISA 2.07 128-bit integer arithmetic instructions.
25795 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
25796 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
25797 and TImode types for use with the builtin functions.
25798 (V1TI_type_node): Likewise.
25799 (unsigned_V1TI_type_node): Likewise.
25800 (intTI_type_internal_node): Likewise.
25801 (uintTI_type_internal_node): Likewise.
25802
25803 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
25804 128-bit builtin functions.
25805 (UNSPEC_VADDEUQM): Likewise.
25806 (UNSPEC_VADDECUQ): Likewise.
25807 (UNSPEC_VSUBCUQ): Likewise.
25808 (UNSPEC_VSUBEUQM): Likewise.
25809 (UNSPEC_VSUBECUQ): Likewise.
25810 (VM): Add V1TImode to vector mode iterators.
25811 (VM2): Likewise.
25812 (VI_unit): Likewise.
25813 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
25814 (altivec_vaddcuq): Likewise.
25815 (altivec_vsubuqm): Likewise.
25816 (altivec_vsubcuq): Likewise.
25817 (altivec_vaddeuqm): Likewise.
25818 (altivec_vaddecuq): Likewise.
25819 (altivec_vsubeuqm): Likewise.
25820 (altivec_vsubecuq): Likewise.
25821
25822 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
25823 mode iterators.
25824 (BOOL_128): Likewise.
25825 (BOOL_REGS_OUTPUT): Likewise.
25826 (BOOL_REGS_OP1): Likewise.
25827 (BOOL_REGS_OP2): Likewise.
25828 (BOOL_REGS_UNARY): Likewise.
25829 (BOOL_REGS_AND_CR0): Likewise.
25830
25831 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
25832 128-bit integer builtin support.
25833 (vec_vadduqm): Likewise.
25834 (vec_vaddecuq): Likewise.
25835 (vec_vaddeuqm): Likewise.
25836 (vec_vsubecuq): Likewise.
25837 (vec_vsubeuqm): Likewise.
25838 (vec_vsubcuq): Likewise.
25839 (vec_vsubuqm): Likewise.
25840
25841 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25842 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
25843 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
25844 128-bit integer add/subtract to ISA 2.07.
25845
25846 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
25847
25848 * config/arc/arc.c (arc_predicate_delay_insns):
25849 Fix third argument passed to conditionalize_nonjump.
25850
25851 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
25852
25853 * config/aarch64/aarch64-builtins.c
25854 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
25855 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
25856 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
25857 instead of __builtin_lfloor.
25858 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
25859
25860 2014-03-12 Jakub Jelinek <jakub@redhat.com>
25861
25862 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
25863 (tree_ssa_ifcombine_bb_1): New function.
25864 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
25865 is an empty forwarder block to then_bb or vice versa and then_bb
25866 and else_bb are effectively swapped.
25867
25868 2014-03-12 Christian Bruel <christian.bruel@st.com>
25869
25870 PR target/60264
25871 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
25872 REG_CFA_DEF_CFA note.
25873 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
25874 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
25875
25876 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
25877
25878 PR tree-optimization/60454
25879 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
25880
25881 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25882
25883 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
25884 Do not define target_cpu_default2 to generic.
25885 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
25886 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
25887 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
25888
25889 2014-03-12 Jakub Jelinek <jakub@redhat.com>
25890 Marc Glisse <marc.glisse@inria.fr>
25891
25892 PR tree-optimization/60502
25893 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
25894 instead of build_low_bits_mask.
25895
25896 2014-03-12 Jakub Jelinek <jakub@redhat.com>
25897
25898 PR middle-end/60482
25899 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
25900 if there are multiple uses, but op doesn't live on E edge.
25901 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
25902 clobber stmts before __builtin_unreachable.
25903
25904 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
25905
25906 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
25907 hard_frame_pointer_rtx.
25908 * cse.c (cse_insn): Remove volatile check.
25909 * cselib.c (cselib_process_insn): Likewise.
25910 * dse.c (scan_insn): Likewise.
25911
25912 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
25913
25914 * config/arc/arc.c (conditionalize_nonjump): New function,
25915 broken out of ...
25916 (arc_ifcvt): ... this.
25917 (arc_predicate_delay_insns): Use it.
25918
25919 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
25920
25921 * config/arc/predicates.md (extend_operand): During/after reload,
25922 allow const_int_operand.
25923 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
25924 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
25925 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
25926 to "i".
25927 (umulsi3_highpart_i): Likewise.
25928
25929 2014-03-11 Richard Biener <rguenther@suse.de>
25930
25931 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
25932 Add asserts to guard possible wrong-code bugs.
25933
25934 2014-03-11 Richard Biener <rguenther@suse.de>
25935
25936 PR tree-optimization/60429
25937 PR tree-optimization/60485
25938 * tree-ssa-structalias.c (set_union_with_increment): Properly
25939 take into account all fields that overlap the shifted vars.
25940 (do_sd_constraint): Likewise.
25941 (do_ds_constraint): Likewise.
25942 (get_constraint_for_ptr_offset): Likewise.
25943
25944 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
25945
25946 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
25947 (nios2_compute_frame_layout):
25948 Add calculation of cfun->machine->fp_save_offset.
25949 (nios2_expand_prologue): Correct setting of frame pointer register
25950 in prologue.
25951 (nios2_expand_epilogue): Update recovery of stack pointer from
25952 frame pointer accordingly.
25953 (nios2_initial_elimination_offset): Update calculation of offset
25954 for eliminating to HARD_FRAME_POINTER_REGNUM.
25955
25956 2014-03-10 Jakub Jelinek <jakub@redhat.com>
25957
25958 PR ipa/60457
25959 * ipa.c (symtab_remove_unreachable_nodes): Don't call
25960 cgraph_get_create_node on VAR_DECLs.
25961
25962 2014-03-10 Richard Biener <rguenther@suse.de>
25963
25964 PR middle-end/60474
25965 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
25966
25967 2014-03-08 Douglas B Rupp <rupp@gnat.com>
25968
25969 * config/vms/vms.opt (vms_float_format): New variable.
25970
25971 2014-03-08 Tobias Burnus <burnus@net-b.de>
25972
25973 * doc/invoke.texi (-fcilkplus): Update implementation status.
25974
25975 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
25976 Richard Biener <rguenther@suse.de>
25977
25978 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
25979 consistently accross all TUs.
25980 (run_gcc): Enable -fshort-double automatically at link at link-time
25981 and disallow override.
25982
25983 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
25984
25985 PR target/58271
25986 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
25987 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
25988 if they can't be used.
25989
25990 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25991
25992 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
25993 for Solaris 11/x86 ld.
25994 * configure: Regenerate.
25995
25996 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25997
25998 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
25999 (LIB_TLS_SPEC): Save as ld_tls_libs.
26000 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
26001 (HAVE_AS_IX86_TLSLDM): New test.
26002 * configure, config.in: Regenerate.
26003 * config/i386/i386.c (legitimize_tls_address): Fall back to
26004 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
26005 cannot support TLS_MODEL_LOCAL_DYNAMIC.
26006 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
26007 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
26008
26009 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
26010
26011 * common.opt (fira-loop-pressure): Mark as optimization.
26012
26013 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
26014
26015 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
26016 an OpenMP mappable type.
26017
26018 2014-03-06 Matthias Klose <doko@ubuntu.com>
26019
26020 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
26021 MULTILIB_OSDIRNAMES is not defined.
26022
26023 2014-03-06 Jakub Jelinek <jakub@redhat.com>
26024 Meador Inge <meadori@codesourcery.com>
26025
26026 PR target/58595
26027 * config/arm/arm.c (arm_tls_symbol_p): Remove.
26028 (arm_legitimize_address): Call legitimize_tls_address for any
26029 arm_tls_referenced_p expression, handle constant addend. Call it
26030 before testing for !TARGET_ARM.
26031 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
26032
26033 2014-03-06 Richard Biener <rguenther@suse.de>
26034
26035 PR middle-end/60445
26036 PR lto/60424
26037 PR lto/60427
26038 Revert
26039 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
26040
26041 * tree-streamer.c (record_common_node): Assert we don't record
26042 nodes with type double.
26043 (preload_common_node): Skip type double, complex double and double
26044 pointer since it is now frontend dependent due to fshort-double option.
26045
26046 2014-03-06 Richard Biener <rguenther@suse.de>
26047
26048 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
26049 or -fno-lto is specified and the linker has full plugin support.
26050 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
26051 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
26052 * lto-wrapper.c (merge_and_complain): Merge compile-time
26053 optimization levels.
26054 (run_gcc): And pass it through to the link options.
26055
26056 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
26057
26058 PR debug/60381
26059 Revert:
26060 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26061 PR debug/59992
26062 * cselib.c (remove_useless_values): Skip to avoid quadratic
26063 behavior if the condition moved from...
26064 (cselib_process_insn): ... here holds.
26065
26066 2014-03-05 Jakub Jelinek <jakub@redhat.com>
26067
26068 PR plugins/59335
26069 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
26070 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
26071
26072 PR plugins/59335
26073 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
26074 (TM_H): Add x86-tune.def.
26075
26076 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26077
26078 * config/aarch64/aarch64.c (generic_tunings):
26079 Use cortexa57_extra_costs.
26080
26081 2014-03-05 Jakub Jelinek <jakub@redhat.com>
26082
26083 PR lto/60404
26084 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
26085 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
26086 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
26087 cost for in_lto_p.
26088
26089 2014-03-04 Heiher <r@hev.cc>
26090
26091 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
26092 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
26093
26094 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
26095
26096 * config/i386/predicates.md (const2356_operand): Change to ...
26097 (const2367_operand): ... this.
26098 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
26099 const2367_operand.
26100 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26101 (*avx512pf_scatterpf<mode>sf): Ditto.
26102 (avx512pf_scatterpf<mode>df): Ditto.
26103 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26104 (*avx512pf_scatterpf<mode>df): Ditto.
26105 * config/i386/i386.c (ix86_expand_builtin): Update
26106 incorrect hint operand error message.
26107
26108 2014-03-04 Richard Biener <rguenther@suse.de>
26109
26110 * lto-section-in.c (lto_get_section_data): Fix const cast.
26111
26112 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
26113
26114 * tree-streamer.c (record_common_node): Assert we don't record
26115 nodes with type double.
26116 (preload_common_node): Skip type double, complex double and double
26117 pointer since it is now frontend dependent due to fshort-double option.
26118
26119 2014-03-04 Richard Biener <rguenther@suse.de>
26120
26121 PR lto/60405
26122 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
26123 (lto_input_toplevel_asms): Likewise.
26124 * lto-section-in.c (lto_get_section_data): Instead do it here
26125 for every section.
26126
26127 2014-03-04 Richard Biener <rguenther@suse.de>
26128
26129 PR tree-optimization/60382
26130 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
26131 dead PHIs a reduction.
26132
26133 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
26134
26135 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
26136 hint value.
26137 (_mm_prefetch): Move out of GCC target("sse") pragma.
26138 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
26139 GCC target("prfchw") pragma.
26140 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
26141 for locality <= 2.
26142 * config/i386/i386.c (ix86_option_override_internal): Enable
26143 -mprfchw with -mprefetchwt1.
26144
26145 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
26146
26147 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
26148 Mark as varying.
26149
26150 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
26151
26152 * opts.h (CL_PCH_IGNORE): Define.
26153 * targhooks.c (option_affects_pch_p):
26154 Return false for options that have CL_PCH_IGNORE set.
26155 * opt-functions.awk: Process PchIgnore.
26156 * doc/options.texi: Document PchIgnore.
26157
26158 * config/arc/arc.opt (misize): Add PchIgnore property.
26159
26160 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26161
26162 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
26163 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
26164 constraint on constants to permit them being loaded into
26165 GENERAL_REGS or BASE_REGS.
26166
26167 2014-03-03 Nick Clifton <nickc@redhat.com>
26168
26169 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
26170 anti-cacnonical alternatives.
26171 (negandhi3_real): New pattern.
26172 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
26173
26174 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26175
26176 * config/avr/avr-mcus.def: Remove atxmega16x1.
26177 * config/avr/avr-tables.opt: Regenerate.
26178 * config/avr/t-multilib: Regenerate.
26179 * doc/avr-mmcu.texi: Regenerate.
26180
26181 2014-03-03 Tobias Grosser <tobias@grosser.es>
26182 Mircea Namolaru <mircea.namolaru@inria.fr>
26183
26184 PR tree-optimization/58028
26185 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
26186 scalar dimensions.
26187
26188 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26189
26190 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
26191 not handled by recognizers.
26192
26193 2014-03-03 Jakub Jelinek <jakub@redhat.com>
26194
26195 PR middle-end/60175
26196 * function.c (expand_function_end): Don't emit
26197 clobber_return_register sequence if clobber_after is a BARRIER.
26198 * cfgexpand.c (construct_exit_block): Append instructions before
26199 return_label to prev_bb.
26200
26201 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26202
26203 * config/rs6000/constraints.md: Document reserved use of "wc".
26204
26205 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
26206
26207 PR ipa/60150
26208 * ipa.c (function_and_variable_visibility): When dissolving comdat
26209 group, also set all symbols to local.
26210
26211 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
26212
26213 PR ipa/60306
26214
26215 Revert:
26216 2013-12-14 Jan Hubicka <jh@suse.cz>
26217 PR middle-end/58477
26218 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
26219
26220 2014-03-02 Jon Beniston <jon@beniston.com>
26221
26222 PR bootstrap/48230
26223 PR bootstrap/50927
26224 PR bootstrap/52466
26225 PR target/46898
26226 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
26227 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
26228 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
26229 (simple_return, *simple_return): New patterns
26230 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
26231 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
26232
26233 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
26234
26235 * dwarf2out.c (gen_subprogram_die): Tidy.
26236
26237 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
26238
26239 PR target/60071
26240 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
26241 (*mov_t_msb_neg_negc): ... this new insn.
26242
26243 2014-02-28 Jason Merrill <jason@redhat.com>
26244
26245 PR c++/58678
26246 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
26247 function.
26248
26249 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
26250
26251 PR c++/60314
26252 * dwarf2out.c (decltype_auto_die): New static.
26253 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
26254 (gen_type_die_with_usage): Handle 'decltype(auto)'.
26255 (is_cxx_auto): Likewise.
26256
26257 2014-02-28 Ian Bolton <ian.bolton@arm.com>
26258
26259 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
26260 we are not using general regs only.
26261
26262 2014-02-28 Richard Biener <rguenther@suse.de>
26263
26264 PR target/60280
26265 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
26266 previous fix and only allow to remove trivial pre-headers
26267 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
26268 (remove_forwarder_block): Properly update the latch of a loop.
26269
26270 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26271
26272 PR debug/59992
26273 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
26274 (cselib_preserved_hash_table): New.
26275 (preserve_constants_and_equivs): Move preserved vals to it.
26276 (cselib_find_slot): Look it up first.
26277 (cselib_init): Initialize it.
26278 (cselib_finish): Release it.
26279 (dump_cselib_table): Dump it.
26280
26281 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26282
26283 PR debug/59992
26284 * cselib.c (remove_useless_values): Skip to avoid quadratic
26285 behavior if the condition moved from...
26286 (cselib_process_insn): ... here holds.
26287
26288 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26289
26290 PR debug/57232
26291 * var-tracking.c (vt_initialize): Apply the same condition to
26292 preserve the CFA base value.
26293
26294 2014-02-28 Joey Ye <joey.ye@arm.com>
26295
26296 PR target/PR60169
26297 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
26298 if reload in progress or completed.
26299
26300 2014-02-28 Tobias Burnus <burnus@net-b.de>
26301
26302 PR middle-end/60147
26303 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
26304 NAMELIST_DECL.
26305
26306 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
26307
26308 * doc/tm.texi.in (Condition Code Status): Update documention for
26309 relative locations of cc0-setter and cc0-user.
26310
26311 2014-02-27 Jeff Law <law@redhat.com>
26312
26313 PR rtl-optimization/52714
26314 * combine.c (try_combine): When splitting an unrecognized PARALLEL
26315 into two independent simple sets, if I3 is a jump, ensure the
26316 pattern we place into I3 is a (set (pc) ...).
26317
26318 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
26319 Jeff Law <law@redhat.com>
26320
26321 PR rtl-optimization/49847
26322 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
26323 are in different blocks.
26324 * doc/tm.texi (Condition Code Status): Update documention for
26325 relative locations of cc0-setter and cc0-user.
26326
26327 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
26328
26329 PR target/59222
26330 * lra.c (lra_emit_add): Check SUBREG too.
26331
26332 2014-02-27 Andreas Schwab <schwab@suse.de>
26333
26334 * config/m68k/m68k.c (m68k_option_override): Disable
26335 -flive-range-shrinkage for classic m68k.
26336 (m68k_override_options_after_change): Likewise.
26337
26338 2014-02-27 Marek Polacek <polacek@redhat.com>
26339
26340 PR middle-end/59223
26341 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
26342 -Wmaybe-uninitialized.
26343
26344 2014-02-27 Alan Modra <amodra@gmail.com>
26345
26346 PR target/57936
26347 * reload1.c (emit_input_reload_insns): When reload_override_in,
26348 set old to rl->in_reg when rl->in_reg is a subreg.
26349
26350 2014-02-26 Richard Biener <rguenther@suse.de>
26351
26352 PR bootstrap/60343
26353 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
26354
26355 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
26356
26357 * common/config/i386/predicates.md (const1256_operand): Remove.
26358 (const2356_operand): New.
26359 (const_1_to_2_operand): Remove.
26360 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
26361 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
26362 (*avx512pf_gatherpf<mode>sf): Ditto.
26363 (avx512pf_gatherpf<mode>df): Ditto.
26364 (*avx512pf_gatherpf<mode>df_mask): Ditto.
26365 (*avx512pf_gatherpf<mode>df): Ditto.
26366 (avx512pf_scatterpf<mode>sf): Ditto.
26367 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26368 (*avx512pf_scatterpf<mode>sf): Ditto.
26369 (avx512pf_scatterpf<mode>df): Ditto.
26370 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26371 (*avx512pf_scatterpf<mode>df): Ditto.
26372 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
26373
26374 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
26375
26376 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
26377 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
26378 (_mm512_mask_testn_epi64_mask): Move to ...
26379 * config/i386/avx512cdintrin.h: Here.
26380 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
26381 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
26382 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
26383 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
26384 TARGET_AVX512F from TARGET_AVX512CD.
26385
26386 2014-02-26 Richard Biener <rguenther@suse.de>
26387
26388 PR ipa/60327
26389 * ipa.c (walk_polymorphic_call_targets): Properly guard
26390 call to inline_update_overall_summary.
26391
26392 2014-02-26 Bin Cheng <bin.cheng@arm.com>
26393
26394 PR target/60280
26395 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
26396 and latches only if requested. Fix latch if it is removed.
26397 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
26398 LOOPS_HAVE_PREHEADERS.
26399
26400 2014-02-25 Andrew Pinski <apinski@cavium.com>
26401
26402 * builtins.c (expand_builtin_thread_pointer): Create a new target
26403 when the target is NULL.
26404
26405 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
26406
26407 PR rtl-optimization/60317
26408 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26409 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26410 * lra-assigns.c: Include params.h.
26411 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
26412 other reload pseudos considerations.
26413
26414 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26415
26416 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
26417 to use canonical form for nor<mode>3.
26418
26419 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26420
26421 PR target/55426
26422 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
26423 conversions.
26424
26425 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
26426
26427 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
26428 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
26429 (ix86_handle_option): Handle OPT_mprefetchwt1.
26430 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
26431 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26432 PREFETCHWT1 CPUID.
26433 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26434 OPTION_MASK_ISA_PREFETCHWT1.
26435 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
26436 (PTA_PREFETCHWT1): New.
26437 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
26438 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
26439 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
26440 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
26441 (*prefetch_avx512pf_<mode>_: Change into ...
26442 (*prefetch_prefetchwt1_<mode>: This.
26443 * config/i386/i386.opt (mprefetchwt1): New.
26444 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
26445 (_mm_prefetch): Handle intent to write.
26446 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
26447
26448 2014-02-25 Richard Biener <rguenther@suse.de>
26449
26450 PR middle-end/60291
26451 * emit-rtl.c (mem_attrs_htab): Remove.
26452 (mem_attrs_htab_hash): Likewise.
26453 (mem_attrs_htab_eq): Likewise.
26454 (set_mem_attrs): Always allocate new mem-attrs when something changed.
26455 (init_emit_once): Do not allocate mem_attrs_htab.
26456
26457 2014-02-25 Richard Biener <rguenther@suse.de>
26458
26459 PR lto/60319
26460 * lto-opts.c (lto_write_options): Output non-explicit conservative
26461 -fwrapv, -fno-trapv and -fno-strict-overflow.
26462 * lto-wrapper.c (merge_and_complain): Handle merging those options.
26463 (run_gcc): And pass them through.
26464
26465 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
26466
26467 * sel-sched.c (calculate_new_fences): New parameter ptime.
26468 Calculate it as a maximum over all fence cycles.
26469 (sel_sched_region_2): Adjust the call to calculate_new_fences.
26470 Print the final schedule timing when sched_verbose.
26471
26472 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
26473
26474 PR rtl-optimization/60292
26475 * sel-sched.c (fill_vec_av_set): Do not reset target availability
26476 bit fot the fence instruction.
26477
26478 2014-02-24 Alangi Derick <alangiderick@gmail.com>
26479
26480 * calls.h: Fix typo in comment.
26481
26482 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
26483
26484 * config/pa/pa.c (pa_output_move_double): Don't valididate when
26485 adjusting offsetable addresses.
26486
26487 2014-02-24 Guozhi Wei <carrot@google.com>
26488
26489 * sparseset.h (sparseset_pop): Fix the wrong index.
26490
26491 2014-02-24 Walter Lee <walt@tilera.com>
26492
26493 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
26494 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
26495 triplet.
26496 * common/config/tilegx/tilegx-common.c
26497 (TARGET_DEFAULT_TARGET_FLAGS): Define.
26498 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
26499 (LINK_SPEC): Ditto.
26500 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
26501 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
26502 (tilegx_gimplify_va_arg_expr): Handle big endian.
26503 (tilegx_expand_unaligned_load): Ditto.
26504 (tilegx_expand_unaligned_store): Ditto.
26505 (TARGET_RETURN_IN_MSB): New.
26506 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
26507 (TARGET_ENDIAN_DEFAULT): New.
26508 (TARGET_BIG_ENDIAN): Handle big endian.
26509 (BYTES_BIG_ENDIAN): Ditto.
26510 (WORDS_BIG_ENDIAN): Ditto.
26511 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
26512 (ENDIAN_SPEC): New.
26513 (EXTRA_SPECS): New.
26514 * config/tilegx/tilegx.md (extv): Handle big endian.
26515 (extzv): Ditto.
26516 (insn_st<n>): Ditto.
26517 (insn_st<n>_add<bitsuffix>): Ditto.
26518 (insn_stnt<n>): Ditto.
26519 (insn_stnt<n>_add<bitsuffix>):Ditto.
26520 (vec_interleave_highv8qi): Handle big endian.
26521 (vec_interleave_highv8qi_be): New.
26522 (vec_interleave_highv8qi_le): New.
26523 (insn_v1int_h): Handle big endian.
26524 (vec_interleave_lowv8qi): Handle big endian.
26525 (vec_interleave_lowv8qi_be): New.
26526 (vec_interleave_lowv8qi_le): New.
26527 (insn_v1int_l): Handle big endian.
26528 (vec_interleave_highv4hi): Handle big endian.
26529 (vec_interleave_highv4hi_be): New.
26530 (vec_interleave_highv4hi_le): New.
26531 (insn_v2int_h): Handle big endian.
26532 (vec_interleave_lowv4hi): Handle big endian.
26533 (vec_interleave_lowv4hi_be): New.
26534 (vec_interleave_lowv4hi_le): New.
26535 (insn_v2int_l): Handle big endian.
26536 (vec_interleave_highv2si): Handle big endian.
26537 (vec_interleave_highv2si_be): New.
26538 (vec_interleave_highv2si_le): New.
26539 (insn_v4int_h): Handle big endian.
26540 (vec_interleave_lowv2si): Handle big endian.
26541 (vec_interleave_lowv2si_be): New.
26542 (vec_interleave_lowv2si_le): New.
26543 (insn_v4int_l): Handle big endian.
26544 * config/tilegx/tilegx.opt (mbig-endian): New option.
26545 (mlittle-endian): New option.
26546 * doc/install.texi: Document tilegxbe-linux.
26547 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
26548
26549 2014-02-24 Martin Jambor <mjambor@suse.cz>
26550
26551 PR ipa/60266
26552 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
26553 there are no parameter descriptors.
26554
26555 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
26556
26557 PR rtl-optimization/60268
26558 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
26559 initialization to ...
26560 (sched_rgn_init): ... here.
26561 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
26562
26563 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
26564
26565 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
26566 names.
26567
26568 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
26569
26570 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
26571 definition.
26572
26573 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
26574
26575 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
26576 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
26577
26578 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
26579
26580 * config/microblaze/predicates.md: Add cmp_op predicate.
26581 * config/microblaze/microblaze.md: Add branch_compare instruction
26582 which uses cmp_op predicate and emits cmp insn before branch.
26583 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
26584 to microblaze_expand_conditional_branch and consolidate logic.
26585 (microblaze_expand_conditional_branch): emit branch_compare
26586 insn instead of handling cmp op separate from branch insn.
26587
26588 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26589
26590 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
26591 to permit subregs.
26592
26593 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26594
26595 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
26596 define_insn with define_expand and new define_insn
26597 *altivec_lve<VI_char>x_internal.
26598 (altivec_stve<VI_char>x): Replace define_insn with define_expand
26599 and new define_insn *altivec_stve<VI_char>x_internal.
26600 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
26601 prototype.
26602 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
26603 lve*x built-ins.
26604 (altivec_expand_stvex_be): New function.
26605
26606 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
26607
26608 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
26609 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
26610 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
26611 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
26612
26613 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
26614
26615 PR target/60298
26616 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
26617 instead of emit_move_insn.
26618
26619 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26620
26621 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
26622 vspltw with vsldoi.
26623 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
26624 gen_altivec_vsumsws.
26625
26626 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26627
26628 * config/rs6000/altivec.md (altivec_lvxl): Rename as
26629 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
26630 (altivec_lvxl_<mode>): New define_expand incorporating
26631 -maltivec=be semantics where needed.
26632 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
26633 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
26634 semantics where needed.
26635 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
26636 (altivec_stvx_<mode>): New define_expand incorporating
26637 -maltivec=be semantics where needed.
26638 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
26639 VM2 iterator instead of V4SI.
26640 (altivec_stvxl_<mode>): New define_expand incorporating
26641 -maltivec=be semantics where needed.
26642 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
26643 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
26644 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
26645 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
26646 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
26647 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
26648 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
26649 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
26650 ALTIVEC_BUILTIN_STVXL.
26651 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
26652 (altivec_expand_stvx_be): Likewise.
26653 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
26654 (altivec_expand_lvx_be): Likewise.
26655 (altivec_expand_stvx_be): Likewise.
26656 (altivec_expand_builtin): Add cases for
26657 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
26658 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
26659 (altivec_init_builtins): Add definitions for
26660 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
26661 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
26662
26663 2014-02-21 Catherine Moore <clm@codesourcery.com>
26664
26665 * doc/invoke.texi (mvirt, mno-virt): Document.
26666 * config/mips/mips.opt (mvirt): New option.
26667 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
26668
26669 2014-02-21 Richard Biener <rguenther@suse.de>
26670
26671 PR tree-optimization/60276
26672 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
26673 (STMT_VINFO_MIN_NEG_DIST): New macro.
26674 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
26675 STMT_VINFO_MIN_NEG_DIST.
26676 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
26677 made for negative dependence distances still hold.
26678
26679 2014-02-21 Richard Biener <rguenther@suse.de>
26680
26681 PR middle-end/60291
26682 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
26683 DECL_INITIAL for globals not in the current function context.
26684
26685 2014-02-21 Jakub Jelinek <jakub@redhat.com>
26686
26687 PR tree-optimization/56490
26688 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
26689 * tree-ssa-uninit.c: Include params.h.
26690 (compute_control_dep_chain): Add num_calls argument, return false
26691 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
26692 num_calls to recursive call.
26693 (find_predicates): Change dep_chain into normal array,
26694 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
26695 variable and adjust compute_control_dep_chain caller.
26696 (find_def_preds): Likewise.
26697
26698 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
26699
26700 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
26701 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
26702
26703 2014-02-21 Nick Clifton <nickc@redhat.com>
26704
26705 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
26706 (pushhi1): Likewise.
26707 (popqi1): Add mode to pre_dec.
26708 (pophi1): Likewise.
26709
26710 2014-02-21 Jakub Jelinek <jakub@redhat.com>
26711
26712 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
26713 mode for mask of V8SFmode permutation.
26714
26715 2014-02-20 Richard Henderson <rth@redhat.com>
26716
26717 PR c++/60272
26718 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
26719 a new pseudo for OLDVAL.
26720
26721 2014-02-20 Jakub Jelinek <jakub@redhat.com>
26722
26723 PR target/57896
26724 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
26725 gen_reg_rtx if d->testing_p.
26726 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
26727 if d->testing_p and we will certainly return true.
26728 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
26729 if d->testing_p.
26730
26731 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
26732
26733 * emit-rtl.c (gen_reg_rtx): Assert that
26734 crtl->emit.regno_pointer_align_length is non-zero.
26735
26736 2014-02-20 Richard Henderson <rth@redhat.com>
26737
26738 PR c++/60272
26739 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
26740 on failure the store back into EXPECT.
26741
26742 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
26743 Sandra Loosemore <sandra@codesourcery.com>
26744
26745 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
26746 * config/nios2/nios2.c (nios2_function_profiler): Add
26747 -fPIC (flag_pic == 2) support.
26748 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
26749 (nios2_large_offset_p): New function.
26750 (nios2_unspec_reloc_p): Move up position, update to use
26751 nios2_large_offset_p.
26752 (nios2_unspec_address): Remove function.
26753 (nios2_unspec_offset): New function.
26754 (nios2_large_got_address): New function.
26755 (nios2_got_address): Add large offset support.
26756 (nios2_legitimize_tls_address): Update usage of removed and new
26757 functions.
26758 (nios2_symbol_binds_local_p): New function.
26759 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
26760 (nios2_legitimize_address): Update to use nios2_large_offset_p.
26761 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
26762 (nios2_print_operand): Merge H/L processing, add hiadj/lo
26763 processing for (const (unspec ...)).
26764 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
26765
26766 2014-02-20 Richard Biener <rguenther@suse.de>
26767
26768 * tree-cfg.c (replace_uses_by): Mark altered BBs before
26769 doing the substitution.
26770 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
26771
26772 2014-02-20 Martin Jambor <mjambor@suse.cz>
26773
26774 PR ipa/55260
26775 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
26776 info when checking whether lattices are bottom.
26777
26778 2014-02-20 Richard Biener <rguenther@suse.de>
26779
26780 PR middle-end/60221
26781 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
26782 regions at -O0.
26783
26784 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
26785
26786 PR ipa/58555
26787 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
26788 parameter specifying the scaling.
26789 (inline_call): Update.
26790 (want_inline_recursively): Guard division by zero.
26791 (recursive_inlining): Update.
26792 * ipa-inline.h (clone_inlined_nodes): Update.
26793
26794 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
26795
26796 PR target/60204
26797 * config/i386/i386.c (classify_argument): Pass structures of size
26798 64 bytes or less in register.
26799
26800 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
26801 Kirill Yukhin <kirill.yukhin@intel.com>
26802
26803 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
26804 (_mm_rcp28_round_ss): Ditto.
26805 (_mm_rsqrt28_round_sd): Ditto.
26806 (_mm_rsqrt28_round_ss): Ditto.
26807 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
26808 (_mm_rcp14_round_ss): Ditto.
26809 (_mm_rsqrt14_round_sd): Ditto.
26810 (_mm_rsqrt14_round_ss): Ditto.
26811 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
26812 the first input operand, get rid of match_dup.
26813 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
26814 attribute to sse.
26815 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26816 Ditto.
26817 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
26818 operand as the first input operand, set type attribute.
26819 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26820 Set type attribute.
26821 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
26822 operand as the first input operand, set type attribute.
26823
26824 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26825
26826 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
26827 bit of zero.
26828
26829 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
26830
26831 PR target/60207
26832 * config/i386/i386.c (construct_container): Remove TFmode check
26833 for X86_64_INTEGER_CLASS.
26834
26835 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
26836
26837 PR target/59794
26838 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
26839 only when -Wpsabi is enabled.
26840
26841 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
26842
26843 PR target/59799
26844 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
26845 passing arrays in registers are the same as for structs, so remove the
26846 special case for them.
26847
26848 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
26849
26850 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
26851 destination type, extract only the valid bits if the source type is not
26852 integral and has a different mode.
26853
26854 2014-02-19 Richard Biener <rguenther@suse.de>
26855
26856 PR ipa/60243
26857 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
26858 for all calls.
26859
26860 2014-02-19 Richard Biener <rguenther@suse.de>
26861
26862 PR ipa/60243
26863 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
26864 (ipa_modify_call_arguments): Emit an argument load explicitely and
26865 preserve virtual SSA form there and for the replacement call.
26866 Do not update SSA form nor free dominance info.
26867
26868 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
26869
26870 * ipa.c (function_and_variable_visibility): Also clear WEAK
26871 flag when disolving COMDAT_GROUP.
26872
26873 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
26874
26875 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
26876 * ipa-prop.c (ipa_set_jf_known_type): Return early when
26877 not devirtualizing.
26878 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
26879 do more sanity checks.
26880 (detect_type_change): Return true when giving up early.
26881 (compute_complex_assign_jump_func): Fix type parameter of
26882 ipa_set_ancestor_jf.
26883 (compute_complex_ancestor_jump_func): Likewise.
26884 (update_jump_functions_after_inlining): Fix updating of
26885 ancestor function.
26886 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
26887
26888 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
26889
26890 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
26891 inline clones when edge disappears.
26892
26893 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
26894
26895 PR target/60203
26896 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
26897 Split 64-bit moves into 2 patterns. Do not allow the use of
26898 direct move for TDmode in little endian, since the decimal value
26899 has little endian bytes within a word, but the 64-bit pieces are
26900 ordered in a big endian fashion, and normal subreg's of TDmode are
26901 not allowed.
26902 (mov<mode>_64bit_dm): Likewise.
26903 (movtd_64bit_nodm): Likewise.
26904
26905 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
26906
26907 PR tree-optimization/60174
26908 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
26909 statement of an SSA_NAME that occurs in an abnormal PHI node.
26910
26911 2014-02-18 Jakub Jelinek <jakub@redhat.com>
26912
26913 PR sanitizer/60142
26914 * final.c (SEEN_BB): Remove.
26915 (SEEN_NOTE, SEEN_EMITTED): Renumber.
26916 (final_scan_insn): Don't force_source_line on second
26917 NOTE_INSN_BASIC_BLOCK.
26918
26919 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
26920
26921 PR target/60205
26922 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
26923 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
26924 (type_natural_mode): Warn ABI change when %zmm register is not
26925 available for AVX512F vector value passing.
26926
26927 2014-02-18 Kai Tietz <ktietz@redhat.com>
26928
26929 PR target/60193
26930 * config/i386/i386.c (ix86_expand_prologue): Use value in
26931 rax register as displacement when restoring %r10 or %rax.
26932 Fix wrong offset when restoring both registers.
26933
26934 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
26935
26936 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
26937 assertion with conditional return.
26938
26939 2014-02-18 Jakub Jelinek <jakub@redhat.com>
26940 Uros Bizjak <ubizjak@gmail.com>
26941
26942 PR driver/60233
26943 * config/i386/driver-i386.c (host_detect_local_cpu): If
26944 YMM state is not saved by the OS, also clear has_f16c. Move
26945 CPUID 0x80000001 handling before YMM state saving checking.
26946
26947 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
26948
26949 PR rtl-optimization/58960
26950 * haifa-sched.c (alloc_global_sched_pressure_data): New,
26951 factored out from ...
26952 (sched_init): ... here.
26953 (free_global_sched_pressure_data): New, factored out from ...
26954 (sched_finish): ... here.
26955 * sched-int.h (free_global_sched_pressure_data): Declare.
26956 * sched-rgn.c (nr_regions_initial): New static global.
26957 (haifa_find_rgns): Initialize it.
26958 (schedule_region): Disable sched-pressure for the newly
26959 generated regions.
26960
26961 2014-02-17 Richard Biener <rguenther@suse.de>
26962
26963 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
26964 release SSA defs of pattern stmts.
26965
26966 2014-02-17 Richard Biener <rguenther@suse.de>
26967
26968 * tree-inline.c (expand_call_inline): Release the virtual
26969 operand defined by the call we are about to inline.
26970
26971 2014-02-17 Richard Biener <rguenther@suse.de>
26972
26973 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
26974
26975 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
26976 Ilya Tocar <ilya.tocar@intel.com>
26977
26978 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
26979 arguments order in builtin.
26980 (_mm512_permutexvar_epi64): Ditto.
26981 (_mm512_mask_permutexvar_epi64): Ditto
26982 (_mm512_maskz_permutexvar_epi32): Ditto
26983 (_mm512_permutexvar_epi32): Ditto
26984 (_mm512_mask_permutexvar_epi32): Ditto
26985
26986 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26987
26988 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
26989 (p8_vmrgow): Likewise.
26990
26991 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26992
26993 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
26994 endian targets.
26995
26996 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
26997
26998 PR target/60203
26999 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
27000 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
27001 into 64-bit and 32-bit moves. On 64-bit moves, add support for
27002 using direct move instructions on ISA 2.07. Also adjust
27003 instruction length for 64-bit.
27004 (mov<mode>_64bit, TFmode/TDmode): Likewise.
27005 (mov<mode>_32bit, TFmode/TDmode): Likewise.
27006
27007 2014-02-15 Alan Modra <amodra@gmail.com>
27008
27009 PR target/58675
27010 PR target/57935
27011 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
27012 find_replacement on parts of insn rtl that might be reloaded.
27013
27014 2014-02-15 Richard Biener <rguenther@suse.de>
27015
27016 PR tree-optimization/60183
27017 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
27018 (tree_ssa_phiprop): Calculate and free post-dominators.
27019
27020 2014-02-14 Jeff Law <law@redhat.com>
27021
27022 PR rtl-optimization/60131
27023 * ree.c (get_extended_src_reg): New function.
27024 (combine_reaching_defs): Use it rather than assuming location of REG.
27025 (find_and_remove_re): Verify first operand of extension is
27026 a REG before adding the insns to the copy list.
27027
27028 2014-02-14 Roland McGrath <mcgrathr@google.com>
27029
27030 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
27031 * configure: Regenerated.
27032 * config.in: Regenerated.
27033 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
27034 instead of ASM_SHORT.
27035
27036 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
27037 Richard Earnshaw <rearnsha@arm.com>
27038
27039 PR rtl-optimization/59535
27040 * lra-constraints.c (process_alt_operands): Encourage alternative
27041 when unassigned pseudo class is superset of the alternative class.
27042 (inherit_reload_reg): Don't inherit when optimizing for code size.
27043 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
27044 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
27045 modes not less than 4 for Thumb1.
27046
27047 2014-02-14 Kyle McMartin <kyle@redhat.com>
27048
27049 PR pch/60010
27050 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
27051
27052 2014-02-14 Richard Biener <rguenther@suse.de>
27053
27054 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
27055 (get_frame_arg): Drop the assert with langhook types_compatible_p.
27056 Do not strip INDIRECT_REFs.
27057
27058 2014-02-14 Richard Biener <rguenther@suse.de>
27059
27060 PR lto/60179
27061 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
27062 DECL_FUNCTION_SPECIFIC_TARGET.
27063 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
27064 * tree-streamer-out.c (pack_ts_target_option): Remove.
27065 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
27066 (write_ts_function_decl_tree_pointers): Do not stream
27067 DECL_FUNCTION_SPECIFIC_TARGET.
27068 * tree-streamer-in.c (unpack_ts_target_option): Remove.
27069 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
27070 (lto_input_ts_function_decl_tree_pointers): Do not stream
27071 DECL_FUNCTION_SPECIFIC_TARGET.
27072
27073 2014-02-14 Jakub Jelinek <jakub@redhat.com>
27074
27075 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
27076 (get_initial_def_for_induction, vectorizable_induction): Ignore
27077 debug stmts when looking for exit_phi.
27078 (vectorizable_live_operation): Fix up condition.
27079
27080 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27081
27082 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
27083 nreverse() because it changes the content of original tree list.
27084
27085 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27086
27087 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
27088 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
27089
27090 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27091
27092 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
27093 GNU coding standards.
27094
27095 2014-02-13 Jakub Jelinek <jakub@redhat.com>
27096
27097 PR debug/60152
27098 * dwarf2out.c (gen_subprogram_die): Don't call
27099 add_calling_convention_attribute if subr_die is old_die.
27100
27101 2014-02-13 Sharad Singhai <singhai@google.com>
27102
27103 * doc/optinfo.texi: Fix order of nodes.
27104
27105 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
27106
27107 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
27108 operands[2], not operands[3].
27109
27110 2014-02-13 Richard Biener <rguenther@suse.de>
27111
27112 PR bootstrap/59878
27113 * doc/install.texi (ISL): Update recommended version to 0.12.2,
27114 mention the possibility of an in-tree build.
27115 (CLooG): Update recommended version to 0.18.1, mention the
27116 possibility of an in-tree build and clarify that the ISL
27117 bundled with CLooG does not work.
27118
27119 2014-02-13 Jakub Jelinek <jakub@redhat.com>
27120
27121 PR target/43546
27122 * expr.c (compress_float_constant): If x is a hard register,
27123 extend into a pseudo and then move to x.
27124
27125 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
27126
27127 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
27128 caused by bad second argument to warning_at() with -mhotpatch and
27129 nested functions (e.g. with gfortran).
27130
27131 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
27132
27133 * opts.c (option_name): Remove "enabled by default" rider.
27134
27135 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
27136
27137 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
27138
27139 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
27140 Uros Bizjak <ubizjak@gmail.com>
27141
27142 PR target/60151
27143 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
27144 * configure: Regenerated.
27145
27146 2014-02-12 Richard Biener <rguenther@suse.de>
27147
27148 * vec.c (vec_prefix::calculate_allocation): Move as
27149 inline variant to vec.h.
27150 (vec_prefix::calculate_allocation_1): New out-of-line version.
27151 * vec.h (vec_prefix::calculate_allocation_1): Declare.
27152 (vec_prefix::m_has_auto_buf): Rename to ...
27153 (vec_prefix::m_using_auto_storage): ... this.
27154 (vec_prefix::calculate_allocation): Inline the easy cases
27155 and dispatch to calculate_allocation_1 which doesn't need the
27156 prefix address.
27157 (va_heap::reserve): Use gcc_checking_assert.
27158 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
27159 m_using_auto_storage.
27160 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
27161 member and adjust.
27162 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
27163 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
27164 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
27165
27166 2014-02-12 Richard Biener <rguenther@suse.de>
27167
27168 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
27169 when we found a dependence.
27170
27171 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
27172
27173 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
27174 common code...
27175 (maybe_fold_stmt): ... into this new function.
27176 * omp-low.c (lower_omp): Update comment.
27177
27178 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
27179 last use.
27180
27181 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
27182 dereference.
27183
27184 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
27185
27186 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
27187 identifiers in comments.
27188 (cortexa53_extra_costs): Likewise.
27189 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
27190 (cortexa7_extra_costs): Likewise.
27191 (cortexa12_extra_costs): Likewise.
27192 (cortexa15_extra_costs): Likewise.
27193 (v7m_extra_costs): Likewise.
27194
27195 2014-02-12 Richard Biener <rguenther@suse.de>
27196
27197 PR middle-end/60092
27198 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
27199 of posix_memalign being successful.
27200 (lower_stmt): Restrict lowering of posix_memalign to when
27201 -ftree-bit-ccp is enabled.
27202
27203 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
27204
27205 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
27206 arg_loc.
27207 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
27208
27209 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
27210
27211 PR rtl-optimization/60116
27212 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
27213 other_insn once the combination has been validated.
27214
27215 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
27216
27217 PR lto/59468
27218 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
27219 and wrapper.
27220 * ipa-devirt.c: Include demangle.h
27221 (odr_violation_reported): New static variable.
27222 (add_type_duplicate): Update odr_violations.
27223 (maybe_record_node): Add completep parameter; update it.
27224 (record_target_from_binfo): Add COMPLETEP parameter;
27225 update it as needed.
27226 (possible_polymorphic_call_targets_1): Likewise.
27227 (struct polymorphic_call_target_d): Add nonconstruction_targets;
27228 rename FINAL to COMPLETE.
27229 (record_targets_from_bases): Sanity check we found the binfo;
27230 fix COMPLETEP updating.
27231 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
27232 parameter, fix computing of COMPLETEP.
27233 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
27234 at LTO time do demangling.
27235 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
27236 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
27237 parameter.
27238 (gimple_get_virt_method_for_binfo): Likewise.
27239 * gimple-fold.h (gimple_get_virt_method_for_binfo,
27240 gimple_get_virt_method_for_vtable): Update prototypes.
27241
27242 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
27243
27244 PR target/49008
27245 * genautomata.c (add_presence_absence): Fix typo with
27246 {final_}presence_list.
27247
27248 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
27249
27250 PR target/60137
27251 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
27252 for VSX/Altivec vectors that land in GPR registers.
27253
27254 2014-02-11 Richard Henderson <rth@redhat.com>
27255 Jakub Jelinek <jakub@redhat.com>
27256
27257 PR debug/59776
27258 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
27259 around drhs if type conversion to lacc->type is not useless.
27260
27261 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27262
27263 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
27264 tuning struct.
27265 (cortex-a57.cortex-a53): Likewise.
27266 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
27267
27268 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27269
27270 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
27271 arm_restrict_it.
27272
27273 2014-02-11 Renlin Li <Renlin.Li@arm.com>
27274
27275 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
27276 add_options_for_arm_vfp3.
27277
27278 2014-02-11 Jeff Law <law@redhat.com>
27279
27280 PR middle-end/54041
27281 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
27282 object with an undesirable mode.
27283
27284 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27285
27286 PR libgomp/60107
27287 * config/i386/sol2-9.h: New file.
27288 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
27289 *-*-solaris2.9*): Use it.
27290
27291 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
27292
27293 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
27294 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
27295
27296 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
27297
27298 * config/microblaze/microblaze.c: Extend mcpu version format
27299
27300 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
27301
27302 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
27303
27304 2014-02-10 Richard Henderson <rth@redhat.com>
27305
27306 PR target/59927
27307 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
27308 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
27309 ms-abi vs -mno-accumulate-outgoing-args.
27310 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
27311 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
27312 respect to ms-abi.
27313
27314 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
27315
27316 PR middle-end/60080
27317 * cfgexpand.c (expand_asm_operands): Attach source location to
27318 ASM_INPUT rtx objects.
27319 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
27320
27321 2014-02-10 Nick Clifton <nickc@redhat.com>
27322
27323 * config/mn10300/mn10300.c (popcount): New function.
27324 (mn10300_expand_prologue): Include saved registers in stack usage
27325 count.
27326
27327 2014-02-10 Jeff Law <law@redhat.com>
27328
27329 PR middle-end/52306
27330 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
27331 when changing the SET_DEST of a prior insn to avoid an input reload.
27332
27333 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27334
27335 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
27336 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
27337 -mcall-openbsd, or -mcall-linux.
27338 (CC1_ENDIAN_BIG_SPEC): Remove.
27339 (CC1_ENDIAN_LITTLE_SPEC): Remove.
27340 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27341 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
27342 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
27343 and %cc1_endian_default.
27344 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27345
27346 2014-02-10 Richard Biener <rguenther@suse.de>
27347
27348 PR tree-optimization/60115
27349 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
27350 MEM_REF handling. Properly verify that the accesses are not
27351 out of the objects bound.
27352
27353 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27354
27355 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
27356 coretex to cortex.
27357
27358 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
27359
27360 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
27361 proper constants and fix formatting.
27362 (possible_polymorphic_call_targets): Fix formatting.
27363
27364 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
27365 Ilya Tocar <ilya.tocar@intel.com>
27366
27367 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
27368 (_mm512_loadu_epi32): Renamed into...
27369 (_mm512_loadu_si512): This.
27370 (_mm512_storeu_epi32): Renamed into...
27371 (_mm512_storeu_si512): This.
27372 (_mm512_maskz_ceil_ps): Removed.
27373 (_mm512_maskz_ceil_pd): Ditto.
27374 (_mm512_maskz_floor_ps): Ditto.
27375 (_mm512_maskz_floor_pd): Ditto.
27376 (_mm512_floor_round_ps): Ditto.
27377 (_mm512_floor_round_pd): Ditto.
27378 (_mm512_ceil_round_ps): Ditto.
27379 (_mm512_ceil_round_pd): Ditto.
27380 (_mm512_mask_floor_round_ps): Ditto.
27381 (_mm512_mask_floor_round_pd): Ditto.
27382 (_mm512_mask_ceil_round_ps): Ditto.
27383 (_mm512_mask_ceil_round_pd): Ditto.
27384 (_mm512_maskz_floor_round_ps): Ditto.
27385 (_mm512_maskz_floor_round_pd): Ditto.
27386 (_mm512_maskz_ceil_round_ps): Ditto.
27387 (_mm512_maskz_ceil_round_pd): Ditto.
27388 (_mm512_expand_pd): Ditto.
27389 (_mm512_expand_ps): Ditto.
27390 * config/i386/i386.c (ix86_builtins): Remove
27391 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
27392 (bdesc_args): Ditto.
27393 * config/i386/predicates.md (const1256_operand): New.
27394 (const_1_to_2_operand): Ditto.
27395 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
27396 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
27397 (*avx512pf_gatherpf<mode>sf): Ditto.
27398 (avx512pf_gatherpf<mode>df): Ditto.
27399 (*avx512pf_gatherpf<mode>df_mask): Ditto.
27400 (*avx512pf_gatherpf<mode>df): Ditto.
27401 (avx512pf_scatterpf<mode>sf): Ditto.
27402 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
27403 (*avx512pf_scatterpf<mode>sf): Ditto.
27404 (avx512pf_scatterpf<mode>df): Ditto.
27405 (*avx512pf_scatterpf<mode>df_mask): Ditto.
27406 (*avx512pf_scatterpf<mode>df): Ditto.
27407 (avx512f_expand<mode>): Removed.
27408 (<shift_insn><mode>3<mask_name>): Change predicate type.
27409
27410 2014-02-08 Jakub Jelinek <jakub@redhat.com>
27411
27412 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
27413 not at the end of datarefs vector use ordered_remove to avoid
27414 reordering datarefs vector.
27415
27416 PR c/59984
27417 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
27418 mark local addressable non-static vars as GOVD_PRIVATE
27419 instead of GOVD_LOCAL.
27420 * omp-low.c (lower_omp_for): Move gimple_bind_vars
27421 and BLOCK_VARS of gimple_bind_block to new_stmt rather
27422 than copying them.
27423
27424 PR middle-end/60092
27425 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
27426 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
27427 assume_aligned or alloc_align attributes.
27428 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
27429 arguments. Handle also assume_aligned and alloc_align attributes.
27430 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
27431 calls to functions with assume_aligned or alloc_align attributes.
27432 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
27433
27434 2014-02-08 Terry Guo <terry.guo@arm.com>
27435
27436 * doc/invoke.texi: Document ARM -march=armv7e-m.
27437
27438 2014-02-08 Jakub Jelinek <jakub@redhat.com>
27439
27440 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
27441 flag on __cilkrts_rethrow builtin.
27442
27443 PR ipa/60026
27444 * ipa-cp.c (determine_versionability): Fail at -O0
27445 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
27446 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
27447
27448 Revert:
27449 2014-02-04 Jakub Jelinek <jakub@redhat.com>
27450
27451 PR ipa/60026
27452 * tree-inline.c (copy_forbidden): Fail for
27453 __attribute__((optimize (0))) functions.
27454
27455 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
27456
27457 * varpool.c: Include pointer-set.h.
27458 (varpool_remove_unreferenced_decls): Variables in other partitions
27459 will not be output; be however careful to not lose information
27460 about partitioning.
27461
27462 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
27463
27464 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
27465 lookup in the vtable constructor.
27466
27467 2014-02-07 Jeff Law <law@redhat.com>
27468
27469 PR target/40977
27470 * config/m68k/m68k.md (ashldi_extsi): Turn into a
27471 define_insn_and_split.
27472
27473 * ipa-inline.c (inline_small_functions): Fix typos.
27474
27475 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27476
27477 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
27478 (s390_can_use_return_insn): Declare.
27479 * config/s390/s390.h (EPILOGUE_USES): Define.
27480 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
27481 instructions.
27482 (s390_chunkify_start): Handle return JUMP_LABELs.
27483 (s390_early_mach): Emit a main_pool instruction on the entry edge.
27484 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
27485 (s390_can_use_return_insn): New functions.
27486 (s390_fix_long_loop_prediction): Handle conditional returns.
27487 (TARGET_SET_UP_BY_PROLOGUE): Define.
27488 * config/s390/s390.md (ANY_RETURN): New code iterator.
27489 (*creturn, *csimple_return, return, simple_return): New patterns.
27490
27491 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27492
27493 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
27494 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
27495 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
27496 REG_CFA_RESTORE list when deciding not to restore a register.
27497
27498 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27499
27500 * config/s390/s390.c: Include tree-pass.h and context.h.
27501 (s390_early_mach): New function, split out from...
27502 (s390_emit_prologue): ...here.
27503 (pass_data_s390_early_mach): New pass structure.
27504 (pass_s390_early_mach): New class.
27505 (s390_option_override): Create and register early_mach pass.
27506 Move to end of file.
27507
27508 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27509
27510 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
27511 to match for the exit block.
27512
27513 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27514
27515 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
27516 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
27517 Reject misaligned operands.
27518
27519 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27520
27521 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
27522
27523 2014-02-07 Richard Biener <rguenther@suse.de>
27524
27525 PR middle-end/60092
27526 * gimple-low.c (lower_builtin_posix_memalign): New function.
27527 (lower_stmt): Call it to lower posix_memalign in a way
27528 to make alignment info accessible.
27529
27530 2014-02-07 Jakub Jelinek <jakub@redhat.com>
27531
27532 PR c++/60082
27533 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
27534 __builtin_setjmp_receiver.
27535
27536 2014-02-07 Richard Biener <rguenther@suse.de>
27537
27538 PR middle-end/60092
27539 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
27540 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
27541 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
27542 Handle BUILT_IN_POSIX_MEMALIGN.
27543 (find_func_clobbers): Likewise.
27544 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
27545 (call_may_clobber_ref_p_1): Likewise.
27546
27547 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27548
27549 PR ipa/59918
27550 * ipa-devirt.c (record_target_from_binfo): Remove overactive
27551 sanity check.
27552
27553 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27554
27555 PR ipa/59469
27556 * lto-cgraph.c (lto_output_node): Use
27557 symtab_get_symbol_partitioning_class.
27558 (lto_output_varpool_node): likewise.
27559 (symtab_get_symbol_partitioning_class): Move here from
27560 lto/lto-partition.c
27561 * cgraph.h (symbol_partitioning_class): Likewise.
27562 (symtab_get_symbol_partitioning_class): Declare.
27563
27564 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27565
27566 * ggc.h (ggc_internal_cleared_alloc): New macro.
27567 * vec.h (vec_safe_copy): Handle memory stats.
27568 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
27569 * target-globals.c (save_target_globals): Likewise.
27570
27571 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27572
27573 PR target/60077
27574 * expr.c (emit_move_resolve_push): Export; be bit more selective
27575 on when to clear alias set.
27576 * expr.h (emit_move_resolve_push): Declare.
27577 * function.h (struct function): Add tail_call_marked.
27578 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
27579 * config/i386/i386-protos.h (ix86_expand_push): Remove.
27580 * config/i386/i386.md (TImode move expander): De not call
27581 ix86_expand_push.
27582 (FP push expanders): Preserve memory attributes.
27583 * config/i386/sse.md (push<mode>1): Remove.
27584 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
27585 (ix86_expand_push): Remove.
27586 * config/i386/mmx.md (push<mode>1): Remove.
27587
27588 2014-02-06 Jakub Jelinek <jakub@redhat.com>
27589
27590 PR rtl-optimization/60030
27591 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
27592 lopart with paradoxical subreg before shifting it up by hprec.
27593
27594 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27595
27596 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
27597 Remove extra newline at end of file.
27598 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
27599 (arm_issue_rate): Handle cortexa57.
27600 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
27601 (cortex-a57.cortex-a53): Likewise.
27602
27603 2014-02-06 Jakub Jelinek <jakub@redhat.com>
27604
27605 PR target/59575
27606 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
27607 don't record in REG_FRAME_RELATED_EXPR registers not set in that
27608 bitmask.
27609 (arm_expand_prologue): Adjust all callers.
27610 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
27611 info, registers also at the lowest numbered registers side. Use
27612 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
27613 XEXP.
27614
27615 PR debug/59992
27616 * var-tracking.c (adjust_mems): Before adding a SET to
27617 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
27618
27619 2014-02-06 Alan Modra <amodra@gmail.com>
27620
27621 PR target/60032
27622 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
27623 change SDmode to DDmode when lra_in_progress.
27624
27625 2014-02-06 Jakub Jelinek <jakub@redhat.com>
27626
27627 PR middle-end/59150
27628 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
27629 free_data_ref on the dr first, and before goto again also set dr
27630 to the next dr. For simd_lane_access, free old datarefs[i] before
27631 overwriting it. For get_vectype_for_scalar_type failure, don't
27632 free_data_ref if simd_lane_access.
27633
27634 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
27635
27636 PR target/60062
27637 * tree.h (opts_for_fn): New inline function.
27638 (opt_for_fn): Define.
27639 * config/i386/i386.c (ix86_function_regparm): Use
27640 opt_for_fn (decl, optimize) instead of optimize.
27641
27642 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
27643
27644 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
27645 for SYMBOL_REF in large memory model.
27646
27647 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27648
27649 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
27650 and crypto support.
27651 (cortex-a57): Likewise.
27652 (cortex-a57.cortex-a53): Likewise.
27653
27654 2014-02-06 Yury Gribov <y.gribov@samsung.com>
27655 Kugan Vivekanandarajah <kuganv@linaro.org>
27656
27657 * config/arm/arm.c (arm_vector_alignment_reachable): Check
27658 unaligned_access.
27659 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
27660
27661 2014-02-06 Richard Biener <rguenther@suse.de>
27662
27663 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
27664 set_loop_copy and initialize_original_copy_tables.
27665
27666 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
27667
27668 * config/aarch64/aarch64-simd.md
27669 (aarch64_ashr_simddi): Change QI to SI.
27670
27671 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
27672 Jakub Jelinek <jakub@redhat.com>
27673
27674 PR middle-end/60013
27675 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
27676 of the dataflow.
27677
27678 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27679
27680 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
27681 CODE_FOR_altivec_vpku[hw]um to
27682 CODE_FOR_altivec_vpku[hw]um_direct.
27683 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
27684 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
27685 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
27686 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
27687
27688 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27689
27690 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
27691 generation for -maltivec=be.
27692 (altivec_vsumsws): Simplify redundant test.
27693
27694 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27695
27696 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
27697 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
27698 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
27699 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
27700 gen_altivec_vpkuwum.
27701 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
27702 BYTES_BIG_ENDIAN.
27703 (altivec_vpks<VI_char>ss): Likewise.
27704 (altivec_vpks<VI_char>us): Likewise.
27705 (altivec_vpku<VI_char>us): Likewise.
27706 (altivec_vpku<VI_char>um): Likewise.
27707 (altivec_vpku<VI_char>um_direct): New (copy of
27708 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
27709 internal use).
27710 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
27711 target is little endian and -maltivec=be is not specified.
27712 (*altivec_vupkhs<VU_char>_direct): New (copy of
27713 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
27714 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
27715 target is little endian and -maltivec=be is not specified.
27716 (*altivec_vupkls<VU_char>_direct): New (copy of
27717 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
27718 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
27719 little endian and -maltivec=be is not specified.
27720 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
27721 little endian and -maltivec=be is not specified.
27722
27723 2014-02-05 Richard Henderson <rth@redhat.com>
27724
27725 PR debug/52727
27726 * combine-stack-adj.c: Revert r206943.
27727 * sched-int.h (struct deps_desc): Add last_args_size.
27728 * sched-deps.c (init_deps): Initialize it.
27729 (sched_analyze_insn): Add OUTPUT dependencies between insns that
27730 contain REG_ARGS_SIZE notes.
27731
27732 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
27733
27734 * lto-cgraph.c (asm_nodes_output): Make global.
27735 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
27736 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
27737 (driver_handle_option): Handle OPT_fwpa.
27738
27739 2014-02-05 Jakub Jelinek <jakub@redhat.com>
27740
27741 PR ipa/59947
27742 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
27743 a comment typo and formatting issue. If odr_hash hasn't been
27744 created, return vNULL and set *completep to false.
27745
27746 PR middle-end/57499
27747 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
27748 bb with no successors.
27749
27750 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
27751
27752 PR target/59718
27753 * doc/invoke.texi (-march): Clarify documentation for ARM.
27754 (-mtune): Likewise.
27755 (-mcpu): Likewise.
27756
27757 2014-02-05 Richard Biener <rguenther@suse.de>
27758
27759 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
27760 when not vectorizing because of too many alias checks.
27761 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
27762 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
27763
27764 2014-02-05 Nick Clifton <nickc@redhat.com>
27765
27766 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
27767 accept extended registers in any mode when compiling for the MN10300.
27768
27769 2014-02-05 Yury Gribov <y.gribov@samsung.com>
27770
27771 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
27772 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
27773 sanitization attributes.
27774 (can_inline_edge_p): Likewise.
27775 (sanitize_attrs_match_for_inline_p): New function.
27776
27777 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
27778
27779 * ipa-prop.c (detect_type_change): Shor circuit testing of
27780 type changes on THIS pointer.
27781
27782 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
27783
27784 PR target/59777
27785 * config/pa/pa.c (legitimize_tls_address): Return original address
27786 if not passed a SYMBOL_REF rtx.
27787 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
27788 addresses.
27789 (pa_emit_move_sequence): Simplify TLS source operands.
27790 (pa_legitimate_constant_p): Reject all TLS constants.
27791 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
27792 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
27793
27794 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
27795
27796 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
27797 groups when we know they are controlled by LTO.
27798 * varasm.c (default_binds_local_p_1): If object is in other partition,
27799 it will be resolved locally.
27800
27801 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
27802
27803 * config/host-linux.c (linux_gt_pch_use_address): Don't
27804 use SSIZE_MAX because it is not always defined.
27805
27806 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
27807
27808 PR bootstrap/59913
27809 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
27810 threshold for pseudo splitting.
27811 (update_ebb_live_info): Process call argument hard registers and
27812 hard registers from insn definition too.
27813 (max_small_class_regs_num): New constant.
27814 (inherit_in_ebb): Update live hard regs through EBBs. Update
27815 reloads_num only for small register classes. Don't split for
27816 outputs of jumps.
27817
27818 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
27819
27820 PR ipa/60058
27821 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
27822 is non-null.
27823
27824 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
27825
27826 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
27827 visibility is safe.
27828
27829 2014-02-04 Marek Polacek <polacek@redhat.com>
27830
27831 * gdbinit.in (pel): Define.
27832
27833 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
27834
27835 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
27836 behavior.
27837
27838 2014-02-04 Richard Biener <rguenther@suse.de>
27839
27840 PR lto/59723
27841 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
27842 in function context local.
27843 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
27844 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
27845 similar to LTO_imported_decl_ref.
27846
27847 2014-02-04 Jakub Jelinek <jakub@redhat.com>
27848
27849 PR tree-optimization/60002
27850 * cgraphclones.c (build_function_decl_skip_args): Clear
27851 DECL_LANG_SPECIFIC.
27852
27853 PR tree-optimization/60023
27854 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
27855 false to gsi_replace.
27856 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
27857 has been in some EH region and vec_stmt could throw, add
27858 vec_stmt into the same EH region.
27859 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
27860 has no lhs, ignore it.
27861 * internal-fn.c (expand_MASK_LOAD): Likewise.
27862
27863 PR ipa/60026
27864 * tree-inline.c (copy_forbidden): Fail for
27865 __attribute__((optimize (0))) functions.
27866
27867 PR other/58712
27868 * omp-low.c (simd_clone_struct_copy): If from->inbranch
27869 is set, copy one less argument.
27870 (expand_simd_clones): Don't subtract clone_info->inbranch
27871 from simd_clone_struct_alloc argument.
27872
27873 PR rtl-optimization/57915
27874 * recog.c (simplify_while_replacing): If all unary/binary/relational
27875 operation arguments are constant, attempt to simplify those.
27876
27877 PR middle-end/59261
27878 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
27879 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
27880
27881 2014-02-04 Richard Biener <rguenther@suse.de>
27882
27883 PR tree-optimization/60012
27884 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
27885 TBAA disambiguation to all DDRs.
27886
27887 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27888
27889 PR target/59788
27890 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
27891 (LINK_SPEC): Use it for -shared, -shared-libgcc.
27892
27893 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27894
27895 PR ipa/59882
27896 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
27897
27898 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27899
27900 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
27901 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
27902
27903 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27904
27905 PR ipa/59831
27906 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
27907 to figure out targets of polymorphic calls with known decl.
27908 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
27909 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
27910 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
27911 (get_polymorphic_call_info): ... here.
27912 (get_polymorphic_call_info_from_invariant): New function.
27913
27914 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27915
27916 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
27917 lookup via vtable pointer; check for type consistency
27918 and turn inconsitent facts into UNREACHABLE.
27919 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
27920 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
27921 type inconsistent querries; return UNREACHABLE instead.
27922
27923 2014-02-03 Richard Henderson <rth@twiddle.net>
27924
27925 PR tree-opt/59924
27926 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
27927 already processed this node.
27928 (normalize_one_pred_1): Pass along mark_set.
27929 (normalize_one_pred): Create and destroy a pointer_set_t.
27930 (normalize_one_pred_chain): Likewise.
27931
27932 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
27933
27934 PR gcov-profile/58602
27935 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
27936
27937 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27938
27939 PR ipa/59831
27940 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
27941 -fno-devirtualize; try to devirtualize by the knowledge of
27942 virtual table pointer given by aggregate propagation.
27943 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
27944 (ipa_print_node_jump_functions): Dump also offset that
27945 is relevant for polymorphic calls.
27946 (determine_known_aggregate_parts): Add arg_type parameter; use it
27947 instead of determining the type from pointer type.
27948 (ipa_compute_jump_functions_for_edge): Update call of
27949 determine_known_aggregate_parts.
27950 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
27951 (gimple_get_virt_method_for_binfo): ... here; simplify using
27952 vtable_pointer_value_to_vtable.
27953 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
27954 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
27955 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
27956 (vtable_pointer_value_to_vtable): Break out from ...; handle also
27957 POINTER_PLUS_EXPR.
27958 (vtable_pointer_value_to_binfo): ... here.
27959 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
27960
27961 2014-02-03 Teresa Johnson <tejohnson@google.com>
27962
27963 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
27964 redef of outer loop index variable.
27965
27966 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
27967
27968 PR c++/53017
27969 PR c++/59211
27970 * doc/extend.texi (Function Attributes): Typo.
27971
27972 2014-02-03 Cong Hou <congh@google.com>
27973
27974 PR tree-optimization/60000
27975 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
27976 if the vectorized statement is a store. A store statement can only
27977 appear at the end of pattern statements.
27978
27979 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
27980
27981 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
27982 (ix86_option_override_internal): Default long double to 64-bit for
27983 32-bit Bionic and to 128-bit for 64-bit Bionic.
27984
27985 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
27986 TARGET_LONG_DOUBLE_128 is true.
27987 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
27988
27989 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
27990 (mlong-double-64): Negate -mlong-double-128.
27991 (mlong-double-128): New option.
27992
27993 * config/i386/i386-c.c (ix86_target_macros): Define
27994 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
27995
27996 * doc/invoke.texi: Document -mlong-double-128.
27997
27998 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
27999
28000 PR rtl-optimization/60024
28001 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
28002
28003 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
28004
28005 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
28006
28007 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
28008
28009 PR rtl-optimization/57662
28010 * sel-sched.c (code_motion_path_driver): Do not mark already not
28011 existing blocks in the visiting bitmap.
28012
28013 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
28014
28015 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
28016 on the insn being emitted.
28017
28018 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
28019 Will Deacon <will.deacon@arm.com>
28020
28021 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
28022
28023 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28024
28025 * config/arm/arm-tables.opt: Regenerate.
28026
28027 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28028
28029 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
28030 for vector types other than V16QImode.
28031 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
28032 define_expand, and call altivec_expand_vec_perm_le when producing
28033 code with little endian element order.
28034 (*altivec_vperm_<mode>_internal): New insn having previous
28035 behavior of altivec_vperm_<mode>.
28036 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
28037 altivec_expand_vec_perm_le when producing code with little endian
28038 element order.
28039 (*altivec_vperm_<mode>_uns_internal): New insn having previous
28040 behavior of altivec_vperm_<mode>_uns.
28041
28042 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28043
28044 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
28045 (altivec_vsumsws): Add handling for -maltivec=be with a little
28046 endian target.
28047 (altivec_vsumsws_direct): New.
28048 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
28049 gen_altivec_vsumsws.
28050
28051 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
28052
28053 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
28054 vtable_pointer_value_to_binfo): New functions.
28055 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
28056 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
28057
28058 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
28059
28060 * config/nios2/nios2.md (load_got_register): Initialize GOT
28061 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
28062 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
28063
28064 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
28065
28066 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
28067 preserverd by passthrough, do not propagate the type.
28068
28069 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28070
28071 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
28072 (mips_atomic_assign_expand_fenv): New function.
28073 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
28074
28075 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28076
28077 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
28078 (__builtin_mips_set_fcsr): Likewise.
28079 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
28080 MIPS_USI_FTYPE_VOID.
28081 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
28082 (mips16_expand_set_fcsr): Likewise.
28083 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
28084 (mips16_set_fcsr_stub): Likewise.
28085 (mips16_get_fcsr_one_only_stub): New class.
28086 (mips16_set_fcsr_one_only_stub): Likewise.
28087 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
28088 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
28089 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
28090 (hard_float): New availability predicate.
28091 (mips_builtins): Add get_fcsr and set_fcsr.
28092 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
28093 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
28094 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
28095 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
28096 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
28097 patterns.
28098
28099 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28100
28101 * config/mips/mips.c (mips_one_only_stub): New class.
28102 (mips_need_mips16_rdhwr_p): Replace with...
28103 (mips16_rdhwr_stub): ...this new variable.
28104 (mips16_stub_call_address): New function.
28105 (mips16_rdhwr_one_only_stub): New class.
28106 (mips_expand_thread_pointer): Use mips16_stub_call_address.
28107 (mips_output_mips16_rdhwr): Delete.
28108 (mips_finish_stub): New function.
28109 (mips_code_end): Use it to handle rdhwr stubs.
28110
28111 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
28112
28113 PR target/60017
28114 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
28115 when calculating size of integer atomic types.
28116
28117 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
28118
28119 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
28120
28121 2014-02-01 Jakub Jelinek <jakub@redhat.com>
28122
28123 PR tree-optimization/60003
28124 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
28125 * profile.c (branch_prob): Use gimple_call_builtin_p
28126 to check for BUILT_IN_SETJMP_RECEIVER.
28127 * tree-inline.c (copy_bb): Call notice_special_calls.
28128
28129 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
28130
28131 PR bootstrap/59985
28132 * lra-constraints.c (process_alt_operands): Update reload_sum only
28133 on the first pass.
28134
28135 2014-01-31 Richard Henderson <rth@redhat.com>
28136
28137 PR middle-end/60004
28138 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
28139 until after else_eh is processed.
28140
28141 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
28142
28143 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
28144 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
28145 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
28146 in smmintrin.h, remove them.
28147 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
28148 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
28149 * config/i386/i386.md (ROUND_SAE): Fix value.
28150 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
28151 (const48_operand): New.
28152 * config/i386/subst.md (round), (round_expand): Use
28153 const_4_or_8_to_11_operand.
28154 (round_saeonly), (round_saeonly_expand): Use const48_operand.
28155
28156 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
28157
28158 * config/i386/constraints.md (Yk): Swap meaning with k.
28159 * config/i386/i386.md (movhi_internal): Change Yk to k.
28160 (movqi_internal): Ditto.
28161 (*k<logic><mode>): Ditto.
28162 (*andhi_1): Ditto.
28163 (*andqi_1): Ditto.
28164 (kandn<mode>): Ditto.
28165 (*<code>hi_1): Ditto.
28166 (*<code>qi_1): Ditto.
28167 (kxnor<mode>): Ditto.
28168 (kortestzhi): Ditto.
28169 (kortestchi): Ditto.
28170 (kunpckhi): Ditto.
28171 (*one_cmplhi2_1): Ditto.
28172 (*one_cmplqi2_1): Ditto.
28173 * config/i386/sse.md (): Change k to Yk.
28174 (avx512f_load<mode>_mask): Ditto.
28175 (avx512f_blendm<mode>): Ditto.
28176 (avx512f_store<mode>_mask): Ditto.
28177 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
28178 (avx512f_storedqu<mode>_mask): Ditto.
28179 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
28180 Ditto.
28181 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
28182 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
28183 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
28184 (avx512f_maskcmp<mode>3): Ditto.
28185 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
28186 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
28187 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
28188 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
28189 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
28190 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
28191 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
28192 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
28193 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
28194 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
28195 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
28196 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
28197 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
28198 (vec_extract_lo_<mode>_maskm): Ditto.
28199 (vec_extract_hi_<mode>_maskm): Ditto.
28200 (avx512f_vternlog<mode>_mask): Ditto.
28201 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
28202 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
28203 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
28204 (avx512f_<code>v8div16qi2_mask): Ditto.
28205 (avx512f_<code>v8div16qi2_mask_store): Ditto.
28206 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
28207 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
28208 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
28209 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
28210 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
28211 (*avx512pf_gatherpf<mode>df_mask): Ditto.
28212 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28213 (*avx512pf_scatterpf<mode>df_mask): Ditto.
28214 (avx512cd_maskb_vec_dupv8di): Ditto.
28215 (avx512cd_maskw_vec_dupv16si): Ditto.
28216 (avx512f_vpermi2var<mode>3_maskz): Ditto.
28217 (avx512f_vpermi2var<mode>3_mask): Ditto.
28218 (avx512f_vpermi2var<mode>3_mask): Ditto.
28219 (avx512f_vpermt2var<mode>3_maskz): Ditto.
28220 (*avx512f_gathersi<mode>): Ditto.
28221 (*avx512f_gathersi<mode>_2): Ditto.
28222 (*avx512f_gatherdi<mode>): Ditto.
28223 (*avx512f_gatherdi<mode>_2): Ditto.
28224 (*avx512f_scattersi<mode>): Ditto.
28225 (*avx512f_scatterdi<mode>): Ditto.
28226 (avx512f_compress<mode>_mask): Ditto.
28227 (avx512f_compressstore<mode>_mask): Ditto.
28228 (avx512f_expand<mode>_mask): Ditto.
28229 * config/i386/subst.md (mask): Change k to Yk.
28230 (mask_scalar_merge): Ditto.
28231 (sd): Ditto.
28232
28233 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
28234
28235 * doc/extend.texi (Vector Extensions): Document ?: in C++.
28236
28237 2014-01-31 Richard Biener <rguenther@suse.de>
28238
28239 PR middle-end/59990
28240 * builtins.c (fold_builtin_memory_op): Make sure to not
28241 use a floating-point mode or a boolean or enumeral type for
28242 the copy operation.
28243
28244 2014-01-30 DJ Delorie <dj@redhat.com>
28245
28246 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
28247 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
28248 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
28249 whenever main() has an epilogue.
28250
28251 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28252
28253 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
28254 unused variable "field".
28255 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
28256 (vsx_mergeh_<mode>): Likewise.
28257 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
28258 (altivec_vmrghh): Likewise.
28259 (altivec_vmrghw): Likewise.
28260 (altivec_vmrglb): Likewise.
28261 (altivec_vmrglh): Likewise.
28262 (altivec_vmrglw): Likewise.
28263 (altivec_vspltb): Add missing uses.
28264 (altivec_vsplth): Likewise.
28265 (altivec_vspltw): Likewise.
28266 (altivec_vspltsf): Likewise.
28267
28268 2014-01-30 Jakub Jelinek <jakub@redhat.com>
28269
28270 PR target/59923
28271 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
28272 frame related instructions.
28273
28274 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
28275
28276 PR rtl-optimization/59959
28277 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
28278 any reload of register whose subreg is invalid.
28279
28280 2014-01-30 Jakub Jelinek <jakub@redhat.com>
28281
28282 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
28283 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
28284 Add missing return type - void.
28285
28286 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28287
28288 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
28289 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
28290 remove element index adjustment for endian (now handled in vsx.md
28291 and altivec.md).
28292 (altivec_expand_vec_perm_const): Use
28293 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
28294 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
28295 (vsx_xxspltw_<mode>): Adjust element index for little endian.
28296 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
28297 define_expand and a new define_insn *altivec_vspltb_internal;
28298 adjust for -maltivec=be on a little endian target.
28299 (altivec_vspltb_direct): New.
28300 (altivec_vsplth): Divide into a define_expand and a new
28301 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
28302 little endian target.
28303 (altivec_vsplth_direct): New.
28304 (altivec_vspltw): Divide into a define_expand and a new
28305 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
28306 little endian target.
28307 (altivec_vspltw_direct): New.
28308 (altivec_vspltsf): Divide into a define_expand and a new
28309 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
28310 a little endian target.
28311
28312 2014-01-30 Richard Biener <rguenther@suse.de>
28313
28314 PR tree-optimization/59993
28315 * tree-ssa-forwprop.c (associate_pointerplus): Check we
28316 can propagate form the earlier stmt and avoid the transform
28317 when the intermediate result is needed.
28318
28319 2014-01-30 Alangi Derick <alangiderick@gmail.com>
28320
28321 * README.Portability: Fix typo.
28322
28323 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
28324
28325 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
28326 comparison_operator with ordered_comparison_operator.
28327
28328 2014-01-30 Nick Clifton <nickc@redhat.com>
28329
28330 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
28331 Rename to mn10300_store_multiple_regs.
28332 * config/mn10300/mn10300.c: Likewise.
28333 * config/mn10300/mn10300.md (store_movm): Fix typo: call
28334 store_multiple_regs.
28335 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
28336 Call mn10300_store_multiple_regs.
28337
28338 2014-01-30 Nick Clifton <nickc@redhat.com>
28339 DJ Delorie <dj@redhat.com>
28340
28341 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
28342 %fp 2 to keep registers after it properly word-aligned.
28343 (rl78_alloc_physical_registers_umul): Handle the case where both
28344 input operands are the same.
28345
28346 2014-01-30 Richard Biener <rguenther@suse.de>
28347
28348 PR tree-optimization/59903
28349 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
28350 check properly.
28351
28352 2014-01-30 Jason Merrill <jason@redhat.com>
28353
28354 PR c++/59633
28355 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
28356
28357 PR c++/59645
28358 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
28359
28360 2014-01-30 Richard Biener <rguenther@suse.de>
28361
28362 PR tree-optimization/59951
28363 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
28364
28365 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
28366
28367 PR target/59784
28368 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
28369 SFmode to DFmode case.
28370
28371 2014-01-29 DJ Delorie <dj@redhat.com>
28372
28373 * config/msp430/msp430.opt (-minrt): New.
28374 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
28375 if -minrt given.
28376 (ENDFILE_SPEC): Likewise.
28377
28378 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
28379
28380 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
28381 (estimate_function_body_sizes): Use it.
28382
28383 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
28384
28385 PR c++/58561
28386 * dwarf2out.c (is_cxx_auto): New.
28387 (is_base_type): Use it.
28388 (gen_type_die_with_usage): Likewise.
28389
28390 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28391
28392 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
28393 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
28394 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
28395 -maltivec=be with LE targets.
28396 (vsx_mergeh_<mode>): Likewise.
28397 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
28398 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
28399 (altivec_vmrghb): Replace with define_expand and new
28400 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
28401 (altivec_vmrghb_direct): New define_insn.
28402 (altivec_vmrghh): Replace with define_expand and new
28403 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
28404 (altivec_vmrghh_direct): New define_insn.
28405 (altivec_vmrghw): Replace with define_expand and new
28406 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
28407 (altivec_vmrghw_direct): New define_insn.
28408 (*altivec_vmrghsf): Adjust for endianness.
28409 (altivec_vmrglb): Replace with define_expand and new
28410 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
28411 (altivec_vmrglb_direct): New define_insn.
28412 (altivec_vmrglh): Replace with define_expand and new
28413 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
28414 (altivec_vmrglh_direct): New define_insn.
28415 (altivec_vmrglw): Replace with define_expand and new
28416 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
28417 (altivec_vmrglw_direct): New define_insn.
28418 (*altivec_vmrglsf): Adjust for endianness.
28419 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28420 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28421 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28422 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28423 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28424 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28425 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28426 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28427
28428 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
28429
28430 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
28431 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
28432 whitespace.
28433
28434 2014-01-29 Richard Biener <rguenther@suse.de>
28435
28436 PR tree-optimization/58742
28437 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
28438 associate_pointerplus_align.
28439 (associate_pointerplus_diff): New function.
28440 (associate_pointerplus): Likewise. Call associate_pointerplus_align
28441 and associate_pointerplus_diff.
28442
28443 2014-01-29 Richard Biener <rguenther@suse.de>
28444
28445 * lto-streamer.h (LTO_major_version): Bump to 3.
28446 (LTO_minor_version): Reset to 0.
28447
28448 2014-01-29 Renlin Li <Renlin.Li@arm.com>
28449
28450 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
28451 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
28452 (arm_file_start): Generate correct asm header for armv7ve.
28453 * config/arm/bpabi.h: Add multilib support for armv7ve.
28454 * config/arm/driver-arm.c: Change the architectures of cortex-a7
28455 and cortex-a15 to armv7ve.
28456 * config/arm/t-aprofile: Add multilib support for armv7ve.
28457 * doc/invoke.texi: Document -march=armv7ve.
28458
28459 2014-01-29 Richard Biener <rguenther@suse.de>
28460
28461 PR tree-optimization/58742
28462 * tree-ssa-forwprop.c (associate_plusminus): Return true
28463 if we changed sth, defer EH cleanup to ...
28464 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
28465 (simplify_mult): New function.
28466
28467 2014-01-29 Jakub Jelinek <jakub@redhat.com>
28468
28469 PR middle-end/59917
28470 PR tree-optimization/59920
28471 * tree.c (build_common_builtin_nodes): Remove
28472 __builtin_setjmp_dispatcher initialization.
28473 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
28474 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
28475 instead of gsi_after_labels + manually skipping debug stmts.
28476 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
28477 ignore bbs with IFN_ABNORMAL_DISPATCHER.
28478 * tree-inline.c (copy_edges_for_bb): Remove
28479 can_make_abnormal_goto argument, instead add abnormal_goto_dest
28480 argument. Ignore computed_goto_p stmts. Don't call
28481 make_abnormal_goto_edges. If a call might need abnormal edges
28482 for non-local gotos, see if it already has an edge to
28483 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
28484 with true argument, don't do anything then, otherwise add
28485 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
28486 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
28487 caller.
28488 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
28489 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
28490 (lower_stmt): Don't set data->calls_builtin_setjmp.
28491 (lower_builtin_setjmp): Adjust comment.
28492 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
28493 * tree-cfg.c (found_computed_goto): Remove.
28494 (factor_computed_gotos): Remove.
28495 (make_goto_expr_edges): Return bool, true for computed gotos.
28496 Don't call make_abnormal_goto_edges.
28497 (build_gimple_cfg): Don't set found_computed_goto, don't call
28498 factor_computed_gotos.
28499 (computed_goto_p): No longer static.
28500 (make_blocks): Don't set found_computed_goto.
28501 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
28502 (make_edges): If make_goto_expr_edges returns true, push bb
28503 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
28504 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
28505 vector. Record mapping between bbs and OpenMP regions if there
28506 are any, adjust make_gimple_omp_edges caller. Call
28507 handle_abnormal_edges.
28508 (make_abnormal_goto_edges): Remove.
28509 * tree-cfg.h (make_abnormal_goto_edges): Remove.
28510 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
28511 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
28512 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
28513 * internal-fn.def (ABNORMAL_DISPATCHER): New.
28514 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
28515 filling *region also set *region_idx to (*region)->entry->index.
28516
28517 PR other/58712
28518 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
28519 For REGs set ORIGINAL_REGNO.
28520
28521 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
28522
28523 * doc/md.texi: Mention that a target shouldn't implement
28524 vec_widen_(s|u)mul_even/odd pair if it is less efficient
28525 than hi/lo pair.
28526
28527 2014-01-29 Jakub Jelinek <jakub@redhat.com>
28528
28529 PR tree-optimization/59594
28530 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
28531 a copy of the datarefs vector rather than the vector itself.
28532
28533 2014-01-28 Jason Merrill <jason@redhat.com>
28534
28535 PR c++/53756
28536 * dwarf2out.c (auto_die): New static.
28537 (gen_type_die_with_usage): Handle C++1y 'auto'.
28538 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
28539 on definition.
28540
28541 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
28542
28543 PR target/59672
28544 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
28545 (SPEC_X32): Likewise.
28546 (SPEC_64): Likewise.
28547 * config/i386/i386.c (ix86_option_override_internal): Turn off
28548 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
28549 for TARGET_16BIT.
28550 (x86_file_start): Output .code16gcc for TARGET_16BIT.
28551 * config/i386/i386.h (TARGET_16BIT): New macro.
28552 (TARGET_16BIT_P): Likewise.
28553 * config/i386/i386.opt: Add m16.
28554 * doc/invoke.texi: Document -m16.
28555
28556 2014-01-28 Jakub Jelinek <jakub@redhat.com>
28557
28558 PR preprocessor/59935
28559 * input.c (location_get_source_line): Bail out on when line number
28560 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
28561
28562 2014-01-28 Richard Biener <rguenther@suse.de>
28563
28564 PR tree-optimization/58742
28565 * tree-ssa-forwprop.c (associate_plusminus): Handle
28566 pointer subtraction of the form (T)(P + A) - (T)P.
28567
28568 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28569
28570 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
28571 at const_int_cost.
28572
28573 2014-01-28 Richard Biener <rguenther@suse.de>
28574
28575 Revert
28576 2014-01-28 Richard Biener <rguenther@suse.de>
28577
28578 PR rtl-optimization/45364
28579 PR rtl-optimization/59890
28580 * var-tracking.c (local_get_addr_clear_given_value): Handle
28581 already cleared slot.
28582 (val_reset): Handle not allocated local_get_addr_cache.
28583 (vt_find_locations): Use post-order on the inverted CFG.
28584
28585 2014-01-28 Richard Biener <rguenther@suse.de>
28586
28587 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
28588
28589 2014-01-28 Richard Biener <rguenther@suse.de>
28590
28591 PR rtl-optimization/45364
28592 PR rtl-optimization/59890
28593 * var-tracking.c (local_get_addr_clear_given_value): Handle
28594 already cleared slot.
28595 (val_reset): Handle not allocated local_get_addr_cache.
28596 (vt_find_locations): Use post-order on the inverted CFG.
28597
28598 2014-01-28 Alan Modra <amodra@gmail.com>
28599
28600 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
28601 * configure.ac <recursive call for build != host>: Define
28602 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
28603 and LD_FOR_BUILD too.
28604 * configure: Regenerate.
28605
28606 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
28607
28608 * config/i386/i386.c (get_builtin_code_for_version): Separate
28609 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
28610 Broadwell from Haswell.
28611
28612 2014-01-27 Steve Ellcey <sellcey@mips.com>
28613
28614 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
28615 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
28616 * config/mips/mips.c (mips_option_override): Change setting
28617 of TARGET_DSP.
28618 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
28619 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
28620 Change from Mask to Var.
28621
28622 2014-01-27 Jeff Law <law@redhat.com>
28623
28624 * ipa-inline.c (inline_small_functions): Fix typo.
28625
28626 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
28627
28628 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
28629 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
28630 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
28631 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
28632 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
28633 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
28634 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
28635 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
28636 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
28637 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
28638 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
28639 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
28640 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
28641 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
28642 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
28643 (_mm512_storeu_epi64): Ditto.
28644 (_mm512_cmpge_epi32_mask): Ditto.
28645 (_mm512_cmpge_epu32_mask): Ditto.
28646 (_mm512_cmpge_epi64_mask): Ditto.
28647 (_mm512_cmpge_epu64_mask): Ditto.
28648 (_mm512_cmple_epi32_mask): Ditto.
28649 (_mm512_cmple_epu32_mask): Ditto.
28650 (_mm512_cmple_epi64_mask): Ditto.
28651 (_mm512_cmple_epu64_mask): Ditto.
28652 (_mm512_cmplt_epi32_mask): Ditto.
28653 (_mm512_cmplt_epu32_mask): Ditto.
28654 (_mm512_cmplt_epi64_mask): Ditto.
28655 (_mm512_cmplt_epu64_mask): Ditto.
28656 (_mm512_cmpneq_epi32_mask): Ditto.
28657 (_mm512_cmpneq_epu32_mask): Ditto.
28658 (_mm512_cmpneq_epi64_mask): Ditto.
28659 (_mm512_cmpneq_epu64_mask): Ditto.
28660 (_mm512_expand_pd): Ditto.
28661 (_mm512_expand_ps): Ditto.
28662 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
28663 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
28664 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
28665 * config/i386/i386.c (ix86_builtins): Add
28666 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
28667 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
28668 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
28669 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
28670 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
28671 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
28672 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
28673 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
28674 IX86_BUILTIN_PMOVUSQW512_MEM.
28675 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
28676 __builtin_ia32_pmovsqd512mem_mask,
28677 __builtin_ia32_pmovqd512mem_mask,
28678 __builtin_ia32_pmovusqw512mem_mask,
28679 __builtin_ia32_pmovsqw512mem_mask,
28680 __builtin_ia32_pmovqw512mem_mask,
28681 __builtin_ia32_pmovusdw512mem_mask,
28682 __builtin_ia32_pmovsdw512mem_mask,
28683 __builtin_ia32_pmovdw512mem_mask,
28684 __builtin_ia32_pmovqb512mem_mask,
28685 __builtin_ia32_pmovusqb512mem_mask,
28686 __builtin_ia32_pmovsqb512mem_mask,
28687 __builtin_ia32_pmovusdb512mem_mask,
28688 __builtin_ia32_pmovsdb512mem_mask,
28689 __builtin_ia32_pmovdb512mem_mask.
28690 (bdesc_args): Add __builtin_ia32_expanddf512,
28691 __builtin_ia32_expandsf512.
28692 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
28693 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
28694 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
28695 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
28696 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
28697 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
28698 (avx512f_<code>v8div16qi2_mask_store): This.
28699 (avx512f_expand<mode>): New.
28700
28701 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
28702
28703 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
28704 New.
28705 (_mm512_mask_prefetch_i64gather_pd): Ditto.
28706 (_mm512_prefetch_i32scatter_pd): Ditto.
28707 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
28708 (_mm512_prefetch_i64scatter_pd): Ditto.
28709 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
28710 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
28711 (_mm512_mask_prefetch_i64gather_ps): Ditto.
28712 (_mm512_prefetch_i32scatter_ps): Ditto.
28713 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
28714 (_mm512_prefetch_i64scatter_ps): Ditto.
28715 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
28716 * config/i386/i386-builtin-types.def: Define
28717 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
28718 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
28719 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
28720 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
28721 IX86_BUILTIN_SCATTERPFQPD.
28722 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
28723 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
28724 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
28725 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
28726 __builtin_ia32_scatterpfqps.
28727 (ix86_expand_builtin): Expand new built-ins.
28728 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
28729 fix memory access data type.
28730 (*avx512pf_gatherpf<mode>_mask): Ditto.
28731 (*avx512pf_gatherpf<mode>): Ditto.
28732 (avx512pf_scatterpf<mode>): Ditto.
28733 (*avx512pf_scatterpf<mode>_mask): Ditto.
28734 (*avx512pf_scatterpf<mode>): Ditto.
28735 (GATHER_SCATTER_SF_MEM_MODE): New.
28736 (avx512pf_gatherpf<mode>df): Ditto.
28737 (*avx512pf_gatherpf<mode>df_mask): Ditto.
28738 (*avx512pf_scatterpf<mode>df): Ditto.
28739
28740 2014-01-27 Jakub Jelinek <jakub@redhat.com>
28741
28742 PR bootstrap/59934
28743 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
28744 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
28745 reached.
28746
28747 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
28748
28749 * common/config/arm/arm-common.c
28750 (arm_rewrite_mcpu): Handle multiple names.
28751 * config/arm/arm.h
28752 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
28753
28754 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
28755
28756 * gimple-builder.h (create_gimple_tmp): Delete.
28757
28758 2014-01-27 Christian Bruel <christian.bruel@st.com>
28759
28760 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
28761 words comparisons.
28762
28763 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
28764
28765 * config/pa/pa.md (call): Generate indirect long calls to non-local
28766 functions when outputing 32-bit code.
28767 (call_value): Likewise except for special call to buggy powf function.
28768
28769 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
28770 portable runtime and PIC indirect calls.
28771 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
28772 and PIC call sequences. Use ldo instead of blr to set return register
28773 in PIC call sequence.
28774
28775 2014-01-25 Walter Lee <walt@tilera.com>
28776
28777 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
28778 avoid clobbering a live register.
28779
28780 2014-01-25 Walter Lee <walt@tilera.com>
28781
28782 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
28783 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
28784 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
28785 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
28786
28787 2014-01-25 Walter Lee <walt@tilera.com>
28788
28789 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
28790 arguments on even registers.
28791 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
28792 STACK_BOUNDARY.
28793 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
28794 (BIGGEST_ALIGNMENT): Ditto.
28795 (BIGGEST_FIELD_ALIGNMENT): Ditto.
28796
28797 2014-01-25 Walter Lee <walt@tilera.com>
28798
28799 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
28800 insns before bundling.
28801 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
28802
28803 2014-01-25 Walter Lee <walt@tilera.com>
28804
28805 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
28806 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
28807 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
28808
28809 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
28810
28811 * config/mips/constraints.md (kl): Delete.
28812 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
28813 define expands, using...
28814 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
28815 instructions for MIPS16.
28816 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
28817 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
28818
28819 2014-01-25 Walter Lee <walt@tilera.com>
28820
28821 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
28822 (clzdi2): Ditto.
28823 (ffsdi2): Ditto.
28824
28825 2014-01-25 Walter Lee <walt@tilera.com>
28826
28827 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
28828 (TARGET_EXPAND_TO_RTL_HOOK): Define.
28829
28830 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
28831
28832 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
28833 Handle XOR.
28834
28835 2014-01-25 Jakub Jelinek <jakub@redhat.com>
28836
28837 * print-rtl.c (in_call_function_usage): New var.
28838 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
28839 EXPR_LIST mode as mode and not as reg note name.
28840
28841 PR middle-end/59561
28842 * cfgloopmanip.c (copy_loop_info): If
28843 loop->warned_aggressive_loop_optimizations, make sure
28844 the flag is set in target loop too.
28845
28846 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
28847
28848 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
28849 flag_cilkplus.
28850 * builtins.def: Likewise.
28851 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
28852 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
28853 * ira.c (ira_setup_eliminable_regset): Likewise.
28854 * omp-low.c (gate_expand_omp): Likewise.
28855 (execute_lower_omp): Likewise.
28856 (diagnose_sb_0): Likewise.
28857 (gate_diagnose_omp_blocks): Likewise.
28858 (simd_clone_clauses_extract): Likewise.
28859 (gate): Likewise.
28860
28861 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28862
28863 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
28864 correction for little endian...
28865 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
28866 here.
28867
28868 2014-01-24 Jeff Law <law@redhat.com>
28869
28870 PR tree-optimization/59919
28871 * tree-vrp.c (find_assert_locations_1): Do not register asserts
28872 for non-returning calls.
28873
28874 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
28875
28876 * common/config/aarch64/aarch64-common.c
28877 (aarch64_rewrite_mcpu): Handle multiple names.
28878 * config/aarch64/aarch64.h
28879 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
28880
28881 2014-01-24 Dodji Seketeli <dodji@redhat.com>
28882
28883 * input.c (add_file_to_cache_tab): Handle the case where fopen
28884 returns NULL.
28885
28886 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
28887
28888 PR target/59929
28889 * config/i386/i386.md (pushsf splitter): Get stack adjustment
28890 from push operand if code of push isn't PRE_DEC.
28891
28892 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
28893
28894 PR target/59909
28895 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
28896 -mquad-memory-atomic. Update -mquad-memory documentation to say
28897 it is only used for non-atomic loads/stores.
28898
28899 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
28900 -mquad-memory or -mquad-memory-atomic switches.
28901
28902 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
28903 -mquad-memory-atomic to ISA 2.07 support.
28904
28905 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
28906 to separate support of normal quad word memory operations (ldq, stq)
28907 from the atomic quad word memory operations.
28908
28909 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
28910 support to separate non-atomic quad word operations from atomic
28911 quad word operations. Disable non-atomic quad word operations in
28912 little endian mode so that we don't have to swap words after the
28913 load and before the store.
28914 (quad_load_store_p): Add comment about atomic quad word support.
28915 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
28916 options printed with -mdebug=reg.
28917
28918 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
28919 -mquad-memory-atomic as the test for whether we have quad word
28920 atomic instructions.
28921 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
28922 or -mp8-vector are used, allow byte/half-word atomic operations.
28923
28924 * config/rs6000/sync.md (load_lockedti): Insure that the address
28925 is a proper indexed or indirect address for the lqarx instruction.
28926 On little endian systems, swap the hi/lo registers after the lqarx
28927 instruction.
28928 (load_lockedpti): Use indexed_or_indirect_operand predicate to
28929 insure the address is valid for the lqarx instruction.
28930 (store_conditionalti): Insure that the address is a proper indexed
28931 or indirect address for the stqcrx. instruction. On little endian
28932 systems, swap the hi/lo registers before doing the stqcrx.
28933 instruction.
28934 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
28935 insure the address is valid for the stqcrx. instruction.
28936
28937 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
28938 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
28939 type of quad memory support is available.
28940
28941 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
28942
28943 PR regression/59915
28944 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
28945 there is a danger of looping.
28946
28947 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
28948
28949 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
28950 force flag_ira_loop_pressure if set via command line.
28951
28952 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
28953
28954 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
28955 (ashr_simd): New builtin handling DI mode.
28956 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
28957 (aarch64_sshr_simddi): New match pattern.
28958 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
28959 (vshrd_n_s64): Likewise.
28960 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
28961
28962 2014-01-23 Nick Clifton <nickc@redhat.com>
28963
28964 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
28965 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
28966 favour of mcu specific scripts.
28967 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
28968 430x multilibs.
28969
28970 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
28971 Alex Velenko <Alex.Velenko@arm.com>
28972
28973 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
28974 (vaddv_s16): Likewise.
28975 (vaddv_s32): Likewise.
28976 (vaddv_u8): Likewise.
28977 (vaddv_u16): Likewise.
28978 (vaddv_u32): Likewise.
28979 (vaddvq_s8): Likewise.
28980 (vaddvq_s16): Likewise.
28981 (vaddvq_s32): Likewise.
28982 (vaddvq_s64): Likewise.
28983 (vaddvq_u8): Likewise.
28984 (vaddvq_u16): Likewise.
28985 (vaddvq_u32): Likewise.
28986 (vaddvq_u64): Likewise.
28987 (vaddv_f32): Likewise.
28988 (vaddvq_f32): Likewise.
28989 (vaddvq_f64): Likewise.
28990 (vmaxv_f32): Likewise.
28991 (vmaxv_s8): Likewise.
28992 (vmaxv_s16): Likewise.
28993 (vmaxv_s32): Likewise.
28994 (vmaxv_u8): Likewise.
28995 (vmaxv_u16): Likewise.
28996 (vmaxv_u32): Likewise.
28997 (vmaxvq_f32): Likewise.
28998 (vmaxvq_f64): Likewise.
28999 (vmaxvq_s8): Likewise.
29000 (vmaxvq_s16): Likewise.
29001 (vmaxvq_s32): Likewise.
29002 (vmaxvq_u8): Likewise.
29003 (vmaxvq_u16): Likewise.
29004 (vmaxvq_u32): Likewise.
29005 (vmaxnmv_f32): Likewise.
29006 (vmaxnmvq_f32): Likewise.
29007 (vmaxnmvq_f64): Likewise.
29008 (vminv_f32): Likewise.
29009 (vminv_s8): Likewise.
29010 (vminv_s16): Likewise.
29011 (vminv_s32): Likewise.
29012 (vminv_u8): Likewise.
29013 (vminv_u16): Likewise.
29014 (vminv_u32): Likewise.
29015 (vminvq_f32): Likewise.
29016 (vminvq_f64): Likewise.
29017 (vminvq_s8): Likewise.
29018 (vminvq_s16): Likewise.
29019 (vminvq_s32): Likewise.
29020 (vminvq_u8): Likewise.
29021 (vminvq_u16): Likewise.
29022 (vminvq_u32): Likewise.
29023 (vminnmv_f32): Likewise.
29024 (vminnmvq_f32): Likewise.
29025 (vminnmvq_f64): Likewise.
29026
29027 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
29028
29029 * config/aarch64/aarch64-simd.md
29030 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
29031 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
29032 (*aarch64_mul3_elt<mode>): Likewise.
29033 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
29034 (*aarch64_mul3_elt_to_64v2df): Likewise.
29035 (*aarch64_mla_elt<mode>): Likewise.
29036 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
29037 (*aarch64_mls_elt<mode>): Likewise.
29038 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
29039 (*aarch64_fma4_elt<mode>): Likewise.
29040 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
29041 (*aarch64_fma4_elt_to_64v2df): Likewise.
29042 (*aarch64_fnma4_elt<mode>): Likewise.
29043 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
29044 (*aarch64_fnma4_elt_to_64v2df): Likewise.
29045 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
29046 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
29047 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
29048 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
29049 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
29050 (aarch64_sqdmull_lane<mode>_internal): Likewise.
29051 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
29052
29053 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
29054
29055 * config/aarch64/aarch64-simd.md
29056 (aarch64_be_checked_get_lane<mode>): New define_expand.
29057 * config/aarch64/aarch64-simd-builtins.def
29058 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
29059 New builtin definition.
29060 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
29061 Use new safe be builtin.
29062
29063 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
29064
29065 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
29066 New define_insn.
29067 (aarch64_be_st1<mode>): Likewise.
29068 (aarch_ld1<VALL:mode>): Define_expand modified.
29069 (aarch_st1<VALL:mode>): Likewise.
29070 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
29071 (UNSPEC_ST1): Likewise.
29072
29073 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
29074
29075 * config/microblaze/microblaze.md: Add trap insn and attribute
29076
29077 2014-01-23 Dodji Seketeli <dodji@redhat.com>
29078
29079 PR preprocessor/58580
29080 * input.h (location_get_source_line): Take an additional line_size
29081 parameter.
29082 (void diagnostics_file_cache_fini): Declare new function.
29083 * input.c (struct fcache): New type.
29084 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
29085 New static constants.
29086 (diagnostic_file_cache_init, total_lines_num)
29087 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
29088 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
29089 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
29090 (get_next_line, read_next_line, goto_next_line, read_line_num):
29091 New static function definitions.
29092 (diagnostic_file_cache_fini): New function.
29093 (location_get_source_line): Take an additional output line_len
29094 parameter. Re-write using lookup_or_add_file_to_cache_tab and
29095 read_line_num.
29096 * diagnostic.c (diagnostic_finish): Call
29097 diagnostic_file_cache_fini.
29098 (adjust_line): Take an additional input parameter for the length
29099 of the line, rather than calculating it with strlen.
29100 (diagnostic_show_locus): Adjust the use of
29101 location_get_source_line and adjust_line with respect to their new
29102 signature. While displaying a line now, do not stop at the first
29103 null byte. Rather, display the zero byte as a space and keep
29104 going until we reach the size of the line.
29105 * Makefile.in: Add vec.o to OBJS-libcommon
29106
29107 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
29108 Ilya Tocar <ilya.tocar@intel.com>
29109
29110 * config/i386/avx512fintrin.h (_mm512_kmov): New.
29111 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
29112 (__builtin_ia32_kmov16): Ditto.
29113 * config/i386/i386.md (UNSPEC_KMOV): New.
29114 (kmovw): Ditto.
29115
29116 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
29117
29118 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
29119 (_mm512_storeu_si512): Ditto.
29120
29121 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
29122
29123 PR target/52125
29124 * rtl.h (get_referenced_operands): Declare.
29125 * recog.c (get_referenced_operands): New function.
29126 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
29127 operands have been referenced when recording LO_SUM references.
29128
29129 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
29130
29131 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
29132
29133 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
29134
29135 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
29136 Enable for generic and recent AMD targets.
29137
29138 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
29139
29140 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
29141 ARG_SIZE note when adjustment was eliminated.
29142
29143 2014-01-22 Jeff Law <law@redhat.com>
29144
29145 PR tree-optimization/59597
29146 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
29147 in file. Accept new argument REGISTERING and use it to modify
29148 dump output appropriately.
29149 (register_jump_thread): Corresponding changes.
29150 (mark_threaded_blocks): Reinstate code to cancel unprofitable
29151 thread paths involving joiner blocks. Add code to dump cancelled
29152 jump threading paths.
29153
29154 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
29155
29156 PR rtl-optimization/59477
29157 * lra-constraints.c (inherit_in_ebb): Process call for living hard
29158 regs. Update reloads_num and potential_reload_hard_regs for all insns.
29159
29160 2014-01-22 Tom Tromey <tromey@redhat.com>
29161
29162 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
29163 PARAMS.
29164 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
29165
29166 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
29167
29168 PR rtl-optimization/59896
29169 * lra-constraints.c (process_alt_operands): Check unused note for
29170 matched operands of insn with no output reloads.
29171
29172 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
29173
29174 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
29175 (mips_move_from_gpr_cost): Likewise.
29176
29177 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
29178
29179 PR rtl-optimization/59858
29180 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
29181 ira_class_hard_regs_num.
29182 (process_alt_operands): Increase reject for dying matched operand.
29183
29184 2014-01-21 Jakub Jelinek <jakub@redhat.com>
29185
29186 PR target/59003
29187 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
29188 smaller than size, perform several stores or loads and stores
29189 at dst + count - size to store or copy all of size bytes, rather
29190 than just last modesize bytes.
29191
29192 2014-01-20 DJ Delorie <dj@redhat.com>
29193
29194 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
29195 that CLOBBERs are REGs before propogating their values.
29196
29197 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
29198
29199 PR middle-end/59789
29200 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
29201 (cgraph_inline_failed_type): New function.
29202 * cgraph.h (DEFCIFCODE): Add type.
29203 (cgraph_inline_failed_type_t): New enum.
29204 (cgraph_inline_failed_type): New prototype.
29205 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
29206 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
29207 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
29208 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
29209 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
29210 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
29211 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
29212 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
29213 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
29214 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
29215 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
29216 OPTIMIZATION_MISMATCH.
29217 * tree-inline.c (expand_call_inline): Emit errors during
29218 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
29219
29220 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
29221
29222 PR target/59685
29223 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
29224 mode attribute in insn output.
29225
29226 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
29227
29228 * output.h (output_constant): Delete.
29229 * varasm.c (output_constant): Make private.
29230
29231 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
29232
29233 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
29234
29235 2014-01-20 Jakub Jelinek <jakub@redhat.com>
29236
29237 PR middle-end/59860
29238 * tree.h (fold_builtin_strcat): New prototype.
29239 * builtins.c (fold_builtin_strcat): No longer static. Add len
29240 argument, if non-NULL, don't call c_strlen. Optimize
29241 directly into __builtin_memcpy instead of __builtin_strcpy.
29242 (fold_builtin_2): Adjust fold_builtin_strcat caller.
29243 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
29244
29245 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
29246
29247 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29248 for SImode_address_operand operands, having only a REG argument.
29249
29250 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
29251
29252 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
29253 loader name using mbig-endian.
29254 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
29255
29256 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
29257
29258 * doc/invoke.texi (-march): Clarify documentation for AArch64.
29259 (-mtune): Likewise.
29260 (-mcpu): Likewise.
29261
29262 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
29263
29264 * config/aarch64/aarch64-protos.h
29265 (aarch64_cannot_change_mode_class_ptr): Declare.
29266 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
29267 aarch64_cannot_change_mode_class_ptr): New.
29268 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
29269 backend hook aarch64_cannot_change_mode_class.
29270
29271 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
29272
29273 * common/config/aarch64/aarch64-common.c
29274 (aarch64_handle_option): Don't handle any option order logic here.
29275 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
29276 selected_cpu, warn on architecture version mismatch.
29277 (aarch64_override_options): Fix parsing order for option strings.
29278
29279 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29280 Iain Sandoe <iain@codesourcery.com>
29281
29282 PR bootstrap/59496
29283 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
29284 warning. Amend comment to reflect current functionality.
29285
29286 2014-01-20 Richard Biener <rguenther@suse.de>
29287
29288 PR middle-end/59860
29289 * builtins.c (fold_builtin_strcat): Remove case better handled
29290 by tree-ssa-strlen.c.
29291
29292 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
29293
29294 * config/aarch64/aarch64.opt
29295 (mcpu, march, mtune): Make case-insensitive.
29296
29297 2014-01-20 Jakub Jelinek <jakub@redhat.com>
29298
29299 PR target/59880
29300 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29301 if operands[1] is a REG or ZERO_EXTEND of a REG.
29302
29303 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
29304
29305 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
29306
29307 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
29308
29309 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
29310 long non-pic millicode calls.
29311
29312 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29313
29314 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
29315
29316 2014-01-19 Kito Cheng <kito@0xlab.org>
29317
29318 * builtins.c (expand_movstr): Check movstr expand done or fail.
29319
29320 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29321 H.J. Lu <hongjiu.lu@intel.com>
29322
29323 PR target/59379
29324 * config/i386/i386.md (*lea<mode>): Zero-extend return register
29325 to DImode for zero-extended addresses.
29326
29327 2014-01-19 Jakub Jelinek <jakub@redhat.com>
29328
29329 PR rtl-optimization/57763
29330 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
29331 on the new indirect jump_insn and increment LABEL_NUSES (label).
29332
29333 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
29334
29335 PR bootstrap/59580
29336 PR bootstrap/59583
29337 * config.gcc (x86_archs): New variable.
29338 (x86_64_archs): Likewise.
29339 (x86_cpus): Likewise.
29340 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
29341 --with-arch/--with-cpu= options.
29342 Support --with-arch=/--with-cpu={nehalem,westmere,
29343 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
29344
29345 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29346
29347 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
29348 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
29349
29350 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29351
29352 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
29353
29354 2014-01-18 Jakub Jelinek <jakub@redhat.com>
29355
29356 PR target/58944
29357 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
29358 clear cpp_get_options (parse_in)->warn_unused_macros for
29359 ix86_target_macros_internal with cpp_define.
29360
29361 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
29362
29363 * jump.c (delete_related_insns): Keep (use (insn))s.
29364 * reorg.c (redundant_insn): Check for barriers too.
29365
29366 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29367
29368 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
29369
29370 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
29371
29372 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
29373 call to $$dyncall when TARGET_LONG_CALLS is true.
29374
29375 2014-01-17 Jeff Law <law@redhat.com>
29376
29377 * ree.c (combine_set_extension): Temporarily disable test for
29378 changing number of hard registers.
29379
29380 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
29381
29382 PR middle-end/58125
29383 * ipa-inline-analysis.c (inline_free_summary):
29384 Do not free summary of aliases.
29385
29386 2014-01-17 Jakub Jelinek <jakub@redhat.com>
29387
29388 PR middle-end/59706
29389 * gimplify.c (gimplify_expr): Use create_tmp_var
29390 instead of create_tmp_var_raw. If cond doesn't have
29391 integral type, don't add the IFN_ANNOTATE builtin at all.
29392
29393 2014-01-17 Martin Jambor <mjambor@suse.cz>
29394
29395 PR ipa/59736
29396 * ipa-cp.c (prev_edge_clone): New variable.
29397 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
29398 Also resize prev_edge_clone vector.
29399 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
29400 (ipcp_edge_removal_hook): New function.
29401 (ipcp_driver): Register ipcp_edge_removal_hook.
29402
29403 2014-01-17 Andrew Pinski <apinski@cavium.com>
29404 Steve Ellcey <sellcey@mips.com>
29405
29406 PR target/59462
29407 * config/mips/mips.c (mips_print_operand): Check operand mode instead
29408 of operator mode.
29409
29410 2014-01-17 Jeff Law <law@redhat.com>
29411
29412 PR middle-end/57904
29413 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
29414 so that pass_ccp runs first.
29415
29416 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29417
29418 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
29419 (ix86_adjust_cost): Use !TARGET_XXX.
29420 (do_reorder_for_imul): Likewise.
29421 (swap_top_of_ready_list): Likewise.
29422 (ix86_sched_reorder): Likewise.
29423
29424 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29425
29426 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29427 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
29428 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
29429 (intel_memset): New. Duplicate slm_memset.
29430 (intel_cost): New. Duplicate slm_cost.
29431 (m_INTEL): New macro.
29432 (processor_target_table): Add "intel".
29433 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
29434 with PROCESSOR_INTEL for "intel".
29435 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
29436 PROCESSOR_SILVERMONT.
29437 (ix86_issue_rate): Likewise.
29438 (ix86_adjust_cost): Likewise.
29439 (ia32_multipass_dfa_lookahead): Likewise.
29440 (swap_top_of_ready_list): Likewise.
29441 (ix86_sched_reorder): Likewise.
29442 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
29443 instead of TARGET_OPT_AGU.
29444 * config/i386/i386.h (TARGET_INTEL): New.
29445 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
29446 (processor_type): Add PROCESSOR_INTEL.
29447 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
29448 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
29449
29450 2014-01-17 Marek Polacek <polacek@redhat.com>
29451
29452 PR c/58346
29453 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
29454 size is zero.
29455
29456 2014-01-17 Richard Biener <rguenther@suse.de>
29457
29458 PR tree-optimization/46590
29459 * opts.c (default_options_table): Add entries for
29460 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
29461 all enabled at -O1 but not for -Og.
29462 * common.opt (fbranch-count-reg): Remove Init(1).
29463 (fmove-loop-invariants): Likewise.
29464 (ftree-pta): Likewise.
29465
29466 2014-01-17 Jakub Jelinek <jakub@redhat.com>
29467
29468 * config/i386/i386.c (ix86_data_alignment): For compatibility with
29469 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
29470 decls to at least the GCC 4.8 used alignments.
29471
29472 PR fortran/59440
29473 * tree-nested.c (convert_nonlocal_reference_stmt,
29474 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
29475 of GIMPLE_BIND stmts, adjust associated decls.
29476
29477 2014-01-17 Richard Biener <rguenther@suse.de>
29478
29479 PR tree-optimization/46590
29480 * vec.h (vec<>::bseach): New member function implementing
29481 binary search according to C89 bsearch.
29482 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
29483 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
29484 bitmap pointer again. Make accesses_in_loop a flat array.
29485 (mem_ref_obstack): New global.
29486 (outermost_indep_loop): Adjust for mem_ref->stored changes.
29487 (mark_ref_stored): Likewise.
29488 (ref_indep_loop_p_2): Likewise.
29489 (set_ref_stored_in_loop): New helper function.
29490 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
29491 (memref_free): Adjust.
29492 (record_mem_ref_loc): Simplify.
29493 (gather_mem_refs_stmt): Adjust.
29494 (sort_locs_in_loop_postorder_cmp): New function.
29495 (analyze_memory_references): Sort accesses_in_loop after
29496 loop postorder number.
29497 (find_ref_loc_in_loop_cmp): New function.
29498 (for_all_locs_in_loop): Find relevant cluster of locs in
29499 accesses_in_loop and iterate without recursion.
29500 (execute_sm): Avoid uninit warning.
29501 (struct ref_always_accessed): Simplify.
29502 (ref_always_accessed::operator ()): Likewise.
29503 (ref_always_accessed_p): Likewise.
29504 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
29505 loop postorder numbers here.
29506 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
29507 numbers.
29508
29509 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
29510
29511 PR c++/57945
29512 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
29513 on decls for which assemble_alias has been called.
29514
29515 2014-01-17 Nick Clifton <nickc@redhat.com>
29516
29517 * config/msp430/msp430.opt: (mcpu): New option.
29518 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
29519 (msp430_option_override): Parse target_cpu. If the MCU name
29520 matches a generic string, clear target_mcu.
29521 (msp430_attr): Allow numeric interrupt values up to 63.
29522 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
29523 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
29524 option.
29525 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
29526 Add mcpu matches.
29527 * config/msp430/msp430.md (popm): Use %J rather than %I.
29528 (addsi3): Use msp430_nonimmediate_operand for operand 2.
29529 (addhi_cy_i): Use immediate_operand for operand 2.
29530 * doc/invoke.texi: Document -mcpu option.
29531
29532 2014-01-17 Richard Biener <rguenther@suse.de>
29533
29534 PR rtl-optimization/38518
29535 * df.h (df_analyze_loop): Declare.
29536 * df-core.c: Include cfgloop.h.
29537 (df_analyze_1): Split out main part of df_analyze.
29538 (df_analyze): Adjust.
29539 (loop_inverted_post_order_compute): New function.
29540 (loop_post_order_compute): Likewise.
29541 (df_analyze_loop): New function avoiding whole-function
29542 postorder computes.
29543 * loop-invariant.c (find_defs): Use df_analyze_loop.
29544 (find_invariants): Adjust.
29545 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
29546
29547 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
29548
29549 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
29550 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
29551
29552 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
29553
29554 * ipa-ref.c (ipa_remove_stmt_references): Fix references
29555 traversal when removing references.
29556
29557 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
29558
29559 PR ipa/59775
29560 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
29561
29562 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
29563
29564 PR middle-end/56791
29565 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
29566 pushing a reload for an autoinc when we had previously reloaded an
29567 inner part of the address.
29568
29569 2014-01-16 Jakub Jelinek <jakub@redhat.com>
29570
29571 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
29572 field.
29573 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
29574 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
29575 when not giving up or versioning for alias only because of
29576 loop->safelen.
29577 (vect_analyze_data_ref_dependences): Set to true.
29578 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
29579 is a GIMPLE_PHI.
29580 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
29581 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
29582 to the condition.
29583
29584 PR middle-end/58344
29585 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
29586
29587 PR target/59839
29588 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
29589 operand 0 predicate for gathers, use a new pseudo as subtarget.
29590
29591 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
29592
29593 PR middle-end/59609
29594 * lra-constraints.c (process_alt_operands): Add printing debug info.
29595 Check absence of input/output reloads for matched operands too.
29596
29597 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
29598
29599 PR rtl-optimization/59835
29600 * ira.c (ira_init_register_move_cost): Increase cost for
29601 impossible modes.
29602
29603 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
29604
29605 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
29606
29607 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
29608
29609 PR target/59780
29610 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
29611 non-register objects. Use gen_(high/low)part more consistently.
29612 Fix assertions.
29613
29614 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
29615
29616 PR target/59844
29617 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
29618 endian support, remove tests for WORDS_BIG_ENDIAN.
29619 (p8_mfvsrd_3_<mode>): Likewise.
29620 (reload_gpr_from_vsx<mode>): Likewise.
29621 (reload_gpr_from_vsxsf): Likewise.
29622 (p8_mfvsrd_4_disf): Likewise.
29623
29624 2014-01-16 Richard Biener <rguenther@suse.de>
29625
29626 PR rtl-optimization/46590
29627 * lcm.c (compute_antinout_edge): Use postorder iteration.
29628 (compute_laterin): Use inverted postorder iteration.
29629
29630 2014-01-16 Nick Clifton <nickc@redhat.com>
29631
29632 PR middle-end/28865
29633 * varasm.c (output_constant): Return the number of bytes actually
29634 emitted.
29635 (output_constructor_array_range): Update the field size with the
29636 number of bytes emitted by output_constant.
29637 (output_constructor_regular_field): Likewise. Also do not
29638 complain if the total number of bytes emitted is now greater
29639 than the expected fieldpos.
29640 * output.h (output_constant): Update prototype and descriptive comment.
29641
29642 2014-01-16 Marek Polacek <polacek@redhat.com>
29643
29644 PR middle-end/59827
29645 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
29646 it is error_mark_node.
29647
29648 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
29649
29650 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
29651 VALID_AVX256_REG_OR_OI_MODE.
29652
29653 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
29654
29655 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
29656 current procedure should be profiled.
29657
29658 2014-01-15 Andrew Pinski <apinski@cavium.com>
29659
29660 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
29661 of moving from/to the STACK_REG register class.
29662
29663 2014-01-15 Richard Henderson <rth@redhat.com>
29664
29665 PR debug/54694
29666 * reginfo.c (global_regs_decl): Globalize.
29667 * rtl.h (global_regs_decl): Declare.
29668 * ira.c (do_reload): Diagnose frame_pointer_needed and it
29669 reserved via global_regs.
29670
29671 2014-01-15 Teresa Johnson <tejohnson@google.com>
29672
29673 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
29674
29675 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
29676
29677 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
29678 and vmulosh rather than call gen_vec_widen_smult_*.
29679 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
29680 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
29681 (vec_widen_smult_even_v16qi): Likewise.
29682 (vec_widen_umult_even_v8hi): Likewise.
29683 (vec_widen_smult_even_v8hi): Likewise.
29684 (vec_widen_umult_odd_v16qi): Likewise.
29685 (vec_widen_smult_odd_v16qi): Likewise.
29686 (vec_widen_umult_odd_v8hi): Likewise.
29687 (vec_widen_smult_odd_v8hi): Likewise.
29688 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
29689 vmuloub rather than call gen_vec_widen_umult_*.
29690 (vec_widen_umult_lo_v16qi): Likewise.
29691 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
29692 vmulosb rather than call gen_vec_widen_smult_*.
29693 (vec_widen_smult_lo_v16qi): Likewise.
29694 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
29695 rather than call gen_vec_widen_umult_*.
29696 (vec_widen_umult_lo_v8hi): Likewise.
29697 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
29698 rather than call gen_vec_widen_smult_*.
29699 (vec_widen_smult_lo_v8hi): Likewise.
29700
29701 2014-01-15 Jeff Law <law@redhat.com>
29702
29703 PR tree-optimization/59747
29704 * ree.c (find_and_remove_re): Properly handle case where a second
29705 eliminated extension requires widening a copy created for elimination
29706 of a prior extension.
29707 (combine_set_extension): Ensure that the number of hard regs needed
29708 for a destination register does not change when we widen it.
29709
29710 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
29711
29712 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
29713 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
29714 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
29715 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
29716 (avr-*-rtems*): Likewise.
29717 (bfin*-rtems*): Likewise.
29718 (moxie-*-rtems*): Likewise.
29719 (h8300-*-rtems*): Likewise.
29720 (i[34567]86-*-rtems*): Likewise.
29721 (lm32-*-rtems*): Likewise.
29722 (m32r-*-rtems*): Likewise.
29723 (m68k-*-rtems*): Likewise.
29724 (microblaze*-*-rtems*): Likewise.
29725 (mips*-*-rtems*): Likewise.
29726 (powerpc-*-rtems*): Likewise.
29727 (sh-*-rtems*): Likewise.
29728 (sparc-*-rtems*): Likewise.
29729 (sparc64-*-rtems*): Likewise.
29730 (v850-*-rtems*): Likewise.
29731 (m32c-*-rtems*): Likewise.
29732
29733 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
29734
29735 PR rtl-optimization/59511
29736 * ira.c (ira_init_register_move_cost): Use memory costs for some
29737 cases of register move cost calculations.
29738 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
29739 instead of BB frequency.
29740 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
29741 * lra-assigns.c (find_hard_regno_for): Ditto.
29742
29743 2014-01-15 Richard Biener <rguenther@suse.de>
29744
29745 PR tree-optimization/59822
29746 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
29747 (vectorizable_load): Use it to hoist defs of uses of invariant
29748 loads out of the loop.
29749
29750 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
29751 Kugan Vivekanandarajah <kuganv@linaro.org>
29752
29753 PR target/59695
29754 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
29755 truncation.
29756
29757 2014-01-15 Richard Biener <rguenther@suse.de>
29758
29759 PR rtl-optimization/59802
29760 * lcm.c (compute_available): Use inverted postorder to seed
29761 the initial worklist.
29762
29763 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29764
29765 PR target/59803
29766 * config/s390/s390.c (s390_preferred_reload_class): Don't return
29767 ADDR_REGS for invalid symrefs in non-PIC code.
29768
29769 2014-01-15 Jakub Jelinek <jakub@redhat.com>
29770
29771 PR other/58712
29772 * builtins.c (determine_block_size): Initialize *probable_max_size
29773 even if len_rtx is CONST_INT.
29774
29775 2014-01-14 Andrew Pinski <apinski@cavium.com>
29776
29777 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
29778 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
29779 (cortexa53_tunings): Likewise.
29780 (aarch64_sched_issue_rate): New function.
29781 (TARGET_SCHED_ISSUE_RATE): Define.
29782
29783 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
29784
29785 * ira-costs.c (find_costs_and_classes): Add missed
29786 ira_init_register_move_cost_if_necessary.
29787
29788 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
29789
29790 PR target/59787
29791 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
29792
29793 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
29794
29795 PR target/59794
29796 * config/i386/i386.c (type_natural_mode): Add a bool parameter
29797 to indicate if type is used for function return value. Warn ABI
29798 change if the vector mode isn't available for function return value.
29799 (ix86_function_arg_advance): Pass false to type_natural_mode.
29800 (ix86_function_arg): Likewise.
29801 (ix86_gimplify_va_arg): Likewise.
29802 (function_arg_32): Don't warn ABI change.
29803 (ix86_function_value): Pass true to type_natural_mode.
29804 (ix86_return_in_memory): Likewise.
29805 (ix86_struct_value_rtx): Removed.
29806 (TARGET_STRUCT_VALUE_RTX): Likewise.
29807
29808 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
29809
29810 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
29811 converting a conditional jump into a conditional return.
29812
29813 2014-01-14 Richard Biener <rguenther@suse.de>
29814
29815 PR tree-optimization/58921
29816 PR tree-optimization/59006
29817 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
29818 hoisting invariant stmts.
29819 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
29820 invariant loads on the preheader edge if possible.
29821
29822 2014-01-14 Joey Ye <joey.ye@arm.com>
29823
29824 * doc/plugin.texi (Building GCC plugins): Update to C++.
29825
29826 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
29827
29828 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
29829 (_mm_rcp28_round_ss): Ditto.
29830 (_mm_rsqrt28_round_sd): Ditto.
29831 (_mm_rsqrt28_round_ss): Ditto.
29832 (_mm_rcp28_sd): Ditto.
29833 (_mm_rcp28_ss): Ditto.
29834 (_mm_rsqrt28_sd): Ditto.
29835 (_mm_rsqrt28_ss): Ditto.
29836 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
29837 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
29838 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
29839 (IX86_BUILTIN_RCP28SD): Ditto.
29840 (IX86_BUILTIN_RCP28SS): Ditto.
29841 (IX86_BUILTIN_RSQRT28SD): Ditto.
29842 (IX86_BUILTIN_RSQRT28SS): Ditto.
29843 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
29844 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
29845 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
29846 (ix86_expand_special_args_builtin): Expand new FTYPE.
29847 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
29848 (srcp14<mode>): Make insn unary.
29849 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
29850 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
29851 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
29852 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
29853 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
29854 Fix rounding: make it SAE only.
29855 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
29856 Ditto.
29857 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
29858 Ditto.
29859 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
29860 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
29861 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
29862 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
29863 (round_saeonly_mask_scalar_operand4): Ditto.
29864 (round_saeonly_mask_scalar_op3): Ditto.
29865 (round_saeonly_mask_scalar_op4): Ditto.
29866
29867 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29868
29869 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
29870 Implement -maltivec=be for vec_insert and vec_extract.
29871
29872 2014-01-10 DJ Delorie <dj@redhat.com>
29873
29874 * config/msp430/msp430.md (call_internal): Don't allow memory
29875 references with SP as the base register.
29876 (call_value_internal): Likewise.
29877 * config/msp430/constraints.md (Yc): New. For memory references
29878 that don't use SP as a base register.
29879
29880 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
29881 "an integer without a # prefix"
29882 * config/msp430/msp430.md (epilogue_helper): Use it.
29883
29884 2014-01-13 Jakub Jelinek <jakub@redhat.com>
29885
29886 PR target/59617
29887 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
29888 AVX512F gather builtins.
29889 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
29890 on gather decls with INTEGER_TYPE masktype.
29891 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
29892 directly into the builtin rather than hoisting it before loop.
29893
29894 PR tree-optimization/59387
29895 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
29896 (scev_const_prop): If folded_casts and type has undefined overflow,
29897 use force_gimple_operand instead of force_gimple_operand_gsi and
29898 for each added stmt if it is assign with
29899 arith_code_with_undefined_signed_overflow, call
29900 rewrite_to_defined_overflow.
29901 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
29902 gimple-fold.h instead.
29903 (arith_code_with_undefined_signed_overflow,
29904 rewrite_to_defined_overflow): Moved to ...
29905 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
29906 rewrite_to_defined_overflow): ... here. No longer static.
29907 Include gimplify-me.h.
29908 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
29909 rewrite_to_defined_overflow): New prototypes.
29910
29911 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29912
29913 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
29914
29915 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
29916
29917 * builtins.c (get_object_alignment_2): Minor tweak.
29918 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
29919
29920 2014-01-13 Christian Bruel <christian.bruel@st.com>
29921
29922 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
29923 optimized non constant lengths.
29924
29925 2014-01-13 Jakub Jelinek <jakub@redhat.com>
29926
29927 PR libgomp/59194
29928 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
29929 load as __atomic_load_N if possible.
29930
29931 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
29932
29933 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
29934 target parameter.
29935 (rs6000_expand_builtin): Adjust call.
29936
29937 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
29938
29939 PR target/58115
29940 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
29941 * config/rs6000/rs6000.c: Include target-globals.h.
29942 (rs6000_set_current_function): Instead of doing target_reinit
29943 unconditionally, use save_target_globals_default_opts and
29944 restore_target_globals.
29945
29946 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
29947 FPSCR.
29948 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
29949 (rs6000_expand_builtin): Handle mffs and mtfsf.
29950 (rs6000_init_builtins): Define mffs and mtfsf.
29951 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
29952 (rs6000_mffs): New pattern.
29953 (rs6000_mtfsf): New pattern.
29954
29955 2014-01-11 Bin Cheng <bin.cheng@arm.com>
29956
29957 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
29958 Start narrowing with START. Apply candidate-use pair
29959 and check overall cost in narrowing.
29960 (iv_ca_prune): Pass new argument.
29961
29962 2014-01-10 Jeff Law <law@redhat.com>
29963
29964 PR middle-end/59743
29965 * ree.c (combine_reaching_defs): Ensure the defining statement
29966 occurs before the extension when optimizing extensions with
29967 different source and destination hard registers.
29968
29969 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
29970
29971 PR ipa/58585
29972 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
29973 vtables into the type inheritance graph.
29974
29975 2014-01-10 Jakub Jelinek <jakub@redhat.com>
29976
29977 PR rtl-optimization/59754
29978 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
29979 modes in the REGNO != REGNO case.
29980
29981 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29982
29983 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
29984
29985 2014-01-10 Jakub Jelinek <jakub@redhat.com>
29986
29987 PR tree-optimization/59745
29988 * tree-predcom.c (tree_predictive_commoning_loop): Call
29989 free_affine_expand_cache if giving up because components is NULL.
29990
29991 * target-globals.c (save_target_globals): Allocate < 4KB structs using
29992 GC in payload of target_globals struct instead of allocating them on
29993 the heap and the larger structs separately using GC.
29994 * target-globals.h (struct target_globals): Make regs, hard_regs,
29995 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
29996 of GTY((skip)) and change type to void *.
29997 (reset_target_globals): Cast loads from those fields to corresponding
29998 types.
29999
30000 2014-01-10 Steve Ellcey <sellcey@mips.com>
30001
30002 PR plugins/59335
30003 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
30004 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
30005 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
30006
30007 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
30008
30009 PR target/59744
30010 * aarch64-modes.def (CC_Zmode): New flags mode.
30011 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
30012 represents an equality.
30013 (aarch64_get_condition_code): Handle CC_Zmode.
30014 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
30015
30016 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30017
30018 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
30019 extraction in good case.
30020
30021 2014-01-10 Richard Biener <rguenther@suse.de>
30022
30023 PR tree-optimization/59374
30024 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
30025 checking after SLP discovery. Mark stmts not participating
30026 in any SLP instance properly.
30027
30028 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30029
30030 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
30031 when handling a SET rtx.
30032
30033 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30034
30035 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
30036 (cortex-a57): Likewise.
30037 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
30038
30039 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30040
30041 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
30042 non-iwmmxt builtins.
30043
30044 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
30045
30046 PR ipa/58252
30047 PR ipa/59226
30048 * ipa-devirt.c record_target_from_binfo): Take as argument
30049 stack of binfos and lookup matching one for virtual inheritance.
30050 (possible_polymorphic_call_targets_1): Update.
30051
30052 2014-01-10 Huacai Chen <chenhc@lemote.com>
30053
30054 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
30055 kernel strings for Loongson-2E/2F/3A.
30056
30057 2014-01-10 Jakub Jelinek <jakub@redhat.com>
30058
30059 PR middle-end/59670
30060 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
30061 is_gimple_call before calling gimple_call_internal_p.
30062
30063 2014-01-09 Steve Ellcey <sellcey@mips.com>
30064
30065 * Makefile.in (TREE_FLOW_H): Remove.
30066 (TREE_SSA_H): Add file names from tree-flow.h.
30067 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
30068 * tree.h: Remove tree-flow.h reference.
30069 * hash-table.h: Remove tree-flow.h reference.
30070 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
30071 reference with tree-ssa-loop.h.
30072
30073 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30074
30075 * doc/invoke.texi: Add -maltivec={be,le} options, and document
30076 default element-order behavior for -maltivec.
30077 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
30078 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
30079 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
30080 when targeting big endian, at least for now.
30081 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
30082
30083 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30084
30085 PR middle-end/47735
30086 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
30087 var satisfies use_register_for_decl, just take into account type
30088 alignment, rather than decl alignment.
30089
30090 PR tree-optimization/59622
30091 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
30092 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
30093 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
30094 Don't devirtualize for inplace at all. For targets.length () == 1,
30095 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
30096
30097 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
30098
30099 * config/i386/i386.md (cpu): Remove the unused btver1.
30100
30101 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
30102
30103 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
30104
30105 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30106
30107 PR target/58115
30108 * tree-core.h (struct target_globals): New forward declaration.
30109 (struct tree_target_option): Add globals field.
30110 * tree.h (TREE_TARGET_GLOBALS): Define.
30111 (prepare_target_option_nodes_for_pch): New prototype.
30112 * target-globals.h (struct target_globals): Define even if
30113 !SWITCHABLE_TARGET.
30114 * tree.c (prepare_target_option_node_for_pch,
30115 prepare_target_option_nodes_for_pch): New functions.
30116 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
30117 * config/i386/i386.c: Include target-globals.h.
30118 (ix86_set_current_function): Instead of doing target_reinit
30119 unconditionally, use save_target_globals_default_opts and
30120 restore_target_globals.
30121
30122 2014-01-09 Richard Biener <rguenther@suse.de>
30123
30124 PR tree-optimization/59715
30125 * tree-cfg.h (split_critical_edges): Declare.
30126 * tree-cfg.c (split_critical_edges): Export.
30127 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
30128
30129 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
30130
30131 * cfgexpand.c (expand_stack_vars): Optionally disable
30132 asan stack protection.
30133 (expand_used_vars): Likewise.
30134 (partition_stack_vars): Likewise.
30135 * asan.c (asan_emit_stack_protection): Optionally disable
30136 after return stack usage.
30137 (instrument_derefs): Optionally disable memory access instrumentation.
30138 (instrument_builtin_call): Likewise.
30139 (instrument_strlen_call): Likewise.
30140 (asan_protect_global): Optionally disable global variables protection.
30141 * doc/invoke.texi: Added doc for new options.
30142 * params.def: Added new options.
30143 * params.h: Likewise.
30144
30145 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30146
30147 PR rtl-optimization/59724
30148 * ifcvt.c (cond_exec_process_if_block): Don't call
30149 flow_find_head_matching_sequence with 0 longest_match.
30150 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
30151 non-active insns if !stop_after.
30152 (try_head_merge_bb): Revert 2014-01-07 changes.
30153
30154 2014-01-08 Jeff Law <law@redhat.com>
30155
30156 * ree.c (get_sub_rtx): New function, extracted from...
30157 (merge_def_and_ext): Here.
30158 (combine_reaching_defs): Use get_sub_rtx.
30159
30160 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
30161
30162 * cgraph.h (varpool_variable_node): Do not choke on null node.
30163
30164 2014-01-08 Catherine Moore <clm@codesourcery.com>
30165
30166 * config/mips/mips.md (simple_return): Attempt to use JRC
30167 for microMIPS.
30168 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
30169
30170 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
30171
30172 PR rtl-optimization/59137
30173 * reorg.c (steal_delay_list_from_target): Call update_block for
30174 elided insns.
30175 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
30176
30177 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30178
30179 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
30180 two duplicate entries.
30181
30182 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
30183
30184 Revert:
30185 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
30186
30187 * config/mips/mips.c (mips_truncated_op_cost): New function.
30188 (mips_rtx_costs): Adjust test for BADDU.
30189 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
30190
30191 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
30192
30193 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
30194 (*baddu_si): ...this new pattern.
30195
30196 2014-01-08 Jakub Jelinek <jakub@redhat.com>
30197
30198 PR ipa/59722
30199 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
30200
30201 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
30202
30203 PR middle-end/57748
30204 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
30205 inner_reference_p.
30206 (expand_expr, expand_normal): Adjust.
30207 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
30208 inner_reference_p. Use inner_reference_p to expand inner references.
30209 (store_expr): Adjust.
30210 * cfgexpand.c (expand_call_stmt): Adjust.
30211
30212 2014-01-08 Rong Xu <xur@google.com>
30213
30214 * gcov-io.c (gcov_var): Move from gcov-io.h.
30215 (gcov_position): Ditto.
30216 (gcov_is_error): Ditto.
30217 (gcov_rewrite): Ditto.
30218 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
30219 only part to libgcc/libgcov.h.
30220
30221 2014-01-08 Marek Polacek <polacek@redhat.com>
30222
30223 PR middle-end/59669
30224 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
30225
30226 2014-01-08 Marek Polacek <polacek@redhat.com>
30227
30228 PR sanitizer/59667
30229 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
30230
30231 2014-01-08 Jakub Jelinek <jakub@redhat.com>
30232
30233 PR rtl-optimization/59649
30234 * stor-layout.c (get_mode_bounds): For BImode return
30235 0 and STORE_FLAG_VALUE.
30236
30237 2014-01-08 Richard Biener <rguenther@suse.de>
30238
30239 PR middle-end/59630
30240 * gimple.h (is_gimple_builtin_call): Remove.
30241 (gimple_builtin_call_types_compatible_p): New.
30242 (gimple_call_builtin_p): New overload.
30243 * gimple.c (is_gimple_builtin_call): Remove.
30244 (validate_call): Rename to ...
30245 (gimple_builtin_call_types_compatible_p): ... this and export. Also
30246 check return types.
30247 (validate_type): New static function.
30248 (gimple_call_builtin_p): New overload and adjust.
30249 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
30250 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
30251 (gimple_fold_stmt_to_constant_1): Likewise.
30252 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
30253
30254 2014-01-08 Richard Biener <rguenther@suse.de>
30255
30256 PR middle-end/59471
30257 * gimplify.c (gimplify_expr): Gimplify register-register type
30258 VIEW_CONVERT_EXPRs to separate stmts.
30259
30260 2014-01-07 Jeff Law <law@redhat.com>
30261
30262 PR middle-end/53623
30263 * ree.c (combine_set_extension): Handle case where source
30264 and destination registers in an extension insn are different.
30265 (combine_reaching_defs): Allow source and destination registers
30266 in extension to be different under limited circumstances.
30267 (add_removable_extension): Remove restriction that the
30268 source and destination registers in the extension are the same.
30269 (find_and_remove_re): Emit a copy from the extension's
30270 destination to its source after the defining insn if
30271 the source and destination registers are different.
30272
30273 PR middle-end/59285
30274 * ifcvt.c (merge_if_block): If we are merging a block with more than
30275 one successor with a block with no successors, remove any BARRIER
30276 after the second block.
30277
30278 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
30279
30280 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
30281
30282 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
30283
30284 PR target/59652
30285 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
30286 for 14-bit register offsets when INT14_OK_STRICT is false.
30287
30288 2014-01-07 Roland Stigge <stigge@antcom.de>
30289 Michael Meissner <meissner@linux.vnet.ibm.com>
30290
30291 PR 57386/target
30292 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
30293 Only check TFmode for SPE constants. Don't check TImode or TDmode.
30294
30295 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
30296
30297 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
30298 -mcpu.
30299
30300 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
30301
30302 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
30303 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
30304 rtx is const0_rtx or not.
30305
30306 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
30307
30308 PR target/58115
30309 * target-globals.c (save_target_globals): Remove this_fn_optab
30310 handling.
30311 * toplev.c: Include optabs.h.
30312 (target_reinit): Temporarily restore the global options if another
30313 set of options are in force.
30314
30315 2014-01-07 Jakub Jelinek <jakub@redhat.com>
30316
30317 PR rtl-optimization/58668
30318 * cfgcleanup.c (flow_find_cross_jump): Don't count
30319 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
30320 to determine what is counted.
30321 (flow_find_head_matching_sequence): Use active_insn_p to determine
30322 what is counted.
30323 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
30324 counting change.
30325 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
30326 determine what is counted.
30327
30328 PR tree-optimization/59643
30329 * tree-predcom.c (split_data_refs_to_components): If one dr is
30330 read and one write, determine_offset fails and the write isn't
30331 in the bad component, just put the read into the bad component.
30332
30333 2014-01-07 Mike Stump <mikestump@comcast.net>
30334 Jakub Jelinek <jakub@redhat.com>
30335
30336 PR pch/59436
30337 * tree-core.h (struct tree_optimization_option): Change optabs
30338 type from unsigned char * to void *.
30339 * optabs.c (init_tree_optimization_optabs): Adjust
30340 TREE_OPTIMIZATION_OPTABS initialization.
30341
30342 2014-01-06 Jakub Jelinek <jakub@redhat.com>
30343
30344 PR target/59644
30345 * config/i386/i386.h (struct machine_function): Add
30346 no_drap_save_restore field.
30347 * config/i386/i386.c (ix86_save_reg): Use
30348 !cfun->machine->no_drap_save_restore instead of
30349 crtl->stack_realign_needed.
30350 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
30351 this function clears frame_pointer_needed. Set
30352 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
30353 and DRAP reg is needed.
30354
30355 2014-01-06 Marek Polacek <polacek@redhat.com>
30356
30357 PR c/57773
30358 * doc/implement-c.texi: Mention that other integer types are
30359 permitted as bit-field types in strictly conforming mode.
30360
30361 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
30362
30363 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
30364 is newly allocated.
30365
30366 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
30367
30368 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
30369
30370 2014-01-06 Martin Jambor <mjambor@suse.cz>
30371
30372 PR ipa/59008
30373 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
30374 to int.
30375 * ipa-prop.c (ipa_print_node_params): Fix indentation.
30376
30377 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
30378
30379 PR debug/59350
30380 PR debug/59510
30381 * var-tracking.c (add_stores): Preserve the value of the source even if
30382 we don't record the store.
30383
30384 2014-01-06 Terry Guo <terry.guo@arm.com>
30385
30386 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
30387
30388 2014-01-05 Iain Sandoe <iain@codesourcery.com>
30389
30390 PR bootstrap/59541
30391 * config/darwin.c (darwin_function_section): Adjust return values to
30392 correspond to optimisation changes made in r206070.
30393
30394 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
30395
30396 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
30397 from prefetch_block tune setting.
30398 (nocona_cost): Correct size of prefetch block to 64.
30399
30400 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
30401
30402 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
30403 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
30404 used to save the static chain register in the computation of the offset
30405 from which the FP registers need to be restored.
30406
30407 2014-01-04 Jakub Jelinek <jakub@redhat.com>
30408
30409 PR tree-optimization/59519
30410 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
30411 ICE if get_current_def (current_new_name) is already non-NULL, as long
30412 as it is a phi result of some other phi in *new_exit_bb that has
30413 the same argument.
30414
30415 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
30416 or vmovdqu* for misaligned_operand.
30417 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
30418 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
30419 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
30420 aligned_mem for AVX512F masked aligned load and store builtins and for
30421 non-temporal moves.
30422
30423 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
30424
30425 PR tree-optimization/59651
30426 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
30427 Address range for negative step should be added by TYPE_SIZE_UNIT.
30428
30429 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
30430
30431 * config/m68k/m68k.c (handle_move_double): Handle pushes with
30432 overlapping registers also for registers other than the stack pointer.
30433
30434 2014-01-03 Marek Polacek <polacek@redhat.com>
30435
30436 PR other/59661
30437 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
30438 __builtin_FILE.
30439
30440 2014-01-03 Jakub Jelinek <jakub@redhat.com>
30441
30442 PR target/59625
30443 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
30444 asm goto as jump.
30445
30446 * config/i386/i386.md (MODE_SIZE): New mode attribute.
30447 (push splitter): Use <P:MODE_SIZE> instead of
30448 GET_MODE_SIZE (<P:MODE>mode).
30449 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
30450 (mov -1, reg peephole2): Likewise.
30451 * config/i386/sse.md (*mov<mode>_internal,
30452 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
30453 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
30454 *<code><mode>3, *andnot<mode>3<mask_name>,
30455 <mask_codefor><code><mode>3<mask_name>): Likewise.
30456 * config/i386/subst.md (mask_mode512bit_condition,
30457 sd_mask_mode512bit_condition): Likewise.
30458
30459 2014-01-02 Xinliang David Li <davidxl@google.com>
30460
30461 PR tree-optimization/59303
30462 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
30463 (dump_predicates): Better output format.
30464 (pred_equal_p): New function.
30465 (is_neq_relop_p): Ditto.
30466 (is_neq_zero_form_p): Ditto.
30467 (pred_expr_equal_p): Ditto.
30468 (pred_neg_p): Ditto.
30469 (simplify_pred): Ditto.
30470 (simplify_preds_2): Ditto.
30471 (simplify_preds_3): Ditto.
30472 (simplify_preds_4): Ditto.
30473 (simplify_preds): Ditto.
30474 (push_pred): Ditto.
30475 (push_to_worklist): Ditto.
30476 (get_pred_info_from_cmp): Ditto.
30477 (is_degenerated_phi): Ditto.
30478 (normalize_one_pred_1): Ditto.
30479 (normalize_one_pred): Ditto.
30480 (normalize_one_pred_chain): Ditto.
30481 (normalize_preds): Ditto.
30482 (normalize_cond_1): Remove function.
30483 (normalize_cond): Ditto.
30484 (is_gcond_subset_of): Ditto.
30485 (is_subset_of_any): Ditto.
30486 (is_or_set_subset_of): Ditto.
30487 (is_and_set_subset_of): Ditto.
30488 (is_norm_cond_subset_of): Ditto.
30489 (pred_chain_length_cmp): Ditto.
30490 (convert_control_dep_chain_into_preds): Type change.
30491 (find_predicates): Ditto.
30492 (find_def_preds): Ditto.
30493 (destroy_predicates_vecs): Ditto.
30494 (find_matching_predicates_in_rest_chains): Ditto.
30495 (use_pred_not_overlap_with_undef_path_pred): Ditto.
30496 (is_pred_expr_subset): Ditto.
30497 (is_pred_chain_subset_of): Ditto.
30498 (is_included_in): Ditto.
30499 (is_superset_of): Ditto.
30500
30501 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
30502
30503 Update copyright years.
30504
30505 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
30506
30507 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
30508 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
30509 config/arc/arc.md, config/arc/arc.opt,
30510 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
30511 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
30512 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
30513 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
30514 config/linux-protos.h, config/linux.c, config/winnt-c.c,
30515 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
30516 vtable-verify.c, vtable-verify.h: Use the standard form for the
30517 copyright notice.
30518
30519 2014-01-02 Tobias Burnus <burnus@net-b.de>
30520
30521 * gcc.c (process_command): Update copyright notice dates.
30522 * gcov-dump.c: Ditto.
30523 * gcov.c: Ditto.
30524 * doc/cpp.texi: Bump @copying's copyright year.
30525 * doc/cppinternals.texi: Ditto.
30526 * doc/gcc.texi: Ditto.
30527 * doc/gccint.texi: Ditto.
30528 * doc/gcov.texi: Ditto.
30529 * doc/install.texi: Ditto.
30530 * doc/invoke.texi: Ditto.
30531
30532 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
30533
30534 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
30535
30536 2014-01-01 Jakub Jelinek <jakub@redhat.com>
30537
30538 * config/i386/sse.md (*mov<mode>_internal): Guard
30539 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
30540
30541 PR rtl-optimization/59647
30542 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
30543 new_rtx into UNSIGNED_FLOAT rtxes.
30544 \f
30545 Copyright (C) 2014 Free Software Foundation, Inc.
30546
30547 Copying and distribution of this file, with or without modification,
30548 are permitted in any medium without royalty provided the copyright
30549 notice and this notice are preserved.