common.opt (flto-odr-type-merging): New flag.
[gcc.git] / gcc / ChangeLog
1 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
2
3 * common.opt (flto-odr-type-merging): New flag.
4 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
5 (types_same_for_odr): Likewise.
6 (odr_subtypes_equivalent_p): Likewise.
7 (add_type_duplicate): Do not walk type variants.
8 (register_odr_type): New function.
9 * ipa-utils.h (register_odr_type): Declare.
10 (odr_type_p): New function.
11 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
12 TYPE_DECLs
13 * doc/invoke.texi (-flto-odr-type-merging): Document.
14 * tree.c (need_assembler_name_p): Compute ODR names when asked
15 for it.
16 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
17
18 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
19
20 PR target/63228
21 * config/i386/i386.c (ix86_option_override_internal): Also turn
22 off OPTION_MASK_ABI_X32 for -m16.
23
24 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
25
26 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
27 GPR instead of P.
28
29 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
30
31 PR target/58757
32 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
33 Directly forward to __*_DENORM_MIN__.
34
35 2014-09-11 David Malcolm <dmalcolm@redhat.com>
36
37 * rtl.h (LABEL_REF_LABEL): New macro.
38
39 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
40 of XEXP (, 0), where we know that we have a LABEL_REF.
41 * cfgbuild.c (make_edges): Likewise.
42 (purge_dead_tablejump_edges): Likewise.
43 * cfgexpand.c (convert_debug_memory_address): Likewise.
44 * cfgrtl.c (patch_jump_insn): Likewise.
45 * combine.c (distribute_notes): Likewise.
46 * cse.c (hash_rtx_cb): Likewise.
47 (exp_equiv_p): Likewise.
48 (fold_rtx): Likewise.
49 (check_for_label_ref): Likewise.
50 * cselib.c (rtx_equal_for_cselib_1): Likewise.
51 (cselib_hash_rtx): Likewise.
52 * emit-rtl.c (mark_label_nuses): Likewise.
53 * explow.c (convert_memory_address_addr_space): Likewise.
54 * final.c (output_asm_label): Likewise.
55 (output_addr_const): Likewise.
56 * gcse.c (add_label_notes): Likewise.
57 * genconfig.c (walk_insn_part): Likewise.
58 * genrecog.c (validate_pattern): Likewise.
59 * ifcvt.c (cond_exec_get_condition): Likewise.
60 (noce_emit_store_flag): Likewise.
61 (noce_get_alt_condition): Likewise.
62 (noce_get_condition): Likewise.
63 * jump.c (maybe_propagate_label_ref): Likewise.
64 (mark_jump_label_1): Likewise.
65 (redirect_exp_1): Likewise.
66 (rtx_renumbered_equal_p): Likewise.
67 * lra-constraints.c (operands_match_p): Likewise.
68 * reload.c (operands_match_p): Likewise.
69 (find_reloads): Likewise.
70 * reload1.c (set_label_offsets): Likewise.
71 * reorg.c (get_branch_condition): Likewise.
72 * rtl.c (rtx_equal_p_cb): Likewise.
73 (rtx_equal_p): Likewise.
74 * rtlanal.c (reg_mentioned_p): Likewise.
75 (rtx_referenced_p): Likewise.
76 (get_condition): Likewise.
77 * sched-vis.c (print_value): Likewise.
78 * varasm.c (const_hash_1): Likewise.
79 (compare_constant): Likewise.
80 (const_rtx_hash_1): Likewise.
81 (output_constant_pool_1): Likewise.
82
83 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
84
85 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
86 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
87 instead of minus.
88 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
89 cr6_test_for_lt_reverse): Ditto.
90
91 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
92
93 PR c++/61489
94 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
95
96 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
97
98 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
99 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
100 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
101 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
102 Delete.
103
104 (aarch64_fold_builtin): Remove all reinterpret cases.
105
106 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
107
108 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
109
110 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
111 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
112 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
113 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
114 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
115 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
116 aarch64_reinterpretv2df<mode>): Delete.
117
118 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
119
120 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
121 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
122 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
123 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
124 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
125 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
126 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
127 vreinterpret_u32_f64): Use cast.
128
129 * config/aarch64/iterators.md (VD_RE): Delete.
130
131 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
132
133 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
134 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
135 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
136 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
137 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
138 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
139 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
140 Replace inline assembler with __aarch64_vset_lane_any.
141
142 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
143
144 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
145 types.
146 (vmull_high_lane_s32): Likewise.
147 (vmull_high_lane_u16): Likewise.
148 (vmull_high_lane_u32): Likewise.
149
150 2014-09-11 Jason Merrill <jason@redhat.com>
151
152 PR c++/58678
153 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
154
155 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
156
157 PR target/63223
158 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
159 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
160 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
161
162 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
163 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
164 Anna Tikhonova <anna.tikhonova@intel.com>
165 Ilya Tocar <ilya.tocar@intel.com>
166 Andrey Turetskiy <andrey.turetskiy@intel.com>
167 Ilya Verbin <ilya.verbin@intel.com>
168 Kirill Yukhin <kirill.yukhin@intel.com>
169 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
170
171 * config/i386/sse.md
172 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
173 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
174 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
175 New.
176 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
177 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
178 iterator.
179 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
180 New.
181 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
182 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
183 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
184 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
185 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
186 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
187 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
188 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
189 iterator.
190 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
191 New.
192 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
193 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
194 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
195
196 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
197
198 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
199 to access removed nodes.
200
201 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
202
203 PR tree-optimization/63186
204 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
205 (mark_nonssa_use): Likewise.
206 (verify_non_ssa_vars): Verify all header blocks for label
207 definitions.
208
209 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
210 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
211 Anna Tikhonova <anna.tikhonova@intel.com>
212 Ilya Tocar <ilya.tocar@intel.com>
213 Andrey Turetskiy <andrey.turetskiy@intel.com>
214 Ilya Verbin <ilya.verbin@intel.com>
215 Kirill Yukhin <kirill.yukhin@intel.com>
216 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
217
218 * config/i386/sse.md
219 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
220 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
221 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
222 "<avx2_avx512f>_permvar<mode><mask_name>".
223 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
224 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
225 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
226 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
227 Ditto.
228 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
229 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
230 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
231 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
232
233 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
234
235 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
236 V2DF, V4SF, DF, and DI modes.
237 (vsx_fmav2df2): Likewise.
238 (vsx_float_fix_<mode>2): Likewise.
239 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
240
241 2014-09-10 Xinliang David Li <davidxl@google.com>
242
243 PR target/63209
244 * config/arm/arm.md (movcond_addsi): Handle case where source
245 and target operands are the same.
246
247 2014-09-10 David Malcolm <dmalcolm@redhat.com>
248
249 * final.c (this_is_asm_operands): Strengthen this variable from
250 rtx to const rtx_insn *.
251 * output.h (this_is_asm_operands): Likewise.
252 * rtl-error.c (location_for_asm): Strengthen param "insn" from
253 const_rtx to const rtx_insn *.
254 (diagnostic_for_asm): Likewise.
255 * rtl-error.h (error_for_asm): Likewise.
256 (warning_for_asm): Likewise.
257
258 2014-09-10 David Malcolm <dmalcolm@redhat.com>
259
260 * genextract.c (print_header): When writing out insn_extract to
261 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
262 * recog.h (insn_extract): Strengthen the param from rtx to
263 rtx_insn *.
264
265 2014-09-10 Mike Stump <mikestump@comcast.net>
266
267 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
268 8.6.1.
269
270 2014-09-10 Martin Jambor <mjambor@suse.cz>
271
272 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
273 (analyze): Do not set analyze flag if expand_thunk returns false;.
274 (create_wrapper): Likewise.
275 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
276
277 2014-09-10 Martin Jambor <mjambor@suse.cz>
278
279 PR ipa/61654
280 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
281 new decl properly. Analyze the new thunk if it is expanded.
282
283 2014-09-10 Andreas Schwab <schwab@suse.de>
284
285 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
286 [USED_FOR_TARGET]: Define.
287
288 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
289
290 * config/mips/mips.c (mips_secondary_reload_class): Handle
291 regno < 0 case.
292
293 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
294
295 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
296 assignment.
297
298 2014-09-10 Jakub Jelinek <jakub@redhat.com>
299
300 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
301 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
302 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
303 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
304 flag_delete_null_pointer_checks for them.
305 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
306 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
307 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
308 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
309 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
310 stmt's iterator.
311 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
312 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
313 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
314 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
315 * doc/invoke.texi (-fsanitize=nonnull-attribute,
316 -fsanitize=returns-nonnull-attribute): Document.
317
318 * ubsan.h (struct ubsan_mismatch_data): Removed.
319 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
320 * ubsan.c (ubsan_source_location): For unknown locations,
321 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
322 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
323 Allow more than one location and arbitrary extra arguments passed
324 in ... instead of through MISMATCH pointer.
325 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
326 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
327 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
328 callers.
329
330 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
331 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
332 Anna Tikhonova <anna.tikhonova@intel.com>
333 Ilya Tocar <ilya.tocar@intel.com>
334 Andrey Turetskiy <andrey.turetskiy@intel.com>
335 Ilya Verbin <ilya.verbin@intel.com>
336 Kirill Yukhin <kirill.yukhin@intel.com>
337 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
338
339 * config/i386/sse.md
340 (define_mode_iterator VI48F): New.
341 (define_insn "<avx512>_compress<mode>_mask"): Rename from
342 "avx512f_compress<mode>_mask" and update mode iterator.
343 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
344 "avx512f_compressstore<mode>_mask" and update mode iterator.
345 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
346 "avx512f_expand<mode>_maskz" and update mode iterator.
347 (define_insn "<avx512>_expand<mode>_mask"): Rename from
348 "avx512f_expand<mode>_mask" and update mode iterator.
349
350 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
351 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
352 Anna Tikhonova <anna.tikhonova@intel.com>
353 Ilya Tocar <ilya.tocar@intel.com>
354 Andrey Turetskiy <andrey.turetskiy@intel.com>
355 Ilya Verbin <ilya.verbin@intel.com>
356 Kirill Yukhin <kirill.yukhin@intel.com>
357 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
358
359 * config/i386/i386.c
360 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
361 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
362 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
363 avx512dq_rangepv4sf_mask.
364 * config/i386/sse.md
365 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
366 UNSPEC_RANGE.
367 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
368 (define_insn "reduces<mode>"): Ditto.
369 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
370 Ditto.
371 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
372 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
373 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
374
375 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
376 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
377 Anna Tikhonova <anna.tikhonova@intel.com>
378 Ilya Tocar <ilya.tocar@intel.com>
379 Andrey Turetskiy <andrey.turetskiy@intel.com>
380 Ilya Verbin <ilya.verbin@intel.com>
381 Kirill Yukhin <kirill.yukhin@intel.com>
382 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
383
384 * config/i386/i386.c
385 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
386 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
387 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
388 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
389 avx512vl_getmantv2df_mask.
390 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
391 avx512f_vgetmantv4sf_round.
392 * config/i386/sse.md
393 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
394 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
395 mode iterator.
396 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
397 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
398 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
399 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
400 iterator..
401 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
402 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
403 update mode iterator.
404 (define_expand
405 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
406 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
407 mode iterator.
408 (define_insn
409 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
410 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
411 update mode iterator.
412 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
413 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
414 iterator..
415 (define_insn
416 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
417 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
418 mode iterator..
419 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
420 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
421 update mode iterator.
422 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
423 "avx512f_getmant<mode><round_saeonly_name>".
424
425 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
426
427 PR ipa/63166
428 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
429
430 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
431 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
432 Anna Tikhonova <anna.tikhonova@intel.com>
433 Ilya Tocar <ilya.tocar@intel.com>
434 Andrey Turetskiy <andrey.turetskiy@intel.com>
435 Ilya Verbin <ilya.verbin@intel.com>
436 Kirill Yukhin <kirill.yukhin@intel.com>
437 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
438
439 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
440 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
441 (define_mode_iterator FMAMODE_AVX512): New.
442 (define_mode_iterator FMAMODE): Remove conditions.
443 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
444 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
445 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
446 mode iterator.
447 (define_mode_iterator FMAMODE_NOVF512): Remove.
448 (define_insn "*fma_fmadd_<mode>"): Rename from
449 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
450 FMAMODE mode iterator.
451 (define_mode_iterator VF_SF_AVX512VL): New.
452 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
453 Use VF_SF_AVX512VL mode iterator.
454 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
455 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
456 iterator.
457 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
458 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
459 iterator.
460 (define_insn "*fma_fmsub_<mode>"): Rename from
461 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
462 FMAMODE mode iterator.
463 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
464 Use VF_SF_AVX512VL mode iterator.
465 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
466 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
467 iterator.
468 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
469 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
470 iterator.
471 (define_insn "*fma_fnmadd_<mode>"): Rename from
472 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
473 use FMAMODE mode iterator.
474 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
475 Use VF_SF_AVX512VL mode iterator.
476 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
477 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
478 iterator.
479 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
480 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
481 iterator.
482 (define_insn "*fma_fnmsub_<mode>"): Rename from
483 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
484 FMAMODE mode iterator.
485 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
486 Use VF_SF_AVX512VL mode iterator.
487 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
488 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
489 iterator.
490 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
491 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
492 iterator.
493 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
494 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
495 use VF_AVX512VL mode iterator.
496 (define_insn "*fma_fmaddsub_<mode>"): Rename from
497 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
498 remove subst usage.
499 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
500 Use VF_SF_AVX512VL mode iterator.
501 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
502 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
503 iterator.
504 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
505 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
506 iterator.
507 (define_insn "*fma_fmsubadd_<mode>"): Rename from
508 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
509 remove usage of subst.
510 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
511 Use VF_SF_AVX512VL mode iterator.
512 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
513 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
514 iterator.
515 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
516 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
517 iterator.
518
519 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
520
521 Revert r213751:
522 * calls.c (precompute_arguments): Check
523 promoted_for_signed_and_unsigned_p and set the promoted mode.
524 (promoted_for_signed_and_unsigned_p): New function.
525 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
526 and set the promoted mode.
527 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
528 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
529 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
530
531 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
532
533 * opth-gen.awk: Generate mapping from cpp message reasons to the
534 options that enable them.
535 * doc/options.texi (CppReason): Document.
536
537 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
538
539 * doc/invoke.texi (Wnormalized=): Update.
540
541 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
542
543 PR target/63195
544 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
545 operands. Split off the constant operand alternative to ...
546 (*bool<mode>3_imm): New.
547
548 2014-09-09 David Malcolm <dmalcolm@redhat.com>
549
550 * rtl.h (single_set_2): Strengthen first param from const_rtx to
551 const rtx_insn *, and move prototype to above...
552 (single_set): ...this. Convert this from a macro to an inline
553 function, enforcing the requirement that the param is a const
554 rtx_insn *.
555 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
556
557 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
558 Strengthen both params from rtx to rtx_insn *.
559 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
560 Likewise; introduce locals "producer_set", "consumer_set", using
561 them in place of "producer" and "consumer" when dealing with SET
562 rather than insn.
563 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
564 when invoking single_set in region guarded by INSN_P.
565 (avr_out_bitop): Likewise.
566 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
567 region guarded by GET_CODE check, using methods to strengthen
568 local "this_insn" from rtx to rtx_insn *, and for clarity.
569 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
570 Strengthen local "insn" from rtx to rtx_insn *.
571 (define_insn_and_split "xload<mode>_A"): Likewise.
572 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
573 "insn".
574 (find_load): Likewise for return type.
575 (workaround_speculation): Likewise for both locals named
576 "load_insn".
577 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
578 local "cc0_user".
579 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
580 for local "prev".
581 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
582 param 2.
583 * config/h8300/h8300.c (notice_update_cc): Likewise.
584 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
585 "insn" and "dep_insn".
586 (exact_store_load_dependency): Likewise for both params.
587 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
588 since this now clashes with inline function. Instead, delay
589 calling single_set until the point where its needed, and then
590 assign the result to "compare_set" and rework the conditional that
591 follows.
592 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
593 local "last" from rtx to rtx_insn *.
594 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
595 second param.
596 (mips_store_data_bypass_p): Likewise for both params.
597 * config/mips/mips.c (mips_load_store_insns): Likewise for second
598 param.
599 (mips_store_data_bypass_p): Likewise for both params.
600 (mips_orphaned_high_part_p): Likewise for param "insn".
601 * config/mn10300/mn10300.c (extract_bundle): Likewise.
602 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
603 Introduce local rtx "insn2_pat".
604 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
605 "ninsn".
606 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
607 Introduce local rtx "set", using it in place of "insn" for the
608 result of single_set. This appears to fix a bug, since the call
609 to find_regno_note on a SET does nothing.
610 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
611 params from rtx to rtx_insn *.
612 (set_to_load_agen): Likewise.
613 * config/s390/s390.c (s390_label_align): Likewise for local
614 "prev_insn". Introduce new rtx locals "set" and "src", using
615 them in place of "prev_insn" for the results of single_set
616 and SET_SRC respectively.
617 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
618 Introduce new rtx local "set" using in place of "jump" for the
619 result of single_set. Use SET_SRC (set) rather than plain
620 XEXP (set, 1).
621 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
622 rtx to rtx_insn *.
623 (noncall_uses_reg): Likewise.
624 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
625 guarded by GET_CODE check, using its methods for clarity, and to
626 enable strengthening local "this_insn" from rtx to rtx_insn *.
627 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
628 "insn" from rtx to rtx_insn *.
629 (define_expand "umulhisi3"): Likewise.
630 (define_expand "smulsi3_highpart"): Likewise.
631 (define_expand "umulsi3_highpart"): Likewise.
632 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
633 local "after". Replace GET_CODE check with a dyn_cast,
634 introducing new local rtx_sequence * "seq", using insn method for
635 typesafety.
636
637 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
638 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
639 place of "insn" once we're dealing with patterns rather than the
640 input insn.
641 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
642 (scan_trace): Likewise for local "elt", updating lookups within
643 sequence to use insn method rather than element method.
644 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
645 to rtx_insn *.
646 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
647 * ifcvt.c (noce_try_abs): Likewise for local "insn".
648 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
649 invoking single_set.
650 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
651 "insn" from rtx to rtx_insn *.
652 (skip_usage_debug_insns): Likewise for return type, adding a
653 checked cast.
654 (check_secondary_memory_needed_p): Likewise for local "insn".
655 (inherit_reload_reg): Likewise.
656 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
657 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
658 checked casts.
659 (store_data_bypass_p): Likewise for both params.
660 (if_test_bypass_p): Likewise.
661 * recog.h (store_data_bypass_p): Likewise for both params.
662 (if_test_bypass_p): Likewise.
663 * reload.c (find_equiv_reg): Likewise for local "where".
664 * reorg.c (delete_jump): Likewise for param "insn".
665 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
666 to const rtx_insn *.
667 * store-motion.c (replace_store_insn): Likewise for param "del".
668 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
669 and use its methods for clarity, and to strengthen local "del"
670 from rtx to rtx_insn *.
671 (build_store_vectors): Use insn method of "st" when calling
672 replace_store_insn for typesafety and clarity.
673
674 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
675
676 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
677 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
678 on how to make it legal in future.
679
680 2014-09-09 David Malcolm <dmalcolm@redhat.com>
681
682 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
683 to rtx_insn *.
684 (restinsn): Likewise.
685 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
686 Likewise for param.
687 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
688 Likewise.
689 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
690 first param.
691 (arc_hazard): Likewise for both params.
692 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
693 checked casts to rtx_sequence * and uses of the insn method for
694 type-safety.
695 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
696 (arc_adjust_insn_length): Likewise for param "insn".
697 (struct insn_length_parameters_s): Likewise for first param of
698 "get_variants" callback field.
699 (arc_get_insn_variants): Likewise for first param and local
700 "inner". Replace a check of GET_CODE with a dyn_cast to
701 rtx_sequence *, using methods for type-safety and clarity.
702 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
703 rtx_sequence * and uses of the insn method for type-safety when
704 invoking arc_adjust_insn_length.
705 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
706 for param.
707 (arm_address_offset_is_imm): Likewise.
708 (struct tune_params): Likewise for params 1 and 3 of the
709 "sched_adjust_cost" callback field.
710 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
711 params 1 and 3 ("insn" and "dep").
712 (xscale_sched_adjust_cost): Likewise.
713 (fa726te_sched_adjust_cost): Likewise.
714 (cortexa7_older_only): Likewise for param "insn".
715 (cortexa7_younger): Likewise.
716 (arm_attr_length_move_neon): Likewise.
717 (arm_address_offset_is_imm): Likewise.
718 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
719 * config/avr/avr.c (avr_notice_update_cc): Likewise.
720 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
721 (workaround_speculation): Likewise for local "last_condjump".
722 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
723 (shadow_or_blockage_p): Likewise.
724 (get_unit_reqs): Likewise.
725 (get_unit_operand_masks): Likewise.
726 (c6x_registers_update): Likewise.
727 (returning_call_p): Likewise.
728 (can_use_callp): Likewise.
729 (convert_to_callp): Likewise.
730 (find_last_same_clock): Likwise for local "t".
731 (reorg_split_calls): Likewise for local "shadow".
732 (hwloop_pattern_reg): Likewise for param "insn".
733 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
734 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
735 (frv_extract_membar): Likewise.
736 (frv_optimize_membar_local): Strengthen param "last_membar" from
737 rtx * to rtx_insn **.
738 (frv_optimize_membar_global): Strengthen param "membar" from rtx
739 to rtx_insn *.
740 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
741 to rtx_insn **.
742 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
743 both params from rtx to rtx_insn *.
744 (ia64_ld_address_bypass_p): Likewise.
745 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
746 "insn".
747 (ia64_safe_type): Likewise.
748 (group_barrier_needed): Likewise.
749 (safe_group_barrier_needed): Likewise.
750 (ia64_single_set): Likewise.
751 (is_load_p): Likewise.
752 (record_memory_reference): Likewise.
753 (get_mode_no_for_insn): Likewise.
754 (important_for_bundling_p): Likewise.
755 (unknown_for_bundling_p): Likewise.
756 (ia64_st_address_bypass_p): Likewise for both params.
757 (ia64_ld_address_bypass_p): Likewise.
758 (expand_vselect): Introduce new local rtx_insn * "insn", using it
759 in place of rtx "x" after the emit_insn call.
760 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
761 Strengthen param from rtx to rtx_insn *.
762 (ix86_agi_dependent): Likewise for both params.
763 (ix86_attr_length_immediate_default): Likewise for param 1.
764 (ix86_attr_length_address_default): Likewise for param.
765 (ix86_attr_length_vex_default): Likewise for param 1.
766 * config/i386/i386.c (ix86_attr_length_immediate_default):
767 Likewise for param "insn".
768 (ix86_attr_length_address_default): Likewise.
769 (ix86_attr_length_vex_default): Likewise.
770 (ix86_agi_dependent): Likewise for both params.
771 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
772 (vselect_insn): Likewise for this variable.
773 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
774 for param 1.
775 (m68k_sched_attr_opy_type): Likewise.
776 * config/m68k/m68k.c (sched_get_operand): Likewise.
777 (sched_attr_op_type): Likewise.
778 (m68k_sched_attr_opx_type): Likewise.
779 (m68k_sched_attr_opy_type): Likewise.
780 (sched_get_reg_operand): Likewise.
781 (sched_get_mem_operand): Likewise.
782 (m68k_sched_address_bypass_p): Likewise for both params.
783 (sched_get_indexed_address_scale): Likewise.
784 (m68k_sched_indexed_address_bypass_p): Likewise.
785 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
786 (m68k_sched_indexed_address_bypass_p): Likewise.
787 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
788 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
789 removing another.
790 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
791 params from rtx to rtx_insn *.
792 (mips_fmadd_bypass): Likewise.
793 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
794 (mips_linked_madd_p): Likewise.
795 (mips_macc_chains_last_hilo): Likewise for this variable.
796 (mips_macc_chains_record): Likewise for param.
797 (vr4130_last_insn): Likewise for this variable.
798 (vr4130_swap_insns_p): Likewise for both params.
799 (mips_ls2_variable_issue): Likewise for param.
800 (mips_need_noat_wrapper_p): Likewise for param "insn".
801 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
802 in place of "x" after the emit_insn.
803 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
804 params from rtx to rtx_insn *.
805 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
806 (pa_combine_instructions): Introduce local "par" for result of
807 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
808 to make_insn_raw.
809 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
810 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
811 (rl78_alloc_physical_registers_op1): Likewise.
812 (rl78_alloc_physical_registers_op2): Likewise.
813 (rl78_alloc_physical_registers_ro1): Likewise.
814 (rl78_alloc_physical_registers_cmp): Likewise.
815 (rl78_alloc_physical_registers_umul): Likewise.
816 (rl78_alloc_address_registers_macax): Likewise.
817 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
818 * config/s390/predicates.md (execute_operation): Likewise for
819 local "insn".
820 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
821 params.
822 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
823 (addr_generation_dependency_p): Likewise for param "insn".
824 (s390_agen_dep_p): Likewise for both params.
825 (s390_fpload_toreg): Likewise for param "insn".
826 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
827 * config/sh/sh.c (sh_loop_align): Likewise for param and local
828 "next".
829 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
830 * config/sh/sh_treg_combine.cc
831 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
832 and local "i".
833 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
834 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
835 "and_insn", "load", "shift".
836 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
837 "insn".
838 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
839 for XEXP (note, 0) of the REG_CC_SETTER note.
840 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
841 rtx_insn *, eliminating a checked cast made redundant by this.
842 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
843 to rtx_insn *.
844 * genattr.c (main): When writing out the prototype to
845 const_num_delay_slots, strengthen the param from rtx to
846 rtx_insn *.
847 * genattrtab.c (write_const_num_delay_slots): Likewise when
848 writing out the implementation of const_num_delay_slots.
849 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
850 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
851 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
852 favor of new rtx locals "src" and "set" and new local rtx_insn *
853 "insn" and "seq".
854 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
855 to rtx_insn *.
856 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
857 locals "cond", "if_then_else", "set" and new rtx_insn * locals
858 "insn" and "seq".
859 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
860 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
861 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
862 the top-level scope, replacing with new more tightly-scoped rtx
863 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
864 "new_insn", "copy_of_insn_b", and make local rtx "set" more
865 tightly-scoped.
866 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
867 rtx_insn *.
868 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
869 "move_insn".
870 (ira_setup_alts): Likewise for param "insn".
871 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
872 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
873 and an rtx_insn *.
874 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
875 new more-tightly scoped rtx locals "add3_insn", "insn",
876 "add2_insn" and rtx_insn * "move_insn".
877 * postreload-gcse.c (eliminate_partially_redundant_load): Add
878 checked cast on result of gen_move_insn when invoking
879 extract_insn.
880 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
881 rtx_insn *.
882 (verify_changes): Add a checked cast on "object" when invoking
883 insn_invalid_p.
884 (extract_insn_cached): Strengthen param "insn" from rtx to
885 rtx_insn *.
886 (extract_constrain_insn_cached): Likewise.
887 (extract_insn): Likewise.
888 * recog.h (insn_invalid_p): Likewise for param 1.
889 (recog_memoized): Likewise for param.
890 (extract_insn): Likewise.
891 (extract_constrain_insn_cached): Likewise.
892 (extract_insn_cached): Likewise.
893 * reload.c (can_reload_into): Likewise for local "test_insn".
894 * reload.h (cleanup_subreg_operands): Likewise for param.
895 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
896 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
897 result of emit_insn. Remove a checked cast made redundant by this
898 change.
899 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
900 rtx to rtx_insn *.
901 * sel-sched.c (get_reg_class): Likewise.
902
903 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
904 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
905
906 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
907 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
908 Define.
909 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
910
911 2014-09-09 David Malcolm <dmalcolm@redhat.com>
912
913 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
914 const rtx_insn *, and from rtx to rtx_insn * for the other
915 overloaded variant.
916 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
917 INSN_LOCATION, since we know INSN_P holds.
918 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
919 (insn_file): Likewise.
920 (insn_scope): Likewise.
921 (insn_location): Likewise.
922
923 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
924 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
925 for the result of gen_load_const_gp.
926 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
927 param from rtx to rtx_insn *.
928 * config/rs6000/rs6000.c (output_call): Likewise.
929 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
930 introducing a checked cast to rtx_sequence * and use of the insn
931 method.
932 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
933 from rtx to rtx_insn *.
934 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
935 (insn_line): Likewise.
936 (insn_file): Likewise.
937 (insn_location): Likewise.
938 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
939 from rtx to rtx_insn *.
940 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
941 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
942 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
943 via a checked cast.
944 * reorg.c (relax_delay_slots): Strengthen locals named "after"
945 from rtx to rtx_insn *; use methods of "pat" for type-safety.
946
947 2014-09-09 David Malcolm <dmalcolm@redhat.com>
948
949 * combine.c (try_combine): Eliminate checked cast on result of
950 gen_rtx_INSN.
951 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
952 autogenerated one by strengthening the return type and params 2 and 3
953 from rtx to rtx_insn *, and by naming the params.
954 * gengenrtl.c (special_rtx): Add INSN to those that are
955 special-cased.
956 * rtl.h (gen_rtx_INSN): New prototype.
957
958 2014-09-09 David Malcolm <dmalcolm@redhat.com>
959
960 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
961 than NULL_RTX.
962 (no_equiv): Likewise.
963 (update_equiv_regs): Likewise.
964 (setup_reg_equiv): Likewise. Strengthen locals "elem",
965 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
966 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
967 clarity.
968 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
969 from rtx to rtx_insn_list *.
970 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
971 rtx_insn_list * and use methods for clarity and typesafety.
972 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
973 "list".
974 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
975 redundant check on INSN_P (insns): this cannot hold, as "insns" is
976 an INSN_LIST, not an insn.
977 (reverse_equiv_p): Strengthen local "insns" from rtx to
978 rtx_insn_list * and use methods for clarity and typesafety.
979 (contains_reloaded_insn_p): Likewise for local "list".
980
981 2014-09-09 Jiong Wang <jiong.wang@arm.com>
982
983 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
984 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
985 (arm_builtin_vectorized_function): Likewise.
986 * config/arm/arm_neon_builtins.def: New macro for copysignf.
987 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
988
989 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
990
991 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
992 * builtins.h (default_target_builtins): Likewise.
993 * gcse.h (default_target_gcse): Likewise.
994 * target-globals.h (target_globals): Add a destructor. Convert
995 void-pointer fields back to their real type and change from
996 GTY((atomic)) to GTY((skip)).
997 (restore_target_globals): Remove casts accordingly.
998 * target-globals.c (save_target_globals): Use XCNEW rather than
999 ggc_internal_cleared_alloc to allocate non-GC structures.
1000 Use ggc_cleared_alloc to allocate the target_globals structure
1001 itself.
1002 (target_globals::~target_globals): Define.
1003
1004 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1005
1006 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
1007 mnemonic instead of fldmfdd.
1008 * config/arm/arm.c (vfp_output_fstmd): Rename to...
1009 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
1010 Output vpush when address register is SP.
1011 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
1012 (vfp_output_vstmd): ... This.
1013 * config/arm/vfp.md (push_multi_vfp): Update call to
1014 vfp_output_vstmd.
1015
1016 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1017
1018 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
1019
1020 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1021
1022 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
1023 (*sqrtdf2_vfp): Likewise.
1024 (*cmpsf_vfp): Likewise.
1025 (*cmpsf_trap_vfp): Likewise.
1026 (*cmpdf_vfp): Likewise.
1027 (*cmpdf_trap_vfp): Likewise.
1028
1029 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1030
1031 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
1032 (*truncdfsf2_vfp): Likewise.
1033 (*truncsisf2_vfp): Likewise.
1034 (*truncsidf2_vfp): Likewise.
1035 (fixuns_truncsfsi2): Likewise.
1036 (fixuns_truncdfsi2): Likewise.
1037 (*floatsisf2_vfp): Likewise.
1038 (*floatsidf2_vfp): Likewise.
1039 (floatunssisf2): Likewise.
1040 (floatunssidf2): Likewise.
1041
1042 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1043
1044 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
1045 (*muldf3_vfp): Likewise.
1046 (*mulsf3negsf_vfp): Likewise.
1047 (*muldf3negdf_vfp): Likewise.
1048 (*mulsf3addsf_vfp): Likewise.
1049 (*muldf3adddf_vfp): Likewise.
1050 (*mulsf3subsf_vfp): Likewise.
1051 (*muldf3subdf_vfp): Likewise.
1052 (*mulsf3negsfaddsf_vfp): Likewise.
1053 (*fmuldf3negdfadddf_vfp): Likewise.
1054 (*mulsf3negsfsubsf_vfp): Likewise.
1055 (*muldf3negdfsubdf_vfp): Likewise.
1056
1057 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1058
1059 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
1060 (*absdf2_vfp): Likewise.
1061 (*negsf2_vfp): Likewise.
1062 (*negdf2_vfp): Likewise.
1063 (*addsf3_vfp): Likewise.
1064 (*adddf3_vfp): Likewise.
1065 (*subsf3_vfp): Likewise.
1066 (*subdf3_vfp): Likewise.
1067 (*divsf3_vfp): Likewise.
1068 (*divdf3_vfp): Likewise.
1069
1070 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1071
1072 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
1073 multiple.
1074 (arm_print_operand): Don't convert real values to decimal
1075 representation in default case.
1076 (fp_immediate_constant): Delete.
1077 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
1078 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
1079 syntax.
1080 (*thumb2_movsi_vfp): Likewise.
1081 (*movdi_vfp): Likewise.
1082 (*movdi_vfp_cortexa8): Likewise.
1083 (*movhf_vfp_neon): Likewise.
1084 (*movhf_vfp): Likewise.
1085 (*movsf_vfp): Likewise.
1086 (*thumb2_movsf_vfp): Likewise.
1087 (*movdf_vfp): Likewise.
1088 (*thumb2_movdf_vfp): Likewise.
1089 (*movsfcc_vfp): Likewise.
1090 (*thumb2_movsfcc_vfp): Likewise.
1091 (*movdfcc_vfp): Likewise.
1092 (*thumb2_movdfcc_vfp): Likewise.
1093
1094 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
1095
1096 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
1097 (-mtune): Likewise.
1098 (-mcpu): Likewise.
1099
1100 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1101
1102 PR target/61749
1103 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
1104 Use qualifier_immediate for last operand. Rename to...
1105 (aarch64_types_ternop_lane_qualifiers): ... This.
1106 (TYPES_QUADOP): Rename to...
1107 (TYPES_TERNOP_LANE): ... This.
1108 (aarch64_simd_expand_args): Return const0_rtx when encountering user
1109 error. Change return of 0 to return of NULL_RTX.
1110 (aarch64_crc32_expand_builtin): Likewise.
1111 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
1112 ICE when expanding unknown builtin.
1113 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
1114 TERNOP_LANE qualifiers.
1115 (sqdmlsl_lane): Likewise.
1116 (sqdmlal_laneq): Likewise.
1117 (sqdmlsl_laneq): Likewise.
1118 (sqdmlal2_lane): Likewise.
1119 (sqdmlsl2_lane): Likewise.
1120 (sqdmlal2_laneq): Likewise.
1121 (sqdmlsl2_laneq): Likewise.
1122
1123 2014-09-09 Nick Clifton <nickc@redhat.com>
1124
1125 * doc/invoke.texi (Optimization Options): Add missing @gol to the
1126 end of a line.
1127 (S/390 and zSeries Options): Remove superfluous word from the
1128 description of the -mhotpatch option.
1129
1130 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
1131
1132 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
1133 * ira.c: #include "shrink-wrap.h"
1134 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
1135 * ifcvt.c: #include "shrink-wrap.h"
1136 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
1137
1138 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
1139
1140 * common/config/picochip/picochip-common.c: Remove.
1141 * config.gcc: Remove support for picochip.
1142 * config/picochip/constraints.md: Remove.
1143 * config/picochip/dfa_space.md: Remove.
1144 * config/picochip/dfa_speed.md: Remove.
1145 * config/picochip/picochip-protos.h: Remove.
1146 * config/picochip/picochip.c: Remove.
1147 * config/picochip/picochip.h: Remove.
1148 * config/picochip/picochip.md: Remove.
1149 * config/picochip/picochip.opt: Remove.
1150 * config/picochip/predicates.md: Remove.
1151 * config/picochip/t-picochip: Remove.
1152 * doc/md.texi: Don't document picochi.
1153
1154 2014-09-08 David Malcolm <dmalcolm@redhat.com>
1155
1156 * basic-block.h (control_flow_insn_p): Strengthen param from
1157 const_rtx to const rtx_insn *.
1158 * cfgbuild.c (control_flow_insn_p): Likewise.
1159
1160 2014-09-08 David Malcolm <dmalcolm@redhat.com>
1161
1162 * gcse.c (modify_mem_list): Strengthen this variable from
1163 vec<rtx> * to vec<rtx_insn *> *.
1164 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
1165 vec<rtx_insn *>.
1166 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
1167 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
1168 (record_last_mem_set_info): Strengthen param "insn" from rtx to
1169 rtx_insn *.
1170 (record_last_set_info): Likewise for local "last_set_insn".
1171
1172 2014-09-08 DJ Delorie <dj@redhat.com>
1173
1174 * doc/invoke.texi (MSP430 Options): Add -minrt.
1175
1176 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1177
1178 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
1179 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
1180 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
1181 handling SH_SPLAT.
1182 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
1183 of extracted lane.
1184 (adjust_splat): New function.
1185 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
1186 (dump_swap_insn_table): Add case for SH_SPLAT.
1187
1188 2014-09-08 Richard Biener <rguenther@suse.de>
1189
1190 PR ipa/63196
1191 * tree-inline.c (copy_loops): The source loop header should
1192 always be non-NULL.
1193 (tree_function_versioning): If loops need fixup after removing
1194 unreachable blocks fix them.
1195 * omp-low.c (simd_clone_adjust): Do not add incr block to
1196 loop under construction.
1197
1198 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
1199
1200 * config/aarch64/aarch64-builtins.c
1201 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
1202
1203 2014-09-08 Joseph Myers <joseph@codesourcery.com>
1204
1205 * config/i386/cygming.h (TF_SIZE): Remove.
1206 * config/i386/darwin.h (TF_SIZE): Remove.
1207 * config/i386/dragonfly.h (TF_SIZE): Remove.
1208 * config/i386/freebsd.h (TF_SIZE): Remove.
1209 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
1210 * config/i386/openbsdelf.h (TF_SIZE): Remove.
1211 * config/i386/sol2.h (TF_SIZE): Remove.
1212 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
1213 * config/ia64/linux.h (TF_SIZE): Remove.
1214 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
1215 * doc/tm.texi: Regenerate.
1216 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
1217
1218 2014-09-08 Joseph Myers <joseph@codesourcery.com>
1219
1220 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
1221 Remove.
1222 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
1223 Remove.
1224 * doc/tm.texi: Regenerate.
1225 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
1226 Poison.
1227 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
1228 * config/cris/cris.h (__make_dp): Remove.
1229
1230 2014-09-08 Richard Biener <rguenther@suse.de>
1231
1232 PR bootstrap/63204
1233 * cfgloop.c (mark_loop_for_removal): Track former header
1234 unconditionally.
1235 * cfgloop.h (struct loop): Add former_header member unconditionally.
1236 * loop-init.c (fix_loop_structure): Enable bogus loop removal
1237 diagnostic unconditionally.
1238
1239 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
1240
1241 PR target/63190
1242 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
1243 constraint for operand0 and remove write only modifier from operand3.
1244
1245 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
1246
1247 PR rtl-optimization/62208
1248 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
1249 rather than const0_rtx in eq/ne-xor simplifications.
1250
1251 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
1252
1253 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
1254 (arc_output_mi_thunk): Likewise.
1255
1256 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
1257 arguments to silence bogus warning.
1258
1259 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
1260
1261 PR middle-end/63171
1262 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
1263
1264 2014-09-06 Tom de Vries <tom@codesourcery.com>
1265
1266 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
1267 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
1268 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1269
1270 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
1271
1272 PR target/63188
1273 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
1274 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
1275
1276 2014-09-05 Easwaran Raman <eraman@google.com>
1277
1278 PR rtl-optimization/62146
1279 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
1280 hoisted instruction unconditional.
1281
1282 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
1283
1284 PR target/63187
1285 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
1286 Do not allow any_mask_operand for operands[2].
1287 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
1288
1289 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1290
1291 * config/arc/arc.c (arc_print_operand): Use insn method of
1292 final_sequence for type-safety.
1293 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
1294 "insn" from rtx to rtx_insn *.
1295 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
1296 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
1297 Likewise for locals "branch", "label".
1298 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
1299 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
1300 (same_cmp_following_p): Likewise for locals "i2", "i3".
1301 * config/sh/sh_optimize_sett_clrt.cc
1302 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
1303 param "cbranch_insn".
1304 * function.c (convert_jumps_to_returns): Likewis for local "jump".
1305 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
1306 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
1307 const rtx_insn *.
1308 (condjump_p): Likewise.
1309 (condjump_in_parallel_p): Likewise.
1310 (pc_set): Likewise.
1311 (any_uncondjump_p): Likewise.
1312 (any_condjump_p): Likewise.
1313 (condjump_label): Likewise.
1314 (returnjump_p): Strengthen param "insn" from rtx to
1315 const rtx_insn *.
1316 (onlyjump_p): Strengthen param "insn" from const_rtx to
1317 const rtx_insn *.
1318 (jump_to_label_p): Likewise.
1319 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
1320 (invert_jump): Likewise.
1321 * reorg.c (simplejump_or_return_p): Add checked cast when calling
1322 simplejump_p.
1323 (get_jump_flags): Strengthen param "insn" from rtx to
1324 const rtx_insn *.
1325 (get_branch_condition): Likewise.
1326 (condition_dominates_p): Likewise.
1327 (make_return_insns): Move declaration of local "pat" earlier, to
1328 after we've handled NONJUMP_INSN_P and non-sequences, using its
1329 methods to simplify the code and for type-safety.
1330 * rtl.h (find_constant_src): Strengthen param from const_rtx to
1331 const rtx_insn *.
1332 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
1333 (condjump_p): Strengthen param from const_rtx to
1334 const rtx_insn *.
1335 (any_condjump_p): Likewise.
1336 (any_uncondjump_p): Likewise.
1337 (pc_set): Likewise.
1338 (condjump_label): Likewise.
1339 (simplejump_p): Likewise.
1340 (returnjump_p): Likewise.
1341 (onlyjump_p): Likewise.
1342 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
1343 (invert_jump): Likewise.
1344 (condjump_in_parallel_p): Strengthen param from const_rtx to
1345 const rtx_insn *.
1346 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
1347 to const rtx_insn *.
1348 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
1349 to const rtx_insn *.
1350 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
1351
1352 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1353
1354 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
1355 above the conditional, and convert the check on GET_CODE to a
1356 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
1357 the conditional. Simplify the conditional by using methods of
1358 "trial_seq".
1359
1360 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1361
1362 * haifa-sched.c (check_clobbered_conditions): Strengthen local
1363 "link" from rtx to rtx_insn_list *, and use its methods for
1364 clarity and type-safety.
1365 (toggle_cancelled_flags): Likewise.
1366 (restore_last_backtrack_point): Likewise.
1367 (queue_to_ready): Use insn method of "link" in one place.
1368 (schedule_block): Strengthen local "link" from rtx to
1369 rtx_insn_list *, and use its methods for clarity and type-safety.
1370
1371 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1372
1373 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
1374 param "insn" from const_rtx to const rtx_insn *.
1375 (sched_get_reverse_condition_uncached): Likewise.
1376 (sched_get_condition_with_rev): Likewise.
1377 (sched_has_condition_p): Likewise.
1378 (sched_insns_conditions_mutex_p): Likewise for both params.
1379 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
1380 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
1381 (setup_insn_reg_uses): Move local "list" to be more tightly
1382 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
1383 its methods for clarity and type-safety.
1384 (sched_analyze_1): Strengthen local "pending" from rtx to
1385 rtx_insn_list *, and local "pending_mem" from rtx to
1386 rtx_expr_list *. Use methods of each for clarity and type-safety.
1387 (sched_analyze_2): Likewise.
1388 (sched_analyze_insn): Likewise.
1389
1390 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
1391 param from const_rtx to const rtx_insn *.
1392 (sched_insns_conditions_mutex_p): Likewise for both params.
1393 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
1394 param.
1395
1396 * system.h (CONST_CAST_RTX_INSN): New macro.
1397
1398 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1399
1400 * recog.c (peep2_attempt): Strengthen return type from rtx to
1401 rtx_insn *.
1402 (peep2_update_life): Likewise for params "last", "prev", removing
1403 a checked cast made redundant by this.
1404 (peephole2_optimize): Likewise for local "last".
1405
1406 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1407
1408 * basic-block.h (set_block_for_insn): Eliminate this macro in
1409 favor of...
1410 * rtl.h (set_block_for_insn): New inline function, imposing the
1411 requirement that the "insn" param is an rtx_insn *.
1412
1413 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1414
1415 * caller-save.c (setup_save_areas): Strengthen local "insn" from
1416 rtx to rtx_insn *.
1417 * final.c (get_call_reg_set_usage): Likewise for first param,
1418 eliminating a checked cast.
1419 * regs.h (get_call_reg_set_usage): Likewise for first param.
1420 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
1421 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
1422 cast, replacing references to "x" with "call_insn" where
1423 appropriate.
1424 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
1425 rtx_insn *, adding a checked cast.
1426
1427 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1428
1429 * output.h (final_scan_insn): Strengthen first param from rtx to
1430 rtx_insn *.
1431
1432 * final.c (final_scan_insn): Likewise, renaming it back from
1433 "uncast_insn" to "insn", eliminating the checked cast.
1434
1435 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
1436 "vec" with an rtx_sequence * "seq", taking a copy of
1437 "final_sequence", and using methods of "seq" for clarity, and for
1438 type-safety in the calls to final_scan_insn.
1439 * config/mips/mips.c (mips_output_conditional_branch): Use methods
1440 of "final_sequence" for clarity, and for type-safety in the call to
1441 final_scan_insn.
1442 * config/sh/sh.c (print_slot): Strengthen param from rtx to
1443 rtx_sequence * and rename from "insn" to "seq".
1444
1445 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1446
1447 * jump.c (delete_related_insns): Introduce a new local "table" by
1448 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
1449 get_labels method of "table" to simplify access to the labels in
1450 the jump table.
1451
1452 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1453
1454 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
1455 f_minmaxs, f_minmaxd types.
1456
1457 2014-09-05 Richard Biener <rguenther@suse.de>
1458
1459 * cfgloop.c (mark_loop_for_removal): Record former header
1460 when ENABLE_CHECKING.
1461 * cfgloop.h (strut loop): Add former_header member when
1462 ENABLE_CHECKING.
1463 * loop-init.c (fix_loop_structure): Sanity check loops
1464 marked for removal if they re-appeared.
1465
1466 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1467
1468 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
1469 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
1470
1471 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
1472 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
1473 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
1474 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
1475 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
1476 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
1477 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
1478 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
1479 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
1480 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
1481 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
1482 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
1483 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
1484 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
1485 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
1486 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
1487 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
1488 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
1489 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
1490 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
1491 with int{32,16,8}_t.
1492
1493 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1494
1495 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
1496 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
1497 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
1498 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
1499 Remove temporary __asm__ and reimplement.
1500
1501 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1502
1503 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
1504 handling cmge, cmgt, cmeq, cmtst.
1505
1506 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
1507 cmlt, cmgeu, cmgtu, cmtst): Remove.
1508
1509 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
1510 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
1511 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
1512 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
1513
1514 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1515
1516 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
1517 TYPES_TST): Define.
1518 (aarch64_fold_builtin): Update pattern for cmtst.
1519
1520 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
1521 Declare.
1522
1523 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
1524
1525 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
1526 Switch operands, separate out more cases, refactor.
1527
1528 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
1529
1530 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
1531 argument; rename old version to...
1532 (aarch64_const_vec_all_same_in_range_p): ...this.
1533 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
1534
1535 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
1536
1537 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1538
1539 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
1540 Remove qualifier_const_pointer, update comment.
1541
1542 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1543
1544 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
1545
1546 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1547
1548 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
1549 varargs with pointer parameter.
1550 (aarch64_simd_expand_builtin): pass pointer into previous.
1551
1552 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1553
1554 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
1555 alus_ext.
1556
1557 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1558
1559 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
1560 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
1561 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
1562 Replace temporary asm with call to builtin.
1563 (vrbit_p8, vrbitq_p8): New functions.
1564
1565 2014-09-05 Richard Biener <rguenther@suse.de>
1566
1567 * cfgloop.c (mark_loop_for_removal): New function.
1568 * cfgloop.h (mark_loop_for_removal): Declare.
1569 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
1570 (merge_blocks): Likewise.
1571 (duplicate_block): Likewise.
1572 * except.c (sjlj_emit_dispatch_table): Likewise.
1573 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
1574 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
1575 (thread_through_loop_header): Likewise.
1576
1577 2014-09-05 Richard Biener <rguenther@suse.de>
1578
1579 PR middle-end/63148
1580 * fold-const.c (try_move_mult_to_index): Remove.
1581 (fold_binary_loc): Do not call it.
1582 * tree-data-ref.c (dr_analyze_indices): Strip conversions
1583 from the base object again.
1584
1585 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
1586
1587 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
1588 DImode.
1589
1590 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1591
1592 PR target/55701
1593 * config/arm/arm.md (setmem): New pattern.
1594 * config/arm/arm-protos.h (struct tune_params): New fields.
1595 (arm_gen_setmem): New prototype.
1596 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
1597 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
1598 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
1599 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
1600 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
1601 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
1602 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
1603 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
1604 (arm_const_inline_cost): New function.
1605 (arm_block_set_max_insns): New function.
1606 (arm_block_set_non_vect_profit_p): New function.
1607 (arm_block_set_vect_profit_p): New function.
1608 (arm_block_set_unaligned_vect): New function.
1609 (arm_block_set_aligned_vect): New function.
1610 (arm_block_set_unaligned_non_vect): New function.
1611 (arm_block_set_aligned_non_vect): New function.
1612 (arm_block_set_vect, arm_gen_setmem): New functions.
1613
1614 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1615
1616 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
1617
1618 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1619
1620 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
1621
1622 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1623
1624 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
1625 an rtx.
1626 * valtrack.h: Adjust.
1627
1628 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1629
1630 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
1631 an rtx.
1632 (emit_jump_insn_before_noloc): Likewise.
1633 (emit_call_insn_before_noloc): Likewise.
1634 (emit_label_before): Likewise.
1635 (emit_label_after): Likewise.
1636 (emit_insn_before_setloc): Likewise.
1637 (emit_jump_insn_before_setloc): Likewise.
1638 (emit_call_insn_before_setloc): Likewise.
1639 (emit_call_insn_before): Likewise.
1640 * rtl.h: Adjust.
1641
1642 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1643
1644 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
1645 rtx_insn *, eliminating a checked cast.
1646
1647 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1648
1649 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
1650 const_rtx to const rtx_insn *.
1651 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
1652 cast.
1653
1654 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1655
1656 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
1657 fixup_args_size_notes.
1658 * expr.c (fixup_args_size_notes): Strengthen first two params from
1659 rtx to rtx_insn *, eliminating a checked cast.
1660 * rtl.h (fixup_args_size_notes): Strengthen first two params from
1661 rtx to rtx_insn *.
1662
1663 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1664
1665 * haifa-sched.c (get_ready_element): Strengthen return type from
1666 rtx to rtx_insn *.
1667 * sched-int.h (get_ready_element): Likewise.
1668
1669 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
1670
1671 PR target/63165
1672 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
1673 indexed_or_indirect_operand instead of memory_operand.
1674 (floatsi<mode>2_lfiwzx_mem): Ditto.
1675
1676 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1677
1678 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
1679 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
1680 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
1681
1682 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1683
1684 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
1685 rtx.
1686 (get_last_nonnote_insn): Likewise.
1687 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
1688 * resource.c (find_basic_block): Likewise.
1689 * rtl.h: Adjust.
1690 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
1691 const_rtx.
1692
1693 2014-09-04 David Malcolm <dmalcolm@redhat.com>
1694
1695 * genattr.c (main): Within the prototype of insn_latency written
1696 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
1697 * genautomata.c (output_internal_maximal_insn_latency_func):
1698 Within the implementation of insn_latency written out to
1699 insn-automata.c, strengthen both params from rtx to rtx_insn *,
1700 eliminating a pair of checked casts.
1701
1702 2014-09-04 David Malcolm <dmalcolm@redhat.com>
1703
1704 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
1705 rtx_insn *.
1706
1707 * rtl.h (eh_returnjump_p): Likewise.
1708
1709 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
1710
1711 * Makefile.in (TAGS): Handle constructs in timevar.def.
1712
1713 2014-09-04 Guozhi Wei <carrot@google.com>
1714
1715 PR target/62040
1716 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
1717 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
1718 it into two patterns.
1719 (move_lo_quad_internal_be_<mode>): Likewise.
1720
1721 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1722
1723 * doc/options.texi: Document that Var and Init are required if CPP
1724 is given.
1725 * optc-gen.awk: Require Var and Init if CPP is given.
1726 * common.opt (Wpedantic): Use Init.
1727
1728 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1729
1730 * config/rs6000/rs6000.c (special_handling_values): Add
1731 SH_EXTRACT.
1732 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
1733 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
1734 as swappable with special handling SH_EXTRACT. Remove
1735 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
1736 optimization.
1737 (adjust_extract): New function.
1738 (handle_special_swappables): Add default to case statement; add
1739 case for SH_EXTRACT that calls adjust_extract.
1740 (dump_swap_insn_table): Handle SH_EXTRACT.
1741
1742 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1743
1744 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
1745 selection of 0th memory doubleword, regardless of endianness.
1746
1747 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1748
1749 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
1750
1751 2014-09-04 Alan Modra <amodra@gmail.com>
1752
1753 PR debug/60655
1754 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
1755 can't be output.
1756
1757 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
1758
1759 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
1760 * targhooks.c (default_dwarf_frame_reg_mode): New function.
1761 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
1762 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
1763 * doc/tm.texi: Regenerate.
1764 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
1765 selection logic to default_dwarf_frame_reg_mode.
1766
1767 2014-09-03 Marek Polacek <polacek@redhat.com>
1768
1769 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
1770 by -Wall.
1771
1772 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
1773
1774 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
1775 the automodified register.
1776
1777 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
1778
1779 * output.h (get_some_local_dynamic_name): Declare.
1780 * final.c (some_local_dynamic_name): New variable.
1781 (get_some_local_dynamic_name): New function.
1782 (final_end_function): Clear some_local_dynamic_name.
1783 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
1784 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1785 (print_operand): Report an error if '%&' is used inappropriately.
1786 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
1787 (get_some_local_dynamic_name_1): Delete.
1788 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
1789 (rs6000_get_some_local_dynamic_name): Delete.
1790 (rs6000_get_some_local_dynamic_name_1): Delete.
1791 (print_operand): Report an error if '%&' is used inappropriately.
1792 * config/s390/s390.c (machine_function): Remove some_ld_name.
1793 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1794 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
1795 * config/sparc/sparc.c: Include rtl-iter.h.
1796 (machine_function): Remove some_ld_name.
1797 (sparc_print_operand): Report an error if '%&' is used inappropriately.
1798 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1799
1800 2014-09-03 Richard Henderson <rth@redhat.com>
1801
1802 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
1803 (aarch64_popwb_pair_reg): Remove.
1804 (aarch64_set_frame_expr): Remove.
1805 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
1806 the restore ops performed by the insns generated.
1807 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
1808 insn. Perform the calls_eh_return addition later; do not attempt to
1809 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
1810 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
1811 special markup at all. Load cfun->machine->frame.hard_fp_offset
1812 into a local variable.
1813 (aarch64_frame_pointer_required): Don't check calls_alloca.
1814
1815 2014-09-03 Richard Biener <rguenther@suse.de>
1816
1817 * opts.c (default_options_optimization): Adjust
1818 max-combine-insns to 2 for -Og.
1819
1820 2014-09-03 Martin Jambor <mjambor@suse.cz>
1821
1822 PR ipa/62015
1823 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
1824 pass-trough jump functions correctly.
1825
1826 2014-09-03 Martin Jambor <mjambor@suse.cz>
1827
1828 PR ipa/61986
1829 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
1830 created replacements in ascending order of offsets.
1831 (known_aggs_to_agg_replacement_list): Likewise.
1832
1833 2014-09-03 Martin Liska <mliska@suse.cz>
1834
1835 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
1836 is set to set uninitialized value for vnresult.
1837
1838 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1839
1840 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
1841 for TARGET_MUST_PASS_IN_STACK.
1842
1843 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1844
1845 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
1846 for TARGET_ARG_PARTIAL_BYTES.
1847
1848 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1849
1850 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
1851 instructions for varargs implementation.
1852 (nds32_expand_epilogue): Emit stack adjustment instructions for
1853 varargs implementation.
1854
1855 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1856
1857 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
1858 optimization detection.
1859
1860 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1861
1862 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
1863 arguments.
1864 (nds32_function_arg_advance): Deal with nameless arguments.
1865 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
1866 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
1867 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
1868
1869 2014-09-03 Richard Biener <rguenther@suse.de>
1870
1871 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
1872 (struct bb_bitmap_sets): Remove deferred member.
1873 (BB_DEFERRED): Remove.
1874 (defer_or_phi_translate_block): Remove.
1875 (compute_antic_aux): Remove deferring of blocks, assert
1876 proper iteration order.
1877 (compute_antic): Do not set BB_DEFERRED.
1878 (eliminate): Allocate el_avail of proper size initially.
1879
1880 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1881
1882 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
1883 according to the value of crtl->args.pretend_args_size.
1884
1885 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1886
1887 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
1888 varargs information.
1889
1890 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1891
1892 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
1893 implementation for TARGET_SETUP_INCOMING_VARARGS.
1894 (nds32_strict_argument_naming): Refine comment.
1895 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
1896 Define for future implementation.
1897
1898 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
1899
1900 * config/i386/adxintrin.h (_subborrow_u32): New.
1901 (_addcarry_u32): Ditto.
1902 (_subborrow_u64): Ditto.
1903 (_addcarry_u64): Ditto.
1904 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
1905 IX86_BUILTIN_SBB64.
1906 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
1907 __builtin_ia32_sbb_u64
1908
1909 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1910
1911 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
1912 GPR-specific stuff.
1913 (nds32_function_arg_advance): Likewise.
1914 (nds32_init_cumulative_args): Likewise.
1915 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
1916 (NDS32_FIRST_GPR_REGNUM): Define.
1917 (NDS32_LAST_GPR_REGNUM): Define.
1918 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
1919 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
1920 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
1921 (machine_function): Use GRP-specific stuff.
1922
1923 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1924
1925 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
1926 (nds32_expand_epilogue): Likewise.
1927 (nds32_expand_prologue_v3push): Likewise.
1928 (nds32_expand_epilogue_v3pop): Likewise.
1929
1930 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1931
1932 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
1933 v3push/v3pop for variadic function.
1934 * config/nds32/nds32.md (prologue, epilogue): Likewise.
1935
1936 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1937
1938 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
1939 Check rtx for varargs implementation.
1940 (nds32_output_stack_pop): Likewise.
1941 * config/nds32/nds32-protos.h: Have a rtx argument for
1942 nds32_output_stack_push and nds32_output_stack_pop.
1943 * config/nds32/nds32.md: Likewise.
1944
1945 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1946
1947 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
1948 to check if FUNC is an interrupt service routine.
1949 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
1950
1951 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1952
1953 * config/nds32/nds32.h (machine_function): Add some fields for variadic
1954 arguments implementation.
1955
1956 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1957
1958 * config/nds32/nds32-predicates.c
1959 (nds32_valid_stack_push_pop): Rename to ...
1960 (nds32_valid_stack_push_pop_p): ... this.
1961 * config/nds32/nds32-protos.h: Likewise.
1962 * config/nds32/predicates.md: Likewise.
1963
1964 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1965
1966 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
1967 (nds32_emit_stack_v3push): ... this.
1968 (nds32_gen_stack_v3pop): Rename to ...
1969 (nds32_emit_stack_v3pop): ... this and consider CFA restore
1970 information.
1971
1972 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1973
1974 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
1975 (nds32_emit_stack_push_multiple): ... this.
1976 (nds32_gen_stack_pop_multiple): Rename to ...
1977 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
1978 information.
1979
1980 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1981
1982 PR target/61078
1983 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
1984 and add a second splitter to handle the remaining cases.
1985
1986 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1987
1988 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
1989
1990 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
1991
1992 * cfgexpand.c (label_rtx_for_bb): Change type to
1993 hash_map<basic_block, rtx_code_label *> *.
1994 (expand_gimple_basic_block): Adjust.
1995 (pass_expand::execute): Likewise.
1996
1997 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
1998
1999 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
2000 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
2001 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
2002 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
2003 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
2004 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
2005 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
2006 of rtx.
2007
2008 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
2009
2010 * alloc-pool.c: Include coretypes.h.
2011 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
2012 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
2013 hash_set instead of htab.
2014 * ggc-page.c (in_gc): New variable.
2015 (ggc_free): Do nothing if a collection is taking place.
2016 (ggc_collect): Set in_gc appropriately.
2017 * ggc.h (gt_ggc_mx(const char *)): New function.
2018 (gt_pch_nx(const char *)): Likewise.
2019 (gt_ggc_mx(int)): Likewise.
2020 (gt_pch_nx(int)): Likewise.
2021 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
2022 (hash_map::hash_entry::pch_nx): Likewise.
2023 (hash_map::hash_entry::pch_nx_helper): Likewise.
2024 (hash_map::hash_map): Adjust.
2025 (hash_map::create_ggc): New function.
2026 (gt_ggc_mx): Likewise.
2027 (gt_pch_nx): Likewise.
2028 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
2029 (default_hashset_traits::pch_nx): Likewise.
2030 (hash_set::hash_entry::ggc_mx): Likewise.
2031 (hash_set::hash_entry::pch_nx): Likewise.
2032 (hash_set::hash_entry::pch_nx_helper): Likewise.
2033 (hash_set::hash_set): Adjust.
2034 (hash_set::create_ggc): New function.
2035 (hash_set::elements): Likewise.
2036 (gt_ggc_mx): Likewise.
2037 (gt_pch_nx): Likewise.
2038 * hash-table.h (hash_table::hash_table): Adjust.
2039 (hash_table::m_ggc): New member.
2040 (hash_table::~hash_table): Adjust.
2041 (hash_table::expand): Likewise.
2042 (hash_table::empty): Likewise.
2043 (gt_ggc_mx): New function.
2044 (hashtab_entry_note_pointers): Likewise.
2045 (gt_pch_nx): Likewise.
2046
2047 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2048
2049 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
2050 built-in definition.
2051 (XVCVUXDDP_SCALE): Likewise.
2052 (XVCVDPSXDS_SCALE): Likewise.
2053 (XVCVDPUXDS_SCALE): Likewise.
2054 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2055 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
2056 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
2057 VSX_BUILTIN_XVCVDPUXDS_SCALE.
2058 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
2059 prototype.
2060 * config/rs6000/rs6000.c (real.h): New include.
2061 (rs6000_scale_v2df): New function.
2062 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
2063 (UNSPEC_VSX_XVCVUXDDP): Likewise.
2064 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
2065 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
2066 (vsx_xvcvsxddp_scale): New define_expand.
2067 (vsx_xvcvsxddp): New define_insn.
2068 (vsx_xvcvuxddp_scale): New define_expand.
2069 (vsx_xvcvuxddp): New define_insn.
2070 (vsx_xvcvdpsxds_scale): New define_expand.
2071 (vsx_xvcvdpsxds): New define_insn.
2072 (vsx_xvcvdpuxds_scale): New define_expand.
2073 (vsx_xvcvdpuxds): New define_insn.
2074 * doc/extend.texi (vec_ctf): Add new prototypes.
2075 (vec_cts): Likewise.
2076 (vec_ctu): Likewise.
2077 (vec_splat): Likewise.
2078 (vec_div): Likewise.
2079 (vec_mul): Likewise.
2080
2081 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2082
2083 PR target/62275
2084 * config/arm/neon.md
2085 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
2086 <v_cmp_result>): New pattern.
2087 * config/arm/iterators.md (NEON_VCVT): New int iterator.
2088 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
2089 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
2090 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
2091 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
2092 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
2093
2094 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2095
2096 PR target/62275
2097 * config/arm/iterators.md (FIXUORS): New code iterator.
2098 (VCVT): New int iterator.
2099 (su_optab): New code attribute.
2100 (su): Likewise.
2101 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
2102
2103 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2104
2105 * config/aarch64/predicates.md (aarch64_comparison_operation):
2106 New special predicate.
2107 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
2108 aarch64_comparison_operation instead of matching an operator.
2109 Update operand numbers.
2110 (csinc3<mode>_insn): Likewise.
2111 (*csinv3<mode>_insn): Likewise.
2112 (*csneg3<mode>_insn): Likewise.
2113 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
2114 * config/aarch64/aarch64.c (aarch64_get_condition_code):
2115 Return -1 instead of aborting on invalid condition codes.
2116 (aarch64_print_operand): Update aarch64_get_condition_code callsites
2117 to assert that the returned condition code is valid.
2118 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
2119
2120 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
2121
2122 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
2123 tree.def, and gimple.def
2124
2125 2014-09-02 Jakub Jelinek <jakub@redhat.com>
2126 Balaji V. Iyer <balaji.v.iyer@intel.com>
2127 Igor Zamyatin <igor.zamyatin@intel.com>
2128
2129 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
2130 (__cilkrts_cilk_for_64): Likewise.
2131 * cilk-common.c (declare_cilk_for_builtin): New function.
2132 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
2133 __cilkrts_cilk_for_64 bultins.
2134 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
2135 CILK_TI_F_LOOP_64.
2136 (cilk_for_32_fndecl): New define.
2137 (cilk_for_64_fndecl): Likewise.
2138 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
2139 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
2140 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
2141 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
2142 GF_OMP_FOR_COMBINED_INTO.
2143 * gimplify.c (gimplify_scan_omp_clauses): Added
2144 OMP_CLAUSE__CILK_FOR_COUNT_ case.
2145 (gimplify_adjust_omp_clauses): Ditto.
2146 (gimplify_omp_for): Added CILK_FOR case.
2147 (gimplify_expr): Ditto.
2148 * omp-low.c: Include cilk.h.
2149 (extract_omp_for_data): Set appropriate kind for
2150 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
2151 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
2152 (create_omp_child_function_name): Added second argument to handle
2153 cilk_for case.
2154 (cilk_for_check_loop_diff_type): New function.
2155 (expand_cilk_for_call): Likewise.
2156 (expand_cilk_for): Likewise.
2157 (create_omp_child_function): Set cilk_for_count; handle the cases when
2158 it is true; call create_omp_child_function_name with second argument.
2159 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
2160 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
2161 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
2162 * tree-nested.c (convert_nonlocal_omp_clauses): Added
2163 OMP_CLAUSE__CILK_FOR_COUNT_ case.
2164 (convert_local_omp_clauses): Ditto.
2165 * tree-pretty-print.c (dump_omp_clause): Added
2166 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
2167 (dump_generic_node): Added CILK_FOR case.
2168 * tree.c (omp_clause_num_ops): New element
2169 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
2170 (omp_clause_code_name): New element _Cilk_for_count_.
2171 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
2172 * tree.def: Add tree code for CILK_FOR.
2173
2174 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2175
2176 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
2177 (ppc403-compare): Add "exts with dot" case.
2178 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
2179 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
2180 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
2181 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
2182 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
2183 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
2184 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
2185 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
2186 cell-cmp-microcoded): Similarly.
2187 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
2188 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
2189 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
2190 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
2191 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
2192 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
2193 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
2194 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
2195 (power6-compare): Add "exts with dot" case.
2196 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
2197 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
2198 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
2199
2200 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
2201 if avoiding Cell microcode.
2202 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
2203 (is_cracked_insn): Ditto.
2204 (insn_must_be_first_in_group): Ditto.
2205 * config/rs6000/rs6000.md (dot): Adjust comment.
2206 (cell_micro): Handle exts+dot.
2207 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
2208 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
2209 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
2210 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
2211 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
2212 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
2213 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
2214
2215 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2216
2217 * config/rs6000/rs6000.md (QHSI): Delete.
2218 (EXTQI, EXTHI, EXTSI): New mode iterators.
2219 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
2220 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
2221 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
2222 9 anonymous instructions, and 8 splitters): Delete.
2223 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
2224 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
2225 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
2226 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
2227 *zero_extendsi<mode>2_dot2): New.
2228
2229 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2230
2231 * config/rs6000/rs6000.md (any_extend): New code iterator.
2232 (u, su): New code attributes.
2233 (dmode, DMODE): New mode attributes.
2234 (<su>mul<mode>3_highpart): New.
2235 (*<su>mul<mode>3_highpart): New.
2236 (<su>mulsi3_highpart_le): New.
2237 (<su>muldi3_highpart_le): New.
2238 (<su>mulsi3_highpart_64): New.
2239 (<u>mul<mode><dmode>3): New.
2240 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
2241 splitters): Delete.
2242 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
2243 splitters): Delete.
2244
2245 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2246
2247 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
2248 *mulsi3_internal2, and two splitters): Delete.
2249 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
2250 Delete.
2251 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
2252
2253 2014-09-02 Richard Biener <rguenther@suse.de>
2254
2255 PR tree-optimization/62695
2256 * tree-ssa-structalias.c (find_func_clobbers): Add missing
2257 vector truncate.
2258
2259 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
2260
2261 PR target/62312
2262 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
2263
2264 2014-09-01 Andi Kleen <ak@linux.intel.com>
2265
2266 * file-find.c (add_prefix_begin): Add.
2267 (do_add_prefix): Rename from add_prefix with first argument.
2268 (add_prefix): Add new wrapper.
2269 * file-find.h (add_prefix_begin): Add.
2270 * gcc-ar.c (main): Support -B option.
2271
2272 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
2273
2274 * genemit.c: Include dumpfile.h.
2275 (gen_split): Print name of splitter function to dump file.
2276
2277 2014-09-01 Richard Biener <rguenther@suse.de>
2278
2279 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
2280 Use stack auto_vecs for constraint expressions.
2281 (find_func_aliases_for_call): Likewise.
2282 (find_func_aliases): Likewise.
2283 (find_func_clobbers): Likewise.
2284
2285 2014-09-01 Richard Biener <rguenther@suse.de>
2286
2287 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
2288 operands vector in most cases. Remove redundant code.
2289
2290 2014-09-01 Olivier Hainque <hainque@adacore.com>
2291
2292 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
2293 $WIND_BASE instead of designating a harcoded arbitrary home dir.
2294 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
2295
2296 2014-09-01 Richard Biener <rguenther@suse.de>
2297
2298 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
2299 copy_reference_ops_from_call, vn_nary_op_compute_hash,
2300 vn_reference_compute_hash, vn_reference_insert): Remove.
2301 (vn_reference_lookup_call): New function.
2302 * tree-ssa-sccvn.c (vn_reference_compute_hash,
2303 copy_reference_ops_from_ref, copy_reference_ops_from_call,
2304 vn_reference_insert, vn_nary_op_compute_hash): Make static.
2305 (create_reference_ops_from_call): Remove.
2306 (vn_reference_lookup_3): Properly update shared_lookup_references.
2307 (vn_reference_lookup_pieces): Assert that we updated
2308 shared_lookup_references properly.
2309 (vn_reference_lookup): Likewise.
2310 (vn_reference_lookup_call): New function.
2311 (visit_reference_op_call): Use it. Avoid re-building the
2312 reference ops.
2313 (visit_reference_op_load): Remove redundant lookup.
2314 (visit_reference_op_store): Perform special tail-merging work
2315 only when possibly doing tail-merging.
2316 (visit_use): Likewise.
2317 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
2318
2319 2014-09-01 Jakub Jelinek <jakub@redhat.com>
2320
2321 PR target/62025
2322 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
2323 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
2324 (find_inc): Revert 2014-08-13 change.
2325
2326 2014-09-01 Marek Polacek <polacek@redhat.com>
2327
2328 PR middle-end/61903
2329 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
2330 Change the type of V to unsigned HOST_WIDE_INT.
2331
2332 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
2333
2334 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
2335 the size of byte markers.
2336 (do_shift_rotate): Fix confusion between host, target and marker byte
2337 size.
2338 (verify_symbolic_number_p): Likewise.
2339 (find_bswap_or_nop_1): Likewise.
2340 (find_bswap_or_nop): Likewise.
2341
2342 2014-09-01 Olivier Hainque <hainque@adacore.com>
2343
2344 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
2345 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
2346
2347 2014-09-01 Jakub Jelinek <jakub@redhat.com>
2348
2349 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
2350 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
2351 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
2352
2353 2014-09-01 Yury Gribov <y.gribov@samsung.com>
2354
2355 PR sanitizer/61897
2356 PR sanitizer/62140
2357 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
2358 (build_check_stmt): Likewise.
2359 (instrument_strlen_call): Likewise.
2360 (asan_expand_check_ifn): Likewise and fix types.
2361 (maybe_cast_to_ptrmode): New function.
2362
2363 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2364
2365 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
2366
2367 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
2368
2369 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
2370
2371 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
2372
2373 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
2374 prefix to function labels when generating fast indirect calls.
2375
2376 2014-08-30 David Malcolm <dmalcolm@redhat.com>
2377
2378 PR bootstrap/62304
2379
2380 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
2381 param back from rtx_insn * to rtx. Rename param from "label" to
2382 "label_or_return", reintroducing "label" as an rtx_insn * after
2383 we've ensured it's not a RETURN.
2384 (first_active_target_insn): Likewise for return type and param;
2385 add a checked cast to rtx_insn * once we've ensured "insn" is not
2386 a RETURN.
2387 (steal_delay_list_from_target): Convert param "pnew_thread" back
2388 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
2389 with JUMP_LABEL.
2390 (own_thread_p): Convert param "thread" back from an rtx_insn * to
2391 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
2392 cast once we've established we're not dealing with a RETURN,
2393 renaming subsequent uses of "thread" to "thread_insn".
2394 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
2395 to JUMP_LABEL.
2396 (follow_jumps): Convert return type and param "label" from
2397 rtx_insn * back to rtx. Move initialization of "value" to after
2398 the handling for ANY_RETURN_P, adding a checked cast there to
2399 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
2400 rename to "this_label_or_return", reintroducing "this_label" as
2401 an rtx_insn * once we've handled the case where it could be an
2402 ANY_RETURN_P.
2403 (fill_slots_from_thread): Rename param "thread" to
2404 "thread_or_return", converting from an rtx_insn * back to an rtx.
2405 Reintroduce name "thread" as an rtx_insn * local with a checked
2406 cast once we've handled the case of it being an ANY_RETURN_P.
2407 Convert local "new_thread" from an rtx_insn * back to an rtx.
2408 Add a checked cast when assigning to "trial" from "new_thread".
2409 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
2410 checked cast to rtx_insn * from "new_thread" when invoking
2411 get_label_before.
2412 (fill_eager_delay_slots): Convert locals "target_label",
2413 "insn_at_target" from rtx_insn * back to rtx.
2414 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
2415 (relax_delay_slots): Convert locals "trial", "target_label" from
2416 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
2417 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
2418 invoking update_block.
2419 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
2420 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
2421
2422 * resource.h (mark_target_live_regs): Undo erroneous conversion
2423 of second param of r214693, converting it back from rtx_insn * to
2424 rtx, since it could be a RETURN.
2425
2426 * resource.c (find_dead_or_set_registers): Similarly, convert
2427 param "jump_target" back from an rtx_insn ** to an rtx *, as we
2428 could be writing back a RETURN. Rename local rtx_insn * "next" to
2429 "next_insn", and introduce "lab_or_return" as a local rtx,
2430 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
2431 (mark_target_live_regs): Undo erroneous conversion
2432 of second param of r214693, converting it back from rtx_insn * to
2433 rtx, since it could be a RETURN. Rename it from "target" to
2434 "target_maybe_return", reintroducing the name "target" as a local
2435 rtx_insn * with a checked cast, after we've handled the case of
2436 ANY_RETURN_P.
2437
2438 2014-08-29 DJ Delorie <dj@redhat.com>
2439
2440 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
2441 pointer size up to a power of two.
2442 * defaults.h (DWARF2_ADDR_SIZE): Round up.
2443 (POINTER_SIZE_UNITS): New, rounded up value.
2444 * dwarf2asm.c (size_of_encoded_value): Use it.
2445 (dw2_output_indirect_constant_1): Likewise.
2446 * expmed.c (init_expmed_one_conv): We now know the sizes of
2447 partial int modes.
2448 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
2449 * optabs.c (expand_float): Use precision, not size.
2450 (expand_fix): Likewise.
2451 * simplify-rtx (simplify_unary_operation_1): Likewise.
2452 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2453 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
2454 (default_assemble_integer) Likewise.
2455 (dump_tm_clone_pairs): Likewise.
2456 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
2457 * var-tracking.c (adjust_mems): Allow partial-int modes also.
2458 (prepare_call_arguments): Likewise.
2459 * stor-layout.c (finalize_type_size): Preserve precision.
2460 (layout_type): Use precision, not size.
2461
2462 * expr.c (convert_move): If the target has an explicit converter,
2463 use it.
2464
2465 2014-08-29 David Malcolm <dmalcolm@redhat.com>
2466
2467 * gdbinit.in: Skip various inline functions in rtl.h when
2468 stepping.
2469
2470 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
2471
2472 PR bootstrap/62301
2473 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
2474
2475 2014-08-29 Richard Biener <rguenther@suse.de>
2476
2477 PR tree-optimization/62291
2478 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
2479 exactly the vector size needed and use quick_push.
2480 (phi_translate_1): Adjust comment.
2481 (valid_in_sets): Remove block argument and remove pointless
2482 checking of NAMEs.
2483 (dependent_clean): Adjust for removal of block argument.
2484 (clean): Likewise.
2485 (compute_antic_aux): Likewise.
2486 (compute_partial_antic_aux): Likewise.
2487
2488 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
2489 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2490 Anna Tikhonova <anna.tikhonova@intel.com>
2491 Ilya Tocar <ilya.tocar@intel.com>
2492 Andrey Turetskiy <andrey.turetskiy@intel.com>
2493 Ilya Verbin <ilya.verbin@intel.com>
2494 Kirill Yukhin <kirill.yukhin@intel.com>
2495 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2496
2497 * config/i386/sse.md
2498 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
2499 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
2500 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
2501 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
2502
2503 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
2504 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2505 Anna Tikhonova <anna.tikhonova@intel.com>
2506 Ilya Tocar <ilya.tocar@intel.com>
2507 Andrey Turetskiy <andrey.turetskiy@intel.com>
2508 Ilya Verbin <ilya.verbin@intel.com>
2509 Kirill Yukhin <kirill.yukhin@intel.com>
2510 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2511
2512 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
2513 * config/i386/sse.md
2514 (define_mode_iterator VI4_128_8_256): New.
2515 (define_mode_iterator VI2_128_4_256): Ditto.
2516 (define_mode_iterator PMOV_DST_MODE): Rename into
2517 (define_mode_iterator PMOV_DST_MODE_1): this.
2518 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
2519 Use PMOV_DST_MODE_1 mode iterator.
2520 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
2521 Ditto.
2522 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
2523 Ditto.
2524 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
2525 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
2526 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
2527 (define_mode_iterator PMOV_DST_MODE_2): New.
2528 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
2529 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
2530 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
2531 Ditto.
2532 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
2533 (define_mode_attr pmov_dst_3): Ditto.
2534 (define_mode_attr pmov_dst_zeroed_3): Ditto.
2535 (define_mode_attr pmov_suff_3): Ditto.
2536 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
2537 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
2538 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
2539 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
2540 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
2541 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
2542 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
2543 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
2544 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
2545 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
2546 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
2547 (define_mode_attr pmov_dst_4): Ditto.
2548 (define_mode_attr pmov_dst_zeroed_4): Ditto.
2549 (define_mode_attr pmov_suff_4): Ditto.
2550 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
2551 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
2552 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
2553 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
2554 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
2555 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
2556 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
2557 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
2558 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
2559 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
2560 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
2561
2562 2014-08-29 Richard Biener <rguenther@suse.de>
2563
2564 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
2565 NON_LVALUE_EXPR in gimple.
2566
2567 2014-08-29 Richard Biener <rguenther@suse.de>
2568
2569 PR middle-end/62292
2570 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
2571 from previous refactoring.
2572 (gimple_fold_builtin_strncpy): Likewise.
2573
2574 2014-08-29 David Malcolm <dmalcolm@redhat.com>
2575
2576 PR bootstrap/62300
2577 * function.c (assign_parm_setup_reg): Remove erroneous checked
2578 cast to rtx_insn * on result of gen_extend_insn in favor of
2579 introducing a new local rtx "pat".
2580
2581 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2582
2583 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
2584 to silence warning.
2585 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
2586
2587 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2588
2589 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
2590 (next_insn): Likewise.
2591 * emit-rtl.c (next_insn): Likewise.
2592 (previous_insn): Likewise.
2593 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
2594 "insn" and "next" from rtx to rtx_insn *.
2595 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
2596 "insn", "insn1", "vliw_start", "prologue_end_note",
2597 "last_insn_in_packet".
2598
2599 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2600
2601 * shrink-wrap.h (active_insn_between): Strengthen both params from
2602 rtx to rtx_insn *.
2603 * function.c (active_insn_between): Likewise.
2604
2605 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2606
2607 * genattr.c (main): When writing out insn-attr.h, strengthen param
2608 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
2609 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
2610 writing out the definition of dfa_clear_single_insn_cache to the
2611 generated insn-automata.c
2612
2613 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2614
2615 * resource.h (clear_hashed_info_for_insn): Strengthen param from
2616 rtx to rtx_insn *.
2617 (incr_ticks_for_insn): Likewise.
2618 (init_resource_info): Likewise.
2619
2620 * resource.c (init_resource_info): Likewise.
2621 (clear_hashed_info_for_insn): Likewise.
2622 (incr_ticks_for_insn): Likewise.
2623
2624 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
2625 rtx to rtx_insn *.
2626 (steal_delay_list_from_target): Use methods of "seq".
2627 (try_merge_delay_insns): Use methods of "merged_insns".
2628 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
2629 (reorg_redirect_jump): Likewise for param "jump".
2630
2631 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2632
2633 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
2634 rtx to rtx_insn *.
2635 * config/s390/s390.c (s390_split_branches): Eliminate top-level
2636 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
2637 "set_insn".
2638 (s390_mainpool_finish): In three places, split out a local rtx
2639 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
2640 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
2641 and split another local rtx "insn" out into rtx "pat" and
2642 rtx_insn * "insn".
2643 * config/sh/sh.c (output_branchy_insn): Rather than working
2644 directly on operands[9], introduce local rtx_code_label *
2645 variables named "lab" in two places, working on them, and then
2646 assigning them to operands[9], so that the intervening operations
2647 are known by the type system to be on insns.
2648
2649 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2650
2651 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
2652 const rtx_insn *.
2653
2654 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
2655 in invocation of INSN_HAS_LOCATION.
2656
2657 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2658
2659 * config/rs6000/altivec.h (vec_xl): New #define.
2660 (vec_xst): Likewise.
2661 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
2662 (XXSPLTD_V2DI): Likewise.
2663 (DIV_V2DI): Likewise.
2664 (UDIV_V2DI): Likewise.
2665 (MUL_V2DI): Likewise.
2666 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2667 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
2668 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
2669 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
2670 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
2671 (UNSPEC_VSX_DIVSD): Likewise.
2672 (UNSPEC_VSX_DIVUD): Likewise.
2673 (UNSPEC_VSX_MULSD): Likewise.
2674 (vsx_mul_v2di): New insn-and-split.
2675 (vsx_div_v2di): Likewise.
2676 (vsx_udiv_v2di): Likewise.
2677 (vsx_xxspltd_<mode>): New insn.
2678
2679 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2680
2681 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
2682 NEXT_INSN.
2683 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
2684 (NEXT_INSN): Likewise.
2685 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
2686 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
2687 const rtx_insn *.
2688 (no_labels_between_p): Likewise for both params.
2689
2690 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
2691 cast when using NEXT_INSN on operands[2].
2692 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
2693 "insn" from rtx to rtx_insn *, adding a checked cast.
2694 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
2695 rtx_insn *.
2696 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
2697 for third param.
2698 (arc_text_label): Likewise for param "insn".
2699 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
2700 "insn".
2701 (arc_ccfsm_record_condition): Likewise for param "jump".
2702 (arc_text_label): Likewise for local "label".
2703 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
2704 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
2705 a method for typesafety. Add a checked cast.
2706 * config/arc/constraints.md (Clb): Add a checked cast when getting
2707 the CODE_LABEL from a LABEL_REF.
2708 * config/arm/arm.c (require_pic_register): Strengthen locals
2709 "seq", "insn" from rtx to rtx_insn *.
2710 (create_fix_barrier): Likewise for locals "selected", "next".
2711 (thumb1_reorg): Likewise for locals "prev", "insn".
2712 (arm_expand_prologue): Likewise for local "last".
2713 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
2714 operands[0].
2715 (thumb2_output_casesi): Likewise for operands[2].
2716 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
2717 strengthen local "insn" from rtx to rtx_insn *.
2718 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
2719 type and param "insn".
2720 (find_prev_insn_start): Likewise.
2721 (hwloop_optimize): Likewise for locals "insn", "last_insn",
2722 "prev".
2723 (gen_one_bundle): Likewise for loal "t".
2724 (find_load): Likewise for param "insn".
2725 (workaround_speculation): Likewise for locals "insn", "next",
2726 "target", "next_tgt".
2727 * config/c6x/c6x.c (assign_reservations): Likewise for both params
2728 and for locals "insn", "within", "last".
2729 (count_unit_reqs): Likewise for params "head", "tail" and local
2730 "insn".
2731 (try_rename_operands): Likewise for params "head", "tail".
2732 (reshuffle_units): Likewise for locals "head", "tail", "insn".
2733 (struct c6x_sched_context): Likewise for fields
2734 "last_scheduled_insn", "last_scheduled_iter0".
2735 (init_sched_state): Replace NULL_RTX with NULL.
2736 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
2737 to rtx_insn *.
2738 (undo_split_delayed_nonbranch): Likewise for param and for local
2739 "prev".
2740 (conditionalize_after_sched): Likewise for local "insn".
2741 (bb_earliest_end_cycle): Likewise.
2742 (filter_insns_above): Likewise for locals "insn", "next".
2743 (hwloop_optimize): Remove redundant checked cast.
2744 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
2745 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
2746 NULL_RTX with NULL.
2747 (cris_simple_epilogue): Likewise.
2748 (cris_expand_prologue): Likewise.
2749 (cris_expand_epilogue): Likewise.
2750 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
2751 local "insn" from rtx to rtx_insn *.
2752 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
2753 (struct frv_packet_group): Likewise for the elements within array
2754 fields "insns", "sorted", and for field "nop".
2755 (frv_packet): Likewise for the elements within array field
2756 "insns".
2757 (frv_add_insn_to_packet): Likewise for param "insn".
2758 (frv_insert_nop_in_packet): Likewise for param "insn" and local
2759 "last".
2760 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
2761 (frv_sort_insn_group_1): Likewise for local "insn".
2762 (frv_optimize_membar_local): Likewise.
2763 (frv_align_label): Likewise for locals "x", "last", "barrier",
2764 "label".
2765 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
2766 local.
2767 (ia64_sched_init): Likewise for local "insn".
2768 (scheduled_good_insn): Likewise for param "last".
2769 (struct _ia64_sched_context): Likewise for field
2770 "last_scheduled_insn".
2771 (ia64_init_sched_context): Replace NULL_RTX with NULL.
2772 (struct bundle_state): Likewise for field "insn".
2773 (issue_nops_and_insn): Likewise for param "insn".
2774 (get_next_important_insn): Likewise for return type and both
2775 params.
2776 (ia64_add_bundle_selector_before): Likewise for param "insn".
2777 (bundling): Likewise for params "prev_head_insn", "tail" and
2778 locals "insn", "next_insn", "b". Eliminate top-level local rtx
2779 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
2780 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
2781 Strengthen final param from rtx to rtx_insn *.
2782 (iq2000_move_1word): Likewise for second param.
2783 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
2784 param "cur_insn" and local "next_insn".
2785 (iq2000_move_1word): Likewise for param "insn".
2786 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
2787 casts when using NEXT_INSN on operands[1].
2788 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
2789 "insn" from rtx to rtx_insn *.
2790 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
2791 "x", introducing local rtx_insn * "insn" for when working with the
2792 CODE_LABEL of the LABEL_REF.
2793 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
2794 rtx_insn *.
2795 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
2796 param.
2797 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
2798 type.
2799 (conditionalize_block): Likewise for return type and param.
2800 (mcore_is_dead): Likewise for param "first" and local "insn".
2801 (emit_new_cond_insn): Likewise for return type.
2802 (conditionalize_block): Likewise for return type, param, and
2803 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
2804 "newinsn".
2805 (conditionalize_optimization): Likewise for local "insn".
2806 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
2807 using NEXT_INSN.
2808 * config/microblaze/microblaze.md: Add checked casts when using
2809 NEXT_INSN.
2810 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
2811 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
2812 and rtx_insn * "insn".
2813 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
2814 checked cast when using NEXT_INSN on operands[2].
2815 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
2816 local "insn" from rtx to rtx_insn *.
2817 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
2818 Likewise.
2819 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
2820 Add a checked cast when using NEXT_INSN on operands[1].
2821 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
2822 rtx to rtx_insn *.
2823 (pa_output_cbranch): Likewise for final param.
2824 (pa_output_lbranch): Likewise for second param.
2825 (pa_output_bb): Likewise for third param.
2826 (pa_output_bvb): Likewise.
2827 (pa_output_dbra): Likewise for second param.
2828 (pa_output_movb): Likewise.
2829 (pa_output_parallel_movb): Likewise.
2830 (pa_output_parallel_addb): Likewise.
2831 (pa_output_millicode_call): Likewise for first param.
2832 (pa_output_mul_insn): Likewise for second param.
2833 (pa_output_div_insn): Likewise for third param.
2834 (pa_output_mod_insn): Likewise for second param.
2835 (pa_jump_in_call_delay): Likewise for param.
2836 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
2837 (pa_output_div_insn): Likewise.
2838 (pa_output_mod_insn): Likewise.
2839 (pa_output_cbranch): Likewise.
2840 (pa_output_lbranch): Likewise.
2841 (pa_output_bb): Likewise.
2842 (pa_output_bvb): Likewise.
2843 (pa_output_dbra): Likewise.
2844 (pa_output_movb): Likewise.
2845 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
2846 to simplify and for typesafety.
2847 (pa_output_call): Use method of rtx_sequence *.
2848 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
2849 (pa_jump_in_call_delay): Likewise.
2850 (pa_output_parallel_movb): Likewise.
2851 (pa_output_parallel_addb): Likewise.
2852 (pa_following_call): Likewise.
2853 (pa_combine_instructions): Likewise for locals "anchor",
2854 "floater".
2855 (pa_can_combine_p): Likewise for params "anchor", "floater" and
2856 locals "start", "end".
2857 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
2858 param "insn" and local "local_insn".
2859 (picochip_final_prescan_insn): Likewise for local "local_insn".
2860 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
2861 local "insn".
2862 (uses_TOC): Likewise.
2863 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
2864 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
2865 splitting out to more tightly-scoped locals, 3 as rtx and one as
2866 rtx_insn *.
2867 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
2868 to rtx_insn *.
2869 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
2870 where needed.
2871 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
2872 to rtx_insn *.
2873 (fixup_addr_diff_vecs): Likewise.
2874 (reg_unused_after): Likewise for param 2.
2875 (sh_can_redirect_branch): Likewise for both params.
2876 (check_use_sfunc_addr): Likewise for param 1.
2877 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
2878 (find_barrier): Likewise for local "last_got".
2879 (gen_block_redirect): Likewise for return type, param "jump" and
2880 locals "prev", "scan", "next", "insn".
2881 (struct far_branch): Likewise for fields "near_label",
2882 "insert_place", "far_label".
2883 (gen_far_branch): Likewise for local "jump".
2884 (fixup_addr_diff_vecs): Likewise for param "first" and locals
2885 "insn", "prev".
2886 (barrier_align): Likewise for param and for locals "prev", "x".
2887 Introduce local rtx_sequence * "prev_seq" and use insn method for
2888 typesafety and clarity.
2889 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
2890 (get_dest_uid): Likewise for local "dest".
2891 (split_branches): Likewise for locals "next", "beyond", "label",
2892 "block", "far_label". Add checked casts when assigning to
2893 bp->far_label and "far_label".
2894 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
2895 (sequence_insn_p): Likewise.
2896 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
2897 more loop-scoped rtx "insn" when walking LABEL_REFS.
2898 (sh_can_redirect_branch): Strengthen both params from rtx to
2899 rtx_insn *.
2900 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
2901 new local rtx_sequence * "seq" via a dyn_cast, and use a method
2902 for clarity and typesafety.
2903 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
2904 "insn" from rtx to rtx_insn *.
2905 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
2906 when using NEXT_INSN on the CODE_LABEL in operands[2].
2907 (define_insn "casesi_worker_2"): Likewise.
2908 (define_insn "casesi_shift_media"): Likewise.
2909 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
2910 operands[3].
2911 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
2912 Strengthen field "insn" from rtx to rtx_insn *.
2913 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
2914 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
2915 param "start_insn" and local "start_insn".
2916 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
2917 field "insn".
2918 (find_set_of_reg_bb): Likewise for param "insn".
2919 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
2920 (trace_reg_uses): Likewise for param "start_insn".
2921 (sh_treg_combine::cbranch_trace): Likewise for field
2922 "cbranch_insn".
2923 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
2924 param "insn".
2925 (sh_treg_combine::record_set_of_reg): Likewise for param
2926 "start_insn" and local "i".
2927 (sh_treg_combine::can_remove_cstore): Likewise for local
2928 "prev_insn".
2929 (sh_treg_combine::try_optimize_cbranch): Likewise for param
2930 "insn".
2931 (sh_treg_combine::execute): Likewise for local "i".
2932 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
2933 param.
2934 (sparc_check_64): Likewise for second param.
2935 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
2936 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
2937 dyn_cast, using its insn method for typesafety and clarity.
2938 (empty_delay_slot): Strengthen param "insn" from rtx to
2939 rtx_insn *.
2940 (set_extends): Likewise.
2941 (sparc_check_64): Likewise.
2942 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
2943 for locals "seq", "last_insn".
2944 (combine_bnp): Likewise for param "insn".
2945 (xstormy16_reorg): Likewise for local "insn".
2946 * config/v850/v850.c (substitute_ep_register): Likewise for params
2947 "first_insn", "last_insn" and local "insn".
2948 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
2949 elements of "regs" array, and local "insn".
2950 * except.c (emit_note_eh_region_end): Likewise for param "insn".
2951 * final.c (final_sequence): Strengthen this global from rtx to
2952 rtx_sequence *.
2953 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
2954 rtx_insn *.
2955 (final_scan_insn): Update assignment to "final_sequence" to be
2956 from "seq", the cast version of "body", for type-safety.
2957 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
2958 "insns" from rtx to rtx_insn *.
2959 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
2960 * genattr.c (main): When writing out generated insn-attr.h,
2961 strengthen params 1 and 3 of eligible_for_delay,
2962 eligible_for_annul_true, eligible_for_annul_false from rtx to
2963 rtx_insn *.
2964 * genattrtab.c (write_eligible_delay): Likewise when writing out
2965 generated insn-attrtab.c; also local "insn" the generated
2966 functions.
2967 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
2968 to rtx_insn *.
2969 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
2970 "start_label" from rtx to rtx_insn *.
2971 * ira.c (decrease_live_ranges_number): Likewise for local "p".
2972 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
2973 "insns" and local "insn".
2974 (validate_equiv_mem): Likewise for param "start" and local "insn".
2975 (memref_used_between_p): Likewise for params "start", "end" and
2976 local "insn".
2977 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
2978 final param.
2979 * loop-doloop.c (doloop_optimize): Within region guarded by
2980 INSN_P (doloop_pat), introduce a new local rtx_insn *
2981 "doloop_insn" via a checked cast, and use it for typesafety,
2982 eventually writing the value back into doloop_pat.
2983 * output.h (final_sequence): Strengthen this global from rtx to
2984 rtx_sequence *.
2985 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
2986 reintroducing "insn" as an rtx_insn * via a checked cast.
2987 Strengthen param "attempt" and local "new_insn"from rtx to
2988 rtx_insn *.
2989 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
2990 to rtx_insn *.
2991 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
2992 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
2993 "p" in favor of more tightly-scoped replacements, sometimes rtx
2994 and sometimes rtx_insn *, as appropriate.
2995 (delete_output_reload): Eliminate top-level rtx "i1", splitting
2996 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
2997 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
2998 local "trial" from rtx to rtx_insn *.
2999 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
3000 rtx to rtx_insn *. Strenghten local "pat" from rtx to
3001 rtx_sequence * and use methods for clarity and typesafety.
3002 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
3003 rtx to rtx_insn *. Strenghten local "li" from rtx to
3004 rtx_insn_list * and use its methods for clarity and typesafety.
3005 (steal_delay_list_from_target): Strengthen param "insn" from rtx
3006 to rtx_insn *.
3007 (steal_delay_list_from_fallthrough): Likewise.
3008 (try_merge_delay_insns): Likewise for param "thread" and locals
3009 "trial", "next_trial", "delay_insn".
3010 (redundant_insn): Likewise for param "target" and local "trial".
3011 (own_thread_p): Likewise for param "thread" and locals
3012 "active_insn", "insn".
3013 (get_label_before): Likewise for param "insn".
3014 (fill_simple_delay_slots): Likewise for local "new_label"; use
3015 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
3016 (label_before_next_insn): Strengthen return type and local "insn"
3017 from rtx to rtx_insn *.
3018 (relax_delay_slots): Likewise for locals "other", "tmp".
3019 (make_return_insns): Likewise for param "first" and locals "insn",
3020 "jump_insn", "prev". Move declaration of "pat" to its assignment
3021 and strengthen from rtx to rtx_sequence *. Use its methods for
3022 clarity and typesafety.
3023 * rtlanal.c (no_labels_between_p): Strengthen params from
3024 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
3025 rtx_insn *.
3026 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
3027 from const_rtx to const rtx_insn *.
3028 (reg_set_between_p): Rename param "from_insn" to
3029 "uncast_from_insn", and reintroduce "from_insn" as a
3030 const rtx_insn * via a checked cast.
3031 (modified_between_p): Likewise for param "start" as "uncast_start".
3032 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
3033 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
3034 "tmp", head" from rtx to rtx_insn *.
3035 (recompute_rev_top_order): Likewise for local "insn".
3036 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
3037 * store-motion.c (build_store_vectors): Likewise for local "insn".
3038 Strengthen local "st" from rtx to rtx_insn_list * and use methods
3039 for clarity and typesafety.
3040 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
3041 rtx to rtx_insn *.
3042 (computation_cost): Likewise for local "seq".
3043 (get_address_cost): Likewise.
3044
3045 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3046
3047 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
3048 const rtx_insn *.
3049 (label_is_jump_target_p): Likewise for second param.
3050
3051 * rtlanal.c (tablejump_p): Likewise for param "insn".
3052 (label_is_jump_target_p): Likewise for param "jump_insn".
3053
3054 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3055
3056 * rtl.h (find_first_parameter_load): Strengthen return type and
3057 both params from rtx to rtx_insn *.
3058 * rtlanal.c (find_first_parameter_load): Strengthen return type,
3059 both params and locals "before", "first_set" from rtx to
3060 rtx_insn *. Remove now-redundant cast.
3061 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
3062
3063 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3064
3065 * rtl.h (find_last_value): Delete.
3066 * rtlanal.c (find_last_value): Delete.
3067
3068 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3069
3070 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
3071 from rtx to rtx_insn *.
3072 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
3073 rtx "note" with new local rtx_insn * "new_head" when calculating
3074 head insn of new basic block.
3075 * combine.c (combine_split_insns): Strengthen return type and local
3076 "ret" from rtx to rtx_insn *.
3077 (likely_spilled_retval_p): Likewise for locals "use" and "p".
3078 (try_combine): Eliminate local "m_split", splitting into new
3079 locals "m_split_insn" and "m_split_pat".
3080 (find_split_point): Strengthen local "seq" from rtx into
3081 rtx_insn *.
3082 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
3083 locals "label", "branch".
3084 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
3085 for local "insn".
3086 (define_expand "umulsi3_highpart"): Likewise for local "insn".
3087 * dse.c (note_add_store_info): Likewise for fields "first",
3088 "current".
3089 (note_add_store): Likewise for local "insn".
3090 (emit_inc_dec_insn_before): Likewise for locals "insn",
3091 "new_insn", "cur".
3092 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
3093 (replace_read): Likewise for locals "insns", "this_insn".
3094 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
3095 (notice_eh_throw): Likewise for param "insn".
3096 (before_next_cfi_note): Likewise for return type, param, and local
3097 "prev".
3098 (connect_traces): Likewise for local "note".
3099 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
3100 (verify_rtl_sharing): Likewise.
3101 (unshare_all_rtl_in_chain): Likewise for param "insn".
3102 (get_first_nonnote_insn): Likewise for local "insn".
3103 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
3104 "seq" and use its methods to clarify things.
3105 (next_insn): Strengthen return type from rtx to rtx_insn *.
3106 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
3107 local rtx_insn * using a checked cast, dropping a checked cast
3108 made redundant by this change. Use a cast to and method of
3109 rtx_sequence to clarify the code.
3110 (previous_insn): Rename param "insn" to "uncast_insn" and
3111 reintroduce "insn" as a local rtx_insn * using a checked cast,
3112 dropping a checked cast made redundant by this change. Use a cast
3113 to and method of rtx_sequence to clarify the code.
3114 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
3115 reintroduce "insn" as a local rtx_insn * using a checked cast,
3116 dropping a checked cast made redundant by this change.
3117 (next_nonnote_insn_bb): Likewise.
3118 (prev_nonnote_insn): Likewise.
3119 (prev_nonnote_insn_bb): Likewise.
3120 (next_nondebug_insn): Likewise.
3121 (prev_nondebug_insn): Likewise.
3122 (next_nonnote_nondebug_insn): Likewise.
3123 (prev_nonnote_nondebug_insn): Likewise.
3124 (next_real_insn): Likewise.
3125 (prev_real_insn): Likewise.
3126 (next_active_insn): Likewise.
3127 (prev_active_insn): Likewise.
3128 (next_cc0_user): Likewise. Use rtx_sequence and a method for
3129 clarity.
3130 (prev_cc0_setter): Likewise.
3131 (try_split): Rename param "trial" to "uncast_trial" and
3132 reintroduce "insn" as a local rtx_insn * using a checked cast,
3133 dropping checked casts made redundant by this change.
3134 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
3135 rtx to rtx_insn *.
3136 (remove_insn): Rename param "insn" to "uncast_insn" and
3137 reintroduce "insn" as a local rtx_insn * using a checked cast.
3138 (emit_pattern_after_setloc): Likewise for param "after", as
3139 "uncast_after".
3140 (emit_pattern_after): Likewise. Strengthen local "prev" from
3141 rtx to rtx_insn *.
3142 (emit_pattern_before_setloc): Rename param "before" to
3143 "uncast_before" and reintroduce "before" as a local rtx_insn *
3144 using a checked cast. Strengthen locals "first", "last" from
3145 rtx to rtx_insn *.
3146 (emit_pattern_before): Likewise rename/cast param "before" to
3147 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
3148 * except.c (copy_reg_eh_region_note_forward): Strengthen param
3149 "first" and local "insn" from rtx to rtx_insn *.
3150 (copy_reg_eh_region_note_backward): Likewise for param "last"
3151 and local "insn".
3152 * expr.c (fixup_args_size_notes): Rename param "last" to
3153 "uncast_last" and reintroduce "last" as a local rtx_insn *
3154 using a checked cast. Strengthen local "insn" from rtx to
3155 rtx_insn *.
3156 * function.c (set_insn_locations): Strengthen param "insn" from
3157 rtx to rtx_insn *.
3158 (record_insns): Likewise for param "insns" and local "tmp".
3159 (active_insn_between): Rename param "tail" to
3160 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
3161 using a checked cast.
3162 (thread_prologue_and_epilogue_insns): Split out top-level local
3163 rtx "seq" into three different rtx_insn * locals. Strengthen
3164 local "prologue_seq" from rtx to rtx_insn *.
3165 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
3166 from rtx to rtx_insn *.
3167 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
3168 (priority): Likewise for locals "prev_first", "twin".
3169 (setup_insn_max_reg_pressure): Likewise for param "after".
3170 (sched_setup_bb_reg_pressure_info): Likewise.
3171 (no_real_insns_p): Strengthen params from const_rtx to
3172 const rtx_insn *.
3173 (schedule_block): Strengthen local "next_tail" from rtx to
3174 rtx_insn *.
3175 * ifcvt.c (find_active_insn_before): Strengthen return type and
3176 param "insn" from rtx to rtx_insn *.
3177 (find_active_insn_after): Likewise.
3178 (cond_exec_process_insns): Likewise for param "start" and local "insn".
3179 (cond_exec_process_if_block): Likewise for locals "then_start",
3180 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
3181 (noce_process_if_block): Likewise for local "jump".
3182 (merge_if_block): Likewise for two locals named "end".
3183 (cond_exec_find_if_block): Likewise for local "last_insn".
3184 * jump.c (delete_related_insns): Rename param "insn" to
3185 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
3186 checked cast. Strengthen local "p" from rtx to rtx_insn *.
3187 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
3188 NULL.
3189 (split_reg): Likewise.
3190 * lra.c (lra_process_new_insns): Likewise.
3191 * modulo-sched.c (permute_partial_schedule): Strengthen param
3192 "last" from rtx to rtx_insn *.
3193 * optabs.c (add_equal_note): Likewise for param "insns" and local
3194 "last_insn".
3195 (expand_binop_directly): Add checked casts to rtx_insn * within
3196 NEXT_INSN (pat) uses.
3197 (expand_unop_direct): Likewise.
3198 (maybe_emit_unop_insn): Likewise.
3199 * recog.c (peep2_attempt): Strengthen locals "last",
3200 "before_try", "x" from rtx to rtx_insn *.
3201 * reorg.c (optimize_skip): Strengthen return type and local
3202 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
3203 and locals "trial", "next_trial" from rtx to rtx_insn *.
3204 * resource.c (next_insn_no_annul): Strengthen return type and
3205 param "insn" from rtx to rtx_insn *. Use a cast to and method of
3206 rtx_sequence to clarify the code.
3207 (mark_referenced_resources): Add a checked cast to rtx_insn *
3208 within PREV_INSN (x).
3209 (find_dead_or_set_registers): Strengthen return type, param
3210 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
3211 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
3212 to rtx_insn **.
3213 (mark_target_live_regs): Strengthen params "insns" and "target",
3214 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
3215 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
3216 the code.
3217 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
3218 from rtx to rtx_insn *.
3219 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
3220 from rtx to rtx_insn *.
3221 (copy_reg_eh_region_note_backward): Likewise.
3222 (unshare_all_rtl_in_chain): Likewise for sole param.
3223 (dump_rtl_slim): Strengthen second and third params from const_rtx
3224 to const rtx_insn *.
3225 * sched-deps.c (sched_free_deps): Strengthen params "head" and
3226 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
3227 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
3228 "next_tail" from rtx to rtx_insn *.
3229 (begin_move_insn): Likewise for local "next".
3230 * sched-int.h (sched_free_deps): Likewise for first and second
3231 params.
3232 (no_real_insns_p): Strengthen both params from const_rtx to
3233 const rtx_insn *.
3234 (sched_setup_bb_reg_pressure_info): Strengthen second params from
3235 rtx to rtx_insn *.
3236 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
3237 "next_tail".
3238 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
3239 and locals "insn", "tail" from const_rtx to const rtx_insn *.
3240 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
3241 rtx_insn *.
3242 (debug_rtl_slim): Strengthen params "first" and "last" from
3243 const_rtx to const rtx_insn *.
3244 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
3245 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
3246 (convert_to_simple_return): Likewise for param "returnjump".
3247 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
3248 "prologue_seq".
3249 (convert_to_simple_return): Likewise for param "returnjump".
3250 * valtrack.c (propagate_for_debug): Likewise for params
3251 "insn", "last".
3252 * valtrack.h (propagate_for_debug): Likewise for second param.
3253
3254 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3255
3256 * output.h (insn_current_reference_address): Strengthen param
3257 from rtx to rtx_insn *.
3258 * final.c (insn_current_reference_address): Likewise.
3259
3260 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3261
3262 * basic-block.h (inside_basic_block_p): Strengthen param from
3263 const_rtx to const rtx_insn *.
3264 * cfgbuild.c (inside_basic_block_p): Likewise.
3265
3266 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3267
3268 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
3269 rtx_insn *.
3270 (get_trace_info): Likewise for param "insn".
3271 (save_point_p): Likewise.
3272 (maybe_record_trace_start): Likewise for both params.
3273 (maybe_record_trace_start_abnormal): Likewise.
3274 (create_trace_edges): Likewise for sole param and for three of the
3275 locals named "lab".
3276 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
3277 to rtx_insn *, and update a call to pat->element to pat->insn.
3278
3279 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3280
3281 * function.h (struct expr_status): Convert field "x_forced_labels"
3282 from rtx_expr_list * to rtx_insn_list *.
3283
3284 * cfgbuild.c (make_edges): Convert local "x" from an
3285 rtx_expr_list * to an rtx_insn_list *, replacing use of
3286 "element" method with "insn" method.
3287 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3288 * except.c (sjlj_emit_dispatch_table): Replace use of
3289 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
3290 forced_labels.
3291 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
3292 rtx_expr_list * to an rtx_insn_list *, replacing use of
3293 "element" method with "insn" method.
3294 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3295 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
3296 rtx_insn *, adding a checked cast. Replace use of
3297 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
3298 forced_labels.
3299 (expand_label): Likewise for local "label_r".
3300
3301 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3302
3303 * function.h (struct rtl_data): Convert field
3304 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
3305 rtx_insn_list *.
3306 * rtl.h (remove_node_from_insn_list): New prototype.
3307
3308 * builtins.c (expand_builtin): When prepending to
3309 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
3310 gen_rtx_EXPR_LIST.
3311 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
3312 to rtx_insn_list *, and use its "insn" method rather than
3313 "element" method.
3314 * cfgrtl.c (delete_insn): Use new function
3315 remove_node_from_insn_list rather than
3316 remove_node_from_expr_list.
3317 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
3318 to rtx_insn_list *, and use its "insn" method rather than
3319 "element" method.
3320 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3321 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3322 * rtlanal.c (remove_node_from_insn_list): New function, adapted
3323 from remove_node_from_expr_list.
3324 * stmt.c (expand_label): When prepending to
3325 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
3326 gen_rtx_EXPR_LIST.
3327
3328 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3329
3330 * function.h (struct rtl_data): Strengthen fields "x_return_label"
3331 and "x_naked_return_label" from rtx to rtx_code_label *.
3332
3333 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3334
3335 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
3336 (SET_NEXT_INSN): Likewise.
3337 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
3338
3339 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
3340 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
3341 to split out the SEQUENCE from local "bundle", strengthening the
3342 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
3343 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
3344 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
3345 and the type of the elements of the "slot" array from rtx to
3346 rtx_insn *.
3347 (reorg_split_calls): Likewise for locals "insn" and "next", and
3348 the type of the elements of the "slot" array.
3349
3350 * config/frv/frv.c (frv_nops): Likewise for the elements of this
3351 array.
3352 (frv_function_prologue): Likewise for locals "insn", "next",
3353 "last_call".
3354 (frv_register_nop): Introduce a local "nop_insn" to be the
3355 rtx_insn * containing rtx "nop".
3356
3357 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
3358 used as an insn and sometimes as a pattern, so rename it to
3359 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
3360 using it where dealing with the core insn.
3361
3362 * config/picochip/picochip.c (reorder_var_tracking_notes):
3363 Strengthen locals "insn", "next", "last_insn", "queue",
3364 "next_queue", "prev" from rtx to rtx_insn *.
3365
3366 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
3367 the second param is an rtx_insn ** rather than an rtx **.
3368 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
3369 from rtx to rtx_sequence *, and introduce local named "sequence",
3370 using methods of rtx_sequence to clarify the code.
3371 (remove_insn): Introduce local rtx_sequence * named "sequence" and
3372 use its methods.
3373 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
3374 Rename param "after" to "uncast_after", reintroducing "after" as a
3375 local rtx_insn * with a checked cast.
3376 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
3377 reintroducing "after" as a local rtx_insn * with a checked cast.
3378 Strengthen local "last" from rtx to rtx_insn * and remove the
3379 now-redundant checked casts.
3380 (copy_delay_slot_insn): Strengthen return type and param from rtx
3381 to rtx_insn *.
3382
3383 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
3384 "last" from rtx to rtx_insn *.
3385
3386 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3387
3388 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
3389 param from rtx to rtx_insn *.
3390
3391 * emit-rtl.c (copy_delay_slot_insn): Likewise.
3392
3393 * reorg.c (skip_consecutive_labels): Strengthen return type, param
3394 and local "insn" from rtx to rtx_insn *.
3395 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
3396 (unfilled_slots_next): Likewise.
3397 (function_return_label): Strengthen from rtx to rtx_code_label *.
3398 (function_simple_return_label): Likewise.
3399 (first_active_target_insn): Strengthen return type and param from
3400 rtx to rtx_insn *.
3401 (find_end_label): Strengthen return type from rtx to
3402 rtx_code_label *; strengthen locals as appropriate.
3403 (emit_delay_sequence): Strengthen return type, param "insn" and
3404 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
3405 and local "li" from rtx to rtx_insn_list *, using methods of
3406 rtx_insn_list for clarity and typesafety.
3407 (add_to_delay_list): Strengthen return type and param "insn" from
3408 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
3409 rtx_insn_list * and use methods of rtx_insn_list.
3410 (delete_from_delay_slot): Strengthen return type, param "insn",
3411 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
3412 Strengthen local "seq" from rtx to rtx_sequence *, and local
3413 "delay_list" from rtx to rtx_insn_list *, using methods of
3414 rtx_sequence for clarity and type-safety.
3415 (delete_scheduled_jump): Add checked cast when invoking
3416 delete_from_delay_slot. Strengthen local "trial" from rtx to
3417 rtx_insn *.
3418 (optimize_skip): Strengthen return type and local "delay_list"
3419 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
3420 rtx_insn *.
3421 (steal_delay_list_from_target): Strengthen return type, param
3422 "delay_list" and local "new_delay_list" from rtx to
3423 rtx_insn_list *. Strengthen param "seq" from rtx to
3424 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
3425 rtx_insn **.
3426 Split out local "temp" into multiple more-tightly scoped locals:
3427 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
3428 of rtx_insn_list and rtx_sequence for clarity and typesafety.
3429 Strengthen locals named "trial" from rtx to rtx_insn *.
3430 (steal_delay_list_from_fallthrough): Strengthen return type and
3431 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
3432 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
3433 Strengthen local "trial" from rtx to rtx_insn *.
3434 (try_merge_delay_insns): Strength local "merged_insns" from rtx
3435 to rtx_insn_list * and use its methods. Strengthen local "pat"
3436 from rtx to rtx_sequence * and use its methods. Strengthen locals
3437 "dtrial" and "new_rtx" from rtx to rtx_insn *.
3438 (get_label_before): Strengthen return type and local "label" from
3439 rtx to rtx_insn *.
3440 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
3441 "next_trial", "next", prev". Strengthen local "delay_list" from
3442 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
3443 rtx_insn **.
3444 (follow_jumps): Strengthen return type, param "label" and locals
3445 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
3446 (fill_slots_from_thread): Strengthen return type, param
3447 "delay_list" from rtx to rtx_insn_list *. Strengthen params
3448 "insn", "thread", "opposite_thread" and locals "new_thread",
3449 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
3450 "sequence" from a checked cast to rtx_sequence so that we can call
3451 steal_delay_list_from_target and steal_delay_list_from_fallthrough
3452 with an rtx_sequence *.
3453 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
3454 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
3455 Strengthen local "delay_list" from rtx to rtx_insn_list *.
3456 (relax_delay_slots): Strengthen param "first" and locals "insn",
3457 "next", "trial", "delay_insn", "target_label" from rtx to
3458 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
3459 Introduce a local "trial_seq" for PATTERN (trial) of type
3460 rtx_sequence *, in both cases using methods of rtx_sequence.
3461 (dbr_schedule): Strengthen param "first" and locals "insn",
3462 "next", "epilogue_insn" from rtx to rtx_insn *.
3463
3464 2014-08-28 Richard Biener <rguenther@suse.de>
3465
3466 PR tree-optimization/62283
3467 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3468 Do not peel loops for alignment where the vector loop likely
3469 doesn't run at least VF times.
3470
3471 2014-08-28 Bin Cheng <bin.cheng@arm.com>
3472
3473 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
3474 important_candidates. Consider all important candidates if
3475 IVS doesn't give any result. Remove check on ivs->upto.
3476 (try_add_cand_for): Call iv_ca_add_use only once.
3477
3478 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3479 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3480 Anna Tikhonova <anna.tikhonova@intel.com>
3481 Ilya Tocar <ilya.tocar@intel.com>
3482 Andrey Turetskiy <andrey.turetskiy@intel.com>
3483 Ilya Verbin <ilya.verbin@intel.com>
3484 Kirill Yukhin <kirill.yukhin@intel.com>
3485 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3486
3487 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
3488 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
3489 masking.
3490 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
3491 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
3492 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
3493 (define_insn "*mul<mode>3"): Add EVEX version.
3494
3495 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3496 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3497 Anna Tikhonova <anna.tikhonova@intel.com>
3498 Ilya Tocar <ilya.tocar@intel.com>
3499 Andrey Turetskiy <andrey.turetskiy@intel.com>
3500 Ilya Verbin <ilya.verbin@intel.com>
3501 Kirill Yukhin <kirill.yukhin@intel.com>
3502 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3503
3504 * config/i386/sse.md
3505 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
3506 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
3507 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
3508 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
3509 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
3510 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
3511 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
3512 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
3513 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
3514 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
3515 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
3516 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
3517 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
3518 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
3519 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
3520 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
3521
3522 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3523 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3524 Anna Tikhonova <anna.tikhonova@intel.com>
3525 Ilya Tocar <ilya.tocar@intel.com>
3526 Andrey Turetskiy <andrey.turetskiy@intel.com>
3527 Ilya Verbin <ilya.verbin@intel.com>
3528 Kirill Yukhin <kirill.yukhin@intel.com>
3529 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3530
3531 * config/i386/sse.md
3532 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
3533 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
3534 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
3535
3536 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3537 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3538 Anna Tikhonova <anna.tikhonova@intel.com>
3539 Ilya Tocar <ilya.tocar@intel.com>
3540 Andrey Turetskiy <andrey.turetskiy@intel.com>
3541 Ilya Verbin <ilya.verbin@intel.com>
3542 Kirill Yukhin <kirill.yukhin@intel.com>
3543 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3544
3545 * config/i386/sse.md
3546 (define_mode_iterator VI128_256): New.
3547 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
3548
3549 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3550 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3551 Anna Tikhonova <anna.tikhonova@intel.com>
3552 Ilya Tocar <ilya.tocar@intel.com>
3553 Andrey Turetskiy <andrey.turetskiy@intel.com>
3554 Ilya Verbin <ilya.verbin@intel.com>
3555 Kirill Yukhin <kirill.yukhin@intel.com>
3556 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3557
3558 * config/i386/sse.md
3559 (define_mode_iterator VI8_256_512): New.
3560 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
3561 Ditto.
3562 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
3563 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
3564 Ditto.
3565 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
3566
3567 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3568
3569 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
3570 pointer to the cumulative reloc value and return the value for
3571 this reloc instead.
3572 (compute_reloc_for_rtx): Take a const_rtx. Call
3573 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
3574 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
3575 for_each_rtx for the CONST case.
3576
3577 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3578
3579 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
3580 (mark_constants_in_pattern): ...this new function to iterate over
3581 all the subrtxes.
3582 (mark_constants): Update accordingly.
3583
3584 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3585
3586 * varasm.c: Include rtl-iter.h.
3587 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
3588 Remove the pointer to the cumulative hashval_t and just return
3589 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
3590 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3591 Accumulate the hashval_ts here instead of const_rtx_hash_1.
3592
3593 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3594
3595 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
3596 Give real type of data parameter. Remove return value.
3597 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
3598 to iterate over subrtxes.
3599
3600 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3601
3602 * var-tracking.c (use_narrower_mode_test): Turn from being a
3603 for_each_rtx callback to being a function that examines each
3604 subrtx itself.
3605 (adjust_mems): Update accordingly.
3606
3607 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3608
3609 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
3610 callback to being a function that examines each subrtx itself.
3611 Remove handling of null rtxes.
3612 (add_uses): Update accordingly.
3613
3614 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3615
3616 * var-tracking.c: Include rtl-iter.h.
3617 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
3618 to being a function that examines each subrtx itself.
3619 (use_type): Update accordingly.
3620
3621 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3622
3623 * store-motion.c: Include rtl-iter.h.
3624 (extract_mentioned_regs_1): Delete.
3625 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
3626 for_each_rtx to iterate over subrtxes.
3627
3628 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3629
3630 * sel-sched.c: Include rtl-iter.h
3631 (count_occurrences_1): Delete.
3632 (count_occurrences_equiv): Turn rtxes into const_rtxes.
3633 Use FOR_EACH_SUBRTX rather than for_each_rtx.
3634
3635 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3636
3637 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
3638 * rtlanal.c (tls_referenced_p_1): Delete.
3639 (tls_referenced_p): Take a const_rtx rather than an rtx.
3640 Use FOR_EACH_SUBRTX rather than for_each_rtx.
3641
3642 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3643
3644 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
3645 (for_each_inc_dec): Take an rtx rather than an rtx *.
3646 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
3647 (cselib_record_sets): Likewise.
3648 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
3649 (check_for_inc_dec): Likewise.
3650 * rtlanal.c (for_each_inc_dec_ops): Delete.
3651 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
3652 rather than a pointer to the memory address. Replace
3653 for_each_inc_dec_ops argument with separate function and data
3654 arguments. Abort on non-autoinc addresses.
3655 (for_each_inc_dec_find_mem): Delete.
3656 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
3657 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
3658
3659 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3660
3661 * rtl.h (find_all_hard_regs): Declare.
3662 * rtlanal.c (find_all_hard_regs): New function.
3663 (record_hard_reg_uses_1): Delete.
3664 (record_hard_reg_uses): Use find_all_hard_regs.
3665
3666 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3667
3668 * rtl.h (replace_label_data): Delete.
3669 (replace_label): Take the old label, new label and update-nuses flag
3670 as direct arguments. Return void.
3671 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
3672 * rtlanal.c (replace_label): Update interface as above. Handle
3673 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
3674 iterator. Use FOR_EACH_SUBRTX_PTR.
3675
3676 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3677
3678 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
3679 with const_rtx parameters.
3680 * varasm.c (get_pool_constant): Likewise.
3681 * rtlanal.c (rtx_referenced_p_1): Delete.
3682 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3683 Assert that the rtx we're looking for is nonnull. Allow searches
3684 for constant pool SYMBOL_REFs.
3685
3686 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3687
3688 * reload1.c: Include rtl-iter.h.
3689 (note_reg_elim_costly): Turn from being a for_each_rtx callback
3690 to being a function that examines each subrtx itself.
3691 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
3692
3693 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3694
3695 * regcprop.c (cprop_find_used_regs_1): Delete.
3696 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3697
3698 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3699
3700 * regcprop.c: Include rtl-iter.h.
3701 (kill_value): Take a const_rtx.
3702 (kill_autoinc_value): Turn from being a for_each_rtx callback
3703 to being a function that examines each subrtx itself.
3704 (copyprop_hardreg_forward_1): Update accordingly.
3705
3706 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3707
3708 * reg-stack.c: Include rtl-iter.h.
3709 (subst_stack_regs_in_debug_insn): Delete.
3710 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
3711 instead of for_each_rtx.
3712
3713 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3714
3715 * lower-subreg.c (find_decomposable_subregs): Turn from being
3716 a for_each_rtx callback to being a function that examines each
3717 subrtx itself. Remove handling of null rtxes.
3718 (decompose_multiword_subregs): Update accordingly.
3719
3720 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3721
3722 * lower-subreg.c (adjust_decomposed_uses): Delete.
3723 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
3724 Remove handling of null rtxes.
3725
3726 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3727
3728 * lower-subreg.c: Include rtl-iter.h.
3729 (resolve_subreg_use): Turn from being a for_each_rtx callback
3730 to being a function that examines each subrtx itself. Remove
3731 handling of null rtxes.
3732 (resolve_reg_notes, resolve_simple_move): Update accordingly.
3733 (decompose_multiword_subregs): Likewise.
3734
3735 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3736
3737 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
3738 to being a function that examines each subrtx itself.
3739 (simplify_using_condition, simplify_using_initial_values): Update
3740 accordingly.
3741
3742 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3743
3744 * loop-iv.c: Include rtl-iter.h.
3745 (find_single_def_src): New function.
3746 (replace_single_def_regs): Turn from being a for_each_rtx callback
3747 to being a function that examines each subrtx itself.
3748 (replace_in_expr, simplify_using_initial_values): Update accordingly.
3749
3750 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3751
3752 * jump.c (eh_returnjump_p_1): Delete.
3753 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3754 Remove handling of null rtxes.
3755
3756 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3757
3758 * jump.c: Include rtl-iter.h.
3759 (returnjump_p_1): Delete.
3760 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3761 Remove handling of null rtxes.
3762
3763 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3764
3765 * ira.c: Include rtl-iter.h.
3766 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
3767 to being a function that examines each subrtx itself. Remove
3768 handling of null rtxes.
3769 (update_equiv_regs): Update call accordingly.
3770
3771 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3772
3773 * fwprop.c: Include rtl-iter.h.
3774 (varying_mem_p): Turn from being a for_each_rtx callback to being
3775 a function that examines each subrtx itself.
3776 (propagate_rtx): Update accordingly.
3777
3778 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3779
3780 * function.c: Include rtl-iter.h
3781 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
3782 callback to being a function that examines each subrtx itself.
3783 Return the changed flag.
3784 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
3785 (instantiate_virtual_regs): Update calls accordingly.
3786
3787 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3788
3789 * final.c: Include rtl-iter.h.
3790 (mark_symbol_ref_as_used): Delete.
3791 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
3792 for_each_rtx.
3793
3794 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3795
3796 * emit-rtl.c: Include rtl-iter.h.
3797 (find_auto_inc): Turn from being a for_each_rtx callback to being
3798 a function that examines each subrtx itself. Assume the first operand
3799 to an RTX_AUTOINC is the automodified register.
3800 (try_split): Update call accordingly.
3801
3802 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3803
3804 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
3805 Return a bool, inverting the result so that 0/false means "not ok".
3806 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
3807 subrtxes of a CONST.
3808 (mem_loc_descriptor, add_const_value_attribute)
3809 (resolve_addr_in_expr): Update calls accordingly.
3810
3811 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3812
3813 * dwarf2out.c: Include rtl-iter.h.
3814 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
3815 Remove unused data parameter. Return a bool, inverting the result
3816 so that 0/false means "not ok".
3817 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
3818 instead of for_each_rtx.
3819
3820 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3821
3822 * dse.c: Include rtl-iter.h.
3823 (check_mem_read_rtx): Change void * parameter to real type.
3824 Remove return value.
3825 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
3826 for_each_rtx. Don't handle null rtxes.
3827
3828 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3829
3830 * df-problems.c: Include rtl-iter.h.
3831 (find_memory): Turn from being a for_each_rtx callback to being
3832 a function that examines each subrtx itself. Continue to look for
3833 volatile references even after a nonvolatile one has been found.
3834 (can_move_insns_across): Update calls accordingly.
3835
3836 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3837
3838 * ddg.c (walk_mems_2, walk_mems_1): Delete.
3839 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
3840 to iterate over subrtxes. Return a bool rather than an int.
3841
3842 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3843
3844 * ddg.c: Include rtl-iter.h.
3845 (mark_mem_use_1): Rename to...
3846 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
3847 instead of for_each_rtx.
3848 (mem_read_insn_p): Update accordingly.
3849
3850 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3851
3852 * cse.c (change_cc_mode_args): Delete.
3853 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
3854 a function that examines each subrtx itself. Take the fields of
3855 change_cc_mode_args as argument and return void.
3856 (cse_change_cc_mode_insn): Update calls accordingly.
3857
3858 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3859
3860 * cse.c (is_dead_reg): Change argument to const_rtx.
3861 (dead_debug_insn_data): Delete.
3862 (is_dead_debug_insn): Expand commentary. Turn from being a
3863 for_each_rtx callback to being a function that examines
3864 each subrtx itself. Take the fields of dead_debug_insn_data
3865 as argument.
3866 (delete_trivially_dead_insns): Update call accordingly.
3867
3868 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3869
3870 * cse.c (check_for_label_ref): Move earlier in file. Turn from
3871 being a for_each_rtx callback to being a function that examines
3872 each subrtx itself.
3873 (cse_extended_basic_block): Update call accordingly.
3874
3875 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3876
3877 * cse.c (check_dependence_data): Delete.
3878 (check_dependence): Change from being a for_each_rtx callback to being
3879 a function that examines all subrtxes itself. Don't handle null rtxes.
3880 (invalidate): Update call accordingly.
3881
3882 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3883
3884 * cse.c: Include rtl-iter.h.
3885 (approx_reg_cost_1): Delete.
3886 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3887 Don't handle null rtxes.
3888
3889 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3890
3891 * cfgcleanup.c: Include rtl-iter.h.
3892 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
3893 to being a function that examines each subrtx itself.
3894 (thread_jump): Update accordingly.
3895
3896 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3897
3898 * combine-stack-adj.c: Include rtl-iter.h.
3899 (record_stack_refs_data): Delete.
3900 (record_stack_refs): Turn from being a for_each_rtx callback
3901 to being a function that examines each subrtx itself.
3902 Take a pointer to the reflist. Invert sense of return value
3903 so that true means success and false means failure. Don't
3904 handle null rtxes.
3905 (combine_stack_adjustments_for_block): Update accordingly.
3906
3907 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3908
3909 * combine.c (record_truncated_value): Turn from being a for_each_rtx
3910 callback to a function that takes an rtx and returns a bool
3911 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
3912 for_each_rtx.
3913
3914 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3915
3916 * combine.c: Include rtl-iter.h.
3917 (unmentioned_reg_p_1): Delete.
3918 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3919 Don't handle null rtxes.
3920
3921 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3922
3923 * calls.c: Include rtl-iter.h.
3924 (internal_arg_pointer_based_exp_1): Delete.
3925 (internal_arg_pointer_based_exp): Take a const_rtx.
3926 Use FOR_EACH_SUBRTX to iterate over subrtxes.
3927
3928 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3929
3930 * caller-save.c: Include rtl-iter.h.
3931 (add_used_regs_1): Delete.
3932 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
3933 to iterate over subrtxes. Assert that any remaining pseudos
3934 have been spilled.
3935
3936 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3937
3938 * bt-load.c: Include rtl-iter.h.
3939 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
3940 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
3941 to iterate over subrtxes.
3942 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
3943 find_btr_use rather than btr_referenced_p.
3944
3945 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3946
3947 * alias.c: Include rtl-iter.h.
3948 (refs_newer_value_cb): Delete.
3949 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3950
3951 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3952
3953 * rtl-iter.h: New file.
3954 * rtlanal.c: Include it.
3955 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
3956 (generic_subrtx_iterator <T>::add_single_to_queue)
3957 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
3958 (generic_subrtx_iterator <T>::free_array): New functions.
3959 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
3960 (generic_subrtx_iterator <const_rtx_accessor>)
3961 (generic_subrtx_iterator <rtx_var_accessor>
3962 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
3963 (setup_reg_subrtx_bounds): New function.
3964 (init_rtlanal): Call it.
3965
3966 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
3967
3968 PR target/62261
3969 * config/sh/sh.md (ashlsi3): Handle negative shift count for
3970 TARGET_SHMEDIA.
3971 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
3972
3973 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
3974
3975 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
3976
3977 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3978
3979 * rtl.h (JUMP_LABEL_AS_INSN): New.
3980
3981 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3982
3983 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
3984 rtx_expr_list **.
3985 (alloc_EXPR_LIST): Strengthen return type from rtx to
3986 rtx_expr_list *.
3987 (remove_free_EXPR_LIST_node): Likewise for param.
3988 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
3989 from rtx to rtx_expr_list *.
3990 * sched-int.h (struct deps_desc): Strengthen fields
3991 "pending_read_mems" and "pending_write_mems" from rtx to
3992 rtx_expr_list *.
3993
3994 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
3995 rtx to rtx_expr_list *.
3996 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
3997 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
3998 rtx_expr_list **.
3999 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
4000 from rtx to rtx_expr_list *.
4001 * loop-iv.c (simplify_using_initial_values): Strengthen local
4002 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
4003 "pnote_next" from rtx * to rtx_expr_list **.
4004 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
4005 param "exprp" from rtx * to rtx_expr_list **.
4006 (add_insn_mem_dependence): Strengthen local "mem_list" from
4007 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
4008 to rtx_expr_list *.
4009 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
4010 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
4011 param "old_mems_p" from rtx * to rtx_expr_list **.
4012 * var-tracking.c (struct adjust_mem_data): Strengthen field
4013 "side_effects" from rtx to rtx_expr_list *.
4014 (adjust_insn): Replace NULL_RTX with NULL when assigning to
4015 rtx_expr_list *.
4016 (prepare_call_arguments): Likewise.
4017
4018 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4019
4020 * function.h (struct rtl_data): Strengthen field
4021 "x_stack_slot_list" from rtx to rtx_expr_list *.
4022
4023 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
4024 when assigning to stack_slot_list.
4025
4026 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4027
4028 * function.h (struct rtl_data): Strengthen field
4029 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
4030 * rtl.h (remove_node_from_expr_list): Strengthen second param from
4031 rtx * to rtx_expr_list **.
4032
4033 * cfgbuild.c (make_edges): In loop over
4034 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
4035 rtx_expr_list *, and use methods of the latter class to clarify
4036 the code.
4037 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
4038 rtx_expr_list *, and use methods of the latter class to clarify
4039 the code.
4040 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
4041 * reload1.c (set_initial_label_offsets): Likewise for local "x".
4042 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
4043 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
4044 to rtx_expr_list *. Use methods of the latter class to clarify
4045 the code.
4046
4047 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4048
4049 * function.h (struct expr_status): Strengthen field
4050 "x_forced_labels" from rtx to rtx_expr_list *.
4051
4052 * cfgbuild.c (make_edges): Split local "x" into two locals,
4053 strengthening one from rtx to rtx_expr_list *, and using methods
4054 of said class.
4055 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
4056 loop over forced_labels, introduce strengthen it from rtx to
4057 rtx_expr_list *, using methods to clarify the code.
4058 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
4059 to rtx_expr_list *, using methods of said class to clarify the
4060 code.
4061 * reload1.c (set_initial_label_offsets): Split local "x" into two
4062 per-loop variables, strengthening the first from rtx to
4063 rtx_expr_list * and using methods.
4064
4065 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4066
4067 * coretypes.h (class rtx_expr_list): Add forward declaration.
4068 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
4069 * gengenrtl.c (special_rtx): Add EXPR_LIST.
4070 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
4071 invariant: GET_CODE (X) == EXPR_LIST.
4072 (is_a_helper <rtx_expr_list *>::test): New.
4073 (rtx_expr_list::next): New.
4074 (rtx_expr_list::element): New.
4075 (gen_rtx_EXPR_LIST): New.
4076
4077 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4078
4079 * varasm.c (mark_constants): Convert a GET_CODE check into a
4080 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
4081 Use methods of rtx_sequence to clarify the code.
4082
4083 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4084
4085 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
4086 local "seq" via a checked cast, and use methods of rtx_sequence
4087 to simplify the code.
4088
4089 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4090
4091 * resource.c (mark_referenced_resources): Strengthen local
4092 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
4093 using methods of rtx_sequence to clarify the code.
4094 (find_dead_or_set_registers): Within the switch statement, convert
4095 a GET_CODE check to a dyn_cast, introducing local "seq". Within
4096 the JUMP_P handling, introduce another local "seq", adding a
4097 checked cast to rtx_sequence *. In both cases, use methods of
4098 rtx_sequence to clarify the code.
4099 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
4100 via a checked cast, and use methods of rtx_sequence to simplify
4101 the code.
4102
4103 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4104
4105 * reorg.c (redundant_insn): In two places in the function, replace
4106 a check of GET_CODE with a dyn_cast, introducing local "seq", and
4107 usings methods of rtx_sequence to clarify the code.
4108
4109 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4110
4111 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
4112 local "seq" with a checked cast, and use methods of rtx_sequence
4113 to clarify the code.
4114
4115 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4116
4117 * function.c (contains): Introduce local "seq" for PATTERN (insn),
4118 with a checked cast, in the region for where we know it's a
4119 SEQUENCE. Use methods of rtx_sequence.
4120
4121 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4122
4123 * final.c (get_attr_length_1): Replace GET_CODE check with a
4124 dyn_cast, introducing local "seq" and the use of methods of
4125 rtx_sequence.
4126 (shorten_branches): Likewise, introducing local "body_seq".
4127 Strengthen local "inner_insn" from rtx to rtx_insn *.
4128 (reemit_insn_block_notes): Replace GET_CODE check with a
4129 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
4130 Use methods of rtx_sequence.
4131 (final_scan_insn): Likewise, introducing local "seq" for when
4132 "body" is known to be a SEQUENCE, using its methods.
4133
4134 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4135
4136 * except.c (can_throw_external): Strengthen local "seq" from rtx
4137 to rtx_sequence *. Use methods of rtx_sequence.
4138 (insn_nothrow_p): Likewise.
4139
4140 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4141
4142 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
4143 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
4144 Use methods of rtx_sequence.
4145 (scan_trace): Likewise for local "pat".
4146
4147 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4148
4149 * coretypes.h (class rtx_sequence): Add forward declaration.
4150 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
4151 invariant: GET_CODE (X) == SEQUENCE.
4152 (is_a_helper <rtx_sequence *>::test): New.
4153 (is_a_helper <const rtx_sequence *>::test): New.
4154 (rtx_sequence::len): New.
4155 (rtx_sequence::element): New.
4156 (rtx_sequence::insn): New.
4157
4158 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4159
4160 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
4161 rtx_insn_list **.
4162 (alloc_INSN_LIST): Strengthen return type from rtx to
4163 rtx_insn_list *.
4164 (copy_INSN_LIST): Likewise for return type and param.
4165 (concat_INSN_LIST): Likewise for both params and return type.
4166 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
4167 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
4168 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
4169 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
4170
4171 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
4172 "implicit_sets", "control_uses", "clobbers" from rtx to
4173 rtx_insn_list *.
4174 (struct deps_desc): Likewise for fields "pending_read_insns",
4175 "pending_write_insns", "pending_jump_insns",
4176 "last_pending_memory_flush", "last_function_call",
4177 "last_function_call_may_noreturn", "sched_before_next_call",
4178 "sched_before_next_jump".
4179 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
4180 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
4181
4182 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
4183 from rtx to rtx_insn_list *.
4184 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
4185 rtx_insn_list *.
4186
4187 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
4188 to rtx_insn_list **.
4189 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
4190 rtx_insn_list *.
4191 (queue_insn): Likewise for local "link".
4192 (struct haifa_saved_data): Strengthen field "insn_queue" from
4193 rtx * to rtx_insn_list **.
4194 (save_backtrack_point): Update allocation of save->insn_queue to
4195 reflect the strengthening of elements from rtx to rtx_insn_list *.
4196 (queue_to_ready): Strengthen local "link" from rtx to
4197 rtx_insn_list *; use methods "next" and "insn" when traversing the
4198 list.
4199 (early_queue_to_ready): Likewise for locals "link", "next_link",
4200 "prev_link".
4201 (schedule_block): Update allocation of insn_queue to reflect the
4202 strengthening of elements from rtx to rtx_insn_list *. Strengthen
4203 local "link" from rtx to rtx_insn_list *, and use methods when
4204 working it.
4205 (add_to_speculative_block): Strengthen locals "twins" and
4206 "next_node" from rtx to rtx_insn_list *, and use methods when
4207 working with them. Strengthen local "twin" from rtx to
4208 rtx_insn *, eliminating a checked cast.
4209 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
4210 from rtx to rtx_insn_list *, and use methods when working with
4211 them.
4212
4213 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
4214 from rtx to rtx_insn_list *, adding a checked cast.
4215 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
4216 rtx_insn_list **.
4217 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
4218 "newlink" from rtx to rtx_insn_list *. Strengthen local
4219 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
4220 from rtx to rtx_insn *.
4221 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
4222 from rtx to rtx_insn_list *. Use methods of the latter class.
4223 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
4224 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
4225 (remove_free_INSN_LIST_node): Strengthen return type and local
4226 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
4227 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
4228 rtx_insn_list *, using "insn" method.
4229
4230 * sched-deps.c (add_dependence_list): Strengthen param "list"
4231 from rtx to rtx_insn_list *, and use methods when working with it.
4232 (add_dependence_list_and_free): Strengthen param "listp" from
4233 rtx * to rtx_insn_list **.
4234 (remove_from_dependence_list): Strenghten param "listp" from rtx *
4235 to rtx_insn_list **, and use methods when working with *listp.
4236 (remove_from_both_dependence_lists): Strengthen param "listp" from
4237 rtx * to rtx_insn_list **
4238 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
4239 to rtx_insn_list **. Eliminate local "link", in favor of two new
4240 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
4241 respectively.
4242 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
4243 by introducing local "cond_deps".
4244 (remove_from_deps): Strengthen param "insn" from rtx to
4245 rtx_insn *.
4246
4247 * sched-rgn.c (concat_insn_mem_list): Strengthen param
4248 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
4249 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
4250 Use methods of rtx_insn_list.
4251
4252 * store-motion.c (struct st_expr): Strengthen fields
4253 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
4254 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
4255 rtx_insn_list *.
4256 (find_moveable_store): Split out "tmp" into multiple more-tightly
4257 scoped locals. Use methods of rtx_insn_list *.
4258 (compute_store_table): Strengthen local "tmp" from rtx to
4259 rtx_insn *. Use methods of rtx_insn_list *.
4260
4261 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4262
4263 * coretypes.h (class rtx_insn_list): Add forward declaration.
4264 * rtl.h (class rtx_insn_list): New subclass of rtx_def
4265 (is_a_helper <rtx_insn_list *>::test): New.
4266 (rtx_insn_list::next): New.
4267 (rtx_insn_list::insn): New.
4268 (gen_rtx_INSN_LIST): Add prototype.
4269 * emit-rtl.c (gen_rtx_INSN_LIST): New.
4270 * gengenrtl.c (special_rtx): Add INSN_LIST.
4271
4272 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4273
4274 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
4275 "prev" from rtx to rtx_insn *.
4276
4277 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4278
4279 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
4280 functions. Require merely an rtx for now, not an rtx_insn *.
4281 (BLOCK_FOR_INSN): Likewise.
4282 (INSN_LOCATION): Likewise.
4283 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
4284
4285 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4286
4287 * rtl.h (PATTERN): Convert this macro into a pair of inline
4288 functions, for now, requiring const_rtx and rtx.
4289
4290 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4291
4292 * target.def (unwind_emit): Strengthen param "insn" from rtx to
4293 rtx_insn *.
4294 (final_postscan_insn): Likewise.
4295 (adjust_cost): Likewise.
4296 (adjust_priority): Likewise.
4297 (variable_issue): Likewise.
4298 (macro_fusion_pair_p): Likewise.
4299 (dfa_post_cycle_insn): Likewise.
4300 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
4301 (first_cycle_multipass_issue): Likewise.
4302 (dfa_new_cycle): Likewise.
4303 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
4304 (speculate_insn): Likewise for param "insn".
4305 (gen_spec_check): Likewise for params "insn" and "label".
4306 (get_insn_spec_ds): Likewise for param "insn".
4307 (get_insn_checked_ds): Likewise.
4308 (dispatch_do): Likewise.
4309 (dispatch): Likewise.
4310 (cannot_copy_insn_p): Likewise.
4311 (invalid_within_doloop): Likewise.
4312 (legitimate_combined_insn): Likewise.
4313 (needed): Likewise.
4314 (after): Likewise.
4315
4316 * doc/tm.texi: Automatically updated to reflect changes to
4317 target.def.
4318
4319 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
4320 working with insn.
4321 (schedule_block): Likewise.
4322 (sched_init): Likewise.
4323 (sched_speculate_insn): Strengthen param "insn" from rtx to
4324 rtx_insn *.
4325 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
4326 working with insn.
4327 * hooks.c (hook_bool_rtx_true): Rename to...
4328 hook_bool_rtx_insn_true): ...this, and strengthen first param from
4329 rtx to rtx_insn *.
4330 (hook_constcharptr_const_rtx_null): Rename to...
4331 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
4332 first param from const_rtx to const rtx_insn *.
4333 (hook_bool_rtx_int_false): Rename to...
4334 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
4335 param from rtx to rtx_insn *.
4336 (hook_void_rtx_int): Rename to...
4337 (hook_void_rtx_insn_int): ...this, and strengthen first param from
4338 rtx to rtx_insn *.
4339
4340 * hooks.h (hook_bool_rtx_true): Rename to...
4341 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
4342 rtx to rtx_insn *.
4343 (hook_bool_rtx_int_false): Rename to...
4344 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
4345 param from rtx to rtx_insn *.
4346 (hook_void_rtx_int): Rename to...
4347 (hook_void_rtx_insn_int): ...this, and strengthen first param from
4348 rtx to rtx_insn *.
4349 (hook_constcharptr_const_rtx_null): Rename to...
4350 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
4351 first param from const_rtx to const rtx_insn *.
4352
4353 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
4354 and local "prev" from rtx to rtx_insn *.
4355
4356 * sched-int.h (sched_speculate_insn): Strengthen first param from
4357 rtx to rtx_insn *.
4358
4359 * sel-sched.c (create_speculation_check): Likewise for local "label".
4360 * targhooks.c (default_invalid_within_doloop): Strengthen param
4361 "insn" from const_rtx to const rtx_insn *.
4362 * targhooks.h (default_invalid_within_doloop): Strengthen param
4363 from const_rtx to const rtx_insn *.
4364
4365 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
4366 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
4367
4368 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
4369 "insn".
4370 (arc_invalid_within_doloop): Likewise, with const.
4371
4372 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
4373 (arm_cannot_copy_insn_p): Likewise for param "insn".
4374 (arm_unwind_emit): Likewise.
4375
4376 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
4377 "dep_insn".
4378
4379 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
4380 (c6x_variable_issue): Likewise. Removed now-redundant checked
4381 cast.
4382 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
4383
4384 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
4385 Likewise for param "insn".
4386 (epiphany_mode_after): Likewise.
4387 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
4388 params "insn", "dep_insn".
4389 (epiphany_mode_needed): Likewise for param "insn".
4390 (epiphany_mode_after): Likewise.
4391
4392 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
4393 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
4394 (ix86_avx_u128_mode_needed): Likewise.
4395 (ix86_i387_mode_needed): Likewise.
4396 (ix86_mode_needed): Likewise.
4397 (ix86_avx_u128_mode_after): Likewise.
4398 (ix86_mode_after): Likewise.
4399 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
4400 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
4401 (ix86_adjust_priority): Likewise for param "insn".
4402 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
4403 (do_dispatch): Likewise.
4404 (has_dispatch): Likewise.
4405 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
4406
4407 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
4408 reflect renaming of default hook implementation from
4409 hook_constcharptr_const_rtx_null to
4410 hook_constcharptr_const_rtx_insn_null.
4411 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
4412 rtx to rtx_insn *.
4413 (ia64_variable_issue): Likewise for param "insn".
4414 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
4415 (ia64_dfa_new_cycle): Likewise.
4416 (ia64_get_insn_spec_ds): Likewise.
4417 (ia64_get_insn_checked_ds): Likewise.
4418 (ia64_speculate_insn): Likewise.
4419 (ia64_gen_spec_check): Likewise for params "insn", "label".
4420 (ia64_asm_unwind_emit): Likewise for param "insn".
4421
4422 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
4423
4424 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
4425 "insn", "def_insn".
4426 (m68k_sched_variable_issue): Likewise for param "insn".
4427
4428 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
4429 "def_insn".
4430
4431 * config/microblaze/microblaze.c (microblaze_adjust_cost):
4432 Likewise for params "insn", "dep".
4433
4434 * config/mips/mips.c (mips_adjust_cost): Likewise.
4435 (mips_variable_issue): Likewise for param "insn".
4436 (mips_final_postscan_insn): Likewise.
4437
4438 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
4439 for params "insn", "dep".
4440
4441 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
4442 "dep_insn".
4443 (pa_adjust_priority): Likewise for param "insn".
4444
4445 * config/picochip/picochip.c (picochip_sched_adjust_cost):
4446 Likewise for params "insn", "dep_insn".
4447
4448 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
4449 param "insn".
4450 (rs6000_variable_issue): Likewise.
4451 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
4452 (rs6000_debug_adjust_cost): Likewise.
4453 (rs6000_adjust_priority): Likewise for param "insn".
4454 (rs6000_use_sched_lookahead_guard): Likewise.
4455 (get_next_active_insn): Likewise for return type and both params.
4456 (redefine_groups): Likewise for params "prev_head_insn", "tail"
4457 and locals "insn", "next_insn".
4458 (pad_groups): Likewise.
4459
4460 * config/s390/s390.c (s390_adjust_priority): Likewise for param
4461 "insn".
4462 (s390_cannot_copy_insn_p): Likewise.
4463 (s390_sched_variable_issue): Likewise for third param, eliminating
4464 checked cast.
4465 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
4466 default hook implementation from hook_constcharptr_const_rtx_null
4467 to hook_constcharptr_const_rtx_insn_null.
4468
4469 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
4470 from rtx to rtx_insn *.
4471 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
4472 (sh_variable_issue): Likewise for param "insn".
4473 (sh_dfa_new_cycle): Likewise.
4474 (sh_mode_needed): Likewise.
4475 (sh_mode_after): Likewise.
4476
4477 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
4478 params "insn", "dep_insn".
4479 (hypersparc_adjust_cost): Likewise.
4480 (sparc_adjust_cost): Likewise.
4481
4482 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
4483 param, eliminated checked cast.
4484 (spu_sched_adjust_cost): Likewise for first and third params.
4485
4486 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
4487 params "insn" and "dep_insn" from rtx to rtx_insn *.
4488
4489 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
4490
4491 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4492
4493 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
4494 (set_is_load_p): ...this, updating to work on a SET pattern rather
4495 than an insn.
4496 (is_store_insn): Rename to...
4497 (set_is_store_p): ...this, updating to work on a SET pattern
4498 rather than an insn.
4499 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
4500 top of function to where it is needed. Rewrite the bogus
4501 condition that checks for "insn" and "dep" being PARALLEL to
4502 instead use single_set, introducing locals "insn_set" and
4503 "dep_set". Given that we only ever returned "cost" for a non-pair
4504 of SETs, bail out early if we don't have a pair of SET.
4505 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
4506 use the new locals "insn_set" and "dep_set", and update calls to
4507 is_load_insn and is_store_insn to be calls to set_is_load_p and
4508 set_is_store_p.
4509
4510 2014-08-27 Guozhi Wei <carrot@google.com>
4511
4512 PR target/62262
4513 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
4514 amount before using it.
4515
4516 2014-08-27 Richard Biener <rguenther@suse.de>
4517
4518 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
4519 get_maxval_strlen inside a more useful API.
4520 (gimple_fold_builtin_with_strlen): Remove and fold into ...
4521 (gimple_fold_builtin): ... caller.
4522 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
4523 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
4524 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
4525 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
4526 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
4527 gimple_fold_builtin_sprintf): Adjust to compute maxval
4528 themselves.
4529
4530 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
4531
4532 PR other/62248
4533 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
4534
4535 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4536 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4537 Anna Tikhonova <anna.tikhonova@intel.com>
4538 Ilya Tocar <ilya.tocar@intel.com>
4539 Andrey Turetskiy <andrey.turetskiy@intel.com>
4540 Ilya Verbin <ilya.verbin@intel.com>
4541 Kirill Yukhin <kirill.yukhin@intel.com>
4542 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4543
4544 * config/i386/sse.md
4545 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
4546 Use `concat_tg_mode' attribute to determine asm register size.
4547
4548 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4549 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4550 Anna Tikhonova <anna.tikhonova@intel.com>
4551 Ilya Tocar <ilya.tocar@intel.com>
4552 Andrey Turetskiy <andrey.turetskiy@intel.com>
4553 Ilya Verbin <ilya.verbin@intel.com>
4554 Kirill Yukhin <kirill.yukhin@intel.com>
4555 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4556
4557 * config/i386/sse.md
4558 (define_mode_iterator VI48_AVX512VL): New.
4559 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
4560 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
4561 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
4562 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4563 with VI1): Change mode iterator.
4564 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4565 with VI_ULOADSTORE_BW_AVX512VL): New.
4566 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4567 with VI_ULOADSTORE_F_AVX512VL): Ditto.
4568 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4569 with VI1): Change mode iterator.
4570 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4571 with VI_ULOADSTORE_BW_AVX512VL): New.
4572 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4573 with VI_ULOADSTORE_F_AVX512VL): Ditto.
4574 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4575 with VI1): Change mode iterator.
4576 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4577 with VI_ULOADSTORE_BW_AVX512VL): New.
4578 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4579 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
4580 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
4581 (define_insn "<avx512>_storedqu<mode>_mask" with
4582 VI48_AVX512VL): New.
4583 (define_insn "<avx512>_storedqu<mode>_mask" with
4584 VI12_AVX512VL): Ditto.
4585
4586 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4587 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4588 Anna Tikhonova <anna.tikhonova@intel.com>
4589 Ilya Tocar <ilya.tocar@intel.com>
4590 Andrey Turetskiy <andrey.turetskiy@intel.com>
4591 Ilya Verbin <ilya.verbin@intel.com>
4592 Kirill Yukhin <kirill.yukhin@intel.com>
4593 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4594
4595 * config/i386/sse.md
4596 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
4597 (define_mode_iterator VI48_AVX512BW): New.
4598 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
4599 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4600 with VI48_AVX2_48_AVX512F): New.
4601 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4602 with VI2_AVX512VL): Ditto.
4603
4604 2014-08-27 Richard Biener <rguenther@suse.de>
4605
4606 PR middle-end/62239
4607 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
4608 (fold_builtin_3): Do not fold strcat_chk here.
4609 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
4610 from builtins.c.
4611 (gimple_fold_builtin): Fold strcat_chk here.
4612
4613 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
4614
4615 * dwarf2out.h (dwarf2out_decl): Remove prototype.
4616 * dwarf2out.c (dwarf2out_decl): Make static.
4617
4618 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
4619
4620 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
4621
4622 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4623
4624 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
4625 from rtx to rtx_insn *.
4626 (cselib_lookup_from_insn): Likewise for final param.
4627 (cselib_subst_to_values_from_insn): Likewise.
4628 (cselib_add_permanent_equiv): Likewise.
4629
4630 * cselib.c (cselib_current_insn): Likewise for this variable.
4631 (cselib_subst_to_values_from_insn): Likewise for param "insn".
4632 (cselib_lookup_from_insn): Likewise.
4633 (cselib_add_permanent_equiv): Likewise for param "insn" and local
4634 "save_cselib_current_insn".
4635 (cselib_process_insn): Replace use of NULL_RTX with NULL.
4636
4637 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
4638 from rtx to rtx_insn *.
4639
4640 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4641
4642 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
4643 rtx_insn *.
4644
4645 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4646
4647 * df.h (df_dump_insn_problem_function): Strengthen first param of
4648 this callback from const_rtx to const rtx_insn *.
4649 (struct df_insn_info): Strengthen field "insn" from rtx to
4650 rtx_insn *.
4651 (DF_REF_INSN): Eliminate this function, reinstating the older
4652 macro definition.
4653 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
4654 (df_reg_defined): Likewise.
4655 (df_find_use): Likewise.
4656 (df_reg_used): Likewise.
4657 (df_dump_insn_top): Strengthen param 1 from const_rtx to
4658 const rtx_insn *.
4659 (df_dump_insn_bottom): Likewise.
4660 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
4661 (df_insn_debug_regno): Likewise.
4662 (debug_df_insn): Likewise.
4663 (df_rd_simulate_one_insn): Likewise for param 2.
4664 (df_word_lr_simulate_defs): Likewise for param 1.
4665 (df_word_lr_simulate_uses): Likewise.
4666 (df_md_simulate_one_insn): Likewise for param 2.
4667 (df_simulate_find_noclobber_defs): Likewise for param 1.
4668 (df_simulate_find_defs): Likewise.
4669 (df_simulate_defs): Likewise.
4670 (df_simulate_uses): Likewise.
4671 (df_simulate_one_insn_backwards): Likewise for param 2.
4672 (df_simulate_one_insn_forwards): Likewise.
4673 (df_uses_create): Likewise for param 2.
4674 (df_insn_create_insn_record): Likewise for param 1.
4675 (df_insn_delete): Likewise.
4676 (df_insn_rescan): Likewise.
4677 (df_insn_rescan_debug_internal): Likewise.
4678 (df_insn_change_bb): Likewise.
4679 (df_notes_rescan): Likewise.
4680 * rtl.h (remove_death): Likewise for param 2.
4681 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
4682 const rtx_insn *.
4683 * sched-int.h (reemit_notes): Strengthen param from rtx to
4684 rtx_insn *.
4685 * valtrack.h (propagate_for_debug): Likewise for param 1.
4686
4687 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
4688 local "tmp_rtx" from const_rtx to const rtx_insn *.
4689 * combine.c (remove_death): Strengthen param "insn" from rtx to
4690 rtx_insn *.
4691 (move_deaths): Likewise for local "where_dead".
4692 * cse.c (delete_trivially_dead_insns): Introduce local
4693 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
4694 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
4695 rtx_insn *.
4696 (df_reg_defined): Likewise.
4697 (df_find_use): Likewise.
4698 (df_reg_used): Likewise.
4699 (df_dump_insn_problem_data): Strengthen param "insn" from
4700 const_rtx to const rtx_insn *.
4701 (df_dump_insn_top): Likewise.
4702 (df_dump_insn_bottom): Likewise.
4703 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
4704 (df_insn_debug_regno): Likewise.
4705 (debug_df_insn): Likewise.
4706 (DF_REF_INSN): Delete.
4707 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
4708 from rtx to rtx_insn *.
4709 (df_chain_insn_top_dump): Strengthen param "insn" from
4710 const_rtx to const rtx_insn *.
4711 (df_chain_insn_bottom_dump): Likewise.
4712 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
4713 rtx_insn *.
4714 (df_word_lr_simulate_uses): Likewise.
4715 (df_print_note): Likewise.
4716 (df_remove_dead_and_unused_notes): Likewise.
4717 (df_set_unused_notes_for_mw): Likewise.
4718 (df_set_dead_notes_for_mw): Likewise.
4719 (df_create_unused_note): Likewise.
4720 (df_simulate_find_defs): Likewise.
4721 (df_simulate_find_uses): Likewise.
4722 (df_simulate_find_noclobber_defs): Likewise.
4723 (df_simulate_defs): Likewise.
4724 (df_simulate_uses): Likewise.
4725 (df_simulate_one_insn_backwards): Likewise.
4726 (df_simulate_one_insn_forwards): Likewise.
4727 (df_md_simulate_one_insn): Likewise.
4728 * df-scan.c (df_uses_create): Likewise.
4729 (df_insn_create_insn_record): Likewise.
4730 (df_insn_delete): Likewise.
4731 (df_insn_rescan): Likewise.
4732 (df_insn_rescan_debug_internal): Likewise.
4733 (df_insn_change_bb): Likewise.
4734 (df_notes_rescan): Likewise.
4735 (df_refs_add_to_chains): Likewise.
4736 (df_insn_refs_verify): Likewise.
4737 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
4738 when invoking df_insn_delete.
4739 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
4740 (set_unique_reg_note): Add checked cast.
4741 * final.c (cleanup_subreg_operands): Likewise.
4742 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
4743 "insn" from rtx to rtx_insn *.
4744 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
4745 "last" from rtx to rtx_insn *.
4746 * ira-emit.c (change_regs_in_insn): New function.
4747 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
4748 Invoke change_regs_in_insn rather than change_regs.
4749 * ira.c (update_equiv_regs): Strengthen locals "insn",
4750 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
4751 for_each_rtx_in_insn rather than for_each_rtx.
4752 * recog.c (confirm_change_group): Add checked casts.
4753 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
4754 Add checked cast.
4755 (peep2_fill_buffer): Add checked cast.
4756 * rtlanal.c (remove_note): Likewise.
4757 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
4758 locals "next" "end" from rtx to rtx_insn *.
4759
4760 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4761
4762 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
4763 to rtx_insn *.
4764 (struct reg_use_data): Likewise for field "insn".
4765 (insn_cost): Likewise for param.
4766 (real_insn_for_shadow): Likewise for return type and param.
4767 (increase_insn_priority): Likewise for param 1.
4768 (debug_dependencies): Likewise for both params.
4769
4770 * haifa-sched.c (insn_delay): Likewise for param "insn".
4771 (real_insn_for_shadow): Likewise for return type and param "insn".
4772 (update_insn_after_change): Likewise for param "insn".
4773 (recompute_todo_spec): Likewise for param "next" and locals "pro",
4774 "other".
4775 (insn_cost): Likewise for param "insn".
4776 (increase_insn_priority): Likewise.
4777 (calculate_reg_deaths): Likewise.
4778 (setup_insn_reg_pressure_info): Likewise.
4779 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
4780 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
4781 (model_recompute): Likewise.
4782 (must_restore_pattern_p): Likewise for param "next".
4783 (model_excess_cost): Likewise for param "insn".
4784 (queue_remove): Likewise.
4785 (adjust_priority): Likewise for param "prev".
4786 (update_register_pressure): Likewise for param "insn".
4787 (setup_insn_max_reg_pressure): Likewise for local "insn".
4788 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
4789 (model_add_to_schedule): Likewise.
4790 (model_reset_queue_indices): Likewise for local "insn".
4791 (unschedule_insns_until): Strengthen local "recompute_vec" from
4792 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
4793 "con" from rtx to rtx_insn *.
4794 (restore_last_backtrack_point): Likewise for both locals "x". Add
4795 checked casts.
4796 (estimate_insn_tick): Likewise for param "insn".
4797 (commit_schedule): Likewise for params "prev_head", "tail" and
4798 local "x".
4799 (verify_shadows): Likewise for locals "i1", "i2".
4800 (dump_insn_stream): Likewise for params "head", "tail" and locals
4801 "next_tail", "insn".
4802 (schedule_block): Likewise for locals "insn", "x". Add a checked
4803 cast.
4804 (fix_inter_tick): Likewise for params "head", "tail".
4805 (create_check_block_twin): Likewise for local "jump".
4806 (haifa_change_pattern): Likewise for param "insn".
4807 (haifa_speculate_insn): Likewise.
4808 (dump_new_block_header): Likewise for params "head", "tail".
4809 (fix_jump_move): Likewise for param "jump".
4810 (move_block_after_check): Likewise.
4811 (sched_init_insn_luid): Likewise for param "insn".
4812 (sched_init_luids): Likewise for local "insn".
4813 (insn_luid): Likewise for param "insn".
4814 (init_h_i_d): Likewise.
4815 (haifa_init_h_i_d): Likewise for local "insn".
4816 (haifa_init_insn): Likewise for param "insn".
4817 * sched-deps.c (add_dependence): Likewise for local "real_pro",
4818 "other".
4819 (create_insn_reg_use): Likewise for param "insn".
4820 (setup_insn_reg_uses): Likewise. Add a checked cast.
4821 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
4822 "tail" from rtx to rtx_insn *.
4823 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
4824 "insn", "next_tail".
4825
4826 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4827
4828 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
4829 from rtx to rtx_insn *.
4830 (model_add_to_schedule): Likewise for locals "start", "end",
4831 "iter".
4832
4833 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4834
4835 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
4836 rtx_insn *.
4837 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
4838 "to" and locals "insn", "next", "copy". Remove now-redundant
4839 checked cast.
4840
4841 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4842
4843 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
4844 rtx_insn * and param 4 from rtx * to rtx_insn **.
4845 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
4846 param 2 from rtx * to rtx_insn **.
4847
4848 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
4849 rtx_insn * and final param from rtx * to rtx_insn **.
4850
4851 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
4852 from rtx to rtx_insn *.
4853 (try_head_merge_bb): Likewise for both locals named "move_upto".
4854 * df-problems.c (can_move_insns_across): Likewise for params
4855 "from", "to", "across_from", "across_to" and locals "insn",
4856 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
4857 rtx_insn **.
4858 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
4859 from rtx to rtx_insn *.
4860 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
4861 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
4862 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
4863 rtx_insn *.
4864 (noce_try_abs): Likewise.
4865 (noce_get_condition): Likewise for param "jump". Strengthen param
4866 "earliest" from rtx * to rtx_insn **.
4867 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
4868 rtx_insn *.
4869 (find_cond_trap): Likewise.
4870 (dead_or_predicable): Likewise for local "earliest".
4871 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
4872 checked cast.
4873 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
4874 and local "prev". Strengthen param "earliest" from rtx * to
4875 rtx_insn **.
4876 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
4877 Strengthen param "earliest" from rtx * to rtx_insn **.
4878
4879 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4880
4881 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
4882 "to" and local "insn" from rtx to rtx_insn *.
4883
4884 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4885
4886 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
4887 from rtx to rtx_insn *.
4888 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
4889 (code_motion_path_driver): Likewise for local "last_insn".
4890 (simplify_changed_insns): Likewise for local "insn".
4891
4892 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4893
4894 * rtl.h (push_to_sequence): Strengthen param from rtx to
4895 rtx_insn *.
4896 (push_to_sequence2): Likewise for both params.
4897 (delete_insns_since): Likewise for param.
4898 (reorder_insns_nobb): Likewise for all three params.
4899 (set_new_first_and_last_insn): Likewise for both params.
4900
4901 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
4902 rtx_insn *. Remove now-redundant cast.
4903 (set_last_insn): Likewise.
4904
4905 * builtins.c (expand_builtin_return): Strengthen local
4906 "call_fusage" from rtx to rtx_insn *.
4907 * cfgrtl.c (create_basic_block_structure): Likewise for local
4908 "after".
4909 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
4910 "first", "last" and local "insn".
4911 (delete_insns_since): Likewise for param "from".
4912 (reorder_insns_nobb): Likewise for params "from", "to", "after"
4913 and local "x".
4914 (push_to_sequence): Likewise for param "first" and local "last".
4915 (push_to_sequence2): Likewise for params "first" and "last".
4916 * lra.c (emit_add3_insn): Likewise for local "last".
4917 (lra_emit_add): Likewise.
4918 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
4919 "last_insn".
4920 (process_address_1): Likewise for locals "insn", last".
4921 * modulo-sched.c (ps_first_note): Likewise for return type.
4922 * optabs.c (expand_binop_directly): Likewise for param "last".
4923
4924 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4925
4926 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
4927 to rtx_insn*.
4928 * emit-rtl.c (get_last_insn_anywhere): Likewise.
4929
4930 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4931
4932 * function.h (struct sequence_stack): Strengthen fields "first"
4933 and "last" from rtx to rtx_insn *.
4934 (struct emit_status): Likewise for fields "x_first_insn" and
4935 "x_last_insn".
4936
4937 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
4938 (set_first_insn): Add checked cast.
4939 (get_last_insn): Remove now-redundant checked cast.
4940 (set_last_insn): Add checked cast.
4941
4942 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
4943 "saved_first" and "saved_last" from rtx to rtx_insn *.
4944
4945 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4946
4947 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
4948 (unlink_insn_chain): Strengthen both params from rtx to
4949 rtx_insn *.
4950
4951 * cfgrtl.c (cfg_layout_function_header): Likewise for this
4952 variable.
4953 (unlink_insn_chain): Likewise for params "first" and "last".
4954 Remove now-redundant checked cast.
4955 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
4956 (fixup_reorder_chain): Strengthen local "insn" from rtx to
4957 rtx_insn *.
4958 * emit-rtl.c (link_insn_into_chain): Likewise for all three
4959 params.
4960 (add_insn): Likewise for param "insn" and local "prev".
4961 (add_insn_after_nobb): Likewise for both params and local "next".
4962 (add_insn_before_nobb): Likewise for both params and local "prev".
4963 (add_insn_after): Rename param "after" to "uncast_after",
4964 introducing local "after" with another checked cast.
4965 (add_insn_before): Rename params "insn" and "before", giving them
4966 "uncast_" prefixes, adding the old names back using checked casts.
4967 (emit_note_after): Likewise for param "after".
4968 (emit_note_before): Likewise for param "before".
4969 (emit_label): Add a checked cast.
4970
4971 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4972
4973 * cselib.h (cselib_record_sets_hook): Strengthen initial param
4974 "insn" from rtx to rtx_insn *.
4975
4976 * cselib.c (cselib_record_sets_hook): Likewise.
4977
4978 * var-tracking.c (add_with_sets): Likewise, renaming back from
4979 "uncast_insn" to "insn" and eliminating the checked cast from rtx
4980 to rtx_insn *.
4981
4982 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4983
4984 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
4985 and "header_" from rtx to rtx_insn *.
4986 (struct basic_block_d): Likewise for field "head_" within "x"
4987 field of union basic_block_il_dependent.
4988 (BB_HEAD): Drop function...
4989 (SET_BB_HEAD): ...and this function in favor of...
4990 (BB_HEAD): ...reinstate macro.
4991 (BB_END): Drop function...
4992 (SET_BB_END): ...and this function in favor of...
4993 (BB_END): ...reinstate macro.
4994 (BB_HEADER): Drop function...
4995 (SET_BB_HEADER): ...and this function in favor of...
4996 (BB_HEADER): ...reinstate macro.
4997
4998 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
4999 (fix_crossing_unconditional_branches): Likewise.
5000 * caller-save.c (save_call_clobbered_regs): Likewise.
5001 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
5002 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
5003 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5004 (merge_blocks_move_successor_nojumps): Likewise.
5005 (outgoing_edges_match): Update use of for_each_rtx to
5006 for_each_rtx_in_insn.
5007 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
5008 (expand_gimple_cond): Likewise.
5009 (expand_gimple_tailcall): Likewise.
5010 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
5011 SET_BB_END.
5012 (construct_exit_block): Drop use of SET_BB_END.
5013 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
5014 rtx_insn *.
5015 (delete_insn): Rename param "insn" to "uncast_insn", introducing
5016 a new local "insn" with a checked cast to rtx_insn *. Drop use of
5017 SET_BB_HEAD and SET_BB_END.
5018 (create_basic_block_structure): Drop use of SET_BB_HEAD and
5019 SET_BB_END.
5020 (rtl_delete_block): Drop use of SET_BB_HEAD.
5021 (rtl_split_block): Drop use of SET_BB_END.
5022 (emit_nop_for_unique_locus_between): Likewise.
5023 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
5024 (block_label): Drop use of SET_BB_HEAD.
5025 (fixup_abnormal_edges): Drop use of SET_BB_END.
5026 (record_effective_endpoints): Drop use of SET_BB_HEADER.
5027 (relink_block_chain): Likewise.
5028 (fixup_reorder_chain): Drop use of SET_BB_END.
5029 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
5030 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
5031 rtx_insn **. Drop use of SET_BB_HEADER.
5032 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
5033 SET_BB_HEAD.
5034 (BB_HEAD): Delete this function.
5035 (SET_BB_HEAD): Likewise.
5036 (BB_END): Likewise.
5037 (SET_BB_END): Likewise.
5038 (BB_HEADER): Likewise.
5039 (SET_BB_HEADER): Likewise.
5040 * emit-rtl.c (add_insn_after): Rename param "insn" to
5041 "uncast_insn", adding a new local "insn" and a checked cast to
5042 rtx_insn *. Drop use of SET_BB_END.
5043 (remove_insn): Strengthen locals "next" and "prev" from rtx to
5044 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
5045 (reorder_insns): Drop use of SET_BB_END.
5046 (emit_insn_after_1): Strengthen param "first" and locals "last",
5047 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
5048 (emit_pattern_after_noloc): Add checked cast.
5049 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
5050 (restore_other_notes): Likewise.
5051 (move_insn): Likewise.
5052 (sched_extend_bb): Likewise.
5053 (fix_jump_move): Likewise.
5054 * ifcvt.c (noce_process_if_block): Likewise.
5055 (dead_or_predicable): Likewise.
5056 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
5057 * reg-stack.c (change_stack): Drop use of SET_BB_END.
5058 * sel-sched-ir.c (sel_move_insn): Likewise.
5059 * sel-sched.c (move_nop_to_previous_block): Likewise.
5060
5061 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
5062 SET_BB_END.
5063 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
5064
5065 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5066
5067 * basic-block.h (create_basic_block_structure): Strengthen params
5068 1 "head" and 2 "end" from rtx to rtx_insn *.
5069 * cfgrtl.c (create_basic_block_structure): Likewise.
5070 (rtl_create_basic_block): Update casts from void * to rtx to
5071 rtx_insn *, so that we can pass them as rtx_insn * to
5072 create_basic_block_structure.
5073 * sel-sched-ir.c (sel_create_basic_block): Likewise.
5074
5075 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5076
5077 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
5078 rtx_insn **.
5079 (check_for_inc_dec): Strengthen param "insn" from rtx to
5080 rtx_insn *.
5081
5082 * cselib.h (cselib_process_insn): Likewise.
5083
5084 * cselib.c (cselib_record_sets): Likewise.
5085 (cselib_process_insn): Likewise.
5086
5087 * dse.c (struct insn_info): Likewise for field "insn".
5088 (check_for_inc_dec_1): Likewise for local "insn".
5089 (check_for_inc_dec): Likewise for param "insn".
5090 (scan_insn): Likewise.
5091 (dse_step1): Likewise for local "insn".
5092
5093 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
5094 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
5095
5096 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5097
5098 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
5099 from rtx to rtx_insn *.
5100 (DEP_PRO): Delete this function and...
5101 (SET_DEP_PRO): ...this function in favor of...
5102 (DEP_PRO): ...reinstate this macro.
5103 (DEP_CON): Delete this function and...
5104 (SET_DEP_CON): ...this function in favor of...
5105 (DEP_CON): ...reinstate this old macro.
5106 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
5107 (init_dep): Likewise.
5108 (set_priorities): Likewise for both params.
5109 (sd_copy_back_deps): Likewise for params 1 and 2.
5110
5111 * haifa-sched.c (priority): Likewise for param "insn" and local
5112 "next".
5113 (set_priorities): Likewise for params "head" and "tail" and local
5114 "insn".
5115 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
5116 local "consumer".
5117 (add_to_speculative_block): Add a checked cast.
5118 (create_check_block_twin): Drop use of SET_DEP_CON.
5119 (add_jump_dependencies): Strengthen params "insn" and "jump" from
5120 rtx to rtx_insn *.
5121
5122 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
5123 Drop use of SET_DEP_PRO
5124 (init_dep): Strengthen params "pro" and "con" from rtx to
5125 rtx_insn *.
5126 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
5127 use of SET_DEP_CON.
5128 (DEP_PRO): Delete.
5129 (DEP_CON): Delete.
5130 (SET_DEP_PRO): Delete.
5131 (SET_DEP_CON): Delete.
5132
5133 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5134
5135 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
5136 from rtx to rtx_insn *.
5137 (VINSN_INSN_RTX): Eliminate rvalue function and...
5138 (SET_VINSN_INSN): ...lvalue function in favor of...
5139 (VINSN_INSN_RTX): reinstate this old macro.
5140
5141 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
5142 in favor of VINSN_INSN_RTX.
5143 (VINSN_INSN_RTX): Delete this function.
5144 (SET_VINSN_INSN_RTX): Likewise.
5145
5146 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5147
5148 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
5149 (BND_TO): Delete this function and...
5150 (SET_BND_TO): ...this functions in favor of...
5151 (BND_TO): ...reinstating this macro.
5152 (struct _fence): Strengthen field "executing_insns" from
5153 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
5154 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
5155 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
5156 and param "insn" from rtx to insn_t.
5157 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
5158 rtx_insn *.
5159
5160 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
5161 vec<rtx_insn *> .
5162 (rtx_vec_t): Likewise.
5163 (struct sched_deps_info_def): Strengthen param of "start_insn"
5164 callback from rtx to rtx_insn *. Likewise for param "insn2" of
5165 "note_mem_dep" callback and first param of "note_dep" callback.
5166
5167 * haifa-sched.c (add_to_speculative_block): Strengthen param
5168 "insn" from rtx to rtx_insn *.
5169 (clear_priorities): Likewise.
5170 (calc_priorities): Likewise for local "insn".
5171
5172 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
5173 Remove redundant checked cast.
5174 (haifa_note_mem_dep): Likewise for param "pending_insn".
5175 (haifa_note_dep): Likewise for param "elem".
5176 (note_mem_dep): Likewise for param "e".
5177 (sched_analyze_1): Add checked casts.
5178 (sched_analyze_2): Likewise.
5179
5180 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
5181 from rtx to rtx_insn *.
5182 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
5183 from vec<rtx> * to vec<rtx_insn *> *.
5184
5185 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
5186 scaffolding.
5187 (flist_add): Strengthen param "executing_insns" from
5188 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
5189 (advance_deps_context): Remove now-redundant checked cast.
5190 (init_fences): Replace uses of NULL_RTX with NULL.
5191 (merge_fences): Strengthen params "last_scheduled_insn" and
5192 "sched_next" from rtx to rtx_insn * and "executing_insns" from
5193 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
5194 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
5195 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
5196 an instruction, rather than doing double-duty as a pattern.
5197 (return_nop_to_pool): Update for change of insn_t.
5198 (deps_init_id): Remove now-redundant checked cast.
5199 (struct sched_scan_info_def): Strengthen param of "init_insn"
5200 callback from rtx to insn_t.
5201 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
5202 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
5203 NULL.
5204 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
5205 "end" from rtx to rtx_insn *.
5206 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
5207 (rtx insn_rtx, bool force_unique_p)
5208 (BND_TO): Delete function.
5209 (SET_BND_TO): Delete function.
5210
5211 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
5212 rtx to rtx_insn *.
5213 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
5214 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
5215 rtx to rtx_insn *.
5216 (undo_transformations): Likewise for param "insn".
5217 (update_liveness_on_insn): Likewise.
5218 (compute_live_below_insn): Likewise for param "insn" and local
5219 "succ".
5220 (update_data_sets): Likewise for param "insn".
5221 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
5222 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
5223 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
5224 rtx_insn *.
5225 (move_cond_jump): Likewise for param "insn".
5226 (move_cond_jump): Drop use of SET_BND_TO.
5227 (compute_av_set_on_boundaries): Likewise.
5228 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
5229 (update_and_record_unavailable_insns): Strengthen local "bb_end"
5230 from rtx to rtx_insn *.
5231 (maybe_emit_renaming_copy): Likewise for param "insn".
5232 (maybe_emit_speculative_check): Likewise.
5233 (handle_emitting_transformations): Likewise.
5234 (remove_insn_from_stream): Likewise.
5235 (code_motion_process_successors): Strengthen local "succ" from rtx
5236 to insn_t.
5237
5238 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5239
5240 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
5241 ilist_t, not _xlist_t;
5242 (ILIST_INSN): Define in terms of new union field "insn".
5243 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
5244 _XLIST_NEXT.
5245 (struct _list_node): Add new field "insn" to the union, of type
5246 insn_t.
5247 (ilist_add): Replace macro with an inline function, requiring an
5248 insn_t.
5249 (ilist_remove): Define this macro directly in terms of
5250 _list_remove, rather than indirectly via _xlist_remove.
5251 (ilist_clear): Likewise, in terms of _list_clear rather than
5252 _xlist_clear.
5253 (ilist_is_in_p): Replace macro with an inline function, requiring
5254 an insn_t.
5255 (_list_iter_cond_insn): New function.
5256 (ilist_iter_remove): Define this macro directly in terms of
5257 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
5258 (ilist_iterator): Define directly in terms of _list_iterator
5259 rather than indirectly through _xlist_iterator.
5260 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
5261 than in terms of _FOR_EACH_X.
5262 (FOR_EACH_INSN_1): Likewise.
5263
5264 2014-08-26 Joseph Myers <joseph@codesourcery.com>
5265
5266 PR target/60606
5267 PR target/61330
5268 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
5269 DECL_HARD_REGISTER and return for invalid register specifications.
5270 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
5271 DECL_HARD_REGISTER, call expand_one_error_var.
5272 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
5273 CC_REGNUM with non-MODE_CC modes.
5274 (arm_regno_class): Return NO_REGS for PC_REGNUM.
5275
5276 2014-08-26 Marek Polacek <polacek@redhat.com>
5277
5278 PR c/61271
5279 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
5280
5281 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
5282
5283 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
5284 qi cost; add di cost.
5285 (cortexa57_addrcost_table): Likewise.
5286
5287 2014-08-26 Marek Polacek <polacek@redhat.com>
5288
5289 PR c/61271
5290 * expr.c (is_aligning_offset): Remove logical not.
5291
5292 2014-08-26 Marek Polacek <polacek@redhat.com>
5293
5294 PR c/61271
5295 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
5296 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
5297
5298 2014-08-26 Richard Biener <rguenther@suse.de>
5299
5300 PR tree-optimization/62175
5301 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
5302 expand possibly trapping operations.
5303
5304 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5305
5306 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
5307 "insn" from rtx to rtx_insn *.
5308 (permute_load): Likewise for param "insn".
5309 (permute_store): Likewise.
5310 (handle_special_swappables): Likewise for local "insn".
5311 (replace_swap_with_copy): Likewise for locals "insn" and
5312 "new_insn".
5313 (rs6000_analyze_swaps): Likewise for local "insn".
5314
5315 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5316
5317 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
5318 to rtx_insn *.
5319
5320 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5321
5322 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
5323 "note_list" from rtx to rtx_insn *.
5324 (BB_NOTE_LIST): Replace this function and...
5325 (SET_BB_NOTE_LIST): ...this function with...
5326 (BB_NOTE_LIST): ...the former macro implementation.
5327
5328 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
5329 local "from_start" from rtx to rtx_insn *. Strengthen param
5330 "to_endp" from rtx * to rtx_insn **.
5331
5332 * haifa-sched.c (concat_note_lists): Likewise.
5333 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
5334 BB_NOTE_LIST.
5335 (sel_restore_notes): Likewise.
5336 (move_bb_info): Likewise.
5337 (BB_NOTE_LIST): Delete this function.
5338 (SET_BB_NOTE_LIST): Delete this function.
5339 * sel-sched.c (create_block_for_bookkeeping): Eliminate
5340 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
5341
5342 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5343
5344 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
5345 from rtx * to rtx_insn **.
5346 (reorder2): Likewise.
5347 (dependencies_evaluation_hook): Strengthen params "head", "tail"
5348 from rtx to rtx_insn *.
5349
5350 * doc/tm.texi: Update mechanically for above change to target.def.
5351
5352 * sched-int.h (note_list): Strengthen this variable from rtx to
5353 rtx_insn *.
5354 (remove_notes): Likewise for both params.
5355 (restore_other_notes): Likewise for return type and first param.
5356 (struct ready_list): Strengthen field "vec" from rtx * to
5357 rtx_insn **.
5358 (struct dep_replacement): Strenghten field "insn" from rtx to
5359 rtx_insn *.
5360 (struct deps_desc): Likewise for fields "last_debug_insn",
5361 "last_args_size".
5362 (struct haifa_sched_info): Likewise for callback field
5363 "can_schedule_ready_p"'s param, for first param of "new_ready"
5364 callback field, for both params of "rank" callback field, for
5365 first field of "print_insn" callback field (with a const), for
5366 both params of "contributes_to_priority" callback, for param
5367 of "insn_finishes_block_p" callback, for fields "prev_head",
5368 "next_tail", "head", "tail", for first param of "add_remove_insn"
5369 callback, for first param of "begin_schedule_ready" callback, for
5370 both params of "begin_move_insn" callback, and for second param
5371 of "advance_target_bb" callback.
5372 (add_dependence): Likewise for params 1 and 2.
5373 (sched_analyze): Likewise for params 2 and 3.
5374 (deps_analyze_insn): Likewise for param 2.
5375 (ready_element): Likewise for return type.
5376 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
5377 (try_ready): Strenghten param from rtx to rtx_insn *.
5378 (sched_emit_insn): Likewise for return type.
5379 (record_delay_slot_pair): Likewise for params 1 and 2.
5380 (add_delay_dependencies): Likewise for param.
5381 (contributes_to_priority): Likewise for both params.
5382 (find_modifiable_mems): Likewise.
5383
5384 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
5385 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
5386 "first_older_only_insn" from rtx to rtx_insn *.
5387 (arm_sched_reorder): Strengthen param "ready" from rtx * to
5388 rtx_insn **.
5389
5390 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
5391 "last_scheduled_iter0" from rtx to rtx_insn *.
5392 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
5393 (c6x_sched_reorder_1): Strengthen param "ready" and locals
5394 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
5395 "insn" from rtx to rtx_insn *.
5396 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
5397 rtx_insn **.
5398 (c6x_sched_reorder2): Strengthen param "ready" and locals
5399 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
5400 "insn" from rtx to rtx_insn *.
5401 (c6x_variable_issue): Add a checked cast when assigning from insn
5402 to ss.last_scheduled_iter0.
5403 (split_delayed_branch): Strengthen param "insn" and local "i1"
5404 from rtx to rtx_insn *.
5405 (split_delayed_nonbranch): Likewise.
5406 (undo_split_delayed_nonbranch): Likewise for local "insn".
5407 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
5408 "entry_after", "end_packet", "head_insn", "tail_insn",
5409 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
5410 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
5411 to rtx_insn **. Remove now-redundant checked cast on last_insn,
5412 but add a checked cast on loop->start_label. Consolidate calls to
5413 avoid assigning result of gen_spkernel to "insn", now an
5414 rtx_insn *.
5415
5416 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
5417 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
5418 rtx to rtx_insn *.
5419 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
5420 rtx_insn **. Strengthen locals "top", "next" from rtx to
5421 rtx_insn *.
5422 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
5423 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
5424 (add_parameter_dependencies): Strengthen params "call", "head" and
5425 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
5426 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
5427 (add_dependee_for_func_arg): Likewise for param "arg" and local
5428 "insn".
5429 (ix86_dependencies_evaluation_hook): Likewise for params "head",
5430 "tail" and locals "insn", "first_arg".
5431
5432 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
5433 for params "head", "tail" and locals "insn", "next", "next_tail".
5434 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
5435 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
5436 "insn", "lowest", "highest" from rtx to rtx_insn *.
5437 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
5438 rtx_insn **.
5439 (ia64_sched_reorder2): Likewise.
5440
5441 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
5442 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
5443 from rtx * to rtx_insn **.
5444 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
5445 rtx_insn **.
5446 (mep_print_sched_insn): Strengthen param "insn" from rtx to
5447 rtx_insn *.
5448 (mep_sched_reorder): Strengthen param "ready" from rtx * to
5449 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
5450 to rtx_insn *.
5451
5452 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
5453 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
5454 to rtx_insn *.
5455 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
5456 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
5457 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
5458 rtx_insn **.
5459 (vr4130_reorder): Likewise.
5460 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
5461 rtx to rtx_insn *.
5462 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
5463 rtx_insn **.
5464 (mips_sched_reorder): Likewise.
5465 (mips_sched_reorder2): Likewise.
5466
5467 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
5468
5469 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
5470 Strengthen local "tmp" from rtx to rtx_insn *.
5471 (rs6000_sched_reorder2): Likewise.
5472
5473 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
5474 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
5475 (s390_sched_reorder): Strengthen param "ready" from rtx * to
5476 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
5477
5478 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
5479 "tmp2" from rtx to rtx_insn *.
5480 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
5481 Strengthen local "insn" from rtx to rtx_insn *.
5482 (ready_reorder): Strengthen param "ready" from rtx * to
5483 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
5484 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
5485 (sh_reorder2): Likewise.
5486
5487 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
5488 local "insn" from rtx to rtx_insn *.
5489
5490 * haifa-sched.c (note_list): Strengthen this variable from rtx to
5491 rtx_insn *.
5492 (scheduled_insns): Strengthen this variable from vec<rtx> to
5493 vec<rtx_insn *>.
5494 (set_modulo_params): Likewise for locals "i1", "i2".
5495 (record_delay_slot_pair): Likewise for params "i1", "i2".
5496 (add_delay_dependencies): Likewise for param "insn".
5497 (cond_clobbered_p): Likewise.
5498 (recompute_todo_spec): Likewise for local "prev".
5499 (last_scheduled_insn): Likewise for this variable.
5500 (nonscheduled_insns_begin): Likewise.
5501 (model_set_excess_costs): Strengthen param "insns" from rtx * to
5502 rtx_insn **.
5503 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
5504 rtx_insn *.
5505 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
5506 Strengthen local "insn" from rtx to rtx_insn *.
5507 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
5508 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
5509 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
5510 (ready_remove_first): Likewise for return type and local "t".
5511 (ready_element): Likewise for return type.
5512 (ready_remove): Likewise for return type and local "t".
5513 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
5514 (check_clobbered_conditions): Strengthen local "x" from rtx to
5515 rtx_insn *, adding a checked cast.
5516 (schedule_insn): Likewise for param "insn".
5517 (remove_notes): Likewise for params "head", "tail" and locals
5518 "next_tail", "insn", "next".
5519 (struct haifa_saved_data): Likewise for fields
5520 "last_scheduled_insn", "nonscheduled_insns_begin".
5521 (save_backtrack_point): Update for change to field "vec" of
5522 struct ready_list.
5523 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
5524 rtx_insn **.
5525 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
5526 from rtx to rtx_insn *
5527 (resolve_dependencies): Strengthen param "insn" from rtx to
5528 rtx_insn *
5529 (restore_other_notes): Likewise for return type, for param "head"
5530 and local "note_head".
5531 (undo_all_replacements): Likewise for local "insn".
5532 (first_nonscheduled_insn): Likewise for return type and local "insn".
5533 (queue_to_ready): Likewise for local "insn", adding checked casts.
5534 (early_queue_to_ready): Likewise for local "insn".
5535 (debug_ready_list_1): Strengthen local "p" from rtx * to
5536 rtx_insn **.
5537 (move_insn): Strengthen param "insn" and local "note" from rtx to
5538 rtx_insn *
5539 (insn_finishes_cycle_p): Likewise for param "insn".
5540 (max_issue): Likewise for local "insn".
5541 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
5542 to rtx_insn **.
5543 (commit_schedule): Strengthen param "prev_head" and local "insn"
5544 from rtx to rtx_insn *
5545 (prune_ready_list): Likewise for local "insn".
5546 (schedule_block): Likewise for locals "prev_head", "head", "tail",
5547 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
5548 (set_priorities): Likewise for local "prev_head".
5549 (try_ready): Likewise for param "next".
5550 (fix_tick_ready): Likewise.
5551 (change_queue_index): Likewise.
5552 (sched_extend_ready_list): Update for change to field "vec" of
5553 struct ready_list.
5554 (generate_recovery_code): Strengthen param "insn" from rtx to
5555 rtx_insn *.
5556 (begin_speculative_block): Likewise.
5557 (create_check_block_twin): Likewise for param "insn" and locals
5558 "label", "check", "twin". Introduce local "check_pat" to avoid
5559 "check" being used as a plain rtx before being used as an insn.
5560 (fix_recovery_deps): Add a checked cast to rtx_insn * when
5561 extracting elements from ready_list.
5562 (sched_remove_insn): Strengthen param "insn" from rtx to
5563 rtx_insn *.
5564 (sched_emit_insn): Likewise for return type.
5565 (ready_remove_first_dispatch): Likewise for return type and local
5566 "insn".
5567
5568 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
5569
5570 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
5571 const rtx_insn *.
5572
5573 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
5574 from rtx to rtx_insn *.
5575 (add_dependence_list): Likewise for param "insn". Add a checked
5576 cast.
5577 (add_dependence_list_and_free): Strengthen param "insn" from rtx
5578 to rtx_insn *. Strengthen param "list_p" from rtx * to
5579 rtx_insn **.
5580 (chain_to_prev_insn): Strengthen param "insn" and locals
5581 "prec_nonnote", "i" from rtx to rtx_insn *.
5582 (flush_pending_lists): Likewise for param "insn".
5583 (cur_insn): Likewise for this variable.
5584 (haifa_start_insn): Add a checked cast.
5585 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
5586 (sched_analyze_reg): Likewise for param "insn".
5587 (sched_analyze_1): Likewise.
5588 (sched_analyze_2): Likewise. Add checked casts.
5589 (sched_analyze_insn): Likewise. Also for local "prev".
5590 (deps_analyze_insn): Likewise for param "insn".
5591 (sched_analyze): Likewise for params "head", "tail" and local "insn".
5592 (add_dependence_1): Likewise for params "insn", "elem".
5593 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
5594 (parse_add_or_inc): Likewise for param "insn".
5595 (find_inc): Likewise for local "inc_cand".
5596 (find_modifiable_mems): Likewise for params "head", "tail" and
5597 locals "insn", "next_tail".
5598
5599 * sched-ebb.c (init_ready_list): Likewise for local "insn".
5600 (begin_schedule_ready): Likewise for param "insn".
5601 (begin_move_insn): Likewise for params "insn" and "last".
5602 (ebb_print_insn): Strengthen param "insn" from const_rtx to
5603 const rtx_insn *.
5604 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
5605 (ebb_contributes_to_priority): Likewise for params "next", "insn".
5606 (ebb_add_remove_insn): Likewise for param "insn".
5607 (advance_target_bb): Likewise.
5608
5609 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
5610 "insn".
5611 (check_live): Likewise for param "insn".
5612 (init_ready_list): Likewise for local "insn".
5613 (can_schedule_ready_p): Likewise for param "insn".
5614 (begin_schedule_ready): Likewise.
5615 (new_ready): Likewise for param "next".
5616 (rgn_print_insn): Likewise for param "insn".
5617 (rgn_rank): Likewise for params "insn1", "insn2".
5618 (contributes_to_priority): Likewise for params "next", "insn".
5619 (rgn_insn_finishes_block_p): Likewise for param "insn".
5620 (add_branch_dependences): Likewise for params "head", "tail" and
5621 locals "insn", "last".
5622 (rgn_add_remove_insn): Likewise for param "insn".
5623 (advance_target_bb): Likewise.
5624
5625 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
5626 const_rtx to const rtx_insn *.
5627
5628 * sel-sched-dump.h (sel_print_insn): Likewise.
5629
5630 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
5631 (deps_init_id): Likewise.
5632
5633 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
5634 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
5635 rtx_insn **.
5636
5637 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5638
5639 * output.h (final_start_function): Strengthen param 1 from rtx to
5640 rtx_insn *.
5641
5642 * final.c (final_start_function): Likewise, renaming back from
5643 "uncast_first" to "first", and dropping the checked cast from rtx
5644 to rtx_insn *.
5645
5646 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5647
5648 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
5649 * final.c (final): Likewise. Rename param back from
5650 "uncast_first" to "first" and eliminate the checked cast from rtx
5651 to rtx_insn *.
5652
5653 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5654
5655 * output.h (shorten_branches): Strengthen param from rtx to
5656 rtx_insn *.
5657
5658 * final.c (shorten_branches): Likewise, renaming param back from
5659 "uncast_first" to "first", and dropping the checked cast from rtx
5660 to rtx_insn *.
5661
5662 * genattr.c (gen_attr): Likewise when writing out the prototype of
5663 shorten_branches.
5664
5665 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5666
5667 * sched-int.h (struct haifa_sched_info): Strengthen fields
5668 "prev_head" and "next_tail" from rtx to rtx_insn *.
5669
5670 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5671
5672 * rtl.h (rtx_jump_table_data::get_labels): New method.
5673 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
5674 with use of the new rtx_jump_table_data::get_labels method.
5675 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
5676 to rtx_jump_table_data *. Simplify by using get_labels method.
5677 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
5678 a dyn_cast, introducing local "table", using it to replace
5679 label-lookup logic with a get_labels method call.
5680 (patch_jump_insn): Simplify using get_labels method.
5681 * dwarf2cfi.c (create_trace_edges): Likewise.
5682 * rtlanal.c (label_is_jump_target_p): Likewise.
5683
5684 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5685
5686 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
5687 to rtx_insn *.
5688
5689 * emit-rtl.c (unshare_all_rtl_1): Likewise.
5690 (unshare_all_rtl_again): Likewise, also for local "p".
5691
5692 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5693
5694 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
5695 to rtx_insn *.
5696 * cfgrtl.c (delete_insn_and_edges): Likewise.
5697
5698 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5699
5700 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
5701 from rtx to rtx_insn *.
5702
5703 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
5704
5705 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5706
5707 * function.c (thread_prologue_and_epilogue_insns): Likewise for
5708 locals "returnjump", "epilogue_end", "insn", "next".
5709
5710 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
5711 "returnjump" from rtx * to rtx_insn **.
5712 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
5713
5714 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5715
5716 * basic-block.h (struct edge_def). Strengthen "r" within
5717 union edge_def_insns from rtx to rtx_insn *.
5718
5719 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
5720 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
5721 rtx_insn *.
5722 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
5723 from rtx to rtx_insn *.
5724 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
5725 rtx_insn *.
5726 * postreload-gcse.c (reg_killed_on_edge): Likewise.
5727 (reg_used_on_edge): Likewise.
5728 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
5729 (gt_pch_nx): New overload for rtx_insn *&.
5730 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
5731 from rtx to rtx_insn *.
5732
5733 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5734
5735 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
5736 from rtx to rtx_insn *.
5737 (BB_FOOTER): Replace function with access macro.
5738 (SET_BB_FOOTER): Delete.
5739
5740 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
5741 with BB_FOOTER.
5742 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5743 (emit_barrier_after_bb): Likewise.
5744 (record_effective_endpoints): Likewise.
5745 (relink_block_chain): Likewise.
5746 (fixup_fallthru_exit_predecessor): Likewise.
5747 (cfg_layout_duplicate_bb): Likewise.
5748 (cfg_layout_split_block): Likewise.
5749 (cfg_layout_delete_block): Likewise.
5750 (cfg_layout_merge_blocks): Likewise.
5751 (BB_FOOTER): Delete function.
5752 (SET_BB_FOOTER): Delete function.
5753 * combine.c (update_cfg_for_uncondjump): Replace uses of
5754 SET_BB_FOOTER with BB_FOOTER.
5755
5756 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5757
5758 * except.h (struct eh_landing_pad_d): Strengthen field
5759 "landing_pad" from rtx to rtx_code_label *.
5760
5761 * except.c (sjlj_emit_dispatch_table): Likewise for param
5762 "dispatch_label"
5763 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
5764
5765 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5766
5767 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
5768 first param from rtx to rtx_insn *.
5769 * config/xtensa/xtensa.c (struct machine_function): Likewise for
5770 field "set_frame_ptr_insn".
5771 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
5772 "csend" from rtx to rtx_code_label *.
5773 (xtensa_expand_atomic): Likewise for local "csloop".
5774 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
5775 rtx_insn *.
5776 (xtensa_call_tls_desc): Likewise for return type and locals
5777 "call_insn", "insns".
5778 (xtensa_legitimize_tls_address): Likewise for local "insns".
5779 (xtensa_expand_prologue): Likewise for locals "insn", "first".
5780
5781 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5782
5783 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
5784 first param from rtx to rtx_insn *.
5785 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
5786 "insn".
5787
5788 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5789
5790 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
5791 Strengthen param 1 from rtx to rtx_insn *.
5792 (tilepro_output_cbranch): Likewise.
5793 (tilepro_adjust_insn_length): Likewise.
5794 (tilepro_final_prescan_insn): Likewise for sole param.
5795
5796 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
5797 Likewise for local "last".
5798 (cbranch_predicted_p): Likewise for param "insn".
5799 (tilepro_output_simple_cbranch_with_opcode): Likewise.
5800 (tilepro_output_cbranch_with_opcode): Likewise.
5801 (tilepro_output_cbranch): Likewise.
5802 (frame_emit_load): Likewise for return type and locals "seq",
5803 "insn".
5804 (emit_sp_adjust): Likewise for return type and local "insn".
5805 (tilepro_expand_epilogue): Likewise for locals "last_insn",
5806 "insn".
5807 (tilepro_adjust_insn_length): Likewise for param "insn".
5808 (next_insn_to_bundle): Likewise for return type and params
5809 "r", "end".
5810 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
5811 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
5812 local "new_insns".
5813 (match_addli_pcrel): Likewise for param "insn".
5814 (replace_addli_pcrel): Likewise.
5815 (match_auli_pcrel): Likewise.
5816 (replace_auli_pcrel): Likewise.
5817 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
5818 "next_insn".
5819 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
5820 "queue", "next_queue", "prev".
5821 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
5822 (tilepro_final_prescan_insn): Likewise for param "insn".
5823
5824 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5825
5826 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
5827 Strengthen param 1 from rtx to rtx_insn *.
5828 (tilegx_output_cbranch): Likewise.
5829 (tilegx_adjust_insn_length): Likewise.
5830 (tilegx_final_prescan_insn): Likewise for sole param.
5831
5832 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
5833 or local "last".
5834 (cbranch_predicted_p): Likewise for param "insn".
5835 (tilegx_output_simple_cbranch_with_opcode): Likewise.
5836 (tilegx_output_cbranch_with_opcode): Likewise.
5837 (tilegx_output_cbranch): Likewise.
5838 (frame_emit_load): Likewise for return type.
5839 (set_frame_related_p): Likewise for locals "seq", "insn".
5840 (emit_sp_adjust): Likewise for return type, and for local "insn".
5841 Introduce local "pat" for use in place of "insn" where the latter
5842 isn't an instruction.
5843 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
5844 from rtx to rtx_insn *.
5845 (tilegx_adjust_insn_length): Likewise for param "insn".
5846 (next_insn_to_bundle): Likewise for return type and params "r" and
5847 "end".
5848 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
5849 "end".
5850 (replace_insns): Likewise for params "old_insn", "new_insns".
5851 (replace_mov_pcrel_step1): Likewise for param "insn" and local
5852 "new_insns".
5853 (replace_mov_pcrel_step2): Likewise.
5854 (replace_mov_pcrel_step3): Likewise.
5855 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
5856 "next_insn".
5857 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
5858 "queue", "next_queue", "prev".
5859 (tilegx_output_mi_thunk): Likewise for local "insn".
5860 (tilegx_final_prescan_insn): Likewise for param "insn".
5861
5862 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5863
5864 * config/spu/spu.c (frame_emit_store): Strengthen return type from
5865 rtx to rtx_insn *.
5866 (frame_emit_load): Likewise.
5867 (frame_emit_add_imm): Likewise, also for local "insn".
5868 (spu_expand_prologue): Likewise for local "insn".
5869 (struct spu_bb_info): Likewise for field "prop_jump".
5870 (emit_nop_for_insn): Likewise for param "insn" and local
5871 "new_insn".
5872 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
5873 "hbr_insn".
5874 (spu_emit_branch_hint): Likewise for params "before", "branch" and
5875 locals "hint", "insn".
5876 (get_branch_target): Likewise for param "branch".
5877 (insn_clobbers_hbr): Likewise for param "insn".
5878 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
5879 locals "insn", "before_4", "before_16".
5880 (insert_hbrp): Likewise for local "insn".
5881 (spu_machine_dependent_reorg): Likewise for locals "branch",
5882 "insn", "next", "bbend".
5883 (uses_ls_unit): Likewise for param "insn".
5884 (get_pipe): Likewise.
5885 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
5886 introducing a checked cast.
5887 (spu_sched_adjust_cost): Likewise for params "insn" and
5888 "dep_insn".
5889 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
5890 (spu_sms_res_mii): Likewise.
5891
5892 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5893
5894 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
5895 from rtx to rtx_insn *.
5896 (output_cbranch): Likewise for param 6.
5897 (output_return): Likewise for param 1.
5898 (output_sibcall): Likewise.
5899 (output_v8plus_shift): Likewise.
5900 (output_v8plus_mult): Likewise.
5901 (output_v9branch): Likewise for param 7.
5902 (output_cbcond): Likewise for param 3.
5903
5904 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
5905 for local "insn".
5906 (sparc_legitimize_pic_address): Likewise.
5907 (sparc_emit_call_insn): Likewise.
5908 (emit_save_or_restore_regs): Likewise.
5909 (emit_window_save): Likewise for return type and local "insn".
5910 (sparc_expand_prologue): Likewise for local "insn".
5911 (sparc_flat_expand_prologue): Likewise.
5912 (output_return): Likewise for param "insn".
5913 (output_sibcall): Likewise for param "insn" and local "delay".
5914 (output_ubranch): Likewise for param "insn".
5915 (output_cbranch): Likewise.
5916 (output_cbcond): Likewise.
5917 (output_v9branch): Likewise.
5918 (output_v8plus_shift): Likewise.
5919 (sparc_output_mi_thunk): Likewise for local "insn".
5920 (get_some_local_dynamic_name): Likewise.
5921 (output_v8plus_mult): Likewise for param "insn".
5922
5923 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5924
5925 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
5926 from rtx to rtx_insn *.
5927 (output_branchy_insn): Likewise for param 3.
5928 (output_far_jump): Likewise for param 1.
5929 (final_prescan_insn): Likewise.
5930 (sh_insn_length_adjustment): Likewise for sole param.
5931
5932 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
5933 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
5934 rtx_code_label *.
5935 (sh_emit_compare_and_set): Likewise for local "lab".
5936 (output_far_jump): Strengthen param "insn" and local "prev" from
5937 rtx to rtx_insn *.
5938 (output_branchy_insn): Likewise for param "insn" and local
5939 "next_insn".
5940 (output_ieee_ccmpeq): Likewise for param "insn".
5941 (struct label_ref_list_d): Strengthen field "label" from rtx to
5942 rtx_code_label *.
5943 (pool_node): Likewise.
5944 (pool_window_label): Likewise for this global.
5945 (add_constant): Likewise for return type and locals "lab", "new_rtx".
5946 (dump_table): Strengthen params "start", "barrier" and local
5947 "scan" from rtx to rtx_insn *.
5948 (broken_move): Likewise for param "insn".
5949 (untangle_mova): Likewise for params "first_mova" and "new_mova".
5950 Strengthen param "first_mova" from rtx * to rtx_insn **.
5951 (mova_p): Likewise for param "insn".
5952 (fixup_mova): Likewise for param "mova".
5953 (find_barrier): Likewise for return type, params "mova" and
5954 "from", and locals "barrier_before_mova", "found_barrier",
5955 "good_barrier", "orig", "last_symoff", "next". Strengthen local
5956 "label" from rtx to rtx_code_label *.
5957 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
5958 rtx to rtx_insn *.
5959 (sh_reorg): Likewise for locals "link", "scan", "barrier".
5960 (split_branches): Likewise for param "first" and local "insn".
5961 (final_prescan_insn): Likewise for param "insn".
5962 (sequence_insn_p): Likewise for locals "prev", "next".
5963 (sh_insn_length_adjustment): Likewise for param "insn".
5964 (sh_can_redirect_branch): Likewise for local "insn".
5965 (find_r0_life_regions): Likewise for locals "end", "insn".
5966 (sh_output_mi_thunk): Likewise for local "insns".
5967
5968 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5969
5970 * config/score/score.c (score_output_mi_thunk): Strengthen local
5971 "insn" from rtx to rtx_insn *.
5972 (score_prologue): Likewise.
5973
5974 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5975
5976 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
5977 1 from rtx to rtx_insn *.
5978 (s390_emit_jump): Likewise for return type.
5979 (s390_emit_call): Likewise.
5980 (s390_load_got): Likewise.
5981
5982 * config/s390/s390.c (last_scheduled_insn): Likewise for this
5983 variable.
5984 (s390_match_ccmode): Likewise for param "insn".
5985 (s390_emit_jump): Likewise for return type.
5986 (s390_split_branches): Likewise for local "label".
5987 (struct constant): Strengthen field "label" from rtx to
5988 rtx_code_label *.
5989 (struct constant_pool): Likewise for field "label". Strengthen
5990 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
5991 rtx_insn *.
5992 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
5993 insns.
5994 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
5995 (s390_end_pool): Likewise.
5996 (s390_dump_pool): Likewise for local "insn".
5997 (s390_mainpool_start): Likewise.
5998 (s390_chunkify_start): Likewise.
5999 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
6000 with insns. Strengthen locals "label", "jump", "barrier", "next",
6001 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
6002 (s390_chunkify_finish): Strengthen local "insn" from rtx to
6003 rtx_insn *.
6004 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
6005 "jump", "label", "next_insn".
6006 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
6007 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
6008 "tbegin_insn".
6009 (s390_load_got): Likewise for return type and local "insns".
6010 (s390_save_gprs_to_fprs): Likewise for local "insn".
6011 (s390_restore_gprs_from_fprs): Likewise.
6012 (pass_s390_early_mach::execute): Likewise.
6013 (s390_emit_prologue): Likewise for local "insns".
6014 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
6015 rtx_code_label *.
6016 (s390_emit_call): Strengthen return type and local "insn" from
6017 rtx to rtx_insn *.
6018 (s390_emit_tpf_eh_return): Likewise for local "insn".
6019 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
6020 "next_insn", introducing locals "s_pat", "rpat" to allow this.
6021 (s390_fix_long_loop_prediction): Likewise for param "insn" and
6022 local "cur_insn".
6023 (s390_non_addr_reg_read_p): Likewise for param "insn".
6024 (find_cond_jump): Likewise for return type and param "insn".
6025 (s390_swap_cmp): Likewise for param "insn".
6026 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
6027 "prev_insn", "next_insn".
6028 (s390_reorg): Likewise for locals "insn", "target".
6029 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
6030 (s390_sched_variable_issue): For now, rename param "insn" to
6031 "uncast_insn", introducing a checked cast.
6032 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
6033 insn.
6034 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
6035 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
6036
6037 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6038
6039 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
6040 param from rtx to rtx_insn *.
6041 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
6042
6043 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6044
6045 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
6046 4 from rtx to rtx_insn *.
6047 (rs6000_final_prescan_insn): Likewise for first param.
6048 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
6049 local "insn".
6050 (rs6000_get_some_local_dynamic_name): Likewise.
6051 (output_cbranch): Likewise for param "insn".
6052 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
6053 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
6054 (rs6000_emit_allocate_stack): Likewise for local "insn".
6055 (load_cr_save): Likewise.
6056 (restore_saved_cr): Likewise.
6057 (restore_saved_lr): Likewise.
6058 (emit_cfa_restores): Likewise.
6059 (rs6000_output_function_epilogue): Likewise for locals "insn" and
6060 "deleted_debug_label".
6061 (rs6000_output_mi_thunk): Likewise for local "insn".
6062 (rs6000_final_prescan_insn): Likewise for param "insn".
6063
6064 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6065
6066 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
6067 Strengthen param "insn" from rtx to rtx_insn *.
6068 * config/picochip/picochip.c (picochip_current_prescan_insn):
6069 Likewise for this variable.
6070 (picochip_final_prescan_insn): Likewise for param "insn".
6071
6072 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6073
6074 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
6075 from rtx to rtx_insn *.
6076 (pa_output_indirect_call): Likewise.
6077 (pa_adjust_insn_length): Likewise.
6078 (pa_attr_length_millicode_call): Likewise.
6079 (pa_attr_length_call): Likewise.
6080 (pa_attr_length_indirect_call): Likewise.
6081
6082 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
6083 "insn".
6084 (pa_attr_length_millicode_call): Likewise.
6085 (pa_attr_length_call): Likewise.
6086 (pa_output_call): Likewise.
6087 (pa_attr_length_indirect_call): Likewise.
6088 (pa_output_indirect_call): Likewise.
6089
6090 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6091
6092 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
6093 Strengthen first param from rtx to rtx_insn *.
6094 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
6095 param "insn".
6096
6097 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6098
6099 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
6100 type from rtx to rtx_insn *.
6101 (mips_expand_call): Likewise.
6102 (mips_adjust_insn_length): Likewise for first param.
6103 (mips_output_conditional_branch): Likewise.
6104 (mips_output_order_conditional_branch): Likewise.
6105 (mips_final_prescan_insn): Likewise.
6106
6107 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
6108 rtx_insn * for the SEQUENCE case.
6109 (SEQ_END): Likewise.
6110 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
6111 (mips_emit_call_insn): Likewise, also for local "insn".
6112 (mips16_gp_pseudo_reg): Likewise for local "scan".
6113 (mips16_build_call_stub): Likewise for return type and for local
6114 "insn". Introduce a new local "pattern" so that "insn" can indeed
6115 be an insn.
6116 (mips_expand_call): Strengthen return type and local "insn" from
6117 rtx to rtx_insn *.
6118 (mips_block_move_loop): Strengthen local "label" from rtx to
6119 rtx_code_label *.
6120 (mips_expand_synci_loop): Likewise for locals "label",
6121 "end_label".
6122 (mips_set_frame_expr): Strengthen local "insn" from rtx to
6123 rtx_insn *.
6124 (mips16e_collect_argument_saves): Likewise for locals "insn",
6125 "next".
6126 (mips_find_gp_ref): Likewise for param of callback for "pred"
6127 param, and for local "insn".
6128 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
6129 (mips_insn_has_flexible_gp_ref_p): Likewise.
6130 (mips_epilogue_emit_cfa_restores): Likewise for return type and
6131 local "insn".
6132 (mips_epilogue_set_cfa): Likewise for local "insn".
6133 (mips_expand_epilogue): Likewise.
6134 (mips_adjust_insn_length): Likewise for param "insn".
6135 (mips_output_conditional_branch): Likewise.
6136 (mips_output_order_conditional_branch): Likewise.
6137 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
6138 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
6139 "falu2_turn_enabled_insn".
6140 (mips_builtin_branch_and_move): Strengthen locals "true_label",
6141 "done_label" from rtx to rtx_code_label *.
6142 (struct mips16_constant): Likewise for field "label".
6143 (mips16_add_constant): Likewise for return type.
6144 (mips16_emit_constants_1): Strengthen return type and param "insn"
6145 from rtx to rtx_insn *.
6146 (mips16_emit_constants): Likewise for param "insn".
6147 (mips16_insn_length): Likewise.
6148 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
6149 to rtx_code_label *.
6150 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
6151 from rtx to rtx_insn *.
6152 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
6153 "jump". Strengthen local "label" from rtx to rtx_code_label *.
6154 (r10k_simplify_address): Strengthen param "insn" and local
6155 "def_insn" from rtx to rtx_insn *.
6156 (r10k_safe_address_p): Strengthen param "insn" from rtx to
6157 rtx_insn *.
6158 (r10k_needs_protection_p_1): Update target type of cast of data
6159 from to rtx to rtx_insn *.
6160 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
6161 rtx * to rtx_insn **.
6162 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
6163 rtx_insn *.
6164 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
6165 (mips_call_expr_from_insn): Likewise for param "insn".
6166 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
6167 (mips_find_pic_call_symbol): Likewise for param "insn".
6168 (mips_annotate_pic_calls): Likewise for local "insn".
6169 (mips_sim_insn): Likewise for this variable.
6170 (struct mips_sim): Likewise for field "insn" within elements of
6171 last_set array.
6172 (mips_sim_wait_reg): Likewise for param "insn".
6173 (mips_sim_wait_regs): Likewise.
6174 (mips_sim_wait_units): Likewise.
6175 (mips_sim_wait_insn): Likewise.
6176 (mips_sim_issue_insn): Likewise.
6177 (mips_sim_finish_insn): Likewise.
6178 (mips_seq_time): Likewise for param "seq" and local "insn".
6179 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
6180 locals "first", "second".
6181 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
6182 "last", "last2", "next".
6183 (mips_avoid_hazard): Likewise for params "after", "insn".
6184 (mips_reorg_process_insns): Likewise for locals "insn",
6185 "last_insn", "subinsn", "next_insn".
6186 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
6187 (mips16_split_long_branches): Likewise for locals "insn" "jump",
6188 "jump_sequence".
6189 (mips_output_mi_thunk): Likewise for local "insn".
6190 (mips_final_prescan_insn): Likewise for param "insn".
6191
6192 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6193
6194 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
6195 Strengthen return type and local "insns" from rtx to rtx_insn *.
6196 (microblaze_legitimize_tls_address): Likewise for local "insns".
6197 (microblaze_block_move_loop): Strengthen local "label" from rtx
6198 to rtx_code_label *.
6199 (microblaze_expand_prologue): Strengthen two locals named "insn"
6200 from rtx to rtx_insn *.
6201 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
6202 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
6203 "insn". Strengthen locals "div_label", "div_end_label" from rtx
6204 to rtx_code_label *.
6205
6206 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6207
6208 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
6209 param from rtx to rtx_insn *.
6210 (mep_reuse_lo): Likewise for third param.
6211 (mep_use_post_modify_p): Likewise for first param.
6212 (mep_core_address_length): Likewise.
6213 (mep_cop_address_length): Likewise.
6214 (mep_final_prescan_insn): Likewise.
6215 (mep_store_data_bypass_p): Likewise for both params.
6216 (mep_mul_hilo_bypass_p): Likewise.
6217 (mep_ipipe_ldc_p): Likewise for param.
6218
6219 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
6220 (mep_rewrite_mult): Likewise.
6221 (mep_rewrite_mulsi3): Likewise.
6222 (mep_rewrite_maddsi3): Likewise.
6223 (mep_reuse_lo_p_1): Likewise.
6224 (mep_reuse_lo_p): Likewise.
6225 (mep_frame_expr): Likewise.
6226 (mep_make_parallel): Likewise for both params.
6227 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
6228 local "insn".
6229 (mep_use_post_modify_p): Likewise for param "insn".
6230 (mep_core_address_length): Likewise.
6231 (mep_cop_address_length): Likewise.
6232 (mep_reg_set_in_function): Likewise for local "insn".
6233 (mep_asm_without_operands_p): Likewise.
6234 (F): Likewise for return type and param "x".
6235 (add_constant): Likewise for local "insn".
6236 (maybe_dead_move): Likewise for return type and local "insn".
6237 (mep_expand_prologue): Likewise for local "insn".
6238 (mep_final_prescan_insn): Likewise for param "insn".
6239 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
6240 "next", "follow", "x".
6241 (mep_insert_repeat_label_last): Likewise for return type, param
6242 "last_insn", and locals "next", "prev". Strengthen param "label"
6243 from rtx to rtx_code_label *.
6244 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
6245 rtx_insn *.
6246 (struct mep_doloop_end): Likewise for fields "insn" and
6247 "fallthrough".
6248 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
6249 Strengthen local "repeat_label" from rtx to rtx_code_label *.
6250 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
6251 rtx_insn *.
6252 (mep_invert_branch): Likewise for params "insn" and "after".
6253 (mep_reorg_erepeat): Likewise for param "insns" and locals
6254 "insn", "prev", "new_last", "barrier", "user". Strengthen local
6255 "l" from rtx to rtx_code_label *.
6256 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
6257 from rtx to rtx_insn *.
6258 (mep_reorg_addcombine): Likewise for param "insns" and locals
6259 "i", "n".
6260 (add_sp_insn_p): Likewise for param "insn".
6261 (mep_reorg_noframe): Likewise for param "insns" and locals
6262 "start_frame_insn", "end_frame_insn", "next".
6263 (mep_reorg): Likewise for local "insns".
6264 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
6265 cast.
6266 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
6267 (mep_mul_hilo_bypass_p): Likewise.
6268 (mep_ipipe_ldc_p): Likewise for param "insn".
6269 (mep_make_bundle): Likewise for return type, param "cop" and local
6270 "insn", splitting out the latter into a new local "seq" for when it
6271 is a SEQUENCE rather than an insn.
6272 (core_insn_p): Likewise for param "insn".
6273 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
6274 "last", "first", "note", "prev", "core_insn".
6275
6276 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6277
6278 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
6279 rtx to rtx_insn *.
6280 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
6281 (m68k_final_prescan_insn): Likewise for first param.
6282
6283 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
6284 (m68k_set_frame_related): Likewise for param "insn".
6285 (output_btst): Likewise for param "insn".
6286 (m68k_final_prescan_insn): Likewise.
6287 (m68k_move_to_reg): Likewise for local "insn".
6288 (m68k_call_tls_get_addr): Likewise for local "insns".
6289 (m68k_call_m68k_read_tp): Likewise.
6290 (strict_low_part_peephole_ok): Likewise for param "first_insn".
6291 (m68k_output_mi_thunk): Likewise for local "insn".
6292
6293 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6294
6295 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
6296 first param from rtx to rtx_insn *.
6297 (iq2000_adjust_insn_length): Likewise.
6298 (iq2000_output_conditional_branch): Likewise.
6299 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
6300 "insn" and local "nop_insn".
6301 (iq2000_annotate_frame_insn): Likewise for param "insn".
6302 (iq2000_expand_prologue): Likewise for both locals "insn".
6303 (iq2000_adjust_insn_length): Likewise for param "insn".
6304 (iq2000_output_conditional_branch): Likewise.
6305
6306 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6307
6308 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
6309 "insns" from rtx to rtx_insn *.
6310 (ia64_emit_cond_move): Likewise for locals "insn", "first".
6311 (struct spill_fill_data): Likewise for field "init_after" and for
6312 elements of array field "prev_insn".
6313 (spill_restore_mem): Likewise for locals "insn", "first".
6314 (do_spill): Likewise for local "insn".
6315 (do_restore): Likewise.
6316 (ia64_expand_prologue): Likewise.
6317 (ia64_expand_epilogue): Likewise.
6318 (emit_insn_group_barriers): Likewise for locals "insn",
6319 "last_label".
6320 (emit_all_insn_group_barriers): Likewise for locals "insn",
6321 "last".
6322 (dfa_stop_insn): Likewise for this global.
6323 (dfa_pre_cycle_insn): Likewise.
6324 (ia64_nop): Likewise.
6325 (final_emit_insn_group_barriers): Likewise for locals "insn",
6326 "last".
6327 (emit_predicate_relation_info): Likewise for locals "head", "n",
6328 "insn", "b", "a".
6329 (ia64_reorg): Likewise for local "insn".
6330 (ia64_output_mi_thunk): Likewise.
6331 (expand_vec_perm_interleave_2): Likewise for local "seq".
6332
6333 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6334
6335 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
6336 param 1 "insn" from rtx to rtx_insn *.
6337 (ix86_use_lea_for_mov): Likewise.
6338 (ix86_avoid_lea_for_addr): Likewise.
6339 (ix86_split_lea_for_addr): Likewise.
6340 (ix86_lea_for_add_ok): Likewise.
6341 (ix86_output_call_insn): Likewise.
6342
6343 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
6344 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
6345 (ix86_output_function_epilogue): Likewise for locals "insn",
6346 "deleted_debug_label".
6347 (legitimize_tls_address): Likewise for local "insn".
6348 (get_some_local_dynamic_name): Likewise.
6349 (increase_distance): Likewise for params "prev", "next".
6350 (distance_non_agu_define_in_bb): Likewise for params "insn",
6351 "start" and locals "prev", "next".
6352 (distance_non_agu_define): Likewise for param "insn".
6353 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
6354 locals "next", "prev".
6355 (distance_agu_use): Likewise for param "insn".
6356 (ix86_lea_outperforms): Likewise.
6357 (ix86_ok_to_clobber_flags): Likewise.
6358 (ix86_avoid_lea_for_add): Likewise.
6359 (ix86_use_lea_for_mov): Likewise.
6360 (ix86_avoid_lea_for_addr): Likewise.
6361 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
6362 (ix86_split_lea_for_addr): Likewise for param "insn".
6363 (ix86_lea_for_add_ok): Likewise for param "insn".
6364 (ix86_expand_carry_flag_compare): Likewise for local
6365 "compare_seq".
6366 (ix86_expand_int_movcc): Likewise.
6367 (ix86_output_call_insn): Likewise for param "insn".
6368 (ix86_output_call_insn): Likewise for local "i".
6369 (x86_output_mi_thunk): Introduce local "insn", using it in place
6370 of "tmp" when dealing with insns.
6371 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
6372 "start".
6373 (ix86_pad_returns): Likewise for locals "ret", "prev".
6374 (ix86_count_insn_bb): Likewise for local "insn".
6375 (ix86_pad_short_function): Likewise for locals "ret", "insn".
6376 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
6377 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
6378 (expand_vec_perm_interleave2): Likewise for local "seq".
6379 (expand_vec_perm_vperm2f128_vblend): Likewise.
6380 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
6381 call to for_each_rtx with for_each_rtx_in_insn.
6382
6383 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6384
6385 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
6386 "label" from rtx to rtx_code_label *.
6387 (ix86_expand_prologue): Likewise.
6388 (ix86_expand_split_stack_prologue): Likewise for locals "label",
6389 "varargs_label".
6390 (ix86_split_idivmod): Likewise for locals "end_label" and
6391 "qimode_label".
6392 (ix86_expand_branch): Likewise for local "label2".
6393 (ix86_expand_aligntest): Likewise for return type and local "label".
6394 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
6395 "top_label".
6396 (expand_movmem_epilogue): Likewise for the various locals named
6397 "label".
6398 (expand_setmem_epilogue): Likewise.
6399 (expand_small_movmem_or_setmem): Likewise for local "label".
6400 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
6401 Strengthen param "done_label" from rtx * to rtx_code_label **.
6402 Strengthen locals "loop_label" and "label" from rtx to
6403 rtx_code_label *.
6404 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
6405 Likewise for locals "loop_label", "label".
6406 (ix86_expand_set_or_movmem): Likewise for locals "label",
6407 "jump_around_label", "hot_label".
6408 (ix86_expand_strlensi_unroll_1): Likewise for locals
6409 "align_2_label", align_3_label", "align_4_label", "end_0_label",
6410 "end_2_label".
6411 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
6412 (void ix86_emit_i387_log1p): Likewise for locals "label1",
6413 "label2", "jump_label".
6414 (ix86_expand_sse_compare_and_jump): Likewise for return type and
6415 local "label".
6416 (ix86_expand_lfloorceil): Likewise for local "label".
6417 (ix86_expand_rint): Likewise.
6418 (ix86_expand_floorceildf_32): Likewise.
6419 (ix86_expand_floorceil): Likewise.
6420 (ix86_expand_rounddf_32): Likewise.
6421 (ix86_expand_trunc): Likewise.
6422 (ix86_expand_truncdf_32): Likewise.
6423 (ix86_expand_round): Likewise.
6424
6425 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6426
6427 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
6428 first param from rtx to rtx_insn *.
6429 (h8300_insn_length_from_table): Likewise.
6430 * config/h8300/h8300.c (F): Likewise for return type and param
6431 "x".
6432 (Fpa): Add a checked cast to rtx_insn *.
6433 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
6434 rtx_insn *.
6435 (final_prescan_insn): Likewise for param "insn".
6436 (h8300_binary_length): Likewise.
6437 (h8300_insn_length_from_table): Likewise.
6438
6439 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6440
6441 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
6442 Strengthen first param "insn" from rtx to rtx_insn *.
6443
6444 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
6445 Likewise.
6446 (frame_insn): Likewise for return type. Introduce local "insn"
6447 for use in place of local "x" for use as an rtx_insn *.
6448 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
6449 (epiphany_expand_prologue): Likewise for local "insn".
6450 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
6451 * config/epiphany/resolve-sw-modes.c
6452 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
6453 "seq".
6454
6455 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6456
6457 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
6458 param from rtx to rtx_insn *.
6459 (c6x_final_prescan_insn): Likewise for first param.
6460
6461 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
6462 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
6463 (c6x_expand_compare): Strengthen local "insns" from rtx to
6464 rtx_insn *.
6465 (c6x_get_unit_specifier): Likewise for param "insn".
6466 (c6x_print_unit_specifier_field): Likewise.
6467 (c6x_final_prescan_insn): Likewise.
6468 (emit_add_sp_const): Likewise for local "insn".
6469 (c6x_expand_prologue): Likewise.
6470
6471 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6472
6473 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
6474 param 1 from rtx to rtx_insn *.
6475 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
6476 the various locals named "insn".
6477 (expand_epilogue_reg_restore): Likewise.
6478 (frame_related_constant_load): Likewise.
6479 (add_to_reg): Likewise.
6480 (emit_link_insn): Likewise.
6481 (do_link): Likewise.
6482 (expand_interrupt_handler_prologue): Likewise.
6483 (branch_dest): Likewise for param "branch".
6484 (asm_conditional_branch): Likewise for param "insn".
6485 (gen_one_bundle): Likewise for elements of param "slot" and local
6486 "t".
6487 (bfin_gen_bundles): Likewise for locals "insn", "next" and
6488 elements of local "slot".
6489 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6490 "queue", "next_queue", "prev".
6491 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
6492 (add_sched_insns_for_speculation): Likewise for local "insn".
6493
6494 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6495
6496 * config/avr/avr-protos.h (output_movqi): Strengthen first param
6497 from rtx to rtx_insn *.
6498 (output_movhi): Likewise.
6499 (output_movsisf): Likewise.
6500 (avr_out_tstsi): Likewise.
6501 (avr_out_tsthi): Likewise.
6502 (avr_out_tstpsi): Likewise.
6503 (avr_out_compare): Likewise.
6504 (avr_out_compare64): Likewise.
6505 (avr_out_movpsi): Likewise.
6506 (ashlqi3_out): Likewise.
6507 (ashlhi3_out): Likewise.
6508 (ashlsi3_out): Likewise.
6509 (ashrqi3_out): Likewise.
6510 (ashrhi3_out): Likewise.
6511 (ashrsi3_out): Likewise.
6512 (lshrqi3_out): Likewise.
6513 (lshrhi3_out): Likewise.
6514 (lshrsi3_out): Likewise.
6515 (avr_out_ashlpsi3): Likewise.
6516 (avr_out_ashrpsi3): Likewise.
6517 (avr_out_lshrpsi3): Likewise.
6518 (avr_out_fract): Likewise.
6519 (avr_out_sbxx_branch): Likewise.
6520 (avr_out_round): Likewise.
6521 (avr_out_xload): Likewise.
6522 (avr_out_movmem): Likewise.
6523 (adjust_insn_length): Likewise.
6524 (avr_out_lpm): Likewise.
6525 (reg_unused_after): Likewise.
6526 (_reg_unused_after): Likewise.
6527 (avr_jump_mode): Likewise for second param.
6528 (jump_over_one_insn): Likewise for first param.
6529 (avr_final_prescan_insn): Likewise.
6530 (out_shift_with_cnt): Likewise for second param.
6531
6532 * config/avr/avr.c (get_sequence_length): Likewise for param
6533 "insns" and local "insn".
6534 (emit_push_byte): Likewise for local "insn".
6535 (emit_push_sfr): Likewise.
6536 (avr_prologue_setup_frame): Likewise for locals "insn",
6537 "fp_plus_insns", "sp_plus_insns".
6538 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
6539 "sp_plus_insns".
6540 (avr_jump_mode): Likewise for param "insn".
6541 (avr_final_prescan_insn): Likewise.
6542 (avr_find_unused_d_reg): Likewise.
6543 (avr_out_lpm_no_lpmx): Likewise.
6544 (avr_out_lpm): Likewise.
6545 (avr_out_xload): Likewise.
6546 (output_movqi): Likewise.
6547 (output_movhi): Likewise.
6548 (out_movqi_r_mr): Likewise.
6549 (out_movhi_r_mr): Likewise.
6550 (out_movsi_r_mr): Likewise.
6551 (out_movsi_mr_r): Likewise.
6552 (output_movsisf): Likewise.
6553 (avr_out_load_psi): Likewise.
6554 (avr_out_store_psi): Likewise.
6555 (avr_out_movpsi): Likewise.
6556 (out_movqi_mr_r): Likewise.
6557 (avr_out_movhi_mr_r_xmega): Likewise.
6558 (out_movhi_mr_r): Likewise.
6559 (compare_condition): Likewise for param "insn" and local "next".
6560 (compare_sign_p): Likewise for param "insn".
6561 (compare_diff_p): Likewise.
6562 (compare_eq_p): Likewise.
6563 (avr_out_compare): Likewise.
6564 (avr_out_compare64): Likewise.
6565 (avr_out_tsthi): Likewise.
6566 (avr_out_tstpsi): Likewise.
6567 (avr_out_tstsi): Likewise.
6568 (out_shift_with_cnt): Likewise.
6569 (ashlqi3_out): Likewise.
6570 (ashlhi3_out): Likewise.
6571 (avr_out_ashlpsi3): Likewise.
6572 (ashlsi3_out): Likewise.
6573 (ashrqi3_out): Likewise.
6574 (ashrhi3_out): Likewise.
6575 (avr_out_ashrpsi3): Likewise.
6576 (ashrsi3_out): Likewise.
6577 (lshrqi3_out): Likewise.
6578 (lshrhi3_out): Likewise.
6579 (avr_out_lshrpsi3): Likewise.
6580 (lshrsi3_out): Likewise.
6581 (avr_out_fract): Likewise.
6582 (avr_out_round): Likewise.
6583 (avr_adjust_insn_length): Likewise.
6584 (reg_unused_after): Likewise.
6585 (_reg_unused_after): Likewise.
6586 (avr_compare_pattern): Likewise.
6587 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
6588 and locals "branch1", "branch2", "insn2", "jump".
6589 (avr_reorg): Likewise for local "insn".
6590 (avr_2word_insn_p): Likewise for param "insn".
6591 (jump_over_one_insn_p): Likewise.
6592 (avr_out_sbxx_branch): Likewise.
6593 (avr_out_movmem): Likewise.
6594
6595 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6596
6597 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
6598 param from rtx to rtx_insn *.
6599 (thumb1_final_prescan_insn): Likewise.
6600 (thumb2_final_prescan_insn): Likewise.
6601
6602 * config/arm/arm.c (emit_set_insn): Strengthen return type from
6603 rtx to rtx_insn *.
6604 (struct minipool_node): Likewise for field "insn".
6605 (dump_minipool): Likewise for param "scan".
6606 (create_fix_barrier): Likewise for local "from". Strengthen local
6607 "label" from rtx to rtx_code_label *.
6608 (push_minipool_barrier): Strengthen param "insn" from rtx to
6609 rtx_insn *.
6610 (push_minipool_fix): Likewise.
6611 (note_invalid_constants): Likewise.
6612 (thumb2_reorg): Likewise for local "insn".
6613 (arm_reorg): Likewise.
6614 (thumb2_final_prescan_insn): Likewise for param
6615 "insn" and local "first_insn".
6616 (arm_final_prescan_insn): Likewise for param "insn" and locals
6617 "start_insn", "this_insn".
6618 (arm_debugger_arg_offset): Likewise for param "insn".
6619 (thumb1_emit_multi_reg_push): Likewise for return type and local
6620 "insn".
6621 (thumb1_final_prescan_insn): Likewise for param "insn".
6622 (thumb_far_jump_used_p): Likewise for local "insn".
6623 (thumb1_expand_prologue): Likewise.
6624 (arm_expand_epilogue_apcs_frame): Likewise.
6625 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
6626 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
6627 from rtx to rtx_code_label *.
6628 (arm_split_atomic_op): Likewise for local "label".
6629 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
6630
6631 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6632
6633 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
6634 first param from rtx to rtx_insn *.
6635 (arc_verify_short): Likewise.
6636 (arc_short_long): Likewise.
6637 (arc_need_delay): Likewise.
6638
6639 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
6640 "target_insn".
6641 (arc_ccfsm_advance): Likewise for param "insn" and locals
6642 "start_insn", "this_insn".
6643 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
6644 (arc_ccfsm_post_advance): Likewise for param "insn".
6645 (arc_next_active_insn): Likewise for return type and param "insn".
6646 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
6647 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
6648 (output_short_suffix): Likewise for local "insn".
6649 (arc_final_prescan_insn): Likewise for param "insn". Remove
6650 now-redundant checked cast.
6651 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
6652 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
6653 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
6654 for use where lc_set became an insn.
6655 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
6656 rtx to rtx_insn *.
6657 (arc_get_insn_variants): Likewise for local "prev".
6658 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
6659 "next".
6660 (arc_predicate_delay_insns): Likewise for local "insn".
6661 (arc_pad_return): Likewise for local "prev". For now, add a
6662 checked cast when extracting the insn from "final_sequence".
6663 (arc_short_long): Likewise for param "insn".
6664 (arc_need_delay): Likewise for param "insn" and local "next".
6665 (arc_label_align): Likewise for locals "prev", "next".
6666
6667 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6668
6669 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
6670 "insn" from rtx to rtx_insn *.
6671 (alpha_gp_save_rtx): Likewise for local "seq".
6672 (alpha_instantiate_decls): Likewise for local "top".
6673 (get_some_local_dynamic_name): Likewise for local "insn".
6674 (alpha_does_function_need_gp): Likewise.
6675 (set_frame_related_p): Likewise for return type and for locals
6676 "seq" and "insn".
6677 (emit_frame_store_1): Likewise for local "insn".
6678 (alpha_expand_prologue): Likewise for locals "insn", "seq".
6679 (alpha_end_function): Likewise for local "insn".
6680 (alpha_output_mi_thunk_osf): Likewise.
6681 (alphaev4_insn_pipe): Likewise for param "insn".
6682 (alphaev5_insn_pipe): Likewise.
6683 (alphaev4_next_group): Likewise for return type and param 1
6684 "insn".
6685 (alphaev5_next_group): Likewise.
6686 (alpha_align_insns_1): Likewise for return type and param 1 of
6687 callback param "next_group", and for locals "i", "next", "prev",
6688 "where", "where2", "insn".
6689
6690 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
6691
6692 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
6693 rather than modifying the stmt.
6694
6695 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6696
6697 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
6698 cgraph_state conversion.
6699
6700 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6701
6702 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6703 Strengthen local "insns" from rtx to rtx_insn *.
6704 (aarch64_set_frame_expr): Likewise for local "insn".
6705 (aarch64_save_or_restore_fprs): Likewise.
6706 (aarch64_save_or_restore_callee_save_registers): Likewise.
6707 (aarch64_expand_prologue): Likewise.
6708 (aarch64_expand_epilogue): Likewise.
6709 (aarch64_output_mi_thunk): Likewise.
6710 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
6711 "label2" from rtx to rtx_code_label *.
6712 (aarch64_split_atomic_op): Likewise for local "label".
6713
6714 2014-08-25 Martin Liska <mliska@suse.cz>
6715
6716 * cgraph.h (symtab_node):
6717 (bool needed_p (void)): created from decide_is_symbol_needed
6718 (bool referred_to_p (void)): created from referred_to_p
6719 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
6720 * cgraph.h (cgraph_node):
6721 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
6722 (void expand (void)): created from expand_function
6723 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
6724 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
6725 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
6726 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
6727 * cgraph.h (varpool_node):
6728 (static void add (tree decl): created from varpool_add_new_variable
6729 * cgraph.h (cgraph_edge):
6730 void remove (void);
6731 (void remove_caller (void)): created from cgraph_edge_remove_caller
6732 (void remove_callee (void)): created from cgraph_edge_remove_callee
6733 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
6734 created from cgraph_set_call_stmt
6735 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
6736 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
6737 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
6738 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
6739 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
6740 created from cgraph_speculative_call_info
6741 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
6742 int freq_scale, bool update_original)): created from cgraph_clone_edge
6743 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
6744 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
6745 (bool recursive_p (void)): created from cgraph_edge_recursive_p
6746 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
6747 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
6748 (static void rebuild_references (void)): created from cgraph_rebuild_references
6749 * cgraph.h (symbol_table):
6750 (create_reference): renamed from add_reference
6751 (maybe_create_reference): renamed from maybe_add_reference
6752 (void register_symbol (symtab_node *node)): new function
6753 (void clear_asm_symbols (void)): new function
6754 (void unregister (symtab_node *node)): new function
6755 (void release_symbol (cgraph_node *node, int uid)): new function
6756 (cgraph_node * allocate_cgraph_symbol (void)): new function
6757 (void initialize (void)): created from cgraph_init
6758 (symtab_node *first_symbol (void)):new function
6759 (asm_node *first_asm_symbol (void)):new function
6760 (symtab_node *first_defined_symbol (void)):new function
6761 (varpool_node *first_variable (void)):new function
6762 (varpool_node *next_variable (varpool_node *node)):new function
6763 (varpool_node *first_static_initializer (void)):new function
6764 (varpool_node *next_static_initializer (varpool_node *node)):new function
6765 (varpool_node *first_defined_variable (void)):new function
6766 (varpool_node *next_defined_variable (varpool_node *node)):new function
6767 (cgraph_node *first_defined_function (void)):new function
6768 (cgraph_node *next_defined_function (cgraph_node *node)):new function
6769 (cgraph_node *first_function (void)):new function
6770 (cgraph_node *next_function (cgraph_node *node)):new function
6771 (cgraph_node *first_function_with_gimple_body (void)):new function
6772 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
6773 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
6774 created from symtab_remove_unreachable_nodes
6775 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
6776 (void process_new_functions (void)): created from cgraph_process_new_functions
6777 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
6778 (bool output_variables (void)): created from varpool_node::output_variables
6779 (void output_asm_statements (void)): created from output_asm_statements
6780 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
6781 (void compile (void)): created from compile
6782 (void output_weakrefs (void)): created from output_weakrefs
6783 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
6784 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
6785 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
6786 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
6787 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
6788 created from cgraph_next_function_with_gimple_body
6789 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
6790 created from cgraph_remove_edge_removal_hook
6791 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
6792 created from cgraph_add_node_removal_hook
6793 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
6794 created from cgraph_remove_node_removal_hook
6795 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
6796 created from varpool_add_node_removal_hook
6797 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
6798 created from varpool_remove_node_removal_hook
6799 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
6800 created from cgraph_add_function_insertion_hook
6801 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
6802 created from cgraph_remove_function_insertion_hook
6803 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
6804 created from varpool_add_variable_insertion_hook
6805 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
6806 created from varpool_remove_variable_insertion_hook
6807 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
6808 created from cgraph_add_edge_duplication_hook
6809 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
6810 created from cgraph_remove_edge_duplication_hook
6811 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
6812 created from cgraph_add_node_duplication_hook
6813 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
6814 created from cgraph_remove_node_duplication_hook
6815 (void call_edge_removal_hooks (cgraph_edge *e)):
6816 created from cgraph_call_edge_removal_hooks
6817 (void call_cgraph_insertion_hooks (cgraph_node *node)):
6818 created from call_function_insertion_hooks
6819 (void call_cgraph_removal_hooks (cgraph_node *node)):
6820 created from cgraph_call_node_removal_hooks
6821 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
6822 created from cgraph_node::call_duplication_hooks
6823 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
6824 created from cgraph_call_edge_duplication_hooks
6825 (void call_varpool_removal_hooks (varpool_node *node)):
6826 created from varpool_call_node_removal_hooks
6827 (void call_varpool_insertion_hooks (varpool_node *node)):
6828 created from varpool_call_variable_insertion_hooks
6829 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
6830 created from insert_to_assembler_name_hash
6831 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
6832 created from unlink_from_assembler_name_hash
6833 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
6834 created from symtab_prevail_in_asm_name_hash
6835 (void symtab_initialize_asm_name_hash (void)):
6836 created from symtab_initialize_asm_name_hash
6837 (void change_decl_assembler_name (tree decl, tree name)):
6838 created from change_decl_assembler_name
6839 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
6840 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
6841 created from decl_assembler_name_hash
6842 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
6843 created from decl_assembler_name_equal
6844 (static hashval_t hash_node_by_assembler_name (const void *p)):
6845 created from hash_node_by_assembler_name
6846 (static int eq_assembler_name (const void *p1, const void *p2)):
6847 created from eq_assembler_name
6848
6849 2014-08-25 Marek Polacek <polacek@redhat.com>
6850
6851 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
6852
6853 2014-08-25 Petr Murzin <petr.murzin@intel.com>
6854
6855 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
6856 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
6857 SWI1248_AVX512BW mode iterator.
6858
6859 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
6860
6861 PR target/62111
6862 * config/sh/predicates.md (general_extend_operand): Disable
6863 TRUNCATE before reload completes.
6864
6865 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
6866
6867 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
6868
6869 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
6870
6871 PR target/61996
6872 * config/sh/sh.opt (musermode): Allow negative form.
6873 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
6874 targets that don't support it.
6875 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
6876 Document -mno-usermode option.
6877
6878 2014-08-24 Kito Cheng <kito@0xlab.org>
6879
6880 * system.h (CALLER_SAVE_PROFITABLE): Poison.
6881 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
6882 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
6883 * doc/tm.texi: Regenerate.
6884
6885 2014-08-24 Kito Cheng <kito@0xlab.org>
6886
6887 * ira.c: Fix typo in comment.
6888
6889 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
6890
6891 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
6892 Deprecate c++1y. Change language to reflect greater confidence in C++14.
6893
6894 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
6895
6896 PR target/62038
6897 * config/pa/pa.c (pa_output_function_epilogue): Don't set
6898 last_address when the current function is a thunk.
6899 (pa_asm_output_mi_thunk): When we don't have named sections or they
6900 are not being used, check that thunk can reach the stub table with a
6901 short branch.
6902
6903 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6904
6905 * web.c (union_match_dups): Strengthen param "insn" from rtx to
6906 rtx_insn *.
6907 (pass_web::execute): Likewise for local "insn".
6908
6909 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6910
6911 * var-tracking.c (struct micro_operation_def): Strengthen field
6912 "insn" from rtx to rtx_insn *.
6913 (struct emit_note_data_def): Likewise.
6914 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
6915 (vt_stack_adjustments): Likewise for local "insn".
6916 (adjust_insn): Likewise for param "insn".
6917 (val_store): Likewise.
6918 (val_resolve): Likewise.
6919 (struct count_use_info): Likewise for field "insn".
6920 (log_op_type): Likewise for param "insn".
6921 (reverse_op): Likewise.
6922 (prepare_call_arguments): Likewise.
6923 (add_with_sets): The initial param takes an insn, but we can't
6924 yet strengthen it from rtx to rtx_insn * since it's used as a
6925 cselib_record_sets_hook callback. For now rename initial param
6926 from "insn" to "uncast_insn", and introduce a local "insn" of
6927 the stronger rtx_insn * type, with a checked cast.
6928 (compute_bb_dataflow): Strengthen local "insn" from rtx to
6929 rtx_insn *.
6930 (emit_note_insn_var_location): Likewise.
6931 (emit_notes_for_changes): Likewise.
6932 (emit_notes_for_differences): Likewise.
6933 (next_non_note_insn_var_location): Likewise for return type and
6934 for param "insn".
6935 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
6936 (vt_initialize): Likewise for local "insn".
6937 (delete_debug_insns): Likewise for locals "insn" and "next".
6938
6939 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6940
6941 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
6942 rtx_insn *.
6943 (mark_constant_pool): Likewise for local "insn".
6944
6945 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6946
6947 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
6948 rtx to rtx_insn *.
6949 (dead_debug_promote_uses): Likewise.
6950 (dead_debug_insert_temp): Likewise.
6951
6952 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6953
6954 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
6955 from const_rtx to const rtx_insn *.
6956 (store_killed_after): Likewise. Strengthen locals "last", "act"
6957 from rtx to rtx_insn *.
6958 (store_killed_before): Strengthen param "insn" from const_rtx to
6959 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
6960 (find_moveable_store): Strengthen param "insn" from rtx to
6961 rtx_insn *.
6962 (compute_store_table): Likewise for local "insn".
6963 (insert_insn_start_basic_block): Likewise for param "insn" and
6964 locals "prev", "before", "insn".
6965 (insert_store): For now, add a checked cast to rtx_insn * on the
6966 result of gen_move_insn.
6967 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
6968 to rtx_insn *.
6969 (replace_store_insn): Likewise. For now, add a checked cast to
6970 rtx_insn * on the result of gen_move_insn.
6971
6972 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6973
6974 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
6975 rtx_insn *.
6976 (expand_sjlj_dispatch_table): Likewise.
6977
6978 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6979
6980 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
6981 "insn" from rtx to rtx_insn *.
6982
6983 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6984
6985 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
6986 "insn" from rtx to rtx_insn *.
6987 (dup_block_and_redirect): Likewise for param 3 "before".
6988
6989 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
6990 from rtx to rtx_insn *.
6991 (move_insn_for_shrink_wrap): Likewise.
6992 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
6993 (dup_block_and_redirect): Likewise for param "before" and local
6994 "insn".
6995 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
6996 "end".
6997 (convert_to_simple_return): Likewise for local "start".
6998
6999 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
7000 Strengthen local "insn" from rtx to rtx_insn *, for use when
7001 invoking requires_stack_frame_p.
7002
7003 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7004
7005 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
7006 rtx_insn *.
7007 (speculate_expr): Likewise for locals "orig_insn_rtx",
7008 "spec_insn_rtx".
7009 (eq_transformed_insns): Likewise for locals "i1", "i2".
7010 (check_for_new_jump): Likewise for return type and local "end".
7011 (find_new_jump): Likewise for return type and local "jump".
7012 (sel_split_edge): Likewise for local "jump".
7013 (sel_create_recovery_block): Likewise.
7014 (sel_redirect_edge_and_branch_force): Likewise.
7015 (sel_redirect_edge_and_branch): Likewise.
7016
7017 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7018
7019 * sel-sched.c (substitute_reg_in_expr): Strengthen local
7020 "new_insn" from rtx to rtx_insn *.
7021 (create_insn_rtx_with_rhs): Likewise for return type and for local
7022 "insn_rtx".
7023 (create_insn_rtx_with_lhs): Likewise.
7024 (create_speculation_check): Likewise for local "insn_rtx".
7025 (implicit_clobber_conflict_p): Likewise for local "insn".
7026 (get_expr_cost): Likewise.
7027 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
7028 (move_cond_jump): Likewise for locals "next", "prev", "link",
7029 "head", "from", "to".
7030
7031 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7032
7033 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
7034 "next" from rtx to rtx_insn *.
7035 (find_conditional_protection): Likewise for local "next".
7036 (is_conditionally_protected): Likewise for local "insn1".
7037 (is_pfree): Likewise for locals "insn1", "insn2".
7038
7039 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7040
7041 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
7042 from rtx to rtx_insn *.
7043
7044 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
7045 locals "insn1", "insn2" from rtx to rtx_insn *.
7046 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
7047 locals "insn", "prev", "last_jump", "next_tail".
7048 (schedule_ebb): Likewise for params "head", "tail".
7049 (schedule_ebbs): Likewise for locals "tail", "head".
7050
7051 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
7052 to rtx_insn on "last_insn" in one of the invocations of
7053 schedule_ebb.
7054
7055 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7056
7057 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
7058 "elem", "insn" from rtx to rtx_insn *.
7059 (change_spec_dep_to_hard): Likewise.
7060 (get_back_and_forw_lists): Likewise for local "con".
7061 (sd_add_dep): Likewise for locals "elem", "insn".
7062 (sd_resolve_dep): Likewise for locals "pro", "con".
7063 (sd_unresolve_dep): Likewise.
7064 (sd_delete_dep): Likewise.
7065 (chain_to_prev_insn): Likewise for local "pro".
7066 (find_inc): Likewise for locals "pro", "con".
7067
7068 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7069
7070 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
7071 to rtx_insn *.
7072 (reg_set_between_p): Strengthen local "insn" from const_rtx to
7073 const rtx_insn *.
7074 (modified_between_p): Strengthen local "insn" from rtx to
7075 rtx_insn *.
7076 (remove_reg_equal_equiv_notes_for_regno): Likewise.
7077 (keep_with_call_p): Strengthen local "i2" from const_rtx to
7078 const rtx_insn *.
7079
7080 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7081
7082 * resource.c (next_insn_no_annul): Strengthen local "next" from
7083 rtx to rtx_insn *.
7084 (mark_referenced_resources): Likewise for local "insn".
7085
7086 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7087
7088 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
7089 to rtx_insn *.
7090 (find_reloads): Likewise for param 1.
7091 (subst_reloads): Likewise for sole param.
7092 (find_equiv_reg): Likwise for param 2.
7093 (regno_clobbered_p): Likwise for param 2.
7094 (reload): Likewise for param 1.
7095
7096 * caller-save.c (save_call_clobbered_regs): Strengthen local
7097 "insn" from rtx to rtx_insn *.
7098 (insert_one_insn): Likewise for local "insn".
7099
7100 * reload.c (this_insn): Likewise for this global.
7101 (find_reloads): Likewise for param "insn".
7102 (find_reloads_toplev): Likewise.
7103 (find_reloads_address): Likewise.
7104 (subst_reg_equivs): Likewise.
7105 (update_auto_inc_notes): Likewise.
7106 (find_reloads_address_1): Likewise.
7107 (find_reloads_subreg_address): Likewise.
7108 (subst_reloads): Likewise.
7109 (find_equiv_reg): Likewise, also for local "p".
7110 (regno_clobbered_p): Likewise for param "insn".
7111
7112 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
7113 array.
7114 (spill_reg_store): Likewise for the elements of this array.
7115 (remove_init_insns): Likewise for local "equiv_insn".
7116 (will_delete_init_insn_p): Likewise for param "insn".
7117 (reload): Likewise for param ""first" and local "insn".
7118 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
7119 rtx_insn *.
7120 (calculate_elim_costs_all_insns): Likewise.
7121 (delete_caller_save_insns): Likewise.
7122 (spill_failure): Likewise for param "insn".
7123 (delete_dead_insn): Likewise.
7124 (set_label_offsets): Likewise.
7125 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
7126 "prev_insn".
7127 (elimination_costs_in_insn): Likewise for param "insn".
7128 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
7129 when referring to an insn.
7130 (set_initial_label_offsets): Likewise.
7131 (set_offsets_for_label): Strengthen param "insn" from rtx to
7132 rtx_insn *.
7133 (init_eliminable_invariants): Likewise for param "first" and local
7134 "insn".
7135 (fixup_eh_region_note): Likewise for param "insn".
7136 (reload_as_needed): Likewise for locals "prev", "insn",
7137 "old_next", "old_prev", "next".
7138 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
7139 "last".
7140 (reload_inheritance_insn): Strengthen elements of this array from
7141 rtx to rtx_insn *.
7142 (failed_reload): Likewise for param "insn".
7143 (choose_reload_regs): Likewise for local "insn". Replace use of
7144 NULL_RTX with NULL when referring to an insn.
7145 (input_reload_insns): Strengthen elements of this array from rtx
7146 to rtx_insn *.
7147 (other_input_address_reload_insns): Likewise for this global.
7148 (other_input_reload_insns): Likewise for this global.
7149 (input_address_reload_insns): Likwise for the elements of this
7150 array.
7151 (inpaddr_address_reload_insns): Likwise for the elements of this
7152 array.
7153 (output_reload_insns): Likewise for the elements of this array.
7154 (output_address_reload_insns): Likewise for the elements of this
7155 array.
7156 (outaddr_address_reload_insns): Likewise for the elements of this
7157 array.
7158 (operand_reload_insns): Likewise for this global.
7159 (other_operand_reload_insns): Likewise for this global.
7160 (other_output_reload_insns): Likewise for the elements of this
7161 array.
7162 (new_spill_reg_store): Likewise for the elements of this
7163 array.
7164 (emit_input_reload_insns): Likewise for locals "insn", "temp".
7165 Strengthen local "where" from rtx * to rtx_insn **.
7166 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
7167 from rtx to rtx_insn *.
7168 (do_input_reload): Likewise for local "insn".
7169 (do_output_reload): Likewise for local "insn".
7170 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
7171 (emit_insn_if_valid_for_reload): Likewise for return type and local
7172 "last". Add checked cast to rtx_insn when returning "insn" since
7173 this has been through emit_insn.
7174 (gen_reload): Strengthen return type and locals "last", "insn", "set"
7175 from rtx to rtx_insn *. Add checked cast to rtx_insn when
7176 returning "insn" since it's been through
7177 emit_insn_if_valid_for_reload at this point.
7178 (delete_output_reload): Strengthen param "insn" and locals
7179 "output_reload_insn", "i2" from rtx to rtx_insn *.
7180 (delete_address_reloads): Likewise for params "dead_insn",
7181 "current_insn" and locals "prev", "next".
7182 (delete_address_reloads_1): Likewise for params "dead_insn",
7183 "current_insn" and locals "prev", "i2".
7184 (inc_for_reload): Likewise for locals "last", "add_insn".
7185 (add_auto_inc_notes): Strengthen param "insn" from rtx to
7186 rtx_insn *.
7187
7188 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
7189 param of this duplicate of the prototype from reload.h
7190
7191 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7192
7193 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
7194 rtx to rtx_insn *.
7195 (regstat_bb_compute_calls_crossed): Likewise.
7196
7197 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7198
7199 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
7200 to rtx_insn *.
7201 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
7202 with an insn.
7203 (regrename_analyze): Strengthen local "insn" from rtx to
7204 rtx_insn *.
7205 (scan_rtx_reg): Likewise for param "insn".
7206 (scan_rtx_address): Likewise.
7207 (scan_rtx): Likewise.
7208 (restore_operands): Likewise.
7209 (record_out_operands): Likewise.
7210 (build_def_use): Likewise for local "insn". Replace use of
7211 NULL_RTX with NULL when dealing with an insn.
7212
7213 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7214
7215 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
7216 * reginfo.c (reg_scan): Likewise, also for local "insn".
7217 (reg_scan_mark_refs): Likewise for param "insn".
7218 (init_subregs_of_mode): Likewise for local "insn".
7219
7220 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7221
7222 * regcprop.c (struct queued_debug_insn_change): Strengthen field
7223 "insn" from rtx to rtx_insn *.
7224 (replace_oldest_value_reg): Likewise for param "insn".
7225 (replace_oldest_value_addr): Likewise.
7226 (replace_oldest_value_mem): Likewise.
7227 (apply_debug_insn_changes): Likewise for local "last_insn".
7228 (copyprop_hardreg_forward_1): Likewise for local "insn".
7229
7230 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7231
7232 * reg-stack.c (next_flags_user): Strengthen return type and param
7233 "insn" from rtx to rtx_insn *.
7234 (straighten_stack): Likewise for param "insn".
7235 (check_asm_stack_operands): Likewise.
7236 (remove_regno_note): Likewise.
7237 (emit_pop_insn): Likewise for return type, param "insn", local
7238 "pop_insn".
7239 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
7240 "limit" from rtx to rtx_insn *.
7241 (swap_to_top): Likewise for param "insn".
7242 (move_for_stack_reg): Likewise.
7243 (move_nan_for_stack_reg): Likewise.
7244 (swap_rtx_condition): Likewise.
7245 (compare_for_stack_reg): Likewise.
7246 (subst_all_stack_regs_in_debug_insn): Likewise.
7247 (subst_stack_regs_pat): Likewise, and local "insn2".
7248 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
7249 rtx_insn *.
7250 (subst_stack_regs): Likewise.
7251 (change_stack): Likewise.
7252 (convert_regs_1): Likewise for locals "insn", "next".
7253
7254 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7255
7256 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
7257 rtx_insn *.
7258 (combine_set_extension): Likewise for param "curr_insn".
7259 (transform_ifelse): Likewise for param "def_insn".
7260 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
7261 from vec<rtx> * to vec<rtx_insn *> *.
7262 (is_cond_copy_insn): Likewise for param "insn".
7263 (struct ext_state): Strengthen the four vec fields from vec<rtx>
7264 to vec<rtx_insn *>.
7265 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
7266 local "def_insn" from rtx to rtx_insn *.
7267 (get_sub_rtx): Likewise for param "def_insn".
7268 (merge_def_and_ext): Likewise.
7269 (combine_reaching_defs): Likewise.
7270 (add_removable_extension): Likewise for param "insn".
7271 (find_removable_extensions): Likewise for local "insn".
7272 (find_and_remove_re): Likewise for locals "curr_insn" and
7273 "def_insn". Strengthen locals "reinsn_del_list" and
7274 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
7275
7276 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7277
7278 * recog.c (split_insn): Strengthen param "insn" and locals
7279 "first", "last" from rtx to rtx_insn *.
7280 (split_all_insns): Likewise for locals "insn", "next".
7281 (split_all_insns_noflow): Likewise.
7282
7283 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7284
7285 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
7286 const rtx_insn *.
7287 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
7288 (debug_rtx_find): Likewise for param 1 "x".
7289
7290 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
7291 const_rtx to const rtx_insn *. Likewise for local "insn".
7292 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
7293 (debug_rtx_find): Likewise for param 1 "x".
7294 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
7295 from const_rtx to const rtx_insn * within the appropriate cases of
7296 the switch statement.
7297
7298 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
7299 Strengthen local "insns" from rtx to rtx_insn * since this is
7300 passed to a call to debug_rtx_list.
7301
7302 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7303
7304 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
7305 to rtx_insn *.
7306
7307 * function.c (stack_protect_epilogue): Add checked cast to
7308 rtx_insn for now when invoking predict_insn_def.
7309
7310 * predict.c (predict_insn): Strengthen param "insn" from rtx to
7311 rtx_insn *.
7312 (predict_insn_def): Likewise.
7313 (rtl_predict_edge): Likewise for local "last_insn".
7314 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
7315 const rtx_insn *.
7316 (combine_predictions_for_insn): Strengthen param "insn" from rtx
7317 to rtx_insn *.
7318 (bb_estimate_probability_locally): Likewise for local "last_insn".
7319 (expensive_function_p): Likewise for local "insn".
7320
7321 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
7322 local "jmp", since this is used when invoking predict_insn_def.
7323
7324 2014-08-22 Marek Polacek <polacek@redhat.com>
7325
7326 PR c++/62199
7327 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
7328
7329 2014-08-22 Marek Polacek <polacek@redhat.com>
7330
7331 PR c/61271
7332 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
7333 a comparison in parens.
7334 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
7335 in parens.
7336
7337 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7338
7339 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
7340 rtx_insn *.
7341
7342 * cprop.c (fis_get_condition): Likewise.
7343
7344 * postreload.c (reload_cse_regs): Likewise for param "first".
7345 (reload_cse_simplify): Likewise for param "insn".
7346 (reload_cse_regs_1): Likewise for local "insn".
7347 (reload_cse_simplify_set): Likewise for param "insn".
7348 (reload_cse_simplify_operands): Likewise.
7349 (struct reg_use): Likewise for field "insn".
7350 (reload_combine_purge_insn_uses): Likewise for param "insn".
7351 (fixup_debug_insns): Likewise for params "from", "to" and local
7352 "insn".
7353 (try_replace_in_use): Likewise for local "use_insn".
7354 (reload_combine_recognize_const_pattern): Likewise for param
7355 "insn" and locals "add_moved_after_insn", "use_insn".
7356 (reload_combine_recognize_pattern): Likewise for param "insn" and
7357 local "prev".
7358 (reload_combine): Likewise for locals "insn", "prev".
7359 (reload_combine_note_use): Likewise for param "insn".
7360 (move2add_use_add2_insn): Likewise.
7361 (move2add_use_add3_insn): Likewise.
7362 (reload_cse_move2add): Likewise, also for local "next".
7363 (move2add_note_store): Likewise for local "insn".
7364
7365 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7366
7367 * postreload-gcse.c (struct occr): Strengthen field "insn" from
7368 rtx to rtx_insn *.
7369 (struct unoccr): Likewise.
7370 (struct modifies_mem): Likewise.
7371 (alloc_mem): Likewise for local "insn".
7372 (insert_expr_in_table): Likewise for param "insn".
7373 (dump_expr_hash_table_entry): Likewise for local "insn".
7374 (oprs_unchanged_p): Likewise for param "insn".
7375 (load_killed_in_block_p): Likewise for local "setter".
7376 (record_last_reg_set_info): Likewise for param "insn".
7377 (record_last_reg_set_info_regno): Likewise.
7378 (record_last_mem_set_info): Likewise.
7379 (record_last_set_info): Likewise for local "last_set_insn".
7380 (record_opr_changes): Likewise for param "insn".
7381 (hash_scan_set): Likewise.
7382 (compute_hash_table): Likewise for local "insn".
7383 (get_avail_load_store_reg): Likewise for param "insn".
7384 (eliminate_partially_redundant_load): Likewise, also for locals
7385 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
7386 RTX for insns.
7387 (eliminate_partially_redundant_loads): Likewise for local "insn".
7388
7389 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7390
7391 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
7392 rtx to rtx_insn *.
7393 (expand_binop): Likewise for locals "entry_last", "last", "insns"
7394 (expand_twoval_unop): Likewise for locals entry_last", "last".
7395 (expand_twoval_binop): Likewise.
7396 (expand_twoval_binop_libfunc): Likewise for local "insns".
7397 (widen_leading): Likewise for local "last".
7398 (expand_doubleword_clz): Likewise for local "seq". Strengthen
7399 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
7400 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
7401 (expand_parity): Likewise for locals "last" and "seq".
7402 (expand_ffs): Likewise for local "seq". Strengthen local
7403 "nonzero_label" from rtx to rtx_code_label *.
7404 (expand_absneg_bit): Strengthen local "insns" from rtx to
7405 rtx_insn *.
7406 (expand_unop_direct): Likewise for local "last".
7407 (expand_unop): Likewise for locals "last", "insns".
7408 (expand_abs_nojump): Likewise for local "last".
7409 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
7410 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
7411 rtx_insn *.
7412 (expand_copysign_absneg): Strengthen local "label" from rtx to
7413 rtx_code_label *.
7414 (expand_copysign_bit): Strengthen local "insns" from rtx to
7415 rtx_insn *.
7416 (struct no_conflict_data): Likewise for fields "first", "insn".
7417 (emit_libcall_block_1): Likewise for param "insns" and locals
7418 "next", "last", "insn".
7419 (emit_libcall_block): For now, add a checked cast to rtx_insn *
7420 on "insns" when invoking emit_libcall_block_1. Ultimately we
7421 want to strengthen insns itself.
7422 (prepare_cmp_insn): Strengthen local "last" from rtx to
7423 rtx_insn *.
7424 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
7425 (prepare_float_lib_cmp): Likewise for local "insns".
7426 (emit_conditional_move): Likewise for local "last".
7427 (emit_conditional_add): Likewise.
7428 (have_sub2_insn): Likewise for local "seq".
7429 (expand_float): Likewise for local "insns". Strengthen locals
7430 "label", "neglabel" from rtx to rtx_code_label *.
7431 (expand_fix): Likewise for locals "last", "insn", "insns" (to
7432 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
7433 (expand_fixed_convert): Likewise for local "insns" (to
7434 rtx_insn *).
7435 (expand_sfix_optab): Likewise for local "last".
7436 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
7437 to rtx_code_label *.
7438 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
7439 from rtx to rtx_insn *.
7440 (expand_atomic_fetch_op): Likewise for local "insn".
7441 (maybe_legitimize_operand_same_code): Likewise for local "last".
7442 (maybe_legitimize_operands): Likewise.
7443
7444 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7445
7446 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
7447 "insn" from rtx to rtx_insn *.
7448 (ps_rtl_insn): Likewise for return type.
7449 (doloop_register_get): Likewise for params "head", "tail" and
7450 locals "insn", "first_insn_not_to_check".
7451 (schedule_reg_move): Likewise for local "this_insn".
7452 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
7453 of gen_move_insn for now.
7454 (reset_sched_times): Strengthen local "insn" from rtx to
7455 rtx_insn *.
7456 (permute_partial_schedule): Likewise.
7457 (duplicate_insns_of_cycles): Likewise for local "u_insn".
7458 (dump_insn_location): Likewise for param "insn".
7459 (loop_canon_p): Likewise for local "insn".
7460 (sms_schedule): Likewise.
7461 (print_partial_schedule): Likewise.
7462 (ps_has_conflicts): Likewise.
7463
7464 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7465
7466 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
7467 "tailp" from rtx * to rtx_insn **.
7468
7469 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
7470 from rtx to rtx_insn *.
7471 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
7472 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
7473 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
7474 rtx to rtx_insn *.
7475 * modulo-sched.c (const_iteration_count): Strengthen return type
7476 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
7477 use of NULL_RTX with NULL when working with insns.
7478 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
7479 to rtx_insn *.
7480 (sms_schedule): Likewise.
7481 * sched-rgn.c (init_ready_list): Likewise, also for locals
7482 "src_head" and "src_next_tail".
7483 (compute_block_dependences): Likewise.
7484 (free_block_dependencies): Likewise.
7485 (debug_rgn_dependencies): Likewise.
7486 (free_rgn_deps): Likewise.
7487 (compute_priorities): Likewise.
7488 (schedule_region): Likewise.
7489 * sel-sched.c (find_ebb_boundaries): Likewise.
7490
7491 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
7492 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
7493
7494 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7495
7496 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
7497 from rtx to rtx_insn *.
7498 (new_seginfo): Likewise for param "insn".
7499 (create_pre_exit): Likewise for locals "last_insn",
7500 "before_return_copy", "return_copy".
7501 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
7502 "mode_set".
7503
7504 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7505
7506 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
7507 from rtx to rtx_insn *.
7508 (lra_push_insn): Likewise for 1st param.
7509 (lra_push_insn_and_update_insn_regno_info): Likewise.
7510 (lra_pop_insn): Likewise for return type.
7511 (lra_invalidate_insn_data): Likewise for 1st param.
7512 (lra_set_insn_deleted): Likewise.
7513 (lra_delete_dead_insn): Likewise.
7514 (lra_process_new_insns): Likewise for first 3 params.
7515 (lra_set_insn_recog_data): Likewise for 1st param.
7516 (lra_update_insn_recog_data): Likewise.
7517 (lra_set_used_insn_alternative): Likewise.
7518 (lra_invalidate_insn_regno_info): Likewise.
7519 (lra_update_insn_regno_info): Likewise.
7520 (lra_former_scratch_operand_p): Likewise.
7521 (lra_eliminate_regs_1): Likewise.
7522 (lra_get_insn_recog_data): Likewise.
7523
7524 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
7525 rtx to rtx_insn *.
7526
7527 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
7528 "mv1" and "mv2".
7529 (substitute_within_insn): New.
7530 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
7531 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
7532 Replace call to "substitute" with call to substitute_within_insn.
7533
7534 * lra-constraints.c (curr_insn): Strengthen from rtx to
7535 rtx_insn *.
7536 (get_equiv_with_elimination): Likewise for param "insn".
7537 (match_reload): Strengthen params "before" and "after" from rtx *
7538 to rtx_insn **.
7539 (emit_spill_move): Likewise for return type. Add a checked cast
7540 to rtx_insn * on result of gen_move_insn for now.
7541 (check_and_process_move): Likewise for local "before". Replace
7542 NULL_RTX with NULL when referring to insns.
7543 (process_addr_reg): Strengthen params "before" and "after" from
7544 rtx * to rtx_insn **.
7545 (insert_move_for_subreg): Likewise.
7546 (simplify_operand_subreg): Strengthen locals "before" and "after"
7547 from rtx to rtx_insn *.
7548 (process_address_1): Strengthen params "before" and "after" from
7549 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
7550 rtx to rtx_insn *.
7551 (process_address): Strengthen params "before" and "after" from
7552 rtx * to rtx_insn **.
7553 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
7554 (curr_insn_transform): Strengthen locals "before" and "after"
7555 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
7556 to insns.
7557 (loc_equivalence_callback): Update cast of "data", changing
7558 resulting type from rtx to rtx_insn *.
7559 (substitute_pseudo_within_insn): New.
7560 (inherit_reload_reg): Strengthen param "insn" from rtx to
7561 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
7562 NULL when referring to insns. Add a checked cast to rtx_insn *
7563 when using usage_insn to invoke lra_update_insn_regno_info.
7564 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
7565 likewise for locals "restore", "save". Add checked casts to
7566 rtx_insn * when using usage_insn to invoke
7567 lra_update_insn_regno_info and lra_process_new_insns. Replace
7568 NULL_RTX with NULL when referring to insns.
7569 (split_if_necessary): Strengthen param "insn" from rtx to
7570 rtx_insn *.
7571 (update_ebb_live_info): Likewise for params "head", "tail" and local
7572 "prev_insn".
7573 (get_last_insertion_point): Likewise for return type and local "insn".
7574 (get_live_on_other_edges): Likewise for local "last".
7575 (inherit_in_ebb): Likewise for params "head", "tail" and locals
7576 "prev_insn", "next_insn", "restore".
7577 (remove_inheritance_pseudos): Likewise for local "prev_insn".
7578 (undo_optional_reloads): Likewise for local "insn".
7579
7580 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
7581 "insn".
7582 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
7583 insns.
7584 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
7585 rtx_insn *.
7586 (spill_pseudos): Likewise for local "insn".
7587 (init_elimination): Likewise.
7588 (process_insn_for_elimination): Likewise for param "insn".
7589
7590 * lra-lives.c (curr_insn): Likewise.;
7591
7592 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
7593 (remove_pseudos): Likewise for param "insn".
7594 (spill_pseudos): Likewise for local "insn".
7595 (lra_final_code_change): Likewise for locals "insn", "curr".
7596
7597 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
7598 (lra_set_insn_deleted): Likewise.
7599 (lra_delete_dead_insn): Likewise, and for local "prev".
7600 (new_insn_reg): Likewise for param "insn".
7601 (lra_set_insn_recog_data): Likewise.
7602 (lra_update_insn_recog_data): Likewise.
7603 (lra_set_used_insn_alternative): Likewise.
7604 (get_insn_freq): Likewise.
7605 (invalidate_insn_data_regno_info): Likewise.
7606 (lra_invalidate_insn_regno_info): Likewise.
7607 (lra_update_insn_regno_info): Likewise.
7608 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
7609 vec<rtx_insn *>.
7610 (lra_push_insn_1): Strengthen param "insn" from rtx to
7611 rtx_insn *.
7612 (lra_push_insn): Likewise.
7613 (lra_push_insn_and_update_insn_regno_info): Likewise.
7614 (lra_pop_insn): Likewise for return type and local "insn".
7615 (push_insns): Likewise for params "from", "to", and local "insn".
7616 (setup_sp_offset): Likewise for params "from", "last" and locals
7617 "before", "insn".
7618 (lra_process_new_insns): Likewise for params "insn", "before",
7619 "after" and local "last".
7620 (struct sloc): Likewise for field "insn".
7621 (lra_former_scratch_operand_p): Likewise for param "insn".
7622 (remove_scratches): Likewise for locals "insn", "last".
7623 (check_rtl): Likewise for local "insn".
7624 (add_auto_inc_notes): Likewise for param "insn".
7625 (update_inc_notes): Likewise for local "insn".
7626 (lra): Replace NULL_RTX with NULL when referring to insn.
7627
7628 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7629
7630 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
7631 to rtx_insn *.
7632 (resolve_reg_notes): Likewise.
7633 (resolve_simple_move): Likewise for return type, param "insn", and
7634 locals "insns", "minsn".
7635 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
7636 (resolve_use): Likewise.
7637 (resolve_debug): Likewise.
7638 (find_decomposable_shift_zext): Likewise.
7639 (resolve_shift_zext): Likewise for return type, param "insn", and
7640 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
7641 (decompose_multiword_subregs): Likewise for local "insn",
7642 "orig_insn", "decomposed_shift", "end".
7643
7644 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7645
7646 * basic-block.h (basic_block split_edge_and_insert): Strengthen
7647 param "insns" from rtx to rtx_insn *.
7648
7649 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
7650 rtx to rtx_insn *.
7651 (struct iv_to_split): Likewise.
7652 (loop_exit_at_end_p): Likewise for local "insn".
7653 (split_edge_and_insert): Likewise for param "insns".
7654 (compare_and_jump_seq): Likewise for return type, param "cinsn",
7655 and locals "seq", "jump".
7656 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
7657 "branch_code"; update invocations of compare_and_jump_seq to
7658 eliminate NULL_RTX in favor of NULL.
7659 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
7660 rtx to rtx_insn *.
7661 (reset_debug_uses_in_loop): Likewise.
7662 (analyze_insn_to_expand_var): Likewise for param "insn".
7663 (analyze_iv_to_split_insn): Likewise.
7664 (analyze_insns_in_loop): Likewise for local "insn".
7665 (insert_base_initialization): Likewise for param
7666 "insn" and local "seq".
7667 (split_iv): Likewise for param "insn" and local "seq".
7668 (expand_var_during_unrolling): Likewise for param "insn".
7669 (insert_var_expansion_initialization): Likewise for local "seq".
7670 (combine_var_copies_in_loop_exit): Likewise.
7671 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
7672 "insn".
7673 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
7674 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
7675 "next".
7676
7677 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7678
7679 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
7680 rtx_insn *.
7681 (iv_analyze_result): Likewise.
7682 (iv_analyze_expr): Likewise.
7683 (biv_p): Likewise.
7684
7685 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
7686 local "def_insn" from rtx to rtx_insn *.
7687 (get_biv_step_1): Likewise for local "insn".
7688 (iv_analyze_expr): Likewise for param "insn".
7689 (iv_analyze_def): Likewise for local "insn".
7690 (iv_analyze_op): Likewise for param "insn".
7691 (iv_analyze): Likewise.
7692 (iv_analyze_result): Likewise.
7693 (biv_p): Likewise.
7694 (suitable_set_for_replacement): Likewise.
7695 (simplify_using_initial_values): Likewise for local "insn".
7696 (iv_number_of_iterations): Likewise for param "insn".
7697 (check_simple_exit): Add checked cast to rtx_insn when invoking
7698 iv_number_of_iterations for now (until get_condition is
7699 strengthened).
7700
7701 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
7702 "insn" from rtx to rtx_insn *.
7703 (analyze_insns_in_loop): Likewise for local "insn".
7704
7705 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7706
7707 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
7708 to rtx_insn *.
7709 (struct invariant): Likewise.
7710 (hash_invariant_expr_1): Likewise for param "insn".
7711 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
7712 (find_exits): Likewise for local "insn".
7713 (create_new_invariant): Likewise for param "insn".
7714 (check_dependencies): Likewise.
7715 (find_invariant_insn): Likewise.
7716 (record_uses): Likewise.
7717 (find_invariants_insn): Likewise.
7718 (find_invariants_bb): Likewise for local "insn".
7719 (get_pressure_class_and_nregs): Likewise for param "insn".
7720 (calculate_loop_reg_pressure): Likewise for local "insn".
7721
7722 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7723
7724 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
7725 to rtx_insn *.
7726 (add_test): Likewise for locals "seq", "jump".
7727 (doloop_modify): Likewise for locals "sequence", "jump_insn".
7728
7729 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7730
7731 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
7732 rtx_insn *.
7733 (rebuild_jump_labels_chain): Likewise for param "chain".
7734
7735 * cfgexpand.c (pass_expand::execute): Add checked cast to
7736 rtx_insn * when calling rebuild_jump_labels_chain in region where
7737 we know e->insns.r is non-NULL.
7738
7739 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
7740 rtx_insn *.
7741 (rebuild_jump_labels): Likewise.
7742 (rebuild_jump_labels_chain): Likewise for param "chain".
7743 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
7744 (init_label_info): Likewise for param "f".
7745 (maybe_propagate_label_ref): Likewise for params "jump_insn",
7746 "prev_nonjump_insn".
7747 (mark_all_labels): Likewise for param "f" and locals "insn",
7748 "prev_nonjump_insn".
7749
7750 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7751
7752 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
7753 from rtx to rtx_insn *insn.
7754 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
7755 (ira_add_allocno_copy): Likewise.
7756 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
7757 rtx to rtx_insn *.
7758 (ira_create_copy): Likewise.
7759 (ira_add_allocno_copy): Likewise.
7760 (create_bb_allocnos): Likewise for local "insn".
7761 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
7762 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
7763 process_regs_for_copy for rtx_insn * param.
7764 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
7765 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
7766 process_regs_for_copy for rtx_insn * param.
7767 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
7768 * ira-costs.c (record_reg_classes): Likewise for param "insn".
7769 (record_operand_costs): Likewise.
7770 (scan_one_insn): Likewise for return type, and for param "insn".
7771 (process_bb_for_costs): Likewise for local "insn".
7772 (process_bb_node_for_hard_reg_moves): Likewise.
7773 * ira-emit.c (struct move): Likewise for field "insn".
7774 (create_move): Eliminate use of NULL_RTX when dealing with an
7775 rtx_insn *.
7776 (emit_move_list): Strengthen return type and locals "result",
7777 "insn" from rtx to rtx_insn *insn.
7778 (emit_moves): Likewise for locals "insns", "tmp".
7779 (ira_emit): Likewise for local "insn".
7780 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
7781 "insn".
7782 (find_call_crossed_cheap_reg): Likewise.
7783 (process_bb_node_lives): Likewise for local "insn".
7784 * ira.c (decrease_live_ranges_number): Likewise.
7785 (compute_regs_asm_clobbered): Likewise.
7786 (build_insn_chain): Likewise.
7787 (find_moveable_pseudos): Likewise, also locals "def_insn",
7788 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
7789 to rtx_insn **. Add a checked cast when assigning from
7790 "closest_use" into closest_uses array in a region where we know
7791 it's a non-NULL insn.
7792 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
7793 to rtx_insn *.
7794 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
7795 "last_interesting_insn", "uin".
7796 (move_unallocated_pseudos): Likewise for locals "def_insn",
7797 "move_insn", "newinsn".
7798
7799 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7800
7801 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
7802 Strengthen locals "done_label", "do_error" from rtx to
7803 rtx_code_label *.
7804 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
7805 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
7806 rtx_code_label *.
7807 (ubsan_expand_si_overflow_neg_check): Likewise for locals
7808 "done_label", "do_error" to rtx_code_label * and local "last" to
7809 rtx_insn *.
7810 (ubsan_expand_si_overflow_mul_check): Likewise for locals
7811 "done_label", "do_error", "large_op0", "small_op0_large_op1",
7812 "one_small_one_large", "both_ops_large", "after_hipart_neg",
7813 "after_lopart_neg", "do_overflow", "hipart_different" to
7814 rtx_code_label * and local "last" to rtx_insn *.
7815
7816 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7817
7818 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
7819 "insn" and "move_insn" from rtx to rtx_insn *.
7820
7821 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7822
7823 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
7824 rtx_insn *.
7825 (cheap_bb_rtx_cost_p): Likewise.
7826 (first_active_insn): Likewise for return type and local "insn".
7827 (last_active_insn): Likewise for return type and locals "insn",
7828 "head".
7829 (struct noce_if_info): Likewise for fields "jump", "insn_a",
7830 "insn_b".
7831 (end_ifcvt_sequence): Likewise for return type and locals "insn",
7832 "seq".
7833 (noce_try_move): Likewise for local "seq".
7834 (noce_try_store_flag): Likewise.
7835 (noce_try_store_flag_constants): Likewise.
7836 (noce_try_addcc): Likewise.
7837 (noce_try_store_flag_mask): Likewise.
7838 (noce_try_cmove): Likewise.
7839 (noce_try_minmax): Likewise.
7840 (noce_try_abs): Likewise.
7841 (noce_try_sign_mask): Likewise.
7842 (noce_try_bitop): Likewise.
7843 (noce_can_store_speculate_p): Likewise for local "insn".
7844 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
7845 seq".
7846 (check_cond_move_block): Likewise for local "insn".
7847 (cond_move_convert_if_block): Likewise.
7848 (cond_move_process_if_block): Likewise for locals "seq",
7849 "loc_insn".
7850 (noce_find_if_block): Likewise for local "jump".
7851 (merge_if_block): Likewise for local "last".
7852 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
7853 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
7854 (block_has_only_trap): Likewise for return type and local "trap".
7855 (find_if_case_1): Likewise for local "jump".
7856 (dead_or_predicable): Likewise for locals "head", "end", "jump",
7857 "insn".
7858
7859 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7860
7861 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
7862 "last_insn", "loop_end" from rtx to rtx_insn *.
7863
7864 * hw-doloop.c (scan_loop): Likewise for local "insn".
7865 (discover_loop): Likewise for param "tail_insn".
7866 (discover_loops): Likewise for local "tail".
7867
7868 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
7869 cast to rtx_insn * when assigning from an rtx local to a
7870 hwloop_info's "last_insn" field.
7871
7872 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7873
7874 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
7875 (add_delay_dependencies): Strengthen local "pro" from rtx to
7876 rtx_insn *.
7877 (recompute_todo_spec): Likewise.
7878 (dep_cost_1): Likewise for locals "insn", "used".
7879 (schedule_insn): Likewise for local "dbg".
7880 (schedule_insn): Likewise for locals "pro", "next".
7881 (unschedule_insns_until): Likewise for local "con".
7882 (restore_pattern): Likewise for local "next".
7883 (estimate_insn_tick): Likewise for local "pro".
7884 (resolve_dependencies): Likewise for local "next".
7885 (fix_inter_tick): Likewise.
7886 (fix_tick_ready): Likewise for local "pro".
7887 (add_to_speculative_block): Likewise for locals "check", "twin",
7888 "pro".
7889 (sched_extend_bb): Likewise for locals "end", "insn".
7890 (init_before_recovery): Likewise for local "x".
7891 (sched_create_recovery_block): Likewise for local "barrier".
7892 (create_check_block_twin): Likewise for local "pro".
7893 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
7894 "consumer".
7895 (unlink_bb_notes): Update for change to type of bb_header.
7896 Strengthen locals "prev", "label", "note", "next" from rtx to
7897 rtx_insn *.
7898 (clear_priorities): Likewise for local "pro".
7899
7900 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7901
7902 * gcse.c (struct occr): Strengthen field "insn" from rtx to
7903 rtx_insn *.
7904 (test_insn): Likewise for this global.
7905 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
7906 const rtx_insn *.
7907 (oprs_anticipatable_p): Likewise.
7908 (oprs_available_p): Likewise.
7909 (insert_expr_in_table): Strengthen param "insn" from rtx to
7910 rtx_insn *.
7911 (hash_scan_set): Likewise.
7912 (hash_scan_clobber): Likewise.
7913 (hash_scan_call): Likewise.
7914 (hash_scan_insn): Likewise.
7915 (compute_hash_table_work): Likewise for local "insn".
7916 (process_insert_insn): Likewise for return type and local "pat".
7917 (insert_insn_end_basic_block): Likewise for locals "new_insn",
7918 "pat", "pat_end", "maybe_cc0_setter".
7919 (pre_edge_insert): Likewise for local "insn".
7920 (pre_insert_copy_insn): Likewise for param "insn".
7921 (pre_insert_copies): Likewise for local "insn".
7922 (struct set_data): Likewise for field "insn".
7923 (single_set_gcse): Likewise for param "insn".
7924 (gcse_emit_move_after): Likewise.
7925 (pre_delete): Likewise for local "insn".
7926 (update_bb_reg_pressure): Likewise for param "from" and local
7927 "insn".
7928 (should_hoist_expr_to_dom): Likewise for param "from".
7929 (hoist_code): Likewise for local "insn".
7930 (get_pressure_class_and_nregs): Likewise for param "insn".
7931 (calculate_bb_reg_pressure): Likewise for local "insn".
7932 (compute_ld_motion_mems): Likewise.
7933
7934 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7935
7936 * genpeep.c (main): Rename param back from "uncast_ins1" to
7937 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
7938 checked cast.
7939
7940 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
7941
7942 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
7943
7944 PR target/62195
7945 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
7946 documentation to state it is only for VSX operations.
7947
7948 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
7949 constraint only active if VSX.
7950
7951 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
7952 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
7953 (lfiwzx): Likewise.
7954
7955 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7956
7957 * fwprop.c (single_def_use_dom_walker::before_dom_children):
7958 Strengthen local "insn" from rtx to rtx_insn *.
7959 (use_killed_between): Likewise for param "target_insn".
7960 (all_uses_available_at): Likewise for param "target_insn" and
7961 local "next".
7962 (update_df_init): Likewise for params "def_insn", "insn".
7963 (update_df): Likewise for param "insn".
7964 (try_fwprop_subst): Likewise for param "def_insn" and local
7965 "insn".
7966 (free_load_extend): Likewise for param "insn".
7967 (forward_propagate_subreg): Likewise for param "def_insn" and
7968 local "use_insn".
7969 (forward_propagate_asm): Likewise for param "def_insn" and local
7970 "use_insn".
7971 (forward_propagate_and_simplify): Likewise for param "def_insn"
7972 and local "use_insn".
7973 (forward_propagate_into): Likewise for locals "def_insn" and
7974 "use_insn".
7975
7976 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7977
7978 * function.c (emit_initial_value_sets): Strengthen local "seq"
7979 from rtx to rtx_insn *.
7980 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
7981 local "seq".
7982 (instantiate_virtual_regs): Likewise for local "insn".
7983 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
7984 (reorder_blocks_1): Likewise for param "insns" and local "insn".
7985 (expand_function_end): Likewise for locals "insn" and "seq".
7986 (epilogue_done): Likewise for local "insn".
7987 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
7988 "last", "trial".
7989 (reposition_prologue_and_epilogue_notes): Likewise for locals
7990 "insn", "last", "note", "first".
7991 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
7992 (pass_match_asm_constraints::execute): Likewise for local "insn".
7993
7994 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7995
7996 * output.h (final_scan_insn): Strengthen return type from rtx to
7997 rtx_insn *.
7998 (final_forward_branch_p): Likewise for param.
7999 (current_output_insn): Likewise for this global.
8000
8001 * final.c (rtx debug_insn): Likewise for this variable.
8002 (current_output_insn): Likewise.
8003 (get_attr_length_1): Rename param "insn" to "uncast_insn",
8004 adding "insn" back in as an rtx_insn * with a checked cast, so
8005 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
8006 first param.
8007 (compute_alignments): Strengthen local "label" from rtx to
8008 rtx_insn *.
8009 (shorten_branches): Rename param from "first" to "uncast_first",
8010 introducing a new local rtx_insn * "first" using a checked cast to
8011 effectively strengthen "first" from rtx to rtx_insn * without
8012 affecting the type signature. Strengthen locals "insn", "seq",
8013 "next", "label" from rtx to rtx_insn *.
8014 (change_scope): Strengthen param "orig_insn" and local "insn" from
8015 rtx to rtx_insn *.
8016 (final_start_function): Rename param from "first" to "uncast_first",
8017 introducing a new local rtx_insn * "first" using a checked cast to
8018 effectively strengthen "first" from rtx to rtx_insn * without
8019 affecting the type signature. Strengthen local "insn" from rtx to
8020 rtx_insn *.
8021 (dump_basic_block_info): Strengthen param "insn" from rtx to
8022 rtx_insn *.
8023 (final): Rename param from "first" to "uncast_first",
8024 introducing a new local rtx_insn * "first" using a checked cast to
8025 effectively strengthen "first" from rtx to rtx_insn * without
8026 affecting the type signature. Strengthen locals "insn", "next"
8027 from rtx to rtx_insn *.
8028 (output_alternate_entry_point): Strengthen param "insn" from rtx to
8029 rtx_insn *.
8030 (call_from_call_insn): Strengthen param "insn" from rtx to
8031 rtx_call_insn *.
8032 (final_scan_insn): Rename param from "insn" to "uncast_insn",
8033 introducing a new local rtx_insn * "insn" using a checked cast to
8034 effectively strengthen "insn" from rtx to rtx_insn * without
8035 affecting the type signature. Strengthen return type and locals
8036 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
8037 now-redundant checked cast to rtx_insn * from both invocations of
8038 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
8039 introducing a local "call_insn" for use when invoking
8040 call_from_call_insn.
8041 (notice_source_line): Strengthen param "insn" from rtx to
8042 rtx_insn *.
8043 (leaf_function_p): Likewise for local "insn".
8044 (final_forward_branch_p): Likewise.
8045 (leaf_renumber_regs): Likewise for param "first".
8046 (rest_of_clean_state): Likewise for locals "insn" and "next".
8047 (self_recursive_call_p): Likewise for param "insn".
8048 (collect_fn_hard_reg_usage): Likewise for local "insn".
8049 (get_call_fndecl): Likewise for param "insn".
8050 (get_call_cgraph_rtl_info): Likewise.
8051 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
8052 introducing a new local rtx_insn * "insn" using a checked cast to
8053 effectively strengthen "insn" from rtx to rtx_insn * without
8054 affecting the type signature.
8055
8056 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
8057 cast when assigning from param "insn" to current_output_insn.
8058 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
8059 so that we can assign it back to current_output_insn.
8060
8061 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8062
8063 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
8064 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
8065 atmxt540s and atmxt540sreva devices.
8066 * config/avr/avr-tables.opt: Regenerate.
8067 * config/avr/t-multilib: Regenerate.
8068 * doc/avr-mmcu.texi: Regenerate.
8069
8070 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8071
8072 * expr.c (convert_move): Strengthen local "insns" from rtx to
8073 rtx_insn *.
8074 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
8075 "top_label" from rtx to rtx_code_label *.
8076 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
8077 rtx_insn *.
8078 (emit_single_push_insn): Likewise for locals "prev", "last".
8079 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
8080 to rtx_code_label *.
8081 (store_constructor): Likewise for locals "loop_start", "loop_end".
8082 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
8083 rtx_insn *.
8084 (expand_expr_real_2): Likewise.
8085 (expand_expr_real_1): Strengthen local "label" from rtx to
8086 rtx_code_label *.
8087
8088 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8089
8090 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
8091 from rtx to rtx_insn *.
8092 (store_bit_field_1): Likewise.
8093 (extract_bit_field_1): Likewise.
8094 (expand_mult_const): Likewise for local "insns".
8095 (expmed_mult_highpart): Strengthen local "label" from rtx to
8096 rtx_code_label *.
8097 (expand_smod_pow2): Likewise.
8098 (expand_sdiv_pow2): Likewise.
8099 (expand_divmod): Strengthen locals "last", "insn" from rtx to
8100 rtx_insn *. Strengthen locals "label", "label1", "label2",
8101 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
8102 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
8103 (emit_store_flag): Likewise.
8104 (emit_store_flag_force): Strengthen local "label" from rtx to
8105 rtx_code_label *.
8106 (do_cmp_and_jump): Likewise for param "label".
8107
8108 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8109
8110 * explow.c (force_reg): Strengthen local "insn" from rtx to
8111 rtx_insn *.
8112 (adjust_stack_1): Likewise.
8113 (allocate_dynamic_stack_space): Likewise. Strengthen locals
8114 "final_label", "available_label", "space_available" from rtx to
8115 rtx_code_label *.
8116 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
8117 (anti_adjust_stack_and_probe): Likewise.
8118
8119 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8120
8121 * except.h (sjlj_emit_function_exit_after): Strengthen param
8122 "after" from rtx to rtx_insn *. This is only called with
8123 result of get_last_insn (in function.c) so type-change should be
8124 self-contained.
8125
8126 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
8127 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
8128 to rtx_insn *. These fields are only used from except.c so this
8129 type-change should be self-contained to this patch.
8130
8131 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
8132 local "last" from rtx to rtx_insn *.
8133 (dw2_build_landing_pads): Likewise for local "seq".
8134 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
8135 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
8136 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
8137 rtx to rtx_insn *.
8138 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
8139 to rtx_insn *.
8140 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
8141 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
8142 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
8143 referring to an insn. Strengthen local "dispatch_label" from
8144 rtx to rtx_code_label *.
8145 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
8146 rtx_insn *.
8147 (expand_eh_return): Strengthen local "around_label" from
8148 rtx to rtx_code_label *.
8149 (convert_to_eh_region_ranges): Strengthen locals "iter",
8150 "last_action_insn", "first_no_action_insn",
8151 "first_no_action_insn_before_switch",
8152 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
8153
8154 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8155
8156 * dwarf2out.c (last_var_location_insn): Strengthen this variable
8157 from rtx to rtx_insn *.
8158 (cached_next_real_insn): Likewise.
8159 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
8160 working with insns.
8161 (dwarf2out_var_location): Strengthen locals "next_real",
8162 "next_note", "expected_next_loc_note", "last_start", "insn" from
8163 rtx to rtx_insn *.
8164
8165 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8166
8167 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
8168 from rtx to rtx_insn *.
8169 (create_pseudo_cfg): Likewise for local "insn".
8170
8171 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8172
8173 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
8174 from rtx to rtx_insn *.
8175 (df_bb_regno_last_def_find): Likewise.
8176
8177 * df-problems.c (df_rd_bb_local_compute): Likewise.
8178 (df_lr_bb_local_compute): Likewise.
8179 (df_live_bb_local_compute): Likewise.
8180 (df_chain_remove_problem): Likewise.
8181 (df_chain_create_bb): Likewise.
8182 (df_word_lr_bb_local_compute): Likewise.
8183 (df_remove_dead_eq_notes): Likewise for param "insn".
8184 (df_note_bb_compute): Likewise for local "insn".
8185 (simulate_backwards_to_point): Likewise.
8186 (df_md_bb_local_compute): Likewise.
8187
8188 * df-scan.c (df_scan_free_bb_info): Likewise.
8189 (df_scan_start_dump): Likewise.
8190 (df_scan_start_block): Likewise.
8191 (df_install_ref_incremental): Likewise for local "insn".
8192 (df_insn_rescan_all): Likewise.
8193 (df_reorganize_refs_by_reg_by_insn): Likewise.
8194 (df_reorganize_refs_by_insn_bb): Likewise.
8195 (df_recompute_luids): Likewise.
8196 (df_bb_refs_record): Likewise.
8197 (df_update_entry_exit_and_calls): Likewise.
8198 (df_bb_verify): Likewise.
8199
8200 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8201
8202 * ddg.h (struct ddg_node): Strengthen fields "insn" and
8203 "first_note" from rtx to rtx_insn *.
8204 (get_node_of_insn): Likewise for param 2 "insn".
8205 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
8206
8207 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
8208 rtx_insn *.
8209 (mem_write_insn_p): Likewise.
8210 (mem_access_insn_p): Likewise.
8211 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
8212 (def_has_ccmode_p): Likewise for param "insn".
8213 (add_cross_iteration_register_deps): Likewise for locals
8214 "def_insn" and "use_insn".
8215 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
8216 (build_intra_loop_deps): Likewise for local "src_insn".
8217 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
8218 to rtx_insn *.
8219 (get_node_of_insn): Likewise for param "insn".
8220
8221 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8222
8223 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
8224 (deletable_insn_p): Strengthen param "insn" from rtx to
8225 rtx_insn *. Add checked cast to rtx_call_insn when invoking
8226 find_call_stack_args, since this is guarded by CALL_P (insn).
8227 (marked_insn_p): Strengthen param "insn" from rtx to
8228 rtx_insn *.
8229 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
8230 invoking find_call_stack_args, since this is guarded by
8231 CALL_P (insn).
8232 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
8233 rtx_insn *; we know this is an insn since this was called by
8234 mark_nonreg_stores.
8235 (mark_nonreg_stores_2): Likewise.
8236 (mark_nonreg_stores): Strengthen param "insn" from rtx to
8237 rtx_insn *.
8238 (find_call_stack_args): Strengthen param "call_insn" from rtx to
8239 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
8240 to rtx_insn *.
8241 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
8242 from rtx to rtx_insn *.
8243 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
8244 "next", "ref_insn".
8245 (delete_unmarked_insns): Likewise for locals "insn", "next".
8246 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
8247 (mark_reg_dependencies): Likewise for param "insn".
8248 (rest_of_handle_ud_dce): Likewise for local "insn".
8249 (word_dce_process_block): Likewise.
8250 (dce_process_block): Likewise.
8251
8252 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8253
8254 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
8255 from rtx to rtx_insn *.
8256 (struct change_cc_mode_args): Likewise for field "insn".
8257 (this_insn): Strengthen from rtx to rtx_insn *.
8258 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
8259 with insn.
8260 (validate_canon_reg): Strengthen param "insn" from rtx to
8261 rtx_insn *.
8262 (canon_reg): Likewise.
8263 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
8264 dealing with insn.
8265 (record_jump_equiv): Strengthen param "insn" from rtx to
8266 rtx_insn *.
8267 (try_back_substitute_reg): Likewise, also for locals "prev",
8268 "bb_head".
8269 (find_sets_in_insn): Likewise for param "insn".
8270 (canonicalize_insn): Likewise.
8271 (cse_insn): Likewise. Add a checked cast.
8272 (invalidate_from_clobbers): Likewise for param "insn".
8273 (invalidate_from_sets_and_clobbers): Likewise.
8274 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
8275 dealing with insn.
8276 (cse_prescan_path): Strengthen local "insn" from rtx to
8277 rtx_insn *.
8278 (cse_extended_basic_block): Likewise for locals "insn" and
8279 "prev_insn".
8280 (cse_main): Likewise for param "f".
8281 (check_for_label_ref): Likewise for local "insn".
8282 (set_live_p): Likewise for second param ("insn").
8283 (insn_live_p): Likewise for first param ("insn") and for local
8284 "next".
8285 (cse_change_cc_mode_insn): Likewise for first param "insn".
8286 (cse_change_cc_mode_insns): Likewise for first and second params
8287 "start" and "end".
8288 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
8289 and "end".
8290 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
8291 "cc_src_insn".
8292
8293 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8294 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8295 Anna Tikhonova <anna.tikhonova@intel.com>
8296 Ilya Tocar <ilya.tocar@intel.com>
8297 Andrey Turetskiy <andrey.turetskiy@intel.com>
8298 Ilya Verbin <ilya.verbin@intel.com>
8299 Kirill Yukhin <kirill.yukhin@intel.com>
8300 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8301
8302 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
8303 New.
8304 * config/i386/sse.md
8305 (define_mode_iterator VI248_AVX2): Delete.
8306 (define_mode_iterator VI2_AVX2_AVX512BW): New.
8307 (define_mode_iterator VI48_AVX2): Ditto.
8308 (define_insn <shift_insn><mode>3): Delete.
8309 (define_insn "<shift_insn><mode>3<mask_name>" with
8310 VI2_AVX2_AVX512BW): New.
8311 (define_insn "<shift_insn><mode>3<mask_name>" with
8312 VI48_AVX2): Ditto.
8313
8314 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8315 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8316 Anna Tikhonova <anna.tikhonova@intel.com>
8317 Ilya Tocar <ilya.tocar@intel.com>
8318 Andrey Turetskiy <andrey.turetskiy@intel.com>
8319 Ilya Verbin <ilya.verbin@intel.com>
8320 Kirill Yukhin <kirill.yukhin@intel.com>
8321 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8322
8323 * config/i386/sse.md
8324 (define_mode_iterator VI4F_BRCST32x2): New.
8325 (define_mode_attr 64x2_mode): Ditto.
8326 (define_mode_attr 32x2mode): Ditto.
8327 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
8328 with VI4F_BRCST32x2): Ditto.
8329 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
8330 with V16FI mode iterator): Ditto.
8331 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
8332 with V16FI): Ditto.
8333 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
8334 with VI8F_BRCST64x2): Ditto.
8335
8336 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8337 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8338 Anna Tikhonova <anna.tikhonova@intel.com>
8339 Ilya Tocar <ilya.tocar@intel.com>
8340 Andrey Turetskiy <andrey.turetskiy@intel.com>
8341 Ilya Verbin <ilya.verbin@intel.com>
8342 Kirill Yukhin <kirill.yukhin@intel.com>
8343 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8344
8345 * config/i386/sse.md
8346 (define_mode_iterator VI8_AVX512VL): New.
8347 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
8348
8349 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
8350
8351 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
8352 (define_mode_iterator V48_AVX512VL): New.
8353 (define_mode_iterator V12_AVX512VL): Ditto.
8354 (define_insn <avx512>_load<mode>_mask): Split into two similar
8355 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
8356 Refactor output template.
8357 (define_insn "<avx512>_store<mode>_mask"): Ditto.
8358
8359 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8360
8361 * cprop.c (struct occr): Strengthen field "insn" from rtx to
8362 rtx_insn *.
8363 (reg_available_p): Likewise for param "insn".
8364 (insert_set_in_table): Likewise.
8365 (hash_scan_set): Likewise.
8366 (hash_scan_insn): Likewise.
8367 (make_set_regs_unavailable): Likewise.
8368 (compute_hash_table_work): Likewise for local "insn".
8369 (reg_not_set_p): Strengthen param "insn" from const_rtx to
8370 const rtx_insn *.
8371 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
8372 (try_replace_reg): Likewise.
8373 (find_avail_set): Likewise.
8374 (cprop_jump): Likewise for params "setcc", "jump".
8375 (constprop_register): Likewise for param "insn".
8376 (cprop_insn): Likewise.
8377 (do_local_cprop): Likewise.
8378 (local_cprop_pass): Likewise for local "insn".
8379 (bypass_block): Likewise for params "setcc" and "jump".
8380 (bypass_conditional_jumps): Likewise for locals "setcc" and
8381 "insn".
8382 (one_cprop_pass): Likewise for local "insn".
8383
8384 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8385
8386 * compare-elim.c (struct comparison_use): Strengthen field "insn"
8387 from rtx to rtx_insn *.
8388 (struct comparison): Likewise, also for field "prev_clobber".
8389 (conforming_compare): Likewise for param "insn".
8390 (arithmetic_flags_clobber_p): Likewise.
8391 (find_flags_uses_in_insn): Likewise.
8392 (find_comparison_dom_walker::before_dom_children): Likewise for
8393 locals "insn", "next", "last_clobber".
8394 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
8395
8396 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8397
8398 * combine-stack-adj.c (struct csa_reflist): Strengthen field
8399 "insn" from rtx to rtx_insn *.
8400 (single_set_for_csa): Likewise for param "insn".
8401 (record_one_stack_ref): Likewise.
8402 (try_apply_stack_adjustment): Likewise.
8403 (struct record_stack_refs_data): Likewise for field "insn".
8404 (maybe_move_args_size_note): Likewise for params "last" and "insn".
8405 (prev_active_insn_bb): Likewise for return type and param "insn".
8406 (next_active_insn_bb): Likewise.
8407 (force_move_args_size_note): Likewise for params "prev" and "last"
8408 and locals "test", "next_candidate", "prev_candidate".
8409 (combine_stack_adjustments_for_block): Strengthen locals
8410 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
8411 rtx_insn *.
8412
8413 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8414
8415 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
8416 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
8417 (subst_insn): Likewise for this variable.
8418 (added_links_insn): Likewise.
8419 (struct insn_link): Likewise for field "insn".
8420 (alloc_insn_link): Likewise for param "insn".
8421 (struct undobuf): Likewise for field "other_insn".
8422 (find_single_use): Likewise for param "insn" and local "next".
8423 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
8424 (delete_noop_moves): Likewise for locals "insn", "next".
8425 (create_log_links): Likewise for locals "insn", "use_insn".
8426 Strengthen local "next_use" from rtx * to rtx_insn **.
8427 (insn_a_feeds_b): Likewise for params "a", "b".
8428 (combine_instructions): Likewise for param "f" and locals "insn",
8429 "next", "prev", "first", "last_combined_insn", "link", "link1",
8430 "temp". Replace use of NULL_RTX with NULL when referring to
8431 insns.
8432 (setup_incoming_promotions): Likewise for param "first"
8433 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
8434 (can_combine_p): Likewise for params "insn", "i3", "pred",
8435 "pred2", "succ", "succ2" and for local "p".
8436 (combinable_i3pat): Likewise for param "i3".
8437 (cant_combine_insn_p): Likewise for param "insn".
8438 (likely_spilled_retval_p): Likewise.
8439 (adjust_for_new_dest): Likewise.
8440 (update_cfg_for_uncondjump): Likewise, also for local "insn".
8441 (try_combine): Likewise for return type and for params "i3", "i2",
8442 "i1", "i0", "last_combined_insn", and for locals "insn",
8443 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
8444 "i0_insn". Eliminate local "tem" in favor of new locals
8445 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
8446 checked cast for now to rtx_insn * on the return type of
8447 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
8448 insns.
8449 (find_split_point): Strengthen param "insn" from rtx to
8450 rtx_insn *.
8451 (simplify_set): Likewise for local "other_insn".
8452 (recog_for_combine): Likewise for param "insn".
8453 (record_value_for_reg): Likewise.
8454 (record_dead_and_set_regs_1): Likewise for local
8455 "record_dead_insn".
8456 (record_dead_and_set_regs): Likewise for param "insn".
8457 (record_promoted_value): Likewise.
8458 (check_promoted_subreg): Likewise.
8459 (get_last_value_validate): Likewise.
8460 (reg_dead_at_p): Likewise.
8461 (move_deaths): Likewise for param "to_insn".
8462 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
8463 and locals "place", "place2", "cc0_setter". Eliminate local "tem
8464 in favor of new locals "tem_note" and "tem_insn", the latter being
8465 an rtx_insn *.
8466 (distribute_links): Strengthen locals "place", "insn" from rtx to
8467 rtx_insn *.
8468
8469 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8470
8471 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
8472 than a const_rtx.
8473 (can_delete_label_p): Require a const rtx_code_label * rather than
8474 a const_rtx.
8475 (delete_insn): Add checked cast to rtx_code_label * when we know
8476 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
8477 rtx to rtx_insn *.
8478 (delete_insn_chain): Strengthen locals "prev" and "current" from
8479 rtx to rtx_insn *. Add a checked cast when assigning from
8480 "finish" (strengthening the params will come later). Add a
8481 checked cast to rtx_note * in region where we know
8482 NOTE_P (current).
8483 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
8484 rtx_insn *.
8485 (compute_bb_for_insn): Likewise.
8486 (free_bb_for_insn): Likewise for local "insn".
8487 (compute_bb_for_insn): Likewise.
8488 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
8489 local "insn" from rtx to rtx_insn *
8490 (flow_active_insn_p): Require a const rtx_insn * rather than a
8491 const_rtx.
8492 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
8493 rtx_insn *.
8494 (can_fallthru): Likewise for locals "insn" and "insn2".
8495 (bb_note): Likewise for local "note".
8496 (first_insn_after_basic_block_note): Likewise for local "note" and
8497 for return type.
8498 (rtl_split_block): Likewise for locals "insn" and "next".
8499 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
8500 "end".
8501 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
8502 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
8503 "prev", "tmp".
8504 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
8505 them), "kill_from", "barrier", "new_insn".
8506 (patch_jump_insn): Likewise for params "insn", "old_label".
8507 (redirect_branch_edge): Likewise for locals "old_label", "insn".
8508 (force_nonfallthru_and_redirect): Likewise for locals "insn",
8509 "old_label", "new_label".
8510 (rtl_tidy_fallthru_edge): Likewise for local "q".
8511 (rtl_split_edge): Likewise for locals "before", "last".
8512 (commit_one_edge_insertion): Likewise for locals "before",
8513 "after", "insns", "tmp", "last", adding a checked cast where
8514 currently necessary.
8515 (commit_edge_insertions): Likewise.
8516 (rtl_dump_bb): Likewise for locals "insn", "last".
8517 (print_rtl_with_bb): Likewise for local "x".
8518 (rtl_verify_bb_insns): Likewise for local "x".
8519 (rtl_verify_bb_pointers): Likewise for local "insn".
8520 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
8521 "head", "end".
8522 (rtl_verify_fallthru): Likewise for local "insn".
8523 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
8524 (purge_dead_edges): Likewise for local "insn".
8525 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
8526 (skip_insns_after_block): Likewise for return type and for locals
8527 "insn", "last_insn", "next_head", "prev".
8528 (record_effective_endpoints): Likewise for locals "next_insn",
8529 "insn", "end".
8530 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
8531 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
8532 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
8533 (duplicate_insn_chain): For now, add checked cast from rtx to
8534 rtx_insn * when returning insn.
8535 (cfg_layout_duplicate_bb): Likewise for local "insn".
8536 (cfg_layout_delete_block): Likewise for locals "insn", "next",
8537 "prev", "remaints".
8538 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
8539 (rtl_block_empty_p): Likewise.
8540 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
8541 "split_point", "last".
8542 (rtl_block_ends_with_call_p): Likewise for local "insn".
8543 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
8544 const rtx_insn *.
8545 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
8546 "split_at_insn" from rtx to rtx_insn *.
8547 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
8548 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
8549 to const rtx_insn *.
8550 (rtl_account_profile_record): Likewise.
8551
8552 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8553
8554 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
8555 rtx to rtx_insn *.
8556 (average_num_loop_insns): Likewise.
8557 (init_set_costs): Likewise for local "seq".
8558 (seq_cost): Likewise for param "seq", from const_rtx to const
8559 rtx_insn *.
8560
8561 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8562
8563 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
8564 rtx to rtx_insn *.
8565
8566 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8567
8568 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
8569 "f1" and "f2" from rtx * to rtx_insn **.
8570 (flow_find_head_matching_sequence): Likewise.
8571
8572 * cfgcleanup.c (try_simplify_condjump): Strengthen local
8573 "cbranch_insn" from rtx to rtx_insn *.
8574 (thread_jump): Likewise for local "insn".
8575 (try_forward_edges): Likewise for local "last".
8576 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
8577 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
8578 "real_b_end".
8579 (can_replace_by): Likewise for params "i1", "i2".
8580 (old_insns_match_p): Likewise.
8581 (merge_notes): Likewise.
8582 (walk_to_nondebug_insn): Likewise for param "i1".
8583 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
8584 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
8585 "afterlast1", "afterlast2" from rtx to rtx_insn *.
8586 (flow_find_head_matching_sequence): Strengthen params "f1" and
8587 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
8588 "last1", "last2", "beforelast1", "beforelast2" from rtx to
8589 rtx_insn *.
8590 (outgoing_edges_match): Likewise for locals "last1", "last2".
8591 (try_crossjump_to_edge): Likewise for local "insn".
8592 Replace call to for_each_rtx with for_each_rtx_in_insn.
8593
8594 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
8595 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
8596 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
8597 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
8598 (try_optimize_cfg): Strengthen local "last" from rtx to
8599 rtx_insn *.
8600 (delete_dead_jumptables): Likewise for locals "insn", "next",
8601 "label".
8602
8603 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
8604 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
8605 "rtx else_first_tail", to reflect the basic-block.h changes above.
8606
8607 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8608
8609 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
8610 rtx_insn *.
8611 (purge_dead_tablejump_edges): Likewise.
8612 (find_bb_boundaries): Likewise for locals "insn", "end",
8613 "flow_transfer_insn".
8614
8615 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8616
8617 * caller-save.c (save_call_clobbered_regs): Strengthen locals
8618 "ins" and "prev" from rtx to rtx_insn *.
8619
8620 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8621
8622 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
8623 rtx_insn *.
8624 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
8625 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
8626 "scan_start".
8627 (load_register_parameters): Likewise for local "before_arg".
8628 (check_sibcall_argument_overlap): Likewise for param "insn".
8629 (expand_call): Likewise for locals "normal_call_insns",
8630 "tail_call_insns", "insns", "before_call", "after_args",
8631 "before_arg", "last", "prev". Strengthen one of the "last" from
8632 rtx to rtx_call_insn *.
8633 (fixup_tail_calls): Strengthen local "insn" from rtx to
8634 rtx_insn *.
8635 (emit_library_call_value_1): Likewise for locals "before_call" and
8636 "last".
8637
8638 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8639
8640 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
8641 and "last" from rtx to rtx_insn *.
8642 (expand_builtin_nonlocal_goto): Likewise for local "insn".
8643 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
8644 rtx_call_insn *.
8645 (expand_errno_check): Strengthen local "lab" from rtx to
8646 rtx_code_label *.
8647 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
8648 rtx_insn *.
8649 (expand_builtin_mathfn_2): Likewise.
8650 (expand_builtin_mathfn_ternary): Likewise.
8651 (expand_builtin_mathfn_3): Likewise.
8652 (expand_builtin_interclass_mathfn): Likewise for local "last".
8653 (expand_builtin_int_roundingfn): Likewise for local "insns".
8654 (expand_builtin_int_roundingfn_2): Likewise.
8655 (expand_builtin_strlen): Likewise for local "before_strlen".
8656 (expand_builtin_strncmp): Likewise for local "seq".
8657 (expand_builtin_signbit): Likewise for local "last".
8658 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
8659 from rtx to rtx_code_label *.
8660 (expand_stack_restore): Strengthen local "prev" from rtx to
8661 rtx_insn *.
8662
8663 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8664
8665 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
8666 to rtx_insn *.
8667 (struct btr_def_s): Likewise.
8668 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
8669 const rtx_insn *.
8670 (add_btr_def): Likewise.
8671 (new_btr_user): Likewise.
8672 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
8673 rtx to rtx_insn *.
8674 (link_btr_uses): Likewise.
8675 (move_btr_def): Likewise for locals "insp", "old_insn",
8676 "new_insn". Add checked cast to rtx_insn * for now on result of
8677 gen_move_insn.
8678 (can_move_up): Strengthen param "insn" from const_rtx to
8679 const rtx_insn *.
8680
8681 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8682
8683 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
8684 rtx_insn *.
8685 (get_uncond_jump_length): Likewise for locals "label", "jump".
8686 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
8687 "jump", "insn".
8688 (add_labels_and_missing_jumps): Likewise for local "new_jump".
8689 (fix_up_fall_thru_edges): Likewise for local "old_jump".
8690 (find_jump_block): Likewise for local "insn".
8691 (fix_crossing_conditional_branches): Likewise for locals
8692 "old_jump", "new_jump".
8693 (fix_crossing_unconditional_branches): Likewise for locals
8694 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
8695 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
8696
8697 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8698
8699 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
8700 rtx to rtx_insn *.
8701 (struct mem_insn): Likewise for field "insn".
8702 (reg_next_use): Strengthen from rtx * to rtx_insn **.
8703 (reg_next_inc_use): Likewise.
8704 (reg_next_def): Likewise.
8705 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
8706 from rtx to rtx_insn *.
8707 (move_insn_before): Likewise for param "next_insn" and local "insns".
8708 (attempt_change): Likewise for local "mov_insn".
8709 (try_merge): Likewise for param "last_insn".
8710 (get_next_ref): Likewise for return type and local "insn".
8711 Strengthen param "next_array" from rtx * to rtx_insn **.
8712 (parse_add_or_inc): Strengthen param "insn" from rtx to
8713 rtx_insn *.
8714 (find_inc): Likewise for locals "insn" and "other_insn" (three of
8715 the latter).
8716 (merge_in_block): Likewise for locals "insn", "curr",
8717 "other_insn".
8718 (pass_inc_dec::execute): Update allocations of the arrays to
8719 reflect the stronger types.
8720
8721 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8722
8723 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
8724 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
8725 from rtx to rtx_code_label *.
8726
8727 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8728
8729 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
8730 to rtx_insn *.
8731
8732 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8733
8734 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
8735 generated a warning and prevented bootstrapping the compiler.
8736
8737 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8738
8739 * rtl.h (delete_related_insns): Strengthen return type from rtx to
8740 rtx_insn *.
8741
8742 * jump.c (delete_related_insns): Likewise, also for locals "next"
8743 and "prev".
8744
8745 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8746
8747 * genautomata.c (output_internal_insn_latency_func): When writing
8748 the function "internal_insn_latency" to insn-automata.c,
8749 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
8750 allowing the optional guard function of (define_bypass) clauses to
8751 expect a pair of rtx_insn *, rather than a pair of rtx.
8752 (output_insn_latency_func): When writing the function
8753 "insn_latency", add an "uncast_" prefix to params "insn" and
8754 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
8755 using checked casts from the params, thus enabling the above
8756 change to the generated "internal_insn_latency" function.
8757
8758 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
8759
8760 PR tree-optimization/62091
8761 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
8762 handle correctly arrays.
8763 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
8764 inheritance binfos.
8765 (record_known_type): Walk into inner type.
8766 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
8767 condition on no type changes.
8768
8769 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8770
8771 * genattrtab.c (write_attr_get): Within the generated get_attr_
8772 functions, rename param "insn" to "uncast_insn" and reintroduce
8773 "insn" as an local rtx_insn * using a checked cast, so that "insn"
8774 is an rtx_insn * within insn-attrtab.c
8775
8776 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8777
8778 * output.h (peephole): Strengthen return type from rtx to
8779 rtx_insn *.
8780 * rtl.h (delete_for_peephole): Likewise for both params.
8781 * genpeep.c (main): In generated "peephole" function, strengthen
8782 return type and local "insn" from rtx to rtx_insn *. For now,
8783 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
8784 rtx_insn *, with a checked cast.
8785 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
8786 locals "insn", "next", "prev" from rtx to rtx_insn *.
8787
8788 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
8789
8790 PR tree-optimization/62112
8791 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
8792 * gimple-iterator.h (gsi_replace): Return bool.
8793 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
8794 moved from ref_may_alias_global_p.
8795 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
8796 New overloads.
8797 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
8798 (stmt_kills_ref_p_1): Rename...
8799 (stmt_kills_ref_p): ... to this.
8800 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
8801 stmt_kills_ref_p): Declare.
8802 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
8803 Move the self-assignment case...
8804 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
8805
8806 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8807
8808 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
8809
8810 * emit-rtl.c (try_split): Likewise, also for locals "before" and
8811 "after". For now, don't strengthen param "trial", which requires
8812 adding checked casts when returning it.
8813
8814 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8815
8816 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
8817 "label" from rtx to rtx_code_label *. Strengthen param 1 of
8818 "var_location" hook from rtx to rtx_insn *.
8819 (debug_nothing_rtx): Delete in favor of...
8820 (debug_nothing_rtx_code_label): New prototype.
8821 (debug_nothing_rtx_rtx): Delete unused prototype.
8822 (debug_nothing_rtx_insn): New prototype.
8823
8824 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
8825 invoking debug_hooks->var_location (in two places, one in a NOTE
8826 case of a switch statement, the other guarded by a CALL_P
8827 conditional. Add checked cast to rtx_code_label * when invoking
8828 debug_hooks->label (within CODE_LABEL case of switch statement).
8829
8830 * dbxout.c (dbx_debug_hooks): Update "label" hook from
8831 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
8832 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
8833 (xcoff_debug_hooks): Likewise.
8834 * debug.c (do_nothing_debug_hooks): Likewise.
8835 (debug_nothing_rtx): Delete in favor of...
8836 (debug_nothing_rtx_insn): New function.
8837 (debug_nothing_rtx_rtx): Delete unused function.
8838 (debug_nothing_rtx_code_label): New function.
8839 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
8840 debug_nothing_rtx to debug_nothing_rtx_code_label.
8841 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
8842 to rtx_insn *.
8843 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
8844 debug_nothing_rtx to debug_nothing_rtx_insn.
8845 (sdbout_label): Strengthen param "insn" from rtx to
8846 rtx_code_label *.
8847 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
8848 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
8849 "var_location" hook from debug_nothing_rtx to
8850 debug_nothing_rtx_insn.
8851
8852 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8853
8854 * recog.h (insn_output_fn): Update this function typedef to match
8855 the changes below to the generated output functions, strengthening
8856 the 2nd param from rtx to rtx_insn *.
8857
8858 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
8859 insn when invoking an output function, to match the new signature
8860 of insn_output_fn with a stronger second param.
8861
8862 * genconditions.c (write_header): In the generated code for
8863 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
8864 to match the other changes in this patch.
8865
8866 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
8867 the generated "gen_" functions from rtx to rtx_insn * within their
8868 implementations.
8869
8870 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
8871 the subfunctions within the generated "recog_", "split", "peephole2"
8872 function trees from rtx to rtx_insn *. For now, the top-level
8873 generated functions ("recog", "split", "peephole2") continue to
8874 take a plain rtx for "insn", to avoid introducing dependencies on
8875 other patches. Rename this 2nd param from "insn" to
8876 "uncast_insn", and reintroduce "insn" as a local variable of type
8877 rtx_insn *, initialized at the top of the generated function with
8878 a checked cast on "uncast_insn".
8879 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
8880 the generated "gen_" functions from rtx to rtx_insn * within their
8881 prototypes.
8882
8883 * genoutput.c (process_template): Strengthen the 2nd param within
8884 the generated "output_" functions "insn" from rtx to rtx_insn *.
8885
8886 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
8887
8888 * tree-profile.c (tree_profiling): Skip external functions
8889 when doing coverage instrumentation.
8890 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
8891
8892 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8893
8894 * config/rs6000/altivec.h (vec_cpsgn): New #define.
8895 (vec_mergee): Likewise.
8896 (vec_mergeo): Likewise.
8897 (vec_cntlz): Likewise.
8898 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
8899 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
8900 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
8901 VMRGEW, and VMRGOW.
8902 * doc/extend.texi: Document various forms of vec_cpsgn,
8903 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
8904 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
8905 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
8906 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
8907 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
8908
8909 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8910
8911 * config/rs6000/rs6000.c (context.h): New include.
8912 (tree-pass.h): Likewise.
8913 (make_pass_analyze_swaps): New decl.
8914 (rs6000_option_override): Register pass_analyze_swaps.
8915 (swap_web_entry): New subsclass of web_entry_base (df.h).
8916 (special_handling_values): New enum.
8917 (union_defs): New function.
8918 (union_uses): Likewise.
8919 (insn_is_load_p): Likewise.
8920 (insn_is_store_p): Likewise.
8921 (insn_is_swap_p): Likewise.
8922 (rtx_is_swappable_p): Likewise.
8923 (insn_is_swappable_p): Likewise.
8924 (chain_purpose): New enum.
8925 (chain_contains_only_swaps): New function.
8926 (mark_swaps_for_removal): Likewise.
8927 (swap_const_vector_halves): Likewise.
8928 (adjust_subreg_index): Likewise.
8929 (permute_load): Likewise.
8930 (permute_store): Likewise.
8931 (handle_special_swappables): Likewise.
8932 (replace_swap_with_copy): Likewise.
8933 (dump_swap_insn_table): Likewise.
8934 (rs6000_analyze_swaps): Likewise.
8935 (pass_data_analyze_swaps): New pass_data.
8936 (pass_analyze_swaps): New rtl_opt_pass.
8937 (make_pass_analyze_swaps): New function.
8938 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
8939
8940 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8941
8942 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
8943 type from rtx to rtx_insn *.
8944 (create_copy_of_insn_rtx): Likewise.
8945 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
8946 (create_copy_of_insn_rtx): Likewise, also for local "res".
8947
8948 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8949
8950 * rtl.h (find_first_parameter_load): Strengthen return type from
8951 rtx to rtx_insn *.
8952 * rtlanal.c (find_first_parameter_load): Strengthen return type
8953 from rtx to rtx_insn *. Add checked cast for now, to postpone
8954 strengthening the params.
8955
8956 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
8957
8958 PR fortran/44054
8959 * diagnostic.c: Set default caret.
8960 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
8961 line is needed.
8962 * diagnostic.h (struct diagnostic_context):
8963
8964 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8965
8966 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
8967 (sel_bb_head): Strengthen return type insn_t (currently just an
8968 rtx) to rtx_insn *.
8969 (sel_bb_end): Likewise.
8970
8971 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
8972 (sel_bb_head): Strengthen return type and local "head" from
8973 insn_t (currently just an rtx) to rtx_insn *.
8974 (sel_bb_end): Likewise for return type.
8975 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
8976 working with insn.
8977
8978 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8979
8980 * basic-block.h (get_last_bb_insn): Strengthen return type from
8981 rtx to rtx_insn *.
8982 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
8983 end".
8984
8985 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
8986
8987 PR fortran/44054
8988 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
8989 to here ...
8990 (diagnostic_report_diagnostic): ... from here.
8991 * toplev.c (general_init): Move code to c-family.
8992
8993 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8994
8995 * df.h (web_entry_base): Replace existing struct web_entry with a
8996 new class web_entry_base with only the predecessor member.
8997 (unionfind_root): Remove declaration and move to class member.
8998 (unionfind_union): Remove declaration and move to friend
8999 function.
9000 (union_defs): Remove declaration.
9001 * web.c (web_entry_base::unionfind_root): Modify to be member
9002 function and adjust accessors.
9003 (unionfind_union): Modify to be friend function and adjust
9004 accessors.
9005 (web_entry): New subclass of web_entry_base containing the reg
9006 member.
9007 (union_match_dups): Modify for struct -> class changes.
9008 (union_defs): Likewise.
9009 (entry_register): Likewise.
9010 (pass_web::execute): Likewise.
9011
9012 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
9013
9014 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
9015 builtin define __VEC_ELEMENT_REG_ORDER__.
9016
9017 2014-08-20 Martin Jambor <mjambor@suse.cz>
9018 Wei Mi <wmi@google.com>
9019
9020 PR ipa/60449
9021 PR middle-end/61776
9022 * tree-ssa-operands.c (update_stmt_operands): Remove
9023 MODIFIED_NORETURN_CALLS.
9024 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
9025 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
9026 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
9027 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
9028 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
9029 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
9030 (gimple_call_set_ctrl_altering): New func.
9031 (gimple_call_ctrl_altering_p): Ditto.
9032 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
9033 (make_blocks): Use gimple_call_initialize_ctrl_altering.
9034 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
9035 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
9036 remove MODIFIED_NORETURN_CALLS.
9037
9038 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
9039
9040 * coverage.c (coverage_compute_profile_id): Return non-0;
9041 also handle symbols with unique name.
9042 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
9043
9044 2014-08-20 Steve Ellcey <sellcey@mips.com>
9045
9046 PR middle-end/49191
9047 * doc/sourcebuild.texi (non_strict_align): New.
9048
9049 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
9050
9051 * cgraphunit.c (ipa_passes, compile): Reshedule
9052 symtab_remove_unreachable_nodes passes; update comments.
9053 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
9054 TODO_remove_functions before the pass; the functions ought to be
9055 already removed.
9056 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
9057 TODO_remove_functions.
9058 * passes.c (pass_data_early_local_passes): Do not schedule function
9059 removal.
9060 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
9061
9062 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9063
9064 PR c/59304
9065 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
9066 before setting the option.
9067 * diagnostic.c (diagnostic_classify_diagnostic): Record
9068 command-line status.
9069
9070 2014-08-20 Richard Biener <rguenther@suse.de>
9071
9072 PR lto/62190
9073 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
9074 to build uint{16,32,64}_type_node.
9075
9076 2014-08-20 Terry Guo <terry.guo@arm.com>
9077
9078 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
9079 with immediate_operand.
9080
9081 2014-08-20 David Malcolm <dmalcolm@redhat.com>
9082
9083 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
9084 "insn" from an as_a to a safe_as_a, for the case when "insn" is
9085 NULL.
9086
9087 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9088
9089 PR preprocessor/51303
9090 * incpath.c (remove_duplicates): Use cpp_warning.
9091
9092 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9093
9094 PR c/60975
9095 PR c/53063
9096 * doc/options.texi (CPP): Document it.
9097 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
9098 * optc-gen.awk: Handle CPP.
9099 * opth-gen.awk: Likewise.
9100
9101 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9102
9103 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
9104 rtx_insn *.
9105 (duplicate_insn_chain): Likewise.
9106 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
9107 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
9108 checked cast for now (until we can strengthen the params in the
9109 same way).
9110 (duplicate_insn_chain): Likewise.
9111
9112 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9113
9114 * rtl.h (next_cc0_user): Strengthen return type from rtx to
9115 rtx_insn *.
9116 (prev_cc0_setter): Likewise.
9117
9118 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
9119 rtx_insn *, adding checked casts for now as necessary.
9120 (prev_cc0_setter): Likewise.
9121
9122 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9123
9124 * expr.h (emit_move_insn): Strengthen return type from rtx to
9125 rtx_insn *.
9126 (emit_move_insn_1): Likewise.
9127 (emit_move_complex_push): Likewise.
9128 (emit_move_complex_parts): Likewise.
9129
9130 * expr.c (emit_move_via_integer): Strengthen return type from rtx
9131 to rtx_insn *. Replace use of NULL_RTX with NULL when working
9132 with insns.
9133 (emit_move_complex_push): Strengthen return type from rtx to
9134 rtx_insn *.
9135 (emit_move_complex): Likewise, also for local "ret".
9136 (emit_move_ccmode): Likewise.
9137 (emit_move_multi_word): Likewise for return type and locals
9138 "last_insn", "seq".
9139 (emit_move_insn_1): Likewise for return type and locals "result",
9140 "ret".
9141 (emit_move_insn): Likewise for return type and local "last_insn".
9142 (compress_float_constant): Likewise.
9143
9144 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9145
9146 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
9147 from rtx to rtx_insn *.
9148
9149 * rtl.h (emit_insn_before): Likewise.
9150 (emit_insn_before_noloc): Likewise.
9151 (emit_insn_before_setloc): Likewise.
9152 (emit_jump_insn_before): Likewise.
9153 (emit_jump_insn_before_noloc): Likewise.
9154 (emit_jump_insn_before_setloc): Likewise.
9155 (emit_call_insn_before): Likewise.
9156 (emit_call_insn_before_noloc): Likewise.
9157 (emit_call_insn_before_setloc): Likewise.
9158 (emit_debug_insn_before): Likewise.
9159 (emit_debug_insn_before_noloc): Likewise.
9160 (emit_debug_insn_before_setloc): Likewise.
9161 (emit_label_before): Likewise.
9162 (emit_insn_after): Likewise.
9163 (emit_insn_after_noloc): Likewise.
9164 (emit_insn_after_setloc): Likewise.
9165 (emit_jump_insn_after): Likewise.
9166 (emit_jump_insn_after_noloc): Likewise.
9167 (emit_jump_insn_after_setloc): Likewise.
9168 (emit_call_insn_after): Likewise.
9169 (emit_call_insn_after_noloc): Likewise.
9170 (emit_call_insn_after_setloc): Likewise.
9171 (emit_debug_insn_after): Likewise.
9172 (emit_debug_insn_after_noloc): Likewise.
9173 (emit_debug_insn_after_setloc): Likewise.
9174 (emit_label_after): Likewise.
9175 (emit_insn): Likewise.
9176 (emit_debug_insn): Likewise.
9177 (emit_jump_insn): Likewise.
9178 (emit_call_insn): Likewise.
9179 (emit_label): Likewise.
9180 (gen_clobber): Likewise.
9181 (emit_clobber): Likewise.
9182 (gen_use): Likewise.
9183 (emit_use): Likewise.
9184 (emit): Likewise.
9185
9186 (emit_barrier_before): Strengthen return type from rtx to
9187 rtx_barrier *.
9188 (emit_barrier_after): Likewise.
9189 (emit_barrier): Likewise.
9190
9191 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
9192 from rtx to rtx_insn *. Add checked casts for now when converting
9193 "last" from rtx to rtx_insn *.
9194 (emit_insn_before_noloc): Likewise for return type.
9195 (emit_jump_insn_before_noloc): Likewise.
9196 (emit_call_insn_before_noloc): Likewise.
9197 (emit_debug_insn_before_noloc): Likewise.
9198 (emit_barrier_before): Strengthen return type and local "insn"
9199 from rtx to rtx_barrier *.
9200 (emit_label_before): Strengthen return type from rtx to
9201 rtx_insn *. Add checked cast for now when returning param
9202 (emit_pattern_after_noloc): Strengthen return type from rtx to
9203 rtx_insn *. Add checked casts for now when converting "last" from
9204 rtx to rtx_insn *.
9205 (emit_insn_after_noloc): Strengthen return type from rtx to
9206 rtx_insn *.
9207 (emit_jump_insn_after_noloc): Likewise.
9208 (emit_call_insn_after_noloc): Likewise.
9209 (emit_debug_insn_after_noloc): Likewise.
9210 (emit_barrier_after): Strengthen return type from rtx to
9211 rtx_barrier *.
9212 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
9213 Add checked cast for now when converting "label" from rtx to
9214 rtx_insn *.
9215 (emit_pattern_after_setloc): Strengthen return type from rtx to
9216 rtx_insn *. Add checked casts for now when converting "last" from
9217 rtx to rtx_insn *.
9218 (emit_pattern_after): Strengthen return type from rtx to
9219 rtx_insn *.
9220 (emit_insn_after_setloc): Likewise.
9221 (emit_insn_after): Likewise.
9222 (emit_jump_insn_after_setloc): Likewise.
9223 (emit_jump_insn_after): Likewise.
9224 (emit_call_insn_after_setloc): Likewise.
9225 (emit_call_insn_after): Likewise.
9226 (emit_debug_insn_after_setloc): Likewise.
9227 (emit_debug_insn_after): Likewise.
9228 (emit_pattern_before_setloc): Likewise. Add checked casts for now
9229 when converting "last" from rtx to rtx_insn *.
9230 (emit_pattern_before): Strengthen return type from rtx to
9231 rtx_insn *.
9232 (emit_insn_before_setloc): Likewise.
9233 (emit_insn_before): Likewise.
9234 (emit_jump_insn_before_setloc): Likewise.
9235 (emit_jump_insn_before): Likewise.
9236 (emit_call_insn_before_setloc): Likewise.
9237 (emit_call_insn_before): Likewise.
9238 (emit_debug_insn_before_setloc): Likewise.
9239 (emit_debug_insn_before): Likewise.
9240 (emit_insn): Strengthen return type and locals "last", "insn",
9241 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
9242 within cases where we know we have an insn.
9243 (emit_debug_insn): Likewise.
9244 (emit_jump_insn): Likewise.
9245 (emit_call_insn): Strengthen return type and local "insn" from rtx
9246 to rtx_insn *.
9247 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
9248 a checked cast to rtx_insn * for now on "label".
9249 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
9250 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
9251 (emit_use): Likewise.
9252 (gen_use): Likewise, also for local "seq".
9253 (emit): Likewise for return type and local "insn".
9254 (rtx_insn): Likewise for return type and local "new_rtx".
9255
9256 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
9257 from rtx to rtx_barrier *.
9258
9259 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
9260 changed return type from rtx to rtx_insn *, we must update
9261 "emit_fn" type, and this in turn means updating...
9262 (frame_insn): ...this. Strengthen return type from rtx to
9263 rtx_insn *. Introduce a new local "insn" of the appropriate type.
9264
9265 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9266
9267 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
9268 rtx to rtx_jump_table_data *. Also for local.
9269 * rtl.h (emit_jump_table_data): Likewise.
9270
9271 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9272
9273 * basic-block.h (create_basic_block_structure): Strengthen third
9274 param "bb_note" from rtx to rtx_note *.
9275 * rtl.h (emit_note_before): Strengthen return type from rtx to
9276 rtx_note *.
9277 (emit_note_after): Likewise.
9278 (emit_note): Likewise.
9279 (emit_note_copy): Likewise. Also, strengthen param similarly.
9280 * function.h (struct rtl_data): Strengthen field
9281 "x_stack_check_probe_note" from rtx to rtx_note *.
9282
9283 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
9284 from rtx to rtx_note *.
9285 * cfgrtl.c (create_basic_block_structure): Strengthen third param
9286 "bb_note" from rtx to rtx_note *.
9287 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
9288 when calling emit_note_copy.
9289 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
9290 rtx_note *.
9291 (emit_note_after): Likewise.
9292 (emit_note_before): Likewise.
9293 (emit_note_copy): Likewise. Also, strengthen param similarly.
9294 (emit_note): Likewise.
9295 * except.c (emit_note_eh_region_end): Likewise for return type.
9296 Strengthen local "next" from rtx to rtx_insn *.
9297 (convert_to_eh_region_ranges): Strengthen local "note"
9298 from rtx to rtx_note *.
9299 * final.c (change_scope): Likewise.
9300 (reemit_insn_block_notes): Likewise, for both locals named "note".
9301 Also, strengthen local "insn" from rtx to rtx_insn *.
9302 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
9303 rtx to rtx_note *.
9304 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
9305 strengthen local "seq" from rtx to rtx_insn *.
9306 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
9307 to rtx_note *.
9308 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
9309 vec<rtx_note *>.
9310 (get_bb_note_from_pool): Strengthen return type from rtx to
9311 rtx_note *.
9312 (sel_create_basic_block): Strengthen local "new_bb_note" from
9313 insn_t to rtx_note *.
9314 * var-tracking.c (emit_note_insn_var_location): Strengthen local
9315 "note" from rtx to rtx_note *.
9316 (emit_notes_in_bb): Likewise.
9317
9318 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9319
9320 * function.h (struct rtl_data): Strengthen field
9321 "x_parm_birth_insn" from rtx to rtx_insn *.
9322 * function.c (struct assign_parm_data_all): Strengthen fields
9323 "first_conversion_insn" and "last_conversion_insn" from rtx to
9324 rtx_insn *.
9325
9326 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9327
9328 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
9329 to rtx_insn *; also for local "var_end_seq".
9330 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
9331 (maybe_cleanup_end_of_block): Likewise for param "last" and local
9332 "insn".
9333 (expand_gimple_cond): Likewise for locals "last2" and "last".
9334 (mark_transaction_restart_calls): Likewise for local "insn".
9335 (expand_gimple_stmt): Likewise for return type and locals "last"
9336 and "insn".
9337 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
9338 (avoid_complex_debug_insns): Likewise for param "insn".
9339 (expand_debug_locations): Likewise for locals "insn", "last",
9340 "prev_insn" and "insn2".
9341 (expand_gimple_basic_block): Likewise for local "last".
9342 (construct_exit_block): Likewise for locals "head", "end",
9343 "orig_end".
9344 (pass_expand::execute): Likewise for locals "var_seq",
9345 "var_ret_seq", "next".
9346
9347 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9348
9349 * asan.h (asan_emit_stack_protection): Strengthen return type from
9350 rtx to rtx_insn *.
9351 * asan.c (asan_emit_stack_protection): Likewise. Add local
9352 "insns" to hold the return value.
9353
9354 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9355
9356 * basic-block.h (bb_note): Strengthen return type from rtx to
9357 rtx_note *.
9358 * sched-int.h (bb_note): Likewise.
9359 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
9360
9361 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9362
9363 * rtl.h (make_insn_raw): Strengthen return type from rtx to
9364 rtx_insn *.
9365
9366 * emit-rtl.c (make_insn_raw): Strengthen return type and local
9367 "insn" from rtx to rtx_insn *.
9368 (make_debug_insn_raw): Strengthen return type from rtx to
9369 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
9370 (make_jump_insn_raw): Strengthen return type from rtx to
9371 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
9372 (make_call_insn_raw): Strengthen return type from rtx to
9373 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
9374 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
9375 callback from rtx to rtx_insn *; likewise for local "insn" and
9376 "next", adding a checked cast to rtx_insn in the relevant cases of
9377 the switch statement.
9378 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
9379 callback from rtx to rtx_insn *.
9380 (emit_pattern_after_setloc): Likewise.
9381 (emit_pattern_after): Likewise.
9382 (emit_pattern_before_setloc): Likewise.
9383 (emit_pattern_before): Likewise.
9384
9385 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9386
9387 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
9388 rtx_call_insn *.
9389 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
9390 accepting an rtx_insn *.
9391 (last_call_insn): Strengthen return type from rtx to
9392 rtx_call_insn *.
9393
9394 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9395
9396 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
9397 "insns" from rtx to rtx_insn *.
9398 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
9399 locals "insn" and "prev".
9400
9401 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9402
9403 * rtl.h (tablejump_p): Strengthen third param from rtx * to
9404 rtx_jump_table_data **.
9405
9406 * cfgbuild.c (make_edges): Introduce local "table", using it in
9407 place of "tmp" for jump table data.
9408 (find_bb_boundaries): Strengthen local "table" from rtx to
9409 rtx_jump_table_data *.
9410 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9411 (outgoing_edges_match): Likewise for locals "table1" and "table2".
9412 (try_crossjump_to_edge): Likewise.
9413 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
9414 "table".
9415 (patch_jump_insn): Introduce local "table", using it in place of
9416 "tmp" for jump table data.
9417 (force_nonfallthru_and_redirect): Introduce local "table", so that
9418 call to tablejump_p can receive an rtx_jump_table_data **. Update
9419 logic around the call to overwrite "note" appropriately if
9420 tablejump_p returns non-zero.
9421 (get_last_bb_insn): Introduce local "table", using it in place of
9422 "tmp" for jump table data.
9423 * dwarf2cfi.c (create_trace_edges): Likewise.
9424
9425 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
9426 from rtx to rtx_jump_table_data *.
9427 (create_fix_barrier): Strengthen local "tmp" from rtx to
9428 rtx_jump_table_data *.
9429 (arm_reorg): Likewise for local "table".
9430
9431 * config/s390/s390.c (s390_chunkify_start): Likewise.
9432
9433 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
9434
9435 * jump.c (delete_related_insns): Strengthen local "lab_next" from
9436 rtx to rtx_jump_table_data *.
9437
9438 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
9439 rtx_jump_table_data **. Add a checked cast when writing through
9440 the pointer: we know there that local "table" is non-NULL and that
9441 JUMP_TABLE_DATA_P (table) holds.
9442 (label_is_jump_target_p): Introduce local "table", using it in
9443 place of "tmp" for jump table data.
9444
9445 2014-08-19 Marek Polacek <polacek@redhat.com>
9446
9447 PR c++/62153
9448 * doc/invoke.texi: Document -Wbool-compare.
9449
9450 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9451
9452 * rtl.h (entry_of_function): Strengthen return type from rtx to
9453 rtx_insn *.
9454 * cfgrtl.c (entry_of_function): Likewise.
9455
9456 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9457
9458 * emit-rtl.h (get_insns): Strengthen return type from rtx to
9459 rtx_insn *, adding a checked cast for now.
9460 (get_last_insn): Likewise.
9461
9462 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9463
9464 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
9465 rtx_code_label *.
9466
9467 * emit-rtl.c (gen_label_rtx): Likewise.
9468
9469 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9470
9471 * rtl.h (previous_insn): Strengthen return type from rtx to
9472 rtx_insn *.
9473 (next_insn): Likewise.
9474 (prev_nonnote_insn): Likewise.
9475 (prev_nonnote_insn_bb): Likewise.
9476 (next_nonnote_insn): Likewise.
9477 (next_nonnote_insn_bb): Likewise.
9478 (prev_nondebug_insn): Likewise.
9479 (next_nondebug_insn): Likewise.
9480 (prev_nonnote_nondebug_insn): Likewise.
9481 (next_nonnote_nondebug_insn): Likewise.
9482 (prev_real_insn): Likewise.
9483 (next_real_insn): Likewise.
9484 (prev_active_insn): Likewise.
9485 (next_active_insn): Likewise.
9486
9487 * emit-rtl.c (next_insn): Strengthen return type from rtx to
9488 rtx_insn *, adding a checked cast.
9489 (previous_insn): Likewise.
9490 (next_nonnote_insn): Likewise.
9491 (next_nonnote_insn_bb): Likewise.
9492 (prev_nonnote_insn): Likewise.
9493 (prev_nonnote_insn_bb): Likewise.
9494 (next_nondebug_insn): Likewise.
9495 (prev_nondebug_insn): Likewise.
9496 (next_nonnote_nondebug_insn): Likewise.
9497 (prev_nonnote_nondebug_insn): Likewise.
9498 (next_real_insn): Likewise.
9499 (prev_real_insn): Likewise.
9500 (next_active_insn): Likewise.
9501 (prev_active_insn): Likewise.
9502
9503 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
9504 param "stepfunc" so that it returns an rtx_insn * rather than an
9505 rtx, to track the change to prev_nonnote_insn_bb, which is the
9506 only function this is called with.
9507 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
9508
9509 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
9510
9511 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
9512 assert.
9513
9514 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9515
9516 * coretypes.h (class rtx_debug_insn): Add forward declaration.
9517 (class rtx_nonjump_insn): Likewise.
9518 (class rtx_jump_insn): Likewise.
9519 (class rtx_call_insn): Likewise.
9520 (class rtx_jump_table_data): Likewise.
9521 (class rtx_barrier): Likewise.
9522 (class rtx_code_label): Likewise.
9523 (class rtx_note): Likewise.
9524
9525 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
9526 adding the invariant DEBUG_INSN_P (X).
9527 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
9528 the invariant NONJUMP_INSN_P (X).
9529 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
9530 the invariant JUMP_P (X).
9531 (class rtx_call_insn): New, a subclass of rtx_insn, adding
9532 the invariant CALL_P (X).
9533 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
9534 invariant JUMP_TABLE_DATA_P (X).
9535 (class rtx_barrier): New, a subclass of rtx_insn, adding the
9536 invariant BARRIER_P (X).
9537 (class rtx_code_label): New, a subclass of rtx_insn, adding
9538 the invariant LABEL_P (X).
9539 (class rtx_note): New, a subclass of rtx_insn, adding
9540 the invariant NOTE_P(X).
9541 (is_a_helper <rtx_debug_insn *>::test): New.
9542 (is_a_helper <rtx_nonjump_insn *>::test): New.
9543 (is_a_helper <rtx_jump_insn *>::test): New.
9544 (is_a_helper <rtx_call_insn *>::test): New.
9545 (is_a_helper <rtx_jump_table_data *>::test): New functions,
9546 overloaded for both rtx and rtx_insn *.
9547 (is_a_helper <rtx_barrier *>::test): New.
9548 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
9549 for both rtx and rtx_insn *.
9550 (is_a_helper <rtx_note *>::test): New.
9551
9552 2014-08-19 Marek Polacek <polacek@redhat.com>
9553
9554 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
9555 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9556 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
9557 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9558
9559 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9560
9561 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
9562 rtx_insn *. To help with transition, for now, convert from an
9563 access macro into a pair of functions: BND_TO, returning an
9564 rtx_insn *, and...
9565 (SET_BND_TO): New function, for use where BND_TO is used as an
9566 lvalue.
9567
9568 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
9569 SET_BND_TO.
9570 (BND_TO): New function, adding a checked cast.
9571 (SET_BND_TO): New function.
9572
9573 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
9574 SET_BND_TO.
9575 (compute_av_set_on_boundaries): Likewise.
9576
9577 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
9578
9579 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
9580 destination if it is used in source.
9581 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
9582 (*popcount<mode>2_falsedep_1): Likewise.
9583
9584 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
9585
9586 PR other/62168
9587 * configure.ac: Set install_gold_as_default to no first.
9588 * configure: Regenerated.
9589
9590 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9591
9592 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
9593 "note_list" field will eventually be an rtx_insn *. To help with
9594 transition, for now, convert from an access macro into a pair of
9595 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
9596 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
9597 used as an lvalue.
9598
9599 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
9600 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
9601
9602 * sel-sched-ir.c (init_bb): Likewise.
9603 (sel_restore_notes): Likewise.
9604 (move_bb_info): Likewise.
9605 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
9606 (SET_BB_NOTE_LIST): New function.
9607
9608 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9609
9610 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
9611 field will eventually be an rtx_insn *. To help with transition,
9612 for now, convert from an access macro into a pair of functions:
9613 VINSN_INSN_RTX, returning an rtx_insn *, and...
9614 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
9615 is used as an lvalue.
9616
9617 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
9618 SET_VINSN_INSN_RTX where it's used as an lvalue.
9619 (VINSN_INSN_RTX): New function.
9620 (SET_VINSN_INSN_RTX): New function.
9621
9622 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9623
9624 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
9625 eventually be rtx_insn *, but to help with transition, for now,
9626 convert from an access macro into a pair of functions: DEP_PRO
9627 returning an rtx_insn * and...
9628 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
9629 lvalue, returning an rtx&.
9630 (DEP_CON): Analogous changes to DEP_PRO above.
9631 (SET_DEP_CON): Likewise.
9632
9633 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
9634 an lvalue to SET_DEP_CON.
9635 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
9636 (sd_copy_back_deps): Likewise for DEP_CON.
9637 (DEP_PRO): New function, adding a checked cast for now.
9638 (DEP_CON): Likewise.
9639 (SET_DEP_PRO): New function.
9640 (SET_DEP_CON): Likewise.
9641
9642 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
9643
9644 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
9645 (extra_options): Add i386/cygwin.opt.
9646 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
9647 (CPP_SPEC): Accept -pthread.
9648 (LINK_SPEC): Ditto.
9649 (GOMP_SELF_SPECS): Update comment.
9650 * config/i386/cygwin.opt: New file for -pthread flag.
9651
9652 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9653
9654 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
9655 * df.h (DF_REF_INSN): Convert from a macro to a function, so
9656 that we can return an rtx_insn *.
9657
9658 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
9659
9660 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
9661 when building executables, not DLLs. Add --large-address-aware
9662 under the same conditions.
9663 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
9664 when building executables, not DLLs. Add --large-address-aware
9665 under the same conditions when using -m32.
9666
9667 * config/i386/cygwin-stdint.h: Throughout, make type
9668 definitions dependent on target architecture, not host.
9669
9670 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9671
9672 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
9673 the return type from rtx to rtx_insn *, which will enable various
9674 conversions in followup patches. For now this is is done by a
9675 checked cast.
9676 (NEXT_INSN): Likewise.
9677 (SET_PREV_INSN): Convert to an inline function. This is intended
9678 for use as an lvalue, and so returns an rtx& to allow in-place
9679 modification.
9680 (SET_NEXT_INSN): Likewise.
9681
9682 2014-07-08 Mark Wielaard <mjw@redhat.com>
9683
9684 PR debug/59051
9685 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
9686
9687 2014-08-19 Marek Polacek <polacek@redhat.com>
9688
9689 PR c/61271
9690 * cgraphunit.c (handle_alias_pairs): Fix condition.
9691
9692 2014-08-19 Richard Biener <rguenther@suse.de>
9693
9694 * gimple-fold.c (fold_gimple_assign): Properly build a
9695 null-pointer constant when devirtualizing addresses.
9696
9697 2014-07-07 Mark Wielaard <mjw@redhat.com>
9698
9699 * dwarf2out.c (decl_quals): New function.
9700 (modified_type_die): Take one cv_quals argument instead of two,
9701 one for const and one for volatile.
9702 (add_type_attribute): Likewise.
9703 (generic_parameter_die): Call add_type_attribute with one modifier
9704 argument.
9705 (base_type_for_mode): Likewise.
9706 (add_bounds_info): Likewise.
9707 (add_subscript_info): Likewise.
9708 (gen_array_type_die): Likewise.
9709 (gen_descr_array_type_die): Likewise.
9710 (gen_entry_point_die): Likewise.
9711 (gen_enumeration_type_die): Likewise.
9712 (gen_formal_parameter_die): Likewise.
9713 (gen_subprogram_die): Likewise.
9714 (gen_variable_die): Likewise.
9715 (gen_const_die): Likewise.
9716 (gen_field_die): Likewise.
9717 (gen_pointer_type_die): Likewise.
9718 (gen_reference_type_die): Likewise.
9719 (gen_ptr_to_mbr_type_die): Likewise.
9720 (gen_inheritance_die): Likewise.
9721 (gen_subroutine_type_die): Likewise.
9722 (gen_typedef_die): Likewise.
9723 (force_type_die): Likewise.
9724
9725 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9726
9727 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
9728 if unset.
9729 * configure: Regenerate.
9730
9731 2014-08-19 Richard Biener <rguenther@suse.de>
9732
9733 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
9734 DECL_EXTERNALs in BLOCKs as non-references.
9735 * tree-streamer-out.c (streamer_write_chain): Likewise.
9736
9737 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
9738 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9739 Anna Tikhonova <anna.tikhonova@intel.com>
9740 Ilya Tocar <ilya.tocar@intel.com>
9741 Andrey Turetskiy <andrey.turetskiy@intel.com>
9742 Ilya Verbin <ilya.verbin@intel.com>
9743 Kirill Yukhin <kirill.yukhin@intel.com>
9744 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9745
9746 * config/i386/sse.md
9747 (define_mode_iterator VI48_AVX512F): Delete.
9748 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
9749 (define_mode_iterator VI2_AVX512VL): Ditto.
9750 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
9751 Delete.
9752 (define_insn
9753 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
9754 New.
9755 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
9756 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
9757 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
9758 with VI48_AVX512F_AVX512VL): New.
9759 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
9760 with VI2_AVX512VL): Ditto.
9761
9762 2014-08-19 Marek Polacek <polacek@redhat.com>
9763
9764 * doc/invoke.texi: Document -Wc99-c11-compat.
9765
9766 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9767
9768 * rtl.h (PREV_INSN): Split macro in two: the existing one,
9769 for rvalues, and...
9770 (SET_PREV_INSN): New macro, for use as an lvalue.
9771 (NEXT_INSN, SET_NEXT_INSN): Likewise.
9772
9773 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
9774 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
9775 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
9776 (fixup_abnormal_edges): Likewise.
9777 (unlink_insn_chain): Likewise.
9778 (fixup_reorder_chain): Likewise.
9779 (cfg_layout_delete_block): Likewise.
9780 (cfg_layout_merge_blocks): Likewise.
9781 * combine.c (update_cfg_for_uncondjump): Likewise.
9782 * emit-rtl.c (link_insn_into_chain): Likewise.
9783 (remove_insn): Likewise.
9784 (delete_insns_since): Likewise.
9785 (reorder_insns_nobb): Likewise.
9786 (emit_insn_after_1): Likewise.
9787 * final.c (rest_of_clean_state): Likewise.
9788 (final_scan_insn): Likewise.
9789 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
9790 * haifa-sched.c (concat_note_lists): Likewise.
9791 (remove_notes): Likewise.
9792 (restore_other_notes): Likewise.
9793 (move_insn): Likewise.
9794 (unlink_bb_notes): Likewise.
9795 (restore_bb_notes): Likewise.
9796 * jump.c (delete_for_peephole): Likewise.
9797 * optabs.c (emit_libcall_block_1): Likewise.
9798 * reorg.c (emit_delay_sequence): Likewise.
9799 (fill_simple_delay_slots): Likewise.
9800 * sel-sched-ir.c (sel_move_insn): Likewise.
9801 (sel_remove_insn): Likewise.
9802 (get_bb_note_from_pool): Likewise.
9803 * sel-sched.c (move_nop_to_previous_block): Likewise.
9804
9805 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
9806 * config/c6x/c6x.c (gen_one_bundle): Likewise.
9807 (c6x_gen_bundles): Likewise.
9808 (hwloop_optimize): Likewise.
9809 * config/frv/frv.c (frv_function_prologue): Likewise.
9810 (frv_register_nop): Likewise.
9811 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
9812 (ia64_reorg): Likewise.
9813 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
9814 (mep_make_bundle): Likewise.
9815 (mep_bundle_insns): Likewise.
9816 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
9817 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
9818 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
9819
9820 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9821
9822 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
9823 return type from rtx to rtx_insn *.
9824 (BB_END): Likewise.
9825 (BB_HEADER): Likewise.
9826 (BB_FOOTER): Likewise.
9827 (SET_BB_HEAD): Convert to a function.
9828 (SET_BB_END): Likewise.
9829 (SET_BB_HEADER): Likewise.
9830 (SET_BB_FOOTER): Likewise.
9831
9832 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
9833 Strengthen the return type from rtx to rtx_insn *. For now, this
9834 is done by adding a checked cast, but this will eventually
9835 become a field lookup.
9836 (BB_END): Likewise.
9837 (BB_HEADER): Likewise.
9838 (BB_FOOTER): Likewise.
9839 (SET_BB_HEAD): New function, from macro of same name. This is
9840 intended for use as an lvalue, and so returns an rtx& to allow
9841 in-place modification.
9842 (SET_BB_END): Likewise.
9843 (SET_BB_HEADER): Likewise.
9844 (SET_BB_FOOTER): Likewise.
9845
9846 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9847
9848 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
9849 for rvalues, and...
9850 (SET_BB_HEAD): New macro, for use as a lvalue.
9851 (BB_END, SET_BB_END): Likewise.
9852 (BB_HEADER, SET_BB_HEADER): Likewise.
9853 (BB_FOOTER, SET_BB_FOOTER): Likewise.
9854
9855 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
9856 of BB_* macros into SET_BB_* macros.
9857 (fix_crossing_unconditional_branches): Likewise.
9858 * caller-save.c (save_call_clobbered_regs): Likewise.
9859 (insert_one_insn): Likewise.
9860 * cfgbuild.c (find_bb_boundaries): Likewise.
9861 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9862 (outgoing_edges_match): Likewise.
9863 (try_optimize_cfg): Likewise.
9864 * cfgexpand.c (expand_gimple_cond): Likewise.
9865 (expand_gimple_tailcall): Likewise.
9866 (expand_gimple_basic_block): Likewise.
9867 (construct_exit_block): Likewise.
9868 * cfgrtl.c (delete_insn): Likewise.
9869 (create_basic_block_structure): Likewise.
9870 (rtl_delete_block): Likewise.
9871 (rtl_split_block): Likewise.
9872 (emit_nop_for_unique_locus_between): Likewise.
9873 (rtl_merge_blocks): Likewise.
9874 (block_label): Likewise.
9875 (try_redirect_by_replacing_jump): Likewise.
9876 (emit_barrier_after_bb): Likewise.
9877 (fixup_abnormal_edges): Likewise.
9878 (record_effective_endpoints): Likewise.
9879 (relink_block_chain): Likewise.
9880 (fixup_reorder_chain): Likewise.
9881 (fixup_fallthru_exit_predecessor): Likewise.
9882 (cfg_layout_duplicate_bb): Likewise.
9883 (cfg_layout_split_block): Likewise.
9884 (cfg_layout_delete_block): Likewise.
9885 (cfg_layout_merge_blocks): Likewise.
9886 * combine.c (update_cfg_for_uncondjump): Likewise.
9887 * emit-rtl.c (add_insn_after): Likewise.
9888 (remove_insn): Likewise.
9889 (reorder_insns): Likewise.
9890 (emit_insn_after_1): Likewise.
9891 * haifa-sched.c (get_ebb_head_tail): Likewise.
9892 (restore_other_notes): Likewise.
9893 (move_insn): Likewise.
9894 (sched_extend_bb): Likewise.
9895 (fix_jump_move): Likewise.
9896 * ifcvt.c (noce_process_if_block): Likewise.
9897 (dead_or_predicable): Likewise.
9898 * ira.c (update_equiv_regs): Likewise.
9899 * reg-stack.c (change_stack): Likewise.
9900 * sel-sched-ir.c (sel_move_insn): Likewise.
9901 * sel-sched.c (move_nop_to_previous_block): Likewise.
9902
9903 * config/c6x/c6x.c (hwloop_optimize): Likewise.
9904 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
9905
9906 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9907
9908 * rtl.h (for_each_rtx_in_insn): New function.
9909 * rtlanal.c (for_each_rtx_in_insn): Likewise.
9910
9911 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9912
9913 * coretypes.h (class rtx_insn): Add forward declaration.
9914
9915 * rtl.h: Include is-a.h.
9916 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
9917 workaround to ensure gengtype knows inheritance is occurring,
9918 whilst continuing to use the pre-existing special-casing for
9919 rtx_def.
9920 (class rtx_insn): New subclass of rtx_def, adding the
9921 invariant that we're dealing with something we can sanely use
9922 INSN_UID, NEXT_INSN, PREV_INSN on.
9923 (is_a_helper <rtx_insn *>::test): New.
9924 (is_a_helper <const rtx_insn *>::test): New.
9925
9926 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9927
9928 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
9929
9930 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
9931
9932 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
9933 comdats as extern.
9934
9935 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
9936
9937 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
9938 to BUILT_IN_UNREACHABLE.
9939
9940 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
9941
9942 PR target/62011
9943 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
9944 New tune flag.
9945 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
9946 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
9947 (ffs<mode>2): Do not expand with tzcnt for
9948 TARGET_AVOID_FALSE_DEP_FOR_BMI.
9949 (ffssi2_no_cmove): Ditto.
9950 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
9951 (ctz<mode>2): New expander.
9952 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
9953 (*ctz<mode>2_falsedep): New insn.
9954 (*ctz<mode>2): Rename from ctz<mode>2.
9955 (clz<mode>2_lzcnt): New expander.
9956 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
9957 (*clz<mode>2_lzcnt_falsedep): New insn.
9958 (*clz<mode>2): Rename from ctz<mode>2.
9959 (popcount<mode>2): New expander.
9960 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
9961 (*popcount<mode>2_falsedep): New insn.
9962 (*popcount<mode>2): Rename from ctz<mode>2.
9963 (*popcount<mode>2_cmp): Remove.
9964 (*popcountsi2_cmp_zext): Ditto.
9965
9966 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
9967
9968 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
9969 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
9970 * config/microblaze/microblaze.h
9971 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
9972
9973 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
9974
9975 PR other/62168
9976 * configure.ac: Set install_gold_as_default to no for
9977 --enable-gold=no.
9978 * configure: Regenerated.
9979
9980 2014-08-18 Roman Gareev <gareevroman@gmail.com>
9981
9982 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
9983 * config.in: Add undef of HAVE_isl.
9984 * configure: Regenerate.
9985 * configure.ac: Add definition of HAVE_isl.
9986 * graphite-blocking.c: Add checking of HAVE_isl.
9987 * graphite-dependences.c: Likewise.
9988 * graphite-interchange.c: Likewise.
9989 * graphite-isl-ast-to-gimple.c: Likewise.
9990 * graphite-optimize-isl.c: Likewise.
9991 * graphite-poly.c: Likewise.
9992 * graphite-scop-detection.c: Likewise.
9993 * graphite-sese-to-poly.c: Likewise.
9994 * graphite.c: Likewise.
9995 * toplev.c: Replace the checking of HAVE_cloog with the checking
9996 of HAVE_isl.
9997
9998 2014-08-18 Richard Biener <rguenther@suse.de>
9999
10000 PR tree-optimization/62090
10001 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
10002 (fold_builtin_3): Do not fold snprintf.
10003 (fold_builtin_4): Likewise.
10004 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
10005 moved from builtins.c.
10006 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
10007 (gimple_fold_builtin): Do not fold sprintf here.
10008
10009 2014-08-18 Richard Biener <rguenther@suse.de>
10010
10011 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
10012 code to ...
10013 (maybe_canonicalize_mem_ref_addr): ... this function.
10014 (fold_stmt_1): Apply it here before all simplification.
10015
10016 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
10017
10018 PR ipa/61800
10019 * cgraph.h (cgraph_node::create_indirect_edge): Add
10020 compute_indirect_info param.
10021 * cgraph.c (cgraph_node::create_indirect_edge): Compute
10022 indirect_info only when it is required.
10023 * cgraphclones.c (cgraph_clone_edge): Do not recompute
10024 indirect_info fore cloned indirect edge.
10025
10026 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10027 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10028 Anna Tikhonova <anna.tikhonova@intel.com>
10029 Ilya Tocar <ilya.tocar@intel.com>
10030 Andrey Turetskiy <andrey.turetskiy@intel.com>
10031 Ilya Verbin <ilya.verbin@intel.com>
10032 Kirill Yukhin <kirill.yukhin@intel.com>
10033 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10034
10035 * config/i386/sse.md
10036 (define_mode_iterator VI8_AVX2_AVX512BW): New.
10037 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
10038
10039 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10040 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10041 Anna Tikhonova <anna.tikhonova@intel.com>
10042 Ilya Tocar <ilya.tocar@intel.com>
10043 Andrey Turetskiy <andrey.turetskiy@intel.com>
10044 Ilya Verbin <ilya.verbin@intel.com>
10045 Kirill Yukhin <kirill.yukhin@intel.com>
10046 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10047
10048 * config/i386/sse.md
10049 (define_mode_iterator VF1_AVX512VL): New.
10050 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
10051 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
10052 New.
10053
10054 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10055 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10056 Anna Tikhonova <anna.tikhonova@intel.com>
10057 Ilya Tocar <ilya.tocar@intel.com>
10058 Andrey Turetskiy <andrey.turetskiy@intel.com>
10059 Ilya Verbin <ilya.verbin@intel.com>
10060 Kirill Yukhin <kirill.yukhin@intel.com>
10061 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10062
10063 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
10064 * config/i386/i386.md
10065 (define_code_iterator any_float): New.
10066 (define_code_attr floatsuffix): New.
10067 * config/i386/sse.md
10068 (define_mode_iterator VF1_128_256VL): New.
10069 (define_mode_iterator VF2_512_256VL): New.
10070 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
10071 TARGET check.
10072 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
10073 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
10074 New.
10075 (define_mode_attr qq2pssuff): New.
10076 (define_mode_attr sselongvecmode): New.
10077 (define_mode_attr sselongvecmodelower): New.
10078 (define_mode_attr sseintvecmode3): New.
10079 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
10080 New.
10081 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
10082 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
10083 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
10084 (define_insn "ufloatv2siv2df2<mask_name>"): New.
10085
10086 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10087 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10088 Anna Tikhonova <anna.tikhonova@intel.com>
10089 Ilya Tocar <ilya.tocar@intel.com>
10090 Andrey Turetskiy <andrey.turetskiy@intel.com>
10091 Ilya Verbin <ilya.verbin@intel.com>
10092 Kirill Yukhin <kirill.yukhin@intel.com>
10093 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10094
10095 * config/i386/sse.md
10096 (define_mode_iterator VF2_AVX512VL): New.
10097 (define_mode_attr sseintvecmode2): New.
10098 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
10099 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
10100 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
10101 (define_insn
10102 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
10103 Ditto.
10104 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
10105 Ditto.
10106 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
10107 Ditto.
10108
10109 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10110 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10111 Anna Tikhonova <anna.tikhonova@intel.com>
10112 Ilya Tocar <ilya.tocar@intel.com>
10113 Andrey Turetskiy <andrey.turetskiy@intel.com>
10114 Ilya Verbin <ilya.verbin@intel.com>
10115 Kirill Yukhin <kirill.yukhin@intel.com>
10116 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10117
10118 * config/i386/i386.md
10119 (define_insn "*movoi_internal_avx"): Add evex version.
10120 (define_insn "*movti_internal"): Ditto.
10121
10122 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10123 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10124 Anna Tikhonova <anna.tikhonova@intel.com>
10125 Ilya Tocar <ilya.tocar@intel.com>
10126 Andrey Turetskiy <andrey.turetskiy@intel.com>
10127 Ilya Verbin <ilya.verbin@intel.com>
10128 Kirill Yukhin <kirill.yukhin@intel.com>
10129 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10130
10131 * config/i386/i386.md
10132 (define_attr "isa"): Add avx512dq, noavx512dq.
10133 (define_attr "enabled"): Ditto.
10134 * config/i386/sse.md
10135 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
10136
10137 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10138 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10139 Anna Tikhonova <anna.tikhonova@intel.com>
10140 Ilya Tocar <ilya.tocar@intel.com>
10141 Andrey Turetskiy <andrey.turetskiy@intel.com>
10142 Ilya Verbin <ilya.verbin@intel.com>
10143 Kirill Yukhin <kirill.yukhin@intel.com>
10144 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10145
10146 * config/i386/i386.c
10147 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
10148 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
10149 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
10150 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
10151 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
10152 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
10153 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
10154 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
10155 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
10156 * config/i386/sse.md
10157 (define_mode_iterator VMOVE): Allow V4TI mode.
10158 (define_mode_iterator V_AVX512VL): New.
10159 (define_mode_iterator V): New handling for AVX512VL.
10160 (define_insn "avx512f_load<mode>_mask"): Delete.
10161 (define_insn "<avx512>_load<mode>_mask"): New.
10162 (define_insn "avx512f_store<mode>_mask"): Delete.
10163 (define_insn "<avx512>_store<mode>_mask"): New.
10164
10165
10166 2014-08-18 Yury Gribov <y.gribov@samsung.com>
10167
10168 PR sanitizer/62089
10169 * asan.c (instrument_derefs): Fix bitfield check.
10170
10171 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10172
10173 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
10174 * config/rs6000/htm.md (ttest): Remove clobber.
10175 * config/rs6000/predicates.md (any_mask_operand): New predicate.
10176 (and_operand): Reformat.
10177 (and_2rld_operand): New predicate.
10178 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
10179 parameter.
10180 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
10181 parameter. Handle AND directly.
10182 (rs6000_split_logical_di): Remove last parameter.
10183 (rs6000_split_logical): Remove last parameter. Remove obsolete
10184 comment.
10185 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
10186 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
10187 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
10188 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
10189 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
10190 and 5 anonymous splitters): Delete.
10191 (and<mode>3): New expander.
10192 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
10193 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
10194 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
10195 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
10196 (floatdisf2_internal1): Remove clobbers.
10197 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
10198 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
10199 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
10200 (and<mode>3 for BOOL_128): Remove clobber.
10201 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
10202 rs6000_split_logical.
10203 (*bool<mode>3_internal for BOOL_128): Adjust call of
10204 rs6000_split_logical.
10205 (*boolc<mode>3_internal1 for BOOL_128,
10206 *boolc<mode>3_internal2 for BOOL_128,
10207 *boolcc<mode>3_internal1 for BOOL_128,
10208 *boolcc<mode>3_internal2 for BOOL_128,
10209 *eqv<mode>3_internal1 for BOOL_128,
10210 *eqv<mode>3_internal2 for BOOL_128,
10211 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
10212 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
10213 clobber.
10214 (*vec_reload_and_reg_<mptrsize>): Delete.
10215
10216 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10217
10218 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
10219 and split, *boolccsi3_internal3 and split): Delete.
10220 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
10221 *boolccdi3_internal3 and split): Delete.
10222 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
10223 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
10224
10225 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10226
10227 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
10228 and split, *boolcsi3_internal3 and split): Delete.
10229 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
10230 *boolcdi3_internal3 and split): Delete.
10231 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
10232
10233 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10234
10235 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
10236 <'u'>: Also support printing the low-order 16 bits.
10237 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
10238 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
10239 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
10240 *booldi3_internal3 and split): Delete.
10241 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
10242 *bool<mode>3_dot2): New.
10243 (two anonymous define_splits for non_logical_cint_operand): Merge.
10244
10245 2014-08-17 Marek Polacek <polacek@redhat.com>
10246 Manuel López-Ibáñez <manu@gcc.gnu.org>
10247
10248 PR c/62059
10249 * diagnostic.c (adjust_line): Add gcc_checking_assert.
10250 (diagnostic_show_locus): Don't print caret diagnostic
10251 if a column is larger than the line_width.
10252
10253 2014-08-17 Roman Gareev <gareevroman@gmail.com>
10254
10255 * common.opt: Make the ISL AST generator to be the main code generator
10256 of Graphite.
10257
10258 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
10259
10260 * wide-int.h (generic_wide_int): Declare as class instead of struct.
10261
10262 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
10263
10264 PR target/61641
10265 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
10266 Declare.
10267 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
10268 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
10269 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
10270 Define.
10271 * config/pa/pa.md (begin_brtab): Delete insn.
10272 (end_brtab): Likewise.
10273
10274 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
10275
10276 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
10277
10278 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
10279
10280 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
10281 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
10282 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
10283 (get_dynamic_type): Remove.
10284 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
10285 (clear_speculation): Bring to ipa-deivrt.h
10286 (get_class_context): Rename to ...
10287 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
10288 (contains_type_p): Update.
10289 (get_dynamic_type): Rename to ...
10290 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
10291 (possible_polymorphic_call_targets): UPdate.
10292 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
10293 * ipa-prop.c (ipa_analyze_call_uses): Update.
10294
10295 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
10296
10297 * doc/invoke.texi (SH options): Document missing processor variant
10298 options. Remove references to Hitachi. Undocument deprecated mspace
10299 option.
10300
10301 2014-08-15 Jason Merrill <jason@redhat.com>
10302
10303 * tree.c (type_hash_canon): Uncomment assert.
10304
10305 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10306
10307 * input.h (in_system_header_at): Add comment.
10308
10309 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10310
10311 PR fortran/44054
10312 * diagnostic.c (build_message_string): Make it extern.
10313 * diagnostic.h (build_message_string): Make it extern.
10314
10315 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
10316
10317 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
10318 load/store from/to non-floating class pseudo.
10319
10320 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10321
10322 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
10323
10324 2014-08-15 Richard Biener <rguenther@suse.de>
10325
10326 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
10327 (get_constraint_for_ssa_var): Remove dead code.
10328 (get_constraint_for_1): Adjust.
10329 (find_what_var_points_to): Likewise.
10330 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
10331
10332 2014-08-15 Ilya Tocar <tocarip@gmail.com>
10333
10334 PR target/61878
10335 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
10336 (_mm512_mask_cmpge_epu32_mask): Ditto.
10337 (_mm512_cmpge_epu32_mask): Ditto.
10338 (_mm512_mask_cmpge_epi64_mask): Ditto.
10339 (_mm512_cmpge_epi64_mask): Ditto.
10340 (_mm512_mask_cmpge_epu64_mask): Ditto.
10341 (_mm512_cmpge_epu64_mask): Ditto.
10342 (_mm512_mask_cmple_epi32_mask): Ditto.
10343 (_mm512_cmple_epi32_mask): Ditto.
10344 (_mm512_mask_cmple_epu32_mask): Ditto.
10345 (_mm512_cmple_epu32_mask): Ditto.
10346 (_mm512_mask_cmple_epi64_mask): Ditto.
10347 (_mm512_cmple_epi64_mask): Ditto.
10348 (_mm512_mask_cmple_epu64_mask): Ditto.
10349 (_mm512_cmple_epu64_mask): Ditto.
10350 (_mm512_mask_cmplt_epi32_mask): Ditto.
10351 (_mm512_cmplt_epi32_mask): Ditto.
10352 (_mm512_mask_cmplt_epu32_mask): Ditto.
10353 (_mm512_cmplt_epu32_mask): Ditto.
10354 (_mm512_mask_cmplt_epi64_mask): Ditto.
10355 (_mm512_cmplt_epi64_mask): Ditto.
10356 (_mm512_mask_cmplt_epu64_mask): Ditto.
10357 (_mm512_cmplt_epu64_mask): Ditto.
10358 (_mm512_mask_cmpneq_epi32_mask): Ditto.
10359 (_mm512_mask_cmpneq_epu32_mask): Ditto.
10360 (_mm512_cmpneq_epu32_mask): Ditto.
10361 (_mm512_mask_cmpneq_epi64_mask): Ditto.
10362 (_mm512_cmpneq_epi64_mask): Ditto.
10363 (_mm512_mask_cmpneq_epu64_mask): Ditto.
10364 (_mm512_cmpneq_epu64_mask): Ditto.
10365 (_mm512_castpd_ps): Ditto.
10366 (_mm512_castpd_si512): Ditto.
10367 (_mm512_castps_pd): Ditto.
10368 (_mm512_castps_si512): Ditto.
10369 (_mm512_castsi512_ps): Ditto.
10370 (_mm512_castsi512_pd): Ditto.
10371 (_mm512_castpd512_pd128): Ditto.
10372 (_mm512_castps512_ps128): Ditto.
10373 (_mm512_castsi512_si128): Ditto.
10374 (_mm512_castpd512_pd256): Ditto.
10375 (_mm512_castps512_ps256): Ditto.
10376 (_mm512_castsi512_si256): Ditto.
10377 (_mm512_castpd128_pd512): Ditto.
10378 (_mm512_castps128_ps512): Ditto.
10379 (_mm512_castsi128_si512): Ditto.
10380 (_mm512_castpd256_pd512): Ditto.
10381 (_mm512_castps256_ps512): Ditto.
10382 (_mm512_castsi256_si512): Ditto.
10383 (_mm512_cmpeq_epu32_mask): Ditto.
10384 (_mm512_mask_cmpeq_epu32_mask): Ditto.
10385 (_mm512_mask_cmpeq_epu64_mask): Ditto.
10386 (_mm512_cmpeq_epu64_mask): Ditto.
10387 (_mm512_cmpgt_epu32_mask): Ditto.
10388 (_mm512_mask_cmpgt_epu32_mask): Ditto.
10389 (_mm512_mask_cmpgt_epu64_mask): Ditto.
10390 (_mm512_cmpgt_epu64_mask): Ditto.
10391 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
10392 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
10393 * config/i386/i386.c (enum ix86_builtins): Add
10394 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
10395 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
10396 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
10397 (bdesc_args): Add __builtin_ia32_si512_256si,
10398 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
10399 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
10400 __builtin_ia32_pd512_pd.
10401 (ix86_expand_args_builtin): Handle new FTYPEs.
10402 * config/i386/sse.md (castmode): Add 512-bit modes.
10403 (AVX512MODE2P): New.
10404 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
10405 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
10406
10407 2014-08-15 Richard Biener <rguenther@suse.de>
10408
10409 * fold-const.c (tree_swap_operands_p): Put all constants
10410 last, also strip sign-changing NOPs when considering further
10411 canonicalization. Canonicalize also when optimizing for size.
10412
10413 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10414
10415 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
10416 one_match > zero_match case to just before simple_sequence.
10417
10418 2014-08-15 Richard Biener <rguenther@suse.de>
10419
10420 * data-streamer.h (streamer_string_index, string_for_index):
10421 Remove.
10422 * data-streamer-out.c (streamer_string_index): Make static.
10423 * data-streamer-in.c (string_for_index): Likewise.
10424 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
10425 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
10426
10427 2014-08-15 Richard Biener <rguenther@suse.de>
10428
10429 PR tree-optimization/62031
10430 * tree-data-ref.c (dr_analyze_indices): Do not set
10431 DR_UNCONSTRAINED_BASE.
10432 (dr_may_alias_p): All indirect accesses have to go the
10433 formerly DR_UNCONSTRAINED_BASE path.
10434 * tree-data-ref.h (struct indices): Remove
10435 unconstrained_base member.
10436 (DR_UNCONSTRAINED_BASE): Remove.
10437
10438 2014-08-15 Jakub Jelinek <jakub@redhat.com>
10439
10440 PR middle-end/62092
10441 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
10442 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
10443 in OMP_CLAUSE_MAP in some outer target region.
10444
10445 2014-08-15 Bin Cheng <bin.cheng@arm.com>
10446
10447 * tree-ssa-loop-ivopts.c (ivopts_data): New field
10448 name_expansion_cache.
10449 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
10450 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
10451 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
10452 (difference_cannot_overflow_p): New parameter. Use affine
10453 expansion for equality check.
10454 (iv_elimination_compare_lt): Pass new argument.
10455
10456 2014-08-14 DJ Delorie <dj@redhat.com>
10457
10458 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
10459 variables to the accumulator.
10460
10461 * config/rl78/predicates.md (rl78_near_mem_operand): New.
10462 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
10463 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
10464 with far-far moves.
10465
10466 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
10467 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
10468 (umulqihi3_virt): Likewise.
10469 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
10470 (umulqihi3_real): Likewise.
10471
10472 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
10473
10474 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
10475
10476 PR tree-optimization/62091
10477 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
10478 function_entry_reached.
10479 (walk_aliased_vdefs): Clear it here.
10480 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
10481
10482 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
10483
10484 * ipa-utils.h (compare_virtual_tables): Declare.
10485 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
10486
10487 2014-08-14 Marek Polacek <polacek@redhat.com>
10488
10489 DR 458
10490 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
10491 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
10492
10493 2014-08-14 Tom de Vries <tom@codesourcery.com>
10494
10495 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
10496
10497 2014-08-14 Tom de Vries <tom@codesourcery.com>
10498
10499 PR rtl-optimization/62004
10500 PR rtl-optimization/62030
10501 * ifcvt.c (rtx_interchangeable_p): New function.
10502 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
10503 * emit-rtl.h (mem_attrs_eq_p): Declare.
10504
10505 2014-08-14 Roman Gareev <gareevroman@gmail.com>
10506
10507 * graphite-scop-detection.c:
10508 Add inclusion of cp-tree.h.
10509 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
10510 in case they are pointers to object types
10511
10512 2014-08-14 Richard Biener <rguenther@suse.de>
10513
10514 * BASE-VER: Change to 5.0.0
10515
10516 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10517 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10518 Anna Tikhonova <anna.tikhonova@intel.com>
10519 Ilya Tocar <ilya.tocar@intel.com>
10520 Andrey Turetskiy <andrey.turetskiy@intel.com>
10521 Ilya Verbin <ilya.verbin@intel.com>
10522 Kirill Yukhin <kirill.yukhin@intel.com>
10523 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10524
10525 * config/i386/sse.md (define_mode_attr avx512): New.
10526 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
10527 V4DI modes.
10528 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
10529 (define_mode_attr ssse3_avx2): Ditto.
10530 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
10531 (define_mode_attr avx2_avx512bw): New.
10532 (define_mode_attr ssedoublemodelower): New.
10533 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
10534 V32HI, V64QI modes.
10535 (define_mode_attr ssebytemode): Allow V8DI modes.
10536 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
10537 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
10538 (define_mode_attr ssePSmode2): New.
10539 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
10540 V16HI, V32HI modes.
10541 (define_mode_attr dbpsadbwmode): New.
10542 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
10543 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
10544 (vi8_sse4_1_avx2_avx512): New.
10545 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
10546 mode attribute.
10547 (define_mode_attr blendbits): Move before its immediate use.
10548
10549 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10550 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10551 Anna Tikhonova <anna.tikhonova@intel.com>
10552 Ilya Tocar <ilya.tocar@intel.com>
10553 Andrey Turetskiy <andrey.turetskiy@intel.com>
10554 Ilya Verbin <ilya.verbin@intel.com>
10555 Kirill Yukhin <kirill.yukhin@intel.com>
10556 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10557
10558 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
10559 * config/i386/subst.md
10560 (define_mode_iterator SUBST_V): Update.
10561 (define_mode_iterator SUBST_A): Ditto.
10562 (define_subst_attr "mask_operand7"): New.
10563 (define_subst_attr "mask_operand10"): New.
10564 (define_subst_attr "mask_operand_arg34") : New.
10565 (define_subst_attr "mask_expand_op3"): New.
10566 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
10567 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
10568 (define_subst_attr "mask_avx512vl_condition"): New.
10569 (define_subst_attr "round_mask_operand4"): Ditto.
10570 (define_subst_attr "round_mask_scalar_op3"): Delete.
10571 (define_subst_attr "round_mask_op4"): New.
10572 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
10573 V16SImode.
10574 (define_subst_attr "round_modev8sf_condition"): New.
10575 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
10576 <MODE>mode.
10577 (define_subst_attr "round_saeonly_mask_operand4"): New.
10578 (define_subst_attr "round_saeonly_mask_op4"): New.
10579 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
10580 V8DImode, V16SImode.
10581 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
10582 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
10583 (define_subst_attr "mask_expand4_args"): New.
10584 (define_subst "mask_expand4"): New.
10585
10586 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10587 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10588 Anna Tikhonova <anna.tikhonova@intel.com>
10589 Ilya Tocar <ilya.tocar@intel.com>
10590 Andrey Turetskiy <andrey.turetskiy@intel.com>
10591 Ilya Verbin <ilya.verbin@intel.com>
10592 Kirill Yukhin <kirill.yukhin@intel.com>
10593 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10594
10595 * config/i386/i386.md
10596 (define_attr "isa"): Add avx512bw,noavx512bw.
10597 (define_attr "enabled"): Ditto.
10598 (define_split): Add 32/64-bit mask logic.
10599 (define_insn "*k<logic>qi"): New.
10600 (define_insn "*k<logic>hi"): New.
10601 (define_insn "*anddi_1"): Add mask version.
10602 (define_insn "*andsi_1"): Ditto.
10603 (define_insn "*<code><mode>_1"): Ditto.
10604 (define_insn "*<code>hi_1"): Ditto.
10605 (define_insn "kxnor<mode>"): New.
10606 (define_insn "kunpcksi"): New.
10607 (define_insn "kunpckdi"): New.
10608 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
10609 (define_insn "*one_cmplhi2_1"): Ditto.
10610
10611 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10612 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10613 Anna Tikhonova <anna.tikhonova@intel.com>
10614 Ilya Tocar <ilya.tocar@intel.com>
10615 Andrey Turetskiy <andrey.turetskiy@intel.com>
10616 Ilya Verbin <ilya.verbin@intel.com>
10617 Kirill Yukhin <kirill.yukhin@intel.com>
10618 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10619
10620 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
10621 V32HImode.
10622
10623 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10624 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10625 Anna Tikhonova <anna.tikhonova@intel.com>
10626 Ilya Tocar <ilya.tocar@intel.com>
10627 Andrey Turetskiy <andrey.turetskiy@intel.com>
10628 Ilya Verbin <ilya.verbin@intel.com>
10629 Kirill Yukhin <kirill.yukhin@intel.com>
10630 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10631
10632 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
10633 registers.
10634 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
10635 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
10636 xmm/ymm16+ when availble.
10637 * config/i386/i386.h
10638 (HARD_REGNO_NREGS): Add mask regs.
10639 (VALID_AVX512F_REG_MODE): Ditto.
10640 (VALID_AVX512F_REG_MODE) : Define.
10641 (VALID_MASK_AVX512BW_MODE): Ditto.
10642 (reg_class) (MASK_REG_P(X)): Define.
10643 * config/i386/i386.md: Do not split long moves with mask register,
10644 use kmovb if avx512bw is availible.
10645 (movdi_internal): Handle mask registers.
10646
10647 2014-08-14 Richard Biener <rguenther@suse.de>
10648
10649 PR tree-optimization/62081
10650 * tree-ssa-loop.c (pass_fix_loops): New pass.
10651 (pass_tree_loop::gate): Do not fixup loops here.
10652 * tree-pass.h (make_pass_fix_loops): Declare.
10653 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
10654
10655 2014-08-14 Richard Biener <rguenther@suse.de>
10656
10657 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
10658 (type_hash_canon): ... this and avoid 2nd lookup for the add.
10659
10660 2014-08-14 Richard Biener <rguenther@suse.de>
10661
10662 PR tree-optimization/62090
10663 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
10664 (fold_builtin_2): Do not fold sprintf.
10665 (fold_builtin_3): Likewise.
10666 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
10667 moved from builtins.c.
10668 (gimple_fold_builtin): Fold sprintf.
10669
10670 2014-08-14 Richard Biener <rguenther@suse.de>
10671
10672 PR rtl-optimization/62079
10673 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
10674 run cleanup_cfg.
10675
10676 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
10677
10678 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
10679 current_function_decl.
10680
10681 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
10682
10683 * cgraph.c (cgraph_node::function_symbol): Fix wrong
10684 cgraph_function_node to cgraph_node::function_symbol
10685 refactoring.
10686
10687 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
10688
10689 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
10690 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
10691
10692 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
10693
10694 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
10695 warning.
10696
10697 2014-08-13 Roman Gareev <gareevroman@gmail.com>
10698
10699 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
10700 generator.
10701
10702 2014-08-12 Jakub Jelinek <jakub@redhat.com>
10703
10704 PR target/62025
10705 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
10706 any registers that are used in mem_insn.
10707
10708 2014-08-12 Steve Ellcey <sellcey@mips.com>
10709
10710 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
10711
10712 2014-08-12 Steve Ellcey <sellcey@mips.com>
10713
10714 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
10715 (MULTILIB_DIRNAMES): Ditto.
10716 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
10717 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
10718 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
10719 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
10720 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
10721 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
10722
10723 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10724
10725 PR target/61413
10726 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
10727 of __ARM_SIZEOF_WCHAR_T.
10728
10729 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10730
10731 PR target/62098
10732 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
10733 Remove unnecessary attributes.
10734
10735 2014-08-12 Yury Gribov <y.gribov@samsung.com>
10736
10737 * internal-fn.c (init_internal_fns): Fix off-by-one.
10738
10739 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
10740 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10741 Anna Tikhonova <anna.tikhonova@intel.com>
10742 Ilya Tocar <ilya.tocar@intel.com>
10743 Andrey Turetskiy <andrey.turetskiy@intel.com>
10744 Ilya Verbin <ilya.verbin@intel.com>
10745 Kirill Yukhin <kirill.yukhin@intel.com>
10746 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10747
10748 * config/i386/i386.c (standard_sse_constant_opcode): Use
10749 vpxord/vpternlog if avx512 is availible.
10750
10751 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
10752
10753 PR middle-end/62103
10754 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
10755 bitfields, that is when size doesn't match the size of type or the
10756 size of the constructor.
10757
10758 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10759
10760 * config/rs6000/constraints.md (wh constraint): New constraint,
10761 for FP registers if direct move is available.
10762 (wi constraint): New constraint, for VSX/FP registers that can
10763 handle 64-bit integers.
10764 (wj constraint): New constraint for VSX/FP registers that can
10765 handle 64-bit integers for direct moves.
10766 (wk constraint): New constraint for VSX/FP registers that can
10767 handle 64-bit doubles for direct moves.
10768 (wy constraint): Make documentation match implementation.
10769
10770 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
10771 scalar_in_vmx_p field to simplify tests of whether SFmode or
10772 DFmode can go in the Altivec registers.
10773 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
10774 (rs6000_setup_reg_addr_masks): Likewise.
10775 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
10776 field, and wh/wi/wj/wk constraints.
10777 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
10778 the wh/wi/wj/wk constraints.
10779 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
10780 upper registers, prefer VSX registers unless the operation is a
10781 memory operation with REG+OFFSET addressing.
10782
10783 * config/rs6000/vsx.md (VSr mode attribute): Add support for
10784 DImode. Change SFmode to use ww constraint instead of d to allow
10785 SF registers in the upper registers.
10786 (VSr2): Likewise.
10787 (VSr3): Likewise.
10788 (VSr5): Fix thinko in comment.
10789 (VSa): New mode attribute that is an alternative to wa, that
10790 returns the VSX register class that a mode can go in, but may not
10791 be the preferred register class.
10792 (VS_64dm): New mode attribute for appropriate register classes for
10793 referencing 64-bit elements of vectors for direct moves and normal
10794 moves.
10795 (VS_64reg): Likewise.
10796 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
10797 register allocator to only registers the data type can handle.
10798 (vsx_le_perm_load_<mode>): Likewise.
10799 (vsx_le_perm_store_<mode>): Likewise.
10800 (vsx_xxpermdi2_le_<mode>): Likewise.
10801 (vsx_xxpermdi4_le_<mode>): Likewise.
10802 (vsx_lxvd2x2_le_<mode>): Likewise.
10803 (vsx_lxvd2x4_le_<mode>): Likewise.
10804 (vsx_stxvd2x2_le_<mode>): Likewise.
10805 (vsx_add<mode>3): Likewise.
10806 (vsx_sub<mode>3): Likewise.
10807 (vsx_mul<mode>3): Likewise.
10808 (vsx_div<mode>3): Likewise.
10809 (vsx_tdiv<mode>3_internal): Likewise.
10810 (vsx_fre<mode>2): Likewise.
10811 (vsx_neg<mode>2): Likewise.
10812 (vsx_abs<mode>2): Likewise.
10813 (vsx_nabs<mode>2): Likewise.
10814 (vsx_smax<mode>3): Likewise.
10815 (vsx_smin<mode>3): Likewise.
10816 (vsx_sqrt<mode>2): Likewise.
10817 (vsx_rsqrte<mode>2): Likewise.
10818 (vsx_tsqrt<mode>2_internal): Likewise.
10819 (vsx_fms<mode>4): Likewise.
10820 (vsx_nfma<mode>4): Likewise.
10821 (vsx_eq<mode>): Likewise.
10822 (vsx_gt<mode>): Likewise.
10823 (vsx_ge<mode>): Likewise.
10824 (vsx_eq<mode>_p): Likewise.
10825 (vsx_gt<mode>_p): Likewise.
10826 (vsx_ge<mode>_p): Likewise.
10827 (vsx_xxsel<mode>): Likewise.
10828 (vsx_xxsel<mode>_uns): Likewise.
10829 (vsx_copysign<mode>3): Likewise.
10830 (vsx_float<VSi><mode>2): Likewise.
10831 (vsx_floatuns<VSi><mode>2): Likewise.
10832 (vsx_fix_trunc<mode><VSi>2): Likewise.
10833 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
10834 (vsx_x<VSv>r<VSs>i): Likewise.
10835 (vsx_x<VSv>r<VSs>ic): Likewise.
10836 (vsx_btrunc<mode>2): Likewise.
10837 (vsx_b2trunc<mode>2): Likewise.
10838 (vsx_floor<mode>2): Likewise.
10839 (vsx_ceil<mode>2): Likewise.
10840 (vsx_<VS_spdp_insn>): Likewise.
10841 (vsx_xscvspdp): Likewise.
10842 (vsx_xvcvspuxds): Likewise.
10843 (vsx_float_fix_<mode>2): Likewise.
10844 (vsx_set_<mode>): Likewise.
10845 (vsx_extract_<mode>_internal1): Likewise.
10846 (vsx_extract_<mode>_internal2): Likewise.
10847 (vsx_extract_<mode>_load): Likewise.
10848 (vsx_extract_<mode>_store): Likewise.
10849 (vsx_splat_<mode>): Likewise.
10850 (vsx_xxspltw_<mode>): Likewise.
10851 (vsx_xxspltw_<mode>_direct): Likewise.
10852 (vsx_xxmrghw_<mode>): Likewise.
10853 (vsx_xxmrglw_<mode>): Likewise.
10854 (vsx_xxsldwi_<mode>): Likewise.
10855 (vsx_xscvdpspn): Tighten constraints to only use register classes
10856 the types use.
10857 (vsx_xscvspdpn): Likewise.
10858 (vsx_xscvdpspn_scalar): Likewise.
10859
10860 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
10861 wj, and wk constraints.
10862 (GPR_REG_CLASS_P): New helper macro for register classes targeting
10863 general purpose registers.
10864
10865 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
10866 direct moves.
10867 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
10868 DImode instead of wm. Use wk constraint for direct move of DFmode
10869 instead of wm.
10870 (extendsidi2_lfiwax): Likewise.
10871 (lfiwax): Likewise.
10872 (lfiwzx): Likewise.
10873 (movdi_internal64): Likewise.
10874
10875 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
10876 wk constraints. Make the wy constraint documentation match them
10877 implementation.
10878
10879 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
10880
10881 Replacement of isl_int by isl_val
10882 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
10883 (compute_bounds_for_param): use isl_val instead of isl_int
10884 (compute_bounds_for_loop): likewise
10885 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
10886 (build_linearized_memory_access): use isl_val instead of isl_int
10887 (pdr_stride_in_loop): likewise
10888 * graphite-optimize-isl.c:
10889 (getPrevectorMap): use isl_val instead of isl_int
10890 * graphite-poly.c:
10891 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
10892 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
10893 (extern the_isl_ctx): declare
10894 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
10895 (extract_affine_gmp): likewise
10896 (wrap): likewise
10897 (build_loop_iteration_domains): likewise
10898 (add_param_constraints): likewise
10899
10900 2014-08-11 Richard Biener <rguenther@suse.de>
10901
10902 PR tree-optimization/62075
10903 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
10904 handle uses in patterns.
10905
10906 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10907 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10908 Anna Tikhonova <anna.tikhonova@intel.com>
10909 Ilya Tocar <ilya.tocar@intel.com>
10910 Andrey Turetskiy <andrey.turetskiy@intel.com>
10911 Ilya Verbin <ilya.verbin@intel.com>
10912 Kirill Yukhin <kirill.yukhin@intel.com>
10913 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10914
10915 * common/config/i386/i386-common.c
10916 (OPTION_MASK_ISA_AVX512VL_SET): Define.
10917 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
10918 (ix86_handle_option): Handle OPT_mavx512vl.
10919 * config/i386/cpuid.h (bit_AVX512VL): Define.
10920 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
10921 set -mavx512vl accordingly.
10922 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10923 OPTION_MASK_ISA_AVX512VL.
10924 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
10925 (ix86_option_override_internal): Define PTA_AVX512VL, handle
10926 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
10927 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
10928 * config/i386/i386.h (TARGET_AVX512VL): Define.
10929 (TARGET_AVX512VL_P(x)): Ditto.
10930 * config/i386/i386.opt: Add mavx512vl.
10931
10932 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
10933
10934 PR tree-optimization/62073
10935 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
10936 a basic block.
10937
10938 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10939 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10940 Anna Tikhonova <anna.tikhonova@intel.com>
10941 Ilya Tocar <ilya.tocar@intel.com>
10942 Andrey Turetskiy <andrey.turetskiy@intel.com>
10943 Ilya Verbin <ilya.verbin@intel.com>
10944 Kirill Yukhin <kirill.yukhin@intel.com>
10945 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10946
10947 * common/config/i386/i386-common.c
10948 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
10949 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
10950 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
10951 (ix86_handle_option): Handle OPT_mavx512bw.
10952 * config/i386/cpuid.h (bit_AVX512BW): Define.
10953 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
10954 set -mavx512bw accordingly.
10955 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10956 OPTION_MASK_ISA_AVX512BW.
10957 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
10958 (ix86_option_override_internal): Define PTA_AVX512BW, handle
10959 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
10960 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
10961 * config/i386/i386.h (TARGET_AVX512BW): Define.
10962 (TARGET_AVX512BW_P(x)): Ditto.
10963 * config/i386/i386.opt: Add mavx512bw.
10964
10965 2014-08-11 Richard Biener <rguenther@suse.de>
10966
10967 PR tree-optimization/62070
10968 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
10969 Remove SSA checking.
10970
10971 2014-08-11 Yury Gribov <y.gribov@samsung.com>
10972
10973 * asan.c (asan_check_flags): New enum.
10974 (build_check_stmt_with_calls): Removed function.
10975 (build_check_stmt): Split inlining logic to
10976 asan_expand_check_ifn.
10977 (instrument_derefs): Rename parameter.
10978 (instrument_mem_region_access): Rename parameter.
10979 (instrument_strlen_call): Likewise.
10980 (asan_expand_check_ifn): New function.
10981 (asan_instrument): Remove old code.
10982 (pass_sanopt::execute): Change handling of
10983 asan-instrumentation-with-call-threshold.
10984 (asan_clear_shadow): Fix formatting.
10985 (asan_function_start): Likewise.
10986 (asan_emit_stack_protection): Likewise.
10987 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
10988 Update description.
10989 * internal-fn.c (expand_ASAN_CHECK): New function.
10990 * internal-fn.def (ASAN_CHECK): New internal function.
10991 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
10992 Update description.
10993 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
10994 * tree.c: Small comment fix.
10995
10996 2014-08-11 Yury Gribov <y.gribov@samsung.com>
10997
10998 * gimple.c (gimple_call_fnspec): Support internal functions.
10999 (gimple_call_return_flags): Use const.
11000 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
11001 * internal-fn.def: Add fnspec information.
11002 * internal-fn.h (internal_fn_fnspec): New function.
11003 (init_internal_fns): Declare new function.
11004 * internal-fn.c (internal_fn_fnspec_array): New global variable.
11005 (init_internal_fns): New function.
11006 * tree-core.h: Update macro call.
11007 * tree.c (build_common_builtin_nodes): Initialize internal fns.
11008
11009 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
11010
11011 * lto-streamer.h (struct output_block::symbol): Change from
11012 struct symtab_node to plain symtab_node.
11013 (referenced_from_this_partition_p): Change first parameter
11014 from struct symtab_node to plain symtab_node.
11015
11016 2014-08-10 Marek Polacek <polacek@redhat.com>
11017
11018 PR c/51849
11019 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
11020
11021 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
11022
11023 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
11024 DECL correctly; do not give up on types in static storage.
11025
11026 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
11027
11028 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
11029
11030 2014-08-09 Roman Gareev <gareevroman@gmail.com>
11031
11032 * graphite-isl-ast-to-gimple.c:
11033 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
11034
11035 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
11036
11037 2014-08-08 Guozhi Wei <carrot@google.com>
11038
11039 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
11040
11041 2014-08-08 Cary Coutant <ccoutant@google.com>
11042
11043 * dwarf2out.c (get_skeleton_type_unit): Remove.
11044 (output_skeleton_debug_sections): Remove skeleton type units.
11045 (output_comdat_type_unit): Likewise.
11046 (dwarf2out_finish): Likewise.
11047
11048 2014-08-07 Yi Yang <ahyangyi@google.com>
11049
11050 * predict.c (expr_expected_value_1): Remove the redundant assignment.
11051
11052 2014-08-08 Richard Biener <rguenther@suse.de>
11053
11054 * lto-streamer.h (struct lto_input_block): Make it a class
11055 with a constructor.
11056 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
11057 (struct lto_function_header, struct lto_simple_header,
11058 struct lto_simple_header_with_strings,
11059 struct lto_decl_header, struct lto_function_header): Make
11060 a simple inheritance hieararchy. Remove unused fields.
11061 (struct lto_asm_header): Remove.
11062 * lto-streamer-out.c (produce_asm): Adjust.
11063 (lto_output_toplevel_asms): Likewise.
11064 (produce_asm_for_decls): Likewise.
11065 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
11066 * data-streamer-in.c (string_for_index): Likewise.
11067 * ipa-inline-analysis.c (inline_read_section): Likewise.
11068 * ipa-prop.c (ipa_prop_read_section): Likewise.
11069 (read_replacements_section): Likewise.
11070 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
11071 * lto-section-in.c (lto_create_simple_input_block): Likewise.
11072 (lto_destroy_simple_input_block): Likewise.
11073 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
11074 (lto_input_toplevel_asms): Likewise.
11075
11076 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
11077 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11078 Anna Tikhonova <anna.tikhonova@intel.com>
11079 Ilya Tocar <ilya.tocar@intel.com>
11080 Andrey Turetskiy <andrey.turetskiy@intel.com>
11081 Ilya Verbin <ilya.verbin@intel.com>
11082 Kirill Yukhin <kirill.yukhin@intel.com>
11083 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11084
11085 * common/config/i386/i386-common.c
11086 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
11087 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
11088 (ix86_handle_option): Handle OPT_mavx512dq.
11089 * config/i386/cpuid.h (bit_AVX512DQ): Define.
11090 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
11091 set -mavx512dq accordingly.
11092 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11093 OPTION_MASK_ISA_AVX512DQ.
11094 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
11095 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
11096 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
11097 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
11098 * config/i386/i386.h (TARGET_AVX512DQ): Define.
11099 (TARGET_AVX512DQ_P(x)): Ditto.
11100 * config/i386/i386.opt: Add mavx512dq.
11101
11102 2014-08-08 Richard Biener <rguenther@suse.de>
11103
11104 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
11105 target_percent, target_percent_s): Export.
11106 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
11107 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
11108 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
11109 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
11110 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
11111 Move to gimple-fold.c.
11112 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
11113 strcat and strcpy.
11114 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
11115 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
11116 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
11117 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
11118 (rewrite_call_expr_array): Remove.
11119 (fold_builtin_sprintf_chk): Likewise.
11120 (fold_builtin_snprintf_chk): Likewise.
11121 (fold_builtin_varargs): Remove handling of sprintf_chk,
11122 vsprintf_chk, snprintf_chk and vsnprintf_chk.
11123 (gimple_fold_builtin_sprintf_chk): Remove.
11124 (gimple_fold_builtin_snprintf_chk): Likewise.
11125 (gimple_fold_builtin_varargs): Likewise.
11126 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
11127 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
11128 * gimple.c (gimple_seq_add_seq_without_update): New function.
11129 * gimple.h (gimple_seq_add_seq_without_update): Declare.
11130 * gimple-fold.c: Include output.h.
11131 (gsi_replace_with_seq_vops): New function, split out from ...
11132 (gimplify_and_update_call_from_tree): ... here.
11133 (replace_call_with_value): New function.
11134 (replace_call_with_call_and_fold): Likewise.
11135 (var_decl_component_p): Moved from builtins.c.
11136 (gimple_fold_builtin_memory_op): Moved from builtins.c
11137 fold_builtin_memory_op and rewritten to GIMPLE.
11138 (gimple_fold_builtin_memset): Likewise.
11139 (gimple_fold_builtin_strcpy): Likewise.
11140 (gimple_fold_builtin_strncpy): Likewise.
11141 (gimple_fold_builtin_strcat): Likewise.
11142 (gimple_fold_builtin_fputs): Likewise.
11143 (gimple_fold_builtin_memory_chk): Likewise.
11144 (gimple_fold_builtin_stxcpy_chk): Likewise.
11145 (gimple_fold_builtin_stxncpy_chk): Likewise.
11146 (gimple_fold_builtin_snprintf_chk): Likewise.
11147 (gimple_fold_builtin_sprintf_chk): Likewise.
11148 (gimple_fold_builtin_strlen): New function.
11149 (gimple_fold_builtin_with_strlen): New function split out from
11150 gimple_fold_builtin.
11151 (gimple_fold_builtin): Change signature and handle
11152 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
11153 here. Call gimple_fold_builtin_with_strlen.
11154 (gimple_fold_call): Adjust.
11155
11156 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
11157
11158 * calls.c (precompute_arguments): Check
11159 promoted_for_signed_and_unsigned_p and set the promoted mode.
11160 (promoted_for_signed_and_unsigned_p): New function.
11161 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
11162 and set the promoted mode.
11163 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
11164 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
11165 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
11166
11167
11168 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
11169
11170 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
11171 instead of SUBREG_PROMOTED_UNSIGNED_SET.
11172 (expand_call): Likewise.
11173 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
11174 to get promoted mode.
11175 * combine.c (record_promoted_value): Skip > 0 comparison with
11176 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
11177 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
11178 of SUBREG_PROMOTED_UNSIGNED_P.
11179 (convert_modes): Likewise.
11180 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
11181 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
11182 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
11183 SUBREG_PROMOTED_UNSIGNED_SET.
11184 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
11185 instead of SUBREG_PROMOTED_UNSIGNED_SET.
11186 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
11187 SUBREG_PROMOTED_SET.
11188 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
11189 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
11190 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
11191 of SUBREG_PROMOTED_UNSIGNED_P.
11192 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
11193 (SUBREG_PROMOTED_SET): New define.
11194 (SUBREG_PROMOTED_GET): Likewise.
11195 (SUBREG_PROMOTED_SIGN): Likewise.
11196 (SUBREG_PROMOTED_SIGNED_P): Likewise.
11197 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
11198 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
11199 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
11200 instead of SUBREG_PROMOTED_UNSIGNED_GET.
11201 (nonzero_bits1): Skip > 0 comparison with the results as
11202 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
11203 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
11204 of !SUBREG_PROMOTED_UNSIGNED_P.
11205 * simplify-rtx.c (simplify_unary_operation_1): Use new
11206 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
11207 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
11208 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
11209 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
11210
11211 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
11212
11213 * ipa-devirt.c: Include gimple-pretty-print.h
11214 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
11215 further tests.
11216 (decl_maybe_in_construction_p): Fix conditional on cdtor check
11217 (get_polymorphic_call_info): Fix return value
11218 (type_change_info): New sturcture based on ipa-prop
11219 variant.
11220 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
11221 based on ipa-prop variant.
11222 (extr_type_from_vtbl_ptr_store): New function
11223 based on ipa-prop variant.
11224 (record_known_type): New function.
11225 (check_stmt_for_type_change): New function.
11226 (get_dynamic_type): New function.
11227 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
11228 * tree-ssa-pre.c: ipa-utils.h
11229 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
11230 machinery; sanity check with ipa-prop devirtualization.
11231 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
11232 polymorphic flag.
11233
11234 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
11235
11236 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
11237 * alias.c, cfgexpand.c, cgraphbuild.c,
11238 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
11239 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
11240 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
11241 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
11242 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
11243 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11244 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
11245 dse.c, except.c, gengtype.c, gimple-expr.c,
11246 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
11247 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
11248 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
11249 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
11250 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
11251 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
11252 pointer-set.h.
11253 * pointer-set.c: Remove file.
11254 * pointer-set.h: Remove file.
11255
11256 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11257
11258 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
11259 * config/arm/types.md (f_sels, f_seld): Delete.
11260
11261 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11262
11263 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
11264 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
11265 (aarch64_movdi_<mode>high): Likewise.
11266 (aarch64_mov<mode>high_di): Likewise.
11267 (aarch64_movdi_<mode>low): Likewise.
11268 (aarch64_mov<mode>low_di): Likewise.
11269 (aarch64_movtilow_tilow): Likewise.
11270 Add comment explaining usage of fp,simd attributes and of
11271 TARGET_FLOAT and TARGET_SIMD.
11272
11273 2014-08-07 Ian Bolton <ian.bolton@arm.com>
11274 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11275
11276 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
11277 Use MOVN when one of the half-words is 0xffff.
11278
11279 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
11280
11281 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
11282
11283 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11284
11285 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
11286 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
11287 (rfs_str): String corresponding to RFS_* constants.
11288 (rank_for_schedule_stats_t): New typedef.
11289 (rank_for_schedule_stats): New static variable.
11290 (rfs_result): New static function.
11291 (rank_for_schedule): Track statistics for deciding heuristics.
11292 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
11293 static functions.
11294 (ready_sort): Use them for debug printouts.
11295 (schedule_block): Init statistics state. Print statistics on
11296 rank_for_schedule decisions.
11297
11298 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11299
11300 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
11301
11302 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
11303
11304 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
11305 constraint.
11306
11307 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
11308
11309 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
11310 function to not conflict.
11311 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
11312 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
11313 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
11314 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
11315 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
11316 of pointer_map.
11317
11318 2014-08-07 Marek Polacek <polacek@redhat.com>
11319
11320 * fold-const.c (fold_binary_loc): Add folding of
11321 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
11322
11323 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
11324
11325 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
11326 instead of type size.
11327 (ASM_FINISH_DECLARE_OBJECT): Likewise.
11328
11329 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
11330
11331 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
11332 (*thumb1_movqi_insn): Likewise.
11333 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
11334
11335 2014-08-07 Tom de Vries <tom@codesourcery.com>
11336
11337 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
11338 (glibc_2_11_or_earlier): Remove effective-target keywords.
11339
11340 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
11341
11342 * config/arm/arm.c (bdesc_2arg): Fix typo.
11343 (arm_atomic_assign_expand_fenv): Remove The default implementation.
11344
11345 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
11346
11347 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
11348
11349 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
11350
11351 PR debug/61923
11352 * haifa-sched.c (advance_one_cycle): Fix dump.
11353 (schedule_block): Don't advance cycle if we are already at the
11354 beginning of the cycle.
11355
11356 2014-08-06 Martin Jambor <mjambor@suse.cz>
11357
11358 PR ipa/61393
11359 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
11360
11361 2014-08-06 Richard Biener <rguenther@suse.de>
11362
11363 PR lto/62034
11364 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
11365 SCCs here.
11366 (lto_input_tree): Pop SCCs here.
11367
11368 2014-08-06 Richard Biener <rguenther@suse.de>
11369
11370 PR tree-optimization/61320
11371 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
11372 handle misaligned loads.
11373
11374 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
11375
11376 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
11377 (aarch64_expand_vec_perm_const): Check for dup before zip.
11378
11379 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11380
11381 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
11382 CONST_INT_P instead of GET_CODE and compare.
11383 (aarch64_select_cc_mode): Likewise.
11384 (aarch64_print_operand): Likewise.
11385 (aarch64_rtx_costs): Likewise.
11386 (aarch64_simd_valid_immediate): Likewise.
11387 (aarch64_simd_check_vect_par_cnst_half): Likewise.
11388 (aarch64_simd_emit_pair_result_insn): Likewise.
11389
11390 2014-08-05 David Malcolm <dmalcolm@redhat.com>
11391
11392 * gdbhooks.py (find_gcc_source_dir): New helper function.
11393 (class PassNames): New class, locating and parsing passes.def.
11394 (class BreakOnPass): New command "break-on-pass".
11395
11396 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
11397
11398 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
11399 getting olde.
11400
11401 2014-08-05 Richard Biener <rguenther@suse.de>
11402
11403 PR rtl-optimization/61672
11404 * emit-rtl.h (mem_attrs_eq_p): Declare.
11405 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
11406 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
11407 * cfgcleanup.c (merge_memattrs): Likewise.
11408 Include emit-rtl.h.
11409
11410 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11411
11412 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
11413 rather than singleton vectors.
11414 (vqdmlsls_lane_s32): Likewise.
11415
11416 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11417
11418 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
11419 Use VSDQ_HSI mode iterator.
11420 (aarch64_sqrdmulh_laneq<mode>): Likewise.
11421 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
11422 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
11423 Use BUILTIN_VDQHS macro.
11424 (sqrdmulh_laneq): Likewise.
11425 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
11426 (vqdmlals_laneq_s32): Likewise.
11427 (vqdmlslh_laneq_s16): Likewise.
11428 (vqdmlsls_laneq_s32): Likewise.
11429 (vqdmulhh_laneq_s16): Likewise.
11430 (vqdmulhs_laneq_s32): Likewise.
11431 (vqrdmulhh_laneq_s16): Likewise.
11432 (vqrdmulhs_laneq_s32): Likewise.
11433
11434 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11435
11436 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
11437 (vmuld_laneq_f64): Likewise.
11438 (vmuls_laneq_f32): Likewise.
11439 (vmul_n_f64): Likewise.
11440 (vmuld_lane_f64): Reimplement in C.
11441 (vmuls_lane_f32): Likewise.
11442
11443 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11444
11445 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
11446 to reservation.
11447 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
11448
11449 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11450
11451 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
11452 (rbitsi2): Likewise.
11453 (*arm_rev): Set predicable and predicable_short_it attributes.
11454
11455 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11456
11457 * convert.c (convert_to_integer): Guard transformation to lrint by
11458 -fno-math-errno.
11459
11460 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
11461
11462 * config/aarch64/aarch64-builtins.c
11463 (aarch64_simd_builtin_type_mode): Delete.
11464 (v8qi_UP): Remap to V8QImode.
11465 (v4hi_UP): Remap to V4HImode.
11466 (v2si_UP): Remap to V2SImode.
11467 (v2sf_UP): Remap to V2SFmode.
11468 (v1df_UP): Remap to V1DFmode.
11469 (di_UP): Remap to DImode.
11470 (df_UP): Remap to DFmode.
11471 (v16qi_UP):V16QImode.
11472 (v8hi_UP): Remap to V8HImode.
11473 (v4si_UP): Remap to V4SImode.
11474 (v4sf_UP): Remap to V4SFmode.
11475 (v2di_UP): Remap to V2DImode.
11476 (v2df_UP): Remap to V2DFmode.
11477 (ti_UP): Remap to TImode.
11478 (ei_UP): Remap to EImode.
11479 (oi_UP): Remap to OImode.
11480 (ci_UP): Map to CImode.
11481 (xi_UP): Remap to XImode.
11482 (si_UP): Remap to SImode.
11483 (sf_UP): Remap to SFmode.
11484 (hi_UP): Remap to HImode.
11485 (qi_UP): Remap to QImode.
11486 (aarch64_simd_builtin_datum): Make mode a machine_mode.
11487 (VAR1): Build builtin name.
11488 (aarch64_init_simd_builtins): Remove dead code.
11489
11490 2014-08-05 Roman Gareev <gareevroman@gmail.com>
11491
11492 * graphite-isl-ast-to-gimple.c:
11493 (set_options): New function.
11494 (scop_to_isl_ast): Add calling of set_options.
11495
11496 2014-08-05 Jakub Jelinek <jakub@redhat.com>
11497
11498 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
11499 (analyze_iv_to_split_insn): Don't initialize them.
11500 (get_ivts_expr): Removed.
11501 (allocate_basic_variable, insert_base_initialization): Use
11502 SET_SRC instead of *get_ivts_expr.
11503 (split_iv): Use &SET_SRC instead of get_ivts_expr.
11504
11505 2014-08-05 Roman Gareev <gareevroman@gmail.com>
11506
11507 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
11508 (translate_isl_ast_for_loop): Add checking of the
11509 flag_loop_parallelize_all.
11510 (ast_build_before_for): New function.
11511 (scop_to_isl_ast): Add checking of the
11512 flag_loop_parallelize_all.
11513 * graphite-dependences.c: Move the defenition of the
11514 scop_get_dependences from graphite-optimize-isl.c to this file.
11515 (apply_schedule_on_deps): Add checking of the ux's emptiness.
11516 (carries_deps): Add checking of the x's value.
11517 * graphite-optimize-isl.c: Move the defenition of the
11518 scop_get_dependences to graphite-dependences.c.
11519 * graphite-poly.h: Add declarations of scop_get_dependences
11520 and carries_deps.
11521
11522 2014-08-04 Rohit <rohitarulraj@freescale.com>
11523
11524 PR target/60102
11525 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
11526 names.
11527 (alt_reg_names): Likewise.
11528 (rs6000_dwarf_register_span): For SPE high registers, replace
11529 dwarf register numbers with GCC hard register numbers.
11530 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
11531 (rs6000_dbx_register_number): For SPE high registers, return dwarf
11532 register number for the corresponding GCC hard register number.
11533 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
11534 newly added GCC hard register numbers for SPE high registers.
11535 (DWARF_FRAME_REGISTERS): Likewise.
11536 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
11537 (DWARF_FRAME_REGNUM): Likewise.
11538 (FIXED_REGISTERS): Likewise.
11539 (CALL_USED_REGISTERS): Likewise.
11540 (CALL_REALLY_USED_REGISTERS): Likewise.
11541 (REG_ALLOC_ORDER): Likewise.
11542 (enum reg_class): Likewise.
11543 (REG_CLASS_NAMES): Likewise.
11544 (REG_CLASS_CONTENTS): Likewise.
11545 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
11546
11547 2014-08-04 Richard Biener <rguenther@suse.de>
11548
11549 * gimple-fold.h (gimple_fold_builtin): Remove.
11550 * gimple-fold.c (gimple_fold_builtin): Make static.
11551 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
11552 fold_stmt, not gimple_fold_builtin.
11553
11554 2014-08-04 Martin Liska <mliska@suse.cz>
11555
11556 * cgraph.h (csi_end_p): Removed.
11557 (csi_next): Likewise.
11558 (csi_node): Likewise.
11559 (csi_start): Likewise.
11560 (cgraph_node_in_set_p): Likewise.
11561 (cgraph_node_set_size): Likewise.
11562 (vsi_end_p): Likewise.
11563 (vsi_next): Likewise.
11564 (vsi_node): Likewise.
11565 (vsi_start): Likewise.
11566 (varpool_node_set_size): Likewise.
11567 (cgraph_node_set_nonempty_p): Likewise.
11568 (varpool_node_set_nonempty_p): Likewise.
11569 * cgraphunit.c (cgraph_process_new_functions): vec replaces
11570 cgraph_node_set.
11571 * ipa-inline-transform.c: Likewise.
11572 * ipa-utils.c (cgraph_node_set_new): Removed.
11573 (cgraph_node_set_add): Likewise.
11574 (cgraph_node_set_remove): Likewise.
11575 (cgraph_node_set_find): Likewise.
11576 (dump_cgraph_node_set): Likewise.
11577 (debug_cgraph_node_set): Likewise.
11578 (free_cgraph_node_set): Likewise.
11579 (varpool_node_set_new): Likewise.
11580 (varpool_node_set_add): Likewise.
11581 (varpool_node_set_remove): Likewise.
11582 (varpool_node_set_find): Likewise.
11583 (dump_varpool_node_set): Likewise.
11584 (free_varpool_node_set): Likewise.
11585 (debug_varpool_node_set): Likewise.
11586 * tree-emutls.c (struct tls_var_data):
11587 (emutls_index): Removed.
11588 (emutls_decl): Likewise.
11589 (gen_emutls_addr): Function implementation uses newly added
11590 hash_map<varpool_node *, tls_var_data>.
11591 (clear_access_vars): Likewise.
11592 (create_emultls_var): Likewise.
11593 (ipa_lower_emutls): Likewise.
11594 (reset_access): New function.
11595
11596 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11597
11598 * config/i386/i386.c (ix86_option_override_internal): Add
11599 PTA_RDRND and PTA_MOVBE for bdver4.
11600
11601 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11602 James Greenhalgh <james.greenhalgh@arm.com>
11603
11604 * doc/md.texi (clrsb): Document.
11605 (clz): Change reference to x into operand 1.
11606 (ctz): Likewise.
11607 (popcount): Likewise.
11608
11609 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11610
11611 PR target/61713
11612 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
11613 move to subtarget in serial version if result is ignored.
11614
11615 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11616 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11617
11618 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
11619 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
11620 (sched_analyze_insn): Update use of try_group_insn to
11621 sched_macro_fuse_insns.
11622 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
11623 arguments that are not conditional jumps.
11624
11625 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11626
11627 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
11628 family information. Handle BTVER2 cpu with cpuid family value.
11629
11630 2014-08-04 Tom de Vries <tom@codesourcery.com>
11631
11632 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
11633 (glibc_2_11_or_earlier): Document effective-target keywords.
11634
11635 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
11636
11637 * ipa-devirt.c (odr_type_warn_count): Add type.
11638 (possible_polymorphic_call_targets): Set it.
11639 (ipa_devirt): Use it.
11640
11641 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
11642
11643 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
11644 Document.
11645 * ipa-devirt.c: Include hash-map.h
11646 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
11647 (clear_speculation): Break out of ...
11648 (get_class_context): ... here; speed up handling obviously useless
11649 speculations.
11650 (odr_type_warn_count, decl_warn_count): New structures.
11651 (final_warning_record): New structure.
11652 (final_warning_records): New static variable.
11653 (possible_polymorphic_call_targets): Cleanup handling of
11654 speculative info; do not build speculation when user do not care;
11655 record info about warnings when asked for.
11656 (add_decl_warning): New function.
11657 (type_warning_cmp): New function.
11658 (decl_warning_cmp): New function.
11659 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
11660 (gate): Enable pass when warnings are requested.
11661 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
11662 options.
11663
11664 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
11665
11666 * hash-map.h (default_hashmap_traits::mark_key_deleted):
11667 Fix cast.
11668 (hash_map::remove): New method.
11669 (hash_map::traverse): New method.
11670 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
11671 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
11672 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
11673 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
11674 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
11675 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
11676 pointer_map.
11677
11678 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
11679
11680 * hash-set.h: new File.
11681 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
11682 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
11683 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
11684 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
11685 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
11686 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
11687 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
11688 varpool.c: Use hash_set instead of pointer_set.
11689
11690 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
11691
11692 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
11693
11694 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11695
11696 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
11697 for frame access when strict_p is false.
11698
11699 2014-08-01 Renlin Li <renlin.li@arm.com>
11700 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11701
11702 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
11703 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
11704 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
11705 Declaration.
11706 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
11707 predicate.
11708 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
11709 aarch64_mem_pair_offset.
11710
11711 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11712
11713 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
11714 offset.
11715 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
11716 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
11717
11718 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
11719
11720 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
11721
11722 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
11723
11724 PR regression/61510
11725 * cgraphunit.c (analyze_functions): Use get_create rather than get
11726 for decls which are clones of abstract functions.
11727
11728 2014-08-01 Martin Liska <mliska@suse.cz>
11729
11730 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
11731 * ipa-prop.h (count_formal_params): Global function created from static.
11732 * ipa-prop.c (count_formal_params): Likewise.
11733 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
11734 profiles for semantically equivalent functions.
11735 * passes.c (do_per_function): If we load body of a function
11736 during WPA, this condition should behave same.
11737 * varpool.c (ctor_for_folding): More tolerant assert for variable
11738 aliases created during WPA.
11739
11740 2014-08-01 Martin Liska <mliska@suse.cz>
11741
11742 * doc/invoke.texi (Options That Control Optimization): Documentation
11743 for -foptimize-strlen introduced. Optimization levels default options
11744 fixed.
11745
11746 2014-08-01 Jakub Jelinek <jakub@redhat.com>
11747
11748 * opts.c (common_handle_option): Handle -fsanitize=alignment.
11749 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
11750 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
11751 type to bool.
11752 * stor-layout.h (min_align_of_type): New prototype.
11753 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
11754 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
11755 check.
11756 * ubsan.c: Include builtins.h.
11757 (ubsan_expand_bounds_ifn): Change return type to bool,
11758 always return true.
11759 (ubsan_expand_null_ifn): Change return type to bool, change
11760 argument to gimple_stmt_iterator *. Handle both null and alignment
11761 sanitization, take type from ckind argument's type rather than
11762 first argument.
11763 (instrument_member_call): Removed.
11764 (instrument_mem_ref): Remove t argument, add mem and base arguments.
11765 Handle both null and alignment sanitization, don't say whole
11766 struct access is member access. Build 3 argument IFN_UBSAN_NULL
11767 call instead of 2 argument.
11768 (instrument_null): Adjust instrument_mem_ref caller. Don't
11769 instrument calls here.
11770 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
11771 like SANITIZE_NULL.
11772 * stor-layout.c (min_align_of_type): New function.
11773 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
11774 Or it into SANITIZE_UNDEFINED.
11775 * doc/invoke.texi (-fsanitize=alignment): Document.
11776
11777 2014-07-31 Andi Kleen <ak@linux.intel.com>
11778
11779 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
11780
11781 2014-07-31 Andi Kleen <ak@linux.intel.com>
11782
11783 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
11784 inchash.
11785 (vn_reference_compute_hash): Dito.
11786 (vn_nary_op_compute_hash): Dito.
11787 (vn_phi_compute_hash): Dito.
11788 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
11789
11790 2014-07-31 Andi Kleen <ak@linux.intel.com>
11791
11792 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
11793 Rename to inchash:add_expr_commutative. Convert to inchash.
11794 (iterative_hash_hashable_expr): Rename to
11795 inchash:add_hashable_expr. Convert to inchash.
11796 (avail_expr_hash): Dito.
11797
11798 2014-07-31 Andi Kleen <ak@linux.intel.com>
11799
11800 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
11801 Convert to inchash.
11802
11803 2014-07-31 Andi Kleen <ak@linux.intel.com>
11804
11805 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
11806
11807 2014-07-31 Andi Kleen <ak@linux.intel.com>
11808
11809 * Makefile.in (OBJS): Add rtlhash.o
11810 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
11811 (loc_checksum): Dito.
11812 (loc_checksum_ordered): Dito.
11813 (hash_loc_operands): Dito.
11814 (hash_locs): Dito.
11815 (hash_loc_list): Dito.
11816 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
11817 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
11818 * rtlhash.c: New file.
11819 * rtlhash.h: New file.
11820
11821 2014-07-31 Andi Kleen <ak@linux.intel.com>
11822
11823 * inchash.h (inchash): Change inchash class to namespace.
11824 (class hash): ... Rename from inchash.
11825 (add_object): Move from macro to class template.
11826 * lto-streamer-out.c (hash_tree): Change inchash
11827 to inchash::hash.
11828 * tree.c (build_type_attribute_qual_variant): Dito.
11829 (type_hash_list): Dito.
11830 (attribute_hash_list): Dito.
11831 (iterative_hstate_expr): Rename to inchash::add_expr
11832 (build_range_type_1): Change inchash to inchash::hash
11833 and use hash::add_expr.
11834 (build_array_type_1): Dito.
11835 (build_function_type): Dito
11836 (build_method_type_directly): Dito.
11837 (build_offset_type): Dito.
11838 (build_complex_type): Dito.
11839 (make_vector_type): Dito.
11840 * tree.h (iterative_hash_expr): Dito.
11841
11842 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
11843
11844 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
11845
11846 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
11847
11848 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
11849 correct alphabetical position.
11850 (vpaddd_f64): Rewrite using builtins.
11851 (vpaddd_s64): Move to correct alphabetical position.
11852 (vpaddd_u64): New.
11853
11854 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
11855
11856 PR target/61844
11857 * config/sh/sh.c (sh_legitimate_address_p,
11858 sh_legitimize_reload_address): Handle reg+reg address modes when
11859 ALLOW_INDEXED_ADDRESS is false.
11860 * config/sh/predicates.md (general_movsrc_operand,
11861 general_movdst_operand): Likewise.
11862
11863 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
11864
11865 * config/aarch64/aarch64-builtins.c
11866 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
11867 BYTES_BIG_ENDIAN.
11868
11869 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
11870
11871 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
11872 the generated mask based on BYTES_BIG_ENDIAN.
11873 (aarch64_simd_check_vect_par_cnst_half): New.
11874 * config/aarch64/aarch64-protos.h
11875 (aarch64_simd_check_vect_par_cnst_half): New.
11876 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
11877 the check out to aarch64_simd_check_vect_par_cnst_half.
11878 (vect_par_cnst_lo_half): Likewise.
11879 * config/aarch64/aarch64-simd.md
11880 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
11881 (move_hi_quad_<mode>): Always generate a low mask.
11882
11883 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11884
11885 * doc/invoke.texi (AVR Options): Add documentation about
11886 __AVR_DEVICE_NAME__ built-in macro.
11887
11888 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
11889
11890 PR target/61948
11891 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
11892 constraints are satisfied.
11893 (<shift>di3_neon): Likewise.
11894
11895 2014-07-31 Richard Biener <rguenther@suse.de>
11896
11897 PR tree-optimization/61964
11898 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
11899 by structural equality.
11900
11901 2014-07-31 Yury Gribov <y.gribov@samsung.com>
11902
11903 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
11904 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
11905 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
11906 New enums.
11907 * gcc.c (sanitize_spec_function): Support new option.
11908 (SANITIZER_SPEC): Remove now redundant check.
11909 * opts.c (common_handle_option): Support new option.
11910 (finish_options): Check for incompatibilities.
11911 * toplev.c (process_options): Split userspace-specific checks.
11912
11913 2014-07-31 Richard Biener <rguenther@suse.de>
11914
11915 * lto-streamer.h (struct output_block): Remove global.
11916 (struct data_in): Remove labels, num_named_labels and
11917 num_unnamed_labels.
11918 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
11919 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
11920
11921 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
11922
11923 PR c++/60517
11924 * common.opt (-Wreturn-local-addr): Moved from c.opt.
11925 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
11926 (isolate_path): New argument to avoid inserting a trap.
11927 (find_implicit_erroneous_behaviour): Handle returning the address
11928 of a local variable.
11929 (find_explicit_erroneous_behaviour): Likewise.
11930
11931 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
11932
11933 PR lto/61868
11934 * toplev.c (init_random_seed): Move piece of code never called to
11935 set_random_seed.
11936 (set_random_seed): see above.
11937
11938 2014-07-31 Tom de Vries <tom@codesourcery.com>
11939
11940 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
11941
11942 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
11943
11944 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
11945 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
11946
11947 2014-07-31 Richard Biener <rguenther@suse.de>
11948
11949 * data-streamer.h (streamer_write_data_stream): Declare here,
11950 renamed from ...
11951 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
11952 * lto-cgraph.c (lto_output_node): Adjust.
11953 (lto_output_varpool_node): Likewise.
11954 * data-streamer-out.c (streamer_string_index): Likewise.
11955 (streamer_write_data_stream, lto_append_block): Move from ...
11956 * lto-section-out.c (lto_output_data_stream,
11957 lto_append_block): ... here.
11958
11959 2014-07-30 Mike Stump <mikestump@comcast.net>
11960
11961 * configure.ac: Also check for popen.
11962 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
11963 * configure: Regenerate.
11964 * config.in: Regenerate.
11965
11966 2014-07-30 Martin Jambor <mjambor@suse.cz>
11967
11968 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
11969 parameter to gimple.
11970
11971 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11972
11973 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
11974 address as second parameter to __tpf_eh_return routine.
11975
11976 2014-07-30 Jiong Wang <jiong.wang@arm.com>
11977
11978 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
11979 Thumb2.
11980
11981 2014-07-30 Tom Tromey <tromey@redhat.com>
11982
11983 PR c/59855
11984 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
11985 * doc/extend.texi (Type Attributes): Document designated_init
11986 attribute.
11987
11988 2014-07-30 Roman Gareev <gareevroman@gmail.com>
11989
11990 * graphite-isl-ast-to-gimple.c:
11991 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
11992 (gcc_expression_from_isl_expression): Pass type to
11993 gcc_expression_from_isl_ast_expr_id.
11994
11995 2014-07-30 Richard Biener <rguenther@suse.de>
11996
11997 * lto-streamer.h (lto_write_data): New function.
11998 * langhooks.c (lhd_append_data): Do not free block.
11999 * lto-section-out.c (lto_write_data): New function writing
12000 raw data to the current section.
12001 (lto_write_stream): Adjust for langhook semantic change.
12002 (lto_destroy_simple_output_block): Write header directly.
12003 * lto-opts.c (lto_write_options): Write options directly.
12004 * lto-streamer-out.c (produce_asm): Write heaeder directly.
12005 (lto_output_toplevel_asms): Likewise.
12006 (copy_function_or_variable): Copy data directly.
12007 (write_global_references): Output index table directly.
12008 (lto_output_decl_state_refs): Likewise.
12009 (write_symbol): Write data directly.
12010 (produce_symtab): Adjust.
12011 (produce_asm_for_decls): Output header and refs directly.
12012
12013 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
12014
12015 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
12016 to speculative_targets
12017 (get_class_context): Fix handling of contextes without outer type;
12018 avoid matching non-polymorphic types in LTO.
12019 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
12020 parameter to speculative_targetsp; handle speculation.
12021 (dump_possible_polymorphic_call_targets): Update dumping.
12022
12023 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
12024
12025 * common.opt (Wodr): Enable by default.
12026
12027 2014-07-29 Olivier Hainque <hainque@adacore.com>
12028
12029 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
12030
12031 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
12032
12033 PR bootstrap/61914
12034 * gengtype.c (strtoken): New function.
12035 (create_user_defined_type): Replace strtok with strtoken.
12036
12037 2014-07-29 Nathan Sidwell <nathan@acm.org>
12038
12039 * gcov-io.c (gcov_var): Make hidden.
12040 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
12041 (gcov_do_dump): Declare.
12042 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
12043
12044 2014-07-29 Martin Jambor <mjambor@suse.cz>
12045
12046 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
12047 parameter to gimple.
12048 (sra_modify_assign): Likewise.
12049
12050 2014-07-29 Richard Biener <rguenther@suse.de>
12051
12052 PR middle-end/52478
12053 * expr.c (expand_expr_real_2): Revert last change.
12054
12055 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
12056
12057 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
12058 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
12059 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
12060 call.
12061 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
12062 (contains_type_p): Forward declare.
12063 (polymorphic_call_target_hasher::hash): Hash speculative info.
12064 (polymorphic_call_target_hasher::equal): Compare speculative info.
12065 (get_class_context): Handle speuclation.
12066 (contains_type_p): Update.
12067 (get_polymorphic_call_info_for_decl): Update.
12068 (walk_ssa_copies): Break out from ...
12069 (get_polymorphic_call_info): ... here; set speculative context
12070 before giving up.
12071 * ipa-prop.c (ipa_write_indirect_edge_info,
12072 ipa_read_indirect_edge_info): Stream speculative context.
12073 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
12074 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
12075 SPECULATIVE_MAYBE_DERIVED_TYPE).
12076 (possible_polymorphic_call_targets overriders): Update.
12077 (dump_possible_polymorphic_call_targets overriders): Update.
12078 (dump_possible_polymorphic_call_target_p overriders): Update.
12079
12080 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
12081
12082 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
12083 ipa-devirt path; fix thinko there.
12084
12085 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
12086
12087 * config/i386/i386.c (ix86_return_in_memory): Replace one
12088 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
12089
12090 2014-07-28 Marek Polacek <polacek@redhat.com>
12091
12092 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
12093
12094 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
12095
12096 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
12097 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
12098 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
12099 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12100 (USE_LD_AS_NEEDED): Likewise.
12101 (ASM_APP_ON): Likewise.
12102 (ASM_APP_OFF): Likewise.
12103 (TARGET_POSIX_IO): Likewise.
12104 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
12105 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12106 (USE_LD_AS_NEEDED): Likewise.
12107 (ASM_APP_ON): Likewise.
12108 (ASM_APP_OFF): Likewise.
12109 (TARGET_POSIX_IO): Likewise.
12110
12111 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
12112
12113 PR middle-end/61734
12114 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
12115 operators other than the equality operators.
12116
12117 2014-07-28 Richard Biener <rguenther@suse.de>
12118
12119 PR middle-end/52478
12120 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
12121 sure to register SImode ones, not only >= word_mode ones.
12122 * expr.c (expand_expr_real_2): When expanding -ftrapv
12123 binops do not use OPTAB_LIB_WIDEN.
12124
12125 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
12126
12127 PR middle-end/61919
12128 * tree-outof-ssa.c (insert_partition_copy_on_edge)
12129 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
12130 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
12131 inserting them in the insn stream.
12132
12133 2014-07-28 Marek Polacek <polacek@redhat.com>
12134
12135 PR middle-end/61913
12136 * common.opt (Wodr): Add Var.
12137
12138 2014-07-28 Richard Biener <rguenther@suse.de>
12139
12140 PR tree-optimization/61921
12141 * tree-ssa-structalias.c (create_variable_info_for_1): Check
12142 if there is a varpool node before dereferencing it.
12143
12144 2014-07-28 Roman Gareev <gareevroman@gmail.com>
12145
12146 * graphite-sese-to-poly.c:
12147 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
12148 id of the pbb), which contains pointer to the pbb1.
12149
12150 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
12151
12152 2014-07-28 Roman Gareev <gareevroman@gmail.com>
12153
12154 * graphite-isl-ast-to-gimple.c:
12155 (graphite_create_new_guard): New function.
12156 (translate_isl_ast_node_if): New function.
12157 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
12158
12159 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
12160
12161 2014-07-27 Anthony Green <green@moxielogic.com>
12162
12163 * config.gcc: Add moxie-*-moxiebox* configuration.
12164 * config/moxie/moxiebox.h: New file.
12165
12166 2014-07-26 Andrew Pinski <apinski@cavium.com>
12167
12168 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
12169 from the read only register.
12170
12171 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
12172
12173 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
12174 as the allocation class if it isn't likely to be spilled.
12175
12176 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
12177
12178 * rtl.h (tls_referenced_p): Declare.
12179 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
12180 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
12181 (mips_cannot_force_const_mem): Use tls_referenced_p.
12182 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
12183 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
12184 instead of pa_tls_referenced_p.
12185 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
12186 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
12187 (pa_legitimate_constant_p): Likewise.
12188 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
12189 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
12190 (rs6000_cannot_force_const_mem, rs6000_emit_move)
12191 (rs6000_address_for_altivec): Use tls_referenced_p instead of
12192 rs6000_tls_referenced_p.
12193 (rs6000_tls_symbol_ref_1): Delete.
12194
12195 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
12196
12197 PR target/44551
12198 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
12199 Optimize inverse of a VEC_CONCAT.
12200
12201 2014-07-25 Xinliang David Li <davidxl@google.com>
12202
12203 * params.def: New parameter.
12204 * coverage.c (get_coverage_counts): Check new flag.
12205 (coverage_compute_profile_id): Check new flag.
12206 (coverage_begin_function): Check new flag.
12207 (coverage_end_function): Check new flag.
12208 * value-prof.c (coverage_node_map_initialized_p): New function.
12209 (init_node_map): Populate map with all functions.
12210 * doc/invoke.texi: Document new parameter.
12211
12212 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
12213 Richard Biener <rguenther@suse.de>
12214
12215 * lto-streamer-out.c (struct sccs): Turn to ...
12216 (class DFS): ... this one; refactor the DFS walk so it can
12217 be re-done on per-SCC basis.
12218 (DFS::DFS): New constructor.
12219 (DFS::~DFS): New destructor.
12220 (hash_tree): Add new MAP argument holding in-SCC hash values;
12221 remove POINTER_TYPE hashing hack.
12222 (scc_entry_compare): Rename to ...
12223 (DFS::scc_entry_compare): ... this one.
12224 (hash_scc): Rename to ...
12225 (DFS::hash_scc): ... this one; pass output_block instead
12226 of streamer_cache; work harder to get unique and stable SCC
12227 hashes.
12228 (DFS_write_tree): Rename to ...
12229 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
12230 (lto_output_tree): Update.
12231
12232 2014-07-25 Andi Kleen <ak@linux.intel.com>
12233
12234 * lto-streamer-out.c (hash_tree): Convert to inchash.
12235
12236 2014-07-25 Andi Kleen <ak@linux.intel.com>
12237
12238 * tree.c (build_type_attribute_qual_variant): Use inchash.
12239 (type_hash_list): Dito.
12240 (attribute_hash_list): Dito
12241 (iterative_hstate_expr): Dito.
12242 (iterative_hash_expr): Dito.
12243 (build_range_type_1): Dito.
12244 (build_array_type_1): Dito.
12245 (build_function_type): Dito.
12246 (build_method_type_directly): Dito.
12247 (build_offset_type): Dito.
12248 (build_complex_type): Dito.
12249 (make_vector_type): Dito.
12250 * tree.h (iterative_hash_expr): Add compat wrapper.
12251 (iterative_hstate_expr): Add.
12252
12253 2014-07-25 Andi Kleen <ak@linux.intel.com>
12254
12255 * Makefile.in (OBJS): Add inchash.o.
12256 (PLUGIN_HEADERS): Add inchash.h.
12257 * ipa-devirt.c: Include inchash.h.
12258 * lto-streamer-out.c: Dito.
12259 * tree-ssa-dom.c: Dito.
12260 * tree-ssa-pre.c: Dito.
12261 * tree-ssa-sccvn.c: Dito.
12262 * tree-ssa-tail-merge.c: Dito.
12263 * asan.c: Dito.
12264 * tree.c (iterative_hash_hashval_t): Move to ...
12265 (iterative_hash_host_wide_int): Move to ...
12266 * inchash.c: Here. New file.
12267 * tree.h (iterative_hash_hashval_t): Move to ...
12268 (iterative_hash_host_wide_int): Move to ...
12269 * inchash.h: Here. New file.
12270
12271 2014-07-25 Richard Biener <rguenther@suse.de>
12272
12273 PR middle-end/61762
12274 PR middle-end/61894
12275 * fold-const.c (native_encode_int): Add and handle offset
12276 parameter to do partial encodings of expr.
12277 (native_encode_fixed): Likewise.
12278 (native_encode_real): Likewise.
12279 (native_encode_complex): Likewise.
12280 (native_encode_vector): Likewise.
12281 (native_encode_string): Likewise.
12282 (native_encode_expr): Likewise.
12283 * fold-const.c (native_encode_expr): Add offset parameter
12284 defaulting to -1.
12285 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
12286 (fold_ctor_reference): Handle all reads from tcc_constant
12287 ctors.
12288
12289 2014-07-25 Richard Biener <rguenther@suse.de>
12290
12291 * tree-inline.c (estimate_move_cost): Mark speed_p argument
12292 as possibly unused.
12293
12294 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12295
12296 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
12297
12298 2014-07-24 Kyle McMartin <kyle@redhat.com>
12299
12300 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
12301
12302 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12303
12304 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
12305 Add prototype.
12306 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
12307 function.
12308 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
12309 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
12310 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
12311
12312 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12313
12314 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
12315 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
12316 aggregate types. Instead, *all* aggregate types, except for single-
12317 element or homogeneous float/vector aggregates, are quadword-aligned
12318 if required by their type alignment. Issue -Wpsabi note when a type
12319 is now treated differently than before.
12320
12321 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12322
12323 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
12324 does not fit fully into floating-point registers, and there is still
12325 space in the register parameter area, use GPRs to pass those parts
12326 of the argument. Issue -Wpsabi note if any parameter is now treated
12327 differently than before.
12328 (rs6000_arg_partial_bytes): Update.
12329
12330 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
12331
12332 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
12333
12334 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12335
12336 * rtl.h (target_rtl): Remove lang_dependent_initialized.
12337 * toplev.c (initialize_rtl): Don't use it. Move previously
12338 "language-dependent" calls to...
12339 (backend_init): ...here.
12340 (lang_dependent_init_target): Don't set lang_dependent_initialized.
12341 Assert that RTL initialization hasn't happend yet.
12342
12343 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12344
12345 PR rtl-optimization/61629
12346 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
12347 they have already been initialized.
12348
12349 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12350
12351 PR middle-end/61268
12352 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
12353 DECL_INCOMING_RTL and entry_parm.
12354 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
12355 * calls.c (load_register_parameters): Likewise argument values.
12356 (emit_library_call_value_1, store_one_arg): Likewise argument
12357 save areas.
12358 * config/i386/i386.c (assign_386_stack_local): Likewise the local
12359 stack slot.
12360 * explow.c (validize_mem): Modify the argument in-place.
12361
12362 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12363
12364 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
12365 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
12366
12367 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12368
12369 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
12370 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
12371
12372 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12373
12374 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
12375 (aarch64_save_callee_saves): New parameter "skip_wb".
12376 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
12377
12378 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12379
12380 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
12381 "wb_candidate2".
12382 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
12383
12384 2014-07-24 Roman Gareev <gareevroman@gmail.com>
12385
12386 * graphite-isl-ast-to-gimple.c:
12387 (graphite_create_new_loop): Add calling of isl_id_free to properly
12388 decrement reference counts.
12389
12390 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
12391
12392 2014-07-24 Martin Liska <mliska@suse.cz>
12393 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
12394 function used.
12395 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
12396 (rs6000_code_end): Likewise.
12397
12398 2014-07-24 Martin Liska <mliska@suse.cz>
12399
12400 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
12401 symtab_node funtion used.
12402 (rs6000_xcoff_declare_object_name): Likewise.
12403
12404 2014-07-24 Martin Liska <mliska@suse.cz>
12405
12406 * cgraphunit.c (compile): Correct function used.
12407
12408 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
12409
12410 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
12411 as non-indexable.
12412
12413 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
12414
12415 PR lto/61802
12416 * varasm.c (bss_initializer_p): Handle offlined ctors.
12417 (align_variable, get_variable_align): Likewise.
12418 (make_decl_one_only): Likewise.
12419 (default_binds_local_p_1): Likewise.
12420 (decl_binds_to_current_def_p): Likewise.
12421 (get_variable_section): Get constructor if it is offlined.
12422 (assemble_variable_contents): Sanity check that the caller
12423 streamed in the ctor in LTO.
12424
12425 2014-07-24 Roman Gareev <gareevroman@gmail.com>
12426
12427 * graphite-isl-ast-to-gimple.c:
12428 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
12429 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
12430 isl_ast_op_pdiv_r to the different case.
12431
12432 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
12433
12434 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12435
12436 PR middle-end/61876
12437 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
12438 when flag_errno_math is on.
12439
12440 2014-07-24 Martin Liska <mliska@suse.cz>
12441
12442 * cgraph.h (varpool_node):
12443 (availability get_availability (void)):
12444 created from cgraph_variable_initializer_availability
12445 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
12446 created from: cgraph_variable_initializer_availability
12447 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
12448 (void finalize_named_section_flags (void)):
12449 created from varpool_finalize_named_section_flags
12450 (bool assemble_decl (void)): created from varpool_assemble_decl
12451 (void analyze (void)): created from varpool_analyze_node
12452 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
12453 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
12454 (void remove_initializer (void)): created from varpool_remove_initializer
12455 (tree get_constructor (void)): created from varpool_get_constructor
12456 (bool externally_visible_p (void)): created from varpool_externally_visible_p
12457 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
12458 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
12459 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
12460 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
12461 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
12462 (static bool output_variables (void)): created from varpool_output_variables
12463 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
12464 created from varpool_extra_name_alias
12465 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
12466 (static void dump_varpool (FILE *f)): created from dump_varpool
12467 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
12468 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
12469 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
12470 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
12471 (void assemble_aliases (void)): created from assemble_aliases
12472
12473 2014-07-24 Martin Liska <mliska@suse.cz>
12474
12475 * cgraph.h (symtab_node):
12476 (void register_symbol (void)): created from symtab_register_node
12477 (void remove (void)): created from symtab_remove_node
12478 (void dump (FILE *f)): created from dump_symtab_node
12479 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
12480 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
12481 (struct ipa_ref *add_reference (symtab_node *referred_node,
12482 enum ipa_ref_use use_type)): created from add_reference
12483 (struct ipa_ref *add_reference (symtab_node *referred_node,
12484 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
12485 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
12486 gimple stmt)): created from maybe_add_reference
12487 (bool semantically_equivalent_p (symtab_node *target)): created from
12488 symtab_semantically_equivalent_p
12489 (void remove_from_same_comdat_group (void)): created from
12490 remove_from_same_comdat_group
12491 (void add_to_same_comdat_group (symtab_node *old_node)): created from
12492 symtab_add_to_same_comdat_group
12493 (void dissolve_same_comdat_group_list (void)): created from
12494 symtab_dissolve_same_comdat_group_list
12495 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
12496 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
12497 created from symtab_alias_ultimate_target
12498 (inline symtab_node *next_defined_symbol (void)): created from
12499 symtab_next_defined_symbol
12500 (bool resolve_alias (symtab_node *target)): created from
12501 symtab_resolve_alias
12502 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
12503 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
12504 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
12505 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
12506 (void set_section (const char *section)): created from set_section_1
12507 (enum availability get_availability (void)): created from symtab_node_availability
12508 (void make_decl_local (void)): created from symtab_make_decl_local
12509 (bool real_symbol_p (void)): created from symtab_read_node
12510 (can_be_discarded_p (void)): created from symtab_can_be_discarded
12511 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
12512 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
12513 symtab_in_same_comdat_p;
12514 (bool address_taken_from_non_vtable_p (void)): created from
12515 address_taken_from_non_vtable_p
12516 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
12517 (static void dump_table (FILE *)): created from dump_symtab
12518 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
12519 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
12520 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
12521 symtab_used_from_object_file_p
12522 (void dump_base (FILE *)): created from dump_symtab_base
12523 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
12524 (void unregister (void)): created from symtab_unregister_node
12525 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
12526 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
12527 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
12528 symtab_nonoverwritable_alias_1
12529 * cgraph.h (cgraph_node):
12530 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
12531 created from cgraph_remove_node_and_inline_clones
12532 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
12533 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
12534 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
12535 (cgraph_node *function_symbol (enum availability *avail = NULL)):
12536 created from cgraph_function_node
12537 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
12538 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
12539 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
12540 created from cgraph_create_clone
12541 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
12542 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
12543 created from cgraph_create_virtual_clone
12544 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
12545 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
12546 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
12547 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
12548 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
12549 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
12550 created from cgraph_function_version_info
12551 (struct cgraph_function_version_info *insert_new_function_version (void)):
12552 created from insert_new_cgraph_node_version
12553 (struct cgraph_function_version_info *function_version (void)): created from
12554 get_cgraph_node_version
12555 (void analyze (void)): created from analyze_function
12556 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
12557 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
12558 tree real_alias) cgraph_add_thunk
12559 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
12560 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
12561 created from cgraph_function_or_thunk_node
12562 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
12563 created from expand_thunk
12564 (void reset (void)): created from cgraph_reset_node
12565 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
12566 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
12567 (void remove (void)): created from cgraph_remove_node
12568 (void dump (FILE *f)): created from dump_cgraph_node
12569 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
12570 (bool get_body (void)): created from cgraph_get_body
12571 (void release_body (void)): created from cgraph_release_function_body
12572 (void unnest (void)): created from cgraph_unnest_node
12573 (void make_local (void)): created from cgraph_make_node_local
12574 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
12575 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
12576 gcov_type count, int freq)): created from cgraph_create_edge
12577 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
12578 gcov_type count, int freq)): created from cgraph_create_indirect_edge
12579 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
12580 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
12581 created from cgraph_create_edge_including_clones
12582 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
12583 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
12584 (void remove_callers (void)): created from cgraph_node_remove_callers
12585 (void remove_callees (void)): created from cgraph_node_remove_callees
12586 (enum availability get_availability (void)): created from cgraph_function_body_availability
12587 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
12588 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
12589 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
12590 (void call_duplication_hooks (cgraph_node *node2)): created from
12591 cgraph_call_node_duplication_hooks
12592 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
12593 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
12594 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
12595 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
12596 (void call_function_insertion_hooks (void)):
12597 created from cgraph_call_function_insertion_hooks
12598 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
12599 (bool local_p (void)): created from cgraph_local_node
12600 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
12601 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
12602 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
12603 (inline bool only_called_directly_or_aliased_p (void)):
12604 created from cgraph_only_called_directly_or_aliased_p
12605 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
12606 created from cgraph_will_be_removed_from_program_if_no_direct_calls
12607 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
12608 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
12609 (bool can_remove_if_no_direct_calls_p (void)):
12610 created from cgraph_can_remove_if_no_direct_calls_p
12611 (inline bool has_gimple_body_p (void)):
12612 created from cgraph_function_with_gimple_body_p
12613 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
12614 (static void dump_cgraph (FILE *f)): created from dump_cgraph
12615 (static inline void debug_cgraph (void)): created from debug_cgraph
12616 (static void record_function_versions (tree decl1, tree decl2)):
12617 created from record_function_versions
12618 (static void delete_function_version (tree decl)):
12619 created from delete_function_version
12620 (static void add_new_function (tree fndecl, bool lowered)):
12621 created from cgraph_add_new_function
12622 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
12623 (static cgraph_node * create (tree decl)): created from cgraph_create_node
12624 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
12625 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
12626 (static cgraph_node *get_for_asmname (tree asmname)):
12627 created from cgraph_node_for_asm
12628 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
12629 created from cgraph_same_body_alias
12630 (static bool used_from_object_file_p_worker (cgraph_node *node,
12631 void *): new function
12632 (static bool non_local_p (cgraph_node *node, void *)):
12633 created from cgraph_non_local_node_p_1
12634 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
12635 created from verify_cgraph
12636 (static bool make_local (cgraph_node *node, void *)):
12637 created from cgraph_make_node_local
12638 (static cgraph_node *create_alias (tree alias, tree target)):
12639 created from cgraph_create_function_alias
12640 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
12641 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
12642 created from cgraph_create_edge_1
12643 * cgraph.h (varpool_node):
12644 (void remove (void)): created from varpool_remove_node
12645 (void dump (FILE *f)): created from dump_varpool_node
12646
12647 2014-07-24 Richard Biener <rguenther@suse.de>
12648
12649 PR ipa/61823
12650 * tree-ssa-structalias.c (create_variable_info_for_1):
12651 Use varpool_get_constructor.
12652 (create_variable_info_for): Likewise.
12653
12654 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12655
12656 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
12657 subtract outgoing area size when restoring stack_pointer_rtx.
12658
12659 2014-07-24 Nick Clifton <nickc@redhat.com>
12660
12661 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
12662 that operations are taking place in parallel.
12663 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
12664
12665 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
12666
12667 * omp-low.c (extract_omp_for_data): Add missing break statement.
12668
12669 2014-07-24 Richard Biener <rguenther@suse.de>
12670
12671 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
12672 * tree-inline.c (estimate_move_cost): Add speed_p parameter
12673 and adjust MOVE_RATIO query accordingly.
12674 (estimate_num_insns): Adjust callers.
12675 * ipa-prop.c (ipa_populate_param_decls): Likewise.
12676 * ipa-cp.c (gather_context_independent_values,
12677 estimate_local_effects): Likewise.
12678 * ipa-split.c (consider_split): Likewise.
12679
12680 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
12681
12682 * config/i386/driver-i386.c: Remove names of unused arguments and
12683 unnecessary unused attributes.
12684 * config/i386/host-mingw32.c: Likewise.
12685 * config/i386/i386.c: Likewise.
12686 * config/i386/winnt-stubs.c: Likewise.
12687 * config/i386/winnt.c: Likewise.
12688
12689 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12690
12691 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
12692 (aarch64_gen_loadwb_pair): New helper function.
12693 (aarch64_expand_epilogue): Simplify code using new helper functions.
12694 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
12695
12696 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12697
12698 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
12699 (aarch64_gen_storewb_pair): New helper function.
12700 (aarch64_expand_prologue): Simplify code using new helper functions.
12701 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
12702
12703 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12704
12705 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
12706 Rename to aarch64_save_callee_saves, remove restore code.
12707 (aarch64_restore_callee_saves): New function.
12708
12709 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12710
12711 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
12712 (aarch64_save_callee_saves): New function to handle reg save
12713 for both core and vectore regs.
12714
12715 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12716
12717 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
12718 (aarch64_gen_store_pair): New helper function.
12719 (aarch64_save_or_restore_callee_save_registers)
12720 (aarch64_save_or_restore_fprs): Use new helper functions.
12721
12722 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12723
12724 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
12725 (aarch64_save_or_restore_callee_save_registers)
12726 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
12727
12728 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12729
12730 * config/aarch64/aarch64.c
12731 (aarch64_save_or_restore_callee_save_registers)
12732 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
12733
12734 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12735
12736 * config/aarch64/aarch64.c
12737 (aarch64_save_or_restore_callee_save_registers)
12738 (aarch64_save_or_restore_fprs): Remove 'increment'.
12739
12740 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12741
12742 * config/aarch64/aarch64.c
12743 (aarch64_save_or_restore_callee_save_registers)
12744 (aarch64_save_or_restore_fprs): Use register offset in
12745 cfun->machine->frame.reg_offset.
12746
12747 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12748
12749 * config/aarch64/aarch64.c
12750 (aarch64_save_or_restore_callee_save_registers)
12751 (aarch64_save_or_restore_fprs): Remove base_rtx.
12752
12753 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12754
12755 * config/aarch64/aarch64.c
12756 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
12757 to 'start_offset'. Remove local variable 'start_offset'.
12758
12759 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12760
12761 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
12762 type to HOST_WIDE_INT.
12763
12764 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12765
12766 * config/aarch64/aarch64.c (aarch64_expand_prologue)
12767 (aarch64_save_or_restore_fprs)
12768 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
12769
12770 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
12771
12772 * config/arm/t-rtems-eabi: Add
12773 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
12774 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
12775 mbig-endian/mthumb/march=armv7-r, and
12776 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
12777 multilibs.
12778
12779 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
12780 Chris Johns <chrisj@rtems.org>
12781 Joel Sherrill <joel.sherrill@oarcorp.com>
12782
12783 * config.gcc: Add nios2-*-rtems*.
12784 * config/nios2/rtems.h: New file.
12785 * gcc/config/nios2/t-rtems: New file.
12786
12787 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
12788
12789 PR target/61396
12790 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
12791 constant numbers, not general constants.
12792 (rs6000_expand_vector_init): Ditto.
12793
12794 2014-07-23 Nathan Sidwell <nathan@acm.org>
12795
12796 * gcov-tool.c (gcov_list): Declare here.
12797 (set_gcov_list): Remove.
12798 (gcov_output_files): Set gcov_list directly.
12799
12800 2014-07-23 Host Schirmeier <horst@schirmeier.com>
12801
12802 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
12803
12804 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12805
12806 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
12807 callee-saved registers are available for padding purpose
12808 and r3 is not mandatory, then prefer use those callee-saved
12809 instead of r3.
12810
12811 2014-07-23 Richard Biener <rguenther@suse.de>
12812
12813 * params.def (PARAM_MAX_COMBINE_INSNS): New.
12814 * combine.c: Include statistics.h and params.h.
12815 (combine_instructions): Guard three and four insn combines
12816 with max-combine-insns value. Record statistics for combines
12817 performed.
12818 * doc/invoke.texi (max-combine-insns): Document new param.
12819
12820 2014-07-23 Roman Gareev <gareevroman@gmail.com>
12821
12822 * graphite-isl-ast-to-gimple.c:
12823 (translate_isl_ast_node_block): New function.
12824 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
12825
12826 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
12827 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
12828
12829 2014-07-23 Roman Gareev <gareevroman@gmail.com>
12830
12831 * graphite-isl-ast-to-gimple.c:
12832 (get_max_schedule_dimensions): New function.
12833 (extend_schedule): Likewise.
12834 (generate_isl_schedule): Add calling of extend_schedule and
12835 get_max_schedule_dimensions.
12836
12837 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12838
12839 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
12840 (case UNSPEC): Handle UNSPEC_RBIT.
12841
12842 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12843
12844 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
12845 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
12846
12847 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12848
12849 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
12850
12851 2014-07-22 Roman Gareev <gareevroman@gmail.com>
12852
12853 * graphite-isl-ast-to-gimple.c:
12854 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
12855 (ivs_params_clear):
12856 (build_iv_mapping): New function.
12857 (translate_isl_ast_node_user): Likewise.
12858 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
12859
12860 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
12861 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
12862 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
12863
12864 2014-07-21 Bin Cheng <bin.cheng@arm.com>
12865
12866 PR target/55701
12867 * config/arm/arm.md (setmem): New pattern.
12868 * config/arm/arm-protos.h (struct tune_params): New fields.
12869 (arm_gen_setmem): New prototype.
12870 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
12871 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
12872 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
12873 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
12874 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
12875 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
12876 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
12877 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
12878 (arm_const_inline_cost): New function.
12879 (arm_block_set_max_insns): New function.
12880 (arm_block_set_non_vect_profit_p): New function.
12881 (arm_block_set_vect_profit_p): New function.
12882 (arm_block_set_unaligned_vect): New function.
12883 (arm_block_set_aligned_vect): New function.
12884 (arm_block_set_unaligned_non_vect): New function.
12885 (arm_block_set_aligned_non_vect): New function.
12886 (arm_block_set_vect, arm_gen_setmem): New functions.
12887
12888 2014-07-21 Bin Cheng <bin.cheng@arm.com>
12889
12890 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
12891
12892 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
12893
12894 PR target/61855
12895 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
12896 out of #ifdef __OPTIMIZE__.
12897
12898 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
12899
12900 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
12901 different trapping status if -fnon-call-exceptions is enabled.
12902
12903 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
12904
12905 * expr.c (store_field): Handle VOIDmode for calls that return values
12906 in multiple locations.
12907
12908 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12909
12910 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
12911 (altivec_vsldoi_<mode>): Likewise.
12912
12913 2014-07-20 Roman Gareev <gareevroman@gmail.com>
12914
12915 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
12916 to the number of characters in the line.
12917
12918 2014-07-20 Roman Gareev <gareevroman@gmail.com>
12919
12920 * graphite-isl-ast-to-gimple.c: Add using of
12921 build_nonstandard_integer_type instead of int128_integer_type_node.
12922
12923 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
12924
12925 * toplev.c (output_stack_usage): Adjust the location of the warning.
12926
12927 2014-07-19 Daniel Cederman <cederman@gaisler.com>
12928
12929 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
12930 (*membar_storeload): Disable for LEON3.
12931
12932 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12933
12934 PR rtl-optimization/61461
12935 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
12936
12937 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
12938
12939 PR target/61794
12940 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
12941 Fix instruction constraint.
12942 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
12943
12944 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
12945
12946 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
12947
12948 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
12949
12950 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
12951 GNU coding standards.
12952 (nds32_register_move_cost): Likewise.
12953 (nds32_memory_move_cost): Likewise.
12954 (nds32_address_cost): Likewise.
12955
12956 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12957
12958 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
12959
12960 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
12961
12962 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
12963 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
12964 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
12965 (HAVE_sync_compare_and_swapqi): Define.
12966 (HAVE_sync_compare_and_swaphi): Likewise.
12967 (HAVE_sync_compare_and_swapsi): Likewise.
12968
12969 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
12970
12971 * config/mips/p5600.md: Add missing cpu tests.
12972
12973 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12974
12975 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
12976 (vmla_f64): Likewise.
12977 (vfms_f64): Likewise.
12978 (vmls_f64): Likewise.
12979
12980 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12981
12982 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
12983 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
12984
12985 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12986
12987 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
12988 (vmlal_high_lane_s32): Likewise.
12989 (vmlal_high_lane_u16): Likewise.
12990 (vmlal_high_lane_u32): Likewise.
12991 (vmlsl_high_lane_s16): Likewise.
12992 (vmlsl_high_lane_s32): Likewise.
12993 (vmlsl_high_lane_u16): Likewise.
12994 (vmlsl_high_lane_u32): Likewise.
12995
12996 2014-07-17 Terry Guo <terry.guo@arm.com>
12997
12998 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
12999 (alus_reg): Renamed to alus_sreg.
13000 * config/arm/arm-fixed.md: Change type of non-dsp instructions
13001 from alu_reg to alu_sreg. Change type of dsp instructions from
13002 alu_reg to alu_dsp_reg.
13003 * config/arm/thumb1.md: Likewise.
13004 * config/arm/thumb2.md: Likewise.
13005 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
13006 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
13007 with alu_sreg and alus_sreg.
13008 * config/arm/arm1026ejs.md (alu_op): Likewise.
13009 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
13010 * config/arm/arm926ejs.md (9_alu_op): Likewise.
13011 * config/arm/fa526.md (526_alu_op): Likewise.
13012 * config/arm/fa606te.md (606te_alu_op): Likewise.
13013 * config/arm/fa626te.md (626te_alu_op): Likewise.
13014 * config/arm/fa726te.md (726te_alu_op): Likewise.
13015 * config/arm/fmp626.md (mp626_alu_op): Likewise.
13016 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
13017 alu_sreg, alu_dsp_reg and alus_sreg.
13018 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
13019 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13020 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13021 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
13022 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
13023 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13024 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13025 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
13026 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
13027 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
13028 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
13029 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
13030 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
13031 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
13032 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
13033 alus_reg to alus_sreg.
13034
13035 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
13036
13037 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
13038 infinity format.
13039
13040 2014-07-17 Richard Biener <rguenther@suse.de>
13041
13042 PR rtl-optimization/61801
13043 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
13044 don't set reg_pending_barrier if it appears in a debug-insn.
13045
13046 2014-07-16 DJ Delorie <dj@redhat.com>
13047
13048 * config/rx/rx.c (rx_option_override): Fix alignment values.
13049 (rx_align_for_label): Likewise.
13050
13051 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
13052
13053 PR target/61737.
13054 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
13055 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
13056 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
13057 functions.
13058 (cris_print_index, cris_print_operand, cris_constant_index_p)
13059 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
13060 (cris_address_cost): Ditto last CONSTANT_P.
13061 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
13062 callers changed. Yield cris_offsettable_symbol for non-PIC
13063 constant symbolic expressions including labels. Yield cris_unspec
13064 for all unspecs.
13065 (cris_expand_pic_call_address): New parameter MARKERP. Set its
13066 target to pic_offset_table_rtx for calls that will likely go
13067 through PLT, const0_rtx when they can't. All callers changed.
13068 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
13069 symbolic expressions to be PICified. Remove second, redundant,
13070 assert on can_create_pseudo_p returning non-zero. Use
13071 replace_equiv_address_nv, not replace_equiv_address, for final
13072 operand update.
13073 * config/cris/cris.md ("movsi"): Move variable t to pattern
13074 toplevel. Adjust assert for new cris_symbol_type member. Use
13075 CONSTANT_P instead of CONSTANT_ADDRESS_P.
13076 ("*movsi_internal") <case 9>: Make check for valid unspec operands
13077 for lapc stricter.
13078 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
13079 ("call", "call_value"): Use second incoming operand as a marker
13080 for pic-offset-table-register being used.
13081 ("*expanded_call_non_v32", "*expanded_call_v32")
13082 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
13083 second incoming operand to CALL, match cris_call_type_marker.
13084 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
13085 ("*expanded_call_side"): Ditto. Fix typo in comment.
13086 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
13087 CONSTANT_P.
13088 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
13089 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
13090 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
13091 users changed. Add members cris_offsettable_symbol and cris_unspec.
13092 (cris_symbol_type): Rename from cris_pic_symbol_type.
13093 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
13094 just CONSTANT_P.
13095 * config/cris/cris-protos.h (cris_symbol_type_of,
13096 cris_expand_pic_call_address): Adjust prototypes.
13097 (cris_legitimate_constant_p): New prototype.
13098
13099 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
13100 an existing tmake_file. Don't add t-slibgcc and t-linux.
13101
13102 2014-07-17 Jason Merrill <jason@redhat.com>
13103
13104 PR c++/61623
13105 * symtab.c (symtab_remove_from_same_comdat_group): Also
13106 set_comdat_group to NULL_TREE.
13107 (verify_symtab): Fix diagnostic.
13108
13109 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
13110
13111 PR target/61662
13112 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
13113
13114 2014-07-16 Dodji Seketeli <dodji@redhat.com>
13115
13116 Support location tracking for built-in macro tokens
13117 * input.h (is_location_from_builtin_token): New function declaration.
13118 * input.c (is_location_from_builtin_token): New function definition.
13119 * toplev.c (general_init): Tell libcpp what the pre-defined
13120 spelling location for built-in tokens is.
13121
13122 2014-07-16 Jakub Jelinek <jakub@redhat.com>
13123
13124 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
13125 on the FUNCTION_DECL.
13126
13127 2014-07-16 Richard Biener <rguenther@suse.de>
13128
13129 PR other/61782
13130 * doc/extend.texi (always_inline): Clarify.
13131
13132 2014-07-15 Eric Christopher <echristo@gmail.com>
13133
13134 * doc/invoke.texi (Link Options): Document -z option.
13135
13136 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
13137
13138 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
13139 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13140
13141 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
13142
13143 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
13144
13145 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
13146
13147 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
13148 varpool_assemble_decl.
13149 * varpool.c (varpool_assemble_decl): Assert that node->definition is
13150 true.
13151
13152 2014-07-15 Michael Matz <matz@suse.de>
13153
13154 PR rtl-optimization/61772
13155 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
13156
13157 2014-07-15 Richard Biener <rguenther@suse.de>
13158
13159 * opts.c (default_options_table): Disable bit-ccp at -Og.
13160
13161 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
13162
13163 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
13164
13165 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
13166
13167 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
13168 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
13169 call langhook for unknown declaration.
13170 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
13171 * tree.h (DECL_ARGUMENTS): Update.
13172 * print-tree.c (print_node): Update.
13173 * tree-core.h (tree_decl_non_common): Remove arguments.
13174 (tree_function_decl): Add arguments.
13175
13176 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
13177
13178 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
13179
13180 2014-07-14 Richard Biener <rguenther@suse.de>
13181
13182 PR tree-optimization/61779
13183 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
13184 simplifying a condition.
13185
13186 2014-07-14 Richard Biener <rguenther@suse.de>
13187
13188 * builtins.c (c_strlen): Make only_value == 2 really only
13189 affect warning generation.
13190
13191 2014-07-14 Richard Biener <rguenther@suse.de>
13192
13193 PR tree-optimization/61757
13194 PR tree-optimization/61783
13195 PR tree-optimization/61787
13196 * tree-ssa-dom.c (record_equality): Revert canonicalization
13197 change and add comment.
13198 (propagate_rhs_into_lhs): Revert previous fix, removing
13199 loop depth restriction again.
13200
13201 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13202
13203 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
13204 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13205 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13206 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
13207 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13208 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13209 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
13210
13211 2014-07-14 Richard Biener <rguenther@suse.de>
13212
13213 * cgraph.h (decl_in_symtab_p): Make inline.
13214
13215 2014-07-14 Jakub Jelinek <jakub@redhat.com>
13216
13217 PR middle-end/61294
13218 * doc/invoke.texi (-Wmemset-transposed-args): Document.
13219
13220 PR target/61656
13221 * config/i386/i386.c (classify_argument): Don't merge classes above
13222 number of words.
13223
13224 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
13225
13226 * cgraph.h (symtab_node): Add nonzero_address.
13227 (decl_in_symtab_p): Break out from ...
13228 (symtab_get_node): ... here.
13229 * fold-const.c: Include cgraph.h
13230 (tree_single_nonzero_warnv_p): Use symtab to determine
13231 if symbol is non-zero.
13232 * symtab.c (symtab_node::nonzero_address): New method.
13233
13234 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
13235
13236 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
13237 forgotten in previous commit.
13238
13239 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
13240
13241 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
13242 on builtin types.
13243 * ipa-devirt.c: Include stor-layout.h and intl.h
13244 (odr_subtypes_equivalent_p): New function.
13245 (warn_odr): New function.
13246 (warn_type_mismatch): New function.
13247 (odr_types_equivalent_p): New function.
13248 (add_type_duplicate): Use it.
13249 * common.opt (Wodr): New flag.
13250 * doc/invoke.texi (Wodr): Document new warning.
13251
13252 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
13253
13254 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
13255 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
13256 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
13257 (varpool_get_constructor): Push CTORS_IN timevar.
13258 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
13259
13260 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
13261
13262 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
13263 Remove VOID_FTYPE_PUSHORT.
13264 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
13265 Change code to USHORT_FTYPE_VOID.
13266 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
13267 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
13268 (ix86_atomic_assign_expand_fenv): Update for
13269 __builtin_ia32_fnstsw changes.
13270 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
13271 (fnstsw): Change operand 0 to nonimmediate operand.
13272
13273 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13274
13275 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
13276 (varpool_get_constructor): New function.
13277 (varpool_ctor_useable_for_folding_p): Break out from ...
13278 (ctor_for_folding): ... here; use varpool_get_constructor.
13279 (varpool_assemble_decl): Likewise.
13280 * lto-streamer.h (struct output_block): Turn cgraph_node
13281 to symbol filed.
13282 (lto_input_variable_constructor): Declare.
13283 * ipa-visibility.c (function_and_variable_visibility): Use
13284 varpool_get_constructor.
13285 * cgraph.h (varpool_get_constructor): Declare.
13286 (varpool_ctor_useable_for_folding_p): New function.
13287 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
13288 parameter; return error_mark_node for non-trivial constructors.
13289 (lto_write_tree_1, DFS_write_tree): Update use of
13290 get_symbol_initial_value.
13291 (output_function): Update initialization of symbol.
13292 (output_constructor): New function.
13293 (copy_function): Rename to ..
13294 (copy_function_or_variable): ... this one; handle vars too.
13295 (lto_output): Output variable sections.
13296 * lto-streamer-in.c (input_constructor): New function.
13297 (lto_read_body): Rename from ...
13298 (lto_read_body_or_constructor): ... this one; handle vars too.
13299 (lto_input_variable_constructor): New function.
13300 * ipa-prop.c (ipa_prop_write_jump_functions,
13301 ipa_prop_write_all_agg_replacement): Update.
13302 * lto-cgraph.c (compute_ltrans_boundary): Use it.
13303 (output_cgraph_opt_summary): Set symbol to NULL.
13304
13305 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13306
13307 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
13308 non-polymorphic types.
13309 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
13310 * ipa-devirt.c (types_same_for_odr): Do not explode when one
13311 of types is not polymorphic.
13312
13313 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
13314
13315 * lra-constraints.c (remove_inheritance_pseudos): Process
13316 destination pseudo too.
13317
13318 2014-07-11 Rong Xu <xur@google.com>
13319
13320 * gcov-tool.c (gcov_output_files): Fix build error introduced in
13321 commit r212448.
13322
13323 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13324
13325 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
13326 * config/avr/avr-devices.c (AVR_MCU): Same.
13327 (avr_mcu_types): add text start value to end of device list.
13328 * config/avr/avr-mcus.def: Add text section start for all devices.
13329 (ata5782): Add new avr5 device.
13330 (ata5831): Same.
13331 * config/avr/avr-tables.opt: Regenerate.
13332 * config/avr/avr.h: Add declaration for text section start handler.
13333 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
13334 SPEC functions.
13335 (LINK_SPEC): Include text section start handler to linker spec.
13336 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
13337 pass -Ttext option to linker if the text section start for the device
13338 is not zero.
13339 * config/avr/t-multilib: Regenerate.
13340 * doc/avr-mmcu.texi: Regenerate.
13341
13342 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
13343
13344 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
13345 * config/rs6000/aix52.h (LINK_SPEC): Same.
13346 * config/rs6000/aix53.h (LINK_SPEC): Same.
13347 * config/rs6000/aix61.h (LINK_SPEC): Same.
13348 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
13349
13350 2014-07-11 Roman Gareev <gareevroman@gmail.com>
13351
13352 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
13353 (graphite_verify): New function.
13354 (ivs_params_clear): New function.
13355 (gcc_expression_from_isl_ast_expr_id): New function.
13356 (gcc_expression_from_isl_expr_int): New function.
13357 (binary_op_to_tree): New function.
13358 (ternary_op_to_tree): New function.
13359 (unary_op_to_tree): New function.
13360 (nary_op_to_tree): New function.
13361 (gcc_expression_from_isl_expr_op): New function.
13362 (gcc_expression_from_isl_expression): New function.
13363 (graphite_create_new_loop): New function.
13364 (translate_isl_ast_for_loop): New function.
13365 (get_upper_bound): New function.
13366 (graphite_create_new_loop_guard): New function.
13367 (translate_isl_ast_node_for): New function.
13368 (translate_isl_ast): New function.
13369 (add_parameters_to_ivs_params): New function.
13370 (scop_to_isl_ast): New parameter ip.
13371 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
13372
13373 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13374
13375 * config/xtensa/predicates.md (call expander): Update for
13376 DECL_SECTION_NAME being string.
13377
13378 2014-07-11 Richard Biener <rguenther@suse.de>
13379
13380 PR middle-end/61473
13381 * builtins.c (fold_builtin_memory_op): Inline memory moves that
13382 can be implemented with a single load followed by a single store.
13383 (c_strlen): Only warn when only_value is not 2.
13384
13385 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
13386
13387 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
13388
13389 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
13390
13391 PR target/61561
13392 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
13393 (*movhi_bytes): Likewise.
13394 (*arm_movqi_insn): Likewise.
13395
13396 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
13397
13398 PR target/56858
13399 * config/alpha/alpha.c: Include tree-pass.h, context.h
13400 and pass_manager.h.
13401 (pass_data_handle_trap_shadows): New pass.
13402 (pass_handle_trap_shadows::gate): New pass gate function.
13403 (make_pass_handle_trap_shadows): New function.
13404 (rest_of_handle_trap_shadows): Ditto.
13405
13406 (alpha_align_insns_1): Rename from alpha_align_insns.
13407 (pass_data_align_insns): New pass.
13408 (pass_align_insns::gate): New pass gate function.
13409 (make_pass_aling_insns): New function.
13410 (rest_of_align_insns): Ditto.
13411 (alpha_align_insns): Ditto.
13412
13413 (alpha_option_override): Declare handle_trap_shadows info
13414 and align_insns_info. Register handle_trap_shadows and align_insns
13415 passes here.
13416 (alpha_reorg): Do not call alpha_trap_shadows and
13417 alpha_align_insn from here.
13418
13419 (alpha_pad_function_end): Do not skip BARRIERs.
13420
13421 2014-07-10 Rong Xu <xur@google.com>
13422
13423 Add gcov-tool: an offline gcda profile processing tool support.
13424 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
13425 (gcov_is_error): Ditto.
13426 (gcov_read_string): Ditto.
13427 (gcov_read_sync): Ditto.
13428 * gcov-io.h: Move counter defines to gcov-counter.def.
13429 * gcov-dump.c (tag_counters): Use gcov-counter.def.
13430 * coverage.c: Ditto.
13431 * gcov-tool.c: Offline gcda profile processing tool.
13432 (unlink_gcda_file): Remove one gcda file.
13433 (unlink_profile_dir): Remove gcda files from the profile path.
13434 (gcov_output_files): Output gcda files to an output dir.
13435 (profile_merge): Merge two profiles in directory.
13436 (print_merge_usage_message): Print merge usage.
13437 (merge_usage): Print merge usage and exit.
13438 (do_merge): Driver for profile merge sub-command.
13439 (profile_rewrite): Rewrite profile.
13440 (print_rewrite_usage_message): Print rewrite usage.
13441 (rewrite_usage): Print rewrite usage and exit.
13442 (do_rewrite): Driver for profile rewrite sub-command.
13443 (print_usage): Print gcov-info usage and exit.
13444 (print_version): Print gcov-info version.
13445 (process_args): Process arguments.
13446 (main): Main routine for gcov-tool.
13447 * Makefile.in: Build and install gcov-tool.
13448 * gcov-counter.def: New file split from gcov-io.h.
13449 * doc/gcc.texi: Include gcov-tool.texi.
13450 * doc/gcov-tool.texi: Document for gcov-tool.
13451
13452 2014-07-10 Richard Biener <rguenther@suse.de>
13453
13454 PR tree-optimization/61757
13455 * tree-ssa-dom.c (loop_depth_of_name): Restore.
13456 (propagate_rhs_into_lhs): Revert part of last change.
13457
13458 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
13459
13460 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
13461 FUNCTION_DECLs.
13462
13463 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
13464
13465 PR middle-end/53590
13466 * function.c (allocate_struct_function): Revert r188667 change.
13467
13468 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
13469
13470 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
13471
13472 * doc/install.texi: Remove links to defunct package providers for
13473 Solaris.
13474
13475 2014-07-09 Tom de Vries <tom@codesourcery.com>
13476
13477 * final.c (get_call_fndecl): Declare.
13478 (self_recursive_call_p): New function.
13479 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
13480
13481 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13482
13483 * ipa-devirt.c (record_node): Walk through aliases.
13484
13485 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13486
13487 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
13488
13489 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13490
13491 Revert:
13492 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
13493
13494 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13495
13496 * ipa-visibility.c (function_and_variable_visibility): Remove
13497 temporary hack disabling local aliases on AIX.
13498
13499 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13500
13501 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
13502 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
13503
13504 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13505
13506 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
13507 * rs6000/rs6000.c: Inline output of .set instruction.
13508 (declare_alias_data): New struct.
13509 (rs6000_declare_alias): New function.
13510 (rs6000_xcoff_declare_function_name): Use it.
13511 (rs6000_xcoff_declare_object_name): New function.
13512 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
13513 (ASM_OUTPUT_DEF): Turn to empty definition.
13514
13515 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13516
13517 PR bootstrap/61679
13518 * hash-table.h: use hash_table::value_type instead of
13519 Descriptor::value_type in the return types of several methods.
13520
13521 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13522
13523 * tree-pass.h (pass_data): Remove has_execute member.
13524 * passes.c (execute_one_pass): Don't check pass->has_execute.
13525 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
13526 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
13527 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
13528 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
13529 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
13530 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
13531 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
13532 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
13533 gimple-low.c, gimple-ssa-isolate-paths.c,
13534 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
13535 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
13536 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
13537 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
13538 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
13539 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
13540 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
13541 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
13542 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
13543 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
13544 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
13545 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
13546 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13547 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13548 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
13549 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
13550 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
13551 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13552 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13553 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
13554 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
13555 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
13556 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
13557 web.c: Remove initializer for pass_data::has_execute.
13558
13559 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13560
13561 * graphite-htab.h: Use hash_map instead of hash_table.
13562 * graphite-clast-to-gimple.c: Adjust.
13563 * passes.c: Use hash_map instead of hash_table.
13564 * sese.c: Likewise.
13565 * sese.h: Remove now unused code.
13566
13567 2014-07-08 Sriraman Tallam <tmsriram@google.com>
13568
13569 PR target/61599
13570 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
13571 than zero.
13572
13573 2014-07-08 Jakub Jelinek <jakub@redhat.com>
13574
13575 PR rtl-optimization/61673
13576 * combine.c (simplify_comparison): Test just mode's sign bit
13577 in tmode rather than the sign bit and any bits above it.
13578
13579 2014-07-08 Roman Gareev <gareevroman@gmail.com>
13580
13581 * graphite-isl-ast-to-gimple.c (generate_isl_context):
13582 Add __isl_give to the declaration.
13583 (generate_isl_schedule): Likewise.
13584 (scop_to_isl_ast): Likewise.
13585
13586 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13587
13588 * config/arm/arm.c (cortexa5_extra_costs): New table.
13589 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
13590
13591 2014-07-08 Jakub Jelinek <jakub@redhat.com>
13592
13593 PR tree-optimization/61725
13594 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
13595 range, use range_includes_zerop_p instead of integer_zerop on
13596 vr0->min, only use log2 of max if min is not negative.
13597
13598 2014-07-08 Richard Biener <rguenther@suse.de>
13599
13600 * tree-ssa-dom.h (loop_depth_of_name): Remove.
13601 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
13602 restriction on loop depth difference.
13603 (record_equality): Likewise.
13604 (propagate_rhs_into_lhs): Likewise. Simplify condition.
13605 (loop_depth_of_name): Remove.
13606 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
13607 restriction on loop depth difference.
13608 (init_copy_prop): Likewise.
13609
13610 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13611
13612 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
13613 parameter.
13614 (walk_aliased_vdefs): Likewise.
13615 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
13616 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
13617 (detect_type_change_from_memory_writes): Check if entry was reached.
13618
13619 2014-07-08 Richard Biener <rguenther@suse.de>
13620
13621 PR tree-optimization/61681
13622 * tree-ssa-structalias.c (find_what_var_points_to): Expand
13623 NONLOCAL inside ESCAPED.
13624
13625 2014-07-08 Richard Biener <rguenther@suse.de>
13626
13627 PR tree-optimization/61680
13628 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13629 Handle properly all read-write dependences with group accesses.
13630
13631 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
13632
13633 PR tree-optimization/61576
13634 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
13635 block containing reduction statement is predecessor of phi basi block.
13636
13637 2014-07-08 Marek Polacek <polacek@redhat.com>
13638
13639 PR c/60226
13640 * fold-const.c (round_up_loc): Change the parameter type.
13641 Remove assert.
13642 * fold-const.h (round_up_loc): Adjust declaration.
13643 * stor-layout.c (finalize_record_size): Check for too large types.
13644
13645 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
13646
13647 * symtab.c: Include calls.h.
13648 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
13649
13650 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
13651
13652 * config/rs6000/rs6000.c (output_vec_const_move): Handle
13653 little-endian code generation.
13654 * config/rs6000/spe.md (spe_evmergehi): Rename to...
13655 (vec_perm00_v2si): ... this. Handle little-endian code generation.
13656 (spe_evmergehilo): Rename to...
13657 (vec_perm01_v2si): ... this. Handle little-endian code generation.
13658 (spe_evmergelo): Rename to...
13659 (vec_perm11_v2si): ... this. Handle little-endian code generation.
13660 (spe_evmergelohi): Rename to...
13661 (vec_perm10_v2si): ... this. Handle little-endian code generation.
13662 (spe_evmergehi, spe_evmergehilo): New expanders.
13663 (spe_evmergelo, spe_evmergelohi): Likewise.
13664 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
13665 (*frob_tf_ti): Likewise.
13666 (*frob_<mode>_di_2): Likewise.
13667 (*frob_tf_di_8_2): Likewise.
13668 (*frob_di_<mode>): Likewise.
13669 (*frob_ti_tf): Likewise.
13670 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
13671 (*frob_ti_<mode>_8_2): Likewise.
13672 (*frob_ti_tf_2): Likewise.
13673 (mov_si<mode>_e500_subreg0): Rename to...
13674 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
13675 endianness only.
13676 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
13677 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
13678 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
13679 the big endianness only.
13680 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
13681 (*mov_si<mode>_e500_subreg0_2): Rename to...
13682 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
13683 big big endianness only.
13684 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
13685 (*mov_si<mode>_e500_subreg4): Rename to...
13686 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
13687 endianness only.
13688 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
13689 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
13690 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
13691 the big endianness only.
13692 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
13693 pattern.
13694 (*mov_si<mode>_e500_subreg4_2): Rename to...
13695 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
13696 endianness only.
13697 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
13698 (*mov_sitf_e500_subreg8): Rename to...
13699 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
13700 endianness only.
13701 (*mov_sitf_e500_subreg8_le): New instruction pattern.
13702 (*mov_sitf_e500_subreg8_2): Rename to...
13703 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
13704 endianness only.
13705 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
13706 (*mov_sitf_e500_subreg12): Rename to...
13707 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
13708 endianness only.
13709 (*mov_sitf_e500_subreg12_le): New instruction pattern.
13710 (*mov_sitf_e500_subreg12_2): Rename to...
13711 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
13712 endianness only.
13713 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
13714
13715 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
13716
13717 * asan.c (instrument_strlen_call): Do not instrument first byte
13718 in strlen if already instrumented.
13719
13720 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13721
13722 * config/arm/arm.opt (mwords-little-endian): Delete.
13723 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
13724 of TARGET_LITTLE_WORDS.
13725 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
13726 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
13727 warning.
13728 * doc/invoke.texi: Remove references to -mwords-little-endian.
13729
13730 2014-07-07 Jakub Jelinek <jakub@redhat.com>
13731
13732 * expmed.c (struct init_expmed_rtl): Change all fields but
13733 pow2 and cint from struct rtx_def to rtx.
13734 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
13735 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
13736 at the end again.
13737
13738 2014-07-06 Marek Polacek <polacek@redhat.com>
13739
13740 PR c/6940
13741 * doc/invoke.texi: Document -Wsizeof-array-argument.
13742
13743 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
13744
13745 * wide-int.h (wide_int_storage): Change declaration from struct
13746 to class.
13747
13748 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
13749
13750 * cgraph.c (cgraph_create_indirect_edge): Update call of
13751 get_polymorphic_call_info.
13752 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
13753 (possible_polymorphic_call_targets): Add parameter call.
13754 (decl_maybe_in_construction_p): New predicate.
13755 (get_polymorphic_call_info): Add parameter call;
13756 use decl_maybe_in_construction_p.
13757 * gimple-fold.c (fold_gimple_assign): Update use of
13758 possible_polymorphic_call_targets.
13759 (gimple_fold_call): Likewise.
13760 * ipa-prop.c: Inlcude calls.h
13761 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
13762 (param_type_may_change_p): New predicate.
13763 (detect_type_change_from_memory_writes): Break out from ...
13764 (detect_type_change): ... this one; use param_type_may_change_p.
13765 (detect_type_change_ssa): Use param_type_may_change_p.
13766 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
13767
13768 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
13769
13770 PR target/49423
13771 * config/arm/arm-protos.h (arm_legitimate_address_p,
13772 arm_is_constant_pool_ref): Add prototypes.
13773 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
13774 (arm_is_constant_pool_ref) New function.
13775 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
13776 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
13777 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
13778 operand. Remove pool_range and neg_pool_range attributes.
13779 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
13780 pool_range and neg_pool_range attributes.
13781 * config/arm/constraints.md (Uh): New constraint.
13782 (Uq): Don't allow constant pool references.
13783
13784 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
13785
13786 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
13787 (move_lo_quad_internal_be_<mode>): Likewise.
13788 (move_lo_quad_<mode>): Convert to define_expand.
13789 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
13790 (aarch64_simd_move_hi_quad_be_<mode>): New.
13791 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
13792 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
13793 (aarch64_combinez_be<mode>): New.
13794 (aarch64_combine<mode>): Convert to define_expand.
13795 (aarch64_combine_internal<mode>): New.
13796 (aarch64_simd_combine<mode>): Remove bogus RTL description.
13797
13798 2014-07-04 Tom de Vries <tom@codesourcery.com>
13799
13800 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
13801 combination of earlyclobber and read/write modifiers.
13802
13803 2014-07-04 Tom de Vries <tom@codesourcery.com>
13804
13805 * config/aarch64/aarch64-simd.md
13806 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
13807
13808 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
13809
13810 PR target/61714
13811 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
13812
13813 2014-07-04 Jakub Jelinek <jakub@redhat.com>
13814
13815 PR middle-end/61654
13816 * cgraphunit.c (expand_thunk): Call free_dominance_info.
13817
13818 PR tree-optimization/61684
13819 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
13820 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
13821
13822 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13823 Kito Cheng <kito@0xlab.org>
13824 Monk Chiang <sh.chiang04@gmail.com>
13825
13826 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
13827 (nds32_symbol_load_store_p): Move to ...
13828 (nds32_fp_as_gp_check_available): Move to ...
13829 * config/nds32/nds32-fp-as-gp.c: ... here.
13830 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
13831 extern declaration.
13832
13833 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13834 Kito Cheng <kito@0xlab.org>
13835 Monk Chiang <sh.chiang04@gmail.com>
13836
13837 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
13838 (nds32_expand_store_multiple): Move to ...
13839 (nds32_expand_movmemqi): Move to ...
13840 * config/nds32/nds32-memory-manipulation.c: ... here.
13841
13842 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13843 Kito Cheng <kito@0xlab.org>
13844 Monk Chiang <sh.chiang04@gmail.com>
13845
13846 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
13847 (nds32_output_casesi_pc_relative): Move to ...
13848 (nds32_output_casesi): Move to ...
13849 (nds32_mem_format): Move to ...
13850 (nds32_output_16bit_store): Move to ...
13851 (nds32_output_16bit_load): Move to ...
13852 (nds32_output_32bit_store): Move to ...
13853 (nds32_output_32bit_load): Move to ...
13854 (nds32_output_32bit_load_s): Move to ...
13855 (nds32_output_stack_push): Move to ...
13856 (nds32_output_stack_pop): Move to ...
13857 * config/nds32/nds32-md-auxiliary.c: ... here.
13858
13859 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13860 Ling-Hua Tseng <uranus@tinlans.org>
13861
13862 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
13863 the purpose of this file.
13864
13865 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13866 Kito Cheng <kito@0xlab.org>
13867 Monk Chiang <sh.chiang04@gmail.com>
13868
13869 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
13870 (nds32_address_cost): Move implementation to ...
13871 * config/nds32/nds32-cost.c: ... here.
13872 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
13873 (nds32_address_cost_impl): Declare.
13874
13875 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13876 Kito Cheng <kito@0xlab.org>
13877 Monk Chiang <sh.chiang04@gmail.com>
13878
13879 * config/nds32/nds32.c
13880 (nds32_consecutive_registers_load_store_p): Move to ...
13881 (nds32_valid_multiple_load_store): Move to ...
13882 (nds32_valid_stack_push_pop): Move to ...
13883 (nds32_can_use_bclr_p): Move to ...
13884 (nds32_can_use_bset_p): Move to ...
13885 (nds32_can_use_btgl_p): Move to ...
13886 (nds32_can_use_bitci_p): Move to ...
13887 * config/nds32/nds32-predicates.c: ... here.
13888
13889 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13890 Kito Cheng <kito@0xlab.org>
13891 Monk Chiang <sh.chiang04@gmail.com>
13892
13893 * config/nds32/nds32.c
13894 (nds32_expand_builtin_null_ftype_reg): Move to ...
13895 (nds32_expand_builtin_reg_ftype_imm): Move to ...
13896 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
13897 (nds32_init_builtins): Move implementation to ...
13898 (nds32_expand_builtin): Move implementation to ...
13899 * config/nds32/nds32-intrinsic.c: ... here.
13900 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
13901 (nds32_expand_builtin_impl): Declare.
13902
13903 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13904 Kito Cheng <kito@0xlab.org>
13905 Monk Chiang <sh.chiang04@gmail.com>
13906
13907 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
13908 (nds32_emit_section_tail_template): Move to ...
13909 (nds32_emit_isr_jmptbl_section): Move to ...
13910 (nds32_emit_isr_vector_section): Move to ...
13911 (nds32_emit_isr_reset_conten): Move to ...
13912 (nds32_check_isr_attrs_conflict): Move to ...
13913 (nds32_construct_isr_vectors_information): Move to ...
13914 (nds32_asm_file_start): Move implementation to ...
13915 (nds32_asm_file_end): Move implementation to ...
13916 * config/nds32/nds32-isr.c: ... here.
13917 * config/nds32/nds32-protos.h
13918 (nds32_check_isr_attrs_conflict): Declare.
13919 (nds32_construct_isr_vectors_information): Declare.
13920 (nds32_asm_file_start_for_isr): Declare.
13921 (nds32_asm_file_end_for_isr): Declare.
13922
13923 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13924 Kito Cheng <kito@0xlab.org>
13925 Monk Chiang <sh.chiang04@gmail.com>
13926
13927 * config.gcc (nds32*): Add new modules to extra_objs.
13928 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
13929 (nds32be-*-*): Likewise.
13930 * config/nds32/nds32-cost.c: New file.
13931 * config/nds32/nds32-fp-as-gp.c: New file.
13932 * config/nds32/nds32-intrinsic.c: New file.
13933 * config/nds32/nds32-isr.c: New file.
13934 * config/nds32/nds32-md-auxiliary.c: New file.
13935 * config/nds32/nds32-memory-manipulation.c: New file.
13936 * config/nds32/nds32-pipelines-auxiliary.c: New file.
13937 * config/nds32/nds32-predicates.c: New file.
13938 * config/nds32/t-nds32: New file.
13939
13940 2014-07-03 Jakub Jelinek <jakub@redhat.com>
13941
13942 PR tree-optimization/61682
13943 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
13944 using cases and when one of the operands is equal to 1.
13945
13946 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
13947
13948 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
13949 ashr<mode>3): Correct mode of operands[2].
13950 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
13951 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
13952 Correct mode of operands[2]. Fix split condition.
13953
13954 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
13955
13956 * arm.md (arch): Add armv6_or_vfpv3.
13957 (arch_enabled): Add test for the above.
13958 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
13959 on VFP9.
13960 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
13961
13962 2014-07-03 Jakub Jelinek <jakub@redhat.com>
13963
13964 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
13965 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
13966 HWI 1 and negate the unsigned value.
13967 * expmed.c (expand_sdiv_pow2): For modes wider than word always
13968 use AND instead of shift.
13969 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
13970
13971 2014-07-03 Marek Polacek <polacek@redhat.com>
13972
13973 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
13974 (-fsanitize=float-divide-by-zero): Move to the table with
13975 -fsanitize=undefined suboptions.
13976 (-fsanitize=float-cast-overflow): Likewise.
13977
13978 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
13979
13980 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
13981 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
13982 endianness.
13983
13984 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13985
13986 * loop-invariant.c (struct invariant): Add a new member: eqno;
13987 (find_identical_invariants): Update eqno;
13988 (create_new_invariant): Init eqno;
13989 (get_inv_cost): Compute comp_cost with eqno;
13990
13991 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
13992
13993 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
13994 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
13995 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
13996 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
13997 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
13998
13999 2014-07-02 Christian Bruel <christian.bruel@st.com>
14000
14001 PR target/29349
14002 PR target/53513
14003 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
14004 (make_preds_opaque): Delete.
14005 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
14006 (commit_mode_sets): New function.
14007 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
14008 Process all modes at once.
14009 * basic-block.h (pre_edge_lcm_avs): Declare.
14010 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
14011 Call clear_aux_for_edges. Fix comments.
14012 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
14013 (pre_edge_rev_lcm): Idem.
14014 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
14015 parameter.
14016 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
14017 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
14018 Idem.
14019 * config/i386/i386.c (x96_emit_mode_set): Idem.
14020 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
14021 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
14022 (fpscr_toggle) Disallow from delay slot.
14023 * target.def (emit_mode_set): Add prev_mode parameter.
14024 * doc/tm.texi: Regenerate.
14025
14026 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14027
14028 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
14029 variable i.
14030
14031 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
14032
14033 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
14034 vtable_pointer_value_to_vtable): Constify.
14035 (contains_polymorphic_type_p): Declare.
14036 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
14037 vtable_pointer_value_to_vtable): Constify.
14038 (contains_polymorphic_type_p): New predicate.
14039 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
14040 polymorphic types.
14041 (ipa_set_ancestor_jf): Likewise.
14042 (detect_type_change): Return false in easy cases.
14043 (compute_complex_assign_jump_func): Require type to contain
14044 polymorphic type.
14045 (compute_known_type_jump_func): Likewise.
14046
14047 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
14048
14049 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
14050 Remove.
14051 (type_in_anonymous_namespace_p): Constify argument.
14052 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
14053 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
14054 (main_odr_variant): New function.
14055 (hash_type_name): Make static; update assert; do not ICE on
14056 non-records.
14057 (types_same_for_odr): Bring here from tree.c; simplify and remove
14058 old structural comparing code that doesn't work for templates.
14059 (odr_hasher::equal): Update assert.
14060 (add_type_duplicate): Return true when bases should be computed;
14061 replace incomplete loader by complete; do not output duplicated
14062 warnings; do not ICE on non-records; set odr_violated flag.
14063 (get_odr_type): Be ready to replace incomplete type by complete
14064 one; work on ODR variants instead of main variants; reorder item
14065 in array so bases have still smaller indexes.
14066 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
14067 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
14068
14069 2014-07-01 Cary Coutant <ccoutant@google.com>
14070
14071 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
14072 lookup.
14073 (resolve_addr_in_expr): When replacing the rtx in a location list
14074 entry, get a new address table entry.
14075 (dwarf2out_finish): Call index_location_lists even if there are no
14076 addr_index_table entries yet.
14077
14078 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
14079
14080 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
14081 change for not being obvious.
14082
14083 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
14084
14085 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
14086 unused argument.
14087
14088 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14089
14090 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
14091 (vcagt_f64): Likewise.
14092 (vcale_f64): Likewise.
14093 (vcaled_f64): Likewise.
14094 (vcales_f32): Likewise.
14095 (vcalt_f64): Likewise.
14096 (vcaltd_f64): Likewise.
14097 (vcalts_f32): Likewise.
14098
14099 2014-07-01 Marek Polacek <polacek@redhat.com>
14100
14101 * doc/invoke.texi: Document -Wint-conversion.
14102
14103 2014-07-01 Marek Polacek <polacek@redhat.com>
14104
14105 PR c/58286
14106 * doc/invoke.texi: Document -Wincompatible-pointer-types.
14107
14108 2014-07-01 Martin Liska <mliska@suse.cz>
14109
14110 IPA REF alias refactoring
14111 * cgraph.h (iterate_direct_aliases): New function.
14112 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
14113 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
14114 FOR_EACH_ALIAS added.
14115 (cgraph_for_node_and_aliases): Likewise.
14116 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
14117 * ipa-inline.c (reset_edge_caches): Likewise.
14118 (update_caller_keys): Likewise.
14119 * trans-mem.c (ipa_tm_execute): Likewise.
14120 *varpool.c (varpool_analyze_node): Likewise.
14121 (varpool_for_node_and_aliases): Likewise.
14122 * ipa-ref.h (first_alias): New function.
14123 (last_alias): Likewise.
14124 (has_aliases_p): Likewise.
14125 * ipa-ref.c (ipa_ref::remove_reference): Removal function
14126 is sensitive to IPA_REF_ALIASes.
14127 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
14128 are put at the beginning of the list.
14129 (symtab_node::iterate_direct_aliases): New function.
14130
14131 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14132
14133 Revert:
14134 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
14135 type is complete.
14136 (write_ts_type_common_tree_pointers): Do not stream fields not set
14137 for incomplete types; do not stream duplicated fields for variants;
14138 sanity check that variant and type match.
14139 (write_ts_type_non_common_tree_pointers): Likewise.
14140 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
14141 TYPE_SIZE whether type is complete.
14142 (lto_input_ts_type_common_tree_pointers): Do same changes as in
14143 write_ts_type_common_tree_pointers
14144 (lto_input_ts_type_non_common_tree_pointers): Likewise.
14145
14146 2014-06-30 Joseph Myers <joseph@codesourcery.com>
14147
14148 * var-tracking.c (add_stores): Return instead of asserting if old
14149 and new values for conditional store are the same.
14150
14151 2014-06-30 Richard Henderson <rth@redhat.com>
14152
14153 PR rtl-opt/61608
14154 PR target/39284
14155 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
14156 the cfg if there were any changes.
14157 * passes.def: Revert move of peephole2 after reorder_blocks;
14158 move duplicate_computed_gotos before peephole2.
14159
14160 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
14161
14162 * except.c (emit_note_eh_region_end): New helper function.
14163 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
14164 emit EH_REGION_END note.
14165 * jump.c (cleanup_barriers): Do not split a call and its
14166 corresponding CALL_ARG_LOCATION note.
14167
14168 2014-06-30 Jeff Law <law@redhat.com>
14169
14170 PR tree-optimization/61607
14171 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
14172 deeper into the SSA_NAME_VALUE chain.
14173
14174 2014-06-30 Marek Polacek <polacek@redhat.com>
14175
14176 * convert.c (convert_to_integer): Don't instrument conversions if the
14177 function has no_sanitize_undefined attribute.
14178 * ubsan.c: Don't run the ubsan pass if the function has
14179 no_sanitize_undefined attribute.
14180
14181 2014-06-30 Jakub Jelinek <jakub@redhat.com>
14182
14183 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
14184 -fsanitize=undefined suboptions.
14185
14186 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
14187
14188 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
14189 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
14190 against bigendian and adjust indices.
14191
14192 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
14193
14194 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
14195
14196 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
14197
14198 PR target/61633
14199 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
14200 Add alternative; make early clobber. Adjust both split patterns
14201 to use operand 0 as the working register.
14202
14203 2014-06-30 Jakub Jelinek <jakub@redhat.com>
14204
14205 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
14206 as ira_object_id_map might be NULL, or 1.
14207
14208 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14209
14210 * loop-invariant.c (get_inv_cost): Handle register class.
14211 (gain_for_invariant): Check the register pressure of the inv
14212 and its overlapped register class, other than all.
14213
14214 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
14215
14216 * doc/invoke.texi (Optimize Options): Fix descriptions of
14217 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
14218
14219 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
14220
14221 * doc/extend.texi (Function Attributes): Update 'naked' attribute
14222 documentation.
14223
14224 2014-06-29 Tobias Grosser <tobias@grosser.es>
14225
14226 PR bootstrap/61650
14227 * graphite-isl-ast-to-gimple.c: Add missing guards.
14228
14229 2014-06-29 Roman Gareev <gareevroman@gmail.com>
14230
14231 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
14232 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
14233 * flag-types.h: Add new enum fgraphite_generator.
14234 * graphite-isl-ast-to-gimple.c: New.
14235 * graphite-isl-ast-to-gimple.h: New.
14236 * graphite.c (graphite_transform_loops): Add choice of Graphite
14237 code generator, which depends on flag_graphite_code_gen.
14238
14239 2014-06-29 Roman Gareev <gareevroman@gmail.com>
14240
14241 * graphite-dependences.c (subtract_commutative_associative_deps):
14242 Add NULL checking of the following variables: must_raw_no_source,
14243 may_raw_no_source, must_war_no_source, may_war_no_source,
14244 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
14245 must_war, may_war, must_waw, may_waw.
14246
14247 2014-06-29 Roman Gareev <gareevroman@gmail.com>
14248
14249 * graphite-clast-to-gimple.c: gloog is renamed to
14250 graphite_regenerate_ast_cloog. gloog_error is renamed to
14251 graphite_regenerate_error.
14252 * graphite-clast-to-gimple.h: The definition of the struct
14253 bb_pbb_def is moved to graphite-htab.h.
14254 Add inclusion of the hash-table.h.
14255 * graphite-htab.h: The declaration of the function gloog is moved
14256 to graphite-clast-to-gimple.h and renamed to
14257 graphite_regenerate_ast_cloog.
14258 * graphite.c (graphite_transform_loops): gloog is renamed
14259 to graphite_regenerate_ast_cloog.
14260
14261 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14262
14263 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
14264 type is complete.
14265 (write_ts_type_common_tree_pointers): Do not stream fields not set
14266 for incomplete types; do not stream duplicated fields for variants;
14267 sanity check that variant and type match.
14268 (write_ts_type_non_common_tree_pointers): Likewise.
14269 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
14270 TYPE_SIZE whether type is complete.
14271 (lto_input_ts_type_common_tree_pointers): Do same changes as in
14272 write_ts_type_common_tree_pointers
14273 (lto_input_ts_type_non_common_tree_pointers): Likewise.
14274
14275 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14276
14277 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
14278
14279 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14280
14281 * tree-inline.c (remap_type_1): Do not duplicate fields
14282 that are shared in between type and its main variant.
14283
14284 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14285
14286 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
14287 of the type.
14288 (ipa_set_ancestor_jf) Likewise.
14289 (check_stmt_for_type_change): Check that we work on main variant.
14290 (detect_type_change): Look into main variant.
14291 (compute_known_type_jump_func): Check that main variant has BINFO.
14292
14293 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14294
14295 * ipa-devirt.c (set_type_binfo): New function.
14296 (add_type_duplicate): Use it.
14297 (get_odr_type): Sanity check that binfos points to main variants.
14298 (get_class_context): Be sure the context's outer_type is main variant.
14299 (contains_type_p): Walk main variant.
14300 (get_polymorphic_call_info_for_decl): Set outer_type to be
14301 main variant.
14302 (get_polymorphic_call_info): Likewise.
14303 (possible_polymorphic_call_targets): Sanity check that we operate
14304 on main variant.
14305
14306 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14307
14308 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
14309
14310 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14311
14312 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
14313 accidental change due to wide-int branch merge.
14314
14315 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14316
14317 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
14318 compressed debug support.
14319 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
14320 * configure: Regenerate.
14321 * config.in: Regenerate.
14322 * common.opt (compressed_debug_sections): New enum.
14323 (gz, gz=): New options.
14324 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
14325 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
14326 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
14327 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
14328 LINK_COMPRESS_DEBUG_SPEC.
14329 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
14330 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
14331 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
14332 (Debugging Options): Document -gz[=type].
14333
14334 2014-06-27 Martin Jambor <mjambor@suse.cz>
14335
14336 PR ipa/61160
14337 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
14338 args_to_skip, use those from node instead. Copy args_to_skip and
14339 combined_args_to_skip from node to the new thunk.
14340 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
14341 (cgraph_create_virtual_clone): Moved computation of
14342 combined_args_to_skip...
14343 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
14344
14345 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
14346
14347 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
14348 redundant diagnostic machinary.
14349
14350 2014-06-27 Richard Biener <rguenther@suse.de>
14351
14352 * tree-ssa-math-opts.c (bswap_replace): Fix
14353 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
14354
14355 2014-06-27 Martin Liska <mliska@suse.cz>
14356
14357 * gimple.h (gimple_location_safe): New function introduced.
14358 * cgraphunit.c (walk_polymorphic_call_targets): Usage
14359 of gimple_location_safe replaces gimple_location.
14360 (gimple_fold_call): Likewise.
14361 * ipa-devirt.c (ipa_devirt): Likewise.
14362 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
14363 * ipa.c (walk_polymorphic_call_targets): Likewise.
14364 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
14365
14366 2014-06-27 Jakub Jelinek <jakub@redhat.com>
14367
14368 PR tree-optimization/57233
14369 PR tree-optimization/61299
14370 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
14371 functions.
14372 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
14373 would be lowered to scalar shifts, check if corresponding
14374 shifts and vector BIT_IOR_EXPR are supported and don't lower
14375 or lower just to narrower vector type in that case.
14376 * expmed.c (expand_shift_1): Fix up handling of vector
14377 shifts and rotates.
14378
14379 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
14380
14381 PR target/61586
14382 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
14383
14384 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
14385
14386 * doc/invoke.texi (-fsemantic-interposition): Document.
14387 * common.opt (fsemantic-interposition): New flag.
14388 * varasm.c (decl_replaceable_p): Use it.
14389
14390 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14391
14392 PR target/61542
14393 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
14394 extraction other than index 3.
14395
14396 2014-06-26 Teresa Johnson <tejohnson@google.com>
14397
14398 * doc/invoke.texi: Fix typo.
14399 * dumpfile.c: Add support for documented -fdump-* options
14400 optimized/missed/note/optall.
14401
14402 2014-06-26 Martin Jambor <mjambor@suse.cz>
14403
14404 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
14405 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
14406 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
14407 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
14408 * opts.c (default_options_optimization): Set
14409 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
14410 * doc/invoke.texi (allow-load-data-races)
14411 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
14412 (allow-store-data-races): Document the new default.
14413
14414 2014-06-26 Martin Jambor <mjambor@suse.cz>
14415
14416 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
14417 renamed to ipa_impossible_devirt_target. Fix typo.
14418 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
14419 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
14420 ipa_impossible_devirt_target.
14421
14422 2014-06-26 Richard Biener <rguenther@suse.de>
14423
14424 PR tree-optimization/61607
14425 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
14426 explaining why we restrict copies on loop depth.
14427 * tree-ssa-dom.c (cprop_operand): Remove restriction on
14428 on loop depth.
14429 (record_equivalences_from_phis): Instead add it here.
14430
14431 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
14432
14433 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
14434 (LTO_WRAPPER_OBJS): New variable.
14435 (lto-wrapper$(exeext)): Use it.
14436 * collect2.c: Include "collect-utils.h".
14437 (verbose, debug): Remove variables.
14438 (at_file_supplied): No longer static.
14439 (tool_name): New variable.
14440 (do_wait, fork_execute, maybe_unlink): Don't declare.
14441 (tool_cleanup): No longer static.
14442 (notice): Remove function.
14443 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
14444 fork_execute calls.
14445 (collect_wait, do_wait, collect_execute): Remove functions.
14446 (maybe_unlink): No longer static.
14447 * collect2.h (verbose, debug): Don't declare.
14448 (at_file_supplied): Declare.
14449 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
14450 changed.
14451 (collect_execute): Replace with implementation from collect2, plus a
14452 new arg use_atfile. All callers changed.
14453 (collect_wait): Replace with implementation from collect2.
14454 (maybe_unlink_file): Remove function.
14455 (fork_execute): Replace with implementation from collect2, plus a
14456 new arg use_atfile. All callers changed.
14457 (do_wait): Add call to utils_cleanup to the error path.
14458 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
14459 (tool_cleanup): Adjust declarations.
14460 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
14461 * tlink.c: Include "collect-utils.h".
14462 (tlink_execute): New arg use_atfile. All callers changed.
14463 (tlink_init, tlink_execute): Remove declarations.
14464
14465 * collect-utils.c (save_temps): New variable.
14466 (do_wait): Use it instead of debug. Use fatal_error.
14467 * collect-utils.h (save_temps): Declare.
14468 * collect2.c (verbose): Rename from vflag. All uses changed.
14469 (tool_cleanup): New function, copied from collect_atexit.
14470 (collect_atexit, handler): Just call it.
14471 * collect2.h (verbose): Declaration renamed from vflag.
14472 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
14473 debug.
14474
14475 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
14476 (lto-wrapper$(exeext)): Link with collect-utils.o.
14477 * collect-utils.c: New file.
14478 * collect-utils.h: New file.
14479 * lto-wrapper.c: Include "collect-utils.h".
14480 (args_name): Delete variable.
14481 (tool_name): New variable.
14482 (tool_cleanup): New function.
14483 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
14484 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
14485 (fork_execute): Remove functions.
14486
14487 2014-06-26 Nick Clifton <nickc@redhat.com>
14488
14489 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
14490
14491 * doc/extend.texi (Function Attributes): Fix typo in description
14492 of RX vector attribute.
14493
14494 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
14495
14496 * config.gcc (supported_defaults): Error when passing either
14497 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
14498
14499 2014-06-26 Richard Biener <rguenther@suse.de>
14500
14501 * tree-ssa-dom.c (cprop_operand): Remove restriction on
14502 propagating volatile pointers.
14503
14504 2014-06-26 Richard Biener <rguenther@suse.de>
14505
14506 PR tree-optimization/61607
14507 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
14508 loop if we redirected its latch edge.
14509 (thread_block_1): Do not cancel loops prematurely.
14510
14511 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
14512
14513 * toplev.c (backend_init_target): Move init_emit_regs and
14514 init_regs to...
14515 (backend_init) ... here; skip ira_init_once and backend_init_target.
14516 (target_reinit) ... and here; clear
14517 this_target_rtl->lang_dependent_initialized.
14518 (lang_dependent_init_target): Clear
14519 this_target_rtl->lang_dependent_initialized;
14520 break out rtl initialization to ...
14521 (initialize_rtl): ... here; call also backend_init_target
14522 and ira_init_once.
14523 * toplev.h (initialize_rtl): New function.
14524 * function.c: Include toplev.h
14525 (init_function_start): Call initialize_rtl.
14526 * rtl.h (target_rtl): Add target_specific_initialized,
14527 lang_dependent_initialized.
14528
14529 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
14530 Jakub Jelinek <jakub@redhat.com>
14531
14532 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
14533
14534 2014-06-25 Tom de Vries <tom@codesourcery.com>
14535
14536 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
14537
14538 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
14539
14540 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
14541 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
14542 Issue a strict overflow warning if appropriate.
14543
14544 2014-06-25 Martin Liska <mliska@suse.cz>
14545
14546 IPA REF refactoring
14547 * Makefile.in: Removed header file (ipa-ref-inline.h).
14548 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
14549 called.
14550 (cgraph_speculative_call_info): Likewise.
14551 (cgraph_for_node_thunks_and_aliases): Likewise.
14552 (cgraph_for_node_and_aliases): Likewise.
14553 (verify_cgraph_node): Likewise.
14554 * cgraph.h: Batch of IPA REF functions become member functions of
14555 symtab_node: add_reference, maybe_add_reference, clone_references,
14556 clone_referring, clone_reference, find_reference,
14557 remove_stmt_references, remove_all_references,
14558 remove_all_referring, dump_references, dump_referring,
14559 has_alias_p, iterate_reference, iterate_referring.
14560 * cgraphbuild.c (record_reference): New IPA REF function used.
14561 (record_type_list): Likewise.
14562 (record_eh_tables): Likewise.
14563 (mark_address): Likewise.
14564 (mark_load): Likewise.
14565 (mark_store): Likewise.
14566 (pass_build_cgraph_edges): Likewise.
14567 (rebuild_cgraph_edge): Likewise.
14568 (cgraph_rebuild_references): Likewise.
14569 (pass_remove_cgraph_callee_edges): Likewise.
14570 * cgraphclones.c (cgraph_clone_node): Likewise.
14571 (cgraph_create_virtual_clone): Likewise.
14572 (cgraph_materialize_clone): Likewise.
14573 (cgraph_materialize_all_clones): Likewise.
14574 * cgraphunit.c (cgraph_reset_node): Likewise.
14575 (cgraph_reset_node): Likewise.
14576 (analyze_function): Likewise.
14577 (assemble_thunks_and_aliases): Likewise.
14578 (expand_function): Likewise.
14579 * ipa-comdats.c (propagate_comdat_group): Likewise.
14580 (enqueue_references): Likewise.
14581 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
14582 (create_specialized_node): Likewise.
14583 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
14584 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
14585 * ipa-inline.c (reset_edge_caches): Likewise.
14586 (update_caller_keys): Likewise.
14587 (execute): Likewise.
14588 * ipa-prop.c (remove_described_reference): Likewise.
14589 (propagate_controlled_uses): Likewise.
14590 (ipa_edge_duplication_hook): Likewise.
14591 (ipa_modify_call_arguments): Likewise.
14592 * ipa-pure-const.c (propagate_pure_const): Likewise.
14593 * ipa-ref-inline.h: Header file removed, functions moved
14594 to symtab_node class.
14595 * ipa-ref.c (remove_reference): New class member function.
14596 (cannot_lead_to_return): New class member function.
14597 (referring_ref_list): Likewise.
14598 (referred_ref_list): Likewise.
14599 Rest of functions moved to symtab_node class.
14600 * ipa-ref.h: New member functions remove_reference,
14601 cannot_lead_to_return, referring_ref_list, referred_ref_list added
14602 to ipa_ref class.
14603 ipa_ref_list class has new member functions: first_reference,
14604 first_referring, clear, nreferences.
14605 * ipa-reference.c (analyze_function): New IPA REF function used.
14606 (write_node_summary_p): Likewise.
14607 (ipa_reference_write_optimization_summary): Likewise.
14608 * ipa-split.c (split_function): Likewise.
14609 * ipa-utils.c (ipa_reverse_postorder): Likewise.
14610 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
14611 (function_and_variable_visibility): Likewise.
14612 * ipa.c (has_addr_references_p): Likewise.
14613 (process_references): Argument type changed.
14614 (symtab_remove_unreachable_nodes): New IPA REF function used.
14615 (process_references): Likewise.
14616 (set_writeonly_bit): Likewise.
14617 * lto-cgraph.c: Implementation of new symtab_node member functions
14618 that uses new IPA REF functions.
14619 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
14620 function used.
14621 * lto-streamer-out.c (output_symbol_p): Likewise.
14622 * lto-streamer.h (referenced_from_this_partition_p): Argument type
14623 changed.
14624 * symtab.c: Implementation of new IPA REF API.
14625 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
14626 (ipa_tm_create_version): Likewise.
14627 (ipa_tm_execute): Likewise.
14628 * tree-emutls.c (gen_emutls_addr): Likewise.
14629 * tree-inline.c (copy_bb): Likewise.
14630 (delete_unreachable_blocks_update_callgraph): Likewise.
14631 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
14632 (varpool_for_node_and_aliases): Likewise.
14633
14634 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
14635
14636 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
14637
14638 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
14639
14640 PR bootstrap/61598
14641 * fold-const.c (fold_checksum_tree): Use a hash_table of const
14642 tree_node * instead of tree_node *.
14643 (fold): Adjust.
14644 (print_fold_checksum): Likewise.
14645 (fold_check_failed): Likewise.
14646 (debug_fold_checksum): Likewise.
14647 (fold_build1_stat_loc): Likewise.
14648 (fold_build2_stat_loc): Likewise.
14649 (fold_build3_stat_loc): Likewise.
14650 (fold_build_call_array_loc): Likewise.
14651
14652 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
14653
14654 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
14655 implementation with call to...
14656 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
14657 function.
14658 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
14659 Declare.
14660
14661 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
14662
14663 PR tree-optimization/57742
14664 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
14665 after replacing the statement.
14666
14667 2014-06-25 Nick Clifton <nickc@redhat.com>
14668
14669 * config/v850/v850.c (GHS_default_section_names): Change to const
14670 char * type.
14671 (GHS_current_section_names): Likewise.
14672 (v850_insert_attributes): Do not build strings, just assign the
14673 names directly. Change the type of 'chosen_section' to const
14674 char*.
14675 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
14676 directly to the array entry.
14677 * config/v850/v850.h (GHS_default_section_names): Change to const
14678 char * type.
14679 (GHS_current_section_names): Likewise.
14680
14681 2014-06-25 Jakub Jelinek <jakub@redhat.com>
14682
14683 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
14684 (LANG_HOOKS_DECLS): Add it.
14685 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
14686 has correct type.
14687 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
14688 * langhooks.h (struct lang_hooks_for_decls): Add
14689 omp_clause_linear_ctor hook.
14690 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
14691 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
14692 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
14693 combined simd loop use omp_clause_linear_ctor hook.
14694
14695 2014-06-24 Cong Hou <congh@google.com>
14696
14697 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
14698 pattern recognition.
14699 (type_conversion_p): PROMOTION is true if it's a type promotion
14700 conversion, and false otherwise. Return true if the given expression
14701 is a type conversion one.
14702 * tree-vectorizer.h: Adjust the number of patterns.
14703 * tree.def: Add SAD_EXPR.
14704 * optabs.def: Add sad_optab.
14705 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
14706 * expr.c (expand_expr_real_2): Likewise.
14707 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
14708 * gimple.c (get_gimple_rhs_num_ops): Likewise.
14709 * optabs.c (optab_for_tree_code): Likewise.
14710 * tree-cfg.c (estimate_operator_cost): Likewise.
14711 * tree-ssa-operands.c (get_expr_operands): Likewise.
14712 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
14713 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
14714 * doc/generic.texi: Add document for SAD_EXPR.
14715 * doc/md.texi: Add document for ssad and usad.
14716
14717 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14718
14719 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
14720 qualification in cast.
14721
14722 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
14723
14724 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
14725 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
14726 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
14727 (tree_function_decl): ... here.
14728 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
14729 streaming of vindex to ...
14730 (write_ts_function_decl_tree_pointers): ... here.
14731 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
14732 Do not stream DECL_VINDEX.
14733 (lto_input_ts_function_decl_tree_pointers): Stream it here.
14734
14735 2014-06-24 Catherine Moore <clm@codesourcery.com>
14736 Sandra Loosemore <sandra@codesourcery.com>
14737
14738 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
14739 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
14740 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
14741
14742 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
14743
14744 * doc/invoke.texi (Warning Options): Remove duplicated
14745 -Wmaybe-uninitialized.
14746
14747 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
14748
14749 PR tree-optimization/57742
14750 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
14751 (handle_builtin_malloc, handle_builtin_memset): New functions.
14752 (strlen_optimize_stmt): Call them.
14753 * passes.def: Move strlen after loop+dom but before vrp.
14754
14755 2014-06-24 Jakub Jelinek <jakub@redhat.com>
14756
14757 PR target/61570
14758 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
14759 model family 6 CPU with has_longmode never use a CPU without
14760 64-bit support.
14761
14762 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
14763
14764 PR target/61570
14765 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
14766 the last change.
14767
14768 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14769
14770 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
14771 * dominance.c (iterate_fix_dominators): Use hash_map instead of
14772 pointer_map.
14773 * hash-map.h: New file.
14774 * ipa-comdats.c: Use hash_map instead of pointer_map.
14775 * ipa.c: Likewise.
14776 * lto-section-out.c: Adjust.
14777 * lto-streamer.h: Replace pointer_map with hash_map.
14778 * symtab.c (verify_symtab): Likewise.
14779 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
14780 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
14781 * tree-streamer.h: Likewise.
14782 * tree-streamer.c: Adjust.
14783 * pointer-set.h: Remove pointer_map.
14784
14785 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14786
14787 * hash-table.h: Add a template arg to choose between storing values
14788 and storing pointers to values, and then provide partial
14789 specializations for both.
14790 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
14791 should store, not the type values should point to.
14792 * tree-into-ssa.c (var_info_hasher): Likewise.
14793 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
14794 * tree-complex.c: Adjust.
14795 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
14796 table instead of int_tree_map *.
14797 * tree-parloops.c: Adjust.
14798 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
14799 type is being stored.
14800 * tree-vectorizer.c: Adjust.
14801
14802 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14803
14804 * hash-table.h: Remove a layer of indirection from hash_table so that
14805 it contains the hash table's data instead of a pointer to the data.
14806 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
14807 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
14808 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
14809 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
14810 fold-const.c, gcse.c, ggc-common.c,
14811 gimple-ssa-strength-reduction.c, gimplify.c,
14812 graphite-clast-to-gimple.c, graphite-dependences.c,
14813 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
14814 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
14815 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
14816 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
14817 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
14818 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
14819 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
14820 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
14821 tree-ssa-live.c, tree-ssa-loop-im.c,
14822 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
14823 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
14824 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
14825 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
14826 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
14827 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
14828 vtable-verify.c, vtable-verify.h: Adjust.
14829
14830 2014-06-24 Richard Biener <rguenther@suse.de>
14831
14832 PR tree-optimization/61572
14833 * tree-ssa-sink.c (statement_sink_location): Do not sink
14834 loads from hard registers.
14835
14836 2014-06-24 Jakub Jelinek <jakub@redhat.com>
14837
14838 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
14839 not mentioned in clauses use private clause if the iterator is
14840 declared in #pragma omp for simd, and when adding lastprivate
14841 instead, add it to the outer #pragma omp for too. Diagnose
14842 if the variable is private in outer context. For simd collapse > 1
14843 loops, replace all iterators with temporaries.
14844 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
14845 same even in collapse > 1 loops.
14846
14847 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
14848 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
14849 non-NULL.
14850 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
14851 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
14852 non-NULL.
14853 (gimplify_adjust_omp_clauses): Likewise.
14854 * omp-low.c (lower_rec_simd_input_clauses,
14855 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
14856 safelen the same as safelen(1).
14857 * tree-nested.c (convert_nonlocal_omp_clauses,
14858 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
14859 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
14860 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
14861 Fixup handling of GIMPLE_OMP_TARGET.
14862 (convert_tramp_reference_stmt, convert_gimple_call): Handle
14863 GIMPLE_OMP_TARGET.
14864
14865 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
14866
14867 PR tree-optimization/61554
14868 * tree-ssa-propagate.c: Include "bitmap.h".
14869 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
14870 properly update constructor/destructor.
14871 (substitute_and_fold_dom_walker::before_dom_children):
14872 Remove call to gimple_purge_dead_eh_edges, add bb->index to
14873 need_eh_cleaup instead.
14874 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
14875 need_eh_cleanup.
14876
14877 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
14878
14879 * varpool.c (dump_varpool_node): Dump used_by_single_function.
14880 * tree-pass.h (make_pass_ipa_single_use): New pass.
14881 * cgraph.h (used_by_single_function): New flag.
14882 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
14883 Stream it.
14884 * passes.def (pass_ipa_single_use): Scedule.
14885 * ipa.c (BOTTOM): New macro.
14886 (meet): New function
14887 (propagate_single_user): New function.
14888 (ipa_single_use): New function.
14889 (pass_data_ipa_single_use): New pass.
14890 (pass_ipa_single_use): New pass.
14891 (pass_ipa_single_use::gate): New gate.
14892 (make_pass_ipa_single_use): New function.
14893
14894 2014-06-23 Kai Tietz <ktietz@redhat.com>
14895
14896 PR target/39284
14897 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
14898 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
14899
14900 2014-06-23 Richard Biener <rguenther@suse.de>
14901
14902 * tree-ssa-loop.c (gate_loop): New function.
14903 (pass_tree_loop::gate): Call it.
14904 (pass_data_tree_no_loop, pass_tree_no_loop,
14905 make_pass_tree_no_loop): New.
14906 * tree-vectorizer.c: Include tree-scalar-evolution.c
14907 (pass_slp_vectorize::execute): Initialize loops and SCEV if
14908 required.
14909 (pass_slp_vectorize::clone): New method.
14910 * timevar.def (TV_TREE_NOLOOP): New.
14911 * tree-pass.h (make_pass_tree_no_loop): Declare.
14912 * passes.def (pass_tree_no_loop): New pass group with
14913 SLP vectorizer.
14914
14915 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
14916
14917 PR target/61570
14918 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
14919 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
14920
14921 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
14922
14923 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
14924 "yes" where needed.
14925
14926 2014-06-23 Alan Modra <amodra@gmail.com>
14927
14928 PR bootstrap/61583
14929 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
14930 to zero on debug statements.
14931
14932 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
14933
14934 PR target/60825
14935 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
14936 Ignore third operand if present by marking qualifier_internal.
14937
14938 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
14939
14940 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
14941 vector extension.
14942 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
14943 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
14944 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
14945 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
14946 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
14947 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
14948 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
14949 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
14950 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
14951 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
14952 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
14953 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
14954 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
14955 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
14956 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
14957 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
14958 logic in GCC vector extensions
14959
14960 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
14961 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
14962 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
14963 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
14964 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
14965 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
14966 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
14967 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
14968 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
14969 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
14970
14971 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
14972
14973 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
14974 extensions.
14975
14976 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
14977 (vget_low_s64): Use __GET_LOW macro.
14978 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
14979 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
14980 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
14981 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
14982 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
14983
14984 (vcombine_s64): Use GCC vector extensions; remove cast.
14985 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
14986 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
14987 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
14988 Fix type signature; remove cast.
14989
14990 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
14991
14992 PR target/60825
14993 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
14994 V1DFmode.
14995 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
14996 add V1DFmode
14997 (BUILTIN_VD1): New.
14998 (BUILTIN_VD_RE): Remove.
14999 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
15000 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
15001 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
15002 variant but not df.
15003 (vreinterpretv1df*, vreinterpret*v1df): New.
15004 (vreinterpretdf*, vreinterpret*df): Remove.
15005 * config/aarch64/aarch64-simd.md (aarch64_create,
15006 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
15007 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
15008 (VD1): New.
15009 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
15010 (vcreate_f64): Remove cast, use v1df builtin.
15011 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
15012 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
15013 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
15014 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
15015 vmov_n_f64, vst1_f64): Use gcc vector extensions.
15016 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
15017 add range check using __builtin_aarch64_im_lane_boundsi.
15018 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
15019 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
15020 type signature, use gcc vector extensions.
15021 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
15022 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
15023 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
15024 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
15025 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
15026 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
15027 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
15028 vreinterpret_u64_f64): Use v1df builtin not df.
15029
15030 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
15031
15032 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
15033 vector registers.
15034
15035 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
15036
15037 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
15038 priority directly.
15039
15040 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15041
15042 * loop-invariant.c (pre_check_invariant_p): New function.
15043 (find_invariant_insn): Call pre_check_invariant_p.
15044
15045 2014-06-22 Richard Henderson <rth@redhat.com>
15046
15047 PR target/61565
15048 * compare-elim.c (struct comparison): Add eh_note.
15049 (find_comparison_dom_walker::before_dom_children): Don't eliminate
15050 a redundant comparison in a different EH region. Purge EH edges if
15051 necessary.
15052
15053 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15054
15055 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
15056 (var_shift): Use it.
15057 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
15058 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
15059 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
15060 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
15061 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
15062 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
15063 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
15064 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
15065 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
15066 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
15067 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
15068 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
15069 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
15070 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
15071 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
15072 *rotldi3_internal15be): Use the new attribute. Merge register and
15073 integer alternatives.
15074
15075 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15076
15077 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
15078 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
15079 split, *ashrdi3_internal3 and split): Delete, merge into...
15080 (ashr<mode>3): New expander.
15081 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
15082 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
15083
15084 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15085
15086 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
15087 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
15088 *rotldi3_internal3 and split): Delete, merge into...
15089 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
15090 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
15091 Use "rotlw" extended mnemonic.
15092
15093 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15094
15095 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
15096 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
15097 and split, *ashldi3_internal3 and split): Delete, merge into...
15098 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
15099 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
15100
15101 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15102
15103 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
15104 (lshrsi3, two anonymous define_insns and define_splits,
15105 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
15106 *lshrdi3_internal3 and split): Delete, merge into...
15107 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
15108 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
15109
15110 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15111
15112 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
15113 Remove "O" alternative.
15114
15115 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
15116
15117 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
15118 (mips_move_from_gpr_cost): Likewise.
15119 (mips_register_move_cost): Update accordingly.
15120 (mips_secondary_reload_class): Remove name of in_p.
15121
15122 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
15123
15124 PR target/61503
15125 * config/i386/i386.md (x86_64_shrd, x86_shrd,
15126 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
15127
15128 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15129
15130 * config/nios2/nios2.c: Include "builtins.h".
15131
15132 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
15133
15134 * cgraph.h (tls_model_names): New variable.
15135 * print-tree.c (print_node): Simplify.
15136 * varpool.c (tls_model_names): New variable.
15137 (dump_varpool_node): Output tls model.
15138
15139 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
15140
15141 * ipa-visibility.c (function_and_variable_visibility): Disable
15142 temporarily local aliases for some targets.
15143
15144 2014-06-20 Marek Polacek <polacek@redhat.com>
15145
15146 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
15147 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
15148 into SANITIZE_UNDEFINED.
15149 * doc/invoke.texi: Describe -fsanitize=bounds.
15150 * gimplify.c (gimplify_call_expr): Add gimplification of internal
15151 functions created in the FEs.
15152 * internal-fn.c: Move "internal-fn.h" after "tree.h".
15153 (expand_UBSAN_BOUNDS): New function.
15154 * internal-fn.def (UBSAN_BOUNDS): New internal function.
15155 * internal-fn.h: Don't define internal functions here.
15156 * opts.c (common_handle_option): Add -fsanitize=bounds.
15157 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
15158 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
15159 * tree-core.h: Define internal functions here.
15160 (struct tree_base): Add ifn field.
15161 * tree-pretty-print.c: Include "internal-fn.h".
15162 (dump_generic_node): Handle functions without CALL_EXPR_FN.
15163 * tree.c (get_callee_fndecl): Likewise.
15164 (build_call_expr_internal_loc): New function.
15165 * tree.def (CALL_EXPR): Update description.
15166 * tree.h (CALL_EXPR_IFN): Define.
15167 (build_call_expr_internal_loc): Declare.
15168 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
15169 types.
15170 (ubsan_type_descriptor): Change bool parameter to enum
15171 ubsan_print_style. Adjust the code. Add handling of
15172 UBSAN_PRINT_ARRAY.
15173 (ubsan_expand_bounds_ifn): New function.
15174 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
15175 (ubsan_build_overflow_builtin): Likewise.
15176 (instrument_bool_enum_load): Likewise.
15177 (ubsan_instrument_float_cast): Likewise.
15178 * ubsan.h (enum ubsan_print_style): New enum.
15179 (ubsan_expand_bounds_ifn): Declare.
15180 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
15181
15182 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
15183
15184 * config/rs6000/rs6000.md: Append `DONE' to preparation
15185 statements of `bswap' pattern splitters.
15186
15187 2014-06-20 Tom de Vries <tom@codesourcery.com>
15188
15189 * target.def (call_fusage_contains_non_callee_clobbers): Update
15190 definition.
15191 * doc/tm.texi: Regenerate.
15192
15193 2014-06-20 Yury Gribov <y.gribov@samsung.com>
15194 Max Ostapenko <m.ostapenko@partner.samsung.com>
15195
15196 PR sanitizer/61547
15197 * asan.c (instrument_strlen_call): Fixed instrumentation of
15198 trailing byte.
15199
15200 2014-06-20 Martin Jambor <mjambor@suse.cz>
15201
15202 PR ipa/61540
15203 * ipa-prop.c (impossible_devirt_target): New function.
15204 (try_make_edge_direct_virtual_call): Use it, also instead of
15205 asserting.
15206
15207 2014-06-20 Yury Gribov <y.gribov@samsung.com>
15208 Max Ostapenko <m.ostapenko@partner.samsung.com>
15209
15210 PR sanitizer/61530
15211 * asan.c (build_check_stmt): Add condition.
15212
15213 2014-06-20 Martin Jambor <mjambor@suse.cz>
15214
15215 PR ipa/61211
15216 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
15217 expanded clones.
15218
15219 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15220
15221 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
15222 Update comments.
15223 (VCONQ): Make comment more helpful.
15224 (VCON): Delete.
15225 * config/aarch64/aarch64-simd.md
15226 (aarch64_sqdmulh_lane<mode>):
15227 Use VCOND for operands 2. Update lane checking and flipping logic.
15228 (aarch64_sqrdmulh_lane<mode>): Likewise.
15229 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
15230 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
15231 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
15232 attribute of operand 3 to VCOND.
15233 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
15234 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
15235 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
15236 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
15237 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
15238 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
15239 define_insn.
15240 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
15241 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
15242 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
15243 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
15244 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
15245 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
15246 operand to VCOND. Update lane flipping and bounds checking logic.
15247 (aarch64_sqdmlal2_lane<mode>): Likewise.
15248 (aarch64_sqdmlsl_lane<mode>): Likewise.
15249 (aarch64_sqdmull_lane<mode>): Likewise.
15250 (aarch64_sqdmull2_lane<mode>): Likewise.
15251 (aarch64_sqdmlal_laneq<mode>):
15252 Replace VCON usage with VCONQ.
15253 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
15254 (aarch64_sqdmlal2_laneq<mode>): Emit
15255 aarch64_sqdmlal2_laneq<mode>_internal insn.
15256 Replace VCON with VCONQ.
15257 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
15258 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
15259 (aarch64_sqdmull_laneq<mode>): Emit
15260 aarch64_sqdmull_laneq<mode>_internal insn.
15261 Replace VCON with VCONQ.
15262 (aarch64_sqdmull2_laneq<mode>): Emit
15263 aarch64_sqdmull2_laneq<mode>_internal insn.
15264 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
15265 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
15266 of 3rd argument to int16x4_t.
15267 (vqdmlalh_lane_s16): Likewise.
15268 (vqdmlslh_lane_s16): Likewise.
15269 (vqdmull_high_lane_s16): Likewise.
15270 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
15271 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
15272 (vqdmlsl_lane_s16): Likewise.
15273 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
15274 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
15275 (vqdmlals_lane_s32): Likewise.
15276 (vqdmlsls_lane_s32): Likewise.
15277 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
15278 (vqdmulls_lane_s32): Likewise.
15279 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
15280 (vqdmlsl_lane_s32): Likewise.
15281 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
15282 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
15283 (vqrdmulhh_lane_s16): Likewise.
15284 (vqdmlsl_high_lane_s16): Likewise.
15285 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
15286 (vqdmlsl_high_lane_s32): Likewise.
15287 (vqrdmulhs_lane_s32): Likewise.
15288
15289 2014-06-20 Tom de Vries <tom@codesourcery.com>
15290
15291 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
15292 get_call_reg_set_usage.
15293
15294 2014-06-20 Tom de Vries <tom@codesourcery.com>
15295
15296 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
15297 it contains all call_used_regs.
15298
15299 2014-06-20 Tom de Vries <tom@codesourcery.com>
15300
15301 * final.c (collect_fn_hard_reg_usage): Add and use variable
15302 function_used_regs.
15303
15304 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
15305
15306 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
15307 (set_init_priority, get_init_priority, set_fini_priority,
15308 get_fini_priority): New methods.
15309 * tree.c (init_priority_for_decl): Remove.
15310 (init_ttree): Do not initialize init priority.
15311 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
15312 (decl_priority_info): Remove.
15313 (decl_init_priority_insert): Rewrite.
15314 (decl_fini_priority_insert): Rewrite.
15315 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
15316 tree_priority_map_marked_p): Remove.
15317 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
15318 * lto-streamer-out.c (hash_tree): Do not hash priorities.
15319 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
15320 not output priorities.
15321 (pack_ts_function_decl_value_fields): Likewise.
15322 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
15323 not input priorities.
15324 (unpack_ts_function_decl_value_fields): Likewise.
15325 * symtab.c (symbol_priority_map): Declare.
15326 (init_priority_hash): Declare.
15327 (symtab_unregister_node): Unregister from priority hash, too.
15328 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
15329 New methods.
15330 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
15331 (symbol_priority_info): New function.
15332 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
15333 New methods.
15334 * tree-core.h (tree_priority_map): Remove.
15335
15336 2014-06-20 Jakub Jelinek <jakub@redhat.com>
15337
15338 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
15339 0xff to uint64_t before shifting it up.
15340
15341 2014-06-20 Julian Brown <julian@codesourcery.com>
15342 Chung-Lin Tang <cltang@codesourcery.com>
15343
15344 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
15345 TARGET_THUMB1_ONLY. Add comments.
15346
15347 2014-06-19 Tom de Vries <tom@codesourcery.com>
15348
15349 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
15350 return type to void.
15351 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
15352
15353 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15354
15355 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
15356 as "move", from depends_on.
15357
15358 2014-06-19 Terry Guo <terry.guo@arm.com>
15359
15360 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
15361 stage.
15362
15363 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
15364
15365 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
15366 Remove cr5.
15367 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
15368
15369 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
15370
15371 PR target/61550
15372 * config/sh/sh.c (prepare_move_operands): Don't process TLS
15373 addresses here if reload in progress or completed.
15374
15375 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
15376
15377 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
15378 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
15379 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
15380 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
15381 (mips_register_priority): New function that implements the target
15382 hook TARGET_REGISTER_PRIORITY.
15383 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
15384 (mips_lra_p): Likewise for TARGET_LRA_P.
15385 (TARGET_REGISTER_PRIORITY): Define macro.
15386 (TARGET_SPILL_CLASS): Likewise.
15387 (TARGET_LRA_P): Likewise.
15388 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
15389 classes.
15390 (REG_CLASS_NAMES): Likewise.
15391 (REG_CLASS_CONTENTS): Likewise.
15392 (BASE_REG_CLASS): Use M16_SP_REGS.
15393 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
15394 New set attribute to enable alternatives depending on the register
15395 allocator used.
15396 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
15397 (*lea64): Disable pattern for MIPS16.
15398 * config/mips/mips.opt (mlra): New option.
15399
15400 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
15401
15402 * lra-constraints.c (base_to_reg): New function.
15403 (process_address): Use new function.
15404
15405 2014-06-18 Tom de Vries <tom@codesourcery.com>
15406
15407 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
15408 * config/aarch64/aarch64.c
15409 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
15410 (aarch64_emit_call_insn): New function.
15411 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
15412 of emit_call_insn.
15413 * config/aarch64/aarch64.md (define_expand "call_internal")
15414 (define_expand "call_value_internal", define_expand "sibcall_internal")
15415 (define_expand "sibcall_value_internal"): New.
15416 (define_expand "call", define_expand "call_value")
15417 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
15418 expand variant and aarch64_emit_call_insn.
15419
15420 2014-06-18 Radovan Obradovic <robradovic@mips.com>
15421 Tom de Vries <tom@codesourcery.com>
15422
15423 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
15424 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
15425 Redefine to true.
15426 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
15427 clobbers to CALL_INSN_FUNCTION_USAGE.
15428 (define_expand "sibcall_internal")
15429 (define_expand "sibcall_value_internal"): New.
15430 (define_expand "call", define_expand "call_value"): Add argument to
15431 arm_emit_call_insn.
15432 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
15433 (define_expand "sibcall_value"): Use sibcall_value_internal and
15434 arm_emit_call_insn.
15435
15436 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15437
15438 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
15439
15440 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15441
15442 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
15443 __udivmoddi4.
15444
15445 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15446
15447 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
15448 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
15449 annotations. Fix DWARF information.
15450
15451 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15452
15453 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
15454 __udivmoddi4, and fixups for negative operands.
15455
15456 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15457
15458 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
15459
15460 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15461
15462 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
15463 to __udivmoddi4.
15464
15465 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15466
15467 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
15468 manipulation.
15469
15470 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15471
15472 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
15473 describing register usage on function entry and exit.
15474
15475 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15476
15477 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
15478 (__aeabi_ldivmod): Fix whitespace.
15479
15480 2014-06-18 Andreas Schwab <schwab@suse.de>
15481
15482 * doc/md.texi (Standard Names): Use @itemx for grouped items.
15483 Remove blank line after @item.
15484
15485 2014-06-18 Richard Henderson <rth@redhat.com>
15486
15487 PR target/61545
15488 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
15489
15490 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15491
15492 * config/arm/arm.c (neon_vector_mem_operand): Allow register
15493 POST_MODIFY for neon loads and stores.
15494 (arm_print_operand): Output post-index register for neon loads and
15495 stores.
15496
15497 2014-06-18 Richard Biener <rguenther@suse.de>
15498
15499 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
15500
15501 2014-06-18 Richard Biener <rguenther@suse.de>
15502
15503 * tree-pass.h (make_pass_dce_loop): Remove.
15504 * passes.def: Replace pass_dce_loop with pass_dce.
15505 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
15506 changed free niter estimates and reset the scev cache.
15507 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
15508 make_pass_dce_loop): Remove.
15509 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
15510 (fini_copy_prop): Return whether something changed. Always
15511 let substitute_and_fold perform DCE and free niter estimates
15512 and reset the scev cache if so.
15513 (execute_copy_prop): If sth changed schedule cleanup-cfg.
15514 (pass_data_copy_prop): Do not unconditionally schedule
15515 cleanup-cfg or update-ssa.
15516
15517 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
15518
15519 PR tree-optimization/61518
15520 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
15521 reduction var is used in reduction stmt or phi-function only.
15522
15523 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15524
15525 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
15526
15527 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
15528
15529 PR tree-optimization/61517
15530 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
15531 whose rhs's first tree is the source expression instead of the
15532 expression itself.
15533 (find_bswap_or_nop): Likewise.
15534 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
15535 gimple stmt whose rhs's first tree is the source. In the memory source
15536 case, move the stmt to be replaced close to one of the original load to
15537 avoid the problem of a store between the load and the stmt's original
15538 location.
15539 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
15540 signature.
15541
15542 2014-06-18 Andreas Schwab <schwab@suse.de>
15543
15544 PR rtl-optimization/54555
15545 * postreload.c (move2add_use_add2_insn): Substitute
15546 STRICT_LOW_PART only if it is cheaper.
15547
15548 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
15549
15550 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
15551 Do not use unspec as call operand. Use memory_operand instead of
15552 memory_nox32_operand and add "m" operand constraint. Disable
15553 pattern for TARGET_X32.
15554 (*sibcall_pop_memory): Ditto.
15555 (*sibcall_value_memory): Ditto.
15556 (*sibcall_value_pop_memory): Ditto.
15557 (sibcall peepholes): Merge SImode and DImode patterns using
15558 W mode iterator. Use memory_operand instead of memory_nox32_operand.
15559 Disable pattern for TARGET_X32. Check if eliminated register is
15560 really dead after call insn. Generate call RTX without unspec operand.
15561 (sibcall_value peepholes): Ditto.
15562 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
15563 instead of memory_nox32_operand. Check if eliminated register is
15564 really dead after call insn. Generate call RTX without unspec operand.
15565 (sibcall_value_pop peepholes): Ditto.
15566 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
15567
15568 2014-06-18 Terry Guo <terry.guo@arm.com>
15569
15570 PR target/61544
15571 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
15572 reach the head.
15573
15574 2014-06-18 Olivier Hainque <hainque@adacore.com>
15575
15576 * tree-core.h (tree_block): Add an "end_locus" field, allowing
15577 memorization of the end of block source location.
15578 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
15579 * gimplify.c (gimplify_bind_expr): Propagate the block start and
15580 end source location info we have on the block entry/exit code we
15581 generate.
15582
15583 2014-06-18 Richard Biener <rguenther@suse.de>
15584
15585 * common.opt (fssa-phiopt): New option.
15586 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
15587 but not with -Og.
15588 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
15589 * doc/invoke.texi (-fssa-phiopt): Document.
15590
15591 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15592
15593 * genattrtab.c (n_bypassed): New variable.
15594 (process_bypasses): Initialise n_bypassed.
15595 Count number of bypassed reservations.
15596 (make_automaton_attrs): Allocate space for bypassed reservations
15597 rather than number of bypasses.
15598
15599 2014-06-18 Richard Biener <rguenther@suse.de>
15600
15601 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
15602 we propagated anything.
15603 (substitute_and_fold_dom_walker::before_dom_children): Something
15604 changed if we propagated into PHI arguments.
15605 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
15606 we removed a stmt.
15607
15608 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
15609
15610 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
15611 vector case.
15612 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
15613 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
15614 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
15615 Introduces alternative way of loads group permutaions.
15616 (vect_transform_grouped_load): Try alternative way of permutations.
15617
15618 2014-06-18 Jakub Jelinek <jakub@redhat.com>
15619
15620 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
15621 changed in ORT_TARGET region, don't jump to do_outer.
15622 (struct gimplify_adjust_omp_clauses_data): New type.
15623 (gimplify_adjust_omp_clauses_1): Adjust for data being
15624 a struct gimplify_adjust_omp_clauses_data pointer instead
15625 of tree *. Pass pre_p as a new argument to
15626 lang_hooks.decls.omp_finish_clause hook.
15627 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
15628 splay_tree_foreach to pass both list_p and pre_p.
15629 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
15630 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
15631 gimplify_adjust_omp_clauses callers.
15632 * langhooks.c (lhd_omp_finish_clause): New function.
15633 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
15634 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
15635 * langhooks.h (struct lang_hooks_for_decls): Add a new
15636 gimple_seq * argument to omp_finish_clause hook.
15637 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
15638 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
15639 (scan_omp_parallel, lower_omp_for): When adding
15640 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
15641 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
15642 * tree-nested.c (convert_nonlocal_omp_clauses,
15643 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
15644 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
15645
15646 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
15647
15648 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
15649 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
15650
15651 2014-06-17 Xinliang David Li <davidxl@google.com>
15652
15653 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
15654 * passes.c (pass_init_dump_file): Do not set initialize
15655 flag to false unconditionally.
15656
15657 2014-06-17 Richard Biener <rguenther@suse.de>
15658
15659 * genopinit.c (main): Use vec<>::qsort method.
15660 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
15661 Likewise.
15662 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
15663
15664 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
15665
15666 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
15667 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
15668 (mips_move_to_gpr_cost): Remove ST_REGS case.
15669 (mips_move_from_gpr_cost): Likewise.
15670 (mips_register_move_cost): Likewise.
15671 (mips_secondary_reload_class): Likewise.
15672
15673 2014-06-17 Richard Biener <rguenther@suse.de>
15674
15675 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
15676 (pass_all_optimizations): Move 3rd copy-prop pass from after
15677 fre to before ifcombine/phiopt.
15678
15679 2014-06-17 Richard Biener <rguenther@suse.de>
15680
15681 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
15682 and allow all blocks to be forwarders.
15683
15684 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
15685
15686 PR target/61483
15687 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
15688 variable 'size'; calculate 'size' right in the front; use
15689 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
15690 pcum->aapcs_stack_words.
15691
15692 2014-06-17 Nick Clifton <nickc@redhat.com>
15693
15694 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
15695 (umulhi3, mulsidi3, umulsidi3): Likewise.
15696
15697 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
15698
15699 PR middle-end/61508
15700 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
15701 check for section name.
15702
15703 2014-06-17 Richard Biener <rguenther@suse.de>
15704
15705 * tree-ssa-propagate.c: Include domwalk.h.
15706 (substitute_and_fold): Outline main worker into a domwalker ...
15707 (substitute_and_fold_dom_walker::before_dom_children): ... here.
15708 Schedule stmts we can fully propagate for removal. Remove
15709 poor-mans DCE.
15710 (substitute_and_fold): Apply a dominator walk to perform
15711 substitution. Process stmts scheduled for removal here.
15712
15713 2014-06-17 Richard Biener <rguenther@suse.de>
15714
15715 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
15716 of PHI node moving.
15717
15718 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
15719
15720 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
15721 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
15722 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
15723 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
15724 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
15725 TARGET_HARD_FLOAT.
15726 (get_fpscr) : Likewise.
15727
15728 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
15729
15730 PR rtl-optimization/61325
15731 * lra-constraints.c (valid_address_p): Add forward declaration.
15732 (simplify_operand_subreg): Check address validity before and after
15733 alter_reg of memory subreg.
15734
15735 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
15736
15737 * config/i386/i386.c (decide_alg): Correctly handle
15738 maximum size of stringop algorithm.
15739
15740 2014-06-16 Yury Gribov <y.gribov@samsung.com>
15741
15742 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
15743
15744 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
15745
15746 PR rtl-optimization/61522
15747 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
15748
15749 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
15750
15751 Revert:
15752 * symtab.c (symtab_node::reset_section): New method.
15753 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
15754 for localization.
15755 * cgraph.h (reset_section): Declare.
15756 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
15757 do not consider comdat locals.
15758 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
15759 for new symbol.
15760 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
15761 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
15762 reset sections of symbols dragged out of the comdats.
15763 (function_and_variable_visibility): Reset sections of
15764 localized symbols.
15765
15766 2014-06-16 Richard Biener <rguenther@suse.de>
15767
15768 PR tree-optimization/61482
15769 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
15770 [-INF(OVF), +INF(OVF)] range.
15771
15772 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
15773
15774 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
15775 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
15776 handling 32-bit multiplication.
15777
15778 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
15779
15780 PR middle-end/61430
15781 * lra-lives.c (process_bb_lives): Skip creating copy during
15782 insn scan when src/dest has constrained to same regno.
15783
15784 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
15785
15786 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
15787 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
15788
15789 2014-06-16 Yury Gribov <y.gribov@samsung.com>
15790
15791 * asan.c (check_func): New function.
15792 (maybe_create_ssa_name): Likewise.
15793 (build_check_stmt_with_calls): Likewise.
15794 (use_calls_p): Likewise.
15795 (report_error_func): Change interface.
15796 (build_check_stmt): Allow non-integer lengths; add support
15797 for new parameter.
15798 (asan_instrument): Likewise.
15799 (instrument_mem_region_access): Moved code to build_check_stmt.
15800 (instrument_derefs): Likewise.
15801 (instrument_strlen_call): Likewise.
15802 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
15803 * doc/invoke.texi: Describe new parameter.
15804 * params.def: Define new parameter.
15805 * params.h: Likewise.
15806 * sanitizer.def: Describe new builtins.
15807
15808 2014-06-16 Richard Biener <rguenther@suse.de>
15809
15810 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15811 Make all defs available at the end.
15812 (eliminate): If we remove a PHI node schedule cfg-cleanup.
15813
15814 2014-06-18 Jakub Jelinek <jakub@redhat.com>
15815
15816 PR plugins/45078
15817 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
15818
15819 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
15820
15821 PR bootstrap/61516
15822 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
15823 initialization. Replace remaining use of uid.
15824
15825 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
15826
15827 * c-family/c-common.c (handle_tls_model_attribute): Use
15828 set_decl_tls_model.
15829 * c-family/c-common.c (handle_tls_model_attribute): Use
15830 set_decl_tls_model.
15831 * cgraph.h (struct varpool_node): Add tls_model.
15832 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
15833 * tree.h (DECL_TLS_MODEL): Update.
15834 (DECL_THREAD_LOCAL_P): Check that variable is static.
15835 (decl_tls_model): Declare.
15836 (set_decl_tls_model): Declare.
15837 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
15838 set symbol prorperties.
15839 (get_emutls_init_templ_addr): Cleanup.
15840 (new_emutls_decl): Update.
15841 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
15842 (lto_input_varpool_node): Likewise.
15843 * lto-streamer-out.c (hash_tree): Likewise.
15844 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
15845 not stream DECL_TLS_MODEL.
15846 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
15847 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
15848
15849 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15850
15851 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
15852
15853 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15854
15855 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
15856 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
15857 lists.
15858 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
15859 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
15860 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
15861 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
15862 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
15863 (df_get_artificial_defs, df_get_artificial_uses)
15864 (df_single_def, df_single_use): Update accordingly.
15865 (df_refs_chain_dump): Take the first element in a linked list as
15866 parameter, rather than a pointer to an array of pointers.
15867 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
15868 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
15869 (df_chain_create_bb_process_use): Likewise.
15870 (df_md_bb_local_compute_process_def): Likewise.
15871 * fwprop.c (process_defs, process_uses): Likewise.
15872 (register_active_defs, update_uses): Likewise.
15873 (forward_propagate_asm): Update for new df_ref linking.
15874 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
15875 (df_null_ref_rec, df_null_mw_rec): Likewise.
15876 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
15877 explicitly.
15878 (df_scan_free_bb_info): Remove check for null artificial_defs.
15879 (df_install_ref_incremental): Adjust for new df_ref linking.
15880 Use a single-element insertion rather than a full sort.
15881 (df_ref_chain_delete_du_chain): Take the first element
15882 in a linked list as parameter, rather than a pointer to an array of
15883 pointers.
15884 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
15885 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
15886 (df_insn_info_delete): Remove check for null defs and call to
15887 df_scan_free_mws_vec.
15888 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
15889 null rather than df_null_*_rec.
15890 (df_insn_rescan_debug_internal): Likewise, and update null
15891 checks in the same way. Remove check for null defs.
15892 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
15893 Move a single element rather doing a full sort.
15894 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
15895 linking.
15896 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
15897 Initialize df_ref and df_mw_hardreg lists to null rather than
15898 df_null_*_rec.
15899 (df_ref_compare): Take df_refs as parameter, transferring the
15900 old interface to...
15901 (df_ref_ptr_compare): ...this new function.
15902 (df_sort_and_compress_refs): Update accordingly.
15903 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
15904 old interface to...
15905 (df_mw_ptr_compare): ...this new function.
15906 (df_sort_and_compress_mws): Update accordingly.
15907 (df_install_refs, df_install_mws): Return a linked list rather than
15908 an array of pointers.
15909 (df_refs_add_to_chains): Assert that old lists are empty rather
15910 than freeing them.
15911 (df_insn_refs_verify): Don't handle null defs speciailly.
15912 * web.c (union_match_dups): Update for new df_ref linking.
15913
15914 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15915
15916 * df.h (df_ref_create, df_ref_remove): Delete.
15917 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
15918 (df_ref_remove): Likewise.
15919
15920 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15921
15922 * df.h (df_single_def, df_single_use): New functions.
15923 * ira.c (find_moveable_pseudos): Use them.
15924
15925 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15926
15927 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
15928 * df-problems.c (df_note_bb_compute): Use it.
15929 * regstat.c (regstat_bb_compute_ri): Likewise.
15930
15931 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15932
15933 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
15934 * cse.c (cse_extended_basic_block): Use them.
15935 * dce.c (mark_artificial_use): Likewise.
15936 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
15937 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
15938 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
15939 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
15940 (df_simulate_initialize_backwards): Likewise.
15941 (df_simulate_finalize_backwards): Likewise.
15942 (df_simulate_initialize_forwards): Likewise.
15943 (df_md_simulate_artificial_defs_at_top): Likewise.
15944 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
15945 * regrename.c (init_rename_info): Likewise.
15946 * regstat.c (regstat_bb_compute_ri): Likewise.
15947 (regstat_bb_compute_calls_crossed): Likewise.
15948
15949 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15950
15951 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
15952 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
15953 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
15954 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
15955 * combine.c (create_log_links): Likewise.
15956 * compare-elim.c (find_flags_uses_in_insn): Likewise.
15957 (try_eliminate_compare): Likewise.
15958 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
15959 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
15960 (remove_reg_equal_equiv_notes_for_defs): Likewise.
15961 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
15962 (word_dce_process_block, dce_process_block): Likewise.
15963 * ddg.c (def_has_ccmode_p): Likewise.
15964 * df-core.c (df_bb_regno_first_def_find): Likewise.
15965 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
15966 * df-problems.c (df_rd_simulate_one_insn): Likewise.
15967 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
15968 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
15969 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
15970 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
15971 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
15972 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
15973 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
15974 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
15975 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
15976 * fwprop.c (local_ref_killed_between_p): Likewise.
15977 (all_uses_available_at, free_load_extend): Likewise.
15978 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
15979 * hw-doloop.c (scan_loop): Likewise.
15980 * ifcvt.c (dead_or_predicable): Likewise.
15981 * init-regs.c (initialize_uninitialized_regs): Likewise.
15982 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
15983 (process_bb_node_lives): Likewise.
15984 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
15985 (find_moveable_pseudos): Likewise.
15986 * loop-invariant.c (check_dependencies, record_uses): Likewise.
15987 * recog.c (peep2_find_free_register): Likewise.
15988 * ree.c (get_defs): Likewise.
15989 * regstat.c (regstat_bb_compute_ri): Likewise.
15990 (regstat_bb_compute_calls_crossed): Likewise.
15991 * sched-deps.c (find_inc, find_mem): Likewise.
15992 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
15993 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
15994 * shrink-wrap.c (requires_stack_frame_p): Likewise.
15995 (prepare_shrink_wrap): Likewise.
15996 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
15997 * web.c (union_defs, pass_web::execute): Likewise.
15998 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
15999 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
16000
16001 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
16002
16003 * lra-assign.c (assign_by_spills): Add code to assign vector regs
16004 to inheritance pseudos.
16005 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
16006
16007 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
16008
16009 PR target/61415
16010 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
16011 (BU_MISC_2): Rename to ...
16012 (BU_LDBL128_2): ... this.
16013 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
16014 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
16015 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
16016 RS6000_BTM_LDBL128.
16017 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
16018 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
16019 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
16020 (unpacktf_1): Likewise.
16021 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
16022 (__builtin_longdouble_dw1): Likewise.
16023 * doc/sourcebuild.texi (longdouble128): Document.
16024
16025 2014-06-13 Jeff Law <law@redhat.com>
16026
16027 PR rtl-optimization/61094
16028 PR rtl-optimization/61446
16029 * ree.c (combine_reaching_defs): Get the mode for the copy from
16030 the extension insn rather than the defining insn.
16031
16032 2014-06-13 Dehao Chen <dehao@google.com>
16033
16034 * dwarf2out.c (add_linkage_name): Emit more linkage name.
16035
16036 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
16037
16038 * doc/install.texi (--enable-linker-plugin-configure-flags)
16039 (--enable-linker-plugin-flags): Document new flags.
16040
16041 2014-06-13 Martin Jambor <mjambor@suse.cz>
16042
16043 PR ipa/61186
16044 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
16045 cache_token if returning early.
16046
16047 2014-06-13 Nick Clifton <nickc@redhat.com>
16048
16049 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
16050 requested alignment is active.
16051 (LABEL_ALIGN): Likewise.
16052 (LOOP_ALIGN): Likewise.
16053
16054 2014-06-13 Richard Biener <rguenther@suse.de>
16055
16056 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16057 Rewrite to propagate the VN result into all uses where
16058 possible and to remove stmts becoming dead because of that.
16059 (eliminate): Generalize stmt removal handling, remove in
16060 reverse dominator order to support proper debug stmt
16061 generation. Update stmts before removing stmts.
16062 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
16063
16064 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
16065
16066 PR tree-optimization/61375
16067 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
16068 symbolic number cannot be represented in an uint64_t.
16069 (find_bswap_or_nop_1): Likewise.
16070
16071 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
16072
16073 * symtab.c (symtab_node::reset_section): New method.
16074 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
16075 for localization.
16076 * cgraph.h (reset_section): Declare.
16077 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
16078 do not consider comdat locals.
16079 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
16080 for new symbol.
16081 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
16082 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
16083 reset sections of symbols dragged out of the comdats.
16084 (function_and_variable_visibility): Reset sections of
16085 localized symbols.
16086
16087 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
16088
16089 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
16090 to use symtab and decl_binds_to_current_def_p
16091 * tree-vectorizer.c (increase_alignment): Increase alignment
16092 of alias target, too.
16093
16094 2014-06-12 Jakub Jelinek <jakub@redhat.com>
16095
16096 PR middle-end/61486
16097 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
16098 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
16099 if outer combined construct is distribute.
16100 (gimplify_omp_for): For OMP_DISTRIBUTE set
16101 gimplify_omp_ctxp->distribute.
16102 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
16103 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
16104 mapping into decl map.
16105
16106 2014-06-12 Jason Merrill <jason@redhat.com>
16107
16108 * common.opt (fabi-version): Change default to 0.
16109
16110 2014-06-12 Jason Merrill <jason@redhat.com>
16111
16112 * toplev.c (process_options): Reject -fabi-version=1.
16113
16114 2014-06-12 Jeff Law <law@redhat.com>
16115
16116 PR tree-optimization/61009
16117 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
16118 value when we stop processing a block due to problematic PHIs.
16119
16120 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
16121
16122 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
16123 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
16124 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
16125 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
16126 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
16127 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
16128 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
16129 are not in the spec.
16130
16131 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
16132
16133 PR target/59843
16134 * config/aarch64/aarch64-modes.def: Add V1DFmode.
16135 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
16136 Support V1DFmode.
16137
16138 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
16139
16140 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
16141
16142 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
16143
16144 PR target/61443
16145 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
16146 loading from address spaces.
16147
16148 2014-06-12 Martin Liska <mliska@suse.cz>
16149
16150 PR ipa/61462
16151 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
16152 statement is reachable.
16153
16154 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
16155
16156 * symtab.c (section_hash): New hash.
16157 (symtab_unregister_node): Clear section before freeing.
16158 (hash_section_hash_entry): New haser.
16159 (eq_sections): New function.
16160 (symtab_node::set_section_for_node): New method.
16161 (set_section_1): Update.
16162 (symtab_node::set_section): Take string instead of tree as parameter.
16163 (symtab_resolve_alias): Update.
16164 * cgraph.h (section_hash_entry_d): New structure.
16165 (section_hash_entry): New typedef.
16166 (cgraph_node): Change comdat_group_ to x_comdat_group,
16167 change section_ to x_section and turn into section_hash_entry;
16168 update accestors; put set_section_for_node offline.
16169 * tree.c (decl_section_name): Turn into string.
16170 (set_decl_section_name): Change parameter to be string.
16171 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
16172 * sdbout.c (sdbout_one_type): Update.
16173 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
16174 * varasm.c (IN_NAMED_SECTION, get_named_section,
16175 resolve_unique_section, hot_function_section, get_named_text_section,
16176 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
16177 make_decl_rtl, default_unique_section): Update.
16178 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
16179 (c6x_elf_unique_section): Update.
16180 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
16181 * config/pa/pa.c (pa_function_section): Update.
16182 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
16183 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
16184 * config/arc/arc.c (arc_in_small_data_p): Update.
16185 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
16186 * config/mcore/mcore.c (mcore_unique_section): Update.
16187 * config/mips/mips.c (mips16_build_function_stub): Update.
16188 (mips16_build_call_stub): Update.
16189 (mips_function_rodata_section): Update.
16190 (mips_in_small_data_p): Update.
16191 * config/score/score.c (score_in_small_data_p): Update.
16192 * config/rx/rx.c (rx_in_small_data): Update.
16193 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
16194 (rs6000_xcoff_asm_named_section): Update.
16195 (rs6000_xcoff_unique_section): Update.
16196 * config/frv/frv.c (frv_string_begins_with): Update.
16197 (frv_in_small_data_p): Update.
16198 * config/v850/v850.c (v850_encode_data_area): Update.
16199 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
16200 (bfin_handle_l1_data_attribute): Update.
16201 (bfin_handle_l2_attribute): Update.
16202 * config/mep/mep.c (mep_unique_section): Update.
16203 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
16204 Update.
16205 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
16206 (h8300_handle_tiny_data_attribute): Update.
16207 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
16208 (m32r_in_small_data_p): Update.
16209 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
16210 * config/i386/i386.c (ix86_in_large_data_p): Update.
16211 * config/i386/winnt.c (i386_pe_unique_section): Update.
16212 * config/darwin.c (darwin_function_section): Update.
16213 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
16214 * tree-emutls.c (get_emutls_init_templ_addr): Update.
16215 (new_emutls_decl): Update.
16216 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
16217 input_varpool_node): Update.
16218 (ead_string_cst): Turn to ...
16219 (read_string): ... this one.
16220 * dwarf2out.c (secname_for_decl): Update.
16221 * asan.c (asan_protect_global): Update.
16222
16223 2014-06-11 DJ Delorie <dj@redhat.com>
16224
16225 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
16226 cache lines.
16227 * config/rx/rx.c (rx_option_override): Likewise.
16228 (rx_align_for_label): Likewise.
16229
16230 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
16231
16232 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
16233
16234 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
16235 prototype.
16236
16237 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16238
16239 * common.md: New file.
16240 * doc/md.texi: Update description of generic, machine-independent
16241 constraints.
16242 * config/s390/constraints.md (e): Delete.
16243 * Makefile.in (md_file): Include common.md.
16244 * config/m32c/t-m32c (md_file): Likewise.
16245 * genpreds.c (general_mem): New array.
16246 (generic_constraint_letters): Remove constraints now defined by
16247 common.md.
16248 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
16249 Allow the first character to be '<' or '>' as well.
16250 * genoutput.c (general_mem): New array.
16251 (indep_constraints): Remove constraints now defined by common.md.
16252 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
16253 Remove special handling of 'm'.
16254 * ira-costs.c (record_reg_classes): Remove special handling of
16255 constraints now defined by common.md.
16256 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
16257 * ira-lives.c (single_reg_class): Likewise.
16258 (ira_implicitly_set_insn_hard_regs): Likewise.
16259 * lra-constraints.c (reg_class_from_constraints): Likewise.
16260 (process_alt_operands, process_address, curr_insn_transform): Likewise.
16261 * postreload.c (reload_cse_simplify_operands): Likewise.
16262 * reload.c (push_secondary_reload, scratch_reload_class)
16263 (find_reloads, alternative_allows_const_pool_ref): Likewise.
16264 * reload1.c (maybe_fix_stack_asms): Likewise.
16265 * targhooks.c (default_secondary_reload): Likewise.
16266 * stmt.c (parse_output_constraint): Likewise.
16267 * recog.c (preprocess_constraints): Likewise.
16268 (constrain_operands, peep2_find_free_register): Likewise.
16269 (asm_operand_ok): Likewise, but add a comment saying why 'o'
16270 must be handled specially.
16271
16272 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16273
16274 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
16275 * genpreds.c (have_const_dbl_constraints): Delete.
16276 (add_constraint): Don't set it.
16277 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
16278 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
16279 constraints using the lookup_constraint logic.
16280 * ira-lives.c (single_reg_class): Likewise.
16281 * ira.c (ira_setup_alts): Likewise.
16282 * lra-constraints.c (process_alt_operands): Likewise.
16283 * recog.c (asm_operand_ok, constrain_operands): Likewise.
16284 * reload.c (find_reloads): Likewise.
16285
16286 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16287
16288 * genpreds.c (const_int_start, const_int_end): New variables.
16289 (choose_enum_order): Output CONST_INT constraints before memory
16290 constraints.
16291 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
16292 Add CT_CONST_INT.
16293 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
16294 * ira.c (ira_setup_alts): Likewise.
16295 * lra-constraints.c (process_alt_operands): Likewise.
16296 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
16297 * reload.c (find_reloads): Likewise.
16298
16299 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16300
16301 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
16302 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
16303 * recog.c (preprocess_constraints): Update accordingly.
16304
16305 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16306
16307 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
16308 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
16309 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
16310 * genpreds.c (print_type_tree): New function.
16311 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
16312 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
16313 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
16314 Write out enum constraint_type and get_constraint_type.
16315 * lra-constraints.c (satisfies_memory_constraint_p): Take a
16316 constraint_num rather than a constraint string.
16317 (satisfies_address_constraint_p): Likewise.
16318 (reg_class_from_constraints): Avoid old constraint macros.
16319 (process_alt_operands, process_address_1): Likewise.
16320 (curr_insn_transform): Likewise.
16321 * ira-costs.c (record_reg_classes): Likewise.
16322 (record_operand_costs): Likewise.
16323 * ira-lives.c (single_reg_class): Likewise.
16324 (ira_implicitly_set_insn_hard_regs): Likewise.
16325 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
16326 * postreload.c (reload_cse_simplify_operands): Likewise.
16327 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
16328 (constrain_operands, peep2_find_free_register): Likewise.
16329 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
16330 (find_reloads, alternative_allows_const_pool_ref): Likewise.
16331 * reload1.c (maybe_fix_stack_asms): Likewise.
16332 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
16333 * targhooks.c (default_secondary_reload): Likewise.
16334 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
16335 to EXTRA_CONSTRAINT_STR.
16336 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
16337
16338 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16339
16340 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
16341 (write_constraint_satisfied_p_array): ...this new function.
16342 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
16343 an array.
16344 (write_insn_preds_c): Update accordingly.
16345
16346 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16347
16348 * genpreds.c (write_lookup_constraint): Rename to...
16349 (write_lookup_constraint_1): ...this.
16350 (write_lookup_constraint_array): New function.
16351 (write_tm_preds_h): Define lookup_constraint as an inline function
16352 that uses write_lookup_constraint_array where possible.
16353 (write_insn_preds_c): Update for the changes above.
16354
16355 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16356
16357 * doc/md.texi (regclass_for_constraint): Rename to...
16358 (reg_class_for_constraint): ...this.
16359 * genpreds.c (num_constraints, enum_order, register_start)
16360 (register_end, satisfied_start, memory_start, memory_end)
16361 (address_start, address_end): New variables.
16362 (add_constraint): Count the number of constraints.
16363 (choose_enum_order): New function.
16364 (write_enum_constraint_num): Iterate over enum_order.
16365 (write_regclass_for_constraint): Rename to...
16366 (write_reg_class_for_constraint_1): ...this and update output
16367 accordingly.
16368 (write_constraint_satisfied_p): Rename to...
16369 (write_constraint_satisfied_p_1): ...this and update output
16370 accordingly. Do nothing if all extra constraints are register
16371 constraints.
16372 (write_insn_extra_memory_constraint): Delete.
16373 (write_insn_extra_address_constraint): Delete.
16374 (write_range_function): New function.
16375 (write_tm_preds_h): Define constraint_satisfied_p and
16376 reg_class_for_constraint as inline functions that do a range check
16377 before calling the out-of-line function. Use write_range_function
16378 to implement insn_extra_{register,memory,address}_constraint,
16379 the first of which is new.
16380 (write_insn_preds_c): Update after above changes to write_* functions.
16381 (main): Call choose_enum_order.
16382
16383 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
16384
16385 PR tree-optimization/61306
16386 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
16387 expression instead of its size.
16388 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
16389 false to prevent optimization when the result is unpredictable due to
16390 arithmetic right shift of signed type with highest byte is set.
16391 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
16392 (init_symbolic_number): Likewise.
16393 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
16394 when the result is unpredictable due to sign extension.
16395
16396 2014-06-11 Terry Guo <terry.guo@arm.com>
16397
16398 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
16399 (*thumb1_addsi3): Ditto.
16400 (*thumb_subdi3): Ditto.
16401 (thumb1_subsi3_insn): Ditto.
16402 (*thumb_mulsi3): Ditto.
16403 (*thumb_mulsi3_v6): Ditto.
16404 (*thumb1_andsi3_insn): Ditto.
16405 (thumb1_bicsi3): Ditto.
16406 (*thumb1_iorsi3_insn): Ditto.
16407 (*thumb1_xorsi3_insn): Ditto.
16408 (*thumb1_ashlsi3): Ditto.
16409 (*thumb1_ashrsi3): Ditto.
16410 (*thumb1_lshrsi3): Ditto.
16411 (*thumb1_rotrsi3): Ditto.
16412 (*thumb1_negdi2): Ditto.
16413 (*thumb1_negsi2): Ditto.
16414 (*thumb1_abssi2): Ditto.
16415 (*thumb1_neg_abssi2): Ditto.
16416 (*thumb1_one_cmplsi2): Ditto.
16417 (*thumb1_zero_extendhisi2): Ditto.
16418 (*thumb1_zero_extendqisi2): Ditto.
16419 (*thumb1_zero_extendqisi2_v6): Ditto.
16420 (thumb1_extendhisi2): Ditto.
16421 (thumb1_extendqisi2): Ditto.
16422 (*thumb1_movdi_insn): Ditto.
16423 (*thumb1_movsi_insn): Ditto.
16424 (*thumb1_movhi_insn): Ditto.
16425 (thumb_movhi_clobber): Ditto.
16426 (*thumb1_movqi_insn): Ditto.
16427 (*thumb1_movhf): Ditto.
16428 (*thumb1_movsf_insn): Ditto.
16429 (*thumb_movdf_insn): Ditto.
16430 (movmem12b): Ditto.
16431 (movmem8b): Ditto.
16432 (cbranchqi4): Ditto.
16433 (cbranchsi4_insn): Ditto.
16434 (cbranchsi4_scratch): Ditto.
16435 (*negated_cbranchsi4): Ditto.
16436 (*tbit_cbranch): Ditto.
16437 (*tlobits_cbranch): Ditto.
16438 (*tstsi3_cbranch): Ditto.
16439 (*cbranchne_decr1): Ditto.
16440 (*addsi3_cbranch): Ditto.
16441 (*addsi3_cbranch_scratch): Ditto.
16442 (*thumb_cmpdi_zero): Ditto.
16443 (cstoresi_eq0_thumb1): Ditto.
16444 (cstoresi_ne0_thumb1): Ditto.
16445 (*cstoresi_eq0_thumb1_insn): Ditto.
16446 (*cstoresi_ne0_thumb1_insn): Ditto.
16447 (cstoresi_nltu_thumb1): Ditto.
16448 (cstoresi_ltu_thumb1): Ditto.
16449 (thumb1_addsi3_addgeu): Ditto.
16450 (*thumb_jump): Ditto.
16451 (*call_reg_thumb1_v5): Ditto.
16452 (*call_reg_thumb1): Ditto.
16453 (*call_value_reg_thumb1_v5): Ditto.
16454 (*call_value_reg_thumb1): Ditto.
16455 (*call_insn): Ditto.
16456 (*call_value_insn): Ditto.
16457 (thumb1_casesi_internal_pic): Ditto.
16458 (thumb1_casesi_dispatch): Ditto.
16459 (*thumb1_indirect_jump): Ditto.
16460 (prologue_thumb1_interwork): Ditto.
16461 (*epilogue_insns): Ditto.
16462 (consttable_1): Ditto.
16463 (consttable_2): Ditto.
16464 (tablejump): Ditto.
16465 (*thumb1_tablejump): Ditto.
16466 (thumb_eh_return): Ditto.
16467 (define_peephole2): Two of them are thumb1 only and got moved into
16468 new file thumb1.md.
16469 (define_split): Six of them are thumb1 only and got moved into new
16470 file thumb1.md.
16471 * config/arm/thumb1.md: New file comprised of above thumb1 only
16472 patterns.
16473
16474 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16475
16476 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
16477 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
16478 dependencies.
16479 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
16480 (aarch64_crc_builtin_datum): New struct.
16481 (aarch64_crc_builtin_data): New.
16482 (aarch64_init_crc32_builtins): New function.
16483 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
16484 (aarch64_crc32_expand_builtin): New.
16485 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
16486 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16487 __ARM_FEATURE_CRC32 when appropriate.
16488 (TARGET_CRC32): Define.
16489 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
16490 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
16491 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
16492 (aarch64_<crc_variant>): New pattern.
16493 * config/aarch64/arm_acle.h: New file.
16494 * config/aarch64/iterators.md (CRC): New int iterator.
16495 (crc_variant, crc_mode): New int attributes.
16496 * doc/aarch64-acle-intrinsics.texi: New file.
16497 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
16498 Include aarch64-acle-intrinsics.texi.
16499
16500 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
16501
16502 * tree-vect-data-refs.c (vect_grouped_store_supported): New
16503 check for stores group of length 3.
16504 (vect_permute_store_chain): New permutations for stores group of
16505 length 3.
16506 * tree-vect-stmts.c (vect_model_store_cost): Change cost
16507 of vec_perm_shuffle for the new permutations.
16508
16509 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
16510
16511 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
16512 table rewriting temporarily on targets not supporting ONE_ONLY.
16513
16514 2014-06-11 Richard Biener <rguenther@suse.de>
16515
16516 PR middle-end/61437
16517 Revert
16518 2014-06-04 Richard Biener <rguenther@suse.de>
16519
16520 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
16521 TREE_PUBLIC and DECL_EXTERNAL decls.
16522
16523 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
16524
16525 * varasm.c (set_implicit_section): New function.
16526 (resolve_unique_section): Use it to set implicit section
16527 for aliases, too.
16528 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
16529 (default_function_section): Likewise.
16530 (decl_binds_to_current_def_p): Constify argument.
16531 * varasm.h (decl_binds_to_current_def_p): Update prototype.
16532 * asan.c (asan_protect_global): Use
16533 symtab_get_node (decl)->implicit_section.
16534 * symtab.c (dump_symtab_base): Dump implicit sections.
16535 (verify_symtab_base): Verify sanity of sectoins and comdats.
16536 (symtab_resolve_alias): Alias share the section of its target.
16537 (set_section_1): New function.
16538 (symtab_node::set_section): Move here, recurse to aliases.
16539 (verify_symtab): Check for duplicated symtab lists.
16540 * tree-core.h (implicit_section_name_p): Remove.
16541 * tree-vect-data-refs.c: Include varasm.h.
16542 (vect_can_force_dr_alignment_p): Fix conditional on when
16543 decl bints to current definition; use
16544 symtab_get_node (decl)->implicit_section.
16545 * cgraph.c (cgraph_make_node_local_1): Fix section set.
16546 * cgraph.h (struct symtab_node): Add implicit_section.
16547 (set_section): Rename to ...
16548 (set_section_for_node): ... this one.
16549 (set_section): Declare.
16550 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
16551 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
16552 input_overwrite_node, input_varpool_node): Stream implicit_section.
16553 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
16554 removal; it will fail in LTO.
16555
16556 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16557
16558 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
16559 Change second alternative type to f_mcr.
16560 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
16561 and 12th alternatives' types to f_mcr and f_mrc.
16562 (*movdi_aarch64): Same for 12th and 13th alternatives.
16563 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
16564 (aarch64_movtilow_tilow): Change type to fmov.
16565
16566 2014-06-10 Jiong Wang <jiong.wang@arm.com>
16567
16568 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
16569 (aarch64_save_or_restore_callee_save_registers): Fix layout.
16570
16571 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16572
16573 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
16574 New expander.
16575 (aarch64_sqrdmulh_lane<mode>): Likewise.
16576 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16577 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16578 (aarch64_sqdmulh_laneq<mode>): New expander.
16579 (aarch64_sqrdmulh_laneq<mode>): Likewise.
16580 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
16581 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
16582 (aarch64_sqdmulh_lane<mode>): New expander.
16583 (aarch64_sqrdmulh_lane<mode>): Likewise.
16584 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16585 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16586 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
16587 (aarch64_sqdmlal_laneq<mode>): Likewise.
16588 (aarch64_sqdmlsl_lane<mode>): Likewise.
16589 (aarch64_sqdmlsl_laneq<mode>): Likewise.
16590 (aarch64_sqdmlal2_lane<mode>): Likewise.
16591 (aarch64_sqdmlal2_laneq<mode>): Likewise.
16592 (aarch64_sqdmlsl2_lane<mode>): Likewise.
16593 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
16594 (aarch64_sqdmull_lane<mode>): Likewise.
16595 (aarch64_sqdmull_laneq<mode>): Likewise.
16596 (aarch64_sqdmull2_lane<mode>): Likewise.
16597 (aarch64_sqdmull2_laneq<mode>): Likewise.
16598
16599 2014-06-10 Richard Biener <rguenther@suse.de>
16600
16601 PR tree-optimization/61438
16602 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
16603 (eliminate_dom_walker::before_dom_children): Only try to inhibit
16604 insertion of IVs if running PRE.
16605 (eliminate): Adjust.
16606 (pass_pre::execute): Likewise.
16607 (pass_fre::execute): Likewise.
16608
16609 2014-06-10 Richard Biener <rguenther@suse.de>
16610
16611 PR middle-end/61456
16612 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16613 Do not use the main variant for the type comparison.
16614 (ncr_compar): Likewise.
16615 (nonoverlapping_component_refs_p): Likewise.
16616
16617 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
16618
16619 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
16620 REG_CFA_RESTORE mode.
16621
16622 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
16623
16624 * config/i386/i386.c (expand_vec_perm_pblendv): New.
16625 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
16626 expand_vec_perm_pblendv.
16627
16628 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16629
16630 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
16631 available.
16632 Simplify description of __crc32d and __crc32cd intrinsics.
16633 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
16634 availability.
16635
16636 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
16637
16638 PR lto/61334
16639 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
16640 * config.in: Regenerate.
16641 * configure: Likewise.
16642
16643 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
16644
16645 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
16646 and public vars.
16647 (intersect_static_var_sets): Remove.
16648 (propagate): Do not prune local statics.
16649
16650 2014-06-10 Jakub Jelinek <jakub@redhat.com>
16651
16652 PR fortran/60928
16653 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
16654 Set lastprivate_firstprivate even if omp_private_outer_ref
16655 langhook returns true.
16656 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
16657 langhook, call unshare_expr on new_var and call
16658 build_outer_var_ref to get the last argument.
16659
16660 2014-06-10 Marek Polacek <polacek@redhat.com>
16661
16662 PR c/60988
16663 * doc/extend.texi: Add cindex for transparent_union.
16664
16665 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
16666
16667 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
16668 init_symbolic_number ().
16669
16670 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
16671
16672 PR middle-end/61141
16673 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
16674 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
16675 (verify_rtl_sharing): Likewise.
16676
16677 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
16678
16679 PR c++/54442
16680 * tree.c (build_qualified_type): Use a canonical type for
16681 TYPE_CANONICAL.
16682
16683 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16684
16685 * config/arm/arm-modes.def: Remove XFmode.
16686
16687 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
16688
16689 PR target/61062
16690 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
16691 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
16692 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
16693 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
16694 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
16695 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
16696 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
16697 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
16698 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
16699
16700 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
16701
16702 * tree-core.h (tree_decl_with_vis): Remove section_name.
16703
16704 2014-06-09 Kito Cheng <kito@0xlab.org>
16705
16706 * ira.c (ira): Don't call init_caller_save if LRA enabled
16707 since LRA use its own infrastructure to handle that.
16708
16709 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16710
16711 * symtab.c (dump_symtab_base): Update dumping.
16712 (symtab_make_decl_local): Clear only DECL_COMDAT.
16713 * tree-vect-data-refs.c (Check that variable is static before
16714 tampering with sections.
16715 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
16716 (cgraph_create_virtual_clone): Likewise.
16717 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
16718 (decl_section_name, set_decl_section_name): New accessors.
16719 (find_decls_types_r): Do not walk section name
16720 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
16721 (decl_comdat_group, decl_comdat_group_id): Constify.
16722 (decl_section_name, set_decl_section_name): Update.
16723 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
16724 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
16725 (cgraph_make_node_local_1): Clear section and comdat group.
16726 * cgraph.h (set_comdat_group): Sanity check.
16727 (get_section, set_section): New.
16728 * ipa-comdats.c (ipa_comdats): Use get_section.
16729 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
16730 * lto-streamer-out.c: Do not follow section names.
16731 * c-family/c-common.c (handle_section_attribute): Update.
16732 * lto-cgraph.c (lto_output_node): Output section.
16733 (lto_output_varpool_node): Likewise.
16734 (read_comdat_group): Rename to ...
16735 (read_identifier): ... this one.
16736 (read_string_cst): New function.
16737 (input_node, input_varpool_node): Input section names.
16738 * tree-emutls.c (get_emutls_init_templ_addr): Update.
16739 (new_emutls_decl): Update.
16740 (secname_for_decl): Check section names only of static vars.
16741 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
16742 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
16743 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
16744 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
16745 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
16746 * config/mcore/mcore.c (mcore_unique_section): Likewise.
16747 * config/mips/mips.c (mips16_build_function_stub): Likewise.
16748 * config/v850/v850.c (v850_insert_attributes): Likewise.
16749 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
16750 Likewise.
16751 (h8300_handle_tiny_data_attribute): Likewise.
16752 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
16753 (bfin_handle_l2_attribute): Likewise.
16754
16755 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16756
16757 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
16758 remove static initializer.
16759
16760 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16761
16762 * varasm.c (use_blocks_for_decl_p): Check symbol table
16763 instead of alias attribute.
16764 (place_block_symbol): Recurse on aliases.
16765
16766 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16767
16768 * ipa-visibility.c: Include varasm.h
16769 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
16770
16771 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16772
16773 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
16774 outputting aliases.
16775
16776 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
16777
16778 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
16779 from test_insn into GGC space escape via SET_SRC.
16780
16781 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
16782
16783 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
16784 call statement, if any.
16785 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
16786 statements, if any. Tidy up.
16787
16788 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
16789
16790 PR target/61431
16791 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
16792 iterators, VSX_D that handles 64-bit types, and VSX_LE that
16793 handles swapping the two 64-bit double words on little endian
16794 systems. Include V1TImode and optionally TImode in VSX_LE so that
16795 these types are properly swapped. Change all of the insns and
16796 splits that do the 64-bit swaps to use VSX_LE.
16797 (vsx_le_perm_load_<mode>): Likewise.
16798 (vsx_le_perm_store_<mode>): Likewise.
16799 (splitters for little endian memory operations): Likewise.
16800 (vsx_xxpermdi2_le_<mode>): Likewise.
16801 (vsx_lxvd2x2_le_<mode>): Likewise.
16802 (vsx_stxvd2x2_le_<mode>): Likewise.
16803
16804 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
16805
16806 PR target/61423
16807 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
16808 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
16809 and corresponding splitters. Zero extend general register
16810 or memory input operand to XMM temporary. Enable for
16811 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
16812 (floatunssi<mode>2): Update expander predicate.
16813
16814 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
16815
16816 PR rtl-optimization/61325
16817 * lra-constraints.c (process_address_1): Check scale equal to one
16818 to prevent transformation: base + scale * index => base + new_reg.
16819
16820 2014-06-06 Richard Biener <rguenther@suse.de>
16821
16822 PR tree-optimization/59299
16823 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
16824 a def operand.
16825 (nearest_common_dominator_of_uses): Likewise.
16826 (statement_sink_location): Adjust. Support sinking loads.
16827
16828 2014-06-06 Martin Jambor <mjambor@suse.cz>
16829
16830 * ipa-prop.c (get_place_in_agg_contents_list): New function.
16831 (build_agg_jump_func_from_list): Likewise.
16832 (determine_known_aggregate_parts): Renamed to
16833 determine_locally_known_aggregate_parts. Moved some functionality
16834 to the two functions above, removed bound checks.
16835
16836 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
16837
16838 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
16839 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
16840 (aarch64_progress_pointer): Likewise.
16841 (aarch64_copy_one_part_and_move_pointers): Likewise.
16842 (aarch64_expand_movmen): Likewise.
16843 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
16844 * config/aarch64/aarch64.md (movmem<mode>): New.
16845
16846 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
16847
16848 * targhooks.c (default_add_stmt_cost): Call target specific
16849 hook instead of default one.
16850
16851 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
16852
16853 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
16854 endianness instead of host endianness.
16855 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
16856 comments.
16857
16858 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
16859
16860 PR debug/53927
16861 * function.c (instantiate_decls): Process the saved static chain.
16862 (expand_function_start): If not optimizing, save the static chain
16863 onto the stack.
16864 * tree-nested.c (convert_all_function_calls): Always create the static
16865 chain for nested functions if not optimizing.
16866
16867 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
16868
16869 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
16870
16871 2014-06-06 Richard Biener <rguenther@suse.de>
16872
16873 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
16874 (construct_init_block): Likewise.
16875 (construct_exit_block): Likewise.
16876 (pass_expand::execute): Likewise.
16877 * graphite.c (graphite_transforms): Replace check for current_loops
16878 with a check for > 1 loops.
16879 (pass_graphite_transforms::execute): Adjust.
16880 * ipa-split.c (split_function): Remove check for current_loops.
16881 * omp-low.c (expand_parallel_call): Likewise.
16882 (expand_omp_for_init_counts): Likewise.
16883 (extract_omp_for_update_vars): Likewise.
16884 (expand_omp_for_generic): Likewise.
16885 (expand_omp_sections): Likewise.
16886 (expand_omp_target): Likewise.
16887 * tracer.c (tail_duplicate): Likewise.
16888 (pass_tracer::execute): Likewise.
16889 * trans-mem.c (expand_transaction): Likewise.
16890 * tree-complex.c (expand_complex_div_wide): Likewise.
16891 * tree-eh.c (lower_resx): Likewise.
16892 (cleanup_empty_eh_merge_phis): Likewise.
16893 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
16894 current_loops with a check for > 1 loops.
16895 (pass_predcom::execute): Adjust.
16896 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
16897 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
16898 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
16899 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
16900 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
16901 * tree-switch-conversion.c (process_switch): Likewise.
16902 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
16903 * tree-vrp.c (vrp_visit_phi_node): Likewise.
16904 (execute_vrp): Likewise.
16905 * ubsan.c (ubsan_expand_null_ifn): Likewise.
16906
16907 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
16908
16909 * rtl.h (insn_location): Declare.
16910 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
16911 with UNKNOWN_LOCATION.
16912 * emit-rtl.c (insn_location): New function.
16913 * final.c (notice_source_line): Check that the instruction has a
16914 location before retrieving it and use insn_location.
16915 * modulo-sched.c (loop_single_full_bb_p): Likewise.
16916 * print-rtl.c (print_rtx): Likewise.
16917
16918 2014-06-06 Richard Biener <rguenther@suse.de>
16919
16920 * passes.def: Move 2nd VRP pass before phi-only-cprop.
16921
16922 2014-06-06 Christian Bruel <christian.bruel@st.com>
16923
16924 PR tree-optimization/43934
16925 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
16926 cost.
16927
16928 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
16929
16930 * ira-lives.c (single_reg_class): Add missing break. Explicitly
16931 return NO_REGS for extra address and memory constraints. Handle
16932 operands that match (or are equivalent to something that matches)
16933 extra constant constraints. Ignore other non-register operands.
16934
16935 2014-06-06 Alan Modra <amodra@gmail.com>
16936
16937 PR target/61300
16938 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
16939 * doc/tm.texi: Regenerate.
16940 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
16941 Use throughout in place of REG_PARM_STACK_SPACE.
16942 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
16943 "incoming" param. Pass to rs6000_function_parms_need_stack.
16944 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
16945 prototype_p when incoming. Use function decl when incoming
16946 to handle K&R style functions.
16947 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
16948 (INCOMING_REG_PARM_STACK_SPACE): Define.
16949
16950 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16951
16952 PR target/52472
16953 * cfgexpand.c (expand_debug_expr): Use address space of nested
16954 TREE_TYPE for ADDR_EXPR and MEM_REF.
16955
16956 2014-06-05 Jeff Law <law@redhat.com>
16957
16958 PR tree-optimization/61289
16959 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
16960 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
16961 looking for those which match LHS. All callers changed.
16962 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
16963 parameters and code which manipulated them. All callers changed.
16964 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
16965 and DST_MAP parameters. Simplify invalidation code by just calling
16966 invalidate_equivalences. All callers changed.
16967 (thread_across_edge): Simplify now that we don't need to maintain
16968 the map of equivalences to invalidate.
16969
16970 2014-06-05 Kai Tietz <ktietz@redhat.com>
16971 Richard Henderson <rth@redhat.com>
16972
16973 PR target/46219
16974 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
16975 checking for !TARGET_X32.
16976 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
16977 (sibcall_intern): New define_insn, plus required peepholes.
16978 (sibcall_pop_intern): Likewise.
16979 (sibcall_value_intern): Likewise.
16980 (sibcall_value_pop_intern): Likewise.
16981
16982 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
16983
16984 * tree-inline.c (tree_function_versioning): Check DF info existence
16985 before accessing it.
16986
16987 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16988
16989 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
16990 frame_size.
16991 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
16992 aarch64_frame hard_fp_offset and frame_size.
16993 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
16994 frame_size; remove original_frame_size.
16995 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
16996 (aarch64_initial_elimination_offset): Remove frame_size and
16997 offset. Use aarch64_frame frame_size.
16998
16999 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17000 Jiong Wang <jiong.wang@arm.com>
17001 Renlin <renlin.li@arm.com>
17002
17003 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
17004 initialization of R30 offset. Update offset. Iterate core
17005 regisers upto X30. Remove X29, X30 specific code.
17006
17007 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17008 Jiong Wang <jiong.wang@arm.com>
17009
17010 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
17011 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
17012 (aarch64_register_saved_on_entry): Adjust test.
17013
17014 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17015
17016 * config/aarch64/aarch64.h (machine_function): Move
17017 saved_varargs_size from here...
17018 (aarch64_frame): ... to here.
17019
17020 * config/aarch64/aarch64.c (aarch64_expand_prologue)
17021 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
17022 (aarch64_initial_elimination_offset)
17023 (aarch64_setup_incoming_varargs): Adjust location of
17024 saved_varargs_size.
17025
17026 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17027
17028 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
17029 layout comment.
17030
17031 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
17032 Prachi Godbole <Prachi.Godbole@imgtec.com>
17033
17034 * config/mips/mips-cpus.def: Add definition for p5600. Updated
17035 mips32r5 entry to use PROCESSOR_P5600.
17036 * config/mips/mips-tables.opt: Regenerate.
17037 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
17038 * config/mips/mips.c (mips_fmadd_bypass): New function.
17039 (mips_rtx_cost_data): Add costs for p5600.
17040 (mips_issue_rate): Add support for p5600.
17041 (mips_multipass_dfa_lookahead): Likewise.
17042 * config/mips/mips.h (TUNE_P5600): New define.
17043 (TUNE_MACC_CHAINS): Add TUNE_P5600.
17044 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
17045 * config/mips/mips.md: Include p5600.md.
17046 (processor): Add p5600.
17047 * config/mips/p5600.md: New file.
17048
17049 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
17050
17051 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
17052 * config/i386/predicates.md (palignr_operand): New.
17053 Indicates if permutation is suitable for palignr instruction.
17054
17055 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
17056
17057 PR tree-optimization/61319
17058 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
17059 stmt belongs to loop.
17060
17061 2014-06-05 Richard Biener <rguenther@suse.de>
17062
17063 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
17064 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
17065 (lookup_tmp_var): Adjust.
17066 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
17067
17068 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17069
17070 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
17071
17072 2014-06-05 Marek Polacek <polacek@redhat.com>
17073
17074 PR c/49706
17075 * doc/invoke.texi: Document -Wlogical-not-parentheses.
17076
17077 2014-06-04 Tom de Vries <tom@codesourcery.com>
17078
17079 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
17080 CONST_INT.
17081
17082 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
17083
17084 PR tree-optimization/61385
17085 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
17086
17087 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
17088
17089 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
17090 changed to use fatal_error.
17091 (main): Ensure lto_wrapper_cleanup is run atexit.
17092
17093 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17094
17095 * lra-constraints.c (valid_address_p): Move earlier in file.
17096 (address_eliminator): New structure.
17097 (satisfies_memory_constraint_p): New function.
17098 (satisfies_address_constraint_p): Likewise.
17099 (process_alt_operands, process_address, curr_insn_transform): Use them.
17100
17101 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17102
17103 * lra-int.h (lra_static_insn_data): Make operand_alternative a
17104 const pointer.
17105 (target_lra_int, default_target_lra_int, this_target_lra_int)
17106 (op_alt_data): Delete.
17107 * lra.h (lra_init): Delete.
17108 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
17109 (init_insn_code_data_once): Remove op_alt_data handling.
17110 (finish_insn_code_data_once): Likewise.
17111 (init_op_alt_data): Delete.
17112 (get_static_insn_data): Initialize operand_alternative to null.
17113 (free_insn_recog_data): Cast operand_alternative before freeing it.
17114 (setup_operand_alternative): Take the operand_alternative as
17115 parameter and assume it isn't already cached in the static
17116 insn data.
17117 (lra_set_insn_recog_data): Update accordingly.
17118 (lra_init): Delete.
17119 * ira.c (ira_init): Don't call lra_init.
17120 * target-globals.h (this_target_lra_int): Declare.
17121 (target_globals): Remove lra_int.
17122 (restore_target_globals): Update accordingly.
17123 * target-globals.c: Don't include lra-int.h.
17124 (default_target_globals, save_target_globals): Remove lra_int.
17125
17126 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17127
17128 * recog.h (operand_alternative): Convert reg_class, reject,
17129 matched and matches into bitfields.
17130 (preprocess_constraints): New overload.
17131 (preprocess_insn_constraints): New function.
17132 (preprocess_constraints): Take the insn as parameter.
17133 (recog_op_alt): Change into a pointer.
17134 (target_recog): Add x_op_alt.
17135 * recog.c (asm_op_alt): New variable.
17136 (recog_op_alt): Change into a pointer.
17137 (preprocess_constraints): New overload, replacing the old function
17138 definition with one that doesn't use global state.
17139 (preprocess_insn_constraints): New function.
17140 (preprocess_constraints): Use them. Take the insn as parameter.
17141 Use asm_op_alt for asms.
17142 (recog_init): Free existing x_op_alt entries.
17143 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
17144 pointer const.
17145 (make_early_clobber_and_input_conflicts): Likewise.
17146 (process_bb_node_lives): Pass the insn to process_constraints.
17147 * reg-stack.c (check_asm_stack_operands): Likewise.
17148 (subst_asm_stack_regs): Likewise.
17149 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
17150 * regrename.c (build_def_use): Likewise.
17151 * sched-deps.c (sched_analyze_insn): Likewise.
17152 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
17153 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
17154 (note_invalid_constants): Likewise.
17155 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17156 (ix86_legitimate_combined_insn): Make operand_alternative pointer
17157 const.
17158
17159 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17160
17161 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
17162 * ira-lives.c (check_and_make_def_conflict): Check for disabled
17163 alternatives.
17164 (make_early_clobber_and_input_conflicts): Likewise.
17165 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17166
17167 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17168
17169 * recog.h (alternative_class): New function.
17170 (which_op_alt): Return a const recog_op_alt.
17171 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
17172 (subst_asm_stack_regs): Likewise.
17173 * config/arm/arm.c (note_invalid_constants): Likewise.
17174 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
17175 the operand_alternative; use alternative class instead.
17176 * sel-sched.c (get_reg_class): Likewise.
17177 * regrename.c (build_def_use): Likewise.
17178 (hide_operands, restore_operands, record_out_operands): Update type
17179 accordingly.
17180
17181 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17182
17183 * recog.h (recog_op_alt): Convert to a flat array.
17184 (which_op_alt): New function.
17185 * recog.c (recog_op_alt): Convert to a flat array.
17186 (preprocess_constraints): Update accordingly, grouping all
17187 operands of the same alternative together, rather than the
17188 other way around.
17189 * ira-lives.c (check_and_make_def_conflict): Likewise.
17190 (make_early_clobber_and_input_conflicts): Likewise.
17191 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17192 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
17193 (subst_asm_stack_regs): Likewise.
17194 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
17195 * regrename.c (hide_operands, record_out_operands): Likewise.
17196 (build_def_use): Likewise.
17197 * sel-sched.c (get_reg_class): Likewise.
17198 * config/arm/arm.c (note_invalid_constants): Likewise.
17199
17200 2014-06-04 Jason Merrill <jason@redhat.com>
17201
17202 PR c++/51253
17203 PR c++/61382
17204 * gimplify.c (gimplify_arg): Non-static.
17205 * gimplify.h: Declare it.
17206
17207 2014-06-04 Richard Biener <rguenther@suse.de>
17208
17209 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
17210 TREE_PUBLIC and DECL_EXTERNAL decls.
17211
17212 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
17213
17214 * regcprop.c (copyprop_hardreg_forward_1): Account for
17215 HARD_REGNO_CALL_PART_CLOBBERED.
17216
17217 2014-06-04 Richard Biener <rguenther@suse.de>
17218
17219 * configure.ac: Check whether the underlying type of int64_t
17220 is long or long long.
17221 * configure: Regenerate.
17222 * config.in: Likewise.
17223 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
17224 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17225
17226 2014-06-04 Richard Biener <rguenther@suse.de>
17227
17228 PR tree-optimization/60098
17229 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
17230 we hit a kill.
17231 (dse_optimize_stmt): Simplify, now that we found a kill
17232 earlier.
17233
17234 2014-06-04 Richard Biener <rguenther@suse.de>
17235
17236 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
17237 of accesses with non-invariant address.
17238
17239 2014-06-04 Martin Liska <mliska@suse.cz>
17240
17241 * cgraph.h (cgraph_make_wrapper): New function introduced.
17242 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
17243 * ipa-inline.h (inline_analyze_function): The function is global.
17244 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
17245
17246 2014-06-04 Martin Liska <mliska@suse.cz>
17247
17248 * tree.h (private_lookup_attribute_starting): New function.
17249 (lookup_attribute_starting): Likewise.
17250 * tree.c (private_lookup_attribute_starting): Likewise.
17251
17252 2014-06-04 Martin Liska <mliska@suse.cz>
17253
17254 * cgraph.h (expand_thunk): New argument added.
17255 (address_taken_from_non_vtable_p): New global function.
17256 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
17257 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
17258 * cgraphunit.c (analyze_function): Likewise.
17259 (assemble_thunks_and_aliases): Argument added to call.
17260 (expand_thunk): New argument forces to produce GIMPLE thunk.
17261
17262 2014-06-04 Martin Liska <mliska@suse.cz>
17263
17264 * coverage.h (coverage_compute_cfg_checksum): Argument added.
17265 * coverage.c (coverage_compute_cfg_checksum): Likewise.
17266 * profile.c (branch_prob): Likewise.
17267
17268 2014-06-04 Martin Jambor <mjambor@suse.cz>
17269
17270 PR ipa/61340
17271 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
17272 handler for switch on an ipa_ref_use enum.
17273 * ipa-reference.c (analyze_function): Likewise.
17274
17275 2014-06-04 Kai Tietz <ktietz@redhat.com>
17276
17277 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
17278 from old call-instruction.
17279
17280 2014-06-04 Bin Cheng <bin.cheng@arm.com>
17281
17282 * config/aarch64/aarch64.c (aarch64_classify_address)
17283 (aarch64_legitimize_reload_address): Support full addressing modes
17284 for vector modes.
17285 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
17286 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
17287
17288 2014-06-03 Andrew Pinski <apinski@cavium.com>
17289
17290 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
17291 for OP0.
17292
17293 2014-06-03 Andrew Pinski <apinski@cavium.com>
17294
17295 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
17296 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
17297
17298 2014-06-03 Kai Tietz <ktietz@redhat.com>
17299
17300 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
17301 for 64-bit ms-abi.
17302
17303 2014-06-03 Dehao Chen <dehao@google.com>
17304
17305 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
17306 the same loop.
17307
17308 2014-06-03 Marek Polacek <polacek@redhat.com>
17309
17310 PR c/60439
17311 * doc/invoke.texi: Document -Wswitch-bool.
17312 * function.c (stack_protect_epilogue): Cast controlling expression of
17313 the switch to int.
17314 * gengtype.c (walk_type): Generate switch expression with its
17315 controlling expression cast to int.
17316
17317 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
17318
17319 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
17320 and attiny841.
17321 * config/avr/avr-tables.opt: Regenerate.
17322 * config/avr/t-multilib: Regenerate.
17323 * doc/avr-mmcu.texi: Regenerate.
17324
17325 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
17326 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17327
17328 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
17329 (ata6617c, ata664251): Add new avr35 devices.
17330 (ata6612c): Add new avr4 device.
17331 (ata6613c, ata6614q): Add new avr5 devices.
17332 * config/avr/avr-tables.opt: Regenerate.
17333 * config/avr/t-multilib: Regenerate.
17334 * doc/avr-mmcu.texi: Regenerate.
17335
17336 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17337
17338 * gcc/config/aarch64/aarch64-builtins.c
17339 (aarch64_types_binop_ssu_qualifiers): New static data.
17340 (TYPES_BINOP_SSU): Define.
17341 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
17342 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
17343 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
17344 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
17345 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
17346 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
17347 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
17348 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
17349 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
17350 suffix to builtin function name, remove cast.
17351 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
17352 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
17353 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
17354
17355 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17356
17357 * gcc/config/aarch64/aarch64-builtins.c
17358 (aarch64_types_binop_uus_qualifiers,
17359 aarch64_types_shift_to_unsigned_qualifiers,
17360 aarch64_types_unsigned_shiftacc_qualifiers): Define.
17361 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
17362 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
17363 sqshlu_n, uqshl_n): Update qualifiers.
17364 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
17365 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
17366 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
17367 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
17368 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
17369 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
17370 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
17371 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
17372 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
17373 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
17374 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
17375 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
17376 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
17377 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
17378 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
17379 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
17380 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
17381 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
17382 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
17383 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
17384 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
17385 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
17386 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
17387 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
17388 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
17389 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
17390 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
17391
17392 2014-06-03 Teresa Johnson <tejohnson@google.com>
17393
17394 * tree-sra.c (modify_function): Record caller nodes after rebuild.
17395
17396 2014-06-02 Jason Merrill <jason@redhat.com>
17397
17398 PR c++/61020
17399 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
17400
17401 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17402
17403 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
17404 location == 0.
17405
17406 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17407
17408 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
17409 New pattern.
17410 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
17411 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
17412 * config/aarch64/iterators.md (REVERSE): New iterator.
17413 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
17414 (rev_op): New int_attribute.
17415 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
17416 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
17417 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
17418 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
17419 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
17420 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
17421 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
17422 Replace temporary __asm__ with __builtin_shuffle.
17423
17424 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
17425
17426 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
17427 mips64r5.
17428 * config/mips/mips-tables.opt: Regenerate.
17429 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
17430 to use mips_isa_rev rather than ISA_MIPS32R2.
17431 * config/mips/mips.h (ISA_MIPS32R3): New define.
17432 (ISA_MIPS32R5): New define.
17433 (ISA_MIPS64R3): New define.
17434 (ISA_MIPS64R5): New define.
17435 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
17436 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
17437 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
17438 and mips64r5.
17439 (MIPS_ISA_SYNCI_SPEC): Likewise.
17440 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
17441 (LINK_SPEC): Added mips32r3 and mips32r5.
17442 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
17443 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
17444 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
17445 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
17446 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
17447 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
17448 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
17449
17450 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
17451
17452 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
17453 options.
17454 * config/mips/mips.opt (mxpa): New option.
17455 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
17456 assembler.
17457
17458 2014-06-03 Martin Jambor <mjambor@suse.cz>
17459
17460 PR ipa/61160
17461 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
17462 thunks.
17463
17464 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
17465
17466 PR tree-optimization/61328
17467 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
17468 initialization from find_bswap_or_nop_1.
17469 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
17470 in source_expr2 before using the size value the function sets. Also
17471 make use of init_symbolic_number () in both the old place and
17472 find_bswap_or_nop_load () to avoid reading uninitialized memory when
17473 doing recursion in the GIMPLE_BINARY_RHS case.
17474
17475 2014-06-03 Richard Biener <rguenther@suse.de>
17476
17477 PR tree-optimization/61383
17478 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
17479 stmts can't trap.
17480
17481 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
17482
17483 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
17484 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
17485 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
17486 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
17487 in this file.
17488 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
17489 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
17490 * system.h: ...here and make it unconditional.
17491 * target.def (conditional_register_usage): Mention
17492 define_register_constraint instead of old-style constraint macros.
17493 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
17494 * doc/tm.texi: Regenerate.
17495 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
17496 protected by !USE_MD_CONSTRAINTS.
17497 * config/frv/frv.md: Remove quote from old version of documentation.
17498 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
17499 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
17500 CONST_DOUBLE_OK_FOR_LETTER.
17501 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
17502
17503 2014-06-02 Andrew Pinski <apinski@cavium.com>
17504
17505 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
17506 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
17507 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
17508 file whose name depends on -mabi= and -mbig-endian.
17509 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
17510 Handle LP64 better and handle ilp32 too.
17511 (MULTILIB_OPTIONS): Delete.
17512 (MULTILIB_DIRNAMES): Delete.
17513
17514 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
17515
17516 * expr.h: Remove prototypes of functions defined in builtins.c.
17517 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
17518 Remove prototypes of functions defined in builtins.c.
17519 * builtins.h: Update prototype list to include all exported functions.
17520 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
17521 no_c99_libc_has_function): Move to targhooks.c
17522 (build_string_literal, build_call_expr_loc_array,
17523 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
17524 to tree.c.
17525 (expand_builtin_object_size, fold_builtin_object_size): Make static.
17526 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
17527 no_c99_libc_has_function): Relocate from builtins.c.
17528 * tree.c: Include builtins.h.
17529 (build_call_expr_loc_array, build_call_expr_loc_vec,
17530 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
17531 from builtins.c.
17532 * fold-const.h (fold_fma): Move prototype to builtins.h.
17533 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
17534 * asan.c: Include builtins.h.
17535 * cfgexpand.c: Likewise.
17536 * convert.c: Likewise.
17537 * emit-rtl.c: Likewise.
17538 * except.c: Likewise.
17539 * expr.c: Likewise.
17540 * fold-const.c: Likewise.
17541 * gimple-fold.c: Likewise.
17542 * gimple-ssa-strength-reduction.c: Likewise.
17543 * gimplify.c: Likewise.
17544 * ipa-inline.c: Likewise.
17545 * ipa-prop.c: Likewise.
17546 * lto-streamer-out.c: Likewise.
17547 * stmt.c: Likewise.
17548 * tree-inline.c: Likewise.
17549 * tree-object-size.c: Likewise.
17550 * tree-sra.c: Likewise.
17551 * tree-ssa-ccp.c: Likewise.
17552 * tree-ssa-forwprop.c: Likewise.
17553 * tree-ssa-loop-ivcanon.c: Likewise.
17554 * tree-ssa-loop-ivopts.c: Likewise.
17555 * tree-ssa-math-opts.c: Likewise.
17556 * tree-ssa-reassoc.c: Likewise.
17557 * tree-ssa-threadedge.c: Likewise.
17558 * tree-streamer-in.c: Likewise.
17559 * tree-vect-data-refs.c: Likewise.
17560 * tree-vect-patterns.c: Likewise.
17561 * tree-vect-stmts.c: Likewise.
17562 * config/aarch64/aarch64.c: Likewise.
17563 * config/alpha/alpha.c: Likewise.
17564 * config/arc/arc.c: Likewise.
17565 * config/arm/arm.c: Likewise.
17566 * config/avr/avr.c: Likewise.
17567 * config/bfin/bfin.c: Likewise.
17568 * config/c6x/c6x.c: Likewise.
17569 * config/cr16/cr16.c: Likewise.
17570 * config/cris/cris.c: Likewise.
17571 * config/epiphany/epiphany.c: Likewise.
17572 * config/fr30/fr30.c: Likewise.
17573 * config/frv/frv.c: Likewise.
17574 * config/h8300/h8300.c: Likewise.
17575 * config/i386/i386.c: Likewise.
17576 * config/i386/winnt.c: Likewise.
17577 * config/ia64/ia64.c: Likewise.
17578 * config/iq2000/iq2000.c: Likewise.
17579 * config/lm32/lm32.c: Likewise.
17580 * config/m32c/m32c.c: Likewise.
17581 * config/m32r/m32r.c: Likewise.
17582 * config/m68k/m68k.c: Likewise.
17583 * config/mcore/mcore.c: Likewise.
17584 * config/mep/mep.c: Likewise.
17585 * config/microblaze/microblaze.c: Likewise.
17586 * config/mips/mips.c: Likewise.
17587 * config/mmix/mmix.c: Likewise.
17588 * config/mn10300/mn10300.c: Likewise.
17589 * config/moxie/moxie.c: Likewise.
17590 * config/msp430/msp430.c: Likewise.
17591 * config/nds32/nds32.c: Likewise.
17592 * config/pa/pa.c: Likewise.
17593 * config/pdp11/pdp11.c: Likewise.
17594 * config/picochip/picochip.c: Likewise.
17595 * config/rl78/rl78.c: Likewise.
17596 * config/rs6000/rs6000.c: Likewise.
17597 * config/rx/rx.c: Likewise.
17598 * config/s390/s390.c: Likewise.
17599 * config/score/score.c: Likewise.
17600 * config/sh/sh.c: Likewise.
17601 * config/sparc/sparc.c: Likewise.
17602 * config/spu/spu.c: Likewise.
17603 * config/stormy16/stormy16.c: Likewise.
17604 * config/tilegx/tilegx.c: Likewise.
17605 * config/tilepro/tilepro.c: Likewise.
17606 * config/v850/v850.c: Likewise.
17607 * config/vax/vax.c: Likewise.
17608 * config/xtensa/xtensa.c: Likewise.
17609
17610 2014-06-02 Jeff Law <law@redhat.com>
17611
17612 PR rtl-optimization/61094
17613 * ree.c (combine_reaching_defs): Do not reextend an insn if it
17614 was marked as do_no_reextend. If a copy is needed to eliminate
17615 an extension, then mark it as do_not_reextend.
17616
17617 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
17618
17619 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
17620
17621 2014-06-02 Richard Henderson <rth@redhat.com>
17622
17623 PR target/61336
17624 * config/alpha/alpha.c (print_operand_address): Allow symbolic
17625 addresses inside asms. Use output_operand_lossage instead of
17626 gcc_unreachable.
17627
17628 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
17629
17630 PR target/61239
17631 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
17632 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
17633
17634 2014-06-02 Tom de Vries <tom@codesourcery.com>
17635
17636 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
17637 case that x has VOIDmode.
17638
17639 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
17640
17641 * varasm.c (copy_constant): Delete function.
17642 (build_constant_desc): Don't call it.
17643
17644 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17645
17646 PR target/61154
17647 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
17648 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
17649 with immediate_operand.
17650
17651 2014-06-02 Andreas Schwab <schwab@suse.de>
17652
17653 * config/ia64/ia64.c
17654 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
17655 pending_data_specs first.
17656
17657 2014-06-02 Richard Biener <rguenther@suse.de>
17658
17659 PR tree-optimization/61378
17660 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
17661 valueized_anything.
17662
17663 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
17664
17665 * config/i386/constraints.md (Bw): Rename from 'w'.
17666 (Bz): Rename from 'z'.
17667 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
17668
17669 2014-06-01 Kai Tietz <ktietz@redhat.com>
17670
17671 PR target/61377
17672 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
17673 * config/i386/i386.md (sibcall_insn_operand): Use Bs
17674 instead of m constraint.
17675
17676 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
17677
17678 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
17679 a separate alternative where the scratch operand 2 is marked as
17680 early clobber.
17681
17682 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
17683
17684 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
17685 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
17686 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
17687 and __builtins_arm_get_fpscr.
17688 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
17689 __builtins_arm_get_fpscr.
17690 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
17691 __builtins_arm_ldfpscr.
17692 (arm_atomic_assign_expand_fenv): New function.
17693 * config/arm/vfp.md (set_fpscr): New pattern.
17694 (get_fpscr) : Likewise.
17695 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
17696 VUNSPEC_SET_FPSCR.
17697 * doc/extend.texi (AARCH64 Built-in Functions) : Document
17698 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
17699
17700 2014-05-30 Jakub Jelinek <jakub@redhat.com>
17701
17702 * asan.c (report_error_func): Add SLOW_P argument, use
17703 BUILT_IN_ASAN_*_N if set.
17704 (build_check_stmt): Likewise.
17705 (instrument_derefs): If T has insufficient alignment,
17706 force same handling as for odd sizes.
17707
17708 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
17709 BUILT_IN_ASAN_REPORT_STORE_N): New.
17710 * asan.c (struct asan_mem_ref): Change access_size type to
17711 HOST_WIDE_INT.
17712 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
17713 update_mem_ref_hash_table): Likewise.
17714 (asan_mem_ref_hasher::hash): Hash in a HWI.
17715 (report_error_func): Change size_in_bytes argument to HWI.
17716 Use *_N builtins if size_in_bytes is larger than 16 or not power of
17717 two.
17718 (build_shadow_mem_access): New function.
17719 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
17720 Handle size_in_bytes not power of two or larger than 16.
17721 (instrument_derefs): Don't give up if size_in_bytes is not
17722 power of two or is larger than 16.
17723
17724 2014-05-30 Kai Tietz <ktietz@redhat.com>
17725
17726 PR target/60104
17727 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
17728 for sibling-tail-calls.
17729 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
17730 to its use.
17731 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
17732 (sibcall_insn_operand): Add check for sibcall_memory_operand.
17733
17734 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17735
17736 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
17737 * config/avr/avr-tables.opt: Regenerate.
17738 * config/avr/t-multilib: Regenerate.
17739 * doc/avr-mmcu.texi: Regenerate.
17740
17741 2014-05-30 Ian Lance Taylor <iant@google.com>
17742
17743 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
17744 target("sse").
17745
17746 2014-05-30 Tom de Vries <tom@codesourcery.com>
17747
17748 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
17749 Redefine as true.
17750
17751 2014-05-30 Tom de Vries <tom@codesourcery.com>
17752
17753 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17754 * lra.c (initialize_lra_reg_info_element): Add init of
17755 actual_call_used_reg_set field.
17756 (lra): Call lra_create_live_ranges before lra_inheritance for
17757 -fuse-caller-save.
17758 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17759 -fuse-caller-save.
17760 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
17761 instead of call_used_reg_set for -fuse-caller-save.
17762 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17763
17764 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17765
17766 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
17767 to mov_imm.
17768 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
17769
17770 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
17771
17772 * ira.c (ira_get_dup_out_num): Check for output operands at
17773 the start of the loop. Handle cases where an included alternative
17774 follows an excluded one.
17775
17776 2014-05-29 Mike Stump <mikestump@comcast.net>
17777
17778 PR debug/61352
17779 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
17780 post ld passes when lto is used.
17781
17782 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
17783
17784 PR rtl-optimization/61325
17785 * lra-constraints.c (process_address): Rename to process_address_1.
17786 (process_address): New function.
17787
17788 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
17789
17790 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
17791 TYPES_BINOPV): New static data.
17792 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
17793 New builtin.
17794 * config/aarch64/aarch64-simd.md (aarch64_ext,
17795 aarch64_im_lane_boundsi): New patterns.
17796 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
17797 patterns for EXT.
17798 (aarch64_evpc_ext): New function.
17799
17800 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
17801
17802 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
17803 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
17804 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
17805 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
17806 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
17807
17808 2014-05-29 Tom de Vries <tom@codesourcery.com>
17809
17810 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
17811
17812 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
17813 Richard Sandiford <rdsandiford@googlemail.com>
17814
17815 * arm/iterators.md (shiftable_ops): New code iterator.
17816 (t2_binop0, arith_shift_insn): New code attributes.
17817 * arm/predicates.md (shift_nomul_operator): New predicate.
17818 * arm/arm.md (insn_enabled): Delete.
17819 (enabled): Remove insn_enabled test.
17820 (*arith_shiftsi): Delete. Replace with ...
17821 (*<arith_shift_insn>_multsi): ... new pattern.
17822 (*<arith_shift_insn>_shiftsi): ... new pattern.
17823 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
17824
17825 2014-05-29 Radovan Obradovic <robradovic@mips.com>
17826 Tom de Vries <tom@codesourcery.com>
17827
17828 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
17829 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
17830 clobber.
17831 (mips_split_call): Use POST_CALL_TMP_REG.
17832 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
17833
17834 2014-05-29 Tom de Vries <tom@codesourcery.com>
17835
17836 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
17837 with #ifdef STACK_REGS.
17838
17839 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
17840
17841 * varasm.c (get_variable_section): Walk aliases.
17842 (place_block_symbol): Walk aliases.
17843
17844 2014-05-28 Tom de Vries <tom@codesourcery.com>
17845
17846 Revert:
17847 2014-05-28 Tom de Vries <tom@codesourcery.com>
17848
17849 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17850 * lra.c (initialize_lra_reg_info_element): Add init of
17851 actual_call_used_reg_set field.
17852 (lra): Call lra_create_live_ranges before lra_inheritance for
17853 -fuse-caller-save.
17854 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17855 -fuse-caller-save.
17856 * lra-constraints.c (need_for_call_save_p): Use
17857 actual_call_used_reg_set instead of call_used_reg_set for
17858 -fuse-caller-save.
17859 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17860
17861 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17862
17863 * doc/md.texi: Document that the % constraint character must
17864 be at the beginning of the string.
17865 * genoutput.c (validate_insn_alternatives): Check that '=',
17866 '+' and '%' only appear at the beginning of a constraint.
17867 * ira.c (commutative_constraint_p): Delete.
17868 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
17869 at the start of the string.
17870 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
17871 duplicate '='s.
17872 * config/arm/neon.md (bicdi3_neon): Likewise.
17873 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
17874 (slt_si, sltu_si): Likewise.
17875 * config/vax/vax.md (sbcdi3): Likewise.
17876 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
17877 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
17878 (mul64): Move '%' to beginning of constraint.
17879 * config/arm/arm.md (*xordi3_insn): Likewise.
17880 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
17881 (xorsi3): Likewise.
17882
17883 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17884
17885 * doc/md.texi: Document the restrictions on the "enabled" attribute.
17886
17887 2014-05-28 Jason Merrill <jason@redhat.com>
17888
17889 PR c++/47202
17890 * cgraph.h (symtab_node::get_comdat_group_id): New.
17891 * cgraphunit.c (analyze_functions): Call it.
17892 * symtab.c (dump_symtab_node): Likewise.
17893 * tree.c (decl_comdat_group_id): New.
17894 * tree.h: Declare it.
17895 * lto-streamer-out.c (write_symbol): Use it.
17896 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
17897
17898 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17899
17900 PR bootstrap/PR61146
17901 * wide-int.cc: Do not include longlong.h when compiling with clang.
17902
17903 2014-05-28 Richard Biener <rguenther@suse.de>
17904
17905 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
17906 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
17907 (vrp_visit_assignment_or_call): Print less vertical space.
17908 (vrp_visit_stmt): Likewise.
17909 (vrp_visit_phi_node): Likewise. For a PHI argument with
17910 VR_VARYING range consider recording it as copy.
17911
17912 2014-05-28 Richard Biener <rguenther@suse.de>
17913
17914 Revert
17915 2014-05-28 Richard Biener <rguenther@suse.de>
17916
17917 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17918
17919 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
17920
17921 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
17922 sufficiently aligned and an offset is used at the same time.
17923 (expand_expr_real_1): Likewise.
17924
17925 2014-05-28 Richard Biener <rguenther@suse.de>
17926
17927 PR middle-end/61045
17928 * fold-const.c (fold_comparison): When folding
17929 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
17930 the sign of the remaining constant operand stays the same.
17931
17932 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
17933
17934 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
17935 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
17936 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
17937 to the assembler.
17938 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
17939 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
17940 (m32bit-doubles) Likewise.
17941 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
17942 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
17943 option for RL78.
17944
17945 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17946
17947 * configure.ac ($gcc_cv_ld_clearcap): New test.
17948 * configure: Regenerate.
17949 * config.in: Regenerate.
17950 * config/sol2.opt (mclear-hwcap): New option.
17951 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
17952 * config/sol2-clearcap.map: Moved here from
17953 testsuite/gcc.target/i386/clearcap.map.
17954 * config/sol2-clearcapv2.map: Move here from
17955 gcc.target/i386/clearcapv2.map.
17956 * config/t-sol2 (install): Depend on install-clearcap-map.
17957 (install-clearcap-map): New target.
17958 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
17959 -mclear-hwcap.
17960
17961 2014-05-28 Richard Biener <rguenther@suse.de>
17962
17963 * hwint.h (*_HALF_WIDE_INT*): Move to ...
17964 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
17965 ... here and remove the rest.
17966 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17967
17968 2014-05-28 Richard Biener <rguenther@suse.de>
17969
17970 PR tree-optimization/61335
17971 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
17972 new range fails, drop to varying.
17973
17974 2014-05-28 Olivier Hainque <hainque@adacore.com>
17975
17976 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
17977 (CPP_SPEC): Add entry for -mcpu=8548.
17978 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
17979 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
17980
17981 2014-05-28 Tom de Vries <tom@codesourcery.com>
17982
17983 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17984 * lra.c (initialize_lra_reg_info_element): Add init of
17985 actual_call_used_reg_set field.
17986 (lra): Call lra_create_live_ranges before lra_inheritance for
17987 -fuse-caller-save.
17988 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17989 -fuse-caller-save.
17990 * lra-constraints.c (need_for_call_save_p): Use
17991 actual_call_used_reg_set instead of call_used_reg_set for
17992 -fuse-caller-save.
17993 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17994
17995 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17996 Tom de Vries <tom@codesourcery.com>
17997
17998 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
17999 to gccoptlist.
18000 (@item -fuse-caller-save): New item.
18001
18002 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18003 Tom de Vries <tom@codesourcery.com>
18004
18005 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
18006 OPT_fuse_caller_save.
18007
18008 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18009 Tom de Vries <tom@codesourcery.com>
18010
18011 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
18012 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
18013 get_call_reg_set_usage.
18014 * resource.c (mark_set_resources, mark_target_live_regs): Use
18015 get_call_reg_set_usage.
18016 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
18017 field.
18018 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
18019 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
18020 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18021 * ira-build.c (ira_create_allocno): Init
18022 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18023 (create_cap_allocno, propagate_allocno_info)
18024 (propagate_some_info_from_allocno)
18025 (copy_info_to_removed_store_destinations): Handle
18026 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18027 * ira-costs.c (ira_tune_allocno_costs): Use
18028 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
18029
18030 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18031 Tom de Vries <tom@codesourcery.com>
18032
18033 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
18034 and function_used_regs_valid fields.
18035 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
18036 find_all_hard_reg_sets.
18037 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
18038 (get_call_reg_set_usage): New function.
18039 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
18040 * regs.h (get_call_reg_set_usage): Declare.
18041
18042 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
18043
18044 PR libgcc/61152
18045 * config/dbx.h (License): Add Runtime Library Exception.
18046 * config/newlib-stdint.h (License): Same.
18047 * config/rtems.h (License): Same
18048 * config/initfini-array.h (License): Same
18049 * config/v850/v850.h (License): Same.
18050 * config/v850/v850-opts.h (License): Same
18051 * config/v850/rtems.h (License): Same.
18052
18053 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
18054
18055 PR target/61044
18056 * doc/extend.texi (Local Labels): Note that label differences are
18057 not supported for AVR.
18058
18059 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
18060 Olivier Hainque <hainque@adacore.com>
18061
18062 * rtl.h (set_for_reg_notes): Declare.
18063 * emit-rtl.c (set_for_reg_notes): New function.
18064 (set_unique_reg_note): Use it.
18065 * optabs.c (add_equal_note): Likewise
18066
18067 2014-05-27 Andrew Pinski <apinski@cavium.com>
18068
18069 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
18070 Use <w> for the register in assembly template.
18071 (stack_protect_test): Use the mode of operands[0] for the result.
18072 (stack_protect_test_<mode>): Use <w> for the register
18073 in assembly template.
18074
18075 2014-05-27 DJ Delorie <dj@redhat.com>
18076
18077 * config/rx/rx.c (add_vector_labels): New.
18078 (rx_output_function_prologue): Call it.
18079 (rx_handle_func_attribute): Don't require empty arguments.
18080 (rx_handle_vector_attribute): New.
18081 (rx_attribute_table): Add "vector" attribute.
18082 * doc/extend.texi (interrupt, vector): Document new/changed
18083 RX-specific attributes.
18084
18085 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
18086
18087 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
18088
18089 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
18090 predicate to detect a negative quotient.
18091
18092 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
18093
18094 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
18095 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
18096 Add X - Y CMP 0 to X CMP Y transformation.
18097 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
18098
18099 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
18100
18101 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
18102 before printing.
18103
18104 2014-05-27 Steve Ellcey <sellcey@mips.com>
18105
18106 * config/mips/mips.c: Add include of cgraph.h.
18107
18108 2014-05-27 Richard Biener <rguenther@suse.de>
18109
18110 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
18111
18112 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
18113
18114 PR libgcc/61152
18115 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
18116 * config/arm/arm-cores.def (License): Same.
18117 * config/arm/arm-opts.h (License): Same.
18118 * config/arm/aout.h (License): Same.
18119 * config/arm/bpabi.h (License): Same.
18120 * config/arm/elf.h (License): Same.
18121 * config/arm/linux-elf.h (License): Same.
18122 * config/arm/linux-gas.h (License): Same.
18123 * config/arm/netbsd-elf.h (License): Same.
18124 * config/arm/uclinux-eabi.h (License): Same.
18125 * config/arm/uclinux-elf.h (License): Same.
18126 * config/arm/vxworks.h (License): Same.
18127
18128 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18129
18130 * config/arm/neon.md (neon_bswap<mode>): New pattern.
18131 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
18132 (arm_init_neon_builtins): Handle NEON_BSWAP.
18133 Define required type nodes.
18134 (arm_expand_neon_builtin): Handle NEON_BSWAP.
18135 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
18136 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
18137 * config/arm/iterators.md (VDQHSD): New mode iterator.
18138
18139 2014-05-27 Richard Biener <rguenther@suse.de>
18140
18141 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18142 Try using literal operands when comparing value-ranges failed.
18143
18144 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
18145
18146 * ira.c (commutative_operand): Adjust for change to recog_data.
18147 [Missing from previous commit.]
18148
18149 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
18150
18151 * system.h (TEST_BIT): New macro.
18152 * recog.h (alternative_mask): New type.
18153 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
18154 (recog_data_d): Replace alternative_enabled_p array with
18155 enabled_alternatives.
18156 (target_recog): New structure.
18157 (default_target_recog, this_target_recog): Declare.
18158 (get_enabled_alternatives, recog_init): Likewise.
18159 * recog.c (default_target_recog, this_target_recog): New variables.
18160 (get_enabled_alternatives): New function.
18161 (extract_insn): Use it.
18162 (recog_init): New function.
18163 (preprocess_constraints, constrain_operands): Adjust for change to
18164 recog_data.
18165 * postreload.c (reload_cse_simplify_operands): Likewise.
18166 * reload.c (find_reloads): Likewise.
18167 * ira-costs.c (record_reg_classes): Likewise.
18168 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
18169 all alternatives after a disabled one would be skipped.
18170 (ira_implicitly_set_insn_hard_regs): Likewise.
18171 * ira.c (ira_setup_alts): Adjust for change to recog_data.
18172 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
18173 with enabled_alternatives.
18174 * lra.c (free_insn_recog_data): Update accordingly.
18175 (lra_update_insn_recog_data): Likewise.
18176 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
18177 * lra-constraints.c (process_alt_operands): Likewise. Handle
18178 only_alternative as part of the enabled mask.
18179 * target-globals.h (this_target_recog): Declare.
18180 (target_globals): Add a recog field.
18181 (restore_target_globals): Restore this_target_recog.
18182 * target-globals.c: Include recog.h.
18183 (default_target_globals): Initialize recog field.
18184 (save_target_globals): Likewise.
18185 * reginfo.c (reinit_regs): Call recog_init.
18186 * toplev.c (backend_init_target): Likewise.
18187
18188 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
18189
18190 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
18191 rather than any named insn's code.
18192
18193 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
18194
18195 PR libgcc/61152
18196 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
18197 * config/arm/arm-cores.def (License): Same.
18198
18199 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
18200
18201 * tree.h (decl_comdat_group): Declare.
18202 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
18203 * tree.c (decl_comdat_group): Here.
18204
18205 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
18206
18207 PR rtl-optimization/61222
18208 * combine.c (simplify_shift_const_1): When moving a PLUS outside
18209 the shift, truncate the PLUS operand to the result mode.
18210
18211 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
18212
18213 PR target/61271
18214 * config/i386/i386.c (ix86_rtx_costs)
18215 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
18216 Fix condition.
18217
18218 2014-05-26 Martin Jambor <mjambor@suse.cz>
18219
18220 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
18221 subreg uses.
18222
18223 2014-05-26 Richard Biener <rguenther@suse.de>
18224
18225 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
18226 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
18227 Provide specializations.
18228 (wi::int_traits <HOST_WIDE_INT>,
18229 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
18230
18231 2014-05-26 Alan Modra <amodra@gmail.com>
18232
18233 PR target/61098
18234 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
18235 params and return a bool. Remove dead code. Update comment.
18236 Assert we have a const_int source. Remove bogus code from
18237 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
18238 handling of constants > 2G and reg_equal note, from..
18239 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
18240 return value. Update comment. If we can, use a new pseudo
18241 for intermediate calculations.
18242 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
18243 prototype.
18244 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
18245 call to rs6000_emit_set_const in splitter.
18246 (movdi_internal64+2, +3): Likewise.
18247
18248 2014-05-26 Richard Biener <rguenther@suse.de>
18249
18250 * system.h: Define __STDC_FORMAT_MACROS before
18251 including inttypes.h.
18252 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
18253 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
18254 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
18255 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
18256 HOST_WIDEST_INT_C): Remove.
18257 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
18258 if C99 inttypes.h is not available.
18259 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
18260 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
18261 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
18262 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
18263 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
18264 (struct output_info): Likewise.
18265 (print_statistics): Adjust.
18266 (dump_bitmap_statistics): Likewise.
18267 * bt-load.c (migrate_btr_defs): Print with PRId64.
18268 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
18269 (MAX_SAFE_MULTIPLIER): Adjust.
18270 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
18271 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
18272 dump_cgraph_node): Likewise.
18273 * final.c (dump_basic_block_info): Likewise.
18274 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
18275 * gcov.c (format_gcov): Likewise.
18276 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
18277 for calculation.
18278 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
18279 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
18280 (inline_small_functions, dump_overall_stats, dump_inline_stats):
18281 Use PRId64 for dumping.
18282 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
18283 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
18284 (add_allocno_hard_regs): Adjust.
18285 * loop-doloop.c (doloop_modify): Print using PRId64.
18286 * loop-iv.c (inverse): Compute in uint64_t.
18287 (determine_max_iter, iv_number_of_iterations): Likewise.
18288 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
18289 Print using PRId64.
18290 * lto-streamer-out.c (write_symbol): Use uint64_t.
18291 * mcf.c (CAP_INFINITY): Use int64_t maximum.
18292 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
18293 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
18294 * modulo-sched.c (const_iteration_count): Use int64_t.
18295 (sms_schedule): Dump using PRId64.
18296 * predict.c (dump_prediction): Likewise.
18297 * pretty-print.h (pp_widest_integer): Remove.
18298 * profile.c (get_working_sets, is_edge_inconsistent,
18299 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
18300 * tree-pretty-print.c (pp_double_int): Remove case handling
18301 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
18302 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
18303 and adjust users.
18304 (pass_optimize_bswap::execute): Remove restriction on hosts.
18305 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
18306 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
18307 * tree.c (widest_int_cst_value): Remove.
18308 * tree.h (widest_int_cst_value): Likewise.
18309 * value-prof.c (dump_histogram_value): Print using PRId64.
18310 * gengtype.c (main): Also inject int64_t.
18311 * ggc-page.c (struct max_alignment): Use int64_t.
18312 * alloc-pool.c (struct allocation_object_def): Likewise.
18313 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
18314 for computation.
18315 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
18316 * doc/tm.texi: Regenerated.
18317 * gengtype-lex.l (IWORD): Handle [u]int64_t.
18318 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
18319 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
18320 mmix_output_register_setting): Use [u]int64_t in prototypes.
18321 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
18322 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
18323 mmix_output_octa, mmix_output_shifted_value): Adjust.
18324 (mmix_intval): Adjust. Remove unreachable case.
18325 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
18326
18327 2014-05-26 Richard Biener <rguenther@suse.de>
18328
18329 * configure.ac: Drop __int64 type check. Insist that we
18330 found uint64_t and int64_t.
18331 * hwint.h (HOST_BITS_PER___INT64): Remove.
18332 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
18333 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
18334 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
18335 (HOST_WIDEST_FAST_INT): Remove __int64 case.
18336 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
18337 for dst_q_src_df_rms_cdt.
18338 * configure: Regenerate.
18339 * config.in: Likewise.
18340
18341 2014-05-26 Michael Tautschnig <mt@debian.org>
18342
18343 PR target/61249
18344 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
18345 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
18346
18347 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18348
18349 PR rtl-optimization/61278
18350 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
18351
18352 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18353
18354 PR rtl-optimization/61220
18355 Part of PR rtl-optimization/61225
18356 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
18357 insn; skip split_edge for a block with only one successor.
18358
18359 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18360
18361 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
18362 for variables.
18363
18364 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18365
18366 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
18367 (update_vtable_references): New function.
18368 (function_and_variable_visibility): Rewrite also vtable initializers.
18369 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
18370
18371 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18372
18373 * ggc.h (ggc_grow): New function.
18374 * ggc-none.c (ggc_grow): New function.
18375 * ggc-page.c (ggc_grow): Likewise.
18376
18377 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18378
18379 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
18380 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
18381 comdat_can_be_unshared_p, cgraph_externally_visible_p,
18382 varpool_externally_visible_p, can_replace_by_local_alias,
18383 update_visibility_by_resolution_info, function_and_variable_visibility,
18384 pass_data_ipa_function_and_variable_visibility,
18385 make_pass_ipa_function_and_variable_visibility,
18386 whole_program_function_and_variable_visibility,
18387 pass_data_ipa_whole_program_visibility,
18388 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
18389 * cgraph.h (cgraph_local_node_p): Declare.
18390 * ipa-visibility.c: New file.
18391 * Makefile.in (OBJS): Add ipa-visiblity.o
18392
18393 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18394
18395 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
18396 that var decl is available.
18397
18398 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18399
18400 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
18401 symtab_node pointer.
18402 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
18403 (find_decls_types_r): Do not walk COMDAT_GROUP.
18404 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
18405 * varasm.c (make_decl_one_only): Use set_comdat_group;
18406 create node if needed.
18407 * ipa-inline-transform.c (save_inline_function_body): Update
18408 way we decl->symtab mapping.
18409 * symtab.c (symtab_hash, hash_node, eq_node
18410 symtab_insert_node_to_hashtable): Remove.
18411 (symtab_register_node): Update.
18412 (symtab_unregister_node): Update.
18413 (symtab_get_node): Reimplement as inline function.
18414 (symtab_add_to_same_comdat_group): Update.
18415 (symtab_dissolve_same_comdat_group_list): Update.
18416 (dump_symtab_base): Update.
18417 (verify_symtab_base): Update.
18418 (symtab_make_decl_local): Update.
18419 (fixup_same_cpp_alias_visibility): Update.
18420 (symtab_nonoverwritable_alias): Update.
18421 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
18422 * ipa.c (update_visibility_by_resolution_info): UPdate.
18423 * bb-reorder.c: Include cgraph.h
18424 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
18425 with comdat groups.
18426 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
18427 * cgraph.c (cgraph_get_create_node): Update.
18428 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
18429 and comdat_group_.
18430 (symtab_get_node): Make inline.
18431 (symtab_insert_node_to_hashtable): Remove.
18432 (symtab_can_be_discarded): Update.
18433 (decl_comdat_group): New function.
18434 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
18435 Update.
18436 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
18437 comdat group name.
18438 (read_comdat_group): New function.
18439 (input_node, input_varpool_node): Use it.
18440 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
18441 comdat groups.
18442 * mips.c (mips_start_unique_function): Likewise.
18443 (ix86_code_end): Likewise.
18444 (rs6000_code_end): Likweise.
18445 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
18446
18447 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18448
18449 * gengtype-state.c (fatal_reading_state): Bring offline.
18450 * optabs.c (widening_optab_handler): Bring offline.
18451 * optabs.h (widening_optab_handler): Likewise.
18452 * final.c (get_attr_length_1): Likewise.
18453
18454 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18455
18456 * sched-int.h (sd_iterator_cond): Manually tail recurse.
18457
18458 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18459
18460 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
18461 (ppc440-compare): Include shift with dot.
18462 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
18463 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
18464 without dot.
18465 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
18466 without dot.
18467 (e6500_sfx2): Include it.
18468 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
18469 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
18470 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
18471 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
18472 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
18473 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
18474 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
18475 *lshiftrt_internal1le, *lshiftrt_internal1be,
18476 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
18477 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
18478 *rotldi3_internal10le, *rotldi3_internal10be,
18479 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
18480 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
18481 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
18482 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
18483 define_insns): Use type "shift" in the appropriate alternatives.
18484
18485 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18486
18487 * config/rs6000/rs6000.md (type): Add "logical". Delete
18488 "fast_compare".
18489 (dot): Adjust comment.
18490 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
18491 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
18492 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
18493 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
18494 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
18495 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
18496 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
18497 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
18498
18499 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18500 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
18501 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18502 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18503 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18504 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18505 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18506 * config/rs6000/8540.md (ppc8540_su): Adjust.
18507 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18508 cell-cmp-microcoded): Adjust.
18509 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
18510 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18511 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
18512 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
18513 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
18514 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18515 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
18516 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
18517 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
18518 Adjust.
18519 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
18520 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
18521 Adjust. Adjust comment.
18522 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18523 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
18524
18525 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18526
18527 * config/rs6000/rs6000.md (type): Add "add".
18528 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
18529 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
18530 define_insns): Use it.
18531 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
18532
18533 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18534 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
18535 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18536 * config/rs6000/601.md (ppc601-integer): Adjust.
18537 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18538 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18539 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18540 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18541 * config/rs6000/8540.md (ppc8540_su): Adjust.
18542 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18543 cell-cmp-microcoded): Adjust.
18544 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
18545 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18546 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
18547 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
18548 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
18549 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18550 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
18551 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
18552 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
18553 Adjust.
18554 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
18555 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
18556 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18557 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
18558
18559 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18560
18561 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
18562 "delayed_compare", "var_delayed_compare".
18563 (var_shift): New attribute.
18564 (cell_micro): Adjust.
18565 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
18566 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
18567 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
18568 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
18569 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
18570 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
18571 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
18572 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
18573 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
18574 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
18575 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
18576 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
18577 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
18578 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
18579 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
18580 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
18581 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
18582 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
18583 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
18584 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
18585 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
18586 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
18587 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
18588 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18589 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18590
18591 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18592 * config/rs6000/440.md (ppc440-integer): Adjust.
18593 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18594 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
18595 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18596 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18597 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18598 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18599 * config/rs6000/8540.md (ppc8540_su): Adjust.
18600 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18601 cell-cmp-microcoded): Adjust.
18602 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
18603 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18604 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
18605 e500mc64_delayed): Adjust.
18606 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
18607 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
18608 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18609 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
18610 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
18611 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
18612 power6-delayed-compare, power6-var-delayed-compare): Adjust.
18613 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
18614 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
18615 Adjust comment.
18616 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18617 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18618
18619 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18620
18621 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
18622 (bits): New mode_attr.
18623 (idiv_ldiv): Delete mode_attr.
18624 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
18625 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18626 rs6000_adjust_priority, is_nonpipeline_insn,
18627 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18628
18629 * config/rs6000/40x.md (ppc403-idiv): Adjust.
18630 * config/rs6000/440.md (ppc440-idiv): Adjust.
18631 * config/rs6000/476.md (ppc476-idiv): Adjust.
18632 * config/rs6000/601.md (ppc601-idiv): Adjust.
18633 * config/rs6000/603.md (ppc603-idiv): Adjust.
18634 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
18635 ppc620-ldiv): Adjust.
18636 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
18637 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
18638 * config/rs6000/8540.md (ppc8540_divide): Adjust.
18639 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
18640 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
18641 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
18642 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
18643 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
18644 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
18645 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
18646 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
18647 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
18648 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
18649 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
18650 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
18651 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
18652 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
18653 * config/rs6000/titan.md (titan_fxu_div): Adjust.
18654
18655 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18656
18657 * config/rs6000/rs6000.md (type): Delete "insert_word",
18658 "insert_dword". Add "insert".
18659 (size): Update comment.
18660 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18661 insn_must_be_first_in_group): Adjust.
18662 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
18663 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
18664 *insvsi_internal6, insvdi_internal): Adjust.
18665
18666 * config/rs6000/40x.md (ppc403-integer): Adjust.
18667 * config/rs6000/440.md (ppc440-integer): Adjust.
18668 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
18669 * config/rs6000/601.md (ppc601-integer): Adjust.
18670 * config/rs6000/603.md (ppc603-integer): Adjust.
18671 * config/rs6000/6xx.md (ppc604-integer): Adjust.
18672 * config/rs6000/7450.md (ppc7450-integer): Adjust.
18673 * config/rs6000/7xx.md (ppc750-integer): Adjust.
18674 * config/rs6000/8540.md (ppc8540_su): Adjust.
18675 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
18676 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
18677 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18678 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
18679 * config/rs6000/e5500.md (e5500_sfx): Adjust.
18680 * config/rs6000/e6500.md (e6500_sfx): Adjust.
18681 * config/rs6000/mpc.md (mpccore-integer): Adjust.
18682 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
18683 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
18684 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
18685 * config/rs6000/power7.md (power7-integer): Adjust.
18686 * config/rs6000/power8.md (power8-1cyc): Adjust.
18687 * config/rs6000/rs64.md (rs64a-integer): Adjust.
18688 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18689
18690 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18691
18692 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
18693 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
18694 (size): New attribute.
18695 (dot): New attribute.
18696 (cell_micro): Adjust.
18697 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
18698 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
18699 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
18700 umuldi3_highpart): Adjust.
18701 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18702 rs6000_adjust_priority, is_nonpipeline_insn,
18703 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18704
18705 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
18706 ppc405-imul3): Adjust.
18707 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
18708 * config/rs6000/476.md (ppc476-imul): Adjust.
18709 * config/rs6000/601.md (ppc601-imul): Adjust.
18710 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
18711 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
18712 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
18713 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
18714 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
18715 Adjust.
18716 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
18717 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
18718 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
18719 cell-imul): Adjust.
18720 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
18721 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
18722 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
18723 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
18724 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
18725 * config/rs6000/mpc.md (mpccore-imul): Adjust.
18726 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
18727 power4-lmul, power4-imul, power4-imul3): Adjust.
18728 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
18729 power5-lmul, power5-imul, power5-imul3): Adjust.
18730 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
18731 power6-lmul, power6-imul, power6-imul3): Adjust.
18732 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
18733 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
18734
18735 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
18736 rs64a-lmul): Adjust.
18737 * config/rs6000/titan.md (titan_imul): Adjust.
18738
18739 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18740
18741 * config/rs6000/rs6000.md (type): Add new value "halfmul".
18742 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
18743 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
18744 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
18745 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
18746 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
18747 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
18748 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
18749 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
18750 * config/rs6000/titan.md: Delete nonsensical comment.
18751 (titan_imul): Add type imul3.
18752 (titan_mulhw): Remove type imul3; add type halfmul.
18753
18754 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18755
18756 * config/rs6000/rs6000.md (type): Reorder, reformat.
18757
18758 2014-05-23 Martin Jambor <mjambor@suse.cz>
18759
18760 PR tree-optimization/53787
18761 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
18762 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
18763 analysis_done, update all uses.
18764 * ipa-prop.c: Include domwalk.h
18765 (param_analysis_info): Removed.
18766 (param_aa_status): New type.
18767 (ipa_bb_info): Likewise.
18768 (func_body_info): Likewise.
18769 (ipa_get_bb_info): New function.
18770 (aa_overwalked): Likewise.
18771 (find_dominating_aa_status): Likewise.
18772 (parm_bb_aa_status_for_bb): Likewise.
18773 (parm_preserved_before_stmt_p): Changed to use new param AA info.
18774 (load_from_unmodified_param): Accept func_body_info as a parameter
18775 instead of parms_ainfo.
18776 (parm_ref_data_preserved_p): Changed to use new param AA info.
18777 (parm_ref_data_pass_through_p): Likewise.
18778 (ipa_load_from_parm_agg_1): Likewise. Update callers.
18779 (compute_complex_assign_jump_func): Changed to use new param AA info.
18780 (compute_complex_ancestor_jump_func): Likewise.
18781 (ipa_compute_jump_functions_for_edge): Likewise.
18782 (ipa_compute_jump_functions): Removed.
18783 (ipa_compute_jump_functions_for_bb): New function.
18784 (ipa_analyze_indirect_call_uses): Likewise, moved variable
18785 declarations down.
18786 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
18787 and info, moved variable declarations down.
18788 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
18789 node and info.
18790 (ipa_analyze_stmt_uses): Likewise.
18791 (ipa_analyze_params_uses): Removed.
18792 (ipa_analyze_params_uses_in_bb): New function.
18793 (ipa_analyze_controlled_uses): Likewise.
18794 (free_ipa_bb_info): Likewise.
18795 (analysis_dom_walker): New class.
18796 (ipa_analyze_node): Handle node-specific forbidden analysis,
18797 initialize and free func_body_info, use dominator walker.
18798 (ipcp_modif_dom_walker): New class.
18799 (ipcp_transform_function): Create and free func_body_info, use
18800 ipcp_modif_dom_walker, moved a lot of functionality there.
18801
18802 2014-05-23 Marek Polacek <polacek@redhat.com>
18803 Jakub Jelinek <jakub@redhat.com>
18804
18805 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
18806 * gcc.c (sanitize_spec_function): Likewise.
18807 * convert.c (convert_to_integer): Include "ubsan.h". Add
18808 floating-point to integer instrumentation.
18809 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
18810 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
18811 SANITIZE_NONDEFAULT.
18812 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
18813 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
18814 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
18815 * ubsan.c: Include "realmpfr.h" and "dfp.h".
18816 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
18817 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
18818 float/double/long double.
18819 (ubsan_instrument_float_cast): New function.
18820 * ubsan.h (ubsan_instrument_float_cast): Declare.
18821
18822 2014-05-23 Jiong Wang <jiong.wang@arm.com>
18823
18824 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
18825 predicate.
18826 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
18827 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
18828 Adjust for tailcalling through registers.
18829 * config/aarch64/aarch64.h (enum reg_class): New caller save
18830 register class.
18831 (REG_CLASS_NAMES): Likewise.
18832 (REG_CLASS_CONTENTS): Likewise.
18833 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
18834 Allow tailcalling without decls.
18835
18836 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
18837
18838 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
18839 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
18840
18841 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
18842 gsi, and variables v_* to v*.
18843
18844 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
18845
18846 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
18847
18848 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
18849
18850 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
18851 * omp-low.c: Update accordingly.
18852
18853 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
18854 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
18855 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
18856 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
18857 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
18858 GF_OMP_TARGET_KIND_UPDATE.
18859
18860 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
18861 Explicitly enumerate the expected region types.
18862
18863 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
18864
18865 PR other/56955
18866 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
18867 documentation; the old documentation didn't clearly state the
18868 constraints on the contents of the pointed-to storage.
18869
18870 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18871
18872 Fix bootstrap error on ia64
18873 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
18874 Return default value.
18875
18876 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
18877
18878 PR tree-optimization/54733
18879 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
18880 (CMPNOP): Define.
18881 (find_bswap_or_nop_load): New.
18882 (find_bswap_1): Renamed to ...
18883 (find_bswap_or_nop_1): This. Also add support for memory source.
18884 (find_bswap): Renamed to ...
18885 (find_bswap_or_nop): This. Also add support for memory source and
18886 detection of bitwise operations equivalent to load in target
18887 endianness.
18888 (execute_optimize_bswap): Likewise. Also move its leading comment back
18889 in place and split statement transformation into ...
18890 (bswap_replace): This.
18891
18892 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
18893
18894 PR rtl-optimization/61215
18895 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
18896 simplify_gen_subreg until final substitution.
18897
18898 2014-05-23 Alan Modra <amodra@gmail.com>
18899
18900 PR target/61231
18901 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
18902 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
18903 Use "Y" constraint rather than "m".
18904
18905 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
18906
18907 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
18908 define.
18909 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
18910 New function declaration.
18911 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
18912 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
18913 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
18914 (aarch64_init_builtins) : Initialize builtins
18915 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
18916 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
18917 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
18918 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
18919 and __builtins_aarch64_set_fpsr.
18920 (aarch64_atomic_assign_expand_fenv): New function.
18921 * config/aarch64/aarch64.md (set_fpcr): New pattern.
18922 (get_fpcr) : Likewise.
18923 (set_fpsr) : Likewise.
18924 (get_fpsr) : Likewise.
18925 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
18926 and UNSPECV_SET_FPSR.
18927 * doc/extend.texi (AARCH64 Built-in Functions) : Document
18928 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
18929 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
18930
18931 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
18932
18933 PR rtl-optimization/60969
18934 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
18935 constraints. Set up mem cost for NO_REGS case.
18936
18937 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
18938
18939 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
18940
18941 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
18942
18943 * config/darwin.c: Include "lto-section-names.h".
18944 (LTO_SEGMENT_NAME): Don't define.
18945 * config/i386/winnt.c: Include "lto-section-names.h".
18946 * lto-streamer.c: Include "lto-section-names.h".
18947 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
18948 * lto-wrapper.c: Include "lto-section-names.h".
18949 (LTO_SECTION_NAME_PREFIX): Don't define.
18950 * lto-section-names.h: New file.
18951 * cgraphunit.c: Include "lto-section-names.h".
18952
18953 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
18954
18955 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
18956
18957 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
18958
18959 PR target/61208
18960 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
18961
18962 2014-05-22 Nick Clifton <nickc@redhat.com>
18963
18964 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
18965
18966 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
18967
18968 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
18969 -> (T)A transformation to integer types.
18970
18971 2014-05-22 Teresa Johnson <tejohnson@google.com>
18972
18973 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
18974 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
18975 (gcov_rewrite): Use gcov_nonruntime_assert.
18976 (gcov_open): Ditto.
18977 (gcov_write_words): Ditto.
18978 (gcov_write_length): Ditto.
18979 (gcov_read_words): Use gcov_nonruntime_assert, and remove
18980 gcc_assert from IN_LIBGCOV code.
18981 (gcov_read_summary): Use gcov_error to flag profile corruption.
18982 (gcov_sync): Use gcov_nonruntime_assert.
18983 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
18984 (gcov_histo_index): Use gcov_nonruntime_assert.
18985 (static void gcov_histogram_merge): Ditto.
18986 (compute_working_sets): Ditto.
18987 * gcov-io.h (gcov_nonruntime_assert): Define.
18988 (gcov_error): Define for !IN_LIBGCOV
18989
18990 2014-05-22 Richard Biener <rguenther@suse.de>
18991
18992 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18993 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
18994 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
18995 and deallocation site.
18996 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
18997 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
18998 passing through the incoming points-to set.
18999 (handle_lhs_call): Use flags argument instead of recomputing it.
19000 (find_func_aliases_for_call): Call handle_lhs_call with proper
19001 call return flags.
19002
19003 2014-05-22 Jakub Jelinek <jakub@redhat.com>
19004
19005 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
19006 all padding bits in REAL_VALUE_TYPE are cleared.
19007
19008 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19009
19010 Cleanup and improve multipass_dfa_lookahead_guard
19011 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
19012 (core2i7_first_cycle_multipass_begin,)
19013 (core2i7_first_cycle_multipass_issue,)
19014 (core2i7_first_cycle_multipass_backtrack): Update signature.
19015 * config/ia64/ia64.c
19016 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
19017 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
19018 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
19019 hook definition.
19020 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
19021 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
19022 values.
19023 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
19024 return values.
19025 * doc/tm.texi: Regenerate.
19026 * doc/tm.texi.in
19027 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
19028 * haifa-sched.c (ready_try): Make signed to allow negative values.
19029 (rebug_ready_list_1): Update.
19030 (choose_ready): Simplify.
19031 (sched_extend_ready_list): Update.
19032
19033 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19034
19035 Remove IA64 speculation tweaking flags
19036 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
19037 speculation tuning flags.
19038 (msched-prefer-non-data-spec-insns,)
19039 (msched-prefer-non-control-spec-insns): Obsolete options.
19040 * haifa-sched.c (choose_ready): Remove handling of
19041 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
19042 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
19043 and PREFER_NON_DATA_SPEC.
19044 * sel-sched.c (process_spec_exprs): Remove handling of
19045 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
19046
19047 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19048
19049 Improve scheduling debug output
19050 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
19051 (advance_one_cycle): Update.
19052 (schedule_insn, queue_to_ready): Add debug printouts.
19053 (debug_ready_list_1): New static function.
19054 (debug_ready_list): Update.
19055 (max_issue): Add debug printouts.
19056 (dump_insn_stream): New static function.
19057 (schedule_block): Use it. Also better indent printouts.
19058
19059 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19060
19061 Fix sched_insn debug counter
19062 * haifa-sched.c (schedule_insn): Update.
19063 (struct haifa_saved_data): Add nonscheduled_insns_begin.
19064 (save_backtrack_point, restore_backtrack_point): Update.
19065 (first_nonscheduled_insn): New static function.
19066 (queue_to_ready, choose_ready): Use it.
19067 (schedule_block): Init nonscheduled_insns_begin.
19068 (sched_emit_insn): Update.
19069
19070
19071 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
19072
19073 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
19074 to GENERAL_REGS.
19075 (aarch64_secondary_reload) : LikeWise.
19076 (aarch64_class_max_nregs) : Remove CORE_REGS.
19077 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
19078 (REG_CLASS_NAMES) : Likewise.
19079 (REG_CLASS_CONTENTS) : LikeWise.
19080 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
19081
19082 2014-05-21 Guozhi Wei <carrot@google.com>
19083
19084 PR target/61202
19085 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
19086 constraint.
19087 (vqdmulhq_n_s16): Likewise.
19088
19089 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
19090
19091 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
19092
19093 2014-05-21 Marek Polacek <polacek@redhat.com>
19094
19095 PR sanitizer/61272
19096 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
19097
19098 2014-05-21 Martin Jambor <mjambor@suse.cz>
19099
19100 * doc/invoke.texi (Optimize Options): Document parameters
19101 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
19102 ipa-cp-array-index-hint-bonus.
19103
19104 2014-05-21 Mark Wielaard <mjw@redhat.com>
19105
19106 PR debug/16063
19107 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
19108 version >= 3 or not strict DWARF.
19109 * langhooks.h (struct lang_hooks_for_types): Add
19110 enum_underlying_base_type.
19111 * langhooks.c (lhd_enum_underlying_base_type): New function.
19112 * gcc/langhooks.h (struct lang_hooks_for_types): Add
19113 enum_underlying_base_type.
19114 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
19115 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
19116 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
19117
19118 2014-05-21 Richard Biener <rguenther@suse.de>
19119
19120 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
19121
19122 2014-05-21 John Marino <gnugcc@marino.st>
19123
19124 * config.gcc (*-*-dragonfly*): New target.
19125 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
19126 * configure: Regenerate.
19127 * config/dragonfly-stdint.h: New.
19128 * config/dragonfly.h: New.
19129 * config/dragonfly.opt: New.
19130 * config/i386/dragonfly.h: New.
19131 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
19132
19133 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19134
19135 * tree.def (VOID_CST): New.
19136 * tree-core.h (TI_VOID): New.
19137 * tree.h (void_node): New.
19138 * tree.c (tree_node_structure_for_code, tree_code_size)
19139 (iterative_hash_expr): Handle VOID_CST.
19140 (build_common_tree_nodes): Initialize void_node.
19141
19142 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
19143
19144 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
19145 functions.
19146 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
19147
19148 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
19149 more places.
19150
19151 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
19152 flag_reorder_blocks_and_partition.
19153 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
19154
19155 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
19156
19157 PR target/54236
19158 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
19159 constraints.
19160 (*addc_r_t): Add new insn_and_split.
19161
19162 2014-05-21 Jakub Jelinek <jakub@redhat.com>
19163
19164 PR middle-end/61252
19165 * omp-low.c (handle_simd_reference): New function.
19166 (lower_rec_input_clauses): Use it. Defer adding reference
19167 initialization even for reduction without placeholder if in simd,
19168 handle it properly later on.
19169
19170 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19171
19172 PR tree-optimization/60899
19173 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
19174 assume all static symbols will have definition wile parsing and
19175 check the do have definition later in compilation; check that
19176 variable referring symbol will be output before concluding that
19177 reference is safe; be conservative for referring local statics;
19178 be more precise about when comdat is output in other partition.
19179
19180 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19181
19182 PR bootstrap/60984
19183 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
19184 parameter.
19185 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
19186 (ipa_inline): Loop inline_to_all_callers until no more aliases
19187 are removed.
19188
19189 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19190
19191 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
19192 set writeonly flag only for vars actually written to.
19193
19194 2014-05-20 Dehao Chen <dehao@google.com>
19195
19196 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
19197 and callee count to get clone count.
19198 * tree-inline.c (expand_call_inline): Use callee count instead of bb
19199 count in copy_body.
19200
19201 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
19202
19203 PR rtl-optimization/61243
19204 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
19205
19206 2014-05-20 Xinliang David Li <davidxl@google.com>
19207
19208 * cgraphunit.c (walk_polymorphic_call_targets): Add
19209 dbgcnt and fopt-info support.
19210 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
19211 * ipa-devirt.c (ipa_devirt): Ditto.
19212 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
19213 * ipa.c (walk_polymorphic_call_targets): Ditto.
19214 * gimple-fold.c (fold_gimple_assign): Ditto.
19215 (gimple_fold_call): Ditto.
19216 * dbgcnt.def: New counter.
19217
19218 2014-05-20 DJ Delorie <dj@redhat.com>
19219
19220 * config/msp430/msp430.md (split): Don't allow subregs when
19221 splitting SImode adds.
19222 (andneghi): Fix subtraction logic.
19223 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
19224
19225 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19226
19227 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
19228 symbols.
19229 * except.c (switch_to_exception_section, resolve_unique_section,
19230 get_named_text_section, default_function_rodata_section,
19231 align_variable, get_block_for_decl, default_section_type_flags):
19232 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
19233 * symtab.c (symtab_add_to_same_comdat_group,
19234 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
19235 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
19236 Likewise.
19237 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
19238 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
19239 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
19240 (c6x_function_in_section_p): Likewise.
19241 * config/darwin.c (machopic_select_section): Likewise.
19242 * config/arm/arm.c (arm_function_in_section_p): Likewise.
19243 * config/mips/mips.c (mips_function_rodata_section): Likewise.
19244 * config/mep/mep.c (mep_select_section): LIkewise.
19245 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
19246
19247 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
19248
19249 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
19250 EH region of calls to pure functions that can throw an exception.
19251 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
19252 (copy_reference_ops_from_call): Also copy the EH region of the call if
19253 it can throw an exception.
19254
19255 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19256
19257 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
19258 nested VEC_SELECTs that are inverses of each other.
19259
19260 2014-05-20 Richard Biener <rguenther@suse.de>
19261
19262 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
19263 (extract_and_process_scc_for_name): not here.
19264 (cond_dom_walker::before_dom_children): Only process
19265 stmts that end the BB in interesting ways.
19266 (run_scc_vn): Mark param uses as visited.
19267
19268 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19269
19270 * config/arm/arm.md (arith_shiftsi): Do not predicate for
19271 arm_restrict_it.
19272
19273 2014-05-20 Nick Clifton <nickc@redhat.com>
19274
19275 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
19276 (msp430_gimplify_va_arg_expr): New function.
19277 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
19278
19279 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
19280 operand 0 in order to prevent confusion about the number of
19281 registers involved.
19282
19283 2014-05-20 Richard Biener <rguenther@suse.de>
19284
19285 PR tree-optimization/61221
19286 * tree-ssa-pre.c (el_to_update): Remove.
19287 (eliminate_dom_walker::before_dom_children): Handle released
19288 VDEFs by value-numbering them to the associated VUSE. Update
19289 stmt immediately for substituted call address.
19290 (eliminate): Remove delayed stmt updating code.
19291 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
19292 possibly late re-numbered vuses.
19293 (vn_reference_lookup_2): Adjust.
19294 (vn_reference_lookup_pieces): Likewise.
19295 (vn_reference_lookup): Likewise.
19296
19297 2014-05-20 Richard Biener <rguenther@suse.de>
19298
19299 * config.gcc: Remove need_64bit_hwint.
19300 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
19301 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
19302 it to be true.
19303 * config.in: Regenerate.
19304 * configure: Likewise.
19305
19306 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
19307
19308 * doc/extend.texi: Create Label Attributes section,
19309 move all label attributes into it and reference it.
19310
19311 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
19312
19313 * arm.c (thumb1_reorg): When scanning backwards skip anything
19314 that's not a proper insn.
19315
19316 2014-05-19 Richard Biener <rguenther@suse.de>
19317
19318 PR tree-optimization/61221
19319 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
19320 Do nothing for unreachable blocks.
19321 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
19322 Improve unreachability detection.
19323
19324 2014-05-19 Richard Biener <rguenther@suse.de>
19325
19326 PR tree-optimization/61209
19327 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
19328
19329 2014-05-19 Nick Clifton <nickc@redhat.com>
19330
19331 * except.c (init_eh): Fix computation of builtin setjmp buffer
19332 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
19333
19334 2014-05-19 Richard Biener <rguenther@suse.de>
19335
19336 PR tree-optimization/61184
19337 * tree-vrp.c (is_negative_overflow_infinity): Use
19338 TREE_OVERFLOW_P and do that check first.
19339 (is_positive_overflow_infinity): Likewise.
19340 (is_overflow_infinity): Likewise.
19341 (vrp_operand_equal_p): Properly treat operands with
19342 differing overflow as not equal.
19343
19344 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
19345
19346 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
19347 shift simplification where it was intended.
19348
19349 2014-05-19 Christian Bruel <christian.bruel@st.com>
19350
19351 PR target/61195
19352 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
19353
19354 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
19355
19356 PR target/61084
19357 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
19358 than wide_int.
19359
19360 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
19361
19362 * reg-notes.def (CROSSING_JUMP): Likewise.
19363 * rtl.h (rtx_def): Update comment for jump flag.
19364 (CROSSING_JUMP_P): Define.
19365 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
19366 of a REG_CROSSING_JUMP note.
19367 * cfghooks.c (tidy_fallthru_edges): Likewise.
19368 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
19369 * emit-rtl.c (try_split): Likewise.
19370 * haifa-sched.c (sched_create_recovery_edges): Likewise.
19371 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
19372 * jump.c (redirect_jump_2): Likewise.
19373 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
19374 (relax_delay_slots): Likewise.
19375 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
19376 (bbit_di): Likewise.
19377 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
19378 * config/sh/sh.md (jump_compact): Likewise.
19379 * bb-reorder.c (rotate_loop): Likewise.
19380 (pass_duplicate_computed_gotos::execute): Likewise.
19381 (add_reg_crossing_jump_notes): Rename to...
19382 (update_crossing_jump_flags): ...this.
19383 (pass_partition_blocks::execute): Update accordingly.
19384
19385 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
19386
19387 * tree.h: Remove extraneous template <>.
19388
19389 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19390
19391 * ipa.c (symtab_remove_unreachable_nodes): Remove
19392 symbol from comdat group if its body was eliminated.
19393 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
19394 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
19395 (symtab_unregister_node): ... this one.
19396 (verify_symtab_base): More strict checking of comdats.
19397 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
19398
19399 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19400
19401 * tree-pass.h (make_pass_ipa_comdats): New pass.
19402 * timevar.def (TV_IPA_COMDATS): New timevar.
19403 * passes.def (pass_ipa_comdats): Add.
19404 * Makefile.in (OBJS): Add ipa-comdats.o
19405 * ipa-comdats.c: New file.
19406
19407 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19408
19409 * ipa.c (update_visibility_by_resolution_info): New function.
19410 (function_and_variable_visibility): Use it.
19411
19412 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19413
19414 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
19415 New functions.
19416 (FOR_EACH_DEFINED_SYMBOL): New macro.
19417 (varpool_first_static_initializer, varpool_next_static_initializer,
19418 varpool_first_defined_variable, varpool_next_defined_variable):
19419 Fix comments.
19420 (symtab_in_same_comdat_p): Correctly deal with inline functions.
19421
19422 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19423
19424 * ggc-page.c (ggc_handle_finalizers): Add comment.
19425
19426 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19427
19428 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
19429 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
19430 (ggc_internal_cleared_alloc): Likewise.
19431 * ggc-page.c (finalizer): New class.
19432 (vec_finalizer): Likewise.
19433 (globals::finalizers): New member.
19434 (globals::vec_finalizers): Likewise.
19435 (ggc_internal_alloc): Record the finalizer if any for the block being
19436 allocated.
19437 (ggc_handle_finalizers): New function.
19438 (ggc_collect): Call ggc_handle_finalizers.
19439 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
19440 finalizer.
19441 (ggc_internal_cleared_alloc): Likewise.
19442 (finalize): New function.
19443 (need_finalization_p): Likewise.
19444 (ggc_alloc): Install the type's destructor as the finalizer if it
19445 might do something.
19446 (ggc_cleared_alloc): Likewise.
19447 (ggc_vec_alloc): Likewise.
19448 (ggc_cleared_vec_alloc): Likewise.
19449
19450 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19451
19452 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
19453
19454 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19455
19456 * alias.c (record_alias_subset): Adjust.
19457 * bitmap.c (bitmap_element_allocate): Likewise.
19458 (bitmap_gc_alloc_stat): Likewise.
19459 * cfg.c (init_flow): Likewise.
19460 (alloc_block): Likewise.
19461 (unchecked_make_edge): Likewise.
19462 * cfgloop.c (alloc_loop): Likewise.
19463 (flow_loops_find): Likewise.
19464 (rescan_loop_exit): Likewise.
19465 * cfgrtl.c (init_rtl_bb_info): Likewise.
19466 * cgraph.c (insert_new_cgraph_node_version): Likewise.
19467 (cgraph_allocate_node): Likewise.
19468 (cgraph_create_edge_1): Likewise.
19469 (cgraph_allocate_init_indirect_info): Likewise.
19470 * cgraphclones.c (cgraph_clone_edge): Likewise.
19471 * cgraphunit.c (add_asm_node): Likewise.
19472 (init_lowered_empty_function): Likewise.
19473 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
19474 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
19475 (alpha_use_linkage): Likewise.
19476 * config/arc/arc.c (arc_init_machine_status): Likewise.
19477 * config/arm/arm.c (arm_init_machine_status): Likewise.
19478 * config/avr/avr.c (avr_init_machine_status): Likewise.
19479 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
19480 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
19481 * config/cris/cris.c (cris_init_machine_status): Likewise.
19482 * config/darwin.c (machopic_indirection_name): Likewise.
19483 (darwin_build_constant_cfstring): Likewise.
19484 (darwin_enter_string_into_cfstring_table): Likewise.
19485 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
19486 * config/frv/frv.c (frv_init_machine_status): Likewise.
19487 * config/i386/i386.c (get_dllimport_decl): Likewise.
19488 (ix86_init_machine_status): Likewise.
19489 (assign_386_stack_local): Likewise.
19490 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
19491 (i386_pe_maybe_record_exported_symbol): Likewise.
19492 (i386_pe_record_stub): Likewise.
19493 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
19494 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
19495 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
19496 (m32c_note_pragma_address): Likewise.
19497 * config/mep/mep.c (mep_init_machine_status): Likewise.
19498 (mep_note_pragma_flag): Likewise.
19499 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
19500 (mips16_local_alias): Likewise.
19501 (mips_init_machine_status): Likewise.
19502 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
19503 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
19504 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
19505 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
19506 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
19507 * config/pa/pa.c (pa_init_machine_status): Likewise.
19508 (pa_get_deferred_plabel): Likewise.
19509 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
19510 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
19511 (rs6000_init_machine_status): Likewise.
19512 (output_toc): Likewise.
19513 * config/s390/s390.c (s390_init_machine_status): Likewise.
19514 * config/score/score.c (score_output_external): Likewise.
19515 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
19516 * config/spu/spu.c (spu_init_machine_status): Likewise.
19517 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
19518 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
19519 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
19520 * coverage.c (coverage_end_function): Likewise.
19521 * dbxout.c (dbxout_init): Likewise.
19522 * doc/gty.texi: Don't mention variable_size attribute.
19523 * dwarf2cfi.c (new_cfi): Adjust.
19524 (new_cfi_row): Likewise.
19525 (copy_cfi_row): Likewise.
19526 (create_cie_data): Likewise.
19527 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
19528 (new_loc_descr): Likewise.
19529 (find_AT_string_in_table): Likewise.
19530 (add_addr_table_entry): Likewise.
19531 (new_die): Likewise.
19532 (add_var_loc_to_decl): Likewise.
19533 (clone_die): Likewise.
19534 (clone_as_declaration): Likewise.
19535 (break_out_comdat_types): Likewise.
19536 (new_loc_list): Likewise.
19537 (add_loc_descr_to_each): Likewise.
19538 (add_location_or_const_value_attribute): Likewise.
19539 (add_linkage_name): Likewise.
19540 (lookup_filename): Likewise.
19541 (dwarf2out_var_location): Likewise.
19542 (new_line_info_table): Likewise.
19543 (dwarf2out_init): Likewise.
19544 (mem_loc_descriptor): Likewise.
19545 (loc_descriptor): Likewise.
19546 (add_const_value_attribute): Likewise.
19547 (tree_add_const_value_attribute): Likewise.
19548 (comp_dir_string): Likewise.
19549 (dwarf2out_vms_debug_main_pointer): Likewise.
19550 (string_cst_pool_decl): Likewise.
19551 * emit-rtl.c (set_mem_attrs): Likewise.
19552 (get_reg_attrs): Likewise.
19553 (start_sequence): Likewise.
19554 (init_emit): Likewise.
19555 (init_emit_regs): Likewise.
19556 * except.c (init_eh_for_function): Likewise.
19557 (gen_eh_region): Likewise.
19558 (gen_eh_region_catch): Likewise.
19559 (gen_eh_landing_pad): Likewise.
19560 (add_call_site): Likewise.
19561 * function.c (add_frame_space): Likewise.
19562 (insert_temp_slot_address): Likewise.
19563 (assign_stack_temp_for_type): Likewise.
19564 (get_hard_reg_initial_val): Likewise.
19565 (allocate_struct_function): Likewise.
19566 (prepare_function_start): Likewise.
19567 (types_used_by_var_decl_insert): Likewise.
19568 * gengtype.c (variable_size_p): Remove function.
19569 (enum alloc_quantity): Remove enum.
19570 (write_typed_alloc_def): Remove function.
19571 (write_typed_struct_alloc_def): Likewise.
19572 (write_typed_typedef_alloc_def): Likewise.
19573 (write_typed_alloc_defns): Likewise.
19574 (main): Adjust.
19575 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
19576 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
19577 * ggc.h (ggc_alloc): new function.
19578 (ggc_cleared_alloc): Likewise.
19579 (ggc_vec_alloc): Template on type of vector element, and remove
19580 element size argument.
19581 (ggc_cleared_vec_alloc): Likewise.
19582 * gimple.c (gimple_build_omp_for): Adjust.
19583 (gimple_copy): Likewise.
19584 * ipa-cp.c (get_replacement_map): Likewise.
19585 (find_aggregate_values_for_callers_subset): Likewise.
19586 (known_aggs_to_agg_replacement_list): Likewise.
19587 * ipa-devirt.c (get_odr_type): Likewise.
19588 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
19589 (read_agg_replacement_chain): Likewise.
19590 * loop-iv.c (get_simple_loop_desc): Likewise.
19591 * lto-cgraph.c (input_node_opt_summary): Likewise.
19592 * lto-section-in.c (lto_new_in_decl_state): Likewise.
19593 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
19594 (input_eh_region): Likewise.
19595 (input_eh_lp): Likewise.
19596 (input_cfg): Likewise.
19597 * optabs.c (set_optab_libfunc): Likewise.
19598 (init_tree_optimization_optabs): Likewise.
19599 (set_conv_libfunc): Likewise.
19600 * passes.c (do_per_function_toporder): Likewise.
19601 * rtl.h: Don't use variable_size gty attribute.
19602 * sese.c (if_region_set_false_region): Adjust.
19603 * stringpool.c (gt_pch_save_stringpool): Likewise.
19604 * target-globals.c (save_target_globals): Likewise.
19605 * toplev.c (general_init): Likewise.
19606 * trans-mem.c (record_tm_replacement): Likewise.
19607 (split_bb_make_tm_edge): Likewise.
19608 * tree-cfg.c (move_sese_region_to_fn): Likewise.
19609 * tree-data-ref.h (lambda_vector_new): Likewise.
19610 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
19611 * tree-iterator.c (tsi_link_before): Likewise.
19612 (tsi_link_after): Likewise.
19613 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
19614 * tree-ssa-loop-niter.c (record_estimate): Likewise.
19615 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
19616 * tree-ssa-operands.h: Don't use variable_size gty attribute.
19617 * tree-ssa.c (init_tree_ssa): Adjust.
19618 * tree-ssanames.c (set_range_info): Likewise.
19619 (get_ptr_info): Likewise.
19620 (duplicate_ssa_name_ptr_info): Likewise.
19621 (duplicate_ssa_name_range_info): Likewise.
19622 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
19623 (unpack_ts_fixed_cst_value_fields): Likewise.
19624 * tree.c (build_fixed): Likewise.
19625 (build_real): Likewise.
19626 (build_string): Likewise.
19627 (decl_priority_info): Likewise.
19628 (decl_debug_expr_insert): Likewise.
19629 (decl_value_expr_insert): Likewise.
19630 (decl_debug_args_insert): Likewise.
19631 (type_hash_add): Likewise.
19632 (build_omp_clause): Likewise.
19633 * ubsan.c (decl_for_type_insert): Likewise.
19634 * varasm.c (get_unnamed_section): Likewise.
19635 (get_noswitch_section): Likewise.
19636 (get_section): Likewise.
19637 (get_block_for_section): Likewise.
19638 (create_block_symbol): Likewise.
19639 (build_constant_desc): Likewise.
19640 (create_constant_pool): Likewise.
19641 (force_const_mem): Likewise.
19642 (record_tm_clone_pair): Likewise.
19643 * varpool.c (varpool_create_empty_node): Likewise.
19644
19645 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19646
19647 * dwarf2out.c (tree_add_const_value_attribute): Call
19648 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
19649 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
19650 instead of ggc_internal_<x>alloc_stat.
19651 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
19652 (ggc_realloc): Likewise.
19653 * ggc-none.c (ggc_internal_alloc): Likewise.
19654 (ggc_internal_cleared_alloc): Likewise.
19655 * ggc-page.c: Likewise.
19656 * ggc.h (ggc_internal_alloc_stat): Likewise.
19657 (ggc_internal_alloc): Remove macro.
19658 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
19659 (ggc_internal_cleared_alloc): Remove macro.
19660 (GGC_RESIZEVEC): Adjust.
19661 (ggc_resizevar): Remove macro.
19662 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
19663 (ggc_internal_cleared_vec_alloc_stat): Likewise.
19664 (ggc_internal_vec_cleared_alloc): Remove macro.
19665 (ggc_alloc_atomic_stat): Drop _stat suffix.
19666 (ggc_alloc_atomic): Remove macro.
19667 (ggc_alloc_cleared_atomic): Remove macro.
19668 (ggc_alloc_string_stat): Drop _stat suffix.
19669 (ggc_alloc_string): Remove macro.
19670 (ggc_alloc_rtx_def_stat): Adjust.
19671 (ggc_alloc_tree_node_stat): Likewise.
19672 (ggc_alloc_cleared_tree_node_stat): Likewise.
19673 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
19674 (ggc_alloc_cleared_simd_clone_stat): Likewise.
19675 * gimple.c (gimple_build_omp_for): Likewise.
19676 (gimple_copy): Likewise.
19677 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
19678 * toplev.c (realloc_for_line_map): Adjust.
19679 * tree-data-ref.h (lambda_vector_new): Likewise.
19680 * tree-phinodes.c (allocate_phi_node): Likewise.
19681 * tree.c (grow_tree_vec_stat): Likewise.
19682 * vec.h (va_gc::reserve): Adjust.
19683
19684 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
19685
19686 * config/microblaze/microblaze.c (break_handler): New Declaration.
19687 (microblaze_break_function_p,microblaze_is_break_handler): New.
19688 (compute_frame_size): Use microblaze_break_function_p.
19689 Add the test of break_handler.
19690 (microblaze_function_prologue) : Add the test of variable
19691 break_handler. Check the fnname by BREAK_HANDLER_NAME.
19692 (microblaze_function_epilogue) : Add the test of break_handler.
19693 (microblaze_globalize_label) : Add the test of break_handler.
19694 Check the name by BREAK_HANDLER_NAME.
19695
19696 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
19697
19698 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
19699 microblaze_is_break_handler test.
19700 (call_internal1,call_value_intern): Use microblaze_break_function_p.
19701 Use SYMBOL_REF_DECL.
19702
19703 * config/microblaze/microblaze-protos.h
19704 (microblaze_break_function_p,microblaze_is_break_handler):
19705 New Declaration.
19706
19707 * doc/extend.texi (MicroBlaze break_handler Functions): Document
19708 new MicroBlaze break_handler functions.
19709
19710 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
19711
19712 * doc/extend.texi (Size of an asm): Move node text according
19713 to its @menu entry position.
19714
19715 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
19716
19717 PR tree-optimization/61140
19718 PR tree-optimization/61150
19719 PR tree-optimization/61197
19720 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
19721
19722 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
19723
19724 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
19725
19726 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
19727
19728 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
19729 __SIZEOF_INT128__ is defined.
19730
19731 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
19732
19733 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
19734 (rs6000_delegitimize_address): Use it.
19735
19736 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
19737
19738 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
19739 inplace argument. Store the new address in the original MEM when true.
19740 * emit-rtl.c (change_address_1): Likewise.
19741 (adjust_address_1, adjust_automodify_address_1, offset_address):
19742 Update accordingly.
19743 * rtl.h (plus_constant): Add an inplace argument.
19744 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
19745 when true. Avoid generating (plus X (const_int 0)).
19746 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
19747 in-place. Pass true to plus_constant.
19748 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
19749
19750 2014-05-16 Dehao Chen <dehao@google.com>
19751
19752 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
19753
19754 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19755
19756 PR target/54089
19757 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
19758 patterns.
19759 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
19760
19761 2014-05-16 Dehao Chen <dehao@google.com>
19762
19763 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
19764 optimize_function_for_size_p.
19765 * regs.h (REG_FREQ_FROM_BB): Likewise.
19766
19767 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19768
19769 PR target/51244
19770 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
19771 negt_reg_operand cases.
19772 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
19773 predicate.
19774 * config/sh/predicates.md (cbranch_treg_value): Simplify.
19775
19776 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19777
19778 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
19779 target variants.
19780
19781 2014-05-16 David Malcolm <dmalcolm@redhat.com>
19782
19783 Revert:
19784 2014-04-29 David Malcolm <dmalcolm@redhat.com>
19785
19786 * tree-cfg.c (dump_function_to_file): Dump the return type of
19787 functions, in a line to itself before the function body, mimicking
19788 the layout of a C function.
19789
19790 2014-05-16 Dehao Chen <dehao@google.com>
19791
19792 * cfghooks.c (make_forwarder_block): Use direct computation to
19793 get fall-through edge's count and frequency.
19794
19795 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
19796
19797 * config/arc/arc.c (arc_init): Fix typo in error message.
19798 * config/i386/i386.c (ix86_expand_builtin): Likewise.
19799 (split_stack_prologue_scratch_regno): Likewise.
19800 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
19801 word from error message.
19802
19803 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
19804
19805 * ira-costs.c: Fix typo in comment.
19806
19807 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
19808
19809 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
19810
19811 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
19812
19813 * varpool.c (dump_varpool_node): Dump write-only flag.
19814 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
19815 write-only flag.
19816 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
19817 write-only variables.
19818 * ipa.c (process_references): New function.
19819 (set_readonly_bit): New function.
19820 (set_writeonly_bit): New function.
19821 (clear_addressable_bit): New function.
19822 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
19823 fix handling of aliases.
19824 * cgraph.h (struct varpool_node): Add writeonly flag.
19825
19826 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
19827
19828 PR rtl-optimization/60969
19829 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
19830 Calculate costs for this case.
19831
19832 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
19833
19834 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
19835 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
19836
19837 2014-05-16 Richard Biener <rguenther@suse.de>
19838
19839 PR tree-optimization/61194
19840 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
19841 bool patterns ending in a COND_EXPR.
19842
19843 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19844
19845 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
19846
19847 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19848
19849 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
19850 where we were unable to cost an RTX.
19851
19852 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19853
19854 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
19855 HIGH, LO_SUM.
19856
19857 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19858 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19859
19860 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
19861
19862 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19863 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19864
19865 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
19866 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
19867
19868 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19869 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19870
19871 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
19872 operators.
19873
19874 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19875 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19876
19877 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
19878 DIV/MOD.
19879
19880 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19881 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19882
19883 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
19884 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
19885
19886 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19887 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19888
19889 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
19890 rotates and shifts.
19891
19892 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19893 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19894
19895 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
19896 ZERO_EXTEND and SIGN_EXTEND better.
19897
19898 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19899 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19900
19901 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
19902 logical operations.
19903
19904 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19905 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19906
19907 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
19908 costs when costing loads and stores to memory.
19909
19910 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19911 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
19912
19913 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
19914 for SET RTX.
19915
19916 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19917
19918 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
19919
19920 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19921 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19922
19923 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
19924 to...
19925 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
19926 well formed.
19927 (aarch64_rtx_mult_cost): New.
19928 (aarch64_rtx_costs): Use it, refactor as appropriate.
19929
19930 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19931 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19932
19933 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
19934 emit instructions, return number of instructions which would
19935 be emitted.
19936 (aarch64_add_constant): Update call to aarch64_build_constant.
19937 (aarch64_output_mi_thunk): Likewise.
19938 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
19939 a CONST_DOUBLE.
19940
19941 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19942
19943 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
19944 (TARGET_RTX_COSTS): Call it.
19945
19946 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19947
19948 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
19949 (cortexa57_vector_cost): Likewise.
19950 (cortexa57_tunings): Use them.
19951
19952 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19953
19954 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
19955 (cpu_addrcost_table): Use it.
19956 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
19957 (aarch64_address_cost): Rewrite using aarch64_classify_address,
19958 move it.
19959
19960 2014-05-16 Richard Biener <rguenther@suse.de>
19961
19962 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
19963 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
19964 (visit_phi): Ignore edges marked as not executable.
19965 (class cond_dom_walker): New.
19966 (cond_dom_walker::before_dom_children): Value-number
19967 control statements and mark successor edges as not
19968 executable if possible.
19969 (run_scc_vn): First walk all control statements in
19970 dominator order, marking edges as not executable.
19971 * tree-inline.c (copy_edges_for_bb): Be not confused
19972 about random edge flags.
19973
19974 2014-05-16 Richard Biener <rguenther@suse.de>
19975
19976 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
19977
19978 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
19979
19980 PR target/61193
19981 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
19982 (__TM_simple_begin): Use it.
19983 (__TM_begin): Likewise.
19984
19985 2014-05-15 Martin Jambor <mjambor@suse.cz>
19986
19987 PR ipa/61085
19988 * ipa-prop.c (update_indirect_edges_after_inlining): Check
19989 type_preserved flag when the indirect edge is polymorphic.
19990
19991 2014-05-15 Martin Jambor <mjambor@suse.cz>
19992
19993 PR tree-optimization/61090
19994 * tree-sra.c (sra_modify_expr): Pass the current gsi to
19995 build_ref_for_model.
19996
19997 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19998
19999 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
20000 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
20001
20002 2014-05-15 Jakub Jelinek <jakub@redhat.com>
20003
20004 PR tree-optimization/61158
20005 * fold-const.c (fold_binary_loc): If X is zero-extended and
20006 shiftc >= prec, make sure zerobits is all ones instead of
20007 invoking undefined behavior.
20008
20009 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20010
20011 * regcprop.h: New file.
20012 * regcprop.c (skip_debug_insn_p): New decl.
20013 (replace_oldest_value_reg): Check skip_debug_insn_p.
20014 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
20015 * shrink-wrap.c: Include regcprop.h.
20016 (prepare_shrink_wrap): Call
20017 copyprop_hardreg_forward_bb_without_debug_insn.
20018
20019 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20020
20021 * shrink-wrap.h: Update comment.
20022 * shrink-wrap.c: Update comment.
20023 (next_block_for_reg): Rename to live_edge_for_reg.
20024 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
20025 (move_insn_for_shrink_wrap): Split live_edge.
20026 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
20027
20028 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
20029
20030 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
20031 Delete.
20032 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
20033 * config/sparc/sparc.md (fptype_ut699): New attribute.
20034 (in_branch_delay): Return false if -mfix-ut699 is specified and
20035 fptype_ut699 is set to single.
20036 (truncdfsf2): Add fptype_ut699 attribute.
20037 (fix_truncdfsi2): Likewise.
20038 (floatsisf2): Change fptype attribute.
20039 (fix_truncsfsi2): Likewise.
20040 (negtf2_notv9): Delete.
20041 (negtf2_v9): Likewise.
20042 (negtf2_hq): New instruction.
20043 (negtf2): New instruction and splitter.
20044 (negdf2_notv9): Rewrite.
20045 (abstf2_notv9): Delete.
20046 (abstf2_hq_v9): Likewise.
20047 (abstf2_v9): Likewise.
20048 (abstf2_hq): New instruction.
20049 (abstf2): New instruction and splitter.
20050 (absdf2_notv9): Rewrite.
20051
20052 2014-05-14 Cary Coutant <ccoutant@google.com>
20053
20054 PR debug/61013
20055 * opts.c (common_handle_option): Don't special-case "-g".
20056 (set_debug_level): Default to at least level 2 with "-g".
20057
20058 2014-05-14 DJ Delorie <dj@redhat.com>
20059
20060 * config/msp430/msp430.c (msp430_builtin): Add
20061 MSP430_BUILTIN_DELAY_CYCLES.
20062 (msp430_init_builtins): Register void __delay_cycles(long long).
20063 (msp430_builtin_decl): Add it.
20064 (cg_magic_constant): New.
20065 (msp430_expand_delay_cycles): New.
20066 (msp430_expand_builtin): Call it.
20067 (msp430_print_operand_raw): Change integer printing from "int" to
20068 HOST_WIDE_INT.
20069 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
20070 (delay_cycles_start): New.
20071 (delay_cycles_end): New.
20072 (delay_cycles_32): New.
20073 (delay_cycles_32x): New.
20074 (delay_cycles_16): New.
20075 (delay_cycles_16x): New.
20076 (delay_cycles_2): New.
20077 (delay_cycles_1): New.
20078 * doc/extend.texi: Document __delay_cycles().
20079
20080 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
20081
20082 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
20083 length attribute computation.
20084
20085 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
20086
20087 PR debug/61188
20088 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
20089
20090 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
20091
20092 PR target/61084
20093 * config/sparc/sparc.md: Fix types of low and high in DI constant
20094 splitter. Use gen_int_mode in some other splitters.
20095
20096 2014-05-14 Martin Jambor <mjambor@suse.cz>
20097
20098 PR ipa/60897
20099 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
20100
20101 2014-05-14 James Norris <jnorris@codesourcery.com>
20102
20103 * omp-low.c (expand_parallel_call): Remove shadow variable.
20104 (expand_omp_taskreg): Likewise.
20105
20106 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
20107
20108 * common/config/i386/i386-common.c
20109 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
20110 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
20111 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
20112 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
20113 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
20114 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
20115 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
20116 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
20117 xsavecintrin.h, xsavesintrin.h.
20118 (x86_64-*-*): Ditto.
20119 * config/i386/clflushoptintrin.h: New.
20120 * config/i386/xsavecintrin.h: Ditto.
20121 * config/i386/xsavesintrin.h: Ditto.
20122 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
20123 (bit_XSAVES): Ditto.
20124 (bit_XSAVES): Ditto.
20125 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
20126 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
20127 -mno-clflushopt.
20128 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20129 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
20130 OPTION_MASK_ISA_XSAVES.
20131 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
20132 -mxsavec, -mxsaves.
20133 (PTA_CLFLUSHOPT) Define.
20134 (PTA_XSAVEC): Ditto.
20135 (PTA_XSAVES): Ditto.
20136 (ix86_option_override_internal): Handle new options.
20137 (ix86_valid_target_attribute_inner_p): Ditto.
20138 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
20139 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
20140 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
20141 (bdesc_special_args): Add __builtin_ia32_xsaves,
20142 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
20143 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
20144 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
20145 (ix86_expand_builtin): Handle new builtins.
20146 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
20147 (TARGET_CLFLUSHOPT_P): Ditto.
20148 (TARGET_XSAVEC): Ditto.
20149 (TARGET_XSAVEC_P): Ditto.
20150 (TARGET_XSAVES): Ditto.
20151 (TARGET_XSAVES_P): Ditto.
20152 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
20153 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
20154 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
20155 (ANY_XRSTOR): New.
20156 (ANY_XRSTOR64): Ditto.
20157 (xrstor): Ditto.
20158 (xrstor): Change into <xrstor>.
20159 (xrstor_rex64): Change into <xrstor>_rex64.
20160 (xrstor64): Change into <xrstor>64
20161 (clflushopt): New.
20162 * config/i386/i386.opt (mclflushopt): New.
20163 (mxsavec): Ditto.
20164 (mxsaves): Ditto.
20165 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
20166 xsavecintrin.h.
20167 * doc/invoke.texi: Document new options.
20168
20169 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
20170
20171 PR rtl-optimization/60866
20172 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
20173 Default it to -1. Pass it down to init_simplejump_data.
20174 (init_simplejump_data): New parameter old_seqno. Pass it down
20175 to get_seqno_for_a_jump.
20176 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
20177 initializing new jump seqno as a last resort. Add comment.
20178 (sel_redirect_edge_and_branch): Save old seqno of the conditional
20179 jump and pass it down to sel_init_new_insn.
20180 (sel_redirect_edge_and_branch_force): Likewise.
20181
20182 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
20183
20184 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
20185 shifted values to avoid build warning.
20186
20187 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
20188
20189 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
20190 * cfgrtl.c (rtl_merge_blocks): Fix comment.
20191 (cfg_layout_merge_blocks): Likewise.
20192 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
20193
20194 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
20195
20196 PR rtl-optimization/60901
20197 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
20198 bb predecessor belongs to the same scheduling region. Adjust comment.
20199
20200 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
20201
20202 * doc/sourcebuild.texi: (dfp_hw): Document.
20203 (p8vector_hw): Likewise.
20204 (powerpc_eabi_ok): Likewise.
20205 (powerpc_elfv2): Likewise.
20206 (powerpc_htm_ok): Likewise.
20207 (ppc_recip_hw): Likewise.
20208 (vsx_hw): Likewise.
20209
20210 2014-05-13 Cary Coutant <ccoutant@google.com>
20211
20212 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
20213
20214 2014-05-13 David Malcolm <dmalcolm@redhat.com>
20215
20216 * gengtype-parse.c (require3): Eliminate in favor of...
20217 (require4): New.
20218 (require_template_declaration): Update to support optional single *
20219 on a type.
20220
20221 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
20222 (create_user_defined_type): Handle a single level of explicit
20223 pointerness within template arguments.
20224 (struct write_types_data): Add field "kind".
20225 (filter_type_name): Handle "*" character.
20226 (write_user_func_for_structure_ptr): Require a write_types_data
20227 rather than just a prefix string, so that we can look up the kind
20228 of the wtd and use it as an index into wrote_user_func_for_ptr,
20229 ensuring that such functions are written at most once. Support
20230 subclasses by invoking the marking function of the ultimate base class.
20231 (write_user_func_for_structure_body): Require a write_types_data
20232 rather than just a prefix string, so that we can pass this to
20233 write_user_func_for_structure_ptr.
20234 (write_func_for_structure): Likewise.
20235 (ggc_wtd): Add initializer of new "kind" field.
20236 (pch_wtd): Likewise.
20237
20238 * gengtype.h (enum write_types_kinds): New.
20239 (struct type): Add field wrote_user_func_for_ptr to the "s"
20240 union member.
20241
20242 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
20243
20244 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
20245 instead of const_binop.
20246 (fold_binary_loc): Likewise.
20247
20248 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
20249
20250 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
20251 calculation to match get_ref_base_and_extent.
20252
20253 2014-05-13 Catherine Moore <clm@codesourcery.com>
20254 Sandra Loosemore <sandra@codesourcery.com>
20255
20256 * configure.ac: Fix assembly for explicit JALR relocation check.
20257 * configure: Regenerate.
20258
20259 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20260
20261 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
20262 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
20263 Remove associated type declarations and initialisations.
20264 (arm_expand_neon_builtin): Likewise.
20265 (neon_emit_pair_result_insn): Delete.
20266 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
20267 * config/arm/neon.md (neon_vtrn<mode>): Delete.
20268 (neon_vzip<mode>): Likewise.
20269 (neon_vuzp<mode>): Likewise.
20270
20271 2014-05-13 Richard Biener <rguenther@suse.de>
20272
20273 PR ipa/60973
20274 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
20275 it needs revisiting whether the call still may be tail-called.
20276
20277 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20278
20279 * rtl.def (SYMBOL_REF): Remove middle "0" field.
20280 * rtl.h (block_symbol): Reduce number of fields to 2.
20281 (rtx_def): Add u2.symbol_ref_flags.
20282 (SYMBOL_REF_FLAGS): Use it.
20283 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
20284 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
20285 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
20286 Lower index of SYMBOL_REF_DATA.
20287 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
20288 Print SYMBOL_REF_FLAGS at the same time.
20289 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
20290
20291 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20292
20293 * rtl.def (VAR_LOCATION): Remove "i" field.
20294 * rtl.h (rtx_def): Add u2.var_location_status.
20295 (PAT_VAR_LOCATION_STATUS): Use it.
20296 (gen_rtx_VAR_LOCATION): Declare.
20297 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
20298 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
20299 * var-tracking.c (emit_note_insn_var_location): Remove casts.
20300
20301 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20302
20303 * rtl.def (scratch): Fix outdated comment and remove "0" field.
20304 * gengtype.c (adjust_field_rtx_def): Update accordingly.
20305
20306 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20307
20308 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
20309 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
20310 * rtl.h (rtx_def): Add insn_uid to u2 field.
20311 (RTX_FLAG_CHECK8): Delete in favor of...
20312 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
20313 (INSN_DELETED_P): Update accordingly.
20314 (INSN_UID): Use u2.insn_uid.
20315 (INSN_CHAIN_CODE_P): Define.
20316 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
20317 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
20318 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
20319 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
20320 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
20321 indices accordingly.
20322 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
20323 Update indices for insn-chain rtxes.
20324 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
20325 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
20326 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
20327 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
20328 * combine.c (try_combine): Likewise.
20329 * ira.c (setup_prohibited_mode_move_regs): Likewise.
20330
20331 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20332
20333 * rtl.def (REG): Remove middle field.
20334 * rtl.h (rtx_def): Add orignal_regno to u2.
20335 (ORIGINAL_REGNO): Use it instead of field 1.
20336 (REG_ATTRS): Lower field index accordingly.
20337 * gengtype.c (adjust_field_rtx_def): Remove handling of
20338 ORIGINAL_REGNO. Move REG_ATTRS index down.
20339 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
20340 code that prints the REGNO.
20341
20342 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20343
20344 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
20345 GENERATOR_FILE.
20346
20347 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20348
20349 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
20350
20351 2014-05-13 Bin Cheng <bin.cheng@arm.com>
20352
20353 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
20354 (alloc_iv): Lower base expressions containing ADDR_EXPR.
20355
20356 2014-05-13 Ian Bolton <ian.bolton@arm.com>
20357
20358 * config/aarch64/aarch64-protos.h
20359 (aarch64_hard_regno_caller_save_mode): New prototype.
20360 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
20361 New function.
20362 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
20363
20364 2014-05-13 Christian Bruel <christian.bruel@st.com>
20365
20366 * target.def (mode_switching): New hook vector.
20367 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
20368 (mode_exit, modepriority_to_mode): Likewise.
20369 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
20370 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20371 * target.h: Include tm.h and hard-reg-set.h.
20372 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
20373 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
20374 * doc/tm.texi Regenerate.
20375 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
20376 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20377 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
20378 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
20379 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
20380 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20381 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
20382 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
20383 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
20384 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
20385 (ix86_emit_mode_set): Hookify.
20386 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
20387 Delete.
20388 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20389 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
20390 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
20391 (epiphany_mode_priority_to_mode): Remove declaration.
20392 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
20393 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
20394 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
20395 Likewise.
20396 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
20397 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
20398 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
20399
20400 2014-05-13 Jakub Jelinek <jakub@redhat.com>
20401
20402 PR target/61060
20403 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
20404 is const0_rtx, return immediately. Don't test count == 0 when
20405 it is always true.
20406
20407 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20408
20409 * Makefile.in: add shrink-wrap.o.
20410 * config/i386/i386.c: include "shrink-wrap.h"
20411 * function.c: Likewise.
20412 (requires_stack_frame_p, next_block_for_reg,
20413 move_insn_for_shrink_wrap, prepare_shrink_wrap,
20414 dup_block_and_redirect): Move to shrink-wrap.c
20415 (thread_prologue_and_epilogue_insns): Extract three code segments
20416 as functions in shrink-wrap.c
20417 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
20418 shrink-wrap.h
20419 * shrink-wrap.c: New file.
20420 * shrink-wrap.h: New file.
20421
20422 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
20423
20424 * doc/extend.texi: Reflect current numbers of pragmas. Remove
20425 reference to Solaris.
20426
20427 2014-05-12 Mike Stump <mikestump@comcast.net>
20428
20429 PR other/31778
20430 * genattrtab.c (filename): Add.
20431 (convert_set_attr_alternative): Improve error message.
20432 (check_defs): Restore read_md_filename for error messages.
20433 (gen_insn): Save filename.
20434
20435 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
20436
20437 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
20438 -fno-local-ivars and -fivar-visibility.
20439 * c-family/c.opt: Make -Wshadow also implicitly enable
20440 -Wshadow-ivar.
20441
20442 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
20443
20444 * doc/tm.texi: Remove reference to deleted macro.
20445 * doc/tm.texi.in: Likewise.
20446
20447 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
20448
20449 PR target/60991
20450 * config/avr/avr.c (avr_out_store_psi): Use correct constant
20451 to restore Y.
20452
20453 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
20454
20455 PR libgcc/61152
20456 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
20457 * config/arm/aout.h (License): Same.
20458 * config/arm/bpabi.h (License): Same.
20459 * config/arm/elf.h (License): Same.
20460 * config/arm/linux-elf.h (License): Same.
20461 * config/arm/linux-gas.h (License): Same.
20462 * config/arm/netbsd-elf.h (License): Same.
20463 * config/arm/uclinux-eabi.h (License): Same.
20464 * config/arm/uclinux-elf.h (License): Same.
20465 * config/arm/vxworks.h (License): Same.
20466
20467 2014-05-11 Jakub Jelinek <jakub@redhat.com>
20468
20469 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
20470 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
20471 number of operands to 3.
20472 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
20473 * tree-nested.c (convert_nonlocal_omp_clauses,
20474 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
20475 * gimplify.c (gimplify_scan_omp_clauses): Handle
20476 OMP_CLAUSE_LINEAR_STMT.
20477 * omp-low.c (lower_rec_input_clauses): Fix typo.
20478 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
20479 cast between Fortran boolean_type_node and C _Bool if
20480 needed.
20481
20482 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
20483
20484 PR tree-optimization/61136
20485 * wide-int.h (multiple_of_p): Define a version that doesn't return
20486 the quotient.
20487 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
20488 integer_zerop/const_binop pair.
20489 (multiple_of_p): Likewise, converting both operands to widest_int
20490 precision.
20491
20492 2014-05-09 Teresa Johnson <tejohnson@google.com>
20493
20494 * cgraphunit.c (analyze_functions): Use correct dump file.
20495
20496 2014-05-09 Florian Weimer <fweimer@redhat.com>
20497
20498 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
20499 expand_used_vars.
20500 (stack_protect_return_slot_p): New function.
20501 (expand_used_vars): Call stack_protect_decl_p and
20502 stack_protect_return_slot_p for -fstack-protector-strong.
20503
20504 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
20505 Andrew Haley <aph@redhat.com>
20506 Richard Sandiford <rdsandiford@googlemail.com>
20507
20508 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
20509 pages.
20510
20511 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
20512
20513 PR middle-end/61111
20514 * fold-const.c (fold_binary_loc): Changed width of mask.
20515
20516 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
20517
20518 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
20519 unsigned int initializers for regno_in, regno_out.
20520
20521 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
20522
20523 PR target/61055
20524 * config/avr/avr.md (cc): Add new attribute set_vzn.
20525 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
20526 Set cc insn attribute to set_vzn instead of set_zn for alternatives
20527 with INC, DEC or NEG.
20528 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
20529 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
20530 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
20531
20532 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20533
20534 Revert:
20535 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20536
20537 * wide-int.cc (UTItype): Define.
20538 (UDWtype): Define for appropriate W_TYPE_SIZE.
20539
20540 2014-05-09 Richard Biener <rguenther@suse.de>
20541
20542 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
20543 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
20544 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
20545 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
20546 ssa_propagate): Adjust.
20547
20548 2014-05-08 Jeff Law <law@redhat.com>
20549
20550 PR tree-optimization/61009
20551 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
20552 tri-state rather than a boolean. When a block is too big to
20553 thread through, inform caller via negative return value.
20554 (thread_across_edge): If a block was too big for normal threading,
20555 then it's too big for a joiner too, so remove temporary equivalences
20556 and return immediately.
20557
20558 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
20559 Matthias Klose <doko@ubuntu.com>
20560
20561 PR driver/61106
20562 * optc-gen.awk: Fix option handling for -Wunused-parameter.
20563
20564 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
20565
20566 PR target/59952
20567 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
20568
20569 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
20570
20571 PR target/61092
20572 * config/alpha/alpha.c: Include gimple-iterator.h.
20573 (alpha_gimple_fold_builtin): New function. Move
20574 ALPHA_BUILTIN_UMULH folding from ...
20575 (alpha_fold_builtin): ... here.
20576 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
20577
20578 2014-05-08 Wei Mi <wmi@google.com>
20579
20580 PR target/58066
20581 * config/i386/i386.c (ix86_compute_frame_layout): Update
20582 preferred_stack_boundary for call, expanded from tls descriptor.
20583 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
20584 to depend on SP register.
20585 (*tls_local_dynamic_base_32_gnu): Ditto.
20586 (*tls_local_dynamic_32_once): Ditto.
20587 (tls_global_dynamic_64_<mode>): Set
20588 ix86_tls_descriptor_calls_expanded_in_cfun.
20589 (tls_local_dynamic_base_64_<mode>): Ditto.
20590 (tls_global_dynamic_32): Set
20591 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
20592 to depend on SP register.
20593 (tls_local_dynamic_base_32): Ditto.
20594
20595 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20596
20597 * config/arm/arm_neon.h: Update comment.
20598 * config/arm/neon-docgen.ml: Delete.
20599 * config/arm/neon-gen.ml: Delete.
20600 * doc/arm-neon-intrinsics.texi: Update comment.
20601
20602 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20603
20604 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
20605 and v4sf versions.
20606 (vand, vorr, veor, vorn, vbic): Remove.
20607 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
20608 iterator.
20609 (neon_vsub_unspec): Likewise.
20610 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
20611
20612 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20613
20614 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
20615 (vadd_s16): Likewise.
20616 (vadd_s32): Likewise.
20617 (vadd_f32): Likewise.
20618 (vadd_u8): Likewise.
20619 (vadd_u16): Likewise.
20620 (vadd_u32): Likewise.
20621 (vadd_s64): Likewise.
20622 (vadd_u64): Likewise.
20623 (vaddq_s8): Likewise.
20624 (vaddq_s16): Likewise.
20625 (vaddq_s32): Likewise.
20626 (vaddq_s64): Likewise.
20627 (vaddq_f32): Likewise.
20628 (vaddq_u8): Likewise.
20629 (vaddq_u16): Likewise.
20630 (vaddq_u32): Likewise.
20631 (vaddq_u64): Likewise.
20632 (vmul_s8): Likewise.
20633 (vmul_s16): Likewise.
20634 (vmul_s32): Likewise.
20635 (vmul_f32): Likewise.
20636 (vmul_u8): Likewise.
20637 (vmul_u16): Likewise.
20638 (vmul_u32): Likewise.
20639 (vmul_p8): Likewise.
20640 (vmulq_s8): Likewise.
20641 (vmulq_s16): Likewise.
20642 (vmulq_s32): Likewise.
20643 (vmulq_f32): Likewise.
20644 (vmulq_u8): Likewise.
20645 (vmulq_u16): Likewise.
20646 (vmulq_u32): Likewise.
20647 (vsub_s8): Likewise.
20648 (vsub_s16): Likewise.
20649 (vsub_s32): Likewise.
20650 (vsub_f32): Likewise.
20651 (vsub_u8): Likewise.
20652 (vsub_u16): Likewise.
20653 (vsub_u32): Likewise.
20654 (vsub_s64): Likewise.
20655 (vsub_u64): Likewise.
20656 (vsubq_s8): Likewise.
20657 (vsubq_s16): Likewise.
20658 (vsubq_s32): Likewise.
20659 (vsubq_s64): Likewise.
20660 (vsubq_f32): Likewise.
20661 (vsubq_u8): Likewise.
20662 (vsubq_u16): Likewise.
20663 (vsubq_u32): Likewise.
20664 (vsubq_u64): Likewise.
20665 (vand_s8): Likewise.
20666 (vand_s16): Likewise.
20667 (vand_s32): Likewise.
20668 (vand_u8): Likewise.
20669 (vand_u16): Likewise.
20670 (vand_u32): Likewise.
20671 (vand_s64): Likewise.
20672 (vand_u64): Likewise.
20673 (vandq_s8): Likewise.
20674 (vandq_s16): Likewise.
20675 (vandq_s32): Likewise.
20676 (vandq_s64): Likewise.
20677 (vandq_u8): Likewise.
20678 (vandq_u16): Likewise.
20679 (vandq_u32): Likewise.
20680 (vandq_u64): Likewise.
20681 (vorr_s8): Likewise.
20682 (vorr_s16): Likewise.
20683 (vorr_s32): Likewise.
20684 (vorr_u8): Likewise.
20685 (vorr_u16): Likewise.
20686 (vorr_u32): Likewise.
20687 (vorr_s64): Likewise.
20688 (vorr_u64): Likewise.
20689 (vorrq_s8): Likewise.
20690 (vorrq_s16): Likewise.
20691 (vorrq_s32): Likewise.
20692 (vorrq_s64): Likewise.
20693 (vorrq_u8): Likewise.
20694 (vorrq_u16): Likewise.
20695 (vorrq_u32): Likewise.
20696 (vorrq_u64): Likewise.
20697 (veor_s8): Likewise.
20698 (veor_s16): Likewise.
20699 (veor_s32): Likewise.
20700 (veor_u8): Likewise.
20701 (veor_u16): Likewise.
20702 (veor_u32): Likewise.
20703 (veor_s64): Likewise.
20704 (veor_u64): Likewise.
20705 (veorq_s8): Likewise.
20706 (veorq_s16): Likewise.
20707 (veorq_s32): Likewise.
20708 (veorq_s64): Likewise.
20709 (veorq_u8): Likewise.
20710 (veorq_u16): Likewise.
20711 (veorq_u32): Likewise.
20712 (veorq_u64): Likewise.
20713 (vbic_s8): Likewise.
20714 (vbic_s16): Likewise.
20715 (vbic_s32): Likewise.
20716 (vbic_u8): Likewise.
20717 (vbic_u16): Likewise.
20718 (vbic_u32): Likewise.
20719 (vbic_s64): Likewise.
20720 (vbic_u64): Likewise.
20721 (vbicq_s8): Likewise.
20722 (vbicq_s16): Likewise.
20723 (vbicq_s32): Likewise.
20724 (vbicq_s64): Likewise.
20725 (vbicq_u8): Likewise.
20726 (vbicq_u16): Likewise.
20727 (vbicq_u32): Likewise.
20728 (vbicq_u64): Likewise.
20729 (vorn_s8): Likewise.
20730 (vorn_s16): Likewise.
20731 (vorn_s32): Likewise.
20732 (vorn_u8): Likewise.
20733 (vorn_u16): Likewise.
20734 (vorn_u32): Likewise.
20735 (vorn_s64): Likewise.
20736 (vorn_u64): Likewise.
20737 (vornq_s8): Likewise.
20738 (vornq_s16): Likewise.
20739 (vornq_s32): Likewise.
20740 (vornq_s64): Likewise.
20741 (vornq_u8): Likewise.
20742 (vornq_u16): Likewise.
20743 (vornq_u32): Likewise.
20744 (vornq_u64): Likewise.
20745
20746 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20747
20748 * wide-int.cc (UTItype): Define.
20749 (UDWtype): Define for appropriate W_TYPE_SIZE.
20750
20751 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
20752
20753 PR tree-optimization/59100
20754 * tree-ssa-phiopt.c: Include tree-inline.h.
20755 (neutral_element_p, absorbing_element_p): New functions.
20756 (value_replacement): Handle conditional binary operations with a
20757 neutral or absorbing element.
20758
20759 2014-05-08 Richard Biener <rguenther@suse.de>
20760
20761 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
20762 folding the expression.
20763 (valueize_expr): Remove.
20764 (visit_reference_op_load): Do not valueize the result of
20765 vn_get_expr_for.
20766 (simplify_binary_expression): Likewise.
20767 (simplify_unary_expression): Likewise.
20768
20769 2014-05-08 Richard Biener <rguenther@suse.de>
20770
20771 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
20772 looking at TYPE_ARG_TYPES.
20773
20774 2014-05-08 Richard Biener <rguenther@suse.de>
20775
20776 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
20777 pointer propagation special-case.
20778
20779 2014-05-08 Bin Cheng <bin.cheng@arm.com>
20780
20781 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
20782 core part of address expressions.
20783
20784 2014-05-08 Alan Modra <amodra@gmail.com>
20785
20786 PR target/60737
20787 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
20788 loads and stores when -mno-strict-align at any alignment.
20789 (expand_block_clear): Similarly. Also correct calculation of
20790 instruction count.
20791
20792 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
20793
20794 PR middle-end/39246
20795 * tree-complex.c (expand_complex_move): Keep line info when expanding
20796 complex move.
20797 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
20798 of complex expression. Use new argument to display correct location
20799 for values coming from phi statement.
20800 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
20801 (warn_uninitialized_phi): Pass location of phi argument to
20802 warn_uninit.
20803 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
20804 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
20805
20806 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
20807
20808 * config/rs6000/predicates.md (indexed_address_mem): New.
20809 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
20810 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
20811 fpstore_ux, fpstore_u.
20812 (sign_extend, indexed, update): New.
20813 (cell_micro): Adjust.
20814 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
20815 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
20816 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
20817 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
20818 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
20819 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
20820 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
20821 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
20822 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
20823 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
20824 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
20825 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
20826 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
20827 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
20828 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
20829
20830 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
20831 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
20832 *vsx_extract_<mode>_store): Adjust.
20833 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
20834 is_cracked_insn, insn_must_be_first_in_group,
20835 insn_must_be_last_in_group): Adjust.
20836
20837 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
20838 Adjust.
20839 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
20840 ppc440-fpstore): Adjust.
20841 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
20842 ppc476-fpstore): Adjust.
20843 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
20844 ppc601-fpstore): Adjust.
20845 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
20846 Adjust.
20847 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
20848 Adjust.
20849 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
20850 ppc7450-fpstore): Adjust.
20851 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
20852 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
20853 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
20854 Adjust.
20855 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
20856 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
20857 cell-fpstore, cell-fpstore-update): Adjust.
20858 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
20859 ppce300c3_store, ppce300c3_fpstore): Adjust.
20860 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
20861 e500mc_fpstore): Adjust.
20862 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
20863 e500mc64_store, e500mc64_fpstore): Adjust.
20864 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
20865 e5500_fpstore): Adjust.
20866 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
20867 e6500_fpstore): Adjust.
20868 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
20869 Adjust.
20870 * config/rs6000/power4.md (power4-load, power4-load-ext,
20871 power4-load-ext-update, power4-load-ext-update-indexed,
20872 power4-load-update-indexed, power4-load-update, power4-fpload,
20873 power4-fpload-update, power4-store, power4-store-update,
20874 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
20875 Adjust.
20876 * config/rs6000/power5.md (power5-load, power5-load-ext,
20877 power5-load-ext-update, power5-load-ext-update-indexed,
20878 power5-load-update-indexed, power5-load-update, power5-fpload,
20879 power5-fpload-update, power5-store, power5-store-update,
20880 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
20881 Adjust.
20882 * config/rs6000/power6.md (power6-load, power6-load-ext,
20883 power6-load-update, power6-load-update-indexed,
20884 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
20885 power6-fpload-update, power6-store, power6-store-update,
20886 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
20887 Adjust.
20888 * config/rs6000/power7.md (power7-load, power7-load-ext,
20889 power7-load-update, power7-load-update-indexed,
20890 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
20891 power7-fpload-update, power7-store, power7-store-update,
20892 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
20893 Adjust.
20894 * config/rs6000/power8.md (power8-load, power8-load-update,
20895 power8-load-ext, power8-load-ext-update, power8-fpload,
20896 power8-fpload-update, power8-store, power8-store-update-indexed,
20897 power8-fpstore, power8-fpstore-update): Adjust.
20898 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
20899 Adjust.
20900 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
20901 titan_lsu_store, titan_lsu_fpstore): Adjust.
20902 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
20903
20904 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
20905
20906 PR target/60884
20907 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
20908 unrolled byte insns. Emit address increments after move insns.
20909
20910 2014-05-07 David Malcolm <dmalcolm@redhat.com>
20911
20912 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
20913 const_gimple, rather than a gimple.
20914 (gimple_call_builtin_p): Likewise, for the three variants.
20915
20916 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
20917 (gimple_call_builtin_p): Likewise, for the three variants.
20918
20919 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
20920
20921 PR tree-optimization/61095
20922 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
20923
20924 2014-05-07 Richard Biener <rguenther@suse.de>
20925
20926 PR tree-optimization/61034
20927 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
20928 (maybe_skip_until): Use translate to take into account
20929 lattices when trying to do disambiguations.
20930 (get_continuation_for_phi_1): Likewise.
20931 (get_continuation_for_phi): Adjust for added translate arguments.
20932 (walk_non_aliased_vuses): Likewise.
20933 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
20934 (walk_non_aliased_vuses): Likewise.
20935 (call_may_clobber_ref_p_1): Declare.
20936 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
20937 calls. Stop early if we are only supposed to disambiguate.
20938 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
20939
20940 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
20941
20942 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
20943 Emit an error when the function has arguments.
20944
20945 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
20946
20947 * cfgloop.h (unswitch_loops): Remove.
20948 * doc/passes.texi: Remove references to loop-unswitch.c
20949 * timevar.def (TV_LOOP_UNSWITCH): Remove.
20950
20951 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
20952
20953 * tree-vect-data-refs.c (vect_grouped_load_supported): New
20954 check for loads group of length 3.
20955 (vect_permute_load_chain): New permutations for loads group of
20956 length 3.
20957 * tree-vect-stmts.c (vect_model_load_cost): Change cost
20958 of vec_perm_shuffle for the new permutations.
20959
20960 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
20961
20962 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
20963 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
20964 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
20965 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
20966 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
20967 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
20968 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
20969 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
20970
20971 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
20972
20973 * loop-unswitch.c: Delete.
20974
20975 2014-05-07 Richard Biener <rguenther@suse.de>
20976
20977 * config.gcc: Always set need_64bit_hwint to yes.
20978
20979 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
20980
20981 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
20982 of using optimize_size.
20983
20984 2014-05-06 Mike Stump <mikestump@comcast.net>
20985
20986 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
20987
20988 2014-05-06 Joseph Myers <joseph@codesourcery.com>
20989
20990 * config/i386/sse.md (*mov<mode>_internal)
20991 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
20992 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
20993 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
20994 (*<code><mode>3, *andnot<mode>3<mask_name>)
20995 (<mask_codefor><code><mode>3<mask_name>): Only consider
20996 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
20997
20998 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
20999
21000 Revert:
21001 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
21002
21003 * lra-constraints.c (valid_address_p): Move earlier in file.
21004 Add a constraint argument to the address_info version.
21005 (satisfies_memory_constraint_p): New function.
21006 (satisfies_address_constraint_p): Likewise.
21007 (process_alt_operands, curr_insn_transform): Use them.
21008 (process_address): Pass the constraint to valid_address_p when
21009 checking address operands.
21010
21011 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
21012
21013 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
21014 to their respective blocks. Fix inadvertent use of "node".
21015
21016 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
21017
21018 * emit-rtl.c (init_derived_machine_modes): New functionm, split
21019 out from...
21020 (init_emit_once): ...here.
21021 * rtl.h (init_derived_machine_modes): Declare.
21022 * toplev.c (do_compile): Call it even if no_backend.
21023
21024 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
21025 Mike Stump <mikestump@comcast.net>
21026 Richard Sandiford <rdsandiford@googlemail.com>
21027 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21028
21029 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
21030 (rtx_equal_for_memref_p): Update comment.
21031 (adjust_offset_for_component_ref): Use wide-int interfaces.
21032 * builtins.c (get_object_alignment_2): Likewise.
21033 (c_readstr): Likewise.
21034 (target_char_cast): Add comment.
21035 (determine_block_size): Use wide-int interfaces.
21036 (expand_builtin_signbit): Likewise.
21037 (fold_builtin_int_roundingfn): Likewise.
21038 (fold_builtin_bitop): Likewise.
21039 (fold_builtin_bswap): Likewise.
21040 (fold_builtin_logarithm): Use signop.
21041 (fold_builtin_pow): Likewise.
21042 (fold_builtin_memory_op): Use wide-int interfaces.
21043 (fold_builtin_object_size): Likewise.
21044 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
21045 nb_iterations_estimate.
21046 (record_niter_bound): Use wide-int interfaces.
21047 (get_estimated_loop_iterations_int): Likewise.
21048 (get_estimated_loop_iterations): Likewise.
21049 (get_max_loop_iterations): Likewise.
21050 * cfgloop.h: Include wide-int.h.
21051 (struct nb_iter_bound): Change bound to widest_int.
21052 (struct loop): Change nb_iterations_upper_bound and
21053 nb_iterations_estimate to widest_int.
21054 (record_niter_bound): Switch to use widest_int.
21055 (get_estimated_loop_iterations): Likewise.
21056 (get_max_loop_iterations): Likewise.
21057 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
21058 update for wide-int.
21059 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
21060 * combine.c (try_combine): Likewise.
21061 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
21062 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
21063 interfaces.
21064 (aarch64_float_const_representable_p): Likewise.
21065 * config/arc/arc.c: Include wide-int.h.
21066 (arc_can_use_doloop_p): Use wide-int interfaces.
21067 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
21068 (vfp3_const_double_index): Likewise.
21069 * config/avr/avr.c (avr_out_round): Likewise.
21070 (avr_fold_builtin): Likewise.
21071 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
21072 (bfin_can_use_doloop_p): Likewise.
21073 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
21074 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
21075 * config/i386/i386.c: Include wide-int.h.
21076 (ix86_data_alignment): Use wide-int interfaces.
21077 (ix86_local_alignment): Likewise.
21078 (ix86_emit_swsqrtsf): Update real_from_integer.
21079 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
21080 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
21081 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
21082 (zero_constant): Likewise.
21083 (input_operand): Likewise.
21084 (splat_input_operand): Likewise.
21085 (non_logical_cint_operand): Change const_double to const_wide_int.
21086 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
21087 (easy_altivec_constant): Remove comment.
21088 (paired_expand_vector_init): Use CONSTANT_P.
21089 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
21090 (rs6000_emit_move): Update checks.
21091 (rs6000_aggregate_candidate): Use wide-int interfaces.
21092 (rs6000_expand_ternop_builtin): Likewise.
21093 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
21094 (rs6000_assemble_integer): Likewise.
21095 (rs6000_hash_constant): Likewise.
21096 (output_toc): Likewise.
21097 (rs6000_rtx_costs): Likewise.
21098 (rs6000_emit_swrsqrt); Update call to real_from_integer.
21099 * config/rs6000/rs6000-c.c: Include wide-int.h.
21100 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
21101 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
21102 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
21103 Handle CONST_WIDE_INT.
21104 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
21105 Use tree_fits_uhwi_p.
21106 * config/sparc/sparc.c: Include wide-int.h.
21107 (sparc_fold_builtin): Use wide-int interfaces.
21108 * config/vax/vax.c: Include wide-int.h.
21109 (vax_float_literal): Use real_from_integer.
21110 * coretypes.h (struct hwivec_def): New.
21111 (hwivec): New.
21112 (const_hwivec): New.
21113 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
21114 (equiv_constant): Handle CONST_WIDE_INT.
21115 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
21116 (cselib_hash_rtx): Handle CONST_WIDE_INT.
21117 * dbxout.c (stabstr_U): Use wide-int interfaces.
21118 (dbxout_type): Update to use cst_fits_shwi_p.
21119 * defaults.h (LOG2_BITS_PER_UNIT): Define.
21120 (TARGET_SUPPORTS_WIDE_INT): Add default.
21121 * dfp.c: Include wide-int.h.
21122 (decimal_real_to_integer2): Use wide-int interfaces and rename to
21123 decimal_real_to_integer.
21124 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
21125 decimal_real_to_integer.
21126 * doc/generic.texi (Constant expressions): Update for wide_int.
21127 * doc/rtl.texi (const_double): Likewise.
21128 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
21129 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
21130 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
21131 (REAL_VALUE_FROM_INT): Remove.
21132 (TARGET_SUPPORTS_WIDE_INT): New.
21133 * doc/tm.texi: Regenerate.
21134 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
21135 * double-int.h: Include wide-int.h.
21136 (struct wi::int_traits): New.
21137 * dwarf2out.c (get_full_len): New.
21138 (dw_val_equal_p): Add case dw_val_class_wide_int.
21139 (size_of_loc_descr): Likewise.
21140 (output_loc_operands): Likewise.
21141 (insert_double): Remove.
21142 (insert_wide_int): New.
21143 (add_AT_wide): New.
21144 (print_die): Add case dw_val_class_wide_int.
21145 (attr_checksum): Likewise.
21146 (attr_checksum_ordered): Likewise.
21147 (same_dw_val_p): Likewise.
21148 (size_of_die): Likewise.
21149 (value_format): Likewise.
21150 (output_die): Likewise.
21151 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
21152 Use wide-int.
21153 (clz_loc_descriptor): Use wide-int interfaces.
21154 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
21155 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
21156 (round_up_to_align): Use wide-int interfaces.
21157 (field_byte_offset): Likewise.
21158 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
21159 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
21160 CONST_DOUBLE handling. Use wide-int interfaces.
21161 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
21162 (gen_enumeration_type_die): Use add_AT_wide.
21163 (hash_loc_operands): Add case dw_val_class_wide_int.
21164 (compare_loc_operands): Likewise.
21165 * dwarf2out.h: Include wide-int.h.
21166 (wide_int_ptr): New.
21167 (enum dw_val_class): Add dw_val_class_wide_int.
21168 (struct dw_val_struct): Add val_wide.
21169 * emit-rtl.c (const_wide_int_htab): New.
21170 (const_wide_int_htab_hash): New.
21171 (const_wide_int_htab_eq): New.
21172 (lookup_const_wide_int): New.
21173 (const_double_htab_hash): Use wide-int interfaces.
21174 (const_double_htab_eq): Likewise.
21175 (rtx_to_double_int): Conditionally compile for wide-int.
21176 (immed_double_int_const): Rename to immed_wide_int_const and
21177 update for wide-int.
21178 (immed_double_const): Conditionally compile for wide-int.
21179 (init_emit_once): Use wide-int interfaces.
21180 * explow.c (plus_constant): Likewise.
21181 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
21182 (lshift_value): Use wide-int interfaces.
21183 (expand_mult): Likewise.
21184 (choose_multiplier): Likewise.
21185 (expand_smod_pow2): Likewise.
21186 (make_tree): Likewise.
21187 * expr.c (convert_modes): Consolidate handling of constants.
21188 Use wide-int interfaces.
21189 (emit_group_load_1): Add note.
21190 (store_expr): Update comment.
21191 (get_inner_reference): Use wide-int interfaces.
21192 (expand_constructor): Update comment.
21193 (expand_expr_real_2): Use wide-int interfaces.
21194 (expand_expr_real_1): Likewise.
21195 (reduce_to_bit_field_precision): Likewise.
21196 (const_vector_from_tree): Likewise.
21197 * final.c: Include wide-int-print.h.
21198 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
21199 * fixed-value.c: Include wide-int.h.
21200 (fixed_from_string): Use wide-int interfaces.
21201 (fixed_to_decimal): Likewise.
21202 (fixed_convert_from_real): Likewise.
21203 (real_convert_from_fixed): Likewise.
21204 * fold-const.h (mem_ref_offset): Return an offset_int.
21205 (div_if_zero_remainder): Remove code parameter.
21206 * fold-const.c (div_if_zero_remainder): Remove code parameter.
21207 Use wide-int interfaces.
21208 (may_negate_without_overflow_p): Use wide-int interfaces.
21209 (negate_expr_p): Likewise.
21210 (fold_negate_expr): Likewise.
21211 (int_const_binop_1): Likewise.
21212 (const_binop): Likewise.
21213 (fold_convert_const_int_from_int): Likewise.
21214 (fold_convert_const_int_from_real): Likewise.
21215 (fold_convert_const_int_from_fixed): Likewise.
21216 (fold_convert_const_fixed_from_int): Likewise.
21217 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
21218 (sign_bit_p): Use wide-int interfaces.
21219 (make_range_step): Likewise.
21220 (build_range_check): Likewise. Pass an integer of the correct type
21221 instead of using integer_one_node.
21222 (range_predecessor): Pass an integer of the correct type instead
21223 of using integer_one_node.
21224 (range_successor): Likewise.
21225 (merge_ranges): Likewise.
21226 (unextend): Use wide-int interfaces.
21227 (extract_muldiv_1): Likewise.
21228 (fold_div_compare): Likewise.
21229 (fold_single_bit_test): Likewise.
21230 (fold_sign_changed_comparison): Likewise.
21231 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
21232 (fold_plusminus_mult_expr): Use wide-int interfaces.
21233 (native_encode_int): Likewise.
21234 (native_interpret_int): Likewise.
21235 (fold_unary_loc): Likewise.
21236 (pointer_may_wrap_p): Likewise.
21237 (size_low_cst): Likewise.
21238 (mask_with_tz): Likewise.
21239 (fold_binary_loc): Likewise.
21240 (fold_ternary_loc): Likewise.
21241 (multiple_of_p): Likewise.
21242 (tree_call_nonnegative_warnv_p): Update calls to
21243 tree_int_cst_min_precision and real_from_integer.
21244 (fold_negate_const): Use wide-int interfaces.
21245 (fold_abs_const): Likewise.
21246 (fold_relational_const): Use tree_int_cst_lt.
21247 (round_up_loc): Use wide-int interfaces.
21248 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
21249 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
21250 * gengtype.c: Remove include of double-int.h.
21251 (do_typedef): Use wide-int interfaces.
21252 (open_base_files): Add wide-int.h.
21253 (main): Add offset_int and widest_int typedefs.
21254 * gengtype-lex.l: Handle "^".
21255 (CXX_KEYWORD): Add "static".
21256 * gengtype-parse.c (require3): New.
21257 (require_template_declaration): Handle constant template arguments
21258 and nested templates.
21259 * gengtype-state.c: Don't include "double-int.h".
21260 * genpreds.c (write_one_predicate_function): Update comment.
21261 (write_tm_constrs_h): Add check for hval and lval use in
21262 CONST_WIDE_INT.
21263 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
21264 (add_to_sequence): Likewise.
21265 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
21266 and const_double_operand.
21267 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
21268 interfaces.
21269 * gimple-fold.c (get_base_constructor): Likewise.
21270 (fold_array_ctor_reference): Likewise.
21271 (fold_nonarray_ctor_reference): Likewise.
21272 (fold_const_aggregate_ref_1): Likewise.
21273 (gimple_val_nonnegative_real_p): Likewise.
21274 (gimple_fold_indirect_ref): Likewise.
21275 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
21276 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
21277 (struct slsr_cand_d): Change index to be widest_int.
21278 (struct incr_info_d): Change incr to be widest_int.
21279 (alloc_cand_and_find_basis): Use wide-int interfaces.
21280 (slsr_process_phi): Likewise.
21281 (backtrace_base_for_ref): Likewise. Return a widest_int.
21282 (restructure_reference): Take a widest_int instead of a double_int.
21283 (slsr_process_ref): Use wide-int interfaces.
21284 (create_mul_ssa_cand): Likewise.
21285 (create_mul_imm_cand): Likewise.
21286 (create_add_ssa_cand): Likewise.
21287 (create_add_imm_cand): Take a widest_int instead of a double_int.
21288 (slsr_process_add): Use wide-int interfaces.
21289 (slsr_process_cast): Likewise.
21290 (slsr_process_copy): Likewise.
21291 (dump_candidate): Likewise.
21292 (dump_incr_vec): Likewise.
21293 (replace_ref): Likewise.
21294 (cand_increment): Likewise. Return a widest_int.
21295 (cand_abs_increment): Likewise.
21296 (replace_mult_candidate): Take a widest_int instead of a double_int.
21297 (replace_unconditional_candidate): Use wide-int interfaces.
21298 (incr_vec_index): Take a widest_int instead of a double_int.
21299 (create_add_on_incoming_edge): Likewise.
21300 (create_phi_basis): Use wide-int interfaces.
21301 (replace_conditional_candidate): Likewise.
21302 (record_increment): Take a widest_int instead of a double_int.
21303 (record_phi_increments): Use wide-int interfaces.
21304 (phi_incr_cost): Take a widest_int instead of a double_int.
21305 (lowest_cost_path): Likewise.
21306 (total_savings): Likewise.
21307 (analyze_increments): Use wide-int interfaces.
21308 (ncd_with_phi): Take a widest_int instead of a double_int.
21309 (ncd_of_cand_and_phis): Likewise.
21310 (nearest_common_dominator_for_cands): Likewise.
21311 (insert_initializers): Use wide-int interfaces.
21312 (all_phi_incrs_profitable): Likewise.
21313 (replace_one_candidate): Likewise.
21314 (replace_profitable_candidates): Likewise.
21315 * godump.c: Include wide-int-print.h.
21316 (go_output_typedef): Use wide-int interfaces.
21317 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
21318 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
21319 (build_loop_iteration_domains): Likewise.
21320 * hooks.h: Include wide-int.h rather than double-int.h.
21321 (hook_bool_dint_dint_uint_bool_true): Delete.
21322 (hook_bool_wint_wint_uint_bool_true): Declare.
21323 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
21324 (hook_bool_wint_wint_uint_bool_true): New.
21325 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
21326 interfaces.
21327 (ubsan_expand_si_overflow_mul_check): Likewise.
21328 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
21329 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
21330 (get_ancestor_addr_info): Likewise.
21331 (ipa_modify_call_arguments): Likewise.
21332 * loop-doloop.c (doloop_modify): Likewise.
21333 (doloop_optimize): Likewise.
21334 * loop-iv.c (iv_number_of_iterations): Likewise.
21335 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
21336 (unroll_loop_constant_iterations): Likewise.
21337 (decide_unroll_runtime_iterations): Likewise.
21338 (unroll_loop_runtime_iterations): Likewise.
21339 (decide_peel_simple): Likewise.
21340 (decide_unroll_stupid): Likewise.
21341 * lto-streamer-in.c (streamer_read_wi): Add.
21342 (input_cfg): Use wide-int interfaces.
21343 (lto_input_tree_1): Likewise.
21344 * lto-streamer-out.c (streamer_write_wi): Add.
21345 (hash_tree): Use wide-int interfaces.
21346 (output_cfg): Likewise.
21347 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
21348 (GTFILES): Add wide-int.h and signop.h.
21349 (TAGS): Look for .cc files too.
21350 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
21351 * optabs.c (expand_subword_shift): Likewise.
21352 (expand_doubleword_shift): Likewise.
21353 (expand_absneg_bit): Likewise.
21354 (expand_copysign_absneg): Likewise.
21355 (expand_copysign_bit): Likewise.
21356 * postreload.c (reload_cse_simplify_set): Likewise.
21357 * predict.c (predict_iv_comparison): Likewise.
21358 * pretty-print.h: Include wide-int-print.h.
21359 (pp_wide_int) New.
21360 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
21361 * print-tree.c: Include wide-int-print.h.
21362 (print_node_brief): Use wide-int interfaces.
21363 (print_node): Likewise.
21364 * read-rtl.c (validate_const_wide_int): New.
21365 (read_rtx_code): Add CONST_WIDE_INT case.
21366 * real.c: Include wide-int.h.
21367 (real_to_integer2): Delete.
21368 (real_to_integer): New function, returning a wide_int.
21369 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
21370 (ten_to_ptwo): Update call to real_from_integer.
21371 (real_digit): Likewise.
21372 * real.h: Include signop.h, wide-int.h and insn-modes.h.
21373 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
21374 (REAL_VALUE_TO_INT): Delete.
21375 (real_to_integer): Declare a wide-int form.
21376 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
21377 * recog.c (const_int_operand): Improve comment.
21378 (const_scalar_int_operand): New.
21379 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
21380 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
21381 (split_double): Likewise.
21382 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
21383 (rtx_size): Likewise.
21384 (rtx_alloc_stat_v): New.
21385 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
21386 (cwi_output_hex): New.
21387 (iterative_hash_rtx): Handle CONST_WIDE_INT.
21388 (cwi_check_failed_bounds): New.
21389 * rtl.def (CONST_WIDE_INT): New.
21390 * rtl.h: Include <utility> and wide-int.h.
21391 (struct hwivec_def): New.
21392 (CWI_GET_NUM_ELEM): New.
21393 (CWI_PUT_NUM_ELEM): New.
21394 (struct rtx_def): Add num_elem and hwiv.
21395 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
21396 (CASE_CONST_UNIQUE): Likewise.
21397 (CASE_CONST_ANY): Likewise.
21398 (CONST_SCALAR_INT_P): Likewise.
21399 (CONST_WIDE_INT_P): New.
21400 (CWI_ELT): New.
21401 (HWIVEC_CHECK): New.
21402 (cwi_check_failed_bounds): New.
21403 (CWI_ELT): New.
21404 (HWIVEC_CHECK): New.
21405 (CONST_WIDE_INT_VEC) New.
21406 (CONST_WIDE_INT_NUNITS) New.
21407 (CONST_WIDE_INT_ELT) New.
21408 (rtx_mode_t): New type.
21409 (wi::int_traits <rtx_mode_t>): New.
21410 (wi::shwi): New.
21411 (wi::min_value): New.
21412 (wi::max_value): New.
21413 (rtx_alloc_v) New.
21414 (const_wide_int_alloc): New.
21415 (immed_wide_int_const): New.
21416 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
21417 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
21418 * signop.h: New file.
21419 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
21420 (simplify_const_unary_operation): Use wide-int interfaces.
21421 (simplify_binary_operation_1): Likewise.
21422 (simplify_const_binary_operation): Likewise.
21423 (simplify_const_relational_operation): Likewise.
21424 (simplify_immed_subreg): Likewise.
21425 * stmt.c (expand_case): Likewise.
21426 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
21427 signop rather than a bool.
21428 * stor-layout.c (layout_type): Use wide-int interfaces.
21429 (initialize_sizetypes): Update calls to
21430 set_min_and_max_values_for_integral_type.
21431 (set_min_and_max_values_for_integral_type): Take a signop rather
21432 than a bool. Use wide-int interfaces.
21433 (fixup_signed_type): Update accordingly. Remove
21434 HOST_BITS_PER_DOUBLE_INT limit.
21435 (fixup_unsigned_type): Likewise.
21436 * system.h (STATIC_CONSTANT_P): New.
21437 (STATIC_ASSERT): New.
21438 * target.def (can_use_doloop_p): Take widest_ints rather than
21439 double_ints.
21440 * target.h: Include wide-int.h rather than double-int.h.
21441 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
21442 than double_ints.
21443 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
21444 rather than INT_CST_LT_UNSIGNED.
21445 (can_use_doloop_if_innermost): Take widest_ints rather than
21446 double_ints.
21447 * tree-affine.c: Include wide-int-print.h.
21448 (double_int_ext_for_comb): Delete.
21449 (wide_int_ext_for_comb): New.
21450 (aff_combination_zero): Use wide-int interfaces.
21451 (aff_combination_const): Take a widest_int instead of a double_int.
21452 (aff_combination_elt): Use wide-int interfaces.
21453 (aff_combination_scale): Take a widest_int instead of a double_int.
21454 (aff_combination_add_elt): Likewise.
21455 (aff_combination_add_cst): Likewise.
21456 (aff_combination_add): Use wide-int interfaces.
21457 (aff_combination_convert): Likewise.
21458 (tree_to_aff_combination): Likewise.
21459 (add_elt_to_tree): Take a widest_int instead of a double_int.
21460 (aff_combination_to_tree): Use wide-int interfaces.
21461 (aff_combination_remove_elt): Likewise.
21462 (aff_combination_add_product): Take a widest_int instead of
21463 a double_int.
21464 (aff_combination_mult): Use wide-int interfaces.
21465 (aff_combination_expand): Likewise.
21466 (double_int_constant_multiple_p): Delete.
21467 (wide_int_constant_multiple_p): New.
21468 (aff_combination_constant_multiple_p): Take a widest_int pointer
21469 instead of a double_int pointer.
21470 (print_aff): Use wide-int interfaces.
21471 (get_inner_reference_aff): Take a widest_int pointer
21472 instead of a double_int pointer.
21473 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
21474 * tree-affine.h: Include wide-int.h.
21475 (struct aff_comb_elt): Change type of coef to widest_int.
21476 (struct affine_tree_combination): Change type of offset to widest_int.
21477 (double_int_ext_for_comb): Delete.
21478 (wide_int_ext_for_comb): New.
21479 (aff_combination_const): Use widest_int instead of double_int.
21480 (aff_combination_scale): Likewise.
21481 (aff_combination_add_elt): Likewise.
21482 (aff_combination_constant_multiple_p): Likewise.
21483 (get_inner_reference_aff): Likewise.
21484 (aff_comb_cannot_overlap_p): Likewise.
21485 (aff_combination_zero_p): Use wide-int interfaces.
21486 * tree.c: Include tree.h.
21487 (init_ttree): Use make_int_cst.
21488 (tree_code_size): Removed code for INTEGER_CST case.
21489 (tree_size): Add INTEGER_CST case.
21490 (make_node_stat): Update comment.
21491 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
21492 (build_int_cst_type): Use wide-int interfaces.
21493 (double_int_to_tree): Likewise.
21494 (double_int_fits_to_tree_p): Delete.
21495 (force_fit_type_double): Delete.
21496 (force_fit_type): New.
21497 (int_cst_hash_hash): Use wide-int interfaces.
21498 (int_cst_hash_eq): Likewise.
21499 (build_int_cst_wide): Delete.
21500 (wide_int_to_tree): New.
21501 (cache_integer_cst): Use wide-int interfaces.
21502 (build_low_bits_mask): Likewise.
21503 (cst_and_fits_in_hwi): Likewise.
21504 (real_value_from_int_cst): Likewise.
21505 (make_int_cst_stat): New.
21506 (integer_zerop): Use wide_int interfaces.
21507 (integer_onep): Likewise.
21508 (integer_all_onesp): Likewise.
21509 (integer_pow2p): Likewise.
21510 (integer_nonzerop): Likewise.
21511 (tree_log2): Likewise.
21512 (tree_floor_log2): Likewise.
21513 (tree_ctz): Likewise.
21514 (int_size_in_bytes): Likewise.
21515 (mem_ref_offset): Return an offset_int rather than a double_int.
21516 (build_type_attribute_qual_variant): Use wide_int interfaces.
21517 (type_hash_eq): Likewise
21518 (tree_int_cst_equal): Likewise.
21519 (tree_int_cst_lt): Delete.
21520 (tree_int_cst_compare): Likewise.
21521 (tree_fits_shwi_p): Use wide_int interfaces.
21522 (tree_fits_uhwi_p): Likewise.
21523 (tree_int_cst_sign_bit): Likewise.
21524 (tree_int_cst_sgn): Likewise.
21525 (tree_int_cst_min_precision): Take a signop rather than a bool.
21526 (simple_cst_equal): Use wide_int interfaces.
21527 (compare_tree_int): Likewise.
21528 (iterative_hash_expr): Likewise.
21529 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
21530 INT_CST_LT.
21531 (get_type_static_bounds): Use wide_int interfaces.
21532 (tree_int_cst_elt_check_failed): New.
21533 (build_common_tree_nodes): Reordered to set prec before filling in
21534 value.
21535 (int_cst_value): Check cst_and_fits_in_hwi.
21536 (widest_int_cst_value): Use wide_int interfaces.
21537 (upper_bound_in_type): Likewise.
21538 (lower_bound_in_type): Likewise.
21539 (num_ending_zeros): Likewise.
21540 (drop_tree_overflow): Likewise.
21541 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
21542 (gen_conditions_for_pow_cst_base): Likewise.
21543 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
21544 (group_case_labels_stmt): Use wide-int interfaces.
21545 (verify_gimple_assign_binary): Likewise.
21546 (print_loop): Likewise.
21547 * tree-chrec.c (tree_fold_binomial): Likewise.
21548 * tree-core.h (struct tree_base): Add int_length.
21549 (struct tree_int_cst): Change rep of value.
21550 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
21551 (dr_may_alias_p): Likewise.
21552 (max_stmt_executions_tree): Likewise.
21553 * tree.def (INTEGER_CST): Update comment.
21554 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
21555 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
21556 * tree-dump.c: Include wide-int.h and wide-int-print.h.
21557 (dequeue_and_dump): Use wide-int interfaces.
21558 * tree.h: Include wide-int.h.
21559 (NULL_TREE): Moved to earlier loc in file.
21560 (TREE_INT_CST_ELT_CHECK): New.
21561 (tree_int_cst_elt_check_failed): New.
21562 (TYPE_SIGN): New.
21563 (TREE_INT_CST): Delete.
21564 (TREE_INT_CST_LOW): Use wide-int interfaces.
21565 (TREE_INT_CST_HIGH): Delete.
21566 (TREE_INT_CST_NUNITS): New.
21567 (TREE_INT_CST_EXT_NUNITS): Likewise.
21568 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
21569 (TREE_INT_CST_ELT): Likewise.
21570 (INT_CST_LT): Delete.
21571 (tree_int_cst_elt_check): New (two forms).
21572 (type_code_size): Update comment.
21573 (make_int_cst_stat, make_int_cst): New.
21574 (tree_to_double_int): Delete.
21575 (double_int_fits_to_tree_p): Delete.
21576 (force_fit_type_double): Delete.
21577 (build_int_cstu): Replace with out-of-line function.
21578 (build_int_cst_wide): Delete.
21579 (tree_int_cst_lt): Define inline.
21580 (tree_int_cst_le): New.
21581 (tree_int_cst_compare): Define inline.
21582 (tree_int_cst_min_precision): Take a signop rather than a bool.
21583 (wi::int_traits <const_tree>): New.
21584 (wi::int_traits <tree>): New.
21585 (wi::extended_tree): New.
21586 (wi::int_traits <wi::extended_tree>): New.
21587 (wi::to_widest): New.
21588 (wi::to_offset): New.
21589 (wi::fits_to_tree_p): New.
21590 (wi::min_value): New.
21591 (wi::max_value): New.
21592 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
21593 (copy_tree_body_r): Likewise.
21594 * tree-object-size.c (compute_object_offset): Likewise.
21595 (addr_object_size): Likewise.
21596 * tree-predcom.c: Include wide-int-print.h.
21597 (struct dref_d): Change type of offset to widest_int.
21598 (dump_dref): Call wide-int printer.
21599 (aff_combination_dr_offset): Use wide-int interfaces.
21600 (determine_offset): Take a widest_int pointer rather than a
21601 double_int pointer.
21602 (split_data_refs_to_components): Use wide-int interfaces.
21603 (suitable_component_p): Likewise.
21604 (order_drefs): Likewise.
21605 (add_ref_to_chain): Likewise.
21606 (valid_initializer_p): Likewise.
21607 (determine_roots_comp): Likewise.
21608 * tree-pretty-print.c: Include wide-int-print.h.
21609 (dump_generic_node): Use wide-int interfaces.
21610 * tree-sra.c (sra_ipa_modify_expr): Likewise.
21611 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
21612 (move_fixed_address_to_symbol): Likewise.
21613 (move_hint_to_base): Likewise.
21614 (move_pointer_to_base): Likewise.
21615 (move_variant_to_index): Likewise.
21616 (most_expensive_mult_to_index): Likewise.
21617 (addr_to_parts): Likewise.
21618 (copy_ref_info): Likewise.
21619 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
21620 (indirect_refs_may_alias_p): Likewise.
21621 (stmt_kills_ref_p_1): Likewise.
21622 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
21623 * tree-ssa-ccp.c: Update comment at top of file. Include
21624 wide-int-print.h.
21625 (struct prop_value_d): Change type of mask to widest_int.
21626 (extend_mask): New function.
21627 (dump_lattice_value): Use wide-int interfaces.
21628 (get_default_value): Likewise.
21629 (set_constant_value): Likewise.
21630 (set_value_varying): Likewise.
21631 (valid_lattice_transition): Likewise.
21632 (set_lattice_value): Likewise.
21633 (value_to_double_int): Delete.
21634 (value_to_wide_int): New.
21635 (get_value_from_alignment): Use wide-int interfaces.
21636 (get_value_for_expr): Likewise.
21637 (do_dbg_cnt): Likewise.
21638 (ccp_finalize): Likewise.
21639 (ccp_lattice_meet): Likewise.
21640 (bit_value_unop_1): Use widest_ints rather than double_ints.
21641 (bit_value_binop_1): Likewise.
21642 (bit_value_unop): Use wide-int interfaces.
21643 (bit_value_binop): Likewise.
21644 (bit_value_assume_aligned): Likewise.
21645 (evaluate_stmt): Likewise.
21646 (ccp_fold_stmt): Likewise.
21647 (visit_cond_stmt): Likewise.
21648 (ccp_visit_stmt): Likewise.
21649 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
21650 (constant_pointer_difference): Likewise.
21651 (associate_pointerplus): Likewise.
21652 (combine_conversions): Likewise.
21653 * tree-ssa-loop.h: Include wide-int.h.
21654 (struct tree_niter_desc): Change type of max to widest_int.
21655 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
21656 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
21657 (remove_redundant_iv_tests): Likewise.
21658 (canonicalize_loop_induction_variables): Likewise.
21659 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
21660 (constant_multiple_of): Take a widest_int pointer instead of
21661 a double_int pointer.
21662 (get_computation_aff): Use wide-int interfaces.
21663 (ptr_difference_cost): Likewise.
21664 (difference_cost): Likewise.
21665 (get_loop_invariant_expr_id): Likewise.
21666 (get_computation_cost_at): Likewise.
21667 (iv_elimination_compare_lt): Likewise.
21668 (may_eliminate_iv): Likewise.
21669 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
21670 instead of double_int.
21671 (max_loop_iterations): Likewise.
21672 (max_stmt_executions): Likewise.
21673 (estimated_stmt_executions): Likewise.
21674 * tree-ssa-loop-niter.c: Include wide-int-print.h.
21675 (split_to_var_and_offset): Use wide-int interfaces.
21676 (determine_value_range): Likewise.
21677 (bound_difference_of_offsetted_base): Likewise.
21678 (bounds_add): Take a widest_int instead of a double_int.
21679 (number_of_iterations_ne_max): Use wide-int interfaces.
21680 (number_of_iterations_ne): Likewise.
21681 (number_of_iterations_lt_to_ne): Likewise.
21682 (assert_loop_rolls_lt): Likewise.
21683 (number_of_iterations_lt): Likewise.
21684 (number_of_iterations_le): Likewise.
21685 (number_of_iterations_cond): Likewise.
21686 (number_of_iterations_exit): Likewise.
21687 (finite_loop_p): Likewise.
21688 (derive_constant_upper_bound_assign): Likewise.
21689 (derive_constant_upper_bound): Return a widest_int.
21690 (derive_constant_upper_bound_ops): Likewise.
21691 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
21692 (record_estimate): Take a widest_int rather than a double_int.
21693 (record_nonwrapping_iv): Use wide-int interfaces.
21694 (double_int_cmp): Delete.
21695 (wide_int_cmp): New.
21696 (bound_index): Take a widest_int rather than a double_int.
21697 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
21698 (maybe_lower_iteration_bound): Likewise.
21699 (estimate_numbers_of_iterations_loop): Likewise.
21700 (estimated_loop_iterations): Take a widest_int pointer than than
21701 a double_int pointer.
21702 (estimated_loop_iterations_int): Use wide-int interfaces.
21703 (max_loop_iterations): Take a widest_int pointer than than
21704 a double_int pointer.
21705 (max_loop_iterations_int): Use wide-int interfaces.
21706 (max_stmt_executions): Take a widest_int pointer than than
21707 a double_int pointer.
21708 (estimated_stmt_executions): Likewise.
21709 (n_of_executions_at_most): Use wide-int interfaces.
21710 (scev_probably_wraps_p): Likewise.
21711 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
21712 to real_to_integer.
21713 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
21714 interfaces.
21715 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
21716 double_ints. Adjust for trailing_wide_ints <3> representation.
21717 (set_nonzero_bits): Likewise.
21718 (get_range_info): Return wide_ints rather than double_ints.
21719 Adjust for trailing_wide_ints <3> representation.
21720 (get_nonzero_bits): Likewise.
21721 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
21722 representation.
21723 * tree-ssanames.h (struct range_info_def): Replace min, max and
21724 nonzero_bits with a trailing_wide_ints <3>.
21725 (set_range_info): Use wide_int_refs rather than double_ints.
21726 (set_nonzero_bits): Likewise.
21727 (get_range_info): Return wide_ints rather than double_ints.
21728 (get_nonzero_bits): Likewise.
21729 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
21730 * tree-ssa-pre.c (phi_translate_1): Likewise.
21731 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
21732 (acceptable_pow_call): Likewise.
21733 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
21734 interfaces.
21735 (vn_reference_fold_indirect): Likewise.
21736 (vn_reference_maybe_forwprop_address): Likewise.
21737 (valueize_refs_1): Likewise.
21738 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
21739 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
21740 tree_int_cst_lt and tree_int_cst_le.
21741 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
21742 interfaces.
21743 (streamer_alloc_tree): Likewise.
21744 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
21745 (streamer_write_tree_header): Likewise.
21746 (streamer_write_integer_cst): Likewise.
21747 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
21748 (build_constructors): Likewise.
21749 (array_value_type): Likewise.
21750 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
21751 (vect_check_gather): Likewise.
21752 * tree-vect-generic.c (build_replicated_const): Likewise.
21753 (expand_vector_divmod): Likewise.
21754 * tree-vect-loop.c (vect_transform_loop): Likewise.
21755 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
21756 (vect_do_peeling_for_alignment): Likewise.
21757 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
21758 * tree-vrp.c: Include wide-int.h.
21759 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
21760 (extract_range_from_assert): Use wide-int interfaces.
21761 (vrp_int_const_binop): Likewise.
21762 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
21763 double_int pointers.
21764 (ranges_from_anti_range): Use wide-int interfaces.
21765 (quad_int_cmp): Delete.
21766 (quad_int_pair_sort): Likewise.
21767 (extract_range_from_binary_expr_1): Use wide-int interfaces.
21768 (extract_range_from_unary_expr_1): Likewise.
21769 (adjust_range_with_scev): Likewise.
21770 (masked_increment): Take and return wide_ints rather than double_ints.
21771 (register_edge_assert_for_2): Use wide-int interfaces.
21772 (check_array_ref): Likewise.
21773 (search_for_addr_array): Likewise.
21774 (maybe_set_nonzero_bits): Likewise.
21775 (union_ranges): Pass an integer of the correct type instead of
21776 using integer_one_node.
21777 (intersect_ranges): Likewise.
21778 (simplify_truth_ops_using_ranges): Likewise.
21779 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
21780 (range_fits_type_p): Likewise.
21781 (simplify_cond_using_ranges): Likewise. Take a signop rather than
21782 a bool.
21783 (simplify_conversion_using_ranges): Use wide-int interfaces.
21784 (simplify_float_conversion_using_ranges): Likewise.
21785 (vrp_finalize): Likewise.
21786 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
21787 (gimple_stringops_transform): Likewise.
21788 * varasm.c (decode_addr_const): Likewise.
21789 (const_hash_1): Likewise.
21790 (const_rtx_hash_1): Likewise
21791 (output_constant): Likewise.
21792 (array_size_for_constructor): Likewise.
21793 (output_constructor_regular_field): Likewise.
21794 (output_constructor_bitfield): Likewise.
21795 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
21796 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
21797 GENERATOR_FILEs.
21798 * gencheck.c: Define BITS_PER_UNIT.
21799 * wide-int.cc: New.
21800 * wide-int.h: New.
21801 * wide-int-print.cc: New.
21802 * wide-int-print.h: New.
21803
21804 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21805
21806 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
21807
21808 2014-05-06 Richard Biener <rguenther@suse.de>
21809
21810 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
21811 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
21812 (TODO_verify_all): Adjust.
21813 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
21814 TODO_verify_stmts and TODO_verify_rtl_sharing.
21815 * bb-reorder.c: Likewise.
21816 * cfgexpand.c: Likewise.
21817 * cprop.c: Likewise.
21818 * cse.c: Likewise.
21819 * function.c: Likewise.
21820 * fwprop.c: Likewise.
21821 * gcse.c: Likewise.
21822 * gimple-ssa-isolate-paths.c: Likewise.
21823 * gimple-ssa-strength-reduction.c: Likewise.
21824 * ipa-split.c: Likewise.
21825 * loop-init.c: Likewise.
21826 * loop-unroll.c: Likewise.
21827 * lower-subreg.c: Likewise.
21828 * modulo-sched.c: Likewise.
21829 * postreload-gcse.c: Likewise.
21830 * predict.c: Likewise.
21831 * recog.c: Likewise.
21832 * sched-rgn.c: Likewise.
21833 * store-motion.c: Likewise.
21834 * tracer.c: Likewise.
21835 * trans-mem.c: Likewise.
21836 * tree-call-cdce.c: Likewise.
21837 * tree-cfg.c: Likewise.
21838 * tree-cfgcleanup.c: Likewise.
21839 * tree-complex.c: Likewise.
21840 * tree-eh.c: Likewise.
21841 * tree-emutls.c: Likewise.
21842 * tree-if-conv.c: Likewise.
21843 * tree-into-ssa.c: Likewise.
21844 * tree-loop-distribution.c: Likewise.
21845 * tree-object-size.c: Likewise.
21846 * tree-parloops.c: Likewise.
21847 * tree-pass.h: Likewise.
21848 * tree-sra.c: Likewise.
21849 * tree-ssa-ccp.c: Likewise.
21850 * tree-ssa-copy.c: Likewise.
21851 * tree-ssa-copyrename.c: Likewise.
21852 * tree-ssa-dce.c: Likewise.
21853 * tree-ssa-dom.c: Likewise.
21854 * tree-ssa-dse.c: Likewise.
21855 * tree-ssa-forwprop.c: Likewise.
21856 * tree-ssa-ifcombine.c: Likewise.
21857 * tree-ssa-loop-ch.c: Likewise.
21858 * tree-ssa-loop-ivcanon.c: Likewise.
21859 * tree-ssa-loop.c: Likewise.
21860 * tree-ssa-math-opts.c: Likewise.
21861 * tree-ssa-phiopt.c: Likewise.
21862 * tree-ssa-phiprop.c: Likewise.
21863 * tree-ssa-pre.c: Likewise.
21864 * tree-ssa-reassoc.c: Likewise.
21865 * tree-ssa-sink.c: Likewise.
21866 * tree-ssa-strlen.c: Likewise.
21867 * tree-ssa-tail-merge.c: Likewise.
21868 * tree-ssa-uncprop.c: Likewise.
21869 * tree-switch-conversion.c: Likewise.
21870 * tree-tailcall.c: Likewise.
21871 * tree-vect-generic.c: Likewise.
21872 * tree-vectorizer.c: Likewise.
21873 * tree-vrp.c: Likewise.
21874 * tsan.c: Likewise.
21875 * var-tracking.c: Likewise.
21876 * bt-load.c: Likewise.
21877 * cfgcleanup.c: Likewise.
21878 * combine-stack-adj.c: Likewise.
21879 * combine.c: Likewise.
21880 * compare-elim.c: Likewise.
21881 * config/epiphany/resolve-sw-modes.c: Likewise.
21882 * config/i386/i386.c: Likewise.
21883 * config/mips/mips.c: Likewise.
21884 * config/s390/s390.c: Likewise.
21885 * config/sh/sh_treg_combine.cc: Likewise.
21886 * config/sparc/sparc.c: Likewise.
21887 * dce.c: Likewise.
21888 * dse.c: Likewise.
21889 * final.c: Likewise.
21890 * ifcvt.c: Likewise.
21891 * mode-switching.c: Likewise.
21892 * passes.c: Likewise.
21893 * postreload.c: Likewise.
21894 * ree.c: Likewise.
21895 * reg-stack.c: Likewise.
21896 * regcprop.c: Likewise.
21897 * regrename.c: Likewise.
21898 * web.c: Likewise.
21899
21900 2014-05-06 Richard Biener <rguenther@suse.de>
21901
21902 PR middle-end/61070
21903 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
21904 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
21905
21906 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
21907
21908 PR ipa/60965
21909 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
21910
21911 2014-05-05 Radovan Obradovic <robradovic@mips.com>
21912 Tom de Vries <tom@codesourcery.com>
21913
21914 * target.def (call_fusage_contains_non_callee_clobbers): New
21915 DEFHOOKPOD.
21916 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
21917 Hooks to @menu.
21918 (@node Miscellaneous Register Hooks): New node.
21919 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
21920 * doc/tm.texi: Regenerate.
21921
21922 2014-05-05 Marek Polacek <polacek@redhat.com>
21923
21924 PR driver/61065
21925 * opts.c (common_handle_option): Call error_at instead of warning_at.
21926
21927 2014-05-05 Richard Biener <rguenther@suse.de>
21928
21929 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
21930 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
21931 under the TODO_verify_il umbrella.
21932
21933 2014-05-05 Richard Biener <rguenther@suse.de>
21934
21935 * passes.c (execute_function_todo): Move TODO_verify_flow under
21936 the TODO_verify_ul umbrella.
21937
21938 2014-05-05 Richard Biener <rguenther@suse.de>
21939
21940 PR middle-end/61010
21941 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
21942 X & CST away from a CST that is the mask of a mode.
21943
21944 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21945
21946 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
21947 int argument to enum machine_mode.
21948 (picochip_class_max_nregs): Ditto.
21949 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
21950 (picochip_class_max_nregs): Ditto.
21951
21952 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21953
21954 * target.def: Add new target hook.
21955 * doc/tm.texi: Regenerate.
21956 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
21957 * targhooks.c (default_keep_leaf_when_profiled): New function.
21958
21959 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
21960 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
21961
21962 2014-05-05 Bin Cheng <bin.cheng@arm.com>
21963
21964 PR tree-optimization/60363
21965 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
21966 (copy_phi_args): New parameters. Call get_value_locus_in_path.
21967 (update_destination_phis): New parameter.
21968 (create_edge_and_update_destination_phis): Ditto.
21969 (ssa_fix_duplicate_block_edges): Pass new arguments.
21970 (thread_single_edge): Ditto.
21971
21972 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
21973
21974 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
21975 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
21976 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
21977 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
21978 Use RS6000_BTM_HARD_FLOAT.
21979 (BU_MISC_2): Likewise.
21980 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
21981 RS6000_BTM_HARD_FLOAT.
21982 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
21983 is explicitly used.
21984 (rs6000_invalid_builtin): Add hard floating builtin support.
21985 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
21986 hard float builtins.
21987 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
21988
21989 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21990
21991 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
21992 Add missing function* argument.
21993
21994 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
21995
21996 * lra-constraints.c (valid_address_p): Move earlier in file.
21997 Add a constraint argument to the address_info version.
21998 (satisfies_memory_constraint_p): New function.
21999 (satisfies_address_constraint_p): Likewise.
22000 (process_alt_operands, curr_insn_transform): Use them.
22001 (process_address): Pass the constraint to valid_address_p when
22002 checking address operands.
22003
22004 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
22005
22006 * config/mips/mips.c (mips_isa_rev): New variable.
22007 (mips_set_architecture): Set it.
22008 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
22009 from mips_isa_rev.
22010 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
22011 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
22012 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
22013 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
22014 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
22015 conditions in terms of mips_isa_rev.
22016 (mips_isa_rev): Declare.
22017
22018 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22019
22020 * config/sh/sh-mem.cc: Use tabs instead of spaces.
22021 (prob_unlikely, prob_likely): Make variables const.
22022
22023 2014-05-03 Denis Chertykov <chertykov@gmail.com>
22024
22025 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
22026
22027 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22028
22029 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
22030
22031 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22032
22033 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
22034 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
22035 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
22036 functions.
22037 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
22038 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
22039 sh_pass_in_reg_p.
22040 Replace usage of ROUND_REG with sh_round_reg.
22041 Use CEIL instead of ROUND_ADVANCE.
22042
22043 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22044
22045 PR target/61026
22046 * config/sh/sh.c: Include stdlib headers before everything else.
22047
22048 2014-05-02 Jakub Jelinek <jakub@redhat.com>
22049
22050 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
22051 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
22052 (gimplify_adjust_omp_clauses): Simd region is never
22053 directly nested in combined parallel. Instead, for linear
22054 with copyin/copyout, if in combined for simd loop, make decl
22055 firstprivate/lastprivate on OMP_FOR.
22056 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
22057 expand_omp_for_static_chunk): When setting endvar, also set
22058 fd->loop.v to the same value.
22059
22060 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
22061
22062 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
22063
22064 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
22065
22066 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
22067 expression.
22068
22069 2014-05-02 Marek Polacek <polacek@redhat.com>
22070
22071 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
22072
22073 2014-05-02 Kito Cheng <kito@0xlab.org>
22074
22075 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
22076 to a C expression marco.
22077 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
22078 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
22079 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
22080 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
22081 HONOR_REG_ALLOC_ORDER.
22082 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
22083
22084 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22085
22086 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
22087
22088 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22089
22090 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
22091
22092 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
22093
22094 * tree-if-conv.c (is_cond_scalar_reduction): New function.
22095 (convert_scalar_cond_reduction): Likewise.
22096 (predicate_scalar_phi): Add recognition and transformation
22097 of simple conditioanl reduction to be vectorizable.
22098
22099 2014-05-01 Marek Polacek <polacek@redhat.com>
22100
22101 PR c/43245
22102 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
22103
22104 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
22105
22106 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
22107 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
22108 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
22109 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
22110 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
22111 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
22112 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
22113 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
22114
22115 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
22116
22117 * config/arc/arc.opt (mlra): Move comment above option name
22118 to avoid mis-parsing as language options.
22119
22120 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22121
22122 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
22123 * config/sol2.h: ... here.
22124 * config/sol2-10.h: Remove.
22125
22126 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
22127 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
22128 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
22129 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
22130 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
22131 * config/sol2.h: ... here.
22132 (SECTION_NAME_FORMAT): Don't redefine.
22133 (STARTFILE_ARCH32_SPEC): Rename to ...
22134 (STARTFILE_ARCH_SPEC): ... this.
22135 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
22136 * config/sparc/sol2.h: ... here.
22137 (SECTION_NAME_FORMAT): Don't undef.
22138 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
22139 (SUBTARGET_EXTRA_SPECS): Remove.
22140 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
22141
22142 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
22143 (MD_STARTFILE_PREFIX): Remove.
22144 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
22145 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
22146 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
22147 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
22148 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
22149 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
22150 * config/i386/sol2.h: ... here.
22151 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
22152 * config/i386/sol2-bi.h: Remove.
22153 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
22154 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
22155
22156 * config/i386/t-sol2-64: Rename to ...
22157 * config/i386/t-sol2: ... this.
22158 * config/sparc/t-sol2-64: Rename to ...
22159 * config/sparc/t-sol2: ... this.
22160
22161 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
22162 sol2_tm_file_head, sol2_tm_file_tail.
22163 Include ${cpu_type}/sol2.h before sol2.h.
22164 Remove sol2-10.h.
22165 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
22166 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
22167 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
22168 Reflect i386/t-sol2-64 renaming.
22169 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
22170 Reflect sparc/t-sol2-64 renaming.
22171
22172 2014-04-30 Richard Biener <rguenther@suse.de>
22173
22174 * passes.c (execute_function_todo): Move TODO_verify_stmts
22175 and TODO_verify_ssa under the TODO_verify_il umbrella.
22176 * tree-ssa.h (verify_ssa): Adjust prototype.
22177 * tree-ssa.c (verify_ssa): Add parameter to tell whether
22178 we should verify SSA operands.
22179 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
22180 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
22181 whether we should verify whether not throwing stmts have EH info.
22182 * graphite-scop-detection.c (create_sese_edges): Adjust.
22183 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
22184 * tree-eh.c (lower_try_finally_switch): Do not add the
22185 default case label twice.
22186
22187 2014-04-30 Marek Polacek <polacek@redhat.com>
22188
22189 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
22190 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
22191 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
22192 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
22193
22194 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
22195
22196 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
22197 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
22198 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
22199 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
22200 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
22201 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
22202 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
22203 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
22204
22205 2014-04-29 David Malcolm <dmalcolm@redhat.com>
22206
22207 * tree-cfg.c (dump_function_to_file): Dump the return type of
22208 functions, in a line to itself before the function body, mimicking
22209 the layout of a C function.
22210
22211 2014-04-29 Jakub Jelinek <jakub@redhat.com>
22212
22213 PR tree-optimization/60971
22214 * tree-tailcall.c (process_assignment): Reject conversions which
22215 reduce precision.
22216
22217 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
22218
22219 * calls.c (initialize_argument_information): Always treat
22220 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
22221 (expand_call): Likewise.
22222 (emit_library_call_calue_1): Likewise.
22223 * expr.c (PUSH_ARGS_REVERSED): Do not define.
22224 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
22225 code accordingly.
22226
22227 2014-04-29 Nick Clifton <nickc@redhat.com>
22228
22229 * config/msp430/msp430.md (umulsidi): Fix typo.
22230 (mulhisi3): Enable even inside interrupt handlers.
22231 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
22232 bigger return address pushed in large mode.
22233
22234 2014-04-29 Nick Clifton <nickc@redhat.com>
22235
22236 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
22237 (arc_init_reg_tables): Use a machine_mode enum to iterate over
22238 available modes.
22239 * config/m32r/m32r.c (init_reg_tables): Likewise.
22240 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
22241 enum to hold the modes.
22242
22243 2014-04-29 Richard Biener <rguenther@suse.de>
22244
22245 * dominance.c (free_dominance_info): Add overload with
22246 function parameter.
22247 (dom_info_state): Likewise.
22248 (dom_info_available_p): Likewise.
22249 * basic-block.h (free_dominance_info, dom_info_state,
22250 dom_info_available_p): Declare overloads.
22251 * passes.c (execute_function_todo): Verify that verifiers
22252 don't change dominator info state. Drop dominator info
22253 for IPA pass invocations.
22254 * cgraph.c (release_function_body): Restore asserts that
22255 dominator information is released.
22256
22257 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
22258
22259 * doc/invoke.texi: Fix typo.
22260 * tree-vrp.c: Fix typos.
22261 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
22262
22263 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22264
22265 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
22266
22267 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
22268
22269 * config/aarch64/aarch64-builtins.c
22270 (aarch64_types_storestruct_lane_qualifiers): New.
22271 (TYPES_STORESTRUCT_LANE): Likewise.
22272 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
22273 (st3_lane): Likewise.
22274 (st4_lane): Likewise.
22275 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
22276 (vec_store_lanesci_lane<mode>): Likewise.
22277 (vec_store_lanesxi_lane<mode>): Likewise.
22278 (aarch64_st2_lane<VQ:mode>): Likewise.
22279 (aarch64_st3_lane<VQ:mode>): Likewise.
22280 (aarch64_st4_lane<VQ:mode>): Likewise.
22281 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
22282 * config/aarch64/arm_neon.h
22283 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
22284 use new macro arguments.
22285 (__ST3_LANE_FUNC): Likewise.
22286 (__ST4_LANE_FUNC): Likewise.
22287 * config/aarch64/iterators.md (V_TWO_ELEM): New.
22288 (V_THREE_ELEM): Likewise.
22289 (V_FOUR_ELEM): Likewise.
22290
22291 2014-04-28 David Malcolm <dmalcolm@redhat.com>
22292
22293 * doc/gimple.texi: Replace the description of the now-defunct
22294 union gimple_statement_d with a diagram showing the
22295 gimple_statement_base class hierarchy and its relationships to
22296 the GSS_ and GIMPLE_ enums.
22297
22298 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
22299
22300 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
22301 * config/aarch64/aarch64.c
22302 (aarch64_cannot_change_mode_class): Weaken conditions.
22303 (aarch64_modes_tieable_p): New.
22304 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
22305
22306 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
22307
22308 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
22309 (loadsync_<mode>): Change mode.
22310 (load_quadpti, store_quadpti): New.
22311 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
22312 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
22313
22314 2014-04-28 Martin Jambor <mjambor@suse.cz>
22315
22316 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
22317 same alias type as the original statement.
22318 (subreplacement_assignment_data): New type.
22319 (handle_unscalarized_data_in_subtree): New type of parameter,
22320 generate new memory accesses with same alias type as the original
22321 statement.
22322 (load_assign_lhs_subreplacements): Likewise.
22323 (sra_modify_constructor_assign): Generate new memory accesses with
22324 same alias type as the original statement.
22325
22326 2014-04-28 Richard Biener <rguenther@suse.de>
22327
22328 * tree-pass.h (TODO_verify_il): Define.
22329 (TODO_verify_all): Complete properly.
22330 * passes.c (execute_function_todo): Move existing loop-closed
22331 SSA verification under TODO_verify_il.
22332 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
22333 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
22334 Fix tree sharing issue.
22335
22336 2014-04-28 Richard Biener <rguenther@suse.de>
22337
22338 PR middle-end/60092
22339 * builtins.def (DEF_C11_BUILTIN): Add.
22340 (BUILT_IN_ALIGNED_ALLOC): Likewise.
22341 * coretypes.h (enum function_class): Add function_c11_misc.
22342 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
22343 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
22344 (call_may_clobber_ref_p_1): Likewise.
22345 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
22346 (mark_all_reaching_defs_necessary_1): Likewise.
22347 (propagate_necessity): Likewise.
22348 (eliminate_unnecessary_stmts): Likewise.
22349 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
22350
22351 2014-04-28 Richard Biener <rguenther@suse.de>
22352
22353 * tree-vrp.c (vrp_var_may_overflow): Remove.
22354 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
22355 with overflow immediately bump to one before that value and
22356 let iteration figure out overflow status.
22357
22358 2014-04-28 Richard Biener <rguenther@suse.de>
22359
22360 * configure.ac: Do valgrind header checks unconditionally.
22361 Add --enable-valgrind-annotations.
22362 * system.h: Guard valgrind header inclusion with
22363 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
22364 * alloc-pool.c (pool_alloc, pool_free): Use
22365 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
22366 to guard possibly dead code.
22367 * config.in: Regenerated.
22368 * configure: Likewise.
22369
22370 2014-04-28 Jeff Law <law@redhat.com>
22371
22372 PR tree-optimization/60902
22373 * tree-ssa-threadedge.c
22374 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
22375 over real defs when invalidating outputs from statements that do not
22376 produce useful outputs for threading.
22377
22378 2014-04-28 Richard Biener <rguenther@suse.de>
22379
22380 PR tree-optimization/60979
22381 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
22382 SCOPs that end in a block with a successor with abnormal
22383 predecessors.
22384
22385 2014-04-28 Richard Biener <rguenther@suse.de>
22386
22387 * tree-pass.h (execute_pass_list): Adjust prototype.
22388 * passes.c (pass_manager::execute_early_local_passes): Adjust.
22389 (do_per_function): Change callback signature, push all actual
22390 work to the callbals.
22391 (do_per_function_toporder): Likewise.
22392 (execute_function_dump): Adjust.
22393 (execute_function_todo): Likewise.
22394 (clear_last_verified): Likewise.
22395 (verify_curr_properties): Likewise.
22396 (update_properties_after_pass): Likewise.
22397 (execute_pass_list_1): Split out from ...
22398 (execute_pass_list): ... here. Adjust.
22399 (execute_ipa_pass_list): Likewise.
22400 * cgraphunit.c (cgraph_add_new_function): Adjust.
22401 (analyze_function): Likewise.
22402 (expand_function): Likewise.
22403 * cgraph.c (release_function_body): Free dominance info
22404 here instead of asserting it was magically freed elsewhere.
22405
22406 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
22407
22408 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
22409 * configure: Regenerate.
22410 * config/sparc/sparc.opt (muser-mode): New option.
22411 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
22412 for LEON3.
22413 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
22414 * doc/invoke.texi (SPARC options): Document -muser-mode.
22415
22416 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
22417
22418 * cselib.c (find_slot_memmode): Delete.
22419 (cselib_hasher): Change compare_type to a struct.
22420 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
22421 constants.
22422 (preserve_constants_and_equivs): Adjust for new compare_type.
22423 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
22424 (wrap_constant): Delete.
22425 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
22426
22427 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
22428
22429 * doc/install.texi (Building with profile feedback): Remove
22430 outdated sentence.
22431
22432 2014-04-26 Tom de Vries <tom@codesourcery.com>
22433
22434 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
22435 array accesses.
22436
22437 2014-04-25 Cary Coutant <ccoutant@google.com>
22438
22439 PR debug/60929
22440 * dwarf2out.c (should_move_die_to_comdat): A type definition
22441 can contain a subprogram definition, but don't move it to a
22442 comdat unit.
22443 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
22444 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
22445 from original DIE.
22446 (clone_tree_hash): Rename to...
22447 (clone_tree_partial): ...this; change callers. Copy
22448 DW_TAG_subprogram DIEs as declarations.
22449 (copy_decls_walk): Don't copy children of a declaration into a
22450 type unit.
22451
22452 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
22453
22454 PR target/60969
22455 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
22456 alternative 12.
22457
22458 2014-04-25 Jiong Wang <jiong.wang@arm.com>
22459
22460 * config/arm/predicates.md (call_insn_operand): Add long_call check.
22461 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
22462 reg for long_call.
22463 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
22464 restriction.
22465
22466 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22467
22468 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
22469
22470 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22471
22472 PR tree-optimization/60930
22473 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
22474 creating a multiply candidate by folding two constant
22475 multiplicands when the result overflows.
22476
22477 2014-04-25 Jakub Jelinek <jakub@redhat.com>
22478
22479 PR tree-optimization/60960
22480 * tree-vect-generic.c (expand_vector_operation): Only call
22481 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
22482
22483 2014-04-25 Tom de Vries <tom@codesourcery.com>
22484
22485 * expr.c (clobber_reg_mode): New function.
22486 * expr.h (clobber_reg): New function.
22487
22488 2014-04-25 Tom de Vries <tom@codesourcery.com>
22489
22490 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
22491 clobbers.
22492
22493 2014-04-25 Radovan Obradovic <robradovic@mips.com>
22494 Tom de Vries <tom@codesourcery.com>
22495
22496 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
22497 handle.
22498 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
22499 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
22500 new argument to find_all_hard_reg_sets call.
22501
22502 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22503
22504 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
22505 Use HOST_WIDE_INT_C for mask literal.
22506 (aarch_rev16_shleft_mask_imm_p): Likewise.
22507
22508 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
22509
22510 PR target/60941
22511 * config/sparc/sparc.md (ashlsi3_extend): Delete.
22512
22513 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
22514
22515 PR preprocessor/56540
22516 * config/i386/i386-c.c (ix86_target_macros): Define
22517 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
22518
22519 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22520
22521 * configure.ac (tga_func): Remove.
22522 (LIB_TLS_SPEC): Remove.
22523 * configure: Regenerate.
22524 * config.in: Regenerate.
22525 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
22526
22527 2014-04-25 Richard Biener <rguenther@suse.de>
22528
22529 PR ipa/60912
22530 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
22531 call stmt use/clobber sets during stmt walk instead of
22532 walking the possibly incomplete set of caller edges.
22533
22534 2014-04-25 Richard Biener <rguenther@suse.de>
22535
22536 PR ipa/60911
22537 * passes.c (apply_ipa_transforms): Inline into only caller ...
22538 (execute_one_pass): ... here. Properly bring in function
22539 bodies for nodes we want to apply IPA transforms to.
22540
22541 2014-04-24 Cong Hou <congh@google.com>
22542
22543 PR tree-optimization/60896
22544 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
22545 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
22546 (vect_mark_pattern_stmts): Set the def type of all statements in
22547 PATTERN_DEF_SEQ as vect_internal_def.
22548
22549 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22550
22551 * doc/extend.texi (PowerPC Built-in Functions): Document new
22552 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
22553 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
22554
22555 * config/rs6000/predicates.md (const_0_to_3_operand): New
22556 predicate to match 0..3 integer constants.
22557
22558 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
22559 to support adding miscellaneous builtin functions.
22560 (BU_DFP_MISC_2): Likewise.
22561 (BU_P7_MISC_1): Likewise.
22562 (BU_P7_MISC_2): Likewise.
22563 (BU_P8V_MISC_3): Likewise.
22564 (BU_MISC_1): Likewise.
22565 (BU_MISC_2): Likewise.
22566 (DIVWE): Add extended divide builtin functions.
22567 (DIVWEO): Likewise.
22568 (DIVWEU): Likewise.
22569 (DIVWEUO): Likewise.
22570 (DIVDE): Likewise.
22571 (DIVDEO): Likewise.
22572 (DIVDEU): Likewise.
22573 (DIVDEUO): Likewise.
22574 (DXEX): Add decimal floating-point builtin functions.
22575 (DXEXQ): Likewise.
22576 (DDEDPD): Likewise.
22577 (DDEDPDQ): Likewise.
22578 (DENBCD): Likewise.
22579 (DENBCDQ): Likewise.
22580 (DIEX): Likewise.
22581 (DIEXQ): Likewise.
22582 (DSCLI): Likewise.
22583 (DSCLIQ): Likewise.
22584 (DSCRI): Likewise.
22585 (DSCRIQ): Likewise.
22586 (CDTBCD): Add new BCD builtin functions.
22587 (CBCDTD): Likewise.
22588 (ADDG6S): Likewise.
22589 (BCDADD): Likewise.
22590 (BCDADD_LT): Likewise.
22591 (BCDADD_EQ): Likewise.
22592 (BCDADD_GT): Likewise.
22593 (BCDADD_OV): Likewise.
22594 (BCDSUB): Likewise.
22595 (BCDSUB_LT): Likewise.
22596 (BCDSUB_EQ): Likewise.
22597 (BCDSUB_GT): Likewise.
22598 (BCDSUB_OV): Likewise.
22599 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
22600 (UNPACK_TD): Likewise.
22601 (PACK_TF): Likewise.
22602 (UNPACK_TF): Likewise.
22603 (UNPACK_TF_0): Likewise.
22604 (UNPACK_TF_1): Likewise.
22605 (PACK_V1TI): Likewise.
22606 (UNPACK_V1TI): Likewise.
22607
22608 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
22609 support for decimal floating point builtin functions.
22610 (rs6000_expand_ternop_builtin): Add checks for the new builtin
22611 functions that take constant arguments.
22612 (rs6000_invalid_builtin): Add decimal floating point builtin support.
22613 (rs6000_init_builtins): Setup long double, _Decimal64, and
22614 _Decimal128 types for new builtin functions.
22615 (builtin_function_type): Set the unsigned flags appropriately for
22616 the new builtin functions.
22617 (rs6000_opt_masks): Add support for decimal floating point builtin
22618 functions.
22619
22620 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
22621 floating point builtin functions.
22622 (RS6000_BTM_COMMON): Likewise.
22623 (RS6000_BTI_long_double): Likewise.
22624 (RS6000_BTI_dfloat64): Likewise.
22625 (RS6000_BTI_dfloat128): Likewise.
22626 (long_double_type_internal_node): Likewise.
22627 (dfloat64_type_internal_node): Likewise.
22628 (dfloat128_type_internal_node): Likewise.
22629
22630 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
22631 2.07 bcd arithmetic instructions.
22632 (UNSPEC_BCDSUB): Likewise.
22633 (UNSPEC_BCD_OVERFLOW): Likewise.
22634 (UNSPEC_BCD_ADD_SUB): Likewise.
22635 (bcd_add_sub): Likewise.
22636 (BCD_TEST): Likewise.
22637 (bcd<bcd_add_sub>): Likewise.
22638 (bcd<bcd_add_sub>_test): Likewise.
22639 (bcd<bcd_add_sub>_test2): Likewise.
22640 (bcd<bcd_add_sub>_<code>): Likewise.
22641 (peephole2 for combined bcd ops): Likewise.
22642
22643 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
22644 decimal floating point builtin functions.
22645 (UNSPEC_DENBCD): Likewise.
22646 (UNSPEC_DXEX): Likewise.
22647 (UNSPEC_DIEX): Likewise.
22648 (UNSPEC_DSCLI): Likewise.
22649 (UNSPEC_DSCRI): Likewise.
22650 (D64_D128): Likewise.
22651 (dfp_suffix): Likewise.
22652 (dfp_ddedpd_<mode>): Likewise.
22653 (dfp_denbcd_<mode>): Likewise.
22654 (dfp_dxex_<mode>): Likewise.
22655 (dfp_diex_<mode>): Likewise.
22656 (dfp_dscli_<mode>): Likewise.
22657 (dfp_dscri_<mode>): Likewise.
22658
22659 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
22660 builtin functions.
22661 (UNSPEC_CDTBCD): Likewise.
22662 (UNSPEC_CBCDTD): Likewise.
22663 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
22664 (UNSPEC_DIVEO): Likewise.
22665 (UNSPEC_DIVEU): Likewise.
22666 (UNSPEC_DIVEUO): Likewise.
22667 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
22668 pack/unpack 128-bit types.
22669 (UNSPEC_PACK_128BIT): Likewise.
22670 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
22671 (udiv<mode>3): Use idiv_ldiv mode attribute.
22672 (div<mode>3): Likewise.
22673 (addg6s): Add new BCD builtin functions.
22674 (cdtbcd): Likewise.
22675 (cbcdtd): Likewise.
22676 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
22677 (div_extend): Likewise.
22678 (div<div_extend>_<mode>"): Likewise.
22679 (FP128_64): Add support for new builtin functions to pack/unpack
22680 128-bit types.
22681 (unpack<mode>): Likewise.
22682 (unpacktf_0): Likewise.
22683 (unpacktf_1): Likewise.
22684 (unpack<mode>_dm): Likewise.
22685 (unpack<mode>_nodm): Likewise.
22686 (pack<mode>): Likewise.
22687 (unpackv1ti): Likewise.
22688 (packv1ti): Likewise.
22689
22690 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
22691
22692 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
22693 is disabled.
22694
22695 2014-04-24 Jakub Jelinek <jakub@redhat.com>
22696
22697 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
22698 * gimplify.c (omp_is_private): Change last argument's type to int.
22699 Only diagnose lastprivate if the simd argument is 1, only diagnose
22700 linear if the simd argument is 2.
22701 (gimplify_omp_for): Adjust omp_is_private callers. When adding
22702 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
22703 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
22704 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
22705 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
22706 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
22707 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
22708 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
22709 * tree-nested.c (convert_nonlocal_omp_clauses,
22710 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
22711
22712 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
22713
22714 PR target/60822
22715 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
22716 operand 1.
22717
22718 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
22719
22720 * flag-types.h (enum ivar_visibility): Add.
22721
22722 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
22723
22724 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
22725 function * argument.
22726
22727 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
22728
22729 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
22730
22731 2014-04-24 Radovan Obradovic <robradovic@mips.com>
22732 Tom de Vries <tom@codesourcery.com>
22733
22734 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
22735 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
22736 reg-note.
22737 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
22738 * emit-rtl.c (try_split): Same.
22739
22740 2014-04-24 Radovan Obradovic <robradovic@mips.com>
22741 Tom de Vries <tom@codesourcery.com>
22742
22743 * common.opt (fuse-caller-save): New option.
22744
22745 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
22746
22747 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
22748 elements for big-endian.
22749
22750 2014-04-24 Richard Biener <rguenther@suse.de>
22751
22752 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
22753 during TER and instead use the sepops interface for expanding
22754 non-GIMPLE_SINGLE_RHS.
22755
22756 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22757
22758 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
22759 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
22760
22761 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22762
22763 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
22764 assembler 64-bit option.
22765 * configure: Regenerate.
22766
22767 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22768
22769 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
22770 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
22771 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
22772 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
22773 (TARGET_CRYPTO): Take TARGET_SIMD into account.
22774
22775 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22776
22777 * config/aarch64/aarch64-builtins.c
22778 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
22779 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
22780 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
22781 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
22782 builtins.
22783 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
22784 (Vrevsuff): New mode attribute.
22785
22786 2014-04-24 Terry Guo <terry.guo@arm.com>
22787
22788 * config/arm/arm.h (machine_function): Define variable
22789 after_arm_reorg here.
22790 * config/arm/arm.c (after_arm_reorg): Remove the definition.
22791 (arm_split_constant): Update the way to access variable
22792 after_arm_reorg.
22793 (arm_reorg): Ditto.
22794 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
22795
22796 2014-04-23 Tom de Vries <tom@codesourcery.com>
22797
22798 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
22799
22800 2014-04-23 David Malcolm <dmalcolm@redhat.com>
22801
22802 * is-a.h: Update comments to reflect the following changes to the
22803 "pointerness" of the API, making the template parameter match the
22804 return type, allowing use of is-a.h with typedefs of pointers.
22805 (is_a_helper::cast): Return a T rather then a pointer to a T, so
22806 that the return type matches the parameter to the is_a_helper.
22807 (as_a): Likewise.
22808 (dyn_cast): Likewise.
22809
22810 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
22811 pointer from the is-a.h API.
22812
22813 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
22814 (is_a_helper <cgraph_node *>::test): ...this, matching change to
22815 is-a.h API.
22816 (is_a_helper <varpool_node>::test): Likewise, convert to...
22817 (is_a_helper <varpool_node *>::test): ...this.
22818
22819 (varpool_first_variable): Update for removal of implicit pointer
22820 from the is-a.h API.
22821 (varpool_next_variable): Likewise.
22822 (varpool_first_static_initializer): Likewise.
22823 (varpool_next_static_initializer): Likewise.
22824 (varpool_first_defined_variable): Likewise.
22825 (varpool_next_defined_variable): Likewise.
22826 (cgraph_first_defined_function): Likewise.
22827 (cgraph_next_defined_function): Likewise.
22828 (cgraph_first_function): Likewise.
22829 (cgraph_next_function): Likewise.
22830 (cgraph_first_function_with_gimple_body): Likewise.
22831 (cgraph_next_function_with_gimple_body): Likewise.
22832 (cgraph_alias_target): Likewise.
22833 (varpool_alias_target): Likewise.
22834 (cgraph_function_or_thunk_node): Likewise.
22835 (varpool_variable_node): Likewise.
22836 (symtab_real_symbol_p): Likewise.
22837 * cgraphunit.c (referred_to_p): Likewise.
22838 (analyze_functions): Likewise.
22839 (handle_alias_pairs): Likewise.
22840 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
22841 * gimple-ssa.h (gimple_vuse_op): Likewise.
22842 (gimple_vdef_op): Likewise.
22843 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
22844 * gimple.c (gimple_build_asm_1): Likewise.
22845 (gimple_build_try): Likewise.
22846 (gimple_build_resx): Likewise.
22847 (gimple_build_eh_dispatch): Likewise.
22848 (gimple_build_omp_for): Likewise.
22849 (gimple_omp_for_set_clauses): Likewise.
22850
22851 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
22852 (is_a_helper <gimple_statement_asm *>::test): ...this.
22853 (is_a_helper <gimple_statement_bind>::test): Convert to...
22854 (is_a_helper <gimple_statement_bind *>::test): ...this.
22855 (is_a_helper <gimple_statement_call>::test): Convert to...
22856 (is_a_helper <gimple_statement_call *>::test): ...this.
22857 (is_a_helper <gimple_statement_catch>::test): Convert to...
22858 (is_a_helper <gimple_statement_catch *>::test): ...this.
22859 (is_a_helper <gimple_statement_resx>::test): Convert to...
22860 (is_a_helper <gimple_statement_resx *>::test): ...this.
22861 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
22862 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
22863 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
22864 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
22865 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
22866 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
22867 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
22868 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
22869 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
22870 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
22871 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
22872 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
22873 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
22874 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
22875 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
22876 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
22877 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
22878 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
22879 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
22880 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
22881 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
22882 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
22883 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
22884 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
22885 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
22886 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
22887 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
22888 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
22889 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
22890 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
22891 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
22892 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
22893 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
22894 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
22895 (is_a_helper <gimple_statement_phi>::test): Convert to...
22896 (is_a_helper <gimple_statement_phi *>::test): ...this.
22897 (is_a_helper <gimple_statement_transaction>::test): Convert to...
22898 (is_a_helper <gimple_statement_transaction *>::test): ...this.
22899 (is_a_helper <gimple_statement_try>::test): Convert to...
22900 (is_a_helper <gimple_statement_try *>::test): ...this.
22901 (is_a_helper <gimple_statement_wce>::test): Convert to...
22902 (is_a_helper <gimple_statement_wce *>::test): ...this.
22903 (is_a_helper <const gimple_statement_asm>::test): Convert to...
22904 (is_a_helper <const gimple_statement_asm *>::test): ...this.
22905 (is_a_helper <const gimple_statement_bind>::test): Convert to...
22906 (is_a_helper <const gimple_statement_bind *>::test): ...this.
22907 (is_a_helper <const gimple_statement_call>::test): Convert to...
22908 (is_a_helper <const gimple_statement_call *>::test): ...this.
22909 (is_a_helper <const gimple_statement_catch>::test): Convert to...
22910 (is_a_helper <const gimple_statement_catch *>::test): ...this.
22911 (is_a_helper <const gimple_statement_resx>::test): Convert to...
22912 (is_a_helper <const gimple_statement_resx *>::test): ...this.
22913 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
22914 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
22915 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
22916 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
22917 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
22918 Convert to...
22919 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
22920 ...this.
22921 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
22922 Convert to...
22923 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
22924 ...this.
22925 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
22926 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
22927 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
22928 to...
22929 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
22930 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
22931 to...
22932 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
22933 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
22934 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
22935 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
22936 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
22937 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
22938 to...
22939 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
22940 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
22941 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
22942 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
22943 to...
22944 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
22945 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
22946 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
22947 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
22948 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
22949 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
22950 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
22951 (is_a_helper <const gimple_statement_phi>::test): Convert to...
22952 (is_a_helper <const gimple_statement_phi *>::test): ...this.
22953 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
22954 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
22955 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
22956 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
22957 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
22958 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
22959 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
22960 to...
22961 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
22962 ...this.
22963 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
22964 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
22965
22966 (gimple_use_ops): Update for removal of implicit pointer from the
22967 is-a.h API.
22968 (gimple_set_use_ops): Likewise.
22969 (gimple_vuse): Likewise.
22970 (gimple_vdef): Likewise.
22971 (gimple_vuse_ptr): Likewise.
22972 (gimple_vdef_ptr): Likewise.
22973 (gimple_set_vuse): Likewise.
22974 (gimple_set_vdef): Likewise.
22975 (gimple_omp_return_set_lhs): Likewise.
22976 (gimple_omp_return_lhs): Likewise.
22977 (gimple_omp_return_lhs_ptr): Likewise.
22978 (gimple_call_fntype): Likewise.
22979 (gimple_call_set_fntype): Likewise.
22980 (gimple_call_set_internal_fn): Likewise.
22981 (gimple_call_use_set): Likewise.
22982 (gimple_call_clobber_set): Likewise.
22983 (gimple_bind_vars): Likewise.
22984 (gimple_bind_set_vars): Likewise.
22985 (gimple_bind_body_ptr): Likewise.
22986 (gimple_bind_set_body): Likewise.
22987 (gimple_bind_add_stmt): Likewise.
22988 (gimple_bind_block): Likewise.
22989 (gimple_bind_set_block): Likewise.
22990 (gimple_asm_ninputs): Likewise.
22991 (gimple_asm_noutputs): Likewise.
22992 (gimple_asm_nclobbers): Likewise.
22993 (gimple_asm_nlabels): Likewise.
22994 (gimple_asm_input_op): Likewise.
22995 (gimple_asm_input_op_ptr): Likewise.
22996 (gimple_asm_output_op): Likewise.
22997 (gimple_asm_output_op_ptr): Likewise.
22998 (gimple_asm_set_output_op): Likewise.
22999 (gimple_asm_clobber_op): Likewise.
23000 (gimple_asm_set_clobber_op): Likewise.
23001 (gimple_asm_label_op): Likewise.
23002 (gimple_asm_set_label_op): Likewise.
23003 (gimple_asm_string): Likewise.
23004 (gimple_catch_types): Likewise.
23005 (gimple_catch_types_ptr): Likewise.
23006 (gimple_catch_handler_ptr): Likewise.
23007 (gimple_catch_set_types): Likewise.
23008 (gimple_catch_set_handler): Likewise.
23009 (gimple_eh_filter_types): Likewise.
23010 (gimple_eh_filter_types_ptr): Likewise.
23011 (gimple_eh_filter_failure_ptr): Likewise.
23012 (gimple_eh_filter_set_types): Likewise.
23013 (gimple_eh_filter_set_failure): Likewise.
23014 (gimple_eh_must_not_throw_fndecl): Likewise.
23015 (gimple_eh_must_not_throw_set_fndecl): Likewise.
23016 (gimple_eh_else_n_body_ptr): Likewise.
23017 (gimple_eh_else_e_body_ptr): Likewise.
23018 (gimple_eh_else_set_n_body): Likewise.
23019 (gimple_eh_else_set_e_body): Likewise.
23020 (gimple_try_eval_ptr): Likewise.
23021 (gimple_try_cleanup_ptr): Likewise.
23022 (gimple_try_set_eval): Likewise.
23023 (gimple_try_set_cleanup): Likewise.
23024 (gimple_wce_cleanup_ptr): Likewise.
23025 (gimple_wce_set_cleanup): Likewise.
23026 (gimple_phi_capacity): Likewise.
23027 (gimple_phi_num_args): Likewise.
23028 (gimple_phi_result): Likewise.
23029 (gimple_phi_result_ptr): Likewise.
23030 (gimple_phi_set_result): Likewise.
23031 (gimple_phi_arg): Likewise.
23032 (gimple_phi_set_arg): Likewise.
23033 (gimple_resx_region): Likewise.
23034 (gimple_resx_set_region): Likewise.
23035 (gimple_eh_dispatch_region): Likewise.
23036 (gimple_eh_dispatch_set_region): Likewise.
23037 (gimple_omp_critical_name): Likewise.
23038 (gimple_omp_critical_name_ptr): Likewise.
23039 (gimple_omp_critical_set_name): Likewise.
23040 (gimple_omp_for_clauses): Likewise.
23041 (gimple_omp_for_clauses_ptr): Likewise.
23042 (gimple_omp_for_set_clauses): Likewise.
23043 (gimple_omp_for_collapse): Likewise.
23044 (gimple_omp_for_index): Likewise.
23045 (gimple_omp_for_index_ptr): Likewise.
23046 (gimple_omp_for_set_index): Likewise.
23047 (gimple_omp_for_initial): Likewise.
23048 (gimple_omp_for_initial_ptr): Likewise.
23049 (gimple_omp_for_set_initial): Likewise.
23050 (gimple_omp_for_final): Likewise.
23051 (gimple_omp_for_final_ptr): Likewise.
23052 (gimple_omp_for_set_final): Likewise.
23053 (gimple_omp_for_incr): Likewise.
23054 (gimple_omp_for_incr_ptr): Likewise.
23055 (gimple_omp_for_set_incr): Likewise.
23056 (gimple_omp_for_pre_body_ptr): Likewise.
23057 (gimple_omp_for_set_pre_body): Likewise.
23058 (gimple_omp_parallel_clauses): Likewise.
23059 (gimple_omp_parallel_clauses_ptr): Likewise.
23060 (gimple_omp_parallel_set_clauses): Likewise.
23061 (gimple_omp_parallel_child_fn): Likewise.
23062 (gimple_omp_parallel_child_fn_ptr): Likewise.
23063 (gimple_omp_parallel_set_child_fn): Likewise.
23064 (gimple_omp_parallel_data_arg): Likewise.
23065 (gimple_omp_parallel_data_arg_ptr): Likewise.
23066 (gimple_omp_parallel_set_data_arg): Likewise.
23067 (gimple_omp_task_clauses): Likewise.
23068 (gimple_omp_task_clauses_ptr): Likewise.
23069 (gimple_omp_task_set_clauses): Likewise.
23070 (gimple_omp_task_child_fn): Likewise.
23071 (gimple_omp_task_child_fn_ptr): Likewise.
23072 (gimple_omp_task_set_child_fn): Likewise.
23073 (gimple_omp_task_data_arg): Likewise.
23074 (gimple_omp_task_data_arg_ptr): Likewise.
23075 (gimple_omp_task_set_data_arg): Likewise.
23076 (gimple_omp_taskreg_clauses): Likewise.
23077 (gimple_omp_taskreg_clauses_ptr): Likewise.
23078 (gimple_omp_taskreg_set_clauses): Likewise.
23079 (gimple_omp_taskreg_child_fn): Likewise.
23080 (gimple_omp_taskreg_child_fn_ptr): Likewise.
23081 (gimple_omp_taskreg_set_child_fn): Likewise.
23082 (gimple_omp_taskreg_data_arg): Likewise.
23083 (gimple_omp_taskreg_data_arg_ptr): Likewise.
23084 (gimple_omp_taskreg_set_data_arg): Likewise.
23085 (gimple_omp_task_copy_fn): Likewise.
23086 (gimple_omp_task_copy_fn_ptr): Likewise.
23087 (gimple_omp_task_set_copy_fn): Likewise.
23088 (gimple_omp_task_arg_size): Likewise.
23089 (gimple_omp_task_arg_size_ptr): Likewise.
23090 (gimple_omp_task_set_arg_size): Likewise.
23091 (gimple_omp_task_arg_align): Likewise.
23092 (gimple_omp_task_arg_align_ptr): Likewise.
23093 (gimple_omp_task_set_arg_align): Likewise.
23094 (gimple_omp_single_clauses): Likewise.
23095 (gimple_omp_single_clauses_ptr): Likewise.
23096 (gimple_omp_single_set_clauses): Likewise.
23097 (gimple_omp_target_clauses): Likewise.
23098 (gimple_omp_target_clauses_ptr): Likewise.
23099 (gimple_omp_target_set_clauses): Likewise.
23100 (gimple_omp_target_child_fn): Likewise.
23101 (gimple_omp_target_child_fn_ptr): Likewise.
23102 (gimple_omp_target_set_child_fn): Likewise.
23103 (gimple_omp_target_data_arg): Likewise.
23104 (gimple_omp_target_data_arg_ptr): Likewise.
23105 (gimple_omp_target_set_data_arg): Likewise.
23106 (gimple_omp_teams_clauses): Likewise.
23107 (gimple_omp_teams_clauses_ptr): Likewise.
23108 (gimple_omp_teams_set_clauses): Likewise.
23109 (gimple_omp_sections_clauses): Likewise.
23110 (gimple_omp_sections_clauses_ptr): Likewise.
23111 (gimple_omp_sections_set_clauses): Likewise.
23112 (gimple_omp_sections_control): Likewise.
23113 (gimple_omp_sections_control_ptr): Likewise.
23114 (gimple_omp_sections_set_control): Likewise.
23115 (gimple_omp_for_set_cond): Likewise.
23116 (gimple_omp_for_cond): Likewise.
23117 (gimple_omp_atomic_store_set_val): Likewise.
23118 (gimple_omp_atomic_store_val): Likewise.
23119 (gimple_omp_atomic_store_val_ptr): Likewise.
23120 (gimple_omp_atomic_load_set_lhs): Likewise.
23121 (gimple_omp_atomic_load_lhs): Likewise.
23122 (gimple_omp_atomic_load_lhs_ptr): Likewise.
23123 (gimple_omp_atomic_load_set_rhs): Likewise.
23124 (gimple_omp_atomic_load_rhs): Likewise.
23125 (gimple_omp_atomic_load_rhs_ptr): Likewise.
23126 (gimple_omp_continue_control_def): Likewise.
23127 (gimple_omp_continue_control_def_ptr): Likewise.
23128 (gimple_omp_continue_set_control_def): Likewise.
23129 (gimple_omp_continue_control_use): Likewise.
23130 (gimple_omp_continue_control_use_ptr): Likewise.
23131 (gimple_omp_continue_set_control_use): Likewise.
23132 (gimple_transaction_body_ptr): Likewise.
23133 (gimple_transaction_label): Likewise.
23134 (gimple_transaction_label_ptr): Likewise.
23135 (gimple_transaction_set_body): Likewise.
23136 (gimple_transaction_set_label): Likewise.
23137
23138 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
23139 * ipa-inline-analysis.c (inline_write_summary): Likewise.
23140 * ipa-ref.c (ipa_record_reference): Likewise.
23141 * ipa-reference.c (analyze_function): Likewise.
23142 (ipa_reference_write_optimization_summary): Likewise.
23143 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
23144 (address_taken_from_non_vtable_p): Likewise.
23145 (comdat_can_be_unshared_p_1): Likewise.
23146 * lto-cgraph.c (lto_output_ref): Likewise.
23147 (add_references): Likewise.
23148 (compute_ltrans_boundary): Likewise.
23149 (output_symtab): Likewise.
23150 (input_ref): Likewise.
23151 (input_cgraph_1): Likewise.
23152 (output_cgraph_opt_summary): Likewise.
23153 * lto-streamer-out.c (lto_output): Likewise.
23154 (output_symbol_p): Likewise.
23155 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
23156 (lsei_start_function_in_partition): Likewise.
23157 (lsei_next_variable_in_partition): Likewise.
23158 (lsei_start_variable_in_partition): Likewise.
23159 * symtab.c (insert_to_assembler_name_hash): Likewise.
23160 (unlink_from_assembler_name_hash): Likewise.
23161 (symtab_unregister_node): Likewise.
23162 (symtab_remove_node): Likewise.
23163 (dump_symtab_node): Likewise.
23164 (verify_symtab_base): Likewise.
23165 (verify_symtab_node): Likewise.
23166 (symtab_make_decl_local): Likewise.
23167 (symtab_alias_ultimate_target): Likewise.
23168 (symtab_resolve_alias): Likewise.
23169 (symtab_get_symbol_partitioning_class): Likewise.
23170 * tree-phinodes.c (allocate_phi_node): Likewise.
23171 (reserve_phi_args_for_new_edge): Likewise.
23172 (remove_phi_args): Likewise.
23173 * varpool.c (varpool_node_for_asm): Likewise.
23174 (varpool_remove_unreferenced_decls): Likewise.
23175
23176 2014-04-23 Jeff Law <law@redhat.com>
23177
23178 PR tree-optimization/60902
23179 * tree-ssa-threadedge.c
23180 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
23181 invalidate outputs from statements that do not produce useful
23182 outputs for threading.
23183
23184 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
23185
23186 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
23187 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
23188 machine descriptions for Stack Smashing Protector.
23189
23190 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
23191
23192 * aarch64.md (<optab>_rol<mode>3): New pattern.
23193 (<optab>_rolsi3_uxtw): Likewise.
23194 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
23195
23196 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
23197
23198 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
23199 (arm_cortex_a12_tune): Likewise.
23200
23201 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23202
23203 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
23204
23205 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23206
23207 * config/arm/arm.md (arm_rev16si2): New pattern.
23208 (arm_rev16si2_alt): Likewise.
23209 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
23210
23211 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23212
23213 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
23214 (rev16<mode>2_alt): Likewise.
23215 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
23216 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
23217 (aarch_rev16_shleft_mask_imm_p): Likewise.
23218 (aarch_rev16_p_1): Likewise.
23219 (aarch_rev16_p): Likewise.
23220 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
23221 (aarch_rev16_shright_mask_imm_p): Likewise.
23222 (aarch_rev16_shleft_mask_imm_p): Likewise.
23223
23224 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23225
23226 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
23227 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
23228 rev cost.
23229 (cortex_a53_extra_costs): Likewise.
23230 (cortex_a57_extra_costs): Likewise.
23231 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
23232 (cortexa7_extra_costs): Likewise.
23233 (cortexa8_extra_costs): Likewise.
23234 (cortexa12_extra_costs): Likewise.
23235 (cortexa15_extra_costs): Likewise.
23236 (v7m_extra_costs): Likewise.
23237 (arm_new_rtx_costs): Handle BSWAP.
23238
23239 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23240
23241 * config/arm/arm.c (cortexa8_extra_costs): New table.
23242 (arm_cortex_a8_tune): New tuning struct.
23243 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
23244
23245 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23246
23247 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
23248
23249 2014-04-23 Richard Biener <rguenther@suse.de>
23250
23251 * Makefile.in (OBJS): Remove loop-unswitch.o.
23252 * tree-pass.h (make_pass_rtl_unswitch): Remove.
23253 * passes.def (pass_rtl_unswitch): Likewise.
23254 * loop-init.c (gate_rtl_unswitch): Likewise.
23255 (rtl_unswitch): Likewise.
23256 (pass_data_rtl_unswitch): Likewise.
23257 (pass_rtl_unswitch): Likewise.
23258 (make_pass_rtl_unswitch): Likewise.
23259 * rtl.h (reversed_condition): Likewise.
23260 (compare_and_jump_seq): Likewise.
23261 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
23262 and make static.
23263 * loop-unroll.c (compare_and_jump_seq): Likewise.
23264
23265 2014-04-23 Richard Biener <rguenther@suse.de>
23266
23267 PR tree-optimization/60903
23268 * tree-ssa-loop-im.c (analyze_memory_references): Remove
23269 commented code block.
23270 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
23271 loop flags to newly created BBs and edges.
23272
23273 2014-04-23 Nick Clifton <nickc@redhat.com>
23274
23275 * config/msp430/msp430.c (msp430_handle_option): Move function
23276 to msp430-common.c
23277 (msp430_option_override): Simplify mcu and mcpu option handling.
23278 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
23279 support for -mhwmult command line option.
23280 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
23281 -mhwmult command line option.
23282 (msp430_hwmult_enabled): Delete.
23283 (msp43o_output_labelref): Add support for -mhwmult command line option.
23284 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
23285 (umulsidi3): Likewise.
23286 * config/msp430/msp430.opt (mmcu): Add Report attribute.
23287 (mcpu, mlarge, msmall): Likewise.
23288 (mhwmult): New option.
23289 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
23290 prototype.
23291 (msp430_is_f5_mcu): Remove prototype.
23292 (msp430_use_f5_series_hwmult): Add prototype.
23293 * config/msp430/msp430-opts.h: New file.
23294 * common/config/msp430: New directory.
23295 * common/config/msp430/msp430-common.c: New file.
23296 * config.gcc (msp430): Remove target_has_targetm_common.
23297 * doc/invoke.texi: Document -mhwmult command line option.
23298
23299 2014-04-23 Nick Clifton <nickc@redhat.com>
23300
23301 * config/i386/cygwin.h (ENDFILE_SPEC): Include
23302 default-manifest.o if it can be found in the search path.
23303 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
23304
23305 2014-04-23 Terry Guo <terry.guo@arm.com>
23306
23307 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
23308
23309 2014-04-23 Richard Biener <rguenther@suse.de>
23310
23311 PR middle-end/60895
23312 * tree-inline.c (declare_return_variable): Use mark_addressable.
23313
23314 2014-04-23 Richard Biener <rguenther@suse.de>
23315
23316 PR middle-end/60891
23317 * loop-init.c (loop_optimizer_init): Make sure to apply
23318 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
23319
23320 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23321
23322 PR sanitizer/60275
23323 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
23324 New options.
23325 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
23326 if flag_sanitize_undefined_trap_on_error.
23327 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
23328 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
23329 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
23330 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
23331 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
23332 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
23333 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
23334 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
23335 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
23336 * ubsan.c (ubsan_instrument_unreachable): Return
23337 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
23338 (ubsan_expand_null_ifn): Emit __builtin_trap ()
23339 if flag_sanitize_undefined_trap_on_error and
23340 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
23341 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
23342 instrument_bool_enum_load): Emit __builtin_trap () if
23343 flag_sanitize_undefined_trap_on_error and
23344 __builtin_handle_*_abort () if !flag_sanitize_recover.
23345 * doc/invoke.texi (-fsanitize-recover,
23346 -fsanitize-undefined-trap-on-error): Document.
23347
23348 2014-04-22 Christian Bruel <christian.bruel@st.com>
23349
23350 * config/sh/sh.md (mov<mode>): Replace movQIHI.
23351 Force immediates to SImode.
23352
23353 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
23354
23355 * config/nios2/nios2.md (UNSPEC_ROUND): New.
23356 (lroundsfsi2): New.
23357 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
23358 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
23359 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
23360 (nios2_fpu_insn): Add entry for round.
23361 (N2FPU_NO_ERRNO_P): Define.
23362 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
23363 flag_errno_math.
23364 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
23365
23366 2014-04-22 Richard Henderson <rth@redhat.com>
23367
23368 * config/aarch64/aarch64 (addti3, subti3): New expanders.
23369 (add<GPI>3_compare0): Remove leading * from name.
23370 (add<GPI>3_carryin): Likewise.
23371 (sub<GPI>3_compare0): Likewise.
23372 (sub<GPI>3_carryin): Likewise.
23373 (<su_optab>mulditi3): New expander.
23374 (multi3): New expander.
23375 (madd<GPI>): Remove leading * from name.
23376
23377 2014-04-22 Martin Jambor <mjambor@suse.cz>
23378
23379 * cgraphclones.c (cgraph_function_versioning): Copy
23380 ipa_transforms_to_apply instead of asserting it is empty.
23381
23382 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
23383
23384 PR target/60868
23385 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
23386 on count_exp to get mode.
23387
23388 2014-04-22 Andrew Pinski <apinski@cavium.com>
23389
23390 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
23391 Handle TLS for ILP32.
23392 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
23393 (tlsie_small_<mode>): this and handle PTR.
23394 (tlsie_small_sidi): New pattern.
23395 (tlsle_small): Change to an expand to handle ILP32.
23396 (tlsle_small_<mode>): New pattern.
23397 (tlsdesc_small): Rename to ...
23398 (tlsdesc_small_<mode>): this and handle PTR.
23399
23400 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23401
23402 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
23403
23404 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23405
23406 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
23407 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
23408 (aarch64_types_signed_poly_qualifiers): Likewise.
23409 (aarch64_types_unsigned_signed_qualifiers): Likewise.
23410 (aarch64_types_poly_signed_qualifiers): Likewise.
23411 (TYPES_REINTERP_SS): Type macro added.
23412 (TYPES_REINTERP_SU): Likewise.
23413 (TYPES_REINTERP_SP): Likewise.
23414 (TYPES_REINTERP_US): Likewise.
23415 (TYPES_REINTERP_PS): Likewise.
23416 (aarch64_fold_builtin): New expression folding added.
23417 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
23418 Declarations removed.
23419 (REINTERP_SS): Declarations added.
23420 (REINTERP_US): Likewise.
23421 (REINTERP_PS): Likewise.
23422 (REINTERP_SU): Likewise.
23423 (REINTERP_SP): Likewise.
23424 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
23425 (vreinterpretq_p8_f64): Likewise.
23426 (vreinterpret_p16_f64): Likewise.
23427 (vreinterpretq_p16_f64): Likewise.
23428 (vreinterpret_f32_f64): Likewise.
23429 (vreinterpretq_f32_f64): Likewise.
23430 (vreinterpret_f64_f32): Likewise.
23431 (vreinterpret_f64_p8): Likewise.
23432 (vreinterpret_f64_p16): Likewise.
23433 (vreinterpret_f64_s8): Likewise.
23434 (vreinterpret_f64_s16): Likewise.
23435 (vreinterpret_f64_s32): Likewise.
23436 (vreinterpret_f64_s64): Likewise.
23437 (vreinterpret_f64_u8): Likewise.
23438 (vreinterpret_f64_u16): Likewise.
23439 (vreinterpret_f64_u32): Likewise.
23440 (vreinterpret_f64_u64): Likewise.
23441 (vreinterpretq_f64_f32): Likewise.
23442 (vreinterpretq_f64_p8): Likewise.
23443 (vreinterpretq_f64_p16): Likewise.
23444 (vreinterpretq_f64_s8): Likewise.
23445 (vreinterpretq_f64_s16): Likewise.
23446 (vreinterpretq_f64_s32): Likewise.
23447 (vreinterpretq_f64_s64): Likewise.
23448 (vreinterpretq_f64_u8): Likewise.
23449 (vreinterpretq_f64_u16): Likewise.
23450 (vreinterpretq_f64_u32): Likewise.
23451 (vreinterpretq_f64_u64): Likewise.
23452 (vreinterpret_s64_f64): Likewise.
23453 (vreinterpretq_s64_f64): Likewise.
23454 (vreinterpret_u64_f64): Likewise.
23455 (vreinterpretq_u64_f64): Likewise.
23456 (vreinterpret_s8_f64): Likewise.
23457 (vreinterpretq_s8_f64): Likewise.
23458 (vreinterpret_s16_f64): Likewise.
23459 (vreinterpretq_s16_f64): Likewise.
23460 (vreinterpret_s32_f64): Likewise.
23461 (vreinterpretq_s32_f64): Likewise.
23462 (vreinterpret_u8_f64): Likewise.
23463 (vreinterpretq_u8_f64): Likewise.
23464 (vreinterpret_u16_f64): Likewise.
23465 (vreinterpretq_u16_f64): Likewise.
23466 (vreinterpret_u32_f64): Likewise.
23467 (vreinterpretq_u32_f64): Likewise.
23468
23469 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23470
23471 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
23472 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
23473 (vreinterpret_p8_s8): Likewise.
23474 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
23475 (vreinterpret_p8_s16): Likewise.
23476 (vreinterpret_p8_s32): Likewise.
23477 (vreinterpret_p8_s64): Likewise.
23478 (vreinterpret_p8_f32): Likewise.
23479 (vreinterpret_p8_u8): Likewise.
23480 (vreinterpret_p8_u16): Likewise.
23481 (vreinterpret_p8_u32): Likewise.
23482 (vreinterpret_p8_u64): Likewise.
23483 (vreinterpret_p8_p16): Likewise.
23484 (vreinterpretq_p8_s8): Likewise.
23485 (vreinterpretq_p8_s16): Likewise.
23486 (vreinterpretq_p8_s32): Likewise.
23487 (vreinterpretq_p8_s64): Likewise.
23488 (vreinterpretq_p8_f32): Likewise.
23489 (vreinterpretq_p8_u8): Likewise.
23490 (vreinterpretq_p8_u16): Likewise.
23491 (vreinterpretq_p8_u32): Likewise.
23492 (vreinterpretq_p8_u64): Likewise.
23493 (vreinterpretq_p8_p16): Likewise.
23494 (vreinterpret_p16_s8): Likewise.
23495 (vreinterpret_p16_s16): Likewise.
23496 (vreinterpret_p16_s32): Likewise.
23497 (vreinterpret_p16_s64): Likewise.
23498 (vreinterpret_p16_f32): Likewise.
23499 (vreinterpret_p16_u8): Likewise.
23500 (vreinterpret_p16_u16): Likewise.
23501 (vreinterpret_p16_u32): Likewise.
23502 (vreinterpret_p16_u64): Likewise.
23503 (vreinterpret_p16_p8): Likewise.
23504 (vreinterpretq_p16_s8): Likewise.
23505 (vreinterpretq_p16_s16): Likewise.
23506 (vreinterpretq_p16_s32): Likewise.
23507 (vreinterpretq_p16_s64): Likewise.
23508 (vreinterpretq_p16_f32): Likewise.
23509 (vreinterpretq_p16_u8): Likewise.
23510 (vreinterpretq_p16_u16): Likewise.
23511 (vreinterpretq_p16_u32): Likewise.
23512 (vreinterpretq_p16_u64): Likewise.
23513 (vreinterpretq_p16_p8): Likewise.
23514 (vreinterpret_f32_s8): Likewise.
23515 (vreinterpret_f32_s16): Likewise.
23516 (vreinterpret_f32_s32): Likewise.
23517 (vreinterpret_f32_s64): Likewise.
23518 (vreinterpret_f32_u8): Likewise.
23519 (vreinterpret_f32_u16): Likewise.
23520 (vreinterpret_f32_u32): Likewise.
23521 (vreinterpret_f32_u64): Likewise.
23522 (vreinterpret_f32_p8): Likewise.
23523 (vreinterpret_f32_p16): Likewise.
23524 (vreinterpretq_f32_s8): Likewise.
23525 (vreinterpretq_f32_s16): Likewise.
23526 (vreinterpretq_f32_s32): Likewise.
23527 (vreinterpretq_f32_s64): Likewise.
23528 (vreinterpretq_f32_u8): Likewise.
23529 (vreinterpretq_f32_u16): Likewise.
23530 (vreinterpretq_f32_u32): Likewise.
23531 (vreinterpretq_f32_u64): Likewise.
23532 (vreinterpretq_f32_p8): Likewise.
23533 (vreinterpretq_f32_p16): Likewise.
23534 (vreinterpret_s64_s8): Likewise.
23535 (vreinterpret_s64_s16): Likewise.
23536 (vreinterpret_s64_s32): Likewise.
23537 (vreinterpret_s64_f32): Likewise.
23538 (vreinterpret_s64_u8): Likewise.
23539 (vreinterpret_s64_u16): Likewise.
23540 (vreinterpret_s64_u32): Likewise.
23541 (vreinterpret_s64_u64): Likewise.
23542 (vreinterpret_s64_p8): Likewise.
23543 (vreinterpret_s64_p16): Likewise.
23544 (vreinterpretq_s64_s8): Likewise.
23545 (vreinterpretq_s64_s16): Likewise.
23546 (vreinterpretq_s64_s32): Likewise.
23547 (vreinterpretq_s64_f32): Likewise.
23548 (vreinterpretq_s64_u8): Likewise.
23549 (vreinterpretq_s64_u16): Likewise.
23550 (vreinterpretq_s64_u32): Likewise.
23551 (vreinterpretq_s64_u64): Likewise.
23552 (vreinterpretq_s64_p8): Likewise.
23553 (vreinterpretq_s64_p16): Likewise.
23554 (vreinterpret_u64_s8): Likewise.
23555 (vreinterpret_u64_s16): Likewise.
23556 (vreinterpret_u64_s32): Likewise.
23557 (vreinterpret_u64_s64): Likewise.
23558 (vreinterpret_u64_f32): Likewise.
23559 (vreinterpret_u64_u8): Likewise.
23560 (vreinterpret_u64_u16): Likewise.
23561 (vreinterpret_u64_u32): Likewise.
23562 (vreinterpret_u64_p8): Likewise.
23563 (vreinterpret_u64_p16): Likewise.
23564 (vreinterpretq_u64_s8): Likewise.
23565 (vreinterpretq_u64_s16): Likewise.
23566 (vreinterpretq_u64_s32): Likewise.
23567 (vreinterpretq_u64_s64): Likewise.
23568 (vreinterpretq_u64_f32): Likewise.
23569 (vreinterpretq_u64_u8): Likewise.
23570 (vreinterpretq_u64_u16): Likewise.
23571 (vreinterpretq_u64_u32): Likewise.
23572 (vreinterpretq_u64_p8): Likewise.
23573 (vreinterpretq_u64_p16): Likewise.
23574 (vreinterpret_s8_s16): Likewise.
23575 (vreinterpret_s8_s32): Likewise.
23576 (vreinterpret_s8_s64): Likewise.
23577 (vreinterpret_s8_f32): Likewise.
23578 (vreinterpret_s8_u8): Likewise.
23579 (vreinterpret_s8_u16): Likewise.
23580 (vreinterpret_s8_u32): Likewise.
23581 (vreinterpret_s8_u64): Likewise.
23582 (vreinterpret_s8_p8): Likewise.
23583 (vreinterpret_s8_p16): Likewise.
23584 (vreinterpretq_s8_s16): Likewise.
23585 (vreinterpretq_s8_s32): Likewise.
23586 (vreinterpretq_s8_s64): Likewise.
23587 (vreinterpretq_s8_f32): Likewise.
23588 (vreinterpretq_s8_u8): Likewise.
23589 (vreinterpretq_s8_u16): Likewise.
23590 (vreinterpretq_s8_u32): Likewise.
23591 (vreinterpretq_s8_u64): Likewise.
23592 (vreinterpretq_s8_p8): Likewise.
23593 (vreinterpretq_s8_p16): Likewise.
23594 (vreinterpret_s16_s8): Likewise.
23595 (vreinterpret_s16_s32): Likewise.
23596 (vreinterpret_s16_s64): Likewise.
23597 (vreinterpret_s16_f32): Likewise.
23598 (vreinterpret_s16_u8): Likewise.
23599 (vreinterpret_s16_u16): Likewise.
23600 (vreinterpret_s16_u32): Likewise.
23601 (vreinterpret_s16_u64): Likewise.
23602 (vreinterpret_s16_p8): Likewise.
23603 (vreinterpret_s16_p16): Likewise.
23604 (vreinterpretq_s16_s8): Likewise.
23605 (vreinterpretq_s16_s32): Likewise.
23606 (vreinterpretq_s16_s64): Likewise.
23607 (vreinterpretq_s16_f32): Likewise.
23608 (vreinterpretq_s16_u8): Likewise.
23609 (vreinterpretq_s16_u16): Likewise.
23610 (vreinterpretq_s16_u32): Likewise.
23611 (vreinterpretq_s16_u64): Likewise.
23612 (vreinterpretq_s16_p8): Likewise.
23613 (vreinterpretq_s16_p16): Likewise.
23614 (vreinterpret_s32_s8): Likewise.
23615 (vreinterpret_s32_s16): Likewise.
23616 (vreinterpret_s32_s64): Likewise.
23617 (vreinterpret_s32_f32): Likewise.
23618 (vreinterpret_s32_u8): Likewise.
23619 (vreinterpret_s32_u16): Likewise.
23620 (vreinterpret_s32_u32): Likewise.
23621 (vreinterpret_s32_u64): Likewise.
23622 (vreinterpret_s32_p8): Likewise.
23623 (vreinterpret_s32_p16): Likewise.
23624 (vreinterpretq_s32_s8): Likewise.
23625 (vreinterpretq_s32_s16): Likewise.
23626 (vreinterpretq_s32_s64): Likewise.
23627 (vreinterpretq_s32_f32): Likewise.
23628 (vreinterpretq_s32_u8): Likewise.
23629 (vreinterpretq_s32_u16): Likewise.
23630 (vreinterpretq_s32_u32): Likewise.
23631 (vreinterpretq_s32_u64): Likewise.
23632 (vreinterpretq_s32_p8): Likewise.
23633 (vreinterpretq_s32_p16): Likewise.
23634 (vreinterpret_u8_s8): Likewise.
23635 (vreinterpret_u8_s16): Likewise.
23636 (vreinterpret_u8_s32): Likewise.
23637 (vreinterpret_u8_s64): Likewise.
23638 (vreinterpret_u8_f32): Likewise.
23639 (vreinterpret_u8_u16): Likewise.
23640 (vreinterpret_u8_u32): Likewise.
23641 (vreinterpret_u8_u64): Likewise.
23642 (vreinterpret_u8_p8): Likewise.
23643 (vreinterpret_u8_p16): Likewise.
23644 (vreinterpretq_u8_s8): Likewise.
23645 (vreinterpretq_u8_s16): Likewise.
23646 (vreinterpretq_u8_s32): Likewise.
23647 (vreinterpretq_u8_s64): Likewise.
23648 (vreinterpretq_u8_f32): Likewise.
23649 (vreinterpretq_u8_u16): Likewise.
23650 (vreinterpretq_u8_u32): Likewise.
23651 (vreinterpretq_u8_u64): Likewise.
23652 (vreinterpretq_u8_p8): Likewise.
23653 (vreinterpretq_u8_p16): Likewise.
23654 (vreinterpret_u16_s8): Likewise.
23655 (vreinterpret_u16_s16): Likewise.
23656 (vreinterpret_u16_s32): Likewise.
23657 (vreinterpret_u16_s64): Likewise.
23658 (vreinterpret_u16_f32): Likewise.
23659 (vreinterpret_u16_u8): Likewise.
23660 (vreinterpret_u16_u32): Likewise.
23661 (vreinterpret_u16_u64): Likewise.
23662 (vreinterpret_u16_p8): Likewise.
23663 (vreinterpret_u16_p16): Likewise.
23664 (vreinterpretq_u16_s8): Likewise.
23665 (vreinterpretq_u16_s16): Likewise.
23666 (vreinterpretq_u16_s32): Likewise.
23667 (vreinterpretq_u16_s64): Likewise.
23668 (vreinterpretq_u16_f32): Likewise.
23669 (vreinterpretq_u16_u8): Likewise.
23670 (vreinterpretq_u16_u32): Likewise.
23671 (vreinterpretq_u16_u64): Likewise.
23672 (vreinterpretq_u16_p8): Likewise.
23673 (vreinterpretq_u16_p16): Likewise.
23674 (vreinterpret_u32_s8): Likewise.
23675 (vreinterpret_u32_s16): Likewise.
23676 (vreinterpret_u32_s32): Likewise.
23677 (vreinterpret_u32_s64): Likewise.
23678 (vreinterpret_u32_f32): Likewise.
23679 (vreinterpret_u32_u8): Likewise.
23680 (vreinterpret_u32_u16): Likewise.
23681 (vreinterpret_u32_u64): Likewise.
23682 (vreinterpret_u32_p8): Likewise.
23683 (vreinterpret_u32_p16): Likewise.
23684 (vreinterpretq_u32_s8): Likewise.
23685 (vreinterpretq_u32_s16): Likewise.
23686 (vreinterpretq_u32_s32): Likewise.
23687 (vreinterpretq_u32_s64): Likewise.
23688 (vreinterpretq_u32_f32): Likewise.
23689 (vreinterpretq_u32_u8): Likewise.
23690 (vreinterpretq_u32_u16): Likewise.
23691 (vreinterpretq_u32_u64): Likewise.
23692 (vreinterpretq_u32_p8): Likewise.
23693 (vreinterpretq_u32_p16): Likewise.
23694
23695 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23696
23697 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
23698 Pattern extended.
23699 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
23700 (sqabs): Likewise.
23701 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
23702 (vqnegd_s64): Likewise.
23703 (vqabs_s64): Likewise.
23704 (vqabsd_s64): Likewise.
23705
23706 2014-04-22 Richard Henderson <rth@redhat.com>
23707
23708 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
23709 computation to the top of the loop.
23710
23711 2014-04-22 Renlin <renlin.li@arm.com>
23712 Jiong Wang <jiong.wang@arm.com>
23713
23714 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
23715 * config/aarch64/aarch64.c (aarch64_layout_frame)
23716 (aarch64_initial_elimination_offset): Likewise.
23717
23718 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
23719
23720 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
23721 Fix indentation.
23722
23723 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
23724
23725 * machmode.h (bitwise_mode_for_mode): Declare.
23726 * stor-layout.h (bitwise_type_for_mode): Likewise.
23727 * stor-layout.c (bitwise_mode_for_mode): New function.
23728 (bitwise_type_for_mode): Likewise.
23729 * builtins.c (fold_builtin_memory_op): Use it instead of
23730 int_mode_for_mode and build_nonstandard_integer_type.
23731
23732 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23733
23734 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
23735 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
23736 (*-*-solaris2*): Simplify.
23737 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
23738 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
23739 *-*-solaris2.9* handling.
23740
23741 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
23742 as bug.
23743 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
23744 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
23745 handling, simplify.
23746 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
23747 * configure: Regenerate.
23748
23749 * config/i386/sol2-9.h: Remove.
23750
23751 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
23752 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
23753 Remove Solaris 9 references.
23754
23755 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
23756
23757 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
23758 (floatuns<GPI:mode><GPF:mode>2): Remove.
23759 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
23760 and floatuns conversions.
23761 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
23762 and floatuns conversions.
23763 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
23764 (w1,w2): New mode attributes for inequal width conversions.
23765
23766 2014-04-22 Renlin Li <Renlin.Li@arm.com>
23767
23768 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
23769 the output asm format.
23770
23771 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
23772
23773 * config/aarch64/aarch64-simd.md
23774 (aarch64_cm<optab>di): Always split.
23775 (*aarch64_cm<optab>di): New.
23776 (aarch64_cmtstdi): Always split.
23777 (*aarch64_cmtstdi): New.
23778
23779 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23780
23781 PR tree-optimization/60823
23782 * omp-low.c (ipa_simd_modify_function_body): Go through
23783 all SSA_NAMEs and for those refering to vector arguments
23784 which are going to be replaced adjust SSA_NAME_VAR and,
23785 if it is a default definition, change it into a non-default
23786 definition assigned at the beginning of function from new_decl.
23787 (ipa_simd_modify_stmt_ops): Rewritten.
23788 * tree-dfa.c (set_ssa_default_def): When removing default def,
23789 check for NULL loc instead of NULL *loc.
23790
23791 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23792
23793 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
23794 restrictions on core registers for DImode values in Thumb2.
23795
23796 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23797
23798 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
23799 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
23800
23801 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23802
23803 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
23804 (*iordi_notzesidi_di): Likewise.
23805 (*iordi_notsesidi_di): Likewise.
23806
23807 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23808
23809 * config/arm/arm-protos.h (tune_params): New struct members.
23810 * config/arm/arm.c: Initialise tune_params per processor.
23811 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
23812 for speed, based on new tune_params.
23813
23814 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23815
23816 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
23817 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
23818 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
23819 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
23820 * config/aarch64/arm_neon.h (vrnd_f64): Added.
23821 (vrnda_f64): Likewise.
23822 (vrndi_f64): Likewise.
23823 (vrndm_f64): Likewise.
23824 (vrndn_f64): Likewise.
23825 (vrndp_f64): Likewise.
23826 (vrndx_f64): Likewise.
23827
23828 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23829
23830 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
23831 GET_MODE_SIZE argument is enum machine_mode.
23832
23833 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23834
23835 PR target/60910
23836 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
23837 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
23838
23839 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
23840
23841 PR middle-end/60281
23842 * asan.c (asan_emit_stack_protection): Force the base to align to
23843 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
23844 appropriate bits if STRICT_ALIGNMENT.
23845 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
23846 when asan is on.
23847 (expand_used_vars): Leave a space in the stack frame for alignment
23848 if STRICT_ALIGNMENT.
23849
23850 2014-04-21 David Malcolm <dmalcolm@redhat.com>
23851
23852 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
23853 than a gimple.
23854 (gimple_store_p): Likewise.
23855 (gimple_assign_load_p): Likewise.
23856 (gimple_assign_cast_p): Likewise.
23857 (gimple_clobber_p): Likewise.
23858
23859 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
23860 rather than a gimple.
23861 (gimple_assign_cast_p): Likewise.
23862
23863 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
23864
23865 PR target/60735
23866 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
23867 If mode is DDmode and TARGET_E500_DOUBLE allow move.
23868
23869 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
23870 more debug information for E500 if -mdebug=reg.
23871
23872 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
23873
23874 PR target/60909
23875 * config/i386/i386.c (ix86_expand_builtin)
23876 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
23877 register for target RTX.
23878 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
23879
23880 2014-04-18 Cong Hou <congh@google.com>
23881
23882 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
23883 the widen-mult pattern by handling two operands with different sizes,
23884 and operands whose size is smaller than half of the result type.
23885
23886 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
23887
23888 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
23889 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
23890 (do_estimate_edge_time): Compute it.
23891 * ipa-inline.c (want_inline_small_function_p): Bypass
23892 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
23893
23894 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
23895
23896 * ipa-inline.c (spec_rem): New static variable.
23897 (dump_overall_stats): New function.
23898 (dump_inline_stats): New function.
23899
23900 2014-04-18 Richard Henderson <rth@redhat.com>
23901
23902 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
23903 to GET_MODE_SIZE, not a reg_class_t.
23904
23905 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23906
23907 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
23908 (vsx_xxmrglw_<mode>): Likewise.
23909
23910 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
23911
23912 PR target/60876
23913 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
23914 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
23915 (rs6000_init_hard_regno_mode_ok): Likewise.
23916
23917 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
23918
23919 * ipa-inline.c (inline_small_functions): Account only non-cold
23920 functions.
23921 * doc/invoke.texi (inline-unit-growth): Update documentation.
23922
23923 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
23924
23925 * config/rs6000/rs6000.md (addti3, subti3): New.
23926
23927 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
23928
23929 PR target/60863
23930 * config/i386/i386.c (ix86_expand_clear): Remove outdated
23931 comment. Check optimize_insn_for_size_p instead of
23932 optimize_insn_for_speed_p.
23933
23934 2014-04-17 Martin Jambor <mjambor@suse.cz>
23935
23936 * gimple-iterator.c (gsi_start_edge): New function.
23937 * gimple-iterator.h (gsi_start_edge): Declare.
23938 * tree-sra.c (single_non_eh_succ): New function.
23939 (disqualify_ops_if_throwing_stmt): Renamed to
23940 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
23941 having one non-EH successor BB.
23942 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
23943 generate loads into replacements.
23944 (sra_modify_assign): Likewise and and also use the simple path for
23945 such statements.
23946 (sra_modify_function_body): Commit statements on edges.
23947
23948 2014-04-17 Richard Biener <rguenther@suse.de>
23949
23950 PR middle-end/60849
23951 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
23952 comparison results and add clarifying comment.
23953
23954 2014-04-17 Jakub Jelinek <jakub@redhat.com>
23955
23956 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
23957 (blank_mode): Initialize it.
23958 (emit_mode_size_inline, emit_mode_nunits_inline,
23959 emit_mode_inner_inline): New functions.
23960 (emit_insn_modes_h): Call them and surround their output with
23961 #if GCC_VERSION >= 4001 ... #endif.
23962 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
23963 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
23964 mode_* arrays if the argument is __builtin_constant_p.
23965 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
23966 is enum machine_mode.
23967
23968 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23969
23970 * passes.c (opt_pass::execute): Adjust.
23971 (pass_manager::execute_pass_mode_switching): Likewise.
23972 (early_local_passes::execute): Likewise.
23973 (execute_one_pass): Pass cfun to the pass's execute method.
23974 * tree-pass.h (opt_pass::execute): Add function * argument.
23975 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
23976 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
23977 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
23978 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
23979 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
23980 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
23981 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
23982 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
23983 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
23984 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
23985 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
23986 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
23987 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
23988 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
23989 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
23990 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
23991 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
23992 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
23993 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
23994 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
23995 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
23996 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
23997 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
23998 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
23999 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24000 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24001 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
24002 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
24003 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
24004 Adjust.
24005
24006 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24007
24008 * passes.c (opt_pass::gate): Take function * argument.
24009 (gate_all_early_local_passes): Merge into
24010 (early_local_passes::gate): this.
24011 (gate_all_early_optimizations): Merge into
24012 (all_early_optimizations::gate): this.
24013 (gate_all_optimizations): Mege into
24014 (all_optimizations::gate): this.
24015 (gate_all_optimizations_g): Merge into
24016 (all_optimizations_g::gate): this.
24017 (gate_rest_of_compilation): Mege into
24018 (rest_of_compilation::gate): this.
24019 (gate_postreload): Merge into
24020 (postreload::gate): this.
24021 (dump_one_pass): Pass cfun to the pass's gate method.
24022 (execute_ipa_summary_passes): Likewise.
24023 (execute_one_pass): Likewise.
24024 (ipa_write_summaries_2): Likewise.
24025 (ipa_write_optimization_summaries_1): Likewise.
24026 (ipa_read_summaries_1): Likewise.
24027 (ipa_read_optimization_summaries_1): Likewise.
24028 (execute_ipa_stmt_fixups): Likewise.
24029 * tree-pass.h (opt_pass::gate): Add function * argument.
24030 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
24031 combine-stack-adj.c, combine.c, compare-elim.c,
24032 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24033 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
24034 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
24035 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
24036 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
24037 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
24038 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
24039 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
24040 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
24041 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
24042 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
24043 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
24044 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
24045 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
24046 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
24047 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24048 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24049 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24050 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24051 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24052 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24053 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24054 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
24055 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
24056 var-tracking.c, vtable-verify.c, web.c: Adjust.
24057
24058 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24059
24060 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
24061 * configure: Regenerate.
24062
24063 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24064
24065 * passes.c (dump_one_pass): don't check pass->has_gate.
24066 (execute_ipa_summary_passes): Likewise.
24067 (execute_one_pass): Likewise.
24068 (ipa_write_summaries_2): Likewise.
24069 (ipa_write_optimization_summaries_1): Likewise.
24070 (ipa_read_optimization_summaries_1): Likewise.
24071 (execute_ipa_stmt_fixups): Likewise.
24072 * tree-pass.h (pass_data::has_gate): Remove.
24073 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
24074 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
24075 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
24076 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24077 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
24078 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
24079 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
24080 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
24081 gimple-low.c, gimple-ssa-isolate-paths.c,
24082 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
24083 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
24084 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
24085 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
24086 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
24087 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
24088 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
24089 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
24090 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
24091 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
24092 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
24093 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
24094 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24095 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24096 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24097 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24098 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24099 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24100 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24101 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
24102 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
24103 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
24104 Adjust.
24105
24106 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24107
24108 * pass_manager.h (pass_manager::register_dump_files_1): Remove
24109 declaration.
24110 * passes.c (pass_manager::register_dump_files_1): Merge into
24111 (pass_manager::register_dump_files): this, and remove its handling of
24112 properties since the pass always has the properties anyway.
24113 (pass_manager::pass_manager): Adjust.
24114
24115 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24116
24117 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
24118 * passes.c (pass_manager::register_dump_files_1): Remove dead code
24119 dealing with properties.
24120 (pass_manager::register_dump_files): Adjust.
24121
24122 2014-03-20 Mark Wielaard <mjw@redhat.com>
24123
24124 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
24125 then represent the bound as normal constant value.
24126
24127 2014-04-17 Jakub Jelinek <jakub@redhat.com>
24128
24129 PR target/60847
24130 Forward port from 4.8 branch
24131 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
24132
24133 * config/i386/bmiintrin.h (_blsi_u32): New.
24134 (_blsi_u64): Ditto.
24135 (_blsr_u32): Ditto.
24136 (_blsr_u64): Ditto.
24137 (_blsmsk_u32): Ditto.
24138 (_blsmsk_u64): Ditto.
24139 (_tzcnt_u32): Ditto.
24140 (_tzcnt_u64): Ditto.
24141
24142 2014-04-17 Kito Cheng <kito@0xlab.org>
24143
24144 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
24145
24146 2014-04-17 Richard Biener <rguenther@suse.de>
24147
24148 PR middle-end/60849
24149 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
24150 boolean results for comparisons.
24151
24152 2014-04-17 Richard Biener <rguenther@suse.de>
24153
24154 PR tree-optimization/60836
24155 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
24156 initial PHI args to be gimple values.
24157
24158 2014-04-17 Richard Biener <rguenther@suse.de>
24159
24160 PR tree-optimization/60841
24161 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
24162 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
24163 of stmts to SLP build.
24164 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
24165 (vect_analyze_slp): Likewise.
24166 (vect_analyze_slp_instance): Likewise.
24167 (vect_build_slp_tree): Limit overall SLP tree growth.
24168 * tree-vectorizer.h (vect_analyze_data_refs,
24169 vect_analyze_slp): Adjust prototypes.
24170
24171 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
24172
24173 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
24174 Silvermont.
24175
24176 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
24177
24178 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
24179 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
24180 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
24181 for TARGET_SLOW_PSHUFB
24182
24183 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
24184
24185 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
24186 * config/i386/i386.c (intel_cost): Ditto.
24187
24188 2014-04-17 Joey Ye <joey.ye@arm.com>
24189
24190 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
24191
24192 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
24193
24194 * opts.c (common_handle_option): Disable -fipa-reference coorectly
24195 with -fuse-profile.
24196
24197 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
24198
24199 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
24200 (type_all_derivations_known_p): New predicate.
24201 (type_all_ctors_visible_p): New predicate.
24202 (type_possibly_instantiated_p): New predicate.
24203 (get_odr_type): Compute all_derivations_known.
24204 (dump_odr_type): Dump the flag.
24205 (maybe_record_type): Cleanup.
24206 (record_target_from_binfo): Add bases_to_consider array;
24207 record bases for types w/o instances and skip CXX destructor.
24208 (possible_polymorphic_call_targets_1): Add bases_to_consider
24209 and consider_construction parameters; check if type may have instance.
24210 (get_polymorphic_call_info): Set maybe_in_construction to true
24211 when we know nothing.
24212 (record_targets_from_bases): Skip CXX destructors; they are
24213 never called for types in construction.
24214 (possible_polymorphic_call_targets): Do not record target when
24215 type may not have instance.
24216
24217 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
24218
24219 PR ipa/60854
24220 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
24221 external aliases alive, too.
24222
24223 2014-04-16 Andrew Pinski <apinski@cavium.com>
24224
24225 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
24226 definition.
24227
24228 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
24229
24230 * final.c (compute_alignments): Do not apply loop alignment to a block
24231 falling through to the exit.
24232
24233 2014-04-16 Catherine Moore <clm@codesourcery.com>
24234
24235 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
24236 Adjust constraints for microMIPS store patterns.
24237
24238 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
24239
24240 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
24241
24242 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
24243
24244 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
24245 (append_use): Run at -O0.
24246 (append_vdef): Likewise.
24247 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
24248 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
24249
24250 2014-04-16 Jakub Jelinek <jakub@redhat.com>
24251
24252 PR tree-optimization/60844
24253 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
24254 (propagate_op_to_single_use, remove_visited_stmt_chain,
24255 linearize_expr, repropagate_negates, reassociate_bb): Use it
24256 instead of gsi_remove.
24257
24258 2014-04-16 Martin Jambor <mjambor@suse.cz>
24259
24260 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
24261 ipa_transforms_to_apply.
24262 (cgraph_function_versioning): Assert that old_node has empty
24263 ipa_transforms_to_apply.
24264 * trans-mem.c (ipa_tm_create_version): Likewise.
24265 * tree-inline.c (tree_function_versioning): Do not duplicate
24266 ipa_transforms_to_apply.
24267
24268 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24269
24270 PR target/60817
24271 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
24272 x86_64-*-* cases.
24273 Pass necessary as flags on 64-bit Solaris/x86.
24274 Use lowercase relocs for x86_64-*-*.
24275 * configure: Regenerate.
24276
24277 2014-04-15 Jan Hubicka <jh@suse.cz>
24278
24279 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
24280 (maybe_record_node, likely_target_p): Use it.
24281
24282 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24283
24284 PR target/60839
24285 Revert following patch
24286
24287 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24288
24289 PR target/60735
24290 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
24291 software floating point or no floating point registers, do not
24292 allow any type in the FPRs. Eliminate a test for SPE SIMD types
24293 in GPRs that occurs after we tested for GPRs that would never be
24294 true.
24295
24296 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
24297 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
24298 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
24299 specifically allow DDmode, since that does not use the SPE SIMD
24300 instructions.
24301
24302 2014-03-21 Mark Wielaard <mjw@redhat.com>
24303
24304 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
24305 as unsigned or int depending on type and value used.
24306
24307 2014-04-15 Richard Biener <rguenther@suse.de>
24308
24309 PR rtl-optimization/56965
24310 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
24311 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
24312 ... here.
24313 * alias.c (true_dependence_1): Do not call
24314 nonoverlapping_component_refs_p.
24315 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
24316 nonoverlapping_component_refs_p.
24317 (indirect_refs_may_alias_p): Likewise.
24318
24319 2014-04-15 Teresa Johnson <tejohnson@google.com>
24320
24321 * cfg.c (dump_bb_info): Fix flags check.
24322 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
24323
24324 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24325
24326 PR rtl-optimization/60663
24327 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
24328 avoid 0 cost.
24329
24330 2014-04-15 Richard Biener <rguenther@suse.de>
24331
24332 * lto-streamer.h (LTO_major_version): Bump to 4.
24333
24334 2014-04-15 Richard Biener <rguenther@suse.de>
24335
24336 * common.opt (lto_partition_model): New enum.
24337 (flto-partition=): Merge separate options with a single with argument,
24338 add -flto-partition=one support.
24339 * flag-types.h (enum lto_partition_model): Declare.
24340 * opts.c (finish_options): Remove duplicate -flto-partition=
24341 option check.
24342 * lto-wrapper.c (run_gcc): Adjust.
24343
24344 2014-04-15 Richard Biener <rguenther@suse.de>
24345
24346 * alias.c (ncr_compar): New function.
24347 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
24348
24349 2014-04-15 Richard Biener <rguenther@suse.de>
24350
24351 * alias.c (record_component_aliases): Do not walk BINFOs.
24352
24353 2014-04-15 Richard Biener <rguenther@suse.de>
24354
24355 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24356 Add struct function argument and adjust.
24357 (find_func_aliases_for_call): Likewise.
24358 (find_func_aliases): Likewise.
24359 (find_func_clobbers): Likewise.
24360 (intra_create_variable_infos): Likewise.
24361 (compute_points_to_sets): Likewise.
24362 (ipa_pta_execute): Adjust. Do not push/pop cfun.
24363
24364 2014-04-15 Richard Biener <rguenther@suse.de>
24365
24366 * tree.c (iterative_hash_expr): Use enum tree_code_class
24367 to store TREE_CODE_CLASS.
24368 (tree_block): Likewise.
24369 (tree_set_block): Likewise.
24370 * tree.h (fold_build_pointer_plus_loc): Use
24371 convert_to_ptrofftype_loc.
24372
24373 2014-04-15 Jakub Jelinek <jakub@redhat.com>
24374
24375 PR plugins/59335
24376 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
24377 added in 4.9.
24378
24379 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
24380
24381 * cfgloop.h (struct loop): Move force_vectorize down.
24382 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
24383 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
24384 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
24385 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
24386 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
24387 * tree-core.h (enum annot_expr_kind): Add new kind values.
24388 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
24389 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
24390 kinds.
24391 * tree.def (ANNOTATE_EXPR): Tweak comment.
24392
24393 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24394
24395 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
24396 cxa_pure_virtual).
24397
24398 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
24399
24400 * tree.h (TYPE_IDENTIFIER): Declare.
24401 * tree.c (subrange_type_for_debug_p): Use it.
24402 * godump.c (go_format_type): Likewise.
24403 * dwarf2out.c (is_cxx_auto, modified_type_die,
24404 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
24405 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
24406
24407 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24408
24409 PR lto/60820
24410 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
24411
24412 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
24413
24414 * config/i386/i386.c (examine_argument): Return bool. Return true if
24415 parameter should be passed in memory.
24416 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
24417 (construct_container): Update calls to examine_argument.
24418 (function_arg_advance_64): Ditto.
24419 (return_in_memory_32): Merge with ix86_return_in_memory.
24420 (return_in_memory_64): Ditto.
24421 (return_in_memory_ms_64): Ditto.
24422
24423 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24424
24425 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
24426 * coverage.c (coverage_compute_profile_id): Handle externally visible
24427 symbols.
24428
24429 2014-04-14 Martin Jambor <mjambor@suse.cz>
24430
24431 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
24432 DECL_DISREGARD_INLINE_LIMITS functions.
24433
24434 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
24435
24436 PR target/60827
24437 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
24438
24439 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
24440
24441 PR target/60827
24442 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
24443 optimize_insn_for_speed_p instead of
24444 optimize_function_for_speed_p.
24445
24446 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
24447
24448 * doc/invoke.texi (free): Document AArch64.
24449
24450 2014-04-14 Richard Biener <rguenther@suse.de>
24451
24452 PR tree-optimization/60042
24453 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
24454 (insert_into_preds_of_block): Do not prevent PHI insertion
24455 for REFERENCE exprs here ...
24456 (eliminate_dom_walker::before_dom_children): ... but prevent
24457 their use here under similar conditions when applied to the
24458 IL after PRE optimizations.
24459
24460 2014-04-14 Richard Biener <rguenther@suse.de>
24461
24462 * passes.def: Move early points-to after early SRA.
24463
24464 2014-04-14 Richard Biener <rguenther@suse.de>
24465
24466 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
24467 check for which sign-changes we allow when forwarding
24468 a converted value into a switch.
24469
24470 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
24471
24472 * stor-layout.c (place_field): Finalize non-constant offset for the
24473 field, if any.
24474
24475 2014-04-14 Richard Biener <rguenther@suse.de>
24476
24477 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
24478 as argument.
24479 (expand_switch_using_bit_tests_p): Likewise.
24480 (process_switch): Compute and pass on speed_p based on the
24481 switch stmt.
24482 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
24483 optimize_bb_for_speed_p.
24484
24485 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
24486
24487 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
24488 * function.h (struct function): Rename has_force_vect_loops into
24489 has_force_vectorize_loops.
24490 * lto-streamer-in.c (input_cfg): Adjust for renaming.
24491 (input_struct_function_base): Likewise.
24492 * lto-streamer-out.c (output_cfg): Likewise.
24493 (output_struct_function_base): Likewise.
24494 * omp-low.c (expand_omp_simd): Likewise.
24495 * tree-cfg.c (move_sese_region_to_fn): Likewise.
24496 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
24497 (version_loop_for_if_conversion): Likewise.
24498 (tree_if_conversion): Likewise.
24499 (main_tree_if_conversion): Likewise.
24500 (gate_tree_if_conversion): Likewise.
24501 * tree-inline.c (copy_loops): Likewise.
24502 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
24503 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
24504 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
24505 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
24506 * tree-vectorizer.c (vectorize_loops): Likewise.
24507 * tree-vectorizer.h (unlimited_cost_model): Likewise.
24508
24509 2014-04-14 Richard Biener <rguenther@suse.de>
24510
24511 PR lto/60720
24512 * lto-streamer-out.c (wrap_refs): New function.
24513 (lto_output): Wrap symbol references in global initializes in
24514 type-preserving MEM_REFs.
24515
24516 2014-04-14 Christian Bruel <christian.bruel@st.com>
24517
24518 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
24519
24520 2014-04-14 Christian Bruel <christian.bruel@st.com>
24521
24522 * config/sh/sh.md (setmemqi): New expand pattern.
24523 * config/sh/sh.h (CLEAR_RATIO): Define.
24524 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
24525 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
24526
24527 2014-04-14 Richard Biener <rguenther@suse.de>
24528
24529 PR middle-end/55022
24530 * fold-const.c (negate_expr_p): Don't negate directional rounding
24531 division.
24532 (fold_negate_expr): Likewise.
24533
24534 2014-04-14 Richard Biener <rguenther@suse.de>
24535
24536 PR tree-optimization/59817
24537 PR tree-optimization/60453
24538 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
24539 recursion to catch all CHRECs in the scalar evolution and restrict
24540 the predicate for the remains appropriately.
24541
24542 2014-04-12 Catherine Moore <clm@codesourcery.com>
24543
24544 * config/mips/constraints.md: Add new register constraint "kb".
24545 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
24546 (*movhi_internal): Likewise.
24547 (*movqi_internal): Likewise.
24548 * config/mips/mips.h (M16_STORE_REGS): New register class.
24549 (REG_CLASS_NAMES): Add M16_STORE_REGS.
24550 (REG_CLASS_CONTENTS): Likewise.
24551 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
24552
24553 2014-04-11 Tobias Burnus <burnus@net-b.de>
24554
24555 PR c/60194
24556 * doc/invoke.texi (-Wformat-signedness): Document it.
24557 (Wformat=2): Mention that this enables -Wformat-signedness.
24558
24559 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24560
24561 * common/config/epiphany/epiphany-common.c
24562 (epiphany_option_optimization_table): Enable section anchors by
24563 default at -O1 or higher.
24564 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
24565 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
24566 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
24567 carries no extra cost.
24568 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
24569 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
24570 * config/epiphany/predicates.md (memclob_operand): New predicate.
24571 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
24572 Use memclob_operand predicate and X constraint for operand 3.
24573
24574 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24575
24576 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
24577 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
24578 its operands.
24579
24580 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24581
24582 PR rtl-optimization/60651
24583 * mode-switching.c (optimize_mode_switching): Make sure to emit
24584 sets of a lower numbered entity before sets of a higher numbered
24585 entity to a mode of the same or lower priority.
24586 When creating a seginfo for a basic block that starts with a code
24587 label, move the insertion point past the code label.
24588 (new_seginfo): Document and enforce requirement that
24589 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
24590 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
24591 * doc/tm.texi: Regenerate.
24592
24593 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
24594
24595 PR target/60811
24596 * config/arc/arc.c (arc_save_restore): Fix assert typo.
24597
24598 2013-04-11 Jakub Jelinek <jakub@redhat.com>
24599
24600 * BASE-VER: Set to 4.10.0.
24601
24602 2014-04-11 Tobias Burnus <burnus@net-b.de>
24603
24604 PR other/59055
24605 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
24606 * doc/gcc.texi (Service): Update description in the @menu
24607 * doc/invoke.texi (Option Summary): Remove misplaced and
24608 duplicated @menu.
24609
24610 2014-04-11 Steve Ellcey <sellcey@mips.com>
24611 Jakub Jelinek <jakub@redhat.com>
24612
24613 PR middle-end/60556
24614 * expr.c (convert_move): Use emit_store_flag_force instead of
24615 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
24616 argument to it.
24617
24618 2014-04-11 Richard Biener <rguenther@suse.de>
24619
24620 PR middle-end/60797
24621 * varasm.c (assemble_alias): Avoid endless error reporting
24622 recursion by setting TREE_ASM_WRITTEN.
24623
24624 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24625
24626 * config/s390/s390.md: Add a splitter for NOT rtx.
24627
24628 2014-04-11 Jakub Jelinek <jakub@redhat.com>
24629
24630 PR rtl-optimization/60663
24631 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
24632
24633 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
24634 Jakub Jelinek <jakub@redhat.com>
24635
24636 PR lto/60567
24637 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
24638 flag from decl_node to node.
24639
24640 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24641
24642 PR debug/60655
24643 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
24644 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
24645 ameliorating the cases where it can be.
24646
24647 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
24648
24649 Revert
24650 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
24651
24652 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24653 (loadsync_<mode>): Change mode.
24654 (load_quadpti, store_quadpti): New.
24655 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24656 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24657 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
24658
24659 2014-04-09 Cong Hou <congh@google.com>
24660
24661 PR testsuite/60773
24662 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
24663 documentation.
24664
24665 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24666
24667 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
24668 instead of vnor to exploit possible fusion opportunity in the
24669 future.
24670 (altivec_expand_vec_perm_const_le): Likewise.
24671
24672 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
24673
24674 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24675 (loadsync_<mode>): Change mode.
24676 (load_quadpti, store_quadpti): New.
24677 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24678 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24679
24680 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
24681
24682 PR target/60763
24683 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
24684 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
24685 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
24686
24687 2014-04-08 Richard Biener <rguenther@suse.de>
24688
24689 PR middle-end/60706
24690 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
24691 a 64bit widest int print double-int similar to on HWI64 hosts.
24692
24693 2014-04-08 Richard Biener <rguenther@suse.de>
24694
24695 PR tree-optimization/60785
24696 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
24697 default defs properly.
24698
24699 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
24700
24701 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
24702 (Weffc++): Likewise.
24703
24704 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
24705
24706 * ipa-devirt.c (maybe_record_node): When node is not recorded,
24707 set completep to false rather than true.
24708
24709 2014-04-07 Douglas B Rupp <rupp@adacore.com>
24710
24711 PR target/60504
24712 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
24713 ARM_TARGET2_DWARF_FORMAT.
24714
24715 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
24716
24717 PR target/60609
24718 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
24719 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
24720 ADDR_DIFF_VEC.
24721
24722 2014-04-07 Richard Biener <rguenther@suse.de>
24723
24724 PR tree-optimization/60766
24725 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
24726 (may_eliminate_iv): Convert cand_value_at result to desired type.
24727
24728 2014-04-07 Jason Merrill <jason@redhat.com>
24729
24730 PR c++/60731
24731 * common.opt (-fno-gnu-unique): Add.
24732 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
24733
24734 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24735
24736 * haifa-sched.c: Fix outdated function reference and minor
24737 grammar errors in introductory comment.
24738
24739 2014-04-07 Richard Biener <rguenther@suse.de>
24740
24741 PR middle-end/60750
24742 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
24743 for noreturn calls.
24744 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
24745
24746 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
24747
24748 PR debug/55794
24749 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
24750 size accounting for thunks.
24751 (pa_asm_output_mi_thunk): Use final_start_function() and
24752 final_end_function() to output function start and end directives.
24753
24754 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
24755
24756 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
24757 device specific ISA/ feature information. Remove short_sp and
24758 errata_skip ds. Add avr_device_specific_features enum to have device
24759 specific info.
24760 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
24761 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
24762 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
24763 updated device specific info.
24764 * config/avr/avr-mcus.def: Merge device specific details to
24765 dev_attribute field.
24766 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
24767 errata_skip.
24768 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
24769 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
24770 assembler if RMW isa supported by current device.
24771 * config/avr/genmultilib.awk: Update as device info structure changed.
24772 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
24773
24774 2014-04-04 Cong Hou <congh@google.com>
24775
24776 PR tree-optimization/60656
24777 * tree-vect-stmts.c (supportable_widening_operation):
24778 Fix a bug that elements in a vector with vect_used_by_reduction
24779 property are incorrectly reordered when the operation on it is not
24780 consistant with the one in reduction operation.
24781
24782 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
24783
24784 PR rtl-optimization/60155
24785 * gcse.c (record_set_data): New function.
24786 (single_set_gcse): New function.
24787 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
24788 (hoist_code): Likewise.
24789 (get_pressure_class_and_nregs): Likewise.
24790
24791 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
24792
24793 * explow.c (probe_stack_range): Emit a final optimization blockage.
24794
24795 2014-04-04 Anthony Green <green@moxielogic.com>
24796
24797 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
24798 typos.
24799
24800 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
24801
24802 PR ipa/59626
24803 * lto-cgraph.c (input_overwrite_node): Check that partitioning
24804 flags are set only during streaming.
24805 * ipa.c (process_references, walk_polymorphic_call_targets,
24806 symtab_remove_unreachable_nodes): Drop bodies of always inline
24807 after early inlining.
24808 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
24809
24810 2014-04-04 Jakub Jelinek <jakub@redhat.com>
24811 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24812
24813 PR debug/60655
24814 * dwarf2out.c (const_ok_for_output_1): Reject expressions
24815 containing a NOT.
24816
24817 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24818
24819 PR bootstrap/60743
24820 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
24821 duration.
24822 (cortex_a53_fdivd): Likewise.
24823
24824 2014-04-04 Martin Jambor <mjambor@suse.cz>
24825
24826 PR ipa/60640
24827 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
24828 Adjust all callers.
24829 * cgraph.c (clone_of_p): Also return true if thunks match.
24830 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
24831 cgraph_function_or_thunk_node and an obsolete comment.
24832 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
24833 file.
24834 (build_function_decl_skip_args): Likewise.
24835 (set_new_clone_decl_and_node_flags): New function.
24836 (duplicate_thunk_for_node): Likewise.
24837 (redirect_edge_duplicating_thunks): Likewise.
24838 (cgraph_clone_node): New parameter args_to_skip, pass it to
24839 redirect_edge_duplicating_thunks which is called instead of
24840 cgraph_redirect_edge_callee.
24841 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
24842 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
24843
24844 2014-04-04 Jeff Law <law@redhat.com>
24845
24846 PR target/60657
24847 * config/arm/predicates.md (const_int_I_operand): New predicate.
24848 (const_int_M_operand): Similarly.
24849 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
24850 const_int_operand.
24851 (insv_t2, extv_reg, extzv_t2): Likewise.
24852 (load_multiple_with_writeback): Similarly for const_int_I_operand.
24853 (pop_multiple_with_writeback_and_return): Likewise.
24854 (vfp_pop_multiple_with_writeback): Likewise
24855
24856 2014-04-04 Richard Biener <rguenther@suse.de>
24857
24858 PR ipa/60746
24859 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
24860 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
24861 non-GIMPLE_LABELs.
24862 * gimplify.h (gimple_add_tmp_var_fn): Declare.
24863 * gimplify.c (gimple_add_tmp_var_fn): New function.
24864 * gimple-expr.h (create_tmp_reg_fn): Declare.
24865 * gimple-expr.c (create_tmp_reg_fn): New function.
24866 * gimple-low.c (record_vars_into): Don't change cfun.
24867 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
24868 code generation without cfun.
24869
24870 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
24871
24872 PR bootstrap/60719
24873 * Makefile.in (install-driver): Fix shell scripting.
24874
24875 2014-04-03 Cong Hou <congh@google.com>
24876
24877 PR tree-optimization/60505
24878 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
24879 threshold of number of iterations below which no vectorization
24880 will be done.
24881 * tree-vect-loop.c (new_loop_vec_info):
24882 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
24883 * tree-vect-loop.c (vect_analyze_loop_operations):
24884 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
24885 * tree-vect-loop.c (vect_transform_loop):
24886 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
24887 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
24888 of iterations of the loop and see if we should build the epilogue.
24889
24890 2014-04-03 Richard Biener <rguenther@suse.de>
24891
24892 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
24893 (streamer_tree_cache_create): Adjust.
24894 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
24895 to allow optional nodes array.
24896 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
24897 (streamer_tree_cache_append): Likewise.
24898 (streamer_tree_cache_create): Create nodes array optionally
24899 as specified by parameter.
24900 * lto-streamer-out.c (create_output_block): Avoid maintaining
24901 the node array in the writer cache.
24902 (DFS_write_tree): Remove assertion.
24903 (produce_asm_for_decls): Free the out decl state hash table early.
24904 * lto-streamer-in.c (lto_data_in_create): Adjust for
24905 streamer_tree_cache_create prototype change.
24906
24907 2014-04-03 Richard Biener <rguenther@suse.de>
24908
24909 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
24910 set TREE_CHAIN to NULL_TREE.
24911
24912 2014-04-03 Richard Biener <rguenther@suse.de>
24913
24914 PR tree-optimization/60740
24915 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
24916 over all GIMPLE_COND operands.
24917
24918 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
24919
24920 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
24921 (Weffc++): Remove Scott's numbering, merge lists and reference
24922 Wnon-virtual-dtor.
24923
24924 2014-04-03 Nick Clifton <nickc@redhat.com>
24925
24926 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
24927 properly.
24928
24929 2014-04-03 Martin Jambor <mjambor@suse.cz>
24930
24931 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
24932 mention gcc_unreachable before failing.
24933 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
24934 removed symbols.
24935
24936 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
24937
24938 PR ipa/60659
24939 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
24940 inconsistent code and instead mark the context inconsistent.
24941 (possible_polymorphic_call_targets): For inconsistent contexts
24942 return empty complete list.
24943
24944 2014-04-02 Anthony Green <green@moxielogic.com>
24945
24946 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
24947 (extendqisi2, extendhisi2): Define.
24948 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
24949 (WCHAR_TYPE): Change to unsigned int.
24950
24951 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24952
24953 PR tree-optimization/60733
24954 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
24955 insertion point for PHI candidates to be the end of the feeding
24956 block for the PHI argument.
24957
24958 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
24959
24960 PR rtl-optimization/60650
24961 * lra-constraints.c (process_alt_operands): Decrease reject for
24962 earlyclobber matching.
24963
24964 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24965
24966 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
24967
24968 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24969
24970 * config/spu/spu.c (pad_bb): Do not crash when the last
24971 insn is CODE_FOR_blockage.
24972
24973 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24974
24975 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
24976 lies outside the target mode.
24977
24978 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24979
24980 PR target/60735
24981 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
24982 software floating point or no floating point registers, do not
24983 allow any type in the FPRs. Eliminate a test for SPE SIMD types
24984 in GPRs that occurs after we tested for GPRs that would never be
24985 true.
24986
24987 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
24988 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
24989 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
24990 specifically allow DDmode, since that does not use the SPE SIMD
24991 instructions.
24992
24993 2014-04-02 Richard Biener <rguenther@suse.de>
24994
24995 PR middle-end/60729
24996 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
24997 MODE_INTs. Properly use negv_optab.
24998 (expand_abs): Likewise.
24999
25000 2014-04-02 Richard Biener <rguenther@suse.de>
25001
25002 PR bootstrap/60719
25003 * Makefile.in (install-driver): Guard extra installs with special
25004 names properly.
25005
25006 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
25007
25008 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25009 Document vec_vgbbd.
25010
25011 2014-04-01 Richard Henderson <rth@redhat.com>
25012
25013 PR target/60704
25014 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
25015 alternative enabled before register allocation.
25016
25017 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
25018
25019 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
25020 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
25021 typo.
25022 (nios2_large_got_address): Remove unneeded 'sym' parameter.
25023 (nios2_got_address): Update nios2_large_got_address call site.
25024 (nios2_delegitimize_address): New function.
25025 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
25026 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
25027 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
25028
25029 2014-04-01 Martin Husemann <martin@duskware.de>
25030
25031 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
25032 for -mabi=32.
25033
25034 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
25035
25036 PR rtl-optimization/60604
25037 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
25038 check from register_operand.
25039 (register_operand): Redefine in terms of general_operand.
25040 (nonmemory_operand): Use register_operand for the non-constant cases.
25041
25042 2014-04-01 Richard Biener <rguenther@suse.de>
25043
25044 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
25045
25046 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
25047
25048 * doc/invoke.texi (mapp-regs): Clarify.
25049
25050 2014-03-31 Ulrich Drepper <drepper@gmail.com>
25051
25052 * config/i386/avx512fintrin.h (__v32hi): Define type.
25053 (__v64qi): Likewise.
25054 (_mm512_set1_epi8): Define.
25055 (_mm512_set1_epi16): Define.
25056 (_mm512_set4_epi32): Define.
25057 (_mm512_set4_epi64): Define.
25058 (_mm512_set4_pd): Define.
25059 (_mm512_set4_ps): Define.
25060 (_mm512_setr4_epi64): Define.
25061 (_mm512_setr4_epi32): Define.
25062 (_mm512_setr4_pd): Define.
25063 (_mm512_setr4_ps): Define.
25064 (_mm512_setzero_epi32): Define.
25065
25066 2014-03-31 Martin Jambor <mjambor@suse.cz>
25067
25068 PR middle-end/60647
25069 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
25070 callsite_arguments_match_p. Updated all callers. Also check types of
25071 corresponding formal parameters and actual arguments.
25072 (not_all_callers_have_enough_arguments_p) Renamed to
25073 some_callers_have_mismatched_arguments_p.
25074
25075 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
25076
25077 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
25078
25079 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
25080
25081 PR target/60034
25082 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
25083 section anchor.
25084
25085 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
25086
25087 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
25088 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
25089 Split out
25090 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
25091 Use FMAMODE_NOVF512 mode iterator.
25092 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
25093 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
25094 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
25095 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
25096 Split out
25097 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
25098 Use VF_128_256 mode iterator.
25099 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
25100 Ditto.
25101
25102 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
25103
25104 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
25105 static chain if needed.
25106
25107 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
25108
25109 PR target/60697
25110 * lra-constraints.c (index_part_to_reg): New.
25111 (process_address): Use it.
25112
25113 2014-03-27 Jeff Law <law@redhat.com>
25114 Jakub Jelinek <jakub@redhat.com>
25115
25116 PR target/60648
25117 * expr.c (do_tablejump): Use simplify_gen_binary rather than
25118 gen_rtx_{PLUS,MULT} to build up the address expression.
25119
25120 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
25121 creating non-canonical RTL.
25122
25123 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
25124
25125 PR ipa/60243
25126 * ipa-inline.c (want_inline_small_function_p): Short circuit large
25127 functions; reorganize to make cheap checks first.
25128 (inline_small_functions): Do not estimate growth when dumping;
25129 it is expensive.
25130 * ipa-inline.h (inline_summary): Add min_size.
25131 (growth_likely_positive): New function.
25132 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
25133 (set_cond_stmt_execution_predicate): Cleanup.
25134 (estimate_edge_size_and_time): Compute min_size.
25135 (estimate_calls_size_and_time): Likewise.
25136 (estimate_node_size_and_time): Likewise.
25137 (inline_update_overall_summary): Update min_size.
25138 (do_estimate_edge_time): Likewise.
25139 (do_estimate_edge_size): Update.
25140 (do_estimate_edge_hints): Update.
25141 (growth_likely_positive): New function.
25142
25143 2014-03-28 Jakub Jelinek <jakub@redhat.com>
25144
25145 PR target/60693
25146 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
25147 also if addr has VOIDmode.
25148
25149 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25150
25151 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
25152 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
25153 Declare extern.
25154 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
25155 instructions as well as AdvancedSIMD loads.
25156
25157 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25158
25159 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
25160 Use crypto_aese type.
25161 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
25162 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
25163 crypto_aese, crypto_aesmc. Move to types.md.
25164 * config/arm/types.md (crypto_aes): Split into crypto_aese,
25165 crypto_aesmc.
25166 * config/arm/iterators.md (crypto_type): Likewise.
25167
25168 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
25169
25170 * cgraph.c: Include expr.h and tree-dfa.h.
25171 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
25172 remove LHS.
25173
25174 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
25175
25176 PR target/60675
25177 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
25178 regs from checking multi-reg pseudos.
25179
25180 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25181
25182 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
25183
25184 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25185
25186 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
25187 if it would clobber the stack pointer, even temporarily.
25188
25189 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
25190
25191 * mode-switching.c: Make small adjustments to the top comment.
25192
25193 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
25194
25195 * config/rs6000/constraints.md (wD constraint): New constraint to
25196 match the constant integer to get the top DImode/DFmode out of a
25197 vector in a VSX register.
25198
25199 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
25200 match the constant integer to get the top DImode/DFmode out of a
25201 vector in a VSX register.
25202
25203 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
25204 for ISA 2.07.
25205
25206 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25207 vbpermq builtins.
25208
25209 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
25210 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
25211
25212 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
25213 Optimize vec_extract of 64-bit values, where the value being
25214 extracted is in the top word, where we can use scalar
25215 instructions. Add direct move and store support. Combine the big
25216 endian/little endian vector select load support into a single insn.
25217 (vsx_extract_<mode>_internal1): Likewise.
25218 (vsx_extract_<mode>_internal2): Likewise.
25219 (vsx_extract_<mode>_load): Likewise.
25220 (vsx_extract_<mode>_store): Likewise.
25221 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
25222 combined into vsx_extract_<mode>_load.
25223 (vsx_extract_<mode>_one_le): Likewise.
25224
25225 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
25226 define the top 64-bit vector element.
25227
25228 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
25229 constraint.
25230
25231 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25232 Document vec_vbpermq builtin.
25233
25234 PR target/60672
25235 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
25236 enable use of xxsldwi and xxpermdi builtin functions.
25237 (vec_xxpermdi): Likewise.
25238
25239 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25240 Document use of vec_xxsldwi and vec_xxpermdi builtins.
25241
25242 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
25243
25244 PR rtl-optimization/60650
25245 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
25246 first_p. Use it.
25247 (find_spills_for): New.
25248 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
25249 Spill all pseudos on the second iteration.
25250
25251 2014-03-27 Marek Polacek <polacek@redhat.com>
25252
25253 PR c/50347
25254 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
25255 types.
25256
25257 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25258
25259 * config/s390/s390.c (s390_can_use_return_insn): Check for
25260 call-saved FPRs on 31 bit.
25261
25262 2014-03-27 Jakub Jelinek <jakub@redhat.com>
25263
25264 PR middle-end/60682
25265 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
25266 if they need regimplification, just drop them instead of
25267 calling gimple_regimplify_operands on them.
25268
25269 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
25270
25271 PR target/60580
25272 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
25273 (aarch64_frame_pointer_required): Adjust logic.
25274 (aarch64_can_eliminate): Adjust logic.
25275 (aarch64_override_options_after_change): Adjust logic.
25276
25277 2014-03-27 Dehao Chen <dehao@google.com>
25278
25279 * ipa-inline.c (early_inliner): Update node's inline info.
25280
25281 2014-03-26 Dehao Chen <dehao@google.com>
25282
25283 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
25284 compiler inserted conditional jumps for NAN float check.
25285
25286 2014-03-26 Jakub Jelinek <jakub@redhat.com>
25287
25288 * ubsan.h (ubsan_create_data): Change second argument's type
25289 to const location_t *.
25290 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
25291 _("<unknown>").
25292 (ubsan_create_data): Change second argument to const location_t *PLOC.
25293 Create Loc field whenever PLOC is non-NULL.
25294 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
25295 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
25296 callers.
25297
25298 PR other/59545
25299 * real.c (real_to_integer2): Change type of low to UHWI.
25300
25301 2014-03-26 Tobias Burnus <burnus@net-b.de>
25302
25303 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
25304 (CILK_SELF_SPECS): New define.
25305 (driver_self_specs): Use it.
25306
25307 2014-03-26 Richard Biener <rguenther@suse.de>
25308
25309 * tree-pretty-print.c (percent_K_format): Implement special
25310 case for LTO and its stripped down BLOCK tree.
25311
25312 2014-03-26 Jakub Jelinek <jakub@redhat.com>
25313
25314 PR sanitizer/60636
25315 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
25316
25317 * tree-vrp.c (simplify_internal_call_using_ranges): If only
25318 one range is range_int_cst_p, but not both, at least optimize
25319 addition/subtraction of 0 and multiplication by 0 or 1.
25320 * gimple-fold.c (gimple_fold_call): Fold
25321 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
25322 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
25323 INTEGER_CSTs, try to fold at least x * 0 and y - y.
25324
25325 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
25326
25327 PR rtl-optimization/60452
25328 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
25329 <case REG>: Return 1 for invalid offsets from the frame pointer.
25330
25331 2014-03-26 Marek Polacek <polacek@redhat.com>
25332
25333 PR c/37428
25334 * doc/extend.texi (C Extensions): Mention variable-length arrays in
25335 a structure/union.
25336
25337 2014-03-26 Marek Polacek <polacek@redhat.com>
25338
25339 PR c/39525
25340 * doc/extend.texi (Designated Inits): Describe what happens to omitted
25341 field members.
25342
25343 2014-03-26 Marek Polacek <polacek@redhat.com>
25344
25345 PR other/59545
25346 * ira-color.c (update_conflict_hard_regno_costs): Perform the
25347 multiplication in unsigned type.
25348
25349 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
25350
25351 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
25352
25353 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
25354
25355 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
25356
25357 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
25358
25359 PR ipa/60315
25360 * cif-code.def (UNREACHABLE) New code.
25361 * ipa-inline.c (inline_small_functions): Skip edges to
25362 __builtlin_unreachable.
25363 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
25364 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
25365 predicate to __bulitin_unreachable.
25366 (set_cond_stmt_execution_predicate): Fix issue when
25367 invert_tree_comparison returns ERROR_MARK.
25368 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
25369 propagate to inline clones.
25370 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
25371 to unreachable.
25372 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
25373 * cgraphclones.c (cgraph_clone_node): If call destination is already
25374 ureachable, do not redirect it back.
25375 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
25376 unreachable.
25377
25378 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
25379
25380 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
25381 Do not modify inline clones.
25382
25383 2014-03-25 Jakub Jelinek <jakub@redhat.com>
25384
25385 * config/i386/i386.md (general_sext_operand): New mode attr.
25386 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
25387 don't generate (sign_extend (const_int)).
25388 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
25389 operands[2]. Use We constraint instead of <i> and
25390 <general_sext_operand> predicate instead of <general_operand>.
25391 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
25392 * config/i386/constraints.md (We): New constraint.
25393 * config/i386/predicates.md (x86_64_sext_operand,
25394 sext_operand): New predicates.
25395
25396 2014-03-25 Martin Jambor <mjambor@suse.cz>
25397
25398 PR ipa/60600
25399 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
25400 inconsistent devirtualizations to __builtin_unreachable.
25401
25402 2014-03-25 Marek Polacek <polacek@redhat.com>
25403
25404 PR c/35449
25405 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
25406
25407 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
25408
25409 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
25410 order of elements for big-endian.
25411
25412 2014-03-25 Richard Biener <rguenther@suse.de>
25413
25414 PR middle-end/60635
25415 * gimplify-me.c (gimple_regimplify_operands): Update the
25416 re-gimplifed stmt.
25417
25418 2014-03-25 Martin Jambor <mjambor@suse.cz>
25419
25420 PR ipa/59176
25421 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
25422 (lto_output_varpool_node): Likewise.
25423 (input_overwrite_node): Likewise.
25424 (input_varpool_node): Likewise.
25425
25426 2014-03-25 Richard Biener <rguenther@suse.de>
25427
25428 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
25429 (run_gcc): Likewise.
25430
25431 2014-03-25 Jakub Jelinek <jakub@redhat.com>
25432
25433 * combine.c (simplify_compare_const): Add MODE argument.
25434 Handle mode_width 0 as very large mode_width.
25435 (try_combine, simplify_comparison): Adjust callers.
25436
25437 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
25438 type to avoid signed integer overflow.
25439 * explow.c (plus_constant): Likewise.
25440
25441 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
25442
25443 * doc/generic.texi: Correct typos.
25444
25445 2014-03-24 Tobias Burnus <burnus@net-b.de>
25446
25447 * doc/invoke.texi (-flto): Expand section about
25448 using static libraries with LTO.
25449
25450 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25451
25452 PR rtl-optimization/60501
25453 * optabs.def (addptr3_optab): New optab.
25454 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
25455 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
25456 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
25457
25458 * lra.c (emit_add3_insn): Use the addptr pattern if available.
25459
25460 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
25461
25462 2014-03-24 Ulrich Drepper <drepper@gmail.com>
25463
25464 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
25465 _mm512_set1_pd.
25466
25467 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
25468 (_mm256_undefined_ps): Define.
25469 (_mm256_undefined_pd): Define.
25470 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
25471 (_mm_undefined_pd): Define.
25472 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
25473 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
25474 (_mm512_undefined_ps): Define.
25475 (_mm512_undefined_pd): Define.
25476 Use _mm*_undefined_*.
25477 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
25478
25479 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
25480
25481 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
25482 (lshr_simd): DI mode added.
25483 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
25484 (aarch64_ushr_simddi): Likewise.
25485 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
25486 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
25487 (vshrd_n_u64): Likewise.
25488
25489 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25490
25491 * Makefile.in (s-macro_list): Depend on cc1.
25492
25493 2014-03-23 Teresa Johnson <tejohnson@google.com>
25494
25495 * ipa-utils.c (ipa_print_order): Use specified dump file.
25496
25497 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
25498
25499 PR rtl-optimization/60601
25500 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
25501
25502 * gcc.c (eval_spec_function): Initialize save_growing_value.
25503
25504 2014-03-22 Jakub Jelinek <jakub@redhat.com>
25505
25506 PR sanitizer/60613
25507 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
25508 code == MINUS_EXPR, never swap op0 with op1.
25509
25510 * toplev.c (init_local_tick): Avoid signed integer multiplication
25511 overflow.
25512 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
25513 shift by first operand's bitsize.
25514
25515 2014-03-21 Jakub Jelinek <jakub@redhat.com>
25516
25517 PR target/60610
25518 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
25519 redefine to 1 or 0.
25520 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
25521 TARGET_ISA_64BIT_P(x).
25522
25523 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25524
25525 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
25526 pattern for vector nor instead of subtract from splat(-1).
25527 (altivec_expand_vec_perm_const_le): Likewise.
25528
25529 2014-03-21 Richard Henderson <rth@twiddle.net>
25530
25531 PR target/60598
25532 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
25533 related insns after epilogue_completed.
25534
25535 2014-03-21 Martin Jambor <mjambor@suse.cz>
25536
25537 PR ipa/59176
25538 * cgraph.h (symtab_node): New flag body_removed.
25539 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
25540 when removing bodies.
25541 * symtab.c (dump_symtab_base): Dump body_removed flag.
25542 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
25543 had their bodies removed.
25544
25545 2014-03-21 Martin Jambor <mjambor@suse.cz>
25546
25547 PR ipa/60419
25548 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
25549 in the border.
25550
25551 2014-03-21 Richard Biener <rguenther@suse.de>
25552
25553 PR tree-optimization/60577
25554 * tree-core.h (struct tree_base): Document nothrow_flag use
25555 in DECL_NONALIASED.
25556 * tree.h (DECL_NONALIASED): New.
25557 (may_be_aliased): Adjust.
25558 * coverage.c (build_var): Set DECL_NONALIASED.
25559
25560 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25561
25562 * expr.c (expand_expr_real_1): Remove outdated comment.
25563
25564 2014-03-20 Jakub Jelinek <jakub@redhat.com>
25565
25566 PR middle-end/60597
25567 * ira.c (adjust_cleared_regs): Call copy_rtx on
25568 *reg_equiv[REGNO (loc)].src_p before passing it to
25569 simplify_replace_fn_rtx.
25570
25571 PR target/60568
25572 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
25573 into CONST, put pic register as first operand of PLUS. Use
25574 gen_const_mem for both 32-bit and 64-bit PIC got loads.
25575
25576 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25577
25578 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
25579
25580 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25581
25582 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
25583 around for store forwarding issue in the FPU on the UT699.
25584 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
25585 loads and operations if -mfix-ut699 is specified.
25586 (divtf3_hq): Tweak attribute.
25587 (sqrttf2_hq): Likewise.
25588
25589 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25590
25591 * calls.c (store_one_arg): Remove incorrect const qualification on the
25592 type of the temporary.
25593 * cfgexpand.c (expand_return): Likewise.
25594 * expr.c (expand_constructor): Likewise.
25595 (expand_expr_real_1): Likewise.
25596
25597 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25598
25599 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
25600 of parts.
25601
25602 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
25603
25604 PR target/60039
25605 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
25606
25607 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
25608
25609 * config/arm/aarch-common-protos.h
25610 (alu_cost_table): Fix spelling of "extend".
25611 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
25612
25613 2014-03-19 Richard Biener <rguenther@suse.de>
25614
25615 PR middle-end/60553
25616 * tree-core.h (tree_type_common): Re-order pointer members
25617 to reduce recursion depth during GC walks.
25618
25619 2014-03-19 Marek Polacek <polacek@redhat.com>
25620
25621 PR sanitizer/60569
25622 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
25623 before accessing it.
25624
25625 2014-03-19 Richard Biener <rguenther@suse.de>
25626
25627 PR lto/59543
25628 * lto-streamer-in.c (input_function): In WPA stage do not drop
25629 debug stmts.
25630
25631 2014-03-19 Jakub Jelinek <jakub@redhat.com>
25632
25633 PR tree-optimization/60559
25634 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
25635 with build_zero_cst assignment.
25636
25637 2014-03-18 Kai Tietz <ktietz@redhat.com>
25638
25639 PR rtl-optimization/56356
25640 * sdbout.c (sdbout_parms): Verify that parms'
25641 incoming argument is valid.
25642 (sdbout_reg_parms): Likewise.
25643
25644 2014-03-18 Richard Henderson <rth@redhat.com>
25645
25646 PR target/60562
25647 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
25648 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
25649 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
25650
25651 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
25652
25653 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
25654 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
25655 Italicize plugin event names in description. Explain that
25656 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
25657 Remind that no GCC functions should be called after PLUGIN_FINISH.
25658 Explain what pragmas with expansion are.
25659
25660 2014-03-18 Martin Liska <mliska@suse.cz>
25661
25662 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
25663 gimple call statement is update.
25664 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
25665 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
25666
25667 2014-03-18 Jakub Jelinek <jakub@redhat.com>
25668
25669 PR sanitizer/60557
25670 * ubsan.c (ubsan_instrument_unreachable): Call
25671 initialize_sanitizer_builtins.
25672 (ubsan_pass): Likewise.
25673
25674 PR sanitizer/60535
25675 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
25676 varpool_finalize_decl instead of rest_of_decl_compilation.
25677
25678 2014-03-18 Richard Biener <rguenther@suse.de>
25679
25680 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
25681 by using bitmap_and_compl instead of bitmap_and_compl_into.
25682 (df_rd_transfer_function): Likewise.
25683
25684 2014-03-18 Richard Biener <rguenther@suse.de>
25685
25686 * doc/lto.texi (fresolution): Fix typo.
25687
25688 2014-03-18 Richard Biener <rguenther@suse.de>
25689
25690 * doc/invoke.texi (flto): Update for changes in 4.9.
25691
25692 2014-03-18 Richard Biener <rguenther@suse.de>
25693
25694 * doc/loop.texi: Remove section on the removed lambda framework.
25695 Update loop docs with recent changes in preserving loop structure.
25696
25697 2014-03-18 Richard Biener <rguenther@suse.de>
25698
25699 * doc/lto.texi (-fresolution): Document.
25700
25701 2014-03-18 Richard Biener <rguenther@suse.de>
25702
25703 * doc/contrib.texi: Adjust my name.
25704
25705 2014-03-18 Jakub Jelinek <jakub@redhat.com>
25706
25707 PR ipa/58721
25708 * internal-fn.c: Include diagnostic-core.h.
25709 (expand_BUILTIN_EXPECT): New function.
25710 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
25711 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
25712 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
25713 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
25714 IFN_BUILTIN_EXPECT.
25715 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
25716 Revert 3 argument __builtin_expect code.
25717 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
25718 * gimple-fold.c (gimple_fold_call): Likewise.
25719 * tree.h (fold_builtin_expect): New prototype.
25720 * builtins.c (build_builtin_expect_predicate): Add predictor
25721 argument, if non-NULL, create 3 argument __builtin_expect.
25722 (fold_builtin_expect): No longer static. Add ARG2 argument,
25723 pass it through to build_builtin_expect_predicate.
25724 (fold_builtin_2): Adjust caller.
25725 (fold_builtin_3): Handle BUILT_IN_EXPECT.
25726 * internal-fn.def (BUILTIN_EXPECT): New.
25727
25728 2014-03-18 Tobias Burnus <burnus@net-b.de>
25729
25730 PR ipa/58721
25731 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
25732 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
25733 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
25734
25735 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
25736
25737 PR ipa/58721
25738 * predict.c (combine_predictions_for_bb): Fix up formatting.
25739 (expr_expected_value_1, expr_expected_value): Add predictor argument,
25740 fill what it points to if non-NULL.
25741 (tree_predict_by_opcode): Adjust caller, use the predictor.
25742 * predict.def (PRED_COMPARE_AND_SWAP): Add.
25743
25744 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
25745
25746 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
25747 proper constant for the store mode.
25748
25749 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
25750
25751 * symtab.c (change_decl_assembler_name): Fix transparent alias
25752 chain construction.
25753
25754 2014-03-16 Renlin Li <Renlin.Li@arm.com>
25755
25756 * config/aarch64/aarch64.c: Correct the comments about the
25757 aarch64 stack layout.
25758
25759 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
25760
25761 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
25762 check for GF_OMP_FOR_KIND_FOR.
25763
25764 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
25765
25766 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
25767 ymm and zmm register names.
25768
25769 2014-03-17 Jakub Jelinek <jakub@redhat.com>
25770
25771 PR target/60516
25772 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
25773 note creation for the 2010-08-31 changes.
25774
25775 2014-03-17 Marek Polacek <polacek@redhat.com>
25776
25777 PR middle-end/60534
25778 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
25779 as -fno-tree-loop-vectorize.
25780 (expand_omp_simd): Likewise.
25781
25782 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
25783
25784 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
25785 (eligible_for_call_delay): New prototype.
25786 * config/sparc/sparc.c (tls_call_delay): Rename into...
25787 (eligible_for_call_delay): ...this. Return false if the instruction
25788 cannot be put in the delay slot of a branch.
25789 (eligible_for_restore_insn): Simplify.
25790 (eligible_for_return_delay): Return false if the instruction cannot be
25791 put in the delay slot of a branch and simplify.
25792 (eligible_for_sibcall_delay): Return false if the instruction cannot be
25793 put in the delay slot of a branch.
25794 * config/sparc/sparc.md (fix_ut699): New attribute.
25795 (tls_call_delay): Delete.
25796 (in_call_delay): Reimplement.
25797 (eligible_for_sibcall_delay): Rename into...
25798 (in_sibcall_delay): ...this.
25799 (eligible_for_return_delay): Rename into...
25800 (in_return_delay): ...this.
25801 (in_branch_delay): Reimplement.
25802 (in_uncond_branch_delay): Delete.
25803 (in_annul_branch_delay): Delete.
25804
25805 2014-03-14 Richard Henderson <rth@redhat.com>
25806
25807 PR target/60525
25808 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
25809 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
25810 (*floathi<X87MODEF>2_i387_with_temp): Remove.
25811 (floathi splitters): Remove.
25812 (float<SWI48x>xf2): New pattern.
25813 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
25814 code that tried to handle DImode for 32-bit, but which was excluded
25815 by the pattern's condition. Drop allocation of stack temporary.
25816 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
25817 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
25818 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
25819 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
25820 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
25821 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
25822 (*float<SWI48><MODEF>2_sse_interunit): Remove.
25823 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
25824 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
25825 (*float<SWI48x><X87MODEF>2_i387): Remove.
25826 (all float _with_temp splitters): Remove.
25827 (*float<SWI48x><MODEF>2_i387): New pattern.
25828 (*float<SWI48><MODEF>2_sse): New pattern.
25829 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
25830 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
25831
25832 2014-03-14 Jakub Jelinek <jakub@redhat.com>
25833 Marek Polacek <polacek@redhat.com>
25834
25835 PR middle-end/60484
25836 * common.opt (dump_base_name_prefixed): New Variable.
25837 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
25838 if x_dump_base_name_prefixed is already set, set it at the end.
25839
25840 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
25841
25842 PR rtl-optimization/60508
25843 * lra-constraints.c (get_reload_reg): Add new parameter
25844 in_subreg_p.
25845 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
25846 Pass the new parameter values.
25847
25848 2014-03-14 Richard Biener <rguenther@suse.de>
25849
25850 * common.opt: Revert unintented changes from r205065.
25851 * opts.c: Likewise.
25852
25853 2014-03-14 Richard Biener <rguenther@suse.de>
25854
25855 PR middle-end/60518
25856 * cfghooks.c (split_block): Properly adjust all loops the
25857 block was a latch of.
25858
25859 2014-03-14 Martin Jambor <mjambor@suse.cz>
25860
25861 PR lto/60461
25862 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
25863 and simplify it.
25864
25865 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
25866
25867 PR target/59396
25868 * config/avr/avr.c (avr_set_current_function): Pass function name
25869 through default_strip_name_encoding before sanity checking instead
25870 of skipping the first char of the assembler name.
25871
25872 2014-03-13 Richard Henderson <rth@redhat.com>
25873
25874 PR debug/60438
25875 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
25876 (ix86_force_to_memory, ix86_free_from_memory): Remove.
25877 * config/i386/i386-protos.h: Likewise.
25878 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
25879 in the expander instead of a splitter.
25880 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
25881 any possibility of requiring a memory.
25882 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
25883 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
25884 (fp branch splitters): Update for ix86_split_fp_branch.
25885 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
25886 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
25887 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
25888 (*fop_<MODEF>_2_i387): Remove f/r alternative.
25889 (*fop_<MODEF>_3_i387): Likewise.
25890 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
25891 (splitters for the fop_* register patterns): Remove.
25892 (fscalexf4_i387): Rename from *fscalexf4_i387.
25893 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
25894
25895 2014-03-13 Jakub Jelinek <jakub@redhat.com>
25896
25897 PR tree-optimization/59779
25898 * tree-dfa.c (get_ref_base_and_extent): Use double_int
25899 type for bitsize and maxsize instead of HOST_WIDE_INT.
25900
25901 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
25902
25903 PR rtl-optimization/57320
25904 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
25905 the CFG after thread_prologue_and_epilogue_insns.
25906
25907 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
25908
25909 PR rtl-optimization/57189
25910 * lra-constraints.c (process_alt_operands): Disfavor spilling
25911 vector pseudos.
25912
25913 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
25914
25915 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
25916
25917 2014-03-13 Jakub Jelinek <jakub@redhat.com>
25918
25919 PR tree-optimization/59025
25920 PR middle-end/60418
25921 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
25922 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
25923
25924 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
25925
25926 PR target/60486
25927 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
25928 calls of avr_out_plus_1.
25929
25930 2014-03-13 Bin Cheng <bin.cheng@arm.com>
25931
25932 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
25933 BB's single pred and update the father loop's latch info later.
25934
25935 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
25936
25937 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
25938 (VEC_M): Likewise.
25939 (VEC_N): Likewise.
25940 (VEC_R): Likewise.
25941 (VEC_base): Likewise.
25942 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
25943 registers, we need to swap double words in little endian mode.
25944
25945 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
25946 to be a container mode for 128-bit integer operations added in ISA
25947 2.07. Unlike TImode and PTImode, the preferred register set is
25948 the Altivec/VMX registers for the 128-bit operations.
25949
25950 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
25951 declarations.
25952 (rs6000_split_128bit_ok_p): Likewise.
25953
25954 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
25955 macros for creating ISA 2.07 normal and overloaded builtin
25956 functions with 3 arguments.
25957 (BU_P8V_OVERLOAD_3): Likewise.
25958 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
25959 for use as overloaded functions.
25960 (VPERM_1TI_UNS): Likewise.
25961 (VSEL_1TI): Likewise.
25962 (VSEL_1TI_UNS): Likewise.
25963 (ST_INTERNAL_1ti): Likewise.
25964 (LD_INTERNAL_1ti): Likewise.
25965 (XXSEL_1TI): Likewise.
25966 (XXSEL_1TI_UNS): Likewise.
25967 (VPERM_1TI): Likewise.
25968 (VPERM_1TI_UNS): Likewise.
25969 (XXPERMDI_1TI): Likewise.
25970 (SET_1TI): Likewise.
25971 (LXVD2X_V1TI): Likewise.
25972 (STXVD2X_V1TI): Likewise.
25973 (VEC_INIT_V1TI): Likewise.
25974 (VEC_SET_V1TI): Likewise.
25975 (VEC_EXT_V1TI): Likewise.
25976 (EQV_V1TI): Likewise.
25977 (NAND_V1TI): Likewise.
25978 (ORC_V1TI): Likewise.
25979 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
25980 added in ISA 2.07. Add both normal 'altivec' builtins, and the
25981 overloaded builtin.
25982 (VADDUQM): Likewise.
25983 (VSUBCUQ): Likewise.
25984 (VADDEUQM): Likewise.
25985 (VADDECUQ): Likewise.
25986 (VSUBEUQM): Likewise.
25987 (VSUBECUQ): Likewise.
25988
25989 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
25990 __int128_t and __uint128_t types.
25991 (__uint128_type): Likewise.
25992 (altivec_categorize_keyword): Add support for vector __int128_t,
25993 vector __uint128_t, vector __int128, and vector unsigned __int128
25994 as a container type for TImode operations that need to be done in
25995 VSX/Altivec registers.
25996 (rs6000_macro_to_expand): Likewise.
25997 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
25998 to support 128-bit integer instructions vaddcuq, vadduqm,
25999 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
26000 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
26001
26002 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
26003 for V1TImode, and set up preferences to use VSX/Altivec registers.
26004 Setup VSX reload handlers.
26005 (rs6000_debug_reg_global): Likewise.
26006 (rs6000_init_hard_regno_mode_ok): Likewise.
26007 (rs6000_preferred_simd_mode): Likewise.
26008 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
26009 (easy_altivec_constant): Likewise.
26010 (output_vec_const_move): Likewise.
26011 (rs6000_expand_vector_set): Convert V1TImode set and extract to
26012 simple move.
26013 (rs6000_expand_vector_extract): Likewise.
26014 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
26015 addressing.
26016 (rs6000_const_vec): Add support for V1TImode.
26017 (rs6000_emit_le_vsx_load): Swap double words when loading or
26018 storing TImode/V1TImode.
26019 (rs6000_emit_le_vsx_store): Likewise.
26020 (rs6000_emit_le_vsx_move): Likewise.
26021 (rs6000_emit_move): Add support for V1TImode.
26022 (altivec_expand_ld_builtin): Likewise.
26023 (altivec_expand_st_builtin): Likewise.
26024 (altivec_expand_vec_init_builtin): Likewise.
26025 (altivec_expand_builtin): Likewise.
26026 (rs6000_init_builtins): Add support for V1TImode type. Add
26027 support for ISA 2.07 128-bit integer builtins. Define type names
26028 for the VSX/Altivec vector types.
26029 (altivec_init_builtins): Add support for overloaded vector
26030 functions with V1TImode type.
26031 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
26032 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
26033 external function.
26034 (rs6000_split_128bit_ok_p): Likewise.
26035 (rs6000_handle_altivec_attribute): Create V1TImode from vector
26036 __int128_t and vector __uint128_t.
26037
26038 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
26039 and mode attributes.
26040 (VSX_M): Likewise.
26041 (VSX_M2): Likewise.
26042 (VSm): Likewise.
26043 (VSs): Likewise.
26044 (VSr): Likewise.
26045 (VSv): Likewise.
26046 (VS_scalar): Likewise.
26047 (VS_double): Likewise.
26048 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
26049
26050 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
26051 we support the ISA 2.07 128-bit integer arithmetic instructions.
26052 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
26053 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
26054 and TImode types for use with the builtin functions.
26055 (V1TI_type_node): Likewise.
26056 (unsigned_V1TI_type_node): Likewise.
26057 (intTI_type_internal_node): Likewise.
26058 (uintTI_type_internal_node): Likewise.
26059
26060 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
26061 128-bit builtin functions.
26062 (UNSPEC_VADDEUQM): Likewise.
26063 (UNSPEC_VADDECUQ): Likewise.
26064 (UNSPEC_VSUBCUQ): Likewise.
26065 (UNSPEC_VSUBEUQM): Likewise.
26066 (UNSPEC_VSUBECUQ): Likewise.
26067 (VM): Add V1TImode to vector mode iterators.
26068 (VM2): Likewise.
26069 (VI_unit): Likewise.
26070 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
26071 (altivec_vaddcuq): Likewise.
26072 (altivec_vsubuqm): Likewise.
26073 (altivec_vsubcuq): Likewise.
26074 (altivec_vaddeuqm): Likewise.
26075 (altivec_vaddecuq): Likewise.
26076 (altivec_vsubeuqm): Likewise.
26077 (altivec_vsubecuq): Likewise.
26078
26079 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
26080 mode iterators.
26081 (BOOL_128): Likewise.
26082 (BOOL_REGS_OUTPUT): Likewise.
26083 (BOOL_REGS_OP1): Likewise.
26084 (BOOL_REGS_OP2): Likewise.
26085 (BOOL_REGS_UNARY): Likewise.
26086 (BOOL_REGS_AND_CR0): Likewise.
26087
26088 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
26089 128-bit integer builtin support.
26090 (vec_vadduqm): Likewise.
26091 (vec_vaddecuq): Likewise.
26092 (vec_vaddeuqm): Likewise.
26093 (vec_vsubecuq): Likewise.
26094 (vec_vsubeuqm): Likewise.
26095 (vec_vsubcuq): Likewise.
26096 (vec_vsubuqm): Likewise.
26097
26098 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26099 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
26100 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
26101 128-bit integer add/subtract to ISA 2.07.
26102
26103 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
26104
26105 * config/arc/arc.c (arc_predicate_delay_insns):
26106 Fix third argument passed to conditionalize_nonjump.
26107
26108 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
26109
26110 * config/aarch64/aarch64-builtins.c
26111 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
26112 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
26113 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
26114 instead of __builtin_lfloor.
26115 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
26116
26117 2014-03-12 Jakub Jelinek <jakub@redhat.com>
26118
26119 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
26120 (tree_ssa_ifcombine_bb_1): New function.
26121 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
26122 is an empty forwarder block to then_bb or vice versa and then_bb
26123 and else_bb are effectively swapped.
26124
26125 2014-03-12 Christian Bruel <christian.bruel@st.com>
26126
26127 PR target/60264
26128 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
26129 REG_CFA_DEF_CFA note.
26130 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
26131 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
26132
26133 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
26134
26135 PR tree-optimization/60454
26136 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
26137
26138 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26139
26140 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
26141 Do not define target_cpu_default2 to generic.
26142 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
26143 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
26144 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
26145
26146 2014-03-12 Jakub Jelinek <jakub@redhat.com>
26147 Marc Glisse <marc.glisse@inria.fr>
26148
26149 PR tree-optimization/60502
26150 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
26151 instead of build_low_bits_mask.
26152
26153 2014-03-12 Jakub Jelinek <jakub@redhat.com>
26154
26155 PR middle-end/60482
26156 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
26157 if there are multiple uses, but op doesn't live on E edge.
26158 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
26159 clobber stmts before __builtin_unreachable.
26160
26161 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
26162
26163 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
26164 hard_frame_pointer_rtx.
26165 * cse.c (cse_insn): Remove volatile check.
26166 * cselib.c (cselib_process_insn): Likewise.
26167 * dse.c (scan_insn): Likewise.
26168
26169 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
26170
26171 * config/arc/arc.c (conditionalize_nonjump): New function,
26172 broken out of ...
26173 (arc_ifcvt): ... this.
26174 (arc_predicate_delay_insns): Use it.
26175
26176 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
26177
26178 * config/arc/predicates.md (extend_operand): During/after reload,
26179 allow const_int_operand.
26180 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
26181 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
26182 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
26183 to "i".
26184 (umulsi3_highpart_i): Likewise.
26185
26186 2014-03-11 Richard Biener <rguenther@suse.de>
26187
26188 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
26189 Add asserts to guard possible wrong-code bugs.
26190
26191 2014-03-11 Richard Biener <rguenther@suse.de>
26192
26193 PR tree-optimization/60429
26194 PR tree-optimization/60485
26195 * tree-ssa-structalias.c (set_union_with_increment): Properly
26196 take into account all fields that overlap the shifted vars.
26197 (do_sd_constraint): Likewise.
26198 (do_ds_constraint): Likewise.
26199 (get_constraint_for_ptr_offset): Likewise.
26200
26201 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
26202
26203 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
26204 (nios2_compute_frame_layout):
26205 Add calculation of cfun->machine->fp_save_offset.
26206 (nios2_expand_prologue): Correct setting of frame pointer register
26207 in prologue.
26208 (nios2_expand_epilogue): Update recovery of stack pointer from
26209 frame pointer accordingly.
26210 (nios2_initial_elimination_offset): Update calculation of offset
26211 for eliminating to HARD_FRAME_POINTER_REGNUM.
26212
26213 2014-03-10 Jakub Jelinek <jakub@redhat.com>
26214
26215 PR ipa/60457
26216 * ipa.c (symtab_remove_unreachable_nodes): Don't call
26217 cgraph_get_create_node on VAR_DECLs.
26218
26219 2014-03-10 Richard Biener <rguenther@suse.de>
26220
26221 PR middle-end/60474
26222 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
26223
26224 2014-03-08 Douglas B Rupp <rupp@gnat.com>
26225
26226 * config/vms/vms.opt (vms_float_format): New variable.
26227
26228 2014-03-08 Tobias Burnus <burnus@net-b.de>
26229
26230 * doc/invoke.texi (-fcilkplus): Update implementation status.
26231
26232 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
26233 Richard Biener <rguenther@suse.de>
26234
26235 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
26236 consistently accross all TUs.
26237 (run_gcc): Enable -fshort-double automatically at link at link-time
26238 and disallow override.
26239
26240 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
26241
26242 PR target/58271
26243 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
26244 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
26245 if they can't be used.
26246
26247 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26248
26249 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
26250 for Solaris 11/x86 ld.
26251 * configure: Regenerate.
26252
26253 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26254
26255 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
26256 (LIB_TLS_SPEC): Save as ld_tls_libs.
26257 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
26258 (HAVE_AS_IX86_TLSLDM): New test.
26259 * configure, config.in: Regenerate.
26260 * config/i386/i386.c (legitimize_tls_address): Fall back to
26261 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
26262 cannot support TLS_MODEL_LOCAL_DYNAMIC.
26263 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
26264 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
26265
26266 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
26267
26268 * common.opt (fira-loop-pressure): Mark as optimization.
26269
26270 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
26271
26272 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
26273 an OpenMP mappable type.
26274
26275 2014-03-06 Matthias Klose <doko@ubuntu.com>
26276
26277 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
26278 MULTILIB_OSDIRNAMES is not defined.
26279
26280 2014-03-06 Jakub Jelinek <jakub@redhat.com>
26281 Meador Inge <meadori@codesourcery.com>
26282
26283 PR target/58595
26284 * config/arm/arm.c (arm_tls_symbol_p): Remove.
26285 (arm_legitimize_address): Call legitimize_tls_address for any
26286 arm_tls_referenced_p expression, handle constant addend. Call it
26287 before testing for !TARGET_ARM.
26288 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
26289
26290 2014-03-06 Richard Biener <rguenther@suse.de>
26291
26292 PR middle-end/60445
26293 PR lto/60424
26294 PR lto/60427
26295 Revert
26296 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
26297
26298 * tree-streamer.c (record_common_node): Assert we don't record
26299 nodes with type double.
26300 (preload_common_node): Skip type double, complex double and double
26301 pointer since it is now frontend dependent due to fshort-double option.
26302
26303 2014-03-06 Richard Biener <rguenther@suse.de>
26304
26305 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
26306 or -fno-lto is specified and the linker has full plugin support.
26307 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
26308 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
26309 * lto-wrapper.c (merge_and_complain): Merge compile-time
26310 optimization levels.
26311 (run_gcc): And pass it through to the link options.
26312
26313 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
26314
26315 PR debug/60381
26316 Revert:
26317 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26318 PR debug/59992
26319 * cselib.c (remove_useless_values): Skip to avoid quadratic
26320 behavior if the condition moved from...
26321 (cselib_process_insn): ... here holds.
26322
26323 2014-03-05 Jakub Jelinek <jakub@redhat.com>
26324
26325 PR plugins/59335
26326 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
26327 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
26328
26329 PR plugins/59335
26330 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
26331 (TM_H): Add x86-tune.def.
26332
26333 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26334
26335 * config/aarch64/aarch64.c (generic_tunings):
26336 Use cortexa57_extra_costs.
26337
26338 2014-03-05 Jakub Jelinek <jakub@redhat.com>
26339
26340 PR lto/60404
26341 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
26342 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
26343 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
26344 cost for in_lto_p.
26345
26346 2014-03-04 Heiher <r@hev.cc>
26347
26348 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
26349 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
26350
26351 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
26352
26353 * config/i386/predicates.md (const2356_operand): Change to ...
26354 (const2367_operand): ... this.
26355 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
26356 const2367_operand.
26357 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26358 (*avx512pf_scatterpf<mode>sf): Ditto.
26359 (avx512pf_scatterpf<mode>df): Ditto.
26360 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26361 (*avx512pf_scatterpf<mode>df): Ditto.
26362 * config/i386/i386.c (ix86_expand_builtin): Update
26363 incorrect hint operand error message.
26364
26365 2014-03-04 Richard Biener <rguenther@suse.de>
26366
26367 * lto-section-in.c (lto_get_section_data): Fix const cast.
26368
26369 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
26370
26371 * tree-streamer.c (record_common_node): Assert we don't record
26372 nodes with type double.
26373 (preload_common_node): Skip type double, complex double and double
26374 pointer since it is now frontend dependent due to fshort-double option.
26375
26376 2014-03-04 Richard Biener <rguenther@suse.de>
26377
26378 PR lto/60405
26379 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
26380 (lto_input_toplevel_asms): Likewise.
26381 * lto-section-in.c (lto_get_section_data): Instead do it here
26382 for every section.
26383
26384 2014-03-04 Richard Biener <rguenther@suse.de>
26385
26386 PR tree-optimization/60382
26387 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
26388 dead PHIs a reduction.
26389
26390 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
26391
26392 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
26393 hint value.
26394 (_mm_prefetch): Move out of GCC target("sse") pragma.
26395 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
26396 GCC target("prfchw") pragma.
26397 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
26398 for locality <= 2.
26399 * config/i386/i386.c (ix86_option_override_internal): Enable
26400 -mprfchw with -mprefetchwt1.
26401
26402 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
26403
26404 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
26405 Mark as varying.
26406
26407 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
26408
26409 * opts.h (CL_PCH_IGNORE): Define.
26410 * targhooks.c (option_affects_pch_p):
26411 Return false for options that have CL_PCH_IGNORE set.
26412 * opt-functions.awk: Process PchIgnore.
26413 * doc/options.texi: Document PchIgnore.
26414
26415 * config/arc/arc.opt (misize): Add PchIgnore property.
26416
26417 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26418
26419 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
26420 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
26421 constraint on constants to permit them being loaded into
26422 GENERAL_REGS or BASE_REGS.
26423
26424 2014-03-03 Nick Clifton <nickc@redhat.com>
26425
26426 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
26427 anti-cacnonical alternatives.
26428 (negandhi3_real): New pattern.
26429 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
26430
26431 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26432
26433 * config/avr/avr-mcus.def: Remove atxmega16x1.
26434 * config/avr/avr-tables.opt: Regenerate.
26435 * config/avr/t-multilib: Regenerate.
26436 * doc/avr-mmcu.texi: Regenerate.
26437
26438 2014-03-03 Tobias Grosser <tobias@grosser.es>
26439 Mircea Namolaru <mircea.namolaru@inria.fr>
26440
26441 PR tree-optimization/58028
26442 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
26443 scalar dimensions.
26444
26445 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26446
26447 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
26448 not handled by recognizers.
26449
26450 2014-03-03 Jakub Jelinek <jakub@redhat.com>
26451
26452 PR middle-end/60175
26453 * function.c (expand_function_end): Don't emit
26454 clobber_return_register sequence if clobber_after is a BARRIER.
26455 * cfgexpand.c (construct_exit_block): Append instructions before
26456 return_label to prev_bb.
26457
26458 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26459
26460 * config/rs6000/constraints.md: Document reserved use of "wc".
26461
26462 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
26463
26464 PR ipa/60150
26465 * ipa.c (function_and_variable_visibility): When dissolving comdat
26466 group, also set all symbols to local.
26467
26468 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
26469
26470 PR ipa/60306
26471
26472 Revert:
26473 2013-12-14 Jan Hubicka <jh@suse.cz>
26474 PR middle-end/58477
26475 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
26476
26477 2014-03-02 Jon Beniston <jon@beniston.com>
26478
26479 PR bootstrap/48230
26480 PR bootstrap/50927
26481 PR bootstrap/52466
26482 PR target/46898
26483 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
26484 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
26485 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
26486 (simple_return, *simple_return): New patterns
26487 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
26488 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
26489
26490 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
26491
26492 * dwarf2out.c (gen_subprogram_die): Tidy.
26493
26494 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
26495
26496 PR target/60071
26497 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
26498 (*mov_t_msb_neg_negc): ... this new insn.
26499
26500 2014-02-28 Jason Merrill <jason@redhat.com>
26501
26502 PR c++/58678
26503 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
26504 function.
26505
26506 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
26507
26508 PR c++/60314
26509 * dwarf2out.c (decltype_auto_die): New static.
26510 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
26511 (gen_type_die_with_usage): Handle 'decltype(auto)'.
26512 (is_cxx_auto): Likewise.
26513
26514 2014-02-28 Ian Bolton <ian.bolton@arm.com>
26515
26516 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
26517 we are not using general regs only.
26518
26519 2014-02-28 Richard Biener <rguenther@suse.de>
26520
26521 PR target/60280
26522 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
26523 previous fix and only allow to remove trivial pre-headers
26524 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
26525 (remove_forwarder_block): Properly update the latch of a loop.
26526
26527 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26528
26529 PR debug/59992
26530 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
26531 (cselib_preserved_hash_table): New.
26532 (preserve_constants_and_equivs): Move preserved vals to it.
26533 (cselib_find_slot): Look it up first.
26534 (cselib_init): Initialize it.
26535 (cselib_finish): Release it.
26536 (dump_cselib_table): Dump it.
26537
26538 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26539
26540 PR debug/59992
26541 * cselib.c (remove_useless_values): Skip to avoid quadratic
26542 behavior if the condition moved from...
26543 (cselib_process_insn): ... here holds.
26544
26545 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26546
26547 PR debug/57232
26548 * var-tracking.c (vt_initialize): Apply the same condition to
26549 preserve the CFA base value.
26550
26551 2014-02-28 Joey Ye <joey.ye@arm.com>
26552
26553 PR target/PR60169
26554 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
26555 if reload in progress or completed.
26556
26557 2014-02-28 Tobias Burnus <burnus@net-b.de>
26558
26559 PR middle-end/60147
26560 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
26561 NAMELIST_DECL.
26562
26563 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
26564
26565 * doc/tm.texi.in (Condition Code Status): Update documention for
26566 relative locations of cc0-setter and cc0-user.
26567
26568 2014-02-27 Jeff Law <law@redhat.com>
26569
26570 PR rtl-optimization/52714
26571 * combine.c (try_combine): When splitting an unrecognized PARALLEL
26572 into two independent simple sets, if I3 is a jump, ensure the
26573 pattern we place into I3 is a (set (pc) ...).
26574
26575 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
26576 Jeff Law <law@redhat.com>
26577
26578 PR rtl-optimization/49847
26579 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
26580 are in different blocks.
26581 * doc/tm.texi (Condition Code Status): Update documention for
26582 relative locations of cc0-setter and cc0-user.
26583
26584 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
26585
26586 PR target/59222
26587 * lra.c (lra_emit_add): Check SUBREG too.
26588
26589 2014-02-27 Andreas Schwab <schwab@suse.de>
26590
26591 * config/m68k/m68k.c (m68k_option_override): Disable
26592 -flive-range-shrinkage for classic m68k.
26593 (m68k_override_options_after_change): Likewise.
26594
26595 2014-02-27 Marek Polacek <polacek@redhat.com>
26596
26597 PR middle-end/59223
26598 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
26599 -Wmaybe-uninitialized.
26600
26601 2014-02-27 Alan Modra <amodra@gmail.com>
26602
26603 PR target/57936
26604 * reload1.c (emit_input_reload_insns): When reload_override_in,
26605 set old to rl->in_reg when rl->in_reg is a subreg.
26606
26607 2014-02-26 Richard Biener <rguenther@suse.de>
26608
26609 PR bootstrap/60343
26610 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
26611
26612 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
26613
26614 * common/config/i386/predicates.md (const1256_operand): Remove.
26615 (const2356_operand): New.
26616 (const_1_to_2_operand): Remove.
26617 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
26618 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
26619 (*avx512pf_gatherpf<mode>sf): Ditto.
26620 (avx512pf_gatherpf<mode>df): Ditto.
26621 (*avx512pf_gatherpf<mode>df_mask): Ditto.
26622 (*avx512pf_gatherpf<mode>df): Ditto.
26623 (avx512pf_scatterpf<mode>sf): Ditto.
26624 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26625 (*avx512pf_scatterpf<mode>sf): Ditto.
26626 (avx512pf_scatterpf<mode>df): Ditto.
26627 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26628 (*avx512pf_scatterpf<mode>df): Ditto.
26629 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
26630
26631 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
26632
26633 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
26634 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
26635 (_mm512_mask_testn_epi64_mask): Move to ...
26636 * config/i386/avx512cdintrin.h: Here.
26637 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
26638 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
26639 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
26640 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
26641 TARGET_AVX512F from TARGET_AVX512CD.
26642
26643 2014-02-26 Richard Biener <rguenther@suse.de>
26644
26645 PR ipa/60327
26646 * ipa.c (walk_polymorphic_call_targets): Properly guard
26647 call to inline_update_overall_summary.
26648
26649 2014-02-26 Bin Cheng <bin.cheng@arm.com>
26650
26651 PR target/60280
26652 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
26653 and latches only if requested. Fix latch if it is removed.
26654 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
26655 LOOPS_HAVE_PREHEADERS.
26656
26657 2014-02-25 Andrew Pinski <apinski@cavium.com>
26658
26659 * builtins.c (expand_builtin_thread_pointer): Create a new target
26660 when the target is NULL.
26661
26662 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
26663
26664 PR rtl-optimization/60317
26665 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26666 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26667 * lra-assigns.c: Include params.h.
26668 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
26669 other reload pseudos considerations.
26670
26671 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26672
26673 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
26674 to use canonical form for nor<mode>3.
26675
26676 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26677
26678 PR target/55426
26679 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
26680 conversions.
26681
26682 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
26683
26684 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
26685 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
26686 (ix86_handle_option): Handle OPT_mprefetchwt1.
26687 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
26688 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26689 PREFETCHWT1 CPUID.
26690 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26691 OPTION_MASK_ISA_PREFETCHWT1.
26692 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
26693 (PTA_PREFETCHWT1): New.
26694 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
26695 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
26696 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
26697 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
26698 (*prefetch_avx512pf_<mode>_: Change into ...
26699 (*prefetch_prefetchwt1_<mode>: This.
26700 * config/i386/i386.opt (mprefetchwt1): New.
26701 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
26702 (_mm_prefetch): Handle intent to write.
26703 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
26704
26705 2014-02-25 Richard Biener <rguenther@suse.de>
26706
26707 PR middle-end/60291
26708 * emit-rtl.c (mem_attrs_htab): Remove.
26709 (mem_attrs_htab_hash): Likewise.
26710 (mem_attrs_htab_eq): Likewise.
26711 (set_mem_attrs): Always allocate new mem-attrs when something changed.
26712 (init_emit_once): Do not allocate mem_attrs_htab.
26713
26714 2014-02-25 Richard Biener <rguenther@suse.de>
26715
26716 PR lto/60319
26717 * lto-opts.c (lto_write_options): Output non-explicit conservative
26718 -fwrapv, -fno-trapv and -fno-strict-overflow.
26719 * lto-wrapper.c (merge_and_complain): Handle merging those options.
26720 (run_gcc): And pass them through.
26721
26722 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
26723
26724 * sel-sched.c (calculate_new_fences): New parameter ptime.
26725 Calculate it as a maximum over all fence cycles.
26726 (sel_sched_region_2): Adjust the call to calculate_new_fences.
26727 Print the final schedule timing when sched_verbose.
26728
26729 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
26730
26731 PR rtl-optimization/60292
26732 * sel-sched.c (fill_vec_av_set): Do not reset target availability
26733 bit fot the fence instruction.
26734
26735 2014-02-24 Alangi Derick <alangiderick@gmail.com>
26736
26737 * calls.h: Fix typo in comment.
26738
26739 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
26740
26741 * config/pa/pa.c (pa_output_move_double): Don't valididate when
26742 adjusting offsetable addresses.
26743
26744 2014-02-24 Guozhi Wei <carrot@google.com>
26745
26746 * sparseset.h (sparseset_pop): Fix the wrong index.
26747
26748 2014-02-24 Walter Lee <walt@tilera.com>
26749
26750 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
26751 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
26752 triplet.
26753 * common/config/tilegx/tilegx-common.c
26754 (TARGET_DEFAULT_TARGET_FLAGS): Define.
26755 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
26756 (LINK_SPEC): Ditto.
26757 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
26758 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
26759 (tilegx_gimplify_va_arg_expr): Handle big endian.
26760 (tilegx_expand_unaligned_load): Ditto.
26761 (tilegx_expand_unaligned_store): Ditto.
26762 (TARGET_RETURN_IN_MSB): New.
26763 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
26764 (TARGET_ENDIAN_DEFAULT): New.
26765 (TARGET_BIG_ENDIAN): Handle big endian.
26766 (BYTES_BIG_ENDIAN): Ditto.
26767 (WORDS_BIG_ENDIAN): Ditto.
26768 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
26769 (ENDIAN_SPEC): New.
26770 (EXTRA_SPECS): New.
26771 * config/tilegx/tilegx.md (extv): Handle big endian.
26772 (extzv): Ditto.
26773 (insn_st<n>): Ditto.
26774 (insn_st<n>_add<bitsuffix>): Ditto.
26775 (insn_stnt<n>): Ditto.
26776 (insn_stnt<n>_add<bitsuffix>):Ditto.
26777 (vec_interleave_highv8qi): Handle big endian.
26778 (vec_interleave_highv8qi_be): New.
26779 (vec_interleave_highv8qi_le): New.
26780 (insn_v1int_h): Handle big endian.
26781 (vec_interleave_lowv8qi): Handle big endian.
26782 (vec_interleave_lowv8qi_be): New.
26783 (vec_interleave_lowv8qi_le): New.
26784 (insn_v1int_l): Handle big endian.
26785 (vec_interleave_highv4hi): Handle big endian.
26786 (vec_interleave_highv4hi_be): New.
26787 (vec_interleave_highv4hi_le): New.
26788 (insn_v2int_h): Handle big endian.
26789 (vec_interleave_lowv4hi): Handle big endian.
26790 (vec_interleave_lowv4hi_be): New.
26791 (vec_interleave_lowv4hi_le): New.
26792 (insn_v2int_l): Handle big endian.
26793 (vec_interleave_highv2si): Handle big endian.
26794 (vec_interleave_highv2si_be): New.
26795 (vec_interleave_highv2si_le): New.
26796 (insn_v4int_h): Handle big endian.
26797 (vec_interleave_lowv2si): Handle big endian.
26798 (vec_interleave_lowv2si_be): New.
26799 (vec_interleave_lowv2si_le): New.
26800 (insn_v4int_l): Handle big endian.
26801 * config/tilegx/tilegx.opt (mbig-endian): New option.
26802 (mlittle-endian): New option.
26803 * doc/install.texi: Document tilegxbe-linux.
26804 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
26805
26806 2014-02-24 Martin Jambor <mjambor@suse.cz>
26807
26808 PR ipa/60266
26809 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
26810 there are no parameter descriptors.
26811
26812 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
26813
26814 PR rtl-optimization/60268
26815 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
26816 initialization to ...
26817 (sched_rgn_init): ... here.
26818 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
26819
26820 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
26821
26822 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
26823 names.
26824
26825 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
26826
26827 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
26828 definition.
26829
26830 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
26831
26832 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
26833 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
26834
26835 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
26836
26837 * config/microblaze/predicates.md: Add cmp_op predicate.
26838 * config/microblaze/microblaze.md: Add branch_compare instruction
26839 which uses cmp_op predicate and emits cmp insn before branch.
26840 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
26841 to microblaze_expand_conditional_branch and consolidate logic.
26842 (microblaze_expand_conditional_branch): emit branch_compare
26843 insn instead of handling cmp op separate from branch insn.
26844
26845 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26846
26847 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
26848 to permit subregs.
26849
26850 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26851
26852 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
26853 define_insn with define_expand and new define_insn
26854 *altivec_lve<VI_char>x_internal.
26855 (altivec_stve<VI_char>x): Replace define_insn with define_expand
26856 and new define_insn *altivec_stve<VI_char>x_internal.
26857 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
26858 prototype.
26859 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
26860 lve*x built-ins.
26861 (altivec_expand_stvex_be): New function.
26862
26863 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
26864
26865 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
26866 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
26867 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
26868 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
26869
26870 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
26871
26872 PR target/60298
26873 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
26874 instead of emit_move_insn.
26875
26876 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26877
26878 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
26879 vspltw with vsldoi.
26880 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
26881 gen_altivec_vsumsws.
26882
26883 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26884
26885 * config/rs6000/altivec.md (altivec_lvxl): Rename as
26886 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
26887 (altivec_lvxl_<mode>): New define_expand incorporating
26888 -maltivec=be semantics where needed.
26889 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
26890 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
26891 semantics where needed.
26892 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
26893 (altivec_stvx_<mode>): New define_expand incorporating
26894 -maltivec=be semantics where needed.
26895 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
26896 VM2 iterator instead of V4SI.
26897 (altivec_stvxl_<mode>): New define_expand incorporating
26898 -maltivec=be semantics where needed.
26899 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
26900 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
26901 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
26902 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
26903 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
26904 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
26905 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
26906 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
26907 ALTIVEC_BUILTIN_STVXL.
26908 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
26909 (altivec_expand_stvx_be): Likewise.
26910 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
26911 (altivec_expand_lvx_be): Likewise.
26912 (altivec_expand_stvx_be): Likewise.
26913 (altivec_expand_builtin): Add cases for
26914 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
26915 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
26916 (altivec_init_builtins): Add definitions for
26917 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
26918 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
26919
26920 2014-02-21 Catherine Moore <clm@codesourcery.com>
26921
26922 * doc/invoke.texi (mvirt, mno-virt): Document.
26923 * config/mips/mips.opt (mvirt): New option.
26924 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
26925
26926 2014-02-21 Richard Biener <rguenther@suse.de>
26927
26928 PR tree-optimization/60276
26929 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
26930 (STMT_VINFO_MIN_NEG_DIST): New macro.
26931 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
26932 STMT_VINFO_MIN_NEG_DIST.
26933 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
26934 made for negative dependence distances still hold.
26935
26936 2014-02-21 Richard Biener <rguenther@suse.de>
26937
26938 PR middle-end/60291
26939 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
26940 DECL_INITIAL for globals not in the current function context.
26941
26942 2014-02-21 Jakub Jelinek <jakub@redhat.com>
26943
26944 PR tree-optimization/56490
26945 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
26946 * tree-ssa-uninit.c: Include params.h.
26947 (compute_control_dep_chain): Add num_calls argument, return false
26948 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
26949 num_calls to recursive call.
26950 (find_predicates): Change dep_chain into normal array,
26951 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
26952 variable and adjust compute_control_dep_chain caller.
26953 (find_def_preds): Likewise.
26954
26955 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
26956
26957 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
26958 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
26959
26960 2014-02-21 Nick Clifton <nickc@redhat.com>
26961
26962 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
26963 (pushhi1): Likewise.
26964 (popqi1): Add mode to pre_dec.
26965 (pophi1): Likewise.
26966
26967 2014-02-21 Jakub Jelinek <jakub@redhat.com>
26968
26969 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
26970 mode for mask of V8SFmode permutation.
26971
26972 2014-02-20 Richard Henderson <rth@redhat.com>
26973
26974 PR c++/60272
26975 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
26976 a new pseudo for OLDVAL.
26977
26978 2014-02-20 Jakub Jelinek <jakub@redhat.com>
26979
26980 PR target/57896
26981 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
26982 gen_reg_rtx if d->testing_p.
26983 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
26984 if d->testing_p and we will certainly return true.
26985 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
26986 if d->testing_p.
26987
26988 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
26989
26990 * emit-rtl.c (gen_reg_rtx): Assert that
26991 crtl->emit.regno_pointer_align_length is non-zero.
26992
26993 2014-02-20 Richard Henderson <rth@redhat.com>
26994
26995 PR c++/60272
26996 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
26997 on failure the store back into EXPECT.
26998
26999 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
27000 Sandra Loosemore <sandra@codesourcery.com>
27001
27002 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
27003 * config/nios2/nios2.c (nios2_function_profiler): Add
27004 -fPIC (flag_pic == 2) support.
27005 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
27006 (nios2_large_offset_p): New function.
27007 (nios2_unspec_reloc_p): Move up position, update to use
27008 nios2_large_offset_p.
27009 (nios2_unspec_address): Remove function.
27010 (nios2_unspec_offset): New function.
27011 (nios2_large_got_address): New function.
27012 (nios2_got_address): Add large offset support.
27013 (nios2_legitimize_tls_address): Update usage of removed and new
27014 functions.
27015 (nios2_symbol_binds_local_p): New function.
27016 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
27017 (nios2_legitimize_address): Update to use nios2_large_offset_p.
27018 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
27019 (nios2_print_operand): Merge H/L processing, add hiadj/lo
27020 processing for (const (unspec ...)).
27021 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
27022
27023 2014-02-20 Richard Biener <rguenther@suse.de>
27024
27025 * tree-cfg.c (replace_uses_by): Mark altered BBs before
27026 doing the substitution.
27027 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
27028
27029 2014-02-20 Martin Jambor <mjambor@suse.cz>
27030
27031 PR ipa/55260
27032 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
27033 info when checking whether lattices are bottom.
27034
27035 2014-02-20 Richard Biener <rguenther@suse.de>
27036
27037 PR middle-end/60221
27038 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
27039 regions at -O0.
27040
27041 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
27042
27043 PR ipa/58555
27044 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
27045 parameter specifying the scaling.
27046 (inline_call): Update.
27047 (want_inline_recursively): Guard division by zero.
27048 (recursive_inlining): Update.
27049 * ipa-inline.h (clone_inlined_nodes): Update.
27050
27051 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
27052
27053 PR target/60204
27054 * config/i386/i386.c (classify_argument): Pass structures of size
27055 64 bytes or less in register.
27056
27057 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
27058 Kirill Yukhin <kirill.yukhin@intel.com>
27059
27060 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
27061 (_mm_rcp28_round_ss): Ditto.
27062 (_mm_rsqrt28_round_sd): Ditto.
27063 (_mm_rsqrt28_round_ss): Ditto.
27064 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
27065 (_mm_rcp14_round_ss): Ditto.
27066 (_mm_rsqrt14_round_sd): Ditto.
27067 (_mm_rsqrt14_round_ss): Ditto.
27068 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
27069 the first input operand, get rid of match_dup.
27070 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
27071 attribute to sse.
27072 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
27073 Ditto.
27074 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
27075 operand as the first input operand, set type attribute.
27076 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
27077 Set type attribute.
27078 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
27079 operand as the first input operand, set type attribute.
27080
27081 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27082
27083 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
27084 bit of zero.
27085
27086 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
27087
27088 PR target/60207
27089 * config/i386/i386.c (construct_container): Remove TFmode check
27090 for X86_64_INTEGER_CLASS.
27091
27092 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
27093
27094 PR target/59794
27095 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
27096 only when -Wpsabi is enabled.
27097
27098 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
27099
27100 PR target/59799
27101 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
27102 passing arrays in registers are the same as for structs, so remove the
27103 special case for them.
27104
27105 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
27106
27107 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
27108 destination type, extract only the valid bits if the source type is not
27109 integral and has a different mode.
27110
27111 2014-02-19 Richard Biener <rguenther@suse.de>
27112
27113 PR ipa/60243
27114 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
27115 for all calls.
27116
27117 2014-02-19 Richard Biener <rguenther@suse.de>
27118
27119 PR ipa/60243
27120 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
27121 (ipa_modify_call_arguments): Emit an argument load explicitely and
27122 preserve virtual SSA form there and for the replacement call.
27123 Do not update SSA form nor free dominance info.
27124
27125 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
27126
27127 * ipa.c (function_and_variable_visibility): Also clear WEAK
27128 flag when disolving COMDAT_GROUP.
27129
27130 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
27131
27132 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
27133 * ipa-prop.c (ipa_set_jf_known_type): Return early when
27134 not devirtualizing.
27135 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
27136 do more sanity checks.
27137 (detect_type_change): Return true when giving up early.
27138 (compute_complex_assign_jump_func): Fix type parameter of
27139 ipa_set_ancestor_jf.
27140 (compute_complex_ancestor_jump_func): Likewise.
27141 (update_jump_functions_after_inlining): Fix updating of
27142 ancestor function.
27143 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
27144
27145 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
27146
27147 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
27148 inline clones when edge disappears.
27149
27150 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
27151
27152 PR target/60203
27153 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
27154 Split 64-bit moves into 2 patterns. Do not allow the use of
27155 direct move for TDmode in little endian, since the decimal value
27156 has little endian bytes within a word, but the 64-bit pieces are
27157 ordered in a big endian fashion, and normal subreg's of TDmode are
27158 not allowed.
27159 (mov<mode>_64bit_dm): Likewise.
27160 (movtd_64bit_nodm): Likewise.
27161
27162 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
27163
27164 PR tree-optimization/60174
27165 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
27166 statement of an SSA_NAME that occurs in an abnormal PHI node.
27167
27168 2014-02-18 Jakub Jelinek <jakub@redhat.com>
27169
27170 PR sanitizer/60142
27171 * final.c (SEEN_BB): Remove.
27172 (SEEN_NOTE, SEEN_EMITTED): Renumber.
27173 (final_scan_insn): Don't force_source_line on second
27174 NOTE_INSN_BASIC_BLOCK.
27175
27176 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
27177
27178 PR target/60205
27179 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
27180 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
27181 (type_natural_mode): Warn ABI change when %zmm register is not
27182 available for AVX512F vector value passing.
27183
27184 2014-02-18 Kai Tietz <ktietz@redhat.com>
27185
27186 PR target/60193
27187 * config/i386/i386.c (ix86_expand_prologue): Use value in
27188 rax register as displacement when restoring %r10 or %rax.
27189 Fix wrong offset when restoring both registers.
27190
27191 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
27192
27193 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
27194 assertion with conditional return.
27195
27196 2014-02-18 Jakub Jelinek <jakub@redhat.com>
27197 Uros Bizjak <ubizjak@gmail.com>
27198
27199 PR driver/60233
27200 * config/i386/driver-i386.c (host_detect_local_cpu): If
27201 YMM state is not saved by the OS, also clear has_f16c. Move
27202 CPUID 0x80000001 handling before YMM state saving checking.
27203
27204 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
27205
27206 PR rtl-optimization/58960
27207 * haifa-sched.c (alloc_global_sched_pressure_data): New,
27208 factored out from ...
27209 (sched_init): ... here.
27210 (free_global_sched_pressure_data): New, factored out from ...
27211 (sched_finish): ... here.
27212 * sched-int.h (free_global_sched_pressure_data): Declare.
27213 * sched-rgn.c (nr_regions_initial): New static global.
27214 (haifa_find_rgns): Initialize it.
27215 (schedule_region): Disable sched-pressure for the newly
27216 generated regions.
27217
27218 2014-02-17 Richard Biener <rguenther@suse.de>
27219
27220 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
27221 release SSA defs of pattern stmts.
27222
27223 2014-02-17 Richard Biener <rguenther@suse.de>
27224
27225 * tree-inline.c (expand_call_inline): Release the virtual
27226 operand defined by the call we are about to inline.
27227
27228 2014-02-17 Richard Biener <rguenther@suse.de>
27229
27230 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
27231
27232 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
27233 Ilya Tocar <ilya.tocar@intel.com>
27234
27235 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
27236 arguments order in builtin.
27237 (_mm512_permutexvar_epi64): Ditto.
27238 (_mm512_mask_permutexvar_epi64): Ditto
27239 (_mm512_maskz_permutexvar_epi32): Ditto
27240 (_mm512_permutexvar_epi32): Ditto
27241 (_mm512_mask_permutexvar_epi32): Ditto
27242
27243 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27244
27245 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
27246 (p8_vmrgow): Likewise.
27247
27248 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27249
27250 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
27251 endian targets.
27252
27253 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
27254
27255 PR target/60203
27256 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
27257 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
27258 into 64-bit and 32-bit moves. On 64-bit moves, add support for
27259 using direct move instructions on ISA 2.07. Also adjust
27260 instruction length for 64-bit.
27261 (mov<mode>_64bit, TFmode/TDmode): Likewise.
27262 (mov<mode>_32bit, TFmode/TDmode): Likewise.
27263
27264 2014-02-15 Alan Modra <amodra@gmail.com>
27265
27266 PR target/58675
27267 PR target/57935
27268 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
27269 find_replacement on parts of insn rtl that might be reloaded.
27270
27271 2014-02-15 Richard Biener <rguenther@suse.de>
27272
27273 PR tree-optimization/60183
27274 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
27275 (tree_ssa_phiprop): Calculate and free post-dominators.
27276
27277 2014-02-14 Jeff Law <law@redhat.com>
27278
27279 PR rtl-optimization/60131
27280 * ree.c (get_extended_src_reg): New function.
27281 (combine_reaching_defs): Use it rather than assuming location of REG.
27282 (find_and_remove_re): Verify first operand of extension is
27283 a REG before adding the insns to the copy list.
27284
27285 2014-02-14 Roland McGrath <mcgrathr@google.com>
27286
27287 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
27288 * configure: Regenerated.
27289 * config.in: Regenerated.
27290 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
27291 instead of ASM_SHORT.
27292
27293 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
27294 Richard Earnshaw <rearnsha@arm.com>
27295
27296 PR rtl-optimization/59535
27297 * lra-constraints.c (process_alt_operands): Encourage alternative
27298 when unassigned pseudo class is superset of the alternative class.
27299 (inherit_reload_reg): Don't inherit when optimizing for code size.
27300 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
27301 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
27302 modes not less than 4 for Thumb1.
27303
27304 2014-02-14 Kyle McMartin <kyle@redhat.com>
27305
27306 PR pch/60010
27307 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
27308
27309 2014-02-14 Richard Biener <rguenther@suse.de>
27310
27311 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
27312 (get_frame_arg): Drop the assert with langhook types_compatible_p.
27313 Do not strip INDIRECT_REFs.
27314
27315 2014-02-14 Richard Biener <rguenther@suse.de>
27316
27317 PR lto/60179
27318 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
27319 DECL_FUNCTION_SPECIFIC_TARGET.
27320 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
27321 * tree-streamer-out.c (pack_ts_target_option): Remove.
27322 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
27323 (write_ts_function_decl_tree_pointers): Do not stream
27324 DECL_FUNCTION_SPECIFIC_TARGET.
27325 * tree-streamer-in.c (unpack_ts_target_option): Remove.
27326 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
27327 (lto_input_ts_function_decl_tree_pointers): Do not stream
27328 DECL_FUNCTION_SPECIFIC_TARGET.
27329
27330 2014-02-14 Jakub Jelinek <jakub@redhat.com>
27331
27332 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
27333 (get_initial_def_for_induction, vectorizable_induction): Ignore
27334 debug stmts when looking for exit_phi.
27335 (vectorizable_live_operation): Fix up condition.
27336
27337 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27338
27339 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
27340 nreverse() because it changes the content of original tree list.
27341
27342 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27343
27344 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
27345 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
27346
27347 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27348
27349 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
27350 GNU coding standards.
27351
27352 2014-02-13 Jakub Jelinek <jakub@redhat.com>
27353
27354 PR debug/60152
27355 * dwarf2out.c (gen_subprogram_die): Don't call
27356 add_calling_convention_attribute if subr_die is old_die.
27357
27358 2014-02-13 Sharad Singhai <singhai@google.com>
27359
27360 * doc/optinfo.texi: Fix order of nodes.
27361
27362 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
27363
27364 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
27365 operands[2], not operands[3].
27366
27367 2014-02-13 Richard Biener <rguenther@suse.de>
27368
27369 PR bootstrap/59878
27370 * doc/install.texi (ISL): Update recommended version to 0.12.2,
27371 mention the possibility of an in-tree build.
27372 (CLooG): Update recommended version to 0.18.1, mention the
27373 possibility of an in-tree build and clarify that the ISL
27374 bundled with CLooG does not work.
27375
27376 2014-02-13 Jakub Jelinek <jakub@redhat.com>
27377
27378 PR target/43546
27379 * expr.c (compress_float_constant): If x is a hard register,
27380 extend into a pseudo and then move to x.
27381
27382 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
27383
27384 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
27385 caused by bad second argument to warning_at() with -mhotpatch and
27386 nested functions (e.g. with gfortran).
27387
27388 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
27389
27390 * opts.c (option_name): Remove "enabled by default" rider.
27391
27392 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
27393
27394 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
27395
27396 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
27397 Uros Bizjak <ubizjak@gmail.com>
27398
27399 PR target/60151
27400 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
27401 * configure: Regenerated.
27402
27403 2014-02-12 Richard Biener <rguenther@suse.de>
27404
27405 * vec.c (vec_prefix::calculate_allocation): Move as
27406 inline variant to vec.h.
27407 (vec_prefix::calculate_allocation_1): New out-of-line version.
27408 * vec.h (vec_prefix::calculate_allocation_1): Declare.
27409 (vec_prefix::m_has_auto_buf): Rename to ...
27410 (vec_prefix::m_using_auto_storage): ... this.
27411 (vec_prefix::calculate_allocation): Inline the easy cases
27412 and dispatch to calculate_allocation_1 which doesn't need the
27413 prefix address.
27414 (va_heap::reserve): Use gcc_checking_assert.
27415 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
27416 m_using_auto_storage.
27417 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
27418 member and adjust.
27419 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
27420 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
27421 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
27422
27423 2014-02-12 Richard Biener <rguenther@suse.de>
27424
27425 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
27426 when we found a dependence.
27427
27428 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
27429
27430 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
27431 common code...
27432 (maybe_fold_stmt): ... into this new function.
27433 * omp-low.c (lower_omp): Update comment.
27434
27435 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
27436 last use.
27437
27438 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
27439 dereference.
27440
27441 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
27442
27443 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
27444 identifiers in comments.
27445 (cortexa53_extra_costs): Likewise.
27446 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
27447 (cortexa7_extra_costs): Likewise.
27448 (cortexa12_extra_costs): Likewise.
27449 (cortexa15_extra_costs): Likewise.
27450 (v7m_extra_costs): Likewise.
27451
27452 2014-02-12 Richard Biener <rguenther@suse.de>
27453
27454 PR middle-end/60092
27455 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
27456 of posix_memalign being successful.
27457 (lower_stmt): Restrict lowering of posix_memalign to when
27458 -ftree-bit-ccp is enabled.
27459
27460 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
27461
27462 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
27463 arg_loc.
27464 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
27465
27466 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
27467
27468 PR rtl-optimization/60116
27469 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
27470 other_insn once the combination has been validated.
27471
27472 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
27473
27474 PR lto/59468
27475 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
27476 and wrapper.
27477 * ipa-devirt.c: Include demangle.h
27478 (odr_violation_reported): New static variable.
27479 (add_type_duplicate): Update odr_violations.
27480 (maybe_record_node): Add completep parameter; update it.
27481 (record_target_from_binfo): Add COMPLETEP parameter;
27482 update it as needed.
27483 (possible_polymorphic_call_targets_1): Likewise.
27484 (struct polymorphic_call_target_d): Add nonconstruction_targets;
27485 rename FINAL to COMPLETE.
27486 (record_targets_from_bases): Sanity check we found the binfo;
27487 fix COMPLETEP updating.
27488 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
27489 parameter, fix computing of COMPLETEP.
27490 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
27491 at LTO time do demangling.
27492 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
27493 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
27494 parameter.
27495 (gimple_get_virt_method_for_binfo): Likewise.
27496 * gimple-fold.h (gimple_get_virt_method_for_binfo,
27497 gimple_get_virt_method_for_vtable): Update prototypes.
27498
27499 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
27500
27501 PR target/49008
27502 * genautomata.c (add_presence_absence): Fix typo with
27503 {final_}presence_list.
27504
27505 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
27506
27507 PR target/60137
27508 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
27509 for VSX/Altivec vectors that land in GPR registers.
27510
27511 2014-02-11 Richard Henderson <rth@redhat.com>
27512 Jakub Jelinek <jakub@redhat.com>
27513
27514 PR debug/59776
27515 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
27516 around drhs if type conversion to lacc->type is not useless.
27517
27518 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27519
27520 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
27521 tuning struct.
27522 (cortex-a57.cortex-a53): Likewise.
27523 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
27524
27525 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27526
27527 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
27528 arm_restrict_it.
27529
27530 2014-02-11 Renlin Li <Renlin.Li@arm.com>
27531
27532 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
27533 add_options_for_arm_vfp3.
27534
27535 2014-02-11 Jeff Law <law@redhat.com>
27536
27537 PR middle-end/54041
27538 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
27539 object with an undesirable mode.
27540
27541 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27542
27543 PR libgomp/60107
27544 * config/i386/sol2-9.h: New file.
27545 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
27546 *-*-solaris2.9*): Use it.
27547
27548 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
27549
27550 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
27551 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
27552
27553 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
27554
27555 * config/microblaze/microblaze.c: Extend mcpu version format
27556
27557 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
27558
27559 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
27560
27561 2014-02-10 Richard Henderson <rth@redhat.com>
27562
27563 PR target/59927
27564 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
27565 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
27566 ms-abi vs -mno-accumulate-outgoing-args.
27567 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
27568 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
27569 respect to ms-abi.
27570
27571 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
27572
27573 PR middle-end/60080
27574 * cfgexpand.c (expand_asm_operands): Attach source location to
27575 ASM_INPUT rtx objects.
27576 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
27577
27578 2014-02-10 Nick Clifton <nickc@redhat.com>
27579
27580 * config/mn10300/mn10300.c (popcount): New function.
27581 (mn10300_expand_prologue): Include saved registers in stack usage
27582 count.
27583
27584 2014-02-10 Jeff Law <law@redhat.com>
27585
27586 PR middle-end/52306
27587 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
27588 when changing the SET_DEST of a prior insn to avoid an input reload.
27589
27590 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27591
27592 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
27593 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
27594 -mcall-openbsd, or -mcall-linux.
27595 (CC1_ENDIAN_BIG_SPEC): Remove.
27596 (CC1_ENDIAN_LITTLE_SPEC): Remove.
27597 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27598 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
27599 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
27600 and %cc1_endian_default.
27601 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27602
27603 2014-02-10 Richard Biener <rguenther@suse.de>
27604
27605 PR tree-optimization/60115
27606 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
27607 MEM_REF handling. Properly verify that the accesses are not
27608 out of the objects bound.
27609
27610 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27611
27612 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
27613 coretex to cortex.
27614
27615 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
27616
27617 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
27618 proper constants and fix formatting.
27619 (possible_polymorphic_call_targets): Fix formatting.
27620
27621 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
27622 Ilya Tocar <ilya.tocar@intel.com>
27623
27624 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
27625 (_mm512_loadu_epi32): Renamed into...
27626 (_mm512_loadu_si512): This.
27627 (_mm512_storeu_epi32): Renamed into...
27628 (_mm512_storeu_si512): This.
27629 (_mm512_maskz_ceil_ps): Removed.
27630 (_mm512_maskz_ceil_pd): Ditto.
27631 (_mm512_maskz_floor_ps): Ditto.
27632 (_mm512_maskz_floor_pd): Ditto.
27633 (_mm512_floor_round_ps): Ditto.
27634 (_mm512_floor_round_pd): Ditto.
27635 (_mm512_ceil_round_ps): Ditto.
27636 (_mm512_ceil_round_pd): Ditto.
27637 (_mm512_mask_floor_round_ps): Ditto.
27638 (_mm512_mask_floor_round_pd): Ditto.
27639 (_mm512_mask_ceil_round_ps): Ditto.
27640 (_mm512_mask_ceil_round_pd): Ditto.
27641 (_mm512_maskz_floor_round_ps): Ditto.
27642 (_mm512_maskz_floor_round_pd): Ditto.
27643 (_mm512_maskz_ceil_round_ps): Ditto.
27644 (_mm512_maskz_ceil_round_pd): Ditto.
27645 (_mm512_expand_pd): Ditto.
27646 (_mm512_expand_ps): Ditto.
27647 * config/i386/i386.c (ix86_builtins): Remove
27648 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
27649 (bdesc_args): Ditto.
27650 * config/i386/predicates.md (const1256_operand): New.
27651 (const_1_to_2_operand): Ditto.
27652 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
27653 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
27654 (*avx512pf_gatherpf<mode>sf): Ditto.
27655 (avx512pf_gatherpf<mode>df): Ditto.
27656 (*avx512pf_gatherpf<mode>df_mask): Ditto.
27657 (*avx512pf_gatherpf<mode>df): Ditto.
27658 (avx512pf_scatterpf<mode>sf): Ditto.
27659 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
27660 (*avx512pf_scatterpf<mode>sf): Ditto.
27661 (avx512pf_scatterpf<mode>df): Ditto.
27662 (*avx512pf_scatterpf<mode>df_mask): Ditto.
27663 (*avx512pf_scatterpf<mode>df): Ditto.
27664 (avx512f_expand<mode>): Removed.
27665 (<shift_insn><mode>3<mask_name>): Change predicate type.
27666
27667 2014-02-08 Jakub Jelinek <jakub@redhat.com>
27668
27669 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
27670 not at the end of datarefs vector use ordered_remove to avoid
27671 reordering datarefs vector.
27672
27673 PR c/59984
27674 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
27675 mark local addressable non-static vars as GOVD_PRIVATE
27676 instead of GOVD_LOCAL.
27677 * omp-low.c (lower_omp_for): Move gimple_bind_vars
27678 and BLOCK_VARS of gimple_bind_block to new_stmt rather
27679 than copying them.
27680
27681 PR middle-end/60092
27682 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
27683 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
27684 assume_aligned or alloc_align attributes.
27685 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
27686 arguments. Handle also assume_aligned and alloc_align attributes.
27687 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
27688 calls to functions with assume_aligned or alloc_align attributes.
27689 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
27690
27691 2014-02-08 Terry Guo <terry.guo@arm.com>
27692
27693 * doc/invoke.texi: Document ARM -march=armv7e-m.
27694
27695 2014-02-08 Jakub Jelinek <jakub@redhat.com>
27696
27697 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
27698 flag on __cilkrts_rethrow builtin.
27699
27700 PR ipa/60026
27701 * ipa-cp.c (determine_versionability): Fail at -O0
27702 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
27703 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
27704
27705 Revert:
27706 2014-02-04 Jakub Jelinek <jakub@redhat.com>
27707
27708 PR ipa/60026
27709 * tree-inline.c (copy_forbidden): Fail for
27710 __attribute__((optimize (0))) functions.
27711
27712 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
27713
27714 * varpool.c: Include pointer-set.h.
27715 (varpool_remove_unreferenced_decls): Variables in other partitions
27716 will not be output; be however careful to not lose information
27717 about partitioning.
27718
27719 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
27720
27721 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
27722 lookup in the vtable constructor.
27723
27724 2014-02-07 Jeff Law <law@redhat.com>
27725
27726 PR target/40977
27727 * config/m68k/m68k.md (ashldi_extsi): Turn into a
27728 define_insn_and_split.
27729
27730 * ipa-inline.c (inline_small_functions): Fix typos.
27731
27732 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27733
27734 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
27735 (s390_can_use_return_insn): Declare.
27736 * config/s390/s390.h (EPILOGUE_USES): Define.
27737 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
27738 instructions.
27739 (s390_chunkify_start): Handle return JUMP_LABELs.
27740 (s390_early_mach): Emit a main_pool instruction on the entry edge.
27741 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
27742 (s390_can_use_return_insn): New functions.
27743 (s390_fix_long_loop_prediction): Handle conditional returns.
27744 (TARGET_SET_UP_BY_PROLOGUE): Define.
27745 * config/s390/s390.md (ANY_RETURN): New code iterator.
27746 (*creturn, *csimple_return, return, simple_return): New patterns.
27747
27748 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27749
27750 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
27751 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
27752 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
27753 REG_CFA_RESTORE list when deciding not to restore a register.
27754
27755 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27756
27757 * config/s390/s390.c: Include tree-pass.h and context.h.
27758 (s390_early_mach): New function, split out from...
27759 (s390_emit_prologue): ...here.
27760 (pass_data_s390_early_mach): New pass structure.
27761 (pass_s390_early_mach): New class.
27762 (s390_option_override): Create and register early_mach pass.
27763 Move to end of file.
27764
27765 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27766
27767 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
27768 to match for the exit block.
27769
27770 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27771
27772 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
27773 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
27774 Reject misaligned operands.
27775
27776 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27777
27778 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
27779
27780 2014-02-07 Richard Biener <rguenther@suse.de>
27781
27782 PR middle-end/60092
27783 * gimple-low.c (lower_builtin_posix_memalign): New function.
27784 (lower_stmt): Call it to lower posix_memalign in a way
27785 to make alignment info accessible.
27786
27787 2014-02-07 Jakub Jelinek <jakub@redhat.com>
27788
27789 PR c++/60082
27790 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
27791 __builtin_setjmp_receiver.
27792
27793 2014-02-07 Richard Biener <rguenther@suse.de>
27794
27795 PR middle-end/60092
27796 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
27797 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
27798 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
27799 Handle BUILT_IN_POSIX_MEMALIGN.
27800 (find_func_clobbers): Likewise.
27801 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
27802 (call_may_clobber_ref_p_1): Likewise.
27803
27804 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27805
27806 PR ipa/59918
27807 * ipa-devirt.c (record_target_from_binfo): Remove overactive
27808 sanity check.
27809
27810 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27811
27812 PR ipa/59469
27813 * lto-cgraph.c (lto_output_node): Use
27814 symtab_get_symbol_partitioning_class.
27815 (lto_output_varpool_node): likewise.
27816 (symtab_get_symbol_partitioning_class): Move here from
27817 lto/lto-partition.c
27818 * cgraph.h (symbol_partitioning_class): Likewise.
27819 (symtab_get_symbol_partitioning_class): Declare.
27820
27821 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27822
27823 * ggc.h (ggc_internal_cleared_alloc): New macro.
27824 * vec.h (vec_safe_copy): Handle memory stats.
27825 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
27826 * target-globals.c (save_target_globals): Likewise.
27827
27828 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27829
27830 PR target/60077
27831 * expr.c (emit_move_resolve_push): Export; be bit more selective
27832 on when to clear alias set.
27833 * expr.h (emit_move_resolve_push): Declare.
27834 * function.h (struct function): Add tail_call_marked.
27835 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
27836 * config/i386/i386-protos.h (ix86_expand_push): Remove.
27837 * config/i386/i386.md (TImode move expander): De not call
27838 ix86_expand_push.
27839 (FP push expanders): Preserve memory attributes.
27840 * config/i386/sse.md (push<mode>1): Remove.
27841 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
27842 (ix86_expand_push): Remove.
27843 * config/i386/mmx.md (push<mode>1): Remove.
27844
27845 2014-02-06 Jakub Jelinek <jakub@redhat.com>
27846
27847 PR rtl-optimization/60030
27848 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
27849 lopart with paradoxical subreg before shifting it up by hprec.
27850
27851 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27852
27853 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
27854 Remove extra newline at end of file.
27855 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
27856 (arm_issue_rate): Handle cortexa57.
27857 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
27858 (cortex-a57.cortex-a53): Likewise.
27859
27860 2014-02-06 Jakub Jelinek <jakub@redhat.com>
27861
27862 PR target/59575
27863 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
27864 don't record in REG_FRAME_RELATED_EXPR registers not set in that
27865 bitmask.
27866 (arm_expand_prologue): Adjust all callers.
27867 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
27868 info, registers also at the lowest numbered registers side. Use
27869 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
27870 XEXP.
27871
27872 PR debug/59992
27873 * var-tracking.c (adjust_mems): Before adding a SET to
27874 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
27875
27876 2014-02-06 Alan Modra <amodra@gmail.com>
27877
27878 PR target/60032
27879 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
27880 change SDmode to DDmode when lra_in_progress.
27881
27882 2014-02-06 Jakub Jelinek <jakub@redhat.com>
27883
27884 PR middle-end/59150
27885 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
27886 free_data_ref on the dr first, and before goto again also set dr
27887 to the next dr. For simd_lane_access, free old datarefs[i] before
27888 overwriting it. For get_vectype_for_scalar_type failure, don't
27889 free_data_ref if simd_lane_access.
27890
27891 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
27892
27893 PR target/60062
27894 * tree.h (opts_for_fn): New inline function.
27895 (opt_for_fn): Define.
27896 * config/i386/i386.c (ix86_function_regparm): Use
27897 opt_for_fn (decl, optimize) instead of optimize.
27898
27899 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
27900
27901 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
27902 for SYMBOL_REF in large memory model.
27903
27904 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27905
27906 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
27907 and crypto support.
27908 (cortex-a57): Likewise.
27909 (cortex-a57.cortex-a53): Likewise.
27910
27911 2014-02-06 Yury Gribov <y.gribov@samsung.com>
27912 Kugan Vivekanandarajah <kuganv@linaro.org>
27913
27914 * config/arm/arm.c (arm_vector_alignment_reachable): Check
27915 unaligned_access.
27916 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
27917
27918 2014-02-06 Richard Biener <rguenther@suse.de>
27919
27920 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
27921 set_loop_copy and initialize_original_copy_tables.
27922
27923 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
27924
27925 * config/aarch64/aarch64-simd.md
27926 (aarch64_ashr_simddi): Change QI to SI.
27927
27928 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
27929 Jakub Jelinek <jakub@redhat.com>
27930
27931 PR middle-end/60013
27932 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
27933 of the dataflow.
27934
27935 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27936
27937 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
27938 CODE_FOR_altivec_vpku[hw]um to
27939 CODE_FOR_altivec_vpku[hw]um_direct.
27940 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
27941 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
27942 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
27943 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
27944
27945 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27946
27947 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
27948 generation for -maltivec=be.
27949 (altivec_vsumsws): Simplify redundant test.
27950
27951 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27952
27953 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
27954 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
27955 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
27956 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
27957 gen_altivec_vpkuwum.
27958 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
27959 BYTES_BIG_ENDIAN.
27960 (altivec_vpks<VI_char>ss): Likewise.
27961 (altivec_vpks<VI_char>us): Likewise.
27962 (altivec_vpku<VI_char>us): Likewise.
27963 (altivec_vpku<VI_char>um): Likewise.
27964 (altivec_vpku<VI_char>um_direct): New (copy of
27965 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
27966 internal use).
27967 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
27968 target is little endian and -maltivec=be is not specified.
27969 (*altivec_vupkhs<VU_char>_direct): New (copy of
27970 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
27971 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
27972 target is little endian and -maltivec=be is not specified.
27973 (*altivec_vupkls<VU_char>_direct): New (copy of
27974 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
27975 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
27976 little endian and -maltivec=be is not specified.
27977 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
27978 little endian and -maltivec=be is not specified.
27979
27980 2014-02-05 Richard Henderson <rth@redhat.com>
27981
27982 PR debug/52727
27983 * combine-stack-adj.c: Revert r206943.
27984 * sched-int.h (struct deps_desc): Add last_args_size.
27985 * sched-deps.c (init_deps): Initialize it.
27986 (sched_analyze_insn): Add OUTPUT dependencies between insns that
27987 contain REG_ARGS_SIZE notes.
27988
27989 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
27990
27991 * lto-cgraph.c (asm_nodes_output): Make global.
27992 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
27993 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
27994 (driver_handle_option): Handle OPT_fwpa.
27995
27996 2014-02-05 Jakub Jelinek <jakub@redhat.com>
27997
27998 PR ipa/59947
27999 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
28000 a comment typo and formatting issue. If odr_hash hasn't been
28001 created, return vNULL and set *completep to false.
28002
28003 PR middle-end/57499
28004 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
28005 bb with no successors.
28006
28007 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
28008
28009 PR target/59718
28010 * doc/invoke.texi (-march): Clarify documentation for ARM.
28011 (-mtune): Likewise.
28012 (-mcpu): Likewise.
28013
28014 2014-02-05 Richard Biener <rguenther@suse.de>
28015
28016 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
28017 when not vectorizing because of too many alias checks.
28018 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
28019 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
28020
28021 2014-02-05 Nick Clifton <nickc@redhat.com>
28022
28023 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
28024 accept extended registers in any mode when compiling for the MN10300.
28025
28026 2014-02-05 Yury Gribov <y.gribov@samsung.com>
28027
28028 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
28029 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
28030 sanitization attributes.
28031 (can_inline_edge_p): Likewise.
28032 (sanitize_attrs_match_for_inline_p): New function.
28033
28034 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
28035
28036 * ipa-prop.c (detect_type_change): Shor circuit testing of
28037 type changes on THIS pointer.
28038
28039 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
28040
28041 PR target/59777
28042 * config/pa/pa.c (legitimize_tls_address): Return original address
28043 if not passed a SYMBOL_REF rtx.
28044 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
28045 addresses.
28046 (pa_emit_move_sequence): Simplify TLS source operands.
28047 (pa_legitimate_constant_p): Reject all TLS constants.
28048 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
28049 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
28050
28051 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
28052
28053 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
28054 groups when we know they are controlled by LTO.
28055 * varasm.c (default_binds_local_p_1): If object is in other partition,
28056 it will be resolved locally.
28057
28058 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
28059
28060 * config/host-linux.c (linux_gt_pch_use_address): Don't
28061 use SSIZE_MAX because it is not always defined.
28062
28063 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
28064
28065 PR bootstrap/59913
28066 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
28067 threshold for pseudo splitting.
28068 (update_ebb_live_info): Process call argument hard registers and
28069 hard registers from insn definition too.
28070 (max_small_class_regs_num): New constant.
28071 (inherit_in_ebb): Update live hard regs through EBBs. Update
28072 reloads_num only for small register classes. Don't split for
28073 outputs of jumps.
28074
28075 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
28076
28077 PR ipa/60058
28078 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
28079 is non-null.
28080
28081 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
28082
28083 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
28084 visibility is safe.
28085
28086 2014-02-04 Marek Polacek <polacek@redhat.com>
28087
28088 * gdbinit.in (pel): Define.
28089
28090 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
28091
28092 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
28093 behavior.
28094
28095 2014-02-04 Richard Biener <rguenther@suse.de>
28096
28097 PR lto/59723
28098 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
28099 in function context local.
28100 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
28101 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
28102 similar to LTO_imported_decl_ref.
28103
28104 2014-02-04 Jakub Jelinek <jakub@redhat.com>
28105
28106 PR tree-optimization/60002
28107 * cgraphclones.c (build_function_decl_skip_args): Clear
28108 DECL_LANG_SPECIFIC.
28109
28110 PR tree-optimization/60023
28111 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
28112 false to gsi_replace.
28113 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
28114 has been in some EH region and vec_stmt could throw, add
28115 vec_stmt into the same EH region.
28116 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
28117 has no lhs, ignore it.
28118 * internal-fn.c (expand_MASK_LOAD): Likewise.
28119
28120 PR ipa/60026
28121 * tree-inline.c (copy_forbidden): Fail for
28122 __attribute__((optimize (0))) functions.
28123
28124 PR other/58712
28125 * omp-low.c (simd_clone_struct_copy): If from->inbranch
28126 is set, copy one less argument.
28127 (expand_simd_clones): Don't subtract clone_info->inbranch
28128 from simd_clone_struct_alloc argument.
28129
28130 PR rtl-optimization/57915
28131 * recog.c (simplify_while_replacing): If all unary/binary/relational
28132 operation arguments are constant, attempt to simplify those.
28133
28134 PR middle-end/59261
28135 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
28136 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
28137
28138 2014-02-04 Richard Biener <rguenther@suse.de>
28139
28140 PR tree-optimization/60012
28141 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
28142 TBAA disambiguation to all DDRs.
28143
28144 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28145
28146 PR target/59788
28147 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
28148 (LINK_SPEC): Use it for -shared, -shared-libgcc.
28149
28150 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28151
28152 PR ipa/59882
28153 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
28154
28155 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28156
28157 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
28158 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
28159
28160 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28161
28162 PR ipa/59831
28163 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
28164 to figure out targets of polymorphic calls with known decl.
28165 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28166 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
28167 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
28168 (get_polymorphic_call_info): ... here.
28169 (get_polymorphic_call_info_from_invariant): New function.
28170
28171 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28172
28173 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
28174 lookup via vtable pointer; check for type consistency
28175 and turn inconsitent facts into UNREACHABLE.
28176 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28177 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
28178 type inconsistent querries; return UNREACHABLE instead.
28179
28180 2014-02-03 Richard Henderson <rth@twiddle.net>
28181
28182 PR tree-opt/59924
28183 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
28184 already processed this node.
28185 (normalize_one_pred_1): Pass along mark_set.
28186 (normalize_one_pred): Create and destroy a pointer_set_t.
28187 (normalize_one_pred_chain): Likewise.
28188
28189 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
28190
28191 PR gcov-profile/58602
28192 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
28193
28194 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28195
28196 PR ipa/59831
28197 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
28198 -fno-devirtualize; try to devirtualize by the knowledge of
28199 virtual table pointer given by aggregate propagation.
28200 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28201 (ipa_print_node_jump_functions): Dump also offset that
28202 is relevant for polymorphic calls.
28203 (determine_known_aggregate_parts): Add arg_type parameter; use it
28204 instead of determining the type from pointer type.
28205 (ipa_compute_jump_functions_for_edge): Update call of
28206 determine_known_aggregate_parts.
28207 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
28208 (gimple_get_virt_method_for_binfo): ... here; simplify using
28209 vtable_pointer_value_to_vtable.
28210 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
28211 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
28212 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
28213 (vtable_pointer_value_to_vtable): Break out from ...; handle also
28214 POINTER_PLUS_EXPR.
28215 (vtable_pointer_value_to_binfo): ... here.
28216 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
28217
28218 2014-02-03 Teresa Johnson <tejohnson@google.com>
28219
28220 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
28221 redef of outer loop index variable.
28222
28223 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
28224
28225 PR c++/53017
28226 PR c++/59211
28227 * doc/extend.texi (Function Attributes): Typo.
28228
28229 2014-02-03 Cong Hou <congh@google.com>
28230
28231 PR tree-optimization/60000
28232 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
28233 if the vectorized statement is a store. A store statement can only
28234 appear at the end of pattern statements.
28235
28236 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
28237
28238 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
28239 (ix86_option_override_internal): Default long double to 64-bit for
28240 32-bit Bionic and to 128-bit for 64-bit Bionic.
28241
28242 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
28243 TARGET_LONG_DOUBLE_128 is true.
28244 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
28245
28246 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
28247 (mlong-double-64): Negate -mlong-double-128.
28248 (mlong-double-128): New option.
28249
28250 * config/i386/i386-c.c (ix86_target_macros): Define
28251 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
28252
28253 * doc/invoke.texi: Document -mlong-double-128.
28254
28255 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
28256
28257 PR rtl-optimization/60024
28258 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
28259
28260 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
28261
28262 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
28263
28264 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
28265
28266 PR rtl-optimization/57662
28267 * sel-sched.c (code_motion_path_driver): Do not mark already not
28268 existing blocks in the visiting bitmap.
28269
28270 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
28271
28272 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
28273 on the insn being emitted.
28274
28275 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
28276 Will Deacon <will.deacon@arm.com>
28277
28278 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
28279
28280 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28281
28282 * config/arm/arm-tables.opt: Regenerate.
28283
28284 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28285
28286 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
28287 for vector types other than V16QImode.
28288 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
28289 define_expand, and call altivec_expand_vec_perm_le when producing
28290 code with little endian element order.
28291 (*altivec_vperm_<mode>_internal): New insn having previous
28292 behavior of altivec_vperm_<mode>.
28293 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
28294 altivec_expand_vec_perm_le when producing code with little endian
28295 element order.
28296 (*altivec_vperm_<mode>_uns_internal): New insn having previous
28297 behavior of altivec_vperm_<mode>_uns.
28298
28299 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28300
28301 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
28302 (altivec_vsumsws): Add handling for -maltivec=be with a little
28303 endian target.
28304 (altivec_vsumsws_direct): New.
28305 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
28306 gen_altivec_vsumsws.
28307
28308 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
28309
28310 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
28311 vtable_pointer_value_to_binfo): New functions.
28312 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
28313 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
28314
28315 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
28316
28317 * config/nios2/nios2.md (load_got_register): Initialize GOT
28318 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
28319 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
28320
28321 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
28322
28323 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
28324 preserverd by passthrough, do not propagate the type.
28325
28326 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28327
28328 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
28329 (mips_atomic_assign_expand_fenv): New function.
28330 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
28331
28332 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28333
28334 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
28335 (__builtin_mips_set_fcsr): Likewise.
28336 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
28337 MIPS_USI_FTYPE_VOID.
28338 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
28339 (mips16_expand_set_fcsr): Likewise.
28340 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
28341 (mips16_set_fcsr_stub): Likewise.
28342 (mips16_get_fcsr_one_only_stub): New class.
28343 (mips16_set_fcsr_one_only_stub): Likewise.
28344 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
28345 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
28346 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
28347 (hard_float): New availability predicate.
28348 (mips_builtins): Add get_fcsr and set_fcsr.
28349 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
28350 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
28351 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
28352 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
28353 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
28354 patterns.
28355
28356 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28357
28358 * config/mips/mips.c (mips_one_only_stub): New class.
28359 (mips_need_mips16_rdhwr_p): Replace with...
28360 (mips16_rdhwr_stub): ...this new variable.
28361 (mips16_stub_call_address): New function.
28362 (mips16_rdhwr_one_only_stub): New class.
28363 (mips_expand_thread_pointer): Use mips16_stub_call_address.
28364 (mips_output_mips16_rdhwr): Delete.
28365 (mips_finish_stub): New function.
28366 (mips_code_end): Use it to handle rdhwr stubs.
28367
28368 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
28369
28370 PR target/60017
28371 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
28372 when calculating size of integer atomic types.
28373
28374 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
28375
28376 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
28377
28378 2014-02-01 Jakub Jelinek <jakub@redhat.com>
28379
28380 PR tree-optimization/60003
28381 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
28382 * profile.c (branch_prob): Use gimple_call_builtin_p
28383 to check for BUILT_IN_SETJMP_RECEIVER.
28384 * tree-inline.c (copy_bb): Call notice_special_calls.
28385
28386 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
28387
28388 PR bootstrap/59985
28389 * lra-constraints.c (process_alt_operands): Update reload_sum only
28390 on the first pass.
28391
28392 2014-01-31 Richard Henderson <rth@redhat.com>
28393
28394 PR middle-end/60004
28395 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
28396 until after else_eh is processed.
28397
28398 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
28399
28400 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
28401 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
28402 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
28403 in smmintrin.h, remove them.
28404 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
28405 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
28406 * config/i386/i386.md (ROUND_SAE): Fix value.
28407 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
28408 (const48_operand): New.
28409 * config/i386/subst.md (round), (round_expand): Use
28410 const_4_or_8_to_11_operand.
28411 (round_saeonly), (round_saeonly_expand): Use const48_operand.
28412
28413 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
28414
28415 * config/i386/constraints.md (Yk): Swap meaning with k.
28416 * config/i386/i386.md (movhi_internal): Change Yk to k.
28417 (movqi_internal): Ditto.
28418 (*k<logic><mode>): Ditto.
28419 (*andhi_1): Ditto.
28420 (*andqi_1): Ditto.
28421 (kandn<mode>): Ditto.
28422 (*<code>hi_1): Ditto.
28423 (*<code>qi_1): Ditto.
28424 (kxnor<mode>): Ditto.
28425 (kortestzhi): Ditto.
28426 (kortestchi): Ditto.
28427 (kunpckhi): Ditto.
28428 (*one_cmplhi2_1): Ditto.
28429 (*one_cmplqi2_1): Ditto.
28430 * config/i386/sse.md (): Change k to Yk.
28431 (avx512f_load<mode>_mask): Ditto.
28432 (avx512f_blendm<mode>): Ditto.
28433 (avx512f_store<mode>_mask): Ditto.
28434 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
28435 (avx512f_storedqu<mode>_mask): Ditto.
28436 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
28437 Ditto.
28438 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
28439 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
28440 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
28441 (avx512f_maskcmp<mode>3): Ditto.
28442 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
28443 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
28444 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
28445 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
28446 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
28447 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
28448 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
28449 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
28450 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
28451 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
28452 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
28453 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
28454 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
28455 (vec_extract_lo_<mode>_maskm): Ditto.
28456 (vec_extract_hi_<mode>_maskm): Ditto.
28457 (avx512f_vternlog<mode>_mask): Ditto.
28458 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
28459 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
28460 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
28461 (avx512f_<code>v8div16qi2_mask): Ditto.
28462 (avx512f_<code>v8div16qi2_mask_store): Ditto.
28463 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
28464 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
28465 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
28466 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
28467 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
28468 (*avx512pf_gatherpf<mode>df_mask): Ditto.
28469 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28470 (*avx512pf_scatterpf<mode>df_mask): Ditto.
28471 (avx512cd_maskb_vec_dupv8di): Ditto.
28472 (avx512cd_maskw_vec_dupv16si): Ditto.
28473 (avx512f_vpermi2var<mode>3_maskz): Ditto.
28474 (avx512f_vpermi2var<mode>3_mask): Ditto.
28475 (avx512f_vpermi2var<mode>3_mask): Ditto.
28476 (avx512f_vpermt2var<mode>3_maskz): Ditto.
28477 (*avx512f_gathersi<mode>): Ditto.
28478 (*avx512f_gathersi<mode>_2): Ditto.
28479 (*avx512f_gatherdi<mode>): Ditto.
28480 (*avx512f_gatherdi<mode>_2): Ditto.
28481 (*avx512f_scattersi<mode>): Ditto.
28482 (*avx512f_scatterdi<mode>): Ditto.
28483 (avx512f_compress<mode>_mask): Ditto.
28484 (avx512f_compressstore<mode>_mask): Ditto.
28485 (avx512f_expand<mode>_mask): Ditto.
28486 * config/i386/subst.md (mask): Change k to Yk.
28487 (mask_scalar_merge): Ditto.
28488 (sd): Ditto.
28489
28490 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
28491
28492 * doc/extend.texi (Vector Extensions): Document ?: in C++.
28493
28494 2014-01-31 Richard Biener <rguenther@suse.de>
28495
28496 PR middle-end/59990
28497 * builtins.c (fold_builtin_memory_op): Make sure to not
28498 use a floating-point mode or a boolean or enumeral type for
28499 the copy operation.
28500
28501 2014-01-30 DJ Delorie <dj@redhat.com>
28502
28503 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
28504 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
28505 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
28506 whenever main() has an epilogue.
28507
28508 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28509
28510 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
28511 unused variable "field".
28512 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
28513 (vsx_mergeh_<mode>): Likewise.
28514 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
28515 (altivec_vmrghh): Likewise.
28516 (altivec_vmrghw): Likewise.
28517 (altivec_vmrglb): Likewise.
28518 (altivec_vmrglh): Likewise.
28519 (altivec_vmrglw): Likewise.
28520 (altivec_vspltb): Add missing uses.
28521 (altivec_vsplth): Likewise.
28522 (altivec_vspltw): Likewise.
28523 (altivec_vspltsf): Likewise.
28524
28525 2014-01-30 Jakub Jelinek <jakub@redhat.com>
28526
28527 PR target/59923
28528 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
28529 frame related instructions.
28530
28531 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
28532
28533 PR rtl-optimization/59959
28534 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
28535 any reload of register whose subreg is invalid.
28536
28537 2014-01-30 Jakub Jelinek <jakub@redhat.com>
28538
28539 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
28540 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
28541 Add missing return type - void.
28542
28543 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28544
28545 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
28546 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
28547 remove element index adjustment for endian (now handled in vsx.md
28548 and altivec.md).
28549 (altivec_expand_vec_perm_const): Use
28550 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
28551 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
28552 (vsx_xxspltw_<mode>): Adjust element index for little endian.
28553 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
28554 define_expand and a new define_insn *altivec_vspltb_internal;
28555 adjust for -maltivec=be on a little endian target.
28556 (altivec_vspltb_direct): New.
28557 (altivec_vsplth): Divide into a define_expand and a new
28558 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
28559 little endian target.
28560 (altivec_vsplth_direct): New.
28561 (altivec_vspltw): Divide into a define_expand and a new
28562 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
28563 little endian target.
28564 (altivec_vspltw_direct): New.
28565 (altivec_vspltsf): Divide into a define_expand and a new
28566 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
28567 a little endian target.
28568
28569 2014-01-30 Richard Biener <rguenther@suse.de>
28570
28571 PR tree-optimization/59993
28572 * tree-ssa-forwprop.c (associate_pointerplus): Check we
28573 can propagate form the earlier stmt and avoid the transform
28574 when the intermediate result is needed.
28575
28576 2014-01-30 Alangi Derick <alangiderick@gmail.com>
28577
28578 * README.Portability: Fix typo.
28579
28580 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
28581
28582 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
28583 comparison_operator with ordered_comparison_operator.
28584
28585 2014-01-30 Nick Clifton <nickc@redhat.com>
28586
28587 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
28588 Rename to mn10300_store_multiple_regs.
28589 * config/mn10300/mn10300.c: Likewise.
28590 * config/mn10300/mn10300.md (store_movm): Fix typo: call
28591 store_multiple_regs.
28592 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
28593 Call mn10300_store_multiple_regs.
28594
28595 2014-01-30 Nick Clifton <nickc@redhat.com>
28596 DJ Delorie <dj@redhat.com>
28597
28598 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
28599 %fp 2 to keep registers after it properly word-aligned.
28600 (rl78_alloc_physical_registers_umul): Handle the case where both
28601 input operands are the same.
28602
28603 2014-01-30 Richard Biener <rguenther@suse.de>
28604
28605 PR tree-optimization/59903
28606 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
28607 check properly.
28608
28609 2014-01-30 Jason Merrill <jason@redhat.com>
28610
28611 PR c++/59633
28612 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
28613
28614 PR c++/59645
28615 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
28616
28617 2014-01-30 Richard Biener <rguenther@suse.de>
28618
28619 PR tree-optimization/59951
28620 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
28621
28622 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
28623
28624 PR target/59784
28625 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
28626 SFmode to DFmode case.
28627
28628 2014-01-29 DJ Delorie <dj@redhat.com>
28629
28630 * config/msp430/msp430.opt (-minrt): New.
28631 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
28632 if -minrt given.
28633 (ENDFILE_SPEC): Likewise.
28634
28635 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
28636
28637 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
28638 (estimate_function_body_sizes): Use it.
28639
28640 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
28641
28642 PR c++/58561
28643 * dwarf2out.c (is_cxx_auto): New.
28644 (is_base_type): Use it.
28645 (gen_type_die_with_usage): Likewise.
28646
28647 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28648
28649 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
28650 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
28651 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
28652 -maltivec=be with LE targets.
28653 (vsx_mergeh_<mode>): Likewise.
28654 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
28655 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
28656 (altivec_vmrghb): Replace with define_expand and new
28657 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
28658 (altivec_vmrghb_direct): New define_insn.
28659 (altivec_vmrghh): Replace with define_expand and new
28660 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
28661 (altivec_vmrghh_direct): New define_insn.
28662 (altivec_vmrghw): Replace with define_expand and new
28663 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
28664 (altivec_vmrghw_direct): New define_insn.
28665 (*altivec_vmrghsf): Adjust for endianness.
28666 (altivec_vmrglb): Replace with define_expand and new
28667 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
28668 (altivec_vmrglb_direct): New define_insn.
28669 (altivec_vmrglh): Replace with define_expand and new
28670 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
28671 (altivec_vmrglh_direct): New define_insn.
28672 (altivec_vmrglw): Replace with define_expand and new
28673 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
28674 (altivec_vmrglw_direct): New define_insn.
28675 (*altivec_vmrglsf): Adjust for endianness.
28676 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28677 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28678 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28679 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28680 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28681 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28682 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28683 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28684
28685 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
28686
28687 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
28688 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
28689 whitespace.
28690
28691 2014-01-29 Richard Biener <rguenther@suse.de>
28692
28693 PR tree-optimization/58742
28694 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
28695 associate_pointerplus_align.
28696 (associate_pointerplus_diff): New function.
28697 (associate_pointerplus): Likewise. Call associate_pointerplus_align
28698 and associate_pointerplus_diff.
28699
28700 2014-01-29 Richard Biener <rguenther@suse.de>
28701
28702 * lto-streamer.h (LTO_major_version): Bump to 3.
28703 (LTO_minor_version): Reset to 0.
28704
28705 2014-01-29 Renlin Li <Renlin.Li@arm.com>
28706
28707 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
28708 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
28709 (arm_file_start): Generate correct asm header for armv7ve.
28710 * config/arm/bpabi.h: Add multilib support for armv7ve.
28711 * config/arm/driver-arm.c: Change the architectures of cortex-a7
28712 and cortex-a15 to armv7ve.
28713 * config/arm/t-aprofile: Add multilib support for armv7ve.
28714 * doc/invoke.texi: Document -march=armv7ve.
28715
28716 2014-01-29 Richard Biener <rguenther@suse.de>
28717
28718 PR tree-optimization/58742
28719 * tree-ssa-forwprop.c (associate_plusminus): Return true
28720 if we changed sth, defer EH cleanup to ...
28721 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
28722 (simplify_mult): New function.
28723
28724 2014-01-29 Jakub Jelinek <jakub@redhat.com>
28725
28726 PR middle-end/59917
28727 PR tree-optimization/59920
28728 * tree.c (build_common_builtin_nodes): Remove
28729 __builtin_setjmp_dispatcher initialization.
28730 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
28731 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
28732 instead of gsi_after_labels + manually skipping debug stmts.
28733 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
28734 ignore bbs with IFN_ABNORMAL_DISPATCHER.
28735 * tree-inline.c (copy_edges_for_bb): Remove
28736 can_make_abnormal_goto argument, instead add abnormal_goto_dest
28737 argument. Ignore computed_goto_p stmts. Don't call
28738 make_abnormal_goto_edges. If a call might need abnormal edges
28739 for non-local gotos, see if it already has an edge to
28740 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
28741 with true argument, don't do anything then, otherwise add
28742 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
28743 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
28744 caller.
28745 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
28746 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
28747 (lower_stmt): Don't set data->calls_builtin_setjmp.
28748 (lower_builtin_setjmp): Adjust comment.
28749 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
28750 * tree-cfg.c (found_computed_goto): Remove.
28751 (factor_computed_gotos): Remove.
28752 (make_goto_expr_edges): Return bool, true for computed gotos.
28753 Don't call make_abnormal_goto_edges.
28754 (build_gimple_cfg): Don't set found_computed_goto, don't call
28755 factor_computed_gotos.
28756 (computed_goto_p): No longer static.
28757 (make_blocks): Don't set found_computed_goto.
28758 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
28759 (make_edges): If make_goto_expr_edges returns true, push bb
28760 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
28761 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
28762 vector. Record mapping between bbs and OpenMP regions if there
28763 are any, adjust make_gimple_omp_edges caller. Call
28764 handle_abnormal_edges.
28765 (make_abnormal_goto_edges): Remove.
28766 * tree-cfg.h (make_abnormal_goto_edges): Remove.
28767 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
28768 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
28769 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
28770 * internal-fn.def (ABNORMAL_DISPATCHER): New.
28771 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
28772 filling *region also set *region_idx to (*region)->entry->index.
28773
28774 PR other/58712
28775 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
28776 For REGs set ORIGINAL_REGNO.
28777
28778 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
28779
28780 * doc/md.texi: Mention that a target shouldn't implement
28781 vec_widen_(s|u)mul_even/odd pair if it is less efficient
28782 than hi/lo pair.
28783
28784 2014-01-29 Jakub Jelinek <jakub@redhat.com>
28785
28786 PR tree-optimization/59594
28787 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
28788 a copy of the datarefs vector rather than the vector itself.
28789
28790 2014-01-28 Jason Merrill <jason@redhat.com>
28791
28792 PR c++/53756
28793 * dwarf2out.c (auto_die): New static.
28794 (gen_type_die_with_usage): Handle C++1y 'auto'.
28795 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
28796 on definition.
28797
28798 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
28799
28800 PR target/59672
28801 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
28802 (SPEC_X32): Likewise.
28803 (SPEC_64): Likewise.
28804 * config/i386/i386.c (ix86_option_override_internal): Turn off
28805 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
28806 for TARGET_16BIT.
28807 (x86_file_start): Output .code16gcc for TARGET_16BIT.
28808 * config/i386/i386.h (TARGET_16BIT): New macro.
28809 (TARGET_16BIT_P): Likewise.
28810 * config/i386/i386.opt: Add m16.
28811 * doc/invoke.texi: Document -m16.
28812
28813 2014-01-28 Jakub Jelinek <jakub@redhat.com>
28814
28815 PR preprocessor/59935
28816 * input.c (location_get_source_line): Bail out on when line number
28817 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
28818
28819 2014-01-28 Richard Biener <rguenther@suse.de>
28820
28821 PR tree-optimization/58742
28822 * tree-ssa-forwprop.c (associate_plusminus): Handle
28823 pointer subtraction of the form (T)(P + A) - (T)P.
28824
28825 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28826
28827 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
28828 at const_int_cost.
28829
28830 2014-01-28 Richard Biener <rguenther@suse.de>
28831
28832 Revert
28833 2014-01-28 Richard Biener <rguenther@suse.de>
28834
28835 PR rtl-optimization/45364
28836 PR rtl-optimization/59890
28837 * var-tracking.c (local_get_addr_clear_given_value): Handle
28838 already cleared slot.
28839 (val_reset): Handle not allocated local_get_addr_cache.
28840 (vt_find_locations): Use post-order on the inverted CFG.
28841
28842 2014-01-28 Richard Biener <rguenther@suse.de>
28843
28844 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
28845
28846 2014-01-28 Richard Biener <rguenther@suse.de>
28847
28848 PR rtl-optimization/45364
28849 PR rtl-optimization/59890
28850 * var-tracking.c (local_get_addr_clear_given_value): Handle
28851 already cleared slot.
28852 (val_reset): Handle not allocated local_get_addr_cache.
28853 (vt_find_locations): Use post-order on the inverted CFG.
28854
28855 2014-01-28 Alan Modra <amodra@gmail.com>
28856
28857 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
28858 * configure.ac <recursive call for build != host>: Define
28859 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
28860 and LD_FOR_BUILD too.
28861 * configure: Regenerate.
28862
28863 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
28864
28865 * config/i386/i386.c (get_builtin_code_for_version): Separate
28866 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
28867 Broadwell from Haswell.
28868
28869 2014-01-27 Steve Ellcey <sellcey@mips.com>
28870
28871 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
28872 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
28873 * config/mips/mips.c (mips_option_override): Change setting
28874 of TARGET_DSP.
28875 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
28876 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
28877 Change from Mask to Var.
28878
28879 2014-01-27 Jeff Law <law@redhat.com>
28880
28881 * ipa-inline.c (inline_small_functions): Fix typo.
28882
28883 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
28884
28885 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
28886 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
28887 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
28888 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
28889 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
28890 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
28891 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
28892 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
28893 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
28894 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
28895 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
28896 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
28897 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
28898 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
28899 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
28900 (_mm512_storeu_epi64): Ditto.
28901 (_mm512_cmpge_epi32_mask): Ditto.
28902 (_mm512_cmpge_epu32_mask): Ditto.
28903 (_mm512_cmpge_epi64_mask): Ditto.
28904 (_mm512_cmpge_epu64_mask): Ditto.
28905 (_mm512_cmple_epi32_mask): Ditto.
28906 (_mm512_cmple_epu32_mask): Ditto.
28907 (_mm512_cmple_epi64_mask): Ditto.
28908 (_mm512_cmple_epu64_mask): Ditto.
28909 (_mm512_cmplt_epi32_mask): Ditto.
28910 (_mm512_cmplt_epu32_mask): Ditto.
28911 (_mm512_cmplt_epi64_mask): Ditto.
28912 (_mm512_cmplt_epu64_mask): Ditto.
28913 (_mm512_cmpneq_epi32_mask): Ditto.
28914 (_mm512_cmpneq_epu32_mask): Ditto.
28915 (_mm512_cmpneq_epi64_mask): Ditto.
28916 (_mm512_cmpneq_epu64_mask): Ditto.
28917 (_mm512_expand_pd): Ditto.
28918 (_mm512_expand_ps): Ditto.
28919 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
28920 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
28921 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
28922 * config/i386/i386.c (ix86_builtins): Add
28923 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
28924 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
28925 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
28926 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
28927 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
28928 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
28929 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
28930 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
28931 IX86_BUILTIN_PMOVUSQW512_MEM.
28932 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
28933 __builtin_ia32_pmovsqd512mem_mask,
28934 __builtin_ia32_pmovqd512mem_mask,
28935 __builtin_ia32_pmovusqw512mem_mask,
28936 __builtin_ia32_pmovsqw512mem_mask,
28937 __builtin_ia32_pmovqw512mem_mask,
28938 __builtin_ia32_pmovusdw512mem_mask,
28939 __builtin_ia32_pmovsdw512mem_mask,
28940 __builtin_ia32_pmovdw512mem_mask,
28941 __builtin_ia32_pmovqb512mem_mask,
28942 __builtin_ia32_pmovusqb512mem_mask,
28943 __builtin_ia32_pmovsqb512mem_mask,
28944 __builtin_ia32_pmovusdb512mem_mask,
28945 __builtin_ia32_pmovsdb512mem_mask,
28946 __builtin_ia32_pmovdb512mem_mask.
28947 (bdesc_args): Add __builtin_ia32_expanddf512,
28948 __builtin_ia32_expandsf512.
28949 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
28950 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
28951 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
28952 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
28953 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
28954 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
28955 (avx512f_<code>v8div16qi2_mask_store): This.
28956 (avx512f_expand<mode>): New.
28957
28958 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
28959
28960 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
28961 New.
28962 (_mm512_mask_prefetch_i64gather_pd): Ditto.
28963 (_mm512_prefetch_i32scatter_pd): Ditto.
28964 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
28965 (_mm512_prefetch_i64scatter_pd): Ditto.
28966 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
28967 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
28968 (_mm512_mask_prefetch_i64gather_ps): Ditto.
28969 (_mm512_prefetch_i32scatter_ps): Ditto.
28970 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
28971 (_mm512_prefetch_i64scatter_ps): Ditto.
28972 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
28973 * config/i386/i386-builtin-types.def: Define
28974 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
28975 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
28976 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
28977 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
28978 IX86_BUILTIN_SCATTERPFQPD.
28979 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
28980 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
28981 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
28982 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
28983 __builtin_ia32_scatterpfqps.
28984 (ix86_expand_builtin): Expand new built-ins.
28985 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
28986 fix memory access data type.
28987 (*avx512pf_gatherpf<mode>_mask): Ditto.
28988 (*avx512pf_gatherpf<mode>): Ditto.
28989 (avx512pf_scatterpf<mode>): Ditto.
28990 (*avx512pf_scatterpf<mode>_mask): Ditto.
28991 (*avx512pf_scatterpf<mode>): Ditto.
28992 (GATHER_SCATTER_SF_MEM_MODE): New.
28993 (avx512pf_gatherpf<mode>df): Ditto.
28994 (*avx512pf_gatherpf<mode>df_mask): Ditto.
28995 (*avx512pf_scatterpf<mode>df): Ditto.
28996
28997 2014-01-27 Jakub Jelinek <jakub@redhat.com>
28998
28999 PR bootstrap/59934
29000 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
29001 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
29002 reached.
29003
29004 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
29005
29006 * common/config/arm/arm-common.c
29007 (arm_rewrite_mcpu): Handle multiple names.
29008 * config/arm/arm.h
29009 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
29010
29011 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
29012
29013 * gimple-builder.h (create_gimple_tmp): Delete.
29014
29015 2014-01-27 Christian Bruel <christian.bruel@st.com>
29016
29017 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
29018 words comparisons.
29019
29020 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
29021
29022 * config/pa/pa.md (call): Generate indirect long calls to non-local
29023 functions when outputing 32-bit code.
29024 (call_value): Likewise except for special call to buggy powf function.
29025
29026 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
29027 portable runtime and PIC indirect calls.
29028 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
29029 and PIC call sequences. Use ldo instead of blr to set return register
29030 in PIC call sequence.
29031
29032 2014-01-25 Walter Lee <walt@tilera.com>
29033
29034 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
29035 avoid clobbering a live register.
29036
29037 2014-01-25 Walter Lee <walt@tilera.com>
29038
29039 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
29040 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
29041 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
29042 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
29043
29044 2014-01-25 Walter Lee <walt@tilera.com>
29045
29046 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
29047 arguments on even registers.
29048 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
29049 STACK_BOUNDARY.
29050 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
29051 (BIGGEST_ALIGNMENT): Ditto.
29052 (BIGGEST_FIELD_ALIGNMENT): Ditto.
29053
29054 2014-01-25 Walter Lee <walt@tilera.com>
29055
29056 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
29057 insns before bundling.
29058 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
29059
29060 2014-01-25 Walter Lee <walt@tilera.com>
29061
29062 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
29063 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
29064 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
29065
29066 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
29067
29068 * config/mips/constraints.md (kl): Delete.
29069 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
29070 define expands, using...
29071 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
29072 instructions for MIPS16.
29073 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
29074 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
29075
29076 2014-01-25 Walter Lee <walt@tilera.com>
29077
29078 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
29079 (clzdi2): Ditto.
29080 (ffsdi2): Ditto.
29081
29082 2014-01-25 Walter Lee <walt@tilera.com>
29083
29084 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
29085 (TARGET_EXPAND_TO_RTL_HOOK): Define.
29086
29087 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
29088
29089 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
29090 Handle XOR.
29091
29092 2014-01-25 Jakub Jelinek <jakub@redhat.com>
29093
29094 * print-rtl.c (in_call_function_usage): New var.
29095 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
29096 EXPR_LIST mode as mode and not as reg note name.
29097
29098 PR middle-end/59561
29099 * cfgloopmanip.c (copy_loop_info): If
29100 loop->warned_aggressive_loop_optimizations, make sure
29101 the flag is set in target loop too.
29102
29103 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
29104
29105 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
29106 flag_cilkplus.
29107 * builtins.def: Likewise.
29108 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
29109 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
29110 * ira.c (ira_setup_eliminable_regset): Likewise.
29111 * omp-low.c (gate_expand_omp): Likewise.
29112 (execute_lower_omp): Likewise.
29113 (diagnose_sb_0): Likewise.
29114 (gate_diagnose_omp_blocks): Likewise.
29115 (simd_clone_clauses_extract): Likewise.
29116 (gate): Likewise.
29117
29118 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29119
29120 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
29121 correction for little endian...
29122 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
29123 here.
29124
29125 2014-01-24 Jeff Law <law@redhat.com>
29126
29127 PR tree-optimization/59919
29128 * tree-vrp.c (find_assert_locations_1): Do not register asserts
29129 for non-returning calls.
29130
29131 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
29132
29133 * common/config/aarch64/aarch64-common.c
29134 (aarch64_rewrite_mcpu): Handle multiple names.
29135 * config/aarch64/aarch64.h
29136 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
29137
29138 2014-01-24 Dodji Seketeli <dodji@redhat.com>
29139
29140 * input.c (add_file_to_cache_tab): Handle the case where fopen
29141 returns NULL.
29142
29143 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
29144
29145 PR target/59929
29146 * config/i386/i386.md (pushsf splitter): Get stack adjustment
29147 from push operand if code of push isn't PRE_DEC.
29148
29149 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
29150
29151 PR target/59909
29152 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
29153 -mquad-memory-atomic. Update -mquad-memory documentation to say
29154 it is only used for non-atomic loads/stores.
29155
29156 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
29157 -mquad-memory or -mquad-memory-atomic switches.
29158
29159 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
29160 -mquad-memory-atomic to ISA 2.07 support.
29161
29162 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
29163 to separate support of normal quad word memory operations (ldq, stq)
29164 from the atomic quad word memory operations.
29165
29166 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
29167 support to separate non-atomic quad word operations from atomic
29168 quad word operations. Disable non-atomic quad word operations in
29169 little endian mode so that we don't have to swap words after the
29170 load and before the store.
29171 (quad_load_store_p): Add comment about atomic quad word support.
29172 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
29173 options printed with -mdebug=reg.
29174
29175 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
29176 -mquad-memory-atomic as the test for whether we have quad word
29177 atomic instructions.
29178 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
29179 or -mp8-vector are used, allow byte/half-word atomic operations.
29180
29181 * config/rs6000/sync.md (load_lockedti): Insure that the address
29182 is a proper indexed or indirect address for the lqarx instruction.
29183 On little endian systems, swap the hi/lo registers after the lqarx
29184 instruction.
29185 (load_lockedpti): Use indexed_or_indirect_operand predicate to
29186 insure the address is valid for the lqarx instruction.
29187 (store_conditionalti): Insure that the address is a proper indexed
29188 or indirect address for the stqcrx. instruction. On little endian
29189 systems, swap the hi/lo registers before doing the stqcrx.
29190 instruction.
29191 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
29192 insure the address is valid for the stqcrx. instruction.
29193
29194 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
29195 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
29196 type of quad memory support is available.
29197
29198 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
29199
29200 PR regression/59915
29201 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
29202 there is a danger of looping.
29203
29204 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
29205
29206 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
29207 force flag_ira_loop_pressure if set via command line.
29208
29209 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
29210
29211 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
29212 (ashr_simd): New builtin handling DI mode.
29213 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
29214 (aarch64_sshr_simddi): New match pattern.
29215 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
29216 (vshrd_n_s64): Likewise.
29217 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
29218
29219 2014-01-23 Nick Clifton <nickc@redhat.com>
29220
29221 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
29222 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
29223 favour of mcu specific scripts.
29224 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
29225 430x multilibs.
29226
29227 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
29228 Alex Velenko <Alex.Velenko@arm.com>
29229
29230 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
29231 (vaddv_s16): Likewise.
29232 (vaddv_s32): Likewise.
29233 (vaddv_u8): Likewise.
29234 (vaddv_u16): Likewise.
29235 (vaddv_u32): Likewise.
29236 (vaddvq_s8): Likewise.
29237 (vaddvq_s16): Likewise.
29238 (vaddvq_s32): Likewise.
29239 (vaddvq_s64): Likewise.
29240 (vaddvq_u8): Likewise.
29241 (vaddvq_u16): Likewise.
29242 (vaddvq_u32): Likewise.
29243 (vaddvq_u64): Likewise.
29244 (vaddv_f32): Likewise.
29245 (vaddvq_f32): Likewise.
29246 (vaddvq_f64): Likewise.
29247 (vmaxv_f32): Likewise.
29248 (vmaxv_s8): Likewise.
29249 (vmaxv_s16): Likewise.
29250 (vmaxv_s32): Likewise.
29251 (vmaxv_u8): Likewise.
29252 (vmaxv_u16): Likewise.
29253 (vmaxv_u32): Likewise.
29254 (vmaxvq_f32): Likewise.
29255 (vmaxvq_f64): Likewise.
29256 (vmaxvq_s8): Likewise.
29257 (vmaxvq_s16): Likewise.
29258 (vmaxvq_s32): Likewise.
29259 (vmaxvq_u8): Likewise.
29260 (vmaxvq_u16): Likewise.
29261 (vmaxvq_u32): Likewise.
29262 (vmaxnmv_f32): Likewise.
29263 (vmaxnmvq_f32): Likewise.
29264 (vmaxnmvq_f64): Likewise.
29265 (vminv_f32): Likewise.
29266 (vminv_s8): Likewise.
29267 (vminv_s16): Likewise.
29268 (vminv_s32): Likewise.
29269 (vminv_u8): Likewise.
29270 (vminv_u16): Likewise.
29271 (vminv_u32): Likewise.
29272 (vminvq_f32): Likewise.
29273 (vminvq_f64): Likewise.
29274 (vminvq_s8): Likewise.
29275 (vminvq_s16): Likewise.
29276 (vminvq_s32): Likewise.
29277 (vminvq_u8): Likewise.
29278 (vminvq_u16): Likewise.
29279 (vminvq_u32): Likewise.
29280 (vminnmv_f32): Likewise.
29281 (vminnmvq_f32): Likewise.
29282 (vminnmvq_f64): Likewise.
29283
29284 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
29285
29286 * config/aarch64/aarch64-simd.md
29287 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
29288 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
29289 (*aarch64_mul3_elt<mode>): Likewise.
29290 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
29291 (*aarch64_mul3_elt_to_64v2df): Likewise.
29292 (*aarch64_mla_elt<mode>): Likewise.
29293 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
29294 (*aarch64_mls_elt<mode>): Likewise.
29295 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
29296 (*aarch64_fma4_elt<mode>): Likewise.
29297 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
29298 (*aarch64_fma4_elt_to_64v2df): Likewise.
29299 (*aarch64_fnma4_elt<mode>): Likewise.
29300 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
29301 (*aarch64_fnma4_elt_to_64v2df): Likewise.
29302 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
29303 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
29304 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
29305 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
29306 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
29307 (aarch64_sqdmull_lane<mode>_internal): Likewise.
29308 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
29309
29310 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
29311
29312 * config/aarch64/aarch64-simd.md
29313 (aarch64_be_checked_get_lane<mode>): New define_expand.
29314 * config/aarch64/aarch64-simd-builtins.def
29315 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
29316 New builtin definition.
29317 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
29318 Use new safe be builtin.
29319
29320 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
29321
29322 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
29323 New define_insn.
29324 (aarch64_be_st1<mode>): Likewise.
29325 (aarch_ld1<VALL:mode>): Define_expand modified.
29326 (aarch_st1<VALL:mode>): Likewise.
29327 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
29328 (UNSPEC_ST1): Likewise.
29329
29330 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
29331
29332 * config/microblaze/microblaze.md: Add trap insn and attribute
29333
29334 2014-01-23 Dodji Seketeli <dodji@redhat.com>
29335
29336 PR preprocessor/58580
29337 * input.h (location_get_source_line): Take an additional line_size
29338 parameter.
29339 (void diagnostics_file_cache_fini): Declare new function.
29340 * input.c (struct fcache): New type.
29341 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
29342 New static constants.
29343 (diagnostic_file_cache_init, total_lines_num)
29344 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
29345 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
29346 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
29347 (get_next_line, read_next_line, goto_next_line, read_line_num):
29348 New static function definitions.
29349 (diagnostic_file_cache_fini): New function.
29350 (location_get_source_line): Take an additional output line_len
29351 parameter. Re-write using lookup_or_add_file_to_cache_tab and
29352 read_line_num.
29353 * diagnostic.c (diagnostic_finish): Call
29354 diagnostic_file_cache_fini.
29355 (adjust_line): Take an additional input parameter for the length
29356 of the line, rather than calculating it with strlen.
29357 (diagnostic_show_locus): Adjust the use of
29358 location_get_source_line and adjust_line with respect to their new
29359 signature. While displaying a line now, do not stop at the first
29360 null byte. Rather, display the zero byte as a space and keep
29361 going until we reach the size of the line.
29362 * Makefile.in: Add vec.o to OBJS-libcommon
29363
29364 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
29365 Ilya Tocar <ilya.tocar@intel.com>
29366
29367 * config/i386/avx512fintrin.h (_mm512_kmov): New.
29368 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
29369 (__builtin_ia32_kmov16): Ditto.
29370 * config/i386/i386.md (UNSPEC_KMOV): New.
29371 (kmovw): Ditto.
29372
29373 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
29374
29375 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
29376 (_mm512_storeu_si512): Ditto.
29377
29378 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
29379
29380 PR target/52125
29381 * rtl.h (get_referenced_operands): Declare.
29382 * recog.c (get_referenced_operands): New function.
29383 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
29384 operands have been referenced when recording LO_SUM references.
29385
29386 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
29387
29388 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
29389
29390 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
29391
29392 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
29393 Enable for generic and recent AMD targets.
29394
29395 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
29396
29397 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
29398 ARG_SIZE note when adjustment was eliminated.
29399
29400 2014-01-22 Jeff Law <law@redhat.com>
29401
29402 PR tree-optimization/59597
29403 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
29404 in file. Accept new argument REGISTERING and use it to modify
29405 dump output appropriately.
29406 (register_jump_thread): Corresponding changes.
29407 (mark_threaded_blocks): Reinstate code to cancel unprofitable
29408 thread paths involving joiner blocks. Add code to dump cancelled
29409 jump threading paths.
29410
29411 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
29412
29413 PR rtl-optimization/59477
29414 * lra-constraints.c (inherit_in_ebb): Process call for living hard
29415 regs. Update reloads_num and potential_reload_hard_regs for all insns.
29416
29417 2014-01-22 Tom Tromey <tromey@redhat.com>
29418
29419 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
29420 PARAMS.
29421 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
29422
29423 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
29424
29425 PR rtl-optimization/59896
29426 * lra-constraints.c (process_alt_operands): Check unused note for
29427 matched operands of insn with no output reloads.
29428
29429 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
29430
29431 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
29432 (mips_move_from_gpr_cost): Likewise.
29433
29434 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
29435
29436 PR rtl-optimization/59858
29437 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
29438 ira_class_hard_regs_num.
29439 (process_alt_operands): Increase reject for dying matched operand.
29440
29441 2014-01-21 Jakub Jelinek <jakub@redhat.com>
29442
29443 PR target/59003
29444 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
29445 smaller than size, perform several stores or loads and stores
29446 at dst + count - size to store or copy all of size bytes, rather
29447 than just last modesize bytes.
29448
29449 2014-01-20 DJ Delorie <dj@redhat.com>
29450
29451 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
29452 that CLOBBERs are REGs before propogating their values.
29453
29454 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
29455
29456 PR middle-end/59789
29457 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
29458 (cgraph_inline_failed_type): New function.
29459 * cgraph.h (DEFCIFCODE): Add type.
29460 (cgraph_inline_failed_type_t): New enum.
29461 (cgraph_inline_failed_type): New prototype.
29462 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
29463 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
29464 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
29465 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
29466 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
29467 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
29468 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
29469 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
29470 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
29471 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
29472 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
29473 OPTIMIZATION_MISMATCH.
29474 * tree-inline.c (expand_call_inline): Emit errors during
29475 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
29476
29477 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
29478
29479 PR target/59685
29480 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
29481 mode attribute in insn output.
29482
29483 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
29484
29485 * output.h (output_constant): Delete.
29486 * varasm.c (output_constant): Make private.
29487
29488 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
29489
29490 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
29491
29492 2014-01-20 Jakub Jelinek <jakub@redhat.com>
29493
29494 PR middle-end/59860
29495 * tree.h (fold_builtin_strcat): New prototype.
29496 * builtins.c (fold_builtin_strcat): No longer static. Add len
29497 argument, if non-NULL, don't call c_strlen. Optimize
29498 directly into __builtin_memcpy instead of __builtin_strcpy.
29499 (fold_builtin_2): Adjust fold_builtin_strcat caller.
29500 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
29501
29502 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
29503
29504 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29505 for SImode_address_operand operands, having only a REG argument.
29506
29507 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
29508
29509 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
29510 loader name using mbig-endian.
29511 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
29512
29513 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
29514
29515 * doc/invoke.texi (-march): Clarify documentation for AArch64.
29516 (-mtune): Likewise.
29517 (-mcpu): Likewise.
29518
29519 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
29520
29521 * config/aarch64/aarch64-protos.h
29522 (aarch64_cannot_change_mode_class_ptr): Declare.
29523 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
29524 aarch64_cannot_change_mode_class_ptr): New.
29525 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
29526 backend hook aarch64_cannot_change_mode_class.
29527
29528 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
29529
29530 * common/config/aarch64/aarch64-common.c
29531 (aarch64_handle_option): Don't handle any option order logic here.
29532 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
29533 selected_cpu, warn on architecture version mismatch.
29534 (aarch64_override_options): Fix parsing order for option strings.
29535
29536 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29537 Iain Sandoe <iain@codesourcery.com>
29538
29539 PR bootstrap/59496
29540 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
29541 warning. Amend comment to reflect current functionality.
29542
29543 2014-01-20 Richard Biener <rguenther@suse.de>
29544
29545 PR middle-end/59860
29546 * builtins.c (fold_builtin_strcat): Remove case better handled
29547 by tree-ssa-strlen.c.
29548
29549 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
29550
29551 * config/aarch64/aarch64.opt
29552 (mcpu, march, mtune): Make case-insensitive.
29553
29554 2014-01-20 Jakub Jelinek <jakub@redhat.com>
29555
29556 PR target/59880
29557 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29558 if operands[1] is a REG or ZERO_EXTEND of a REG.
29559
29560 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
29561
29562 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
29563
29564 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
29565
29566 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
29567 long non-pic millicode calls.
29568
29569 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29570
29571 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
29572
29573 2014-01-19 Kito Cheng <kito@0xlab.org>
29574
29575 * builtins.c (expand_movstr): Check movstr expand done or fail.
29576
29577 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29578 H.J. Lu <hongjiu.lu@intel.com>
29579
29580 PR target/59379
29581 * config/i386/i386.md (*lea<mode>): Zero-extend return register
29582 to DImode for zero-extended addresses.
29583
29584 2014-01-19 Jakub Jelinek <jakub@redhat.com>
29585
29586 PR rtl-optimization/57763
29587 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
29588 on the new indirect jump_insn and increment LABEL_NUSES (label).
29589
29590 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
29591
29592 PR bootstrap/59580
29593 PR bootstrap/59583
29594 * config.gcc (x86_archs): New variable.
29595 (x86_64_archs): Likewise.
29596 (x86_cpus): Likewise.
29597 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
29598 --with-arch/--with-cpu= options.
29599 Support --with-arch=/--with-cpu={nehalem,westmere,
29600 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
29601
29602 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29603
29604 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
29605 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
29606
29607 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29608
29609 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
29610
29611 2014-01-18 Jakub Jelinek <jakub@redhat.com>
29612
29613 PR target/58944
29614 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
29615 clear cpp_get_options (parse_in)->warn_unused_macros for
29616 ix86_target_macros_internal with cpp_define.
29617
29618 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
29619
29620 * jump.c (delete_related_insns): Keep (use (insn))s.
29621 * reorg.c (redundant_insn): Check for barriers too.
29622
29623 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29624
29625 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
29626
29627 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
29628
29629 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
29630 call to $$dyncall when TARGET_LONG_CALLS is true.
29631
29632 2014-01-17 Jeff Law <law@redhat.com>
29633
29634 * ree.c (combine_set_extension): Temporarily disable test for
29635 changing number of hard registers.
29636
29637 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
29638
29639 PR middle-end/58125
29640 * ipa-inline-analysis.c (inline_free_summary):
29641 Do not free summary of aliases.
29642
29643 2014-01-17 Jakub Jelinek <jakub@redhat.com>
29644
29645 PR middle-end/59706
29646 * gimplify.c (gimplify_expr): Use create_tmp_var
29647 instead of create_tmp_var_raw. If cond doesn't have
29648 integral type, don't add the IFN_ANNOTATE builtin at all.
29649
29650 2014-01-17 Martin Jambor <mjambor@suse.cz>
29651
29652 PR ipa/59736
29653 * ipa-cp.c (prev_edge_clone): New variable.
29654 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
29655 Also resize prev_edge_clone vector.
29656 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
29657 (ipcp_edge_removal_hook): New function.
29658 (ipcp_driver): Register ipcp_edge_removal_hook.
29659
29660 2014-01-17 Andrew Pinski <apinski@cavium.com>
29661 Steve Ellcey <sellcey@mips.com>
29662
29663 PR target/59462
29664 * config/mips/mips.c (mips_print_operand): Check operand mode instead
29665 of operator mode.
29666
29667 2014-01-17 Jeff Law <law@redhat.com>
29668
29669 PR middle-end/57904
29670 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
29671 so that pass_ccp runs first.
29672
29673 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29674
29675 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
29676 (ix86_adjust_cost): Use !TARGET_XXX.
29677 (do_reorder_for_imul): Likewise.
29678 (swap_top_of_ready_list): Likewise.
29679 (ix86_sched_reorder): Likewise.
29680
29681 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29682
29683 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29684 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
29685 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
29686 (intel_memset): New. Duplicate slm_memset.
29687 (intel_cost): New. Duplicate slm_cost.
29688 (m_INTEL): New macro.
29689 (processor_target_table): Add "intel".
29690 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
29691 with PROCESSOR_INTEL for "intel".
29692 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
29693 PROCESSOR_SILVERMONT.
29694 (ix86_issue_rate): Likewise.
29695 (ix86_adjust_cost): Likewise.
29696 (ia32_multipass_dfa_lookahead): Likewise.
29697 (swap_top_of_ready_list): Likewise.
29698 (ix86_sched_reorder): Likewise.
29699 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
29700 instead of TARGET_OPT_AGU.
29701 * config/i386/i386.h (TARGET_INTEL): New.
29702 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
29703 (processor_type): Add PROCESSOR_INTEL.
29704 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
29705 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
29706
29707 2014-01-17 Marek Polacek <polacek@redhat.com>
29708
29709 PR c/58346
29710 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
29711 size is zero.
29712
29713 2014-01-17 Richard Biener <rguenther@suse.de>
29714
29715 PR tree-optimization/46590
29716 * opts.c (default_options_table): Add entries for
29717 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
29718 all enabled at -O1 but not for -Og.
29719 * common.opt (fbranch-count-reg): Remove Init(1).
29720 (fmove-loop-invariants): Likewise.
29721 (ftree-pta): Likewise.
29722
29723 2014-01-17 Jakub Jelinek <jakub@redhat.com>
29724
29725 * config/i386/i386.c (ix86_data_alignment): For compatibility with
29726 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
29727 decls to at least the GCC 4.8 used alignments.
29728
29729 PR fortran/59440
29730 * tree-nested.c (convert_nonlocal_reference_stmt,
29731 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
29732 of GIMPLE_BIND stmts, adjust associated decls.
29733
29734 2014-01-17 Richard Biener <rguenther@suse.de>
29735
29736 PR tree-optimization/46590
29737 * vec.h (vec<>::bseach): New member function implementing
29738 binary search according to C89 bsearch.
29739 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
29740 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
29741 bitmap pointer again. Make accesses_in_loop a flat array.
29742 (mem_ref_obstack): New global.
29743 (outermost_indep_loop): Adjust for mem_ref->stored changes.
29744 (mark_ref_stored): Likewise.
29745 (ref_indep_loop_p_2): Likewise.
29746 (set_ref_stored_in_loop): New helper function.
29747 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
29748 (memref_free): Adjust.
29749 (record_mem_ref_loc): Simplify.
29750 (gather_mem_refs_stmt): Adjust.
29751 (sort_locs_in_loop_postorder_cmp): New function.
29752 (analyze_memory_references): Sort accesses_in_loop after
29753 loop postorder number.
29754 (find_ref_loc_in_loop_cmp): New function.
29755 (for_all_locs_in_loop): Find relevant cluster of locs in
29756 accesses_in_loop and iterate without recursion.
29757 (execute_sm): Avoid uninit warning.
29758 (struct ref_always_accessed): Simplify.
29759 (ref_always_accessed::operator ()): Likewise.
29760 (ref_always_accessed_p): Likewise.
29761 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
29762 loop postorder numbers here.
29763 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
29764 numbers.
29765
29766 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
29767
29768 PR c++/57945
29769 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
29770 on decls for which assemble_alias has been called.
29771
29772 2014-01-17 Nick Clifton <nickc@redhat.com>
29773
29774 * config/msp430/msp430.opt: (mcpu): New option.
29775 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
29776 (msp430_option_override): Parse target_cpu. If the MCU name
29777 matches a generic string, clear target_mcu.
29778 (msp430_attr): Allow numeric interrupt values up to 63.
29779 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
29780 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
29781 option.
29782 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
29783 Add mcpu matches.
29784 * config/msp430/msp430.md (popm): Use %J rather than %I.
29785 (addsi3): Use msp430_nonimmediate_operand for operand 2.
29786 (addhi_cy_i): Use immediate_operand for operand 2.
29787 * doc/invoke.texi: Document -mcpu option.
29788
29789 2014-01-17 Richard Biener <rguenther@suse.de>
29790
29791 PR rtl-optimization/38518
29792 * df.h (df_analyze_loop): Declare.
29793 * df-core.c: Include cfgloop.h.
29794 (df_analyze_1): Split out main part of df_analyze.
29795 (df_analyze): Adjust.
29796 (loop_inverted_post_order_compute): New function.
29797 (loop_post_order_compute): Likewise.
29798 (df_analyze_loop): New function avoiding whole-function
29799 postorder computes.
29800 * loop-invariant.c (find_defs): Use df_analyze_loop.
29801 (find_invariants): Adjust.
29802 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
29803
29804 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
29805
29806 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
29807 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
29808
29809 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
29810
29811 * ipa-ref.c (ipa_remove_stmt_references): Fix references
29812 traversal when removing references.
29813
29814 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
29815
29816 PR ipa/59775
29817 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
29818
29819 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
29820
29821 PR middle-end/56791
29822 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
29823 pushing a reload for an autoinc when we had previously reloaded an
29824 inner part of the address.
29825
29826 2014-01-16 Jakub Jelinek <jakub@redhat.com>
29827
29828 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
29829 field.
29830 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
29831 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
29832 when not giving up or versioning for alias only because of
29833 loop->safelen.
29834 (vect_analyze_data_ref_dependences): Set to true.
29835 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
29836 is a GIMPLE_PHI.
29837 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
29838 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
29839 to the condition.
29840
29841 PR middle-end/58344
29842 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
29843
29844 PR target/59839
29845 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
29846 operand 0 predicate for gathers, use a new pseudo as subtarget.
29847
29848 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
29849
29850 PR middle-end/59609
29851 * lra-constraints.c (process_alt_operands): Add printing debug info.
29852 Check absence of input/output reloads for matched operands too.
29853
29854 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
29855
29856 PR rtl-optimization/59835
29857 * ira.c (ira_init_register_move_cost): Increase cost for
29858 impossible modes.
29859
29860 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
29861
29862 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
29863
29864 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
29865
29866 PR target/59780
29867 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
29868 non-register objects. Use gen_(high/low)part more consistently.
29869 Fix assertions.
29870
29871 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
29872
29873 PR target/59844
29874 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
29875 endian support, remove tests for WORDS_BIG_ENDIAN.
29876 (p8_mfvsrd_3_<mode>): Likewise.
29877 (reload_gpr_from_vsx<mode>): Likewise.
29878 (reload_gpr_from_vsxsf): Likewise.
29879 (p8_mfvsrd_4_disf): Likewise.
29880
29881 2014-01-16 Richard Biener <rguenther@suse.de>
29882
29883 PR rtl-optimization/46590
29884 * lcm.c (compute_antinout_edge): Use postorder iteration.
29885 (compute_laterin): Use inverted postorder iteration.
29886
29887 2014-01-16 Nick Clifton <nickc@redhat.com>
29888
29889 PR middle-end/28865
29890 * varasm.c (output_constant): Return the number of bytes actually
29891 emitted.
29892 (output_constructor_array_range): Update the field size with the
29893 number of bytes emitted by output_constant.
29894 (output_constructor_regular_field): Likewise. Also do not
29895 complain if the total number of bytes emitted is now greater
29896 than the expected fieldpos.
29897 * output.h (output_constant): Update prototype and descriptive comment.
29898
29899 2014-01-16 Marek Polacek <polacek@redhat.com>
29900
29901 PR middle-end/59827
29902 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
29903 it is error_mark_node.
29904
29905 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
29906
29907 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
29908 VALID_AVX256_REG_OR_OI_MODE.
29909
29910 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
29911
29912 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
29913 current procedure should be profiled.
29914
29915 2014-01-15 Andrew Pinski <apinski@cavium.com>
29916
29917 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
29918 of moving from/to the STACK_REG register class.
29919
29920 2014-01-15 Richard Henderson <rth@redhat.com>
29921
29922 PR debug/54694
29923 * reginfo.c (global_regs_decl): Globalize.
29924 * rtl.h (global_regs_decl): Declare.
29925 * ira.c (do_reload): Diagnose frame_pointer_needed and it
29926 reserved via global_regs.
29927
29928 2014-01-15 Teresa Johnson <tejohnson@google.com>
29929
29930 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
29931
29932 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
29933
29934 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
29935 and vmulosh rather than call gen_vec_widen_smult_*.
29936 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
29937 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
29938 (vec_widen_smult_even_v16qi): Likewise.
29939 (vec_widen_umult_even_v8hi): Likewise.
29940 (vec_widen_smult_even_v8hi): Likewise.
29941 (vec_widen_umult_odd_v16qi): Likewise.
29942 (vec_widen_smult_odd_v16qi): Likewise.
29943 (vec_widen_umult_odd_v8hi): Likewise.
29944 (vec_widen_smult_odd_v8hi): Likewise.
29945 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
29946 vmuloub rather than call gen_vec_widen_umult_*.
29947 (vec_widen_umult_lo_v16qi): Likewise.
29948 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
29949 vmulosb rather than call gen_vec_widen_smult_*.
29950 (vec_widen_smult_lo_v16qi): Likewise.
29951 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
29952 rather than call gen_vec_widen_umult_*.
29953 (vec_widen_umult_lo_v8hi): Likewise.
29954 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
29955 rather than call gen_vec_widen_smult_*.
29956 (vec_widen_smult_lo_v8hi): Likewise.
29957
29958 2014-01-15 Jeff Law <law@redhat.com>
29959
29960 PR tree-optimization/59747
29961 * ree.c (find_and_remove_re): Properly handle case where a second
29962 eliminated extension requires widening a copy created for elimination
29963 of a prior extension.
29964 (combine_set_extension): Ensure that the number of hard regs needed
29965 for a destination register does not change when we widen it.
29966
29967 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
29968
29969 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
29970 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
29971 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
29972 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
29973 (avr-*-rtems*): Likewise.
29974 (bfin*-rtems*): Likewise.
29975 (moxie-*-rtems*): Likewise.
29976 (h8300-*-rtems*): Likewise.
29977 (i[34567]86-*-rtems*): Likewise.
29978 (lm32-*-rtems*): Likewise.
29979 (m32r-*-rtems*): Likewise.
29980 (m68k-*-rtems*): Likewise.
29981 (microblaze*-*-rtems*): Likewise.
29982 (mips*-*-rtems*): Likewise.
29983 (powerpc-*-rtems*): Likewise.
29984 (sh-*-rtems*): Likewise.
29985 (sparc-*-rtems*): Likewise.
29986 (sparc64-*-rtems*): Likewise.
29987 (v850-*-rtems*): Likewise.
29988 (m32c-*-rtems*): Likewise.
29989
29990 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
29991
29992 PR rtl-optimization/59511
29993 * ira.c (ira_init_register_move_cost): Use memory costs for some
29994 cases of register move cost calculations.
29995 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
29996 instead of BB frequency.
29997 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
29998 * lra-assigns.c (find_hard_regno_for): Ditto.
29999
30000 2014-01-15 Richard Biener <rguenther@suse.de>
30001
30002 PR tree-optimization/59822
30003 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
30004 (vectorizable_load): Use it to hoist defs of uses of invariant
30005 loads out of the loop.
30006
30007 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
30008 Kugan Vivekanandarajah <kuganv@linaro.org>
30009
30010 PR target/59695
30011 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
30012 truncation.
30013
30014 2014-01-15 Richard Biener <rguenther@suse.de>
30015
30016 PR rtl-optimization/59802
30017 * lcm.c (compute_available): Use inverted postorder to seed
30018 the initial worklist.
30019
30020 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30021
30022 PR target/59803
30023 * config/s390/s390.c (s390_preferred_reload_class): Don't return
30024 ADDR_REGS for invalid symrefs in non-PIC code.
30025
30026 2014-01-15 Jakub Jelinek <jakub@redhat.com>
30027
30028 PR other/58712
30029 * builtins.c (determine_block_size): Initialize *probable_max_size
30030 even if len_rtx is CONST_INT.
30031
30032 2014-01-14 Andrew Pinski <apinski@cavium.com>
30033
30034 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
30035 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
30036 (cortexa53_tunings): Likewise.
30037 (aarch64_sched_issue_rate): New function.
30038 (TARGET_SCHED_ISSUE_RATE): Define.
30039
30040 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
30041
30042 * ira-costs.c (find_costs_and_classes): Add missed
30043 ira_init_register_move_cost_if_necessary.
30044
30045 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
30046
30047 PR target/59787
30048 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
30049
30050 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
30051
30052 PR target/59794
30053 * config/i386/i386.c (type_natural_mode): Add a bool parameter
30054 to indicate if type is used for function return value. Warn ABI
30055 change if the vector mode isn't available for function return value.
30056 (ix86_function_arg_advance): Pass false to type_natural_mode.
30057 (ix86_function_arg): Likewise.
30058 (ix86_gimplify_va_arg): Likewise.
30059 (function_arg_32): Don't warn ABI change.
30060 (ix86_function_value): Pass true to type_natural_mode.
30061 (ix86_return_in_memory): Likewise.
30062 (ix86_struct_value_rtx): Removed.
30063 (TARGET_STRUCT_VALUE_RTX): Likewise.
30064
30065 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
30066
30067 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
30068 converting a conditional jump into a conditional return.
30069
30070 2014-01-14 Richard Biener <rguenther@suse.de>
30071
30072 PR tree-optimization/58921
30073 PR tree-optimization/59006
30074 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
30075 hoisting invariant stmts.
30076 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
30077 invariant loads on the preheader edge if possible.
30078
30079 2014-01-14 Joey Ye <joey.ye@arm.com>
30080
30081 * doc/plugin.texi (Building GCC plugins): Update to C++.
30082
30083 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
30084
30085 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
30086 (_mm_rcp28_round_ss): Ditto.
30087 (_mm_rsqrt28_round_sd): Ditto.
30088 (_mm_rsqrt28_round_ss): Ditto.
30089 (_mm_rcp28_sd): Ditto.
30090 (_mm_rcp28_ss): Ditto.
30091 (_mm_rsqrt28_sd): Ditto.
30092 (_mm_rsqrt28_ss): Ditto.
30093 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
30094 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
30095 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
30096 (IX86_BUILTIN_RCP28SD): Ditto.
30097 (IX86_BUILTIN_RCP28SS): Ditto.
30098 (IX86_BUILTIN_RSQRT28SD): Ditto.
30099 (IX86_BUILTIN_RSQRT28SS): Ditto.
30100 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
30101 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
30102 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
30103 (ix86_expand_special_args_builtin): Expand new FTYPE.
30104 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
30105 (srcp14<mode>): Make insn unary.
30106 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
30107 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
30108 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
30109 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
30110 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
30111 Fix rounding: make it SAE only.
30112 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
30113 Ditto.
30114 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
30115 Ditto.
30116 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
30117 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
30118 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
30119 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
30120 (round_saeonly_mask_scalar_operand4): Ditto.
30121 (round_saeonly_mask_scalar_op3): Ditto.
30122 (round_saeonly_mask_scalar_op4): Ditto.
30123
30124 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30125
30126 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30127 Implement -maltivec=be for vec_insert and vec_extract.
30128
30129 2014-01-10 DJ Delorie <dj@redhat.com>
30130
30131 * config/msp430/msp430.md (call_internal): Don't allow memory
30132 references with SP as the base register.
30133 (call_value_internal): Likewise.
30134 * config/msp430/constraints.md (Yc): New. For memory references
30135 that don't use SP as a base register.
30136
30137 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
30138 "an integer without a # prefix"
30139 * config/msp430/msp430.md (epilogue_helper): Use it.
30140
30141 2014-01-13 Jakub Jelinek <jakub@redhat.com>
30142
30143 PR target/59617
30144 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
30145 AVX512F gather builtins.
30146 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
30147 on gather decls with INTEGER_TYPE masktype.
30148 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
30149 directly into the builtin rather than hoisting it before loop.
30150
30151 PR tree-optimization/59387
30152 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
30153 (scev_const_prop): If folded_casts and type has undefined overflow,
30154 use force_gimple_operand instead of force_gimple_operand_gsi and
30155 for each added stmt if it is assign with
30156 arith_code_with_undefined_signed_overflow, call
30157 rewrite_to_defined_overflow.
30158 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
30159 gimple-fold.h instead.
30160 (arith_code_with_undefined_signed_overflow,
30161 rewrite_to_defined_overflow): Moved to ...
30162 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
30163 rewrite_to_defined_overflow): ... here. No longer static.
30164 Include gimplify-me.h.
30165 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
30166 rewrite_to_defined_overflow): New prototypes.
30167
30168 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30169
30170 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
30171
30172 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
30173
30174 * builtins.c (get_object_alignment_2): Minor tweak.
30175 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
30176
30177 2014-01-13 Christian Bruel <christian.bruel@st.com>
30178
30179 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
30180 optimized non constant lengths.
30181
30182 2014-01-13 Jakub Jelinek <jakub@redhat.com>
30183
30184 PR libgomp/59194
30185 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
30186 load as __atomic_load_N if possible.
30187
30188 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
30189
30190 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
30191 target parameter.
30192 (rs6000_expand_builtin): Adjust call.
30193
30194 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
30195
30196 PR target/58115
30197 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
30198 * config/rs6000/rs6000.c: Include target-globals.h.
30199 (rs6000_set_current_function): Instead of doing target_reinit
30200 unconditionally, use save_target_globals_default_opts and
30201 restore_target_globals.
30202
30203 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
30204 FPSCR.
30205 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
30206 (rs6000_expand_builtin): Handle mffs and mtfsf.
30207 (rs6000_init_builtins): Define mffs and mtfsf.
30208 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
30209 (rs6000_mffs): New pattern.
30210 (rs6000_mtfsf): New pattern.
30211
30212 2014-01-11 Bin Cheng <bin.cheng@arm.com>
30213
30214 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
30215 Start narrowing with START. Apply candidate-use pair
30216 and check overall cost in narrowing.
30217 (iv_ca_prune): Pass new argument.
30218
30219 2014-01-10 Jeff Law <law@redhat.com>
30220
30221 PR middle-end/59743
30222 * ree.c (combine_reaching_defs): Ensure the defining statement
30223 occurs before the extension when optimizing extensions with
30224 different source and destination hard registers.
30225
30226 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
30227
30228 PR ipa/58585
30229 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
30230 vtables into the type inheritance graph.
30231
30232 2014-01-10 Jakub Jelinek <jakub@redhat.com>
30233
30234 PR rtl-optimization/59754
30235 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
30236 modes in the REGNO != REGNO case.
30237
30238 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30239
30240 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
30241
30242 2014-01-10 Jakub Jelinek <jakub@redhat.com>
30243
30244 PR tree-optimization/59745
30245 * tree-predcom.c (tree_predictive_commoning_loop): Call
30246 free_affine_expand_cache if giving up because components is NULL.
30247
30248 * target-globals.c (save_target_globals): Allocate < 4KB structs using
30249 GC in payload of target_globals struct instead of allocating them on
30250 the heap and the larger structs separately using GC.
30251 * target-globals.h (struct target_globals): Make regs, hard_regs,
30252 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
30253 of GTY((skip)) and change type to void *.
30254 (reset_target_globals): Cast loads from those fields to corresponding
30255 types.
30256
30257 2014-01-10 Steve Ellcey <sellcey@mips.com>
30258
30259 PR plugins/59335
30260 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
30261 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
30262 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
30263
30264 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
30265
30266 PR target/59744
30267 * aarch64-modes.def (CC_Zmode): New flags mode.
30268 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
30269 represents an equality.
30270 (aarch64_get_condition_code): Handle CC_Zmode.
30271 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
30272
30273 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30274
30275 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
30276 extraction in good case.
30277
30278 2014-01-10 Richard Biener <rguenther@suse.de>
30279
30280 PR tree-optimization/59374
30281 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
30282 checking after SLP discovery. Mark stmts not participating
30283 in any SLP instance properly.
30284
30285 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30286
30287 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
30288 when handling a SET rtx.
30289
30290 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30291
30292 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
30293 (cortex-a57): Likewise.
30294 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
30295
30296 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30297
30298 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
30299 non-iwmmxt builtins.
30300
30301 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
30302
30303 PR ipa/58252
30304 PR ipa/59226
30305 * ipa-devirt.c record_target_from_binfo): Take as argument
30306 stack of binfos and lookup matching one for virtual inheritance.
30307 (possible_polymorphic_call_targets_1): Update.
30308
30309 2014-01-10 Huacai Chen <chenhc@lemote.com>
30310
30311 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
30312 kernel strings for Loongson-2E/2F/3A.
30313
30314 2014-01-10 Jakub Jelinek <jakub@redhat.com>
30315
30316 PR middle-end/59670
30317 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
30318 is_gimple_call before calling gimple_call_internal_p.
30319
30320 2014-01-09 Steve Ellcey <sellcey@mips.com>
30321
30322 * Makefile.in (TREE_FLOW_H): Remove.
30323 (TREE_SSA_H): Add file names from tree-flow.h.
30324 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
30325 * tree.h: Remove tree-flow.h reference.
30326 * hash-table.h: Remove tree-flow.h reference.
30327 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
30328 reference with tree-ssa-loop.h.
30329
30330 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30331
30332 * doc/invoke.texi: Add -maltivec={be,le} options, and document
30333 default element-order behavior for -maltivec.
30334 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
30335 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
30336 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
30337 when targeting big endian, at least for now.
30338 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
30339
30340 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30341
30342 PR middle-end/47735
30343 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
30344 var satisfies use_register_for_decl, just take into account type
30345 alignment, rather than decl alignment.
30346
30347 PR tree-optimization/59622
30348 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
30349 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
30350 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
30351 Don't devirtualize for inplace at all. For targets.length () == 1,
30352 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
30353
30354 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
30355
30356 * config/i386/i386.md (cpu): Remove the unused btver1.
30357
30358 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
30359
30360 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
30361
30362 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30363
30364 PR target/58115
30365 * tree-core.h (struct target_globals): New forward declaration.
30366 (struct tree_target_option): Add globals field.
30367 * tree.h (TREE_TARGET_GLOBALS): Define.
30368 (prepare_target_option_nodes_for_pch): New prototype.
30369 * target-globals.h (struct target_globals): Define even if
30370 !SWITCHABLE_TARGET.
30371 * tree.c (prepare_target_option_node_for_pch,
30372 prepare_target_option_nodes_for_pch): New functions.
30373 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
30374 * config/i386/i386.c: Include target-globals.h.
30375 (ix86_set_current_function): Instead of doing target_reinit
30376 unconditionally, use save_target_globals_default_opts and
30377 restore_target_globals.
30378
30379 2014-01-09 Richard Biener <rguenther@suse.de>
30380
30381 PR tree-optimization/59715
30382 * tree-cfg.h (split_critical_edges): Declare.
30383 * tree-cfg.c (split_critical_edges): Export.
30384 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
30385
30386 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
30387
30388 * cfgexpand.c (expand_stack_vars): Optionally disable
30389 asan stack protection.
30390 (expand_used_vars): Likewise.
30391 (partition_stack_vars): Likewise.
30392 * asan.c (asan_emit_stack_protection): Optionally disable
30393 after return stack usage.
30394 (instrument_derefs): Optionally disable memory access instrumentation.
30395 (instrument_builtin_call): Likewise.
30396 (instrument_strlen_call): Likewise.
30397 (asan_protect_global): Optionally disable global variables protection.
30398 * doc/invoke.texi: Added doc for new options.
30399 * params.def: Added new options.
30400 * params.h: Likewise.
30401
30402 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30403
30404 PR rtl-optimization/59724
30405 * ifcvt.c (cond_exec_process_if_block): Don't call
30406 flow_find_head_matching_sequence with 0 longest_match.
30407 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
30408 non-active insns if !stop_after.
30409 (try_head_merge_bb): Revert 2014-01-07 changes.
30410
30411 2014-01-08 Jeff Law <law@redhat.com>
30412
30413 * ree.c (get_sub_rtx): New function, extracted from...
30414 (merge_def_and_ext): Here.
30415 (combine_reaching_defs): Use get_sub_rtx.
30416
30417 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
30418
30419 * cgraph.h (varpool_variable_node): Do not choke on null node.
30420
30421 2014-01-08 Catherine Moore <clm@codesourcery.com>
30422
30423 * config/mips/mips.md (simple_return): Attempt to use JRC
30424 for microMIPS.
30425 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
30426
30427 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
30428
30429 PR rtl-optimization/59137
30430 * reorg.c (steal_delay_list_from_target): Call update_block for
30431 elided insns.
30432 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
30433
30434 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30435
30436 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
30437 two duplicate entries.
30438
30439 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
30440
30441 Revert:
30442 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
30443
30444 * config/mips/mips.c (mips_truncated_op_cost): New function.
30445 (mips_rtx_costs): Adjust test for BADDU.
30446 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
30447
30448 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
30449
30450 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
30451 (*baddu_si): ...this new pattern.
30452
30453 2014-01-08 Jakub Jelinek <jakub@redhat.com>
30454
30455 PR ipa/59722
30456 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
30457
30458 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
30459
30460 PR middle-end/57748
30461 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
30462 inner_reference_p.
30463 (expand_expr, expand_normal): Adjust.
30464 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
30465 inner_reference_p. Use inner_reference_p to expand inner references.
30466 (store_expr): Adjust.
30467 * cfgexpand.c (expand_call_stmt): Adjust.
30468
30469 2014-01-08 Rong Xu <xur@google.com>
30470
30471 * gcov-io.c (gcov_var): Move from gcov-io.h.
30472 (gcov_position): Ditto.
30473 (gcov_is_error): Ditto.
30474 (gcov_rewrite): Ditto.
30475 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
30476 only part to libgcc/libgcov.h.
30477
30478 2014-01-08 Marek Polacek <polacek@redhat.com>
30479
30480 PR middle-end/59669
30481 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
30482
30483 2014-01-08 Marek Polacek <polacek@redhat.com>
30484
30485 PR sanitizer/59667
30486 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
30487
30488 2014-01-08 Jakub Jelinek <jakub@redhat.com>
30489
30490 PR rtl-optimization/59649
30491 * stor-layout.c (get_mode_bounds): For BImode return
30492 0 and STORE_FLAG_VALUE.
30493
30494 2014-01-08 Richard Biener <rguenther@suse.de>
30495
30496 PR middle-end/59630
30497 * gimple.h (is_gimple_builtin_call): Remove.
30498 (gimple_builtin_call_types_compatible_p): New.
30499 (gimple_call_builtin_p): New overload.
30500 * gimple.c (is_gimple_builtin_call): Remove.
30501 (validate_call): Rename to ...
30502 (gimple_builtin_call_types_compatible_p): ... this and export. Also
30503 check return types.
30504 (validate_type): New static function.
30505 (gimple_call_builtin_p): New overload and adjust.
30506 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
30507 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
30508 (gimple_fold_stmt_to_constant_1): Likewise.
30509 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
30510
30511 2014-01-08 Richard Biener <rguenther@suse.de>
30512
30513 PR middle-end/59471
30514 * gimplify.c (gimplify_expr): Gimplify register-register type
30515 VIEW_CONVERT_EXPRs to separate stmts.
30516
30517 2014-01-07 Jeff Law <law@redhat.com>
30518
30519 PR middle-end/53623
30520 * ree.c (combine_set_extension): Handle case where source
30521 and destination registers in an extension insn are different.
30522 (combine_reaching_defs): Allow source and destination registers
30523 in extension to be different under limited circumstances.
30524 (add_removable_extension): Remove restriction that the
30525 source and destination registers in the extension are the same.
30526 (find_and_remove_re): Emit a copy from the extension's
30527 destination to its source after the defining insn if
30528 the source and destination registers are different.
30529
30530 PR middle-end/59285
30531 * ifcvt.c (merge_if_block): If we are merging a block with more than
30532 one successor with a block with no successors, remove any BARRIER
30533 after the second block.
30534
30535 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
30536
30537 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
30538
30539 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
30540
30541 PR target/59652
30542 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
30543 for 14-bit register offsets when INT14_OK_STRICT is false.
30544
30545 2014-01-07 Roland Stigge <stigge@antcom.de>
30546 Michael Meissner <meissner@linux.vnet.ibm.com>
30547
30548 PR 57386/target
30549 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
30550 Only check TFmode for SPE constants. Don't check TImode or TDmode.
30551
30552 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
30553
30554 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
30555 -mcpu.
30556
30557 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
30558
30559 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
30560 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
30561 rtx is const0_rtx or not.
30562
30563 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
30564
30565 PR target/58115
30566 * target-globals.c (save_target_globals): Remove this_fn_optab
30567 handling.
30568 * toplev.c: Include optabs.h.
30569 (target_reinit): Temporarily restore the global options if another
30570 set of options are in force.
30571
30572 2014-01-07 Jakub Jelinek <jakub@redhat.com>
30573
30574 PR rtl-optimization/58668
30575 * cfgcleanup.c (flow_find_cross_jump): Don't count
30576 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
30577 to determine what is counted.
30578 (flow_find_head_matching_sequence): Use active_insn_p to determine
30579 what is counted.
30580 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
30581 counting change.
30582 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
30583 determine what is counted.
30584
30585 PR tree-optimization/59643
30586 * tree-predcom.c (split_data_refs_to_components): If one dr is
30587 read and one write, determine_offset fails and the write isn't
30588 in the bad component, just put the read into the bad component.
30589
30590 2014-01-07 Mike Stump <mikestump@comcast.net>
30591 Jakub Jelinek <jakub@redhat.com>
30592
30593 PR pch/59436
30594 * tree-core.h (struct tree_optimization_option): Change optabs
30595 type from unsigned char * to void *.
30596 * optabs.c (init_tree_optimization_optabs): Adjust
30597 TREE_OPTIMIZATION_OPTABS initialization.
30598
30599 2014-01-06 Jakub Jelinek <jakub@redhat.com>
30600
30601 PR target/59644
30602 * config/i386/i386.h (struct machine_function): Add
30603 no_drap_save_restore field.
30604 * config/i386/i386.c (ix86_save_reg): Use
30605 !cfun->machine->no_drap_save_restore instead of
30606 crtl->stack_realign_needed.
30607 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
30608 this function clears frame_pointer_needed. Set
30609 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
30610 and DRAP reg is needed.
30611
30612 2014-01-06 Marek Polacek <polacek@redhat.com>
30613
30614 PR c/57773
30615 * doc/implement-c.texi: Mention that other integer types are
30616 permitted as bit-field types in strictly conforming mode.
30617
30618 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
30619
30620 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
30621 is newly allocated.
30622
30623 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
30624
30625 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
30626
30627 2014-01-06 Martin Jambor <mjambor@suse.cz>
30628
30629 PR ipa/59008
30630 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
30631 to int.
30632 * ipa-prop.c (ipa_print_node_params): Fix indentation.
30633
30634 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
30635
30636 PR debug/59350
30637 PR debug/59510
30638 * var-tracking.c (add_stores): Preserve the value of the source even if
30639 we don't record the store.
30640
30641 2014-01-06 Terry Guo <terry.guo@arm.com>
30642
30643 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
30644
30645 2014-01-05 Iain Sandoe <iain@codesourcery.com>
30646
30647 PR bootstrap/59541
30648 * config/darwin.c (darwin_function_section): Adjust return values to
30649 correspond to optimisation changes made in r206070.
30650
30651 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
30652
30653 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
30654 from prefetch_block tune setting.
30655 (nocona_cost): Correct size of prefetch block to 64.
30656
30657 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
30658
30659 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
30660 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
30661 used to save the static chain register in the computation of the offset
30662 from which the FP registers need to be restored.
30663
30664 2014-01-04 Jakub Jelinek <jakub@redhat.com>
30665
30666 PR tree-optimization/59519
30667 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
30668 ICE if get_current_def (current_new_name) is already non-NULL, as long
30669 as it is a phi result of some other phi in *new_exit_bb that has
30670 the same argument.
30671
30672 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
30673 or vmovdqu* for misaligned_operand.
30674 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
30675 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
30676 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
30677 aligned_mem for AVX512F masked aligned load and store builtins and for
30678 non-temporal moves.
30679
30680 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
30681
30682 PR tree-optimization/59651
30683 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
30684 Address range for negative step should be added by TYPE_SIZE_UNIT.
30685
30686 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
30687
30688 * config/m68k/m68k.c (handle_move_double): Handle pushes with
30689 overlapping registers also for registers other than the stack pointer.
30690
30691 2014-01-03 Marek Polacek <polacek@redhat.com>
30692
30693 PR other/59661
30694 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
30695 __builtin_FILE.
30696
30697 2014-01-03 Jakub Jelinek <jakub@redhat.com>
30698
30699 PR target/59625
30700 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
30701 asm goto as jump.
30702
30703 * config/i386/i386.md (MODE_SIZE): New mode attribute.
30704 (push splitter): Use <P:MODE_SIZE> instead of
30705 GET_MODE_SIZE (<P:MODE>mode).
30706 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
30707 (mov -1, reg peephole2): Likewise.
30708 * config/i386/sse.md (*mov<mode>_internal,
30709 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
30710 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
30711 *<code><mode>3, *andnot<mode>3<mask_name>,
30712 <mask_codefor><code><mode>3<mask_name>): Likewise.
30713 * config/i386/subst.md (mask_mode512bit_condition,
30714 sd_mask_mode512bit_condition): Likewise.
30715
30716 2014-01-02 Xinliang David Li <davidxl@google.com>
30717
30718 PR tree-optimization/59303
30719 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
30720 (dump_predicates): Better output format.
30721 (pred_equal_p): New function.
30722 (is_neq_relop_p): Ditto.
30723 (is_neq_zero_form_p): Ditto.
30724 (pred_expr_equal_p): Ditto.
30725 (pred_neg_p): Ditto.
30726 (simplify_pred): Ditto.
30727 (simplify_preds_2): Ditto.
30728 (simplify_preds_3): Ditto.
30729 (simplify_preds_4): Ditto.
30730 (simplify_preds): Ditto.
30731 (push_pred): Ditto.
30732 (push_to_worklist): Ditto.
30733 (get_pred_info_from_cmp): Ditto.
30734 (is_degenerated_phi): Ditto.
30735 (normalize_one_pred_1): Ditto.
30736 (normalize_one_pred): Ditto.
30737 (normalize_one_pred_chain): Ditto.
30738 (normalize_preds): Ditto.
30739 (normalize_cond_1): Remove function.
30740 (normalize_cond): Ditto.
30741 (is_gcond_subset_of): Ditto.
30742 (is_subset_of_any): Ditto.
30743 (is_or_set_subset_of): Ditto.
30744 (is_and_set_subset_of): Ditto.
30745 (is_norm_cond_subset_of): Ditto.
30746 (pred_chain_length_cmp): Ditto.
30747 (convert_control_dep_chain_into_preds): Type change.
30748 (find_predicates): Ditto.
30749 (find_def_preds): Ditto.
30750 (destroy_predicates_vecs): Ditto.
30751 (find_matching_predicates_in_rest_chains): Ditto.
30752 (use_pred_not_overlap_with_undef_path_pred): Ditto.
30753 (is_pred_expr_subset): Ditto.
30754 (is_pred_chain_subset_of): Ditto.
30755 (is_included_in): Ditto.
30756 (is_superset_of): Ditto.
30757
30758 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
30759
30760 Update copyright years.
30761
30762 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
30763
30764 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
30765 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
30766 config/arc/arc.md, config/arc/arc.opt,
30767 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
30768 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
30769 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
30770 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
30771 config/linux-protos.h, config/linux.c, config/winnt-c.c,
30772 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
30773 vtable-verify.c, vtable-verify.h: Use the standard form for the
30774 copyright notice.
30775
30776 2014-01-02 Tobias Burnus <burnus@net-b.de>
30777
30778 * gcc.c (process_command): Update copyright notice dates.
30779 * gcov-dump.c: Ditto.
30780 * gcov.c: Ditto.
30781 * doc/cpp.texi: Bump @copying's copyright year.
30782 * doc/cppinternals.texi: Ditto.
30783 * doc/gcc.texi: Ditto.
30784 * doc/gccint.texi: Ditto.
30785 * doc/gcov.texi: Ditto.
30786 * doc/install.texi: Ditto.
30787 * doc/invoke.texi: Ditto.
30788
30789 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
30790
30791 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
30792
30793 2014-01-01 Jakub Jelinek <jakub@redhat.com>
30794
30795 * config/i386/sse.md (*mov<mode>_internal): Guard
30796 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
30797
30798 PR rtl-optimization/59647
30799 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
30800 new_rtx into UNSIGNED_FLOAT rtxes.
30801 \f
30802 Copyright (C) 2014 Free Software Foundation, Inc.
30803
30804 Copying and distribution of this file, with or without modification,
30805 are permitted in any medium without royalty provided the copyright
30806 notice and this notice are preserved.