[AArch64] Fix cost for Q register moves
[gcc.git] / gcc / ChangeLog
1 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
2
3 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
4 move handling.
5 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
6 are now handled correctly.
7
8 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
9
10 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
11 handling of CALLER_SAVE_REGS and POINTER_REGS.
12
13 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
14
15 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
16 the number of hard registers.
17
18 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
19 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20 Anna Tikhonova <anna.tikhonova@intel.com>
21 Ilya Tocar <ilya.tocar@intel.com>
22 Andrey Turetskiy <andrey.turetskiy@intel.com>
23 Ilya Verbin <ilya.verbin@intel.com>
24 Kirill Yukhin <kirill.yukhin@intel.com>
25 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26
27 * config/i386/sse.md
28 (define_mode_iterator VI48_AVX512VL): New.
29 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
30 "avx512f_vternlog<mode>_maskz" and update mode iterator.
31 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
32 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
33 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
34 "avx512f_vternlog<mode>_mask" and update mode iterator.
35 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
36 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
37 iterator.
38 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
39 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
40 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
41 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
42 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
43 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
44
45 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
46 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
47 Anna Tikhonova <anna.tikhonova@intel.com>
48 Ilya Tocar <ilya.tocar@intel.com>
49 Andrey Turetskiy <andrey.turetskiy@intel.com>
50 Ilya Verbin <ilya.verbin@intel.com>
51 Kirill Yukhin <kirill.yukhin@intel.com>
52 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
53
54 * config/i386/sse.md (VI128_256): Delete.
55 (define_mode_iterator VI124_256): New.
56 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
57 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
58 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
59 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
60 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
61 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
62 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
63 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
64 iterator.
65 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
66 in presence of AVX-512.
67
68 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
69 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
70 Anna Tikhonova <anna.tikhonova@intel.com>
71 Ilya Tocar <ilya.tocar@intel.com>
72 Andrey Turetskiy <andrey.turetskiy@intel.com>
73 Ilya Verbin <ilya.verbin@intel.com>
74 Kirill Yukhin <kirill.yukhin@intel.com>
75 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
76
77 * config/i386/sse.md
78 (define_expand "<avx512>_gathersi<mode>"): Rename from
79 "avx512f_gathersi<mode>".
80 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
81 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
82 (define_expand "<avx512>_gatherdi<mode>"): Rename from
83 "avx512f_gatherdi<mode>".
84 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
85 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
86 wide versions.
87 (define_expand "<avx512>_scattersi<mode>"): Rename from
88 "avx512f_scattersi<mode>".
89 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
90 (define_expand "<avx512>_scatterdi<mode>"): Rename from
91 "avx512f_scatterdi<mode>".
92 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
93
94 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
95
96 * ira.h (ira_finish_once): Delete.
97 * ira-int.h (target_ira_int::~target_ira_int): Declare.
98 (target_ira_int::free_ira_costs): Likewise.
99 (target_ira_int::free_register_move_costs): Likewise.
100 (ira_finish_costs_once): Delete.
101 * ira.c (free_register_move_costs): Replace with...
102 (target_ira_int::free_register_move_costs): ...this new function.
103 (target_ira_int::~target_ira_int): Define.
104 (ira_init): Call free_register_move_costs as a member function rather
105 than a global function.
106 (ira_finish_once): Delete.
107 * ira-costs.c (free_ira_costs): Replace with...
108 (target_ira_int::free_ira_costs): ...this new function.
109 (ira_init_costs): Call free_ira_costs as a member function rather
110 than a global function.
111 (ira_finish_costs_once): Delete.
112 * target-globals.c (target_globals::~target_globals): Call the
113 target_ira_int destructor.
114 * toplev.c: Include lra.h.
115 (finalize): Call lra_finish_once rather than ira_finish_once.
116
117 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
118
119 * common.opt (flto-odr-type-merging): New flag.
120 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
121 (types_same_for_odr): Likewise.
122 (odr_subtypes_equivalent_p): Likewise.
123 (add_type_duplicate): Do not walk type variants.
124 (register_odr_type): New function.
125 * ipa-utils.h (register_odr_type): Declare.
126 (odr_type_p): New function.
127 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
128 TYPE_DECLs
129 * doc/invoke.texi (-flto-odr-type-merging): Document.
130 * tree.c (need_assembler_name_p): Compute ODR names when asked
131 for it.
132 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
133
134 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
135
136 PR target/63228
137 * config/i386/i386.c (ix86_option_override_internal): Also turn
138 off OPTION_MASK_ABI_X32 for -m16.
139
140 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
141
142 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
143 GPR instead of P.
144
145 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
146
147 PR target/58757
148 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
149 Directly forward to __*_DENORM_MIN__.
150
151 2014-09-11 David Malcolm <dmalcolm@redhat.com>
152
153 * rtl.h (LABEL_REF_LABEL): New macro.
154
155 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
156 of XEXP (, 0), where we know that we have a LABEL_REF.
157 * cfgbuild.c (make_edges): Likewise.
158 (purge_dead_tablejump_edges): Likewise.
159 * cfgexpand.c (convert_debug_memory_address): Likewise.
160 * cfgrtl.c (patch_jump_insn): Likewise.
161 * combine.c (distribute_notes): Likewise.
162 * cse.c (hash_rtx_cb): Likewise.
163 (exp_equiv_p): Likewise.
164 (fold_rtx): Likewise.
165 (check_for_label_ref): Likewise.
166 * cselib.c (rtx_equal_for_cselib_1): Likewise.
167 (cselib_hash_rtx): Likewise.
168 * emit-rtl.c (mark_label_nuses): Likewise.
169 * explow.c (convert_memory_address_addr_space): Likewise.
170 * final.c (output_asm_label): Likewise.
171 (output_addr_const): Likewise.
172 * gcse.c (add_label_notes): Likewise.
173 * genconfig.c (walk_insn_part): Likewise.
174 * genrecog.c (validate_pattern): Likewise.
175 * ifcvt.c (cond_exec_get_condition): Likewise.
176 (noce_emit_store_flag): Likewise.
177 (noce_get_alt_condition): Likewise.
178 (noce_get_condition): Likewise.
179 * jump.c (maybe_propagate_label_ref): Likewise.
180 (mark_jump_label_1): Likewise.
181 (redirect_exp_1): Likewise.
182 (rtx_renumbered_equal_p): Likewise.
183 * lra-constraints.c (operands_match_p): Likewise.
184 * reload.c (operands_match_p): Likewise.
185 (find_reloads): Likewise.
186 * reload1.c (set_label_offsets): Likewise.
187 * reorg.c (get_branch_condition): Likewise.
188 * rtl.c (rtx_equal_p_cb): Likewise.
189 (rtx_equal_p): Likewise.
190 * rtlanal.c (reg_mentioned_p): Likewise.
191 (rtx_referenced_p): Likewise.
192 (get_condition): Likewise.
193 * sched-vis.c (print_value): Likewise.
194 * varasm.c (const_hash_1): Likewise.
195 (compare_constant): Likewise.
196 (const_rtx_hash_1): Likewise.
197 (output_constant_pool_1): Likewise.
198
199 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
200
201 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
202 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
203 instead of minus.
204 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
205 cr6_test_for_lt_reverse): Ditto.
206
207 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
208
209 PR c++/61489
210 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
211
212 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
213
214 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
215 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
216 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
217 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
218 Delete.
219
220 (aarch64_fold_builtin): Remove all reinterpret cases.
221
222 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
223
224 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
225
226 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
227 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
228 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
229 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
230 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
231 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
232 aarch64_reinterpretv2df<mode>): Delete.
233
234 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
235
236 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
237 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
238 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
239 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
240 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
241 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
242 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
243 vreinterpret_u32_f64): Use cast.
244
245 * config/aarch64/iterators.md (VD_RE): Delete.
246
247 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
248
249 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
250 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
251 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
252 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
253 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
254 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
255 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
256 Replace inline assembler with __aarch64_vset_lane_any.
257
258 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
259
260 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
261 types.
262 (vmull_high_lane_s32): Likewise.
263 (vmull_high_lane_u16): Likewise.
264 (vmull_high_lane_u32): Likewise.
265
266 2014-09-11 Jason Merrill <jason@redhat.com>
267
268 PR c++/58678
269 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
270
271 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
272
273 PR target/63223
274 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
275 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
276 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
277
278 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
279 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
280 Anna Tikhonova <anna.tikhonova@intel.com>
281 Ilya Tocar <ilya.tocar@intel.com>
282 Andrey Turetskiy <andrey.turetskiy@intel.com>
283 Ilya Verbin <ilya.verbin@intel.com>
284 Kirill Yukhin <kirill.yukhin@intel.com>
285 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
286
287 * config/i386/sse.md
288 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
289 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
290 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
291 New.
292 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
293 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
294 iterator.
295 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
296 New.
297 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
298 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
299 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
300 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
301 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
302 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
303 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
304 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
305 iterator.
306 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
307 New.
308 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
309 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
310 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
311
312 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
313
314 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
315 to access removed nodes.
316
317 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
318
319 PR tree-optimization/63186
320 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
321 (mark_nonssa_use): Likewise.
322 (verify_non_ssa_vars): Verify all header blocks for label
323 definitions.
324
325 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
326 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
327 Anna Tikhonova <anna.tikhonova@intel.com>
328 Ilya Tocar <ilya.tocar@intel.com>
329 Andrey Turetskiy <andrey.turetskiy@intel.com>
330 Ilya Verbin <ilya.verbin@intel.com>
331 Kirill Yukhin <kirill.yukhin@intel.com>
332 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
333
334 * config/i386/sse.md
335 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
336 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
337 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
338 "<avx2_avx512f>_permvar<mode><mask_name>".
339 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
340 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
341 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
342 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
343 Ditto.
344 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
345 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
346 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
347 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
348
349 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
350
351 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
352 V2DF, V4SF, DF, and DI modes.
353 (vsx_fmav2df2): Likewise.
354 (vsx_float_fix_<mode>2): Likewise.
355 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
356
357 2014-09-10 Xinliang David Li <davidxl@google.com>
358
359 PR target/63209
360 * config/arm/arm.md (movcond_addsi): Handle case where source
361 and target operands are the same.
362
363 2014-09-10 David Malcolm <dmalcolm@redhat.com>
364
365 * final.c (this_is_asm_operands): Strengthen this variable from
366 rtx to const rtx_insn *.
367 * output.h (this_is_asm_operands): Likewise.
368 * rtl-error.c (location_for_asm): Strengthen param "insn" from
369 const_rtx to const rtx_insn *.
370 (diagnostic_for_asm): Likewise.
371 * rtl-error.h (error_for_asm): Likewise.
372 (warning_for_asm): Likewise.
373
374 2014-09-10 David Malcolm <dmalcolm@redhat.com>
375
376 * genextract.c (print_header): When writing out insn_extract to
377 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
378 * recog.h (insn_extract): Strengthen the param from rtx to
379 rtx_insn *.
380
381 2014-09-10 Mike Stump <mikestump@comcast.net>
382
383 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
384 8.6.1.
385
386 2014-09-10 Martin Jambor <mjambor@suse.cz>
387
388 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
389 (analyze): Do not set analyze flag if expand_thunk returns false;.
390 (create_wrapper): Likewise.
391 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
392
393 2014-09-10 Martin Jambor <mjambor@suse.cz>
394
395 PR ipa/61654
396 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
397 new decl properly. Analyze the new thunk if it is expanded.
398
399 2014-09-10 Andreas Schwab <schwab@suse.de>
400
401 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
402 [USED_FOR_TARGET]: Define.
403
404 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
405
406 * config/mips/mips.c (mips_secondary_reload_class): Handle
407 regno < 0 case.
408
409 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
410
411 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
412 assignment.
413
414 2014-09-10 Jakub Jelinek <jakub@redhat.com>
415
416 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
417 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
418 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
419 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
420 flag_delete_null_pointer_checks for them.
421 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
422 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
423 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
424 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
425 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
426 stmt's iterator.
427 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
428 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
429 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
430 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
431 * doc/invoke.texi (-fsanitize=nonnull-attribute,
432 -fsanitize=returns-nonnull-attribute): Document.
433
434 * ubsan.h (struct ubsan_mismatch_data): Removed.
435 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
436 * ubsan.c (ubsan_source_location): For unknown locations,
437 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
438 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
439 Allow more than one location and arbitrary extra arguments passed
440 in ... instead of through MISMATCH pointer.
441 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
442 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
443 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
444 callers.
445
446 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
447 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
448 Anna Tikhonova <anna.tikhonova@intel.com>
449 Ilya Tocar <ilya.tocar@intel.com>
450 Andrey Turetskiy <andrey.turetskiy@intel.com>
451 Ilya Verbin <ilya.verbin@intel.com>
452 Kirill Yukhin <kirill.yukhin@intel.com>
453 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
454
455 * config/i386/sse.md
456 (define_mode_iterator VI48F): New.
457 (define_insn "<avx512>_compress<mode>_mask"): Rename from
458 "avx512f_compress<mode>_mask" and update mode iterator.
459 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
460 "avx512f_compressstore<mode>_mask" and update mode iterator.
461 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
462 "avx512f_expand<mode>_maskz" and update mode iterator.
463 (define_insn "<avx512>_expand<mode>_mask"): Rename from
464 "avx512f_expand<mode>_mask" and update mode iterator.
465
466 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
467 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
468 Anna Tikhonova <anna.tikhonova@intel.com>
469 Ilya Tocar <ilya.tocar@intel.com>
470 Andrey Turetskiy <andrey.turetskiy@intel.com>
471 Ilya Verbin <ilya.verbin@intel.com>
472 Kirill Yukhin <kirill.yukhin@intel.com>
473 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
474
475 * config/i386/i386.c
476 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
477 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
478 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
479 avx512dq_rangepv4sf_mask.
480 * config/i386/sse.md
481 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
482 UNSPEC_RANGE.
483 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
484 (define_insn "reduces<mode>"): Ditto.
485 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
486 Ditto.
487 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
488 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
489 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
490
491 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
492 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
493 Anna Tikhonova <anna.tikhonova@intel.com>
494 Ilya Tocar <ilya.tocar@intel.com>
495 Andrey Turetskiy <andrey.turetskiy@intel.com>
496 Ilya Verbin <ilya.verbin@intel.com>
497 Kirill Yukhin <kirill.yukhin@intel.com>
498 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
499
500 * config/i386/i386.c
501 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
502 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
503 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
504 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
505 avx512vl_getmantv2df_mask.
506 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
507 avx512f_vgetmantv4sf_round.
508 * config/i386/sse.md
509 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
510 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
511 mode iterator.
512 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
513 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
514 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
515 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
516 iterator..
517 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
518 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
519 update mode iterator.
520 (define_expand
521 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
522 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
523 mode iterator.
524 (define_insn
525 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
526 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
527 update mode iterator.
528 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
529 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
530 iterator..
531 (define_insn
532 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
533 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
534 mode iterator..
535 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
536 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
537 update mode iterator.
538 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
539 "avx512f_getmant<mode><round_saeonly_name>".
540
541 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
542
543 PR ipa/63166
544 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
545
546 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
547 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
548 Anna Tikhonova <anna.tikhonova@intel.com>
549 Ilya Tocar <ilya.tocar@intel.com>
550 Andrey Turetskiy <andrey.turetskiy@intel.com>
551 Ilya Verbin <ilya.verbin@intel.com>
552 Kirill Yukhin <kirill.yukhin@intel.com>
553 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
554
555 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
556 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
557 (define_mode_iterator FMAMODE_AVX512): New.
558 (define_mode_iterator FMAMODE): Remove conditions.
559 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
560 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
561 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
562 mode iterator.
563 (define_mode_iterator FMAMODE_NOVF512): Remove.
564 (define_insn "*fma_fmadd_<mode>"): Rename from
565 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
566 FMAMODE mode iterator.
567 (define_mode_iterator VF_SF_AVX512VL): New.
568 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
569 Use VF_SF_AVX512VL mode iterator.
570 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
571 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
572 iterator.
573 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
574 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
575 iterator.
576 (define_insn "*fma_fmsub_<mode>"): Rename from
577 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
578 FMAMODE mode iterator.
579 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
580 Use VF_SF_AVX512VL mode iterator.
581 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
582 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
583 iterator.
584 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
585 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
586 iterator.
587 (define_insn "*fma_fnmadd_<mode>"): Rename from
588 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
589 use FMAMODE mode iterator.
590 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
591 Use VF_SF_AVX512VL mode iterator.
592 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
593 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
594 iterator.
595 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
596 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
597 iterator.
598 (define_insn "*fma_fnmsub_<mode>"): Rename from
599 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
600 FMAMODE mode iterator.
601 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
602 Use VF_SF_AVX512VL mode iterator.
603 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
604 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
605 iterator.
606 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
607 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
608 iterator.
609 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
610 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
611 use VF_AVX512VL mode iterator.
612 (define_insn "*fma_fmaddsub_<mode>"): Rename from
613 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
614 remove subst usage.
615 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
616 Use VF_SF_AVX512VL mode iterator.
617 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
618 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
619 iterator.
620 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
621 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
622 iterator.
623 (define_insn "*fma_fmsubadd_<mode>"): Rename from
624 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
625 remove usage of subst.
626 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
627 Use VF_SF_AVX512VL mode iterator.
628 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
629 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
630 iterator.
631 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
632 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
633 iterator.
634
635 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
636
637 Revert r213751:
638 * calls.c (precompute_arguments): Check
639 promoted_for_signed_and_unsigned_p and set the promoted mode.
640 (promoted_for_signed_and_unsigned_p): New function.
641 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
642 and set the promoted mode.
643 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
644 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
645 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
646
647 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
648
649 * opth-gen.awk: Generate mapping from cpp message reasons to the
650 options that enable them.
651 * doc/options.texi (CppReason): Document.
652
653 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
654
655 * doc/invoke.texi (Wnormalized=): Update.
656
657 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
658
659 PR target/63195
660 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
661 operands. Split off the constant operand alternative to ...
662 (*bool<mode>3_imm): New.
663
664 2014-09-09 David Malcolm <dmalcolm@redhat.com>
665
666 * rtl.h (single_set_2): Strengthen first param from const_rtx to
667 const rtx_insn *, and move prototype to above...
668 (single_set): ...this. Convert this from a macro to an inline
669 function, enforcing the requirement that the param is a const
670 rtx_insn *.
671 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
672
673 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
674 Strengthen both params from rtx to rtx_insn *.
675 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
676 Likewise; introduce locals "producer_set", "consumer_set", using
677 them in place of "producer" and "consumer" when dealing with SET
678 rather than insn.
679 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
680 when invoking single_set in region guarded by INSN_P.
681 (avr_out_bitop): Likewise.
682 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
683 region guarded by GET_CODE check, using methods to strengthen
684 local "this_insn" from rtx to rtx_insn *, and for clarity.
685 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
686 Strengthen local "insn" from rtx to rtx_insn *.
687 (define_insn_and_split "xload<mode>_A"): Likewise.
688 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
689 "insn".
690 (find_load): Likewise for return type.
691 (workaround_speculation): Likewise for both locals named
692 "load_insn".
693 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
694 local "cc0_user".
695 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
696 for local "prev".
697 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
698 param 2.
699 * config/h8300/h8300.c (notice_update_cc): Likewise.
700 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
701 "insn" and "dep_insn".
702 (exact_store_load_dependency): Likewise for both params.
703 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
704 since this now clashes with inline function. Instead, delay
705 calling single_set until the point where its needed, and then
706 assign the result to "compare_set" and rework the conditional that
707 follows.
708 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
709 local "last" from rtx to rtx_insn *.
710 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
711 second param.
712 (mips_store_data_bypass_p): Likewise for both params.
713 * config/mips/mips.c (mips_load_store_insns): Likewise for second
714 param.
715 (mips_store_data_bypass_p): Likewise for both params.
716 (mips_orphaned_high_part_p): Likewise for param "insn".
717 * config/mn10300/mn10300.c (extract_bundle): Likewise.
718 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
719 Introduce local rtx "insn2_pat".
720 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
721 "ninsn".
722 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
723 Introduce local rtx "set", using it in place of "insn" for the
724 result of single_set. This appears to fix a bug, since the call
725 to find_regno_note on a SET does nothing.
726 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
727 params from rtx to rtx_insn *.
728 (set_to_load_agen): Likewise.
729 * config/s390/s390.c (s390_label_align): Likewise for local
730 "prev_insn". Introduce new rtx locals "set" and "src", using
731 them in place of "prev_insn" for the results of single_set
732 and SET_SRC respectively.
733 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
734 Introduce new rtx local "set" using in place of "jump" for the
735 result of single_set. Use SET_SRC (set) rather than plain
736 XEXP (set, 1).
737 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
738 rtx to rtx_insn *.
739 (noncall_uses_reg): Likewise.
740 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
741 guarded by GET_CODE check, using its methods for clarity, and to
742 enable strengthening local "this_insn" from rtx to rtx_insn *.
743 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
744 "insn" from rtx to rtx_insn *.
745 (define_expand "umulhisi3"): Likewise.
746 (define_expand "smulsi3_highpart"): Likewise.
747 (define_expand "umulsi3_highpart"): Likewise.
748 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
749 local "after". Replace GET_CODE check with a dyn_cast,
750 introducing new local rtx_sequence * "seq", using insn method for
751 typesafety.
752
753 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
754 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
755 place of "insn" once we're dealing with patterns rather than the
756 input insn.
757 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
758 (scan_trace): Likewise for local "elt", updating lookups within
759 sequence to use insn method rather than element method.
760 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
761 to rtx_insn *.
762 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
763 * ifcvt.c (noce_try_abs): Likewise for local "insn".
764 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
765 invoking single_set.
766 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
767 "insn" from rtx to rtx_insn *.
768 (skip_usage_debug_insns): Likewise for return type, adding a
769 checked cast.
770 (check_secondary_memory_needed_p): Likewise for local "insn".
771 (inherit_reload_reg): Likewise.
772 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
773 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
774 checked casts.
775 (store_data_bypass_p): Likewise for both params.
776 (if_test_bypass_p): Likewise.
777 * recog.h (store_data_bypass_p): Likewise for both params.
778 (if_test_bypass_p): Likewise.
779 * reload.c (find_equiv_reg): Likewise for local "where".
780 * reorg.c (delete_jump): Likewise for param "insn".
781 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
782 to const rtx_insn *.
783 * store-motion.c (replace_store_insn): Likewise for param "del".
784 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
785 and use its methods for clarity, and to strengthen local "del"
786 from rtx to rtx_insn *.
787 (build_store_vectors): Use insn method of "st" when calling
788 replace_store_insn for typesafety and clarity.
789
790 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
791
792 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
793 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
794 on how to make it legal in future.
795
796 2014-09-09 David Malcolm <dmalcolm@redhat.com>
797
798 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
799 to rtx_insn *.
800 (restinsn): Likewise.
801 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
802 Likewise for param.
803 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
804 Likewise.
805 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
806 first param.
807 (arc_hazard): Likewise for both params.
808 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
809 checked casts to rtx_sequence * and uses of the insn method for
810 type-safety.
811 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
812 (arc_adjust_insn_length): Likewise for param "insn".
813 (struct insn_length_parameters_s): Likewise for first param of
814 "get_variants" callback field.
815 (arc_get_insn_variants): Likewise for first param and local
816 "inner". Replace a check of GET_CODE with a dyn_cast to
817 rtx_sequence *, using methods for type-safety and clarity.
818 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
819 rtx_sequence * and uses of the insn method for type-safety when
820 invoking arc_adjust_insn_length.
821 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
822 for param.
823 (arm_address_offset_is_imm): Likewise.
824 (struct tune_params): Likewise for params 1 and 3 of the
825 "sched_adjust_cost" callback field.
826 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
827 params 1 and 3 ("insn" and "dep").
828 (xscale_sched_adjust_cost): Likewise.
829 (fa726te_sched_adjust_cost): Likewise.
830 (cortexa7_older_only): Likewise for param "insn".
831 (cortexa7_younger): Likewise.
832 (arm_attr_length_move_neon): Likewise.
833 (arm_address_offset_is_imm): Likewise.
834 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
835 * config/avr/avr.c (avr_notice_update_cc): Likewise.
836 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
837 (workaround_speculation): Likewise for local "last_condjump".
838 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
839 (shadow_or_blockage_p): Likewise.
840 (get_unit_reqs): Likewise.
841 (get_unit_operand_masks): Likewise.
842 (c6x_registers_update): Likewise.
843 (returning_call_p): Likewise.
844 (can_use_callp): Likewise.
845 (convert_to_callp): Likewise.
846 (find_last_same_clock): Likwise for local "t".
847 (reorg_split_calls): Likewise for local "shadow".
848 (hwloop_pattern_reg): Likewise for param "insn".
849 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
850 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
851 (frv_extract_membar): Likewise.
852 (frv_optimize_membar_local): Strengthen param "last_membar" from
853 rtx * to rtx_insn **.
854 (frv_optimize_membar_global): Strengthen param "membar" from rtx
855 to rtx_insn *.
856 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
857 to rtx_insn **.
858 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
859 both params from rtx to rtx_insn *.
860 (ia64_ld_address_bypass_p): Likewise.
861 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
862 "insn".
863 (ia64_safe_type): Likewise.
864 (group_barrier_needed): Likewise.
865 (safe_group_barrier_needed): Likewise.
866 (ia64_single_set): Likewise.
867 (is_load_p): Likewise.
868 (record_memory_reference): Likewise.
869 (get_mode_no_for_insn): Likewise.
870 (important_for_bundling_p): Likewise.
871 (unknown_for_bundling_p): Likewise.
872 (ia64_st_address_bypass_p): Likewise for both params.
873 (ia64_ld_address_bypass_p): Likewise.
874 (expand_vselect): Introduce new local rtx_insn * "insn", using it
875 in place of rtx "x" after the emit_insn call.
876 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
877 Strengthen param from rtx to rtx_insn *.
878 (ix86_agi_dependent): Likewise for both params.
879 (ix86_attr_length_immediate_default): Likewise for param 1.
880 (ix86_attr_length_address_default): Likewise for param.
881 (ix86_attr_length_vex_default): Likewise for param 1.
882 * config/i386/i386.c (ix86_attr_length_immediate_default):
883 Likewise for param "insn".
884 (ix86_attr_length_address_default): Likewise.
885 (ix86_attr_length_vex_default): Likewise.
886 (ix86_agi_dependent): Likewise for both params.
887 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
888 (vselect_insn): Likewise for this variable.
889 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
890 for param 1.
891 (m68k_sched_attr_opy_type): Likewise.
892 * config/m68k/m68k.c (sched_get_operand): Likewise.
893 (sched_attr_op_type): Likewise.
894 (m68k_sched_attr_opx_type): Likewise.
895 (m68k_sched_attr_opy_type): Likewise.
896 (sched_get_reg_operand): Likewise.
897 (sched_get_mem_operand): Likewise.
898 (m68k_sched_address_bypass_p): Likewise for both params.
899 (sched_get_indexed_address_scale): Likewise.
900 (m68k_sched_indexed_address_bypass_p): Likewise.
901 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
902 (m68k_sched_indexed_address_bypass_p): Likewise.
903 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
904 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
905 removing another.
906 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
907 params from rtx to rtx_insn *.
908 (mips_fmadd_bypass): Likewise.
909 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
910 (mips_linked_madd_p): Likewise.
911 (mips_macc_chains_last_hilo): Likewise for this variable.
912 (mips_macc_chains_record): Likewise for param.
913 (vr4130_last_insn): Likewise for this variable.
914 (vr4130_swap_insns_p): Likewise for both params.
915 (mips_ls2_variable_issue): Likewise for param.
916 (mips_need_noat_wrapper_p): Likewise for param "insn".
917 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
918 in place of "x" after the emit_insn.
919 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
920 params from rtx to rtx_insn *.
921 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
922 (pa_combine_instructions): Introduce local "par" for result of
923 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
924 to make_insn_raw.
925 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
926 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
927 (rl78_alloc_physical_registers_op1): Likewise.
928 (rl78_alloc_physical_registers_op2): Likewise.
929 (rl78_alloc_physical_registers_ro1): Likewise.
930 (rl78_alloc_physical_registers_cmp): Likewise.
931 (rl78_alloc_physical_registers_umul): Likewise.
932 (rl78_alloc_address_registers_macax): Likewise.
933 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
934 * config/s390/predicates.md (execute_operation): Likewise for
935 local "insn".
936 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
937 params.
938 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
939 (addr_generation_dependency_p): Likewise for param "insn".
940 (s390_agen_dep_p): Likewise for both params.
941 (s390_fpload_toreg): Likewise for param "insn".
942 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
943 * config/sh/sh.c (sh_loop_align): Likewise for param and local
944 "next".
945 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
946 * config/sh/sh_treg_combine.cc
947 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
948 and local "i".
949 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
950 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
951 "and_insn", "load", "shift".
952 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
953 "insn".
954 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
955 for XEXP (note, 0) of the REG_CC_SETTER note.
956 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
957 rtx_insn *, eliminating a checked cast made redundant by this.
958 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
959 to rtx_insn *.
960 * genattr.c (main): When writing out the prototype to
961 const_num_delay_slots, strengthen the param from rtx to
962 rtx_insn *.
963 * genattrtab.c (write_const_num_delay_slots): Likewise when
964 writing out the implementation of const_num_delay_slots.
965 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
966 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
967 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
968 favor of new rtx locals "src" and "set" and new local rtx_insn *
969 "insn" and "seq".
970 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
971 to rtx_insn *.
972 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
973 locals "cond", "if_then_else", "set" and new rtx_insn * locals
974 "insn" and "seq".
975 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
976 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
977 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
978 the top-level scope, replacing with new more tightly-scoped rtx
979 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
980 "new_insn", "copy_of_insn_b", and make local rtx "set" more
981 tightly-scoped.
982 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
983 rtx_insn *.
984 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
985 "move_insn".
986 (ira_setup_alts): Likewise for param "insn".
987 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
988 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
989 and an rtx_insn *.
990 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
991 new more-tightly scoped rtx locals "add3_insn", "insn",
992 "add2_insn" and rtx_insn * "move_insn".
993 * postreload-gcse.c (eliminate_partially_redundant_load): Add
994 checked cast on result of gen_move_insn when invoking
995 extract_insn.
996 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
997 rtx_insn *.
998 (verify_changes): Add a checked cast on "object" when invoking
999 insn_invalid_p.
1000 (extract_insn_cached): Strengthen param "insn" from rtx to
1001 rtx_insn *.
1002 (extract_constrain_insn_cached): Likewise.
1003 (extract_insn): Likewise.
1004 * recog.h (insn_invalid_p): Likewise for param 1.
1005 (recog_memoized): Likewise for param.
1006 (extract_insn): Likewise.
1007 (extract_constrain_insn_cached): Likewise.
1008 (extract_insn_cached): Likewise.
1009 * reload.c (can_reload_into): Likewise for local "test_insn".
1010 * reload.h (cleanup_subreg_operands): Likewise for param.
1011 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
1012 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
1013 result of emit_insn. Remove a checked cast made redundant by this
1014 change.
1015 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
1016 rtx to rtx_insn *.
1017 * sel-sched.c (get_reg_class): Likewise.
1018
1019 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
1020 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1021
1022 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
1023 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
1024 Define.
1025 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
1026
1027 2014-09-09 David Malcolm <dmalcolm@redhat.com>
1028
1029 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
1030 const rtx_insn *, and from rtx to rtx_insn * for the other
1031 overloaded variant.
1032 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
1033 INSN_LOCATION, since we know INSN_P holds.
1034 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
1035 (insn_file): Likewise.
1036 (insn_scope): Likewise.
1037 (insn_location): Likewise.
1038
1039 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
1040 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
1041 for the result of gen_load_const_gp.
1042 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
1043 param from rtx to rtx_insn *.
1044 * config/rs6000/rs6000.c (output_call): Likewise.
1045 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
1046 introducing a checked cast to rtx_sequence * and use of the insn
1047 method.
1048 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
1049 from rtx to rtx_insn *.
1050 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
1051 (insn_line): Likewise.
1052 (insn_file): Likewise.
1053 (insn_location): Likewise.
1054 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
1055 from rtx to rtx_insn *.
1056 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
1057 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
1058 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
1059 via a checked cast.
1060 * reorg.c (relax_delay_slots): Strengthen locals named "after"
1061 from rtx to rtx_insn *; use methods of "pat" for type-safety.
1062
1063 2014-09-09 David Malcolm <dmalcolm@redhat.com>
1064
1065 * combine.c (try_combine): Eliminate checked cast on result of
1066 gen_rtx_INSN.
1067 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
1068 autogenerated one by strengthening the return type and params 2 and 3
1069 from rtx to rtx_insn *, and by naming the params.
1070 * gengenrtl.c (special_rtx): Add INSN to those that are
1071 special-cased.
1072 * rtl.h (gen_rtx_INSN): New prototype.
1073
1074 2014-09-09 David Malcolm <dmalcolm@redhat.com>
1075
1076 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
1077 than NULL_RTX.
1078 (no_equiv): Likewise.
1079 (update_equiv_regs): Likewise.
1080 (setup_reg_equiv): Likewise. Strengthen locals "elem",
1081 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
1082 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
1083 clarity.
1084 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
1085 from rtx to rtx_insn_list *.
1086 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
1087 rtx_insn_list * and use methods for clarity and typesafety.
1088 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
1089 "list".
1090 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
1091 redundant check on INSN_P (insns): this cannot hold, as "insns" is
1092 an INSN_LIST, not an insn.
1093 (reverse_equiv_p): Strengthen local "insns" from rtx to
1094 rtx_insn_list * and use methods for clarity and typesafety.
1095 (contains_reloaded_insn_p): Likewise for local "list".
1096
1097 2014-09-09 Jiong Wang <jiong.wang@arm.com>
1098
1099 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
1100 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
1101 (arm_builtin_vectorized_function): Likewise.
1102 * config/arm/arm_neon_builtins.def: New macro for copysignf.
1103 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
1104
1105 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
1106
1107 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
1108 * builtins.h (default_target_builtins): Likewise.
1109 * gcse.h (default_target_gcse): Likewise.
1110 * target-globals.h (target_globals): Add a destructor. Convert
1111 void-pointer fields back to their real type and change from
1112 GTY((atomic)) to GTY((skip)).
1113 (restore_target_globals): Remove casts accordingly.
1114 * target-globals.c (save_target_globals): Use XCNEW rather than
1115 ggc_internal_cleared_alloc to allocate non-GC structures.
1116 Use ggc_cleared_alloc to allocate the target_globals structure
1117 itself.
1118 (target_globals::~target_globals): Define.
1119
1120 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1121
1122 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
1123 mnemonic instead of fldmfdd.
1124 * config/arm/arm.c (vfp_output_fstmd): Rename to...
1125 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
1126 Output vpush when address register is SP.
1127 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
1128 (vfp_output_vstmd): ... This.
1129 * config/arm/vfp.md (push_multi_vfp): Update call to
1130 vfp_output_vstmd.
1131
1132 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1133
1134 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
1135
1136 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1137
1138 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
1139 (*sqrtdf2_vfp): Likewise.
1140 (*cmpsf_vfp): Likewise.
1141 (*cmpsf_trap_vfp): Likewise.
1142 (*cmpdf_vfp): Likewise.
1143 (*cmpdf_trap_vfp): Likewise.
1144
1145 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1146
1147 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
1148 (*truncdfsf2_vfp): Likewise.
1149 (*truncsisf2_vfp): Likewise.
1150 (*truncsidf2_vfp): Likewise.
1151 (fixuns_truncsfsi2): Likewise.
1152 (fixuns_truncdfsi2): Likewise.
1153 (*floatsisf2_vfp): Likewise.
1154 (*floatsidf2_vfp): Likewise.
1155 (floatunssisf2): Likewise.
1156 (floatunssidf2): Likewise.
1157
1158 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1159
1160 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
1161 (*muldf3_vfp): Likewise.
1162 (*mulsf3negsf_vfp): Likewise.
1163 (*muldf3negdf_vfp): Likewise.
1164 (*mulsf3addsf_vfp): Likewise.
1165 (*muldf3adddf_vfp): Likewise.
1166 (*mulsf3subsf_vfp): Likewise.
1167 (*muldf3subdf_vfp): Likewise.
1168 (*mulsf3negsfaddsf_vfp): Likewise.
1169 (*fmuldf3negdfadddf_vfp): Likewise.
1170 (*mulsf3negsfsubsf_vfp): Likewise.
1171 (*muldf3negdfsubdf_vfp): Likewise.
1172
1173 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1174
1175 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
1176 (*absdf2_vfp): Likewise.
1177 (*negsf2_vfp): Likewise.
1178 (*negdf2_vfp): Likewise.
1179 (*addsf3_vfp): Likewise.
1180 (*adddf3_vfp): Likewise.
1181 (*subsf3_vfp): Likewise.
1182 (*subdf3_vfp): Likewise.
1183 (*divsf3_vfp): Likewise.
1184 (*divdf3_vfp): Likewise.
1185
1186 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1187
1188 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
1189 multiple.
1190 (arm_print_operand): Don't convert real values to decimal
1191 representation in default case.
1192 (fp_immediate_constant): Delete.
1193 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
1194 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
1195 syntax.
1196 (*thumb2_movsi_vfp): Likewise.
1197 (*movdi_vfp): Likewise.
1198 (*movdi_vfp_cortexa8): Likewise.
1199 (*movhf_vfp_neon): Likewise.
1200 (*movhf_vfp): Likewise.
1201 (*movsf_vfp): Likewise.
1202 (*thumb2_movsf_vfp): Likewise.
1203 (*movdf_vfp): Likewise.
1204 (*thumb2_movdf_vfp): Likewise.
1205 (*movsfcc_vfp): Likewise.
1206 (*thumb2_movsfcc_vfp): Likewise.
1207 (*movdfcc_vfp): Likewise.
1208 (*thumb2_movdfcc_vfp): Likewise.
1209
1210 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
1211
1212 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
1213 (-mtune): Likewise.
1214 (-mcpu): Likewise.
1215
1216 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1217
1218 PR target/61749
1219 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
1220 Use qualifier_immediate for last operand. Rename to...
1221 (aarch64_types_ternop_lane_qualifiers): ... This.
1222 (TYPES_QUADOP): Rename to...
1223 (TYPES_TERNOP_LANE): ... This.
1224 (aarch64_simd_expand_args): Return const0_rtx when encountering user
1225 error. Change return of 0 to return of NULL_RTX.
1226 (aarch64_crc32_expand_builtin): Likewise.
1227 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
1228 ICE when expanding unknown builtin.
1229 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
1230 TERNOP_LANE qualifiers.
1231 (sqdmlsl_lane): Likewise.
1232 (sqdmlal_laneq): Likewise.
1233 (sqdmlsl_laneq): Likewise.
1234 (sqdmlal2_lane): Likewise.
1235 (sqdmlsl2_lane): Likewise.
1236 (sqdmlal2_laneq): Likewise.
1237 (sqdmlsl2_laneq): Likewise.
1238
1239 2014-09-09 Nick Clifton <nickc@redhat.com>
1240
1241 * doc/invoke.texi (Optimization Options): Add missing @gol to the
1242 end of a line.
1243 (S/390 and zSeries Options): Remove superfluous word from the
1244 description of the -mhotpatch option.
1245
1246 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
1247
1248 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
1249 * ira.c: #include "shrink-wrap.h"
1250 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
1251 * ifcvt.c: #include "shrink-wrap.h"
1252 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
1253
1254 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
1255
1256 * common/config/picochip/picochip-common.c: Remove.
1257 * config.gcc: Remove support for picochip.
1258 * config/picochip/constraints.md: Remove.
1259 * config/picochip/dfa_space.md: Remove.
1260 * config/picochip/dfa_speed.md: Remove.
1261 * config/picochip/picochip-protos.h: Remove.
1262 * config/picochip/picochip.c: Remove.
1263 * config/picochip/picochip.h: Remove.
1264 * config/picochip/picochip.md: Remove.
1265 * config/picochip/picochip.opt: Remove.
1266 * config/picochip/predicates.md: Remove.
1267 * config/picochip/t-picochip: Remove.
1268 * doc/md.texi: Don't document picochi.
1269
1270 2014-09-08 David Malcolm <dmalcolm@redhat.com>
1271
1272 * basic-block.h (control_flow_insn_p): Strengthen param from
1273 const_rtx to const rtx_insn *.
1274 * cfgbuild.c (control_flow_insn_p): Likewise.
1275
1276 2014-09-08 David Malcolm <dmalcolm@redhat.com>
1277
1278 * gcse.c (modify_mem_list): Strengthen this variable from
1279 vec<rtx> * to vec<rtx_insn *> *.
1280 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
1281 vec<rtx_insn *>.
1282 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
1283 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
1284 (record_last_mem_set_info): Strengthen param "insn" from rtx to
1285 rtx_insn *.
1286 (record_last_set_info): Likewise for local "last_set_insn".
1287
1288 2014-09-08 DJ Delorie <dj@redhat.com>
1289
1290 * doc/invoke.texi (MSP430 Options): Add -minrt.
1291
1292 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1293
1294 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
1295 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
1296 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
1297 handling SH_SPLAT.
1298 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
1299 of extracted lane.
1300 (adjust_splat): New function.
1301 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
1302 (dump_swap_insn_table): Add case for SH_SPLAT.
1303
1304 2014-09-08 Richard Biener <rguenther@suse.de>
1305
1306 PR ipa/63196
1307 * tree-inline.c (copy_loops): The source loop header should
1308 always be non-NULL.
1309 (tree_function_versioning): If loops need fixup after removing
1310 unreachable blocks fix them.
1311 * omp-low.c (simd_clone_adjust): Do not add incr block to
1312 loop under construction.
1313
1314 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
1315
1316 * config/aarch64/aarch64-builtins.c
1317 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
1318
1319 2014-09-08 Joseph Myers <joseph@codesourcery.com>
1320
1321 * config/i386/cygming.h (TF_SIZE): Remove.
1322 * config/i386/darwin.h (TF_SIZE): Remove.
1323 * config/i386/dragonfly.h (TF_SIZE): Remove.
1324 * config/i386/freebsd.h (TF_SIZE): Remove.
1325 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
1326 * config/i386/openbsdelf.h (TF_SIZE): Remove.
1327 * config/i386/sol2.h (TF_SIZE): Remove.
1328 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
1329 * config/ia64/linux.h (TF_SIZE): Remove.
1330 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
1331 * doc/tm.texi: Regenerate.
1332 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
1333
1334 2014-09-08 Joseph Myers <joseph@codesourcery.com>
1335
1336 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
1337 Remove.
1338 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
1339 Remove.
1340 * doc/tm.texi: Regenerate.
1341 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
1342 Poison.
1343 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
1344 * config/cris/cris.h (__make_dp): Remove.
1345
1346 2014-09-08 Richard Biener <rguenther@suse.de>
1347
1348 PR bootstrap/63204
1349 * cfgloop.c (mark_loop_for_removal): Track former header
1350 unconditionally.
1351 * cfgloop.h (struct loop): Add former_header member unconditionally.
1352 * loop-init.c (fix_loop_structure): Enable bogus loop removal
1353 diagnostic unconditionally.
1354
1355 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
1356
1357 PR target/63190
1358 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
1359 constraint for operand0 and remove write only modifier from operand3.
1360
1361 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
1362
1363 PR rtl-optimization/62208
1364 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
1365 rather than const0_rtx in eq/ne-xor simplifications.
1366
1367 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
1368
1369 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
1370 (arc_output_mi_thunk): Likewise.
1371
1372 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
1373 arguments to silence bogus warning.
1374
1375 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
1376
1377 PR middle-end/63171
1378 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
1379
1380 2014-09-06 Tom de Vries <tom@codesourcery.com>
1381
1382 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
1383 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
1384 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1385
1386 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
1387
1388 PR target/63188
1389 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
1390 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
1391
1392 2014-09-05 Easwaran Raman <eraman@google.com>
1393
1394 PR rtl-optimization/62146
1395 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
1396 hoisted instruction unconditional.
1397
1398 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
1399
1400 PR target/63187
1401 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
1402 Do not allow any_mask_operand for operands[2].
1403 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
1404
1405 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1406
1407 * config/arc/arc.c (arc_print_operand): Use insn method of
1408 final_sequence for type-safety.
1409 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
1410 "insn" from rtx to rtx_insn *.
1411 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
1412 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
1413 Likewise for locals "branch", "label".
1414 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
1415 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
1416 (same_cmp_following_p): Likewise for locals "i2", "i3".
1417 * config/sh/sh_optimize_sett_clrt.cc
1418 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
1419 param "cbranch_insn".
1420 * function.c (convert_jumps_to_returns): Likewis for local "jump".
1421 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
1422 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
1423 const rtx_insn *.
1424 (condjump_p): Likewise.
1425 (condjump_in_parallel_p): Likewise.
1426 (pc_set): Likewise.
1427 (any_uncondjump_p): Likewise.
1428 (any_condjump_p): Likewise.
1429 (condjump_label): Likewise.
1430 (returnjump_p): Strengthen param "insn" from rtx to
1431 const rtx_insn *.
1432 (onlyjump_p): Strengthen param "insn" from const_rtx to
1433 const rtx_insn *.
1434 (jump_to_label_p): Likewise.
1435 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
1436 (invert_jump): Likewise.
1437 * reorg.c (simplejump_or_return_p): Add checked cast when calling
1438 simplejump_p.
1439 (get_jump_flags): Strengthen param "insn" from rtx to
1440 const rtx_insn *.
1441 (get_branch_condition): Likewise.
1442 (condition_dominates_p): Likewise.
1443 (make_return_insns): Move declaration of local "pat" earlier, to
1444 after we've handled NONJUMP_INSN_P and non-sequences, using its
1445 methods to simplify the code and for type-safety.
1446 * rtl.h (find_constant_src): Strengthen param from const_rtx to
1447 const rtx_insn *.
1448 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
1449 (condjump_p): Strengthen param from const_rtx to
1450 const rtx_insn *.
1451 (any_condjump_p): Likewise.
1452 (any_uncondjump_p): Likewise.
1453 (pc_set): Likewise.
1454 (condjump_label): Likewise.
1455 (simplejump_p): Likewise.
1456 (returnjump_p): Likewise.
1457 (onlyjump_p): Likewise.
1458 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
1459 (invert_jump): Likewise.
1460 (condjump_in_parallel_p): Strengthen param from const_rtx to
1461 const rtx_insn *.
1462 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
1463 to const rtx_insn *.
1464 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
1465 to const rtx_insn *.
1466 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
1467
1468 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1469
1470 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
1471 above the conditional, and convert the check on GET_CODE to a
1472 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
1473 the conditional. Simplify the conditional by using methods of
1474 "trial_seq".
1475
1476 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1477
1478 * haifa-sched.c (check_clobbered_conditions): Strengthen local
1479 "link" from rtx to rtx_insn_list *, and use its methods for
1480 clarity and type-safety.
1481 (toggle_cancelled_flags): Likewise.
1482 (restore_last_backtrack_point): Likewise.
1483 (queue_to_ready): Use insn method of "link" in one place.
1484 (schedule_block): Strengthen local "link" from rtx to
1485 rtx_insn_list *, and use its methods for clarity and type-safety.
1486
1487 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1488
1489 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
1490 param "insn" from const_rtx to const rtx_insn *.
1491 (sched_get_reverse_condition_uncached): Likewise.
1492 (sched_get_condition_with_rev): Likewise.
1493 (sched_has_condition_p): Likewise.
1494 (sched_insns_conditions_mutex_p): Likewise for both params.
1495 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
1496 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
1497 (setup_insn_reg_uses): Move local "list" to be more tightly
1498 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
1499 its methods for clarity and type-safety.
1500 (sched_analyze_1): Strengthen local "pending" from rtx to
1501 rtx_insn_list *, and local "pending_mem" from rtx to
1502 rtx_expr_list *. Use methods of each for clarity and type-safety.
1503 (sched_analyze_2): Likewise.
1504 (sched_analyze_insn): Likewise.
1505
1506 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
1507 param from const_rtx to const rtx_insn *.
1508 (sched_insns_conditions_mutex_p): Likewise for both params.
1509 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
1510 param.
1511
1512 * system.h (CONST_CAST_RTX_INSN): New macro.
1513
1514 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1515
1516 * recog.c (peep2_attempt): Strengthen return type from rtx to
1517 rtx_insn *.
1518 (peep2_update_life): Likewise for params "last", "prev", removing
1519 a checked cast made redundant by this.
1520 (peephole2_optimize): Likewise for local "last".
1521
1522 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1523
1524 * basic-block.h (set_block_for_insn): Eliminate this macro in
1525 favor of...
1526 * rtl.h (set_block_for_insn): New inline function, imposing the
1527 requirement that the "insn" param is an rtx_insn *.
1528
1529 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1530
1531 * caller-save.c (setup_save_areas): Strengthen local "insn" from
1532 rtx to rtx_insn *.
1533 * final.c (get_call_reg_set_usage): Likewise for first param,
1534 eliminating a checked cast.
1535 * regs.h (get_call_reg_set_usage): Likewise for first param.
1536 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
1537 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
1538 cast, replacing references to "x" with "call_insn" where
1539 appropriate.
1540 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
1541 rtx_insn *, adding a checked cast.
1542
1543 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1544
1545 * output.h (final_scan_insn): Strengthen first param from rtx to
1546 rtx_insn *.
1547
1548 * final.c (final_scan_insn): Likewise, renaming it back from
1549 "uncast_insn" to "insn", eliminating the checked cast.
1550
1551 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
1552 "vec" with an rtx_sequence * "seq", taking a copy of
1553 "final_sequence", and using methods of "seq" for clarity, and for
1554 type-safety in the calls to final_scan_insn.
1555 * config/mips/mips.c (mips_output_conditional_branch): Use methods
1556 of "final_sequence" for clarity, and for type-safety in the call to
1557 final_scan_insn.
1558 * config/sh/sh.c (print_slot): Strengthen param from rtx to
1559 rtx_sequence * and rename from "insn" to "seq".
1560
1561 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1562
1563 * jump.c (delete_related_insns): Introduce a new local "table" by
1564 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
1565 get_labels method of "table" to simplify access to the labels in
1566 the jump table.
1567
1568 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1569
1570 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
1571 f_minmaxs, f_minmaxd types.
1572
1573 2014-09-05 Richard Biener <rguenther@suse.de>
1574
1575 * cfgloop.c (mark_loop_for_removal): Record former header
1576 when ENABLE_CHECKING.
1577 * cfgloop.h (strut loop): Add former_header member when
1578 ENABLE_CHECKING.
1579 * loop-init.c (fix_loop_structure): Sanity check loops
1580 marked for removal if they re-appeared.
1581
1582 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1583
1584 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
1585 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
1586
1587 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
1588 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
1589 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
1590 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
1591 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
1592 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
1593 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
1594 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
1595 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
1596 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
1597 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
1598 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
1599 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
1600 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
1601 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
1602 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
1603 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
1604 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
1605 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
1606 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
1607 with int{32,16,8}_t.
1608
1609 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1610
1611 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
1612 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
1613 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
1614 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
1615 Remove temporary __asm__ and reimplement.
1616
1617 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1618
1619 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
1620 handling cmge, cmgt, cmeq, cmtst.
1621
1622 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
1623 cmlt, cmgeu, cmgtu, cmtst): Remove.
1624
1625 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
1626 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
1627 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
1628 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
1629
1630 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1631
1632 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
1633 TYPES_TST): Define.
1634 (aarch64_fold_builtin): Update pattern for cmtst.
1635
1636 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
1637 Declare.
1638
1639 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
1640
1641 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
1642 Switch operands, separate out more cases, refactor.
1643
1644 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
1645
1646 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
1647 argument; rename old version to...
1648 (aarch64_const_vec_all_same_in_range_p): ...this.
1649 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
1650
1651 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
1652
1653 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1654
1655 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
1656 Remove qualifier_const_pointer, update comment.
1657
1658 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1659
1660 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
1661
1662 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1663
1664 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
1665 varargs with pointer parameter.
1666 (aarch64_simd_expand_builtin): pass pointer into previous.
1667
1668 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1669
1670 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
1671 alus_ext.
1672
1673 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1674
1675 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
1676 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
1677 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
1678 Replace temporary asm with call to builtin.
1679 (vrbit_p8, vrbitq_p8): New functions.
1680
1681 2014-09-05 Richard Biener <rguenther@suse.de>
1682
1683 * cfgloop.c (mark_loop_for_removal): New function.
1684 * cfgloop.h (mark_loop_for_removal): Declare.
1685 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
1686 (merge_blocks): Likewise.
1687 (duplicate_block): Likewise.
1688 * except.c (sjlj_emit_dispatch_table): Likewise.
1689 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
1690 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
1691 (thread_through_loop_header): Likewise.
1692
1693 2014-09-05 Richard Biener <rguenther@suse.de>
1694
1695 PR middle-end/63148
1696 * fold-const.c (try_move_mult_to_index): Remove.
1697 (fold_binary_loc): Do not call it.
1698 * tree-data-ref.c (dr_analyze_indices): Strip conversions
1699 from the base object again.
1700
1701 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
1702
1703 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
1704 DImode.
1705
1706 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1707
1708 PR target/55701
1709 * config/arm/arm.md (setmem): New pattern.
1710 * config/arm/arm-protos.h (struct tune_params): New fields.
1711 (arm_gen_setmem): New prototype.
1712 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
1713 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
1714 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
1715 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
1716 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
1717 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
1718 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
1719 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
1720 (arm_const_inline_cost): New function.
1721 (arm_block_set_max_insns): New function.
1722 (arm_block_set_non_vect_profit_p): New function.
1723 (arm_block_set_vect_profit_p): New function.
1724 (arm_block_set_unaligned_vect): New function.
1725 (arm_block_set_aligned_vect): New function.
1726 (arm_block_set_unaligned_non_vect): New function.
1727 (arm_block_set_aligned_non_vect): New function.
1728 (arm_block_set_vect, arm_gen_setmem): New functions.
1729
1730 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1731
1732 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
1733
1734 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1735
1736 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
1737
1738 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1739
1740 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
1741 an rtx.
1742 * valtrack.h: Adjust.
1743
1744 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1745
1746 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
1747 an rtx.
1748 (emit_jump_insn_before_noloc): Likewise.
1749 (emit_call_insn_before_noloc): Likewise.
1750 (emit_label_before): Likewise.
1751 (emit_label_after): Likewise.
1752 (emit_insn_before_setloc): Likewise.
1753 (emit_jump_insn_before_setloc): Likewise.
1754 (emit_call_insn_before_setloc): Likewise.
1755 (emit_call_insn_before): Likewise.
1756 * rtl.h: Adjust.
1757
1758 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1759
1760 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
1761 rtx_insn *, eliminating a checked cast.
1762
1763 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1764
1765 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
1766 const_rtx to const rtx_insn *.
1767 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
1768 cast.
1769
1770 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1771
1772 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
1773 fixup_args_size_notes.
1774 * expr.c (fixup_args_size_notes): Strengthen first two params from
1775 rtx to rtx_insn *, eliminating a checked cast.
1776 * rtl.h (fixup_args_size_notes): Strengthen first two params from
1777 rtx to rtx_insn *.
1778
1779 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1780
1781 * haifa-sched.c (get_ready_element): Strengthen return type from
1782 rtx to rtx_insn *.
1783 * sched-int.h (get_ready_element): Likewise.
1784
1785 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
1786
1787 PR target/63165
1788 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
1789 indexed_or_indirect_operand instead of memory_operand.
1790 (floatsi<mode>2_lfiwzx_mem): Ditto.
1791
1792 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1793
1794 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
1795 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
1796 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
1797
1798 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1799
1800 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
1801 rtx.
1802 (get_last_nonnote_insn): Likewise.
1803 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
1804 * resource.c (find_basic_block): Likewise.
1805 * rtl.h: Adjust.
1806 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
1807 const_rtx.
1808
1809 2014-09-04 David Malcolm <dmalcolm@redhat.com>
1810
1811 * genattr.c (main): Within the prototype of insn_latency written
1812 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
1813 * genautomata.c (output_internal_maximal_insn_latency_func):
1814 Within the implementation of insn_latency written out to
1815 insn-automata.c, strengthen both params from rtx to rtx_insn *,
1816 eliminating a pair of checked casts.
1817
1818 2014-09-04 David Malcolm <dmalcolm@redhat.com>
1819
1820 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
1821 rtx_insn *.
1822
1823 * rtl.h (eh_returnjump_p): Likewise.
1824
1825 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
1826
1827 * Makefile.in (TAGS): Handle constructs in timevar.def.
1828
1829 2014-09-04 Guozhi Wei <carrot@google.com>
1830
1831 PR target/62040
1832 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
1833 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
1834 it into two patterns.
1835 (move_lo_quad_internal_be_<mode>): Likewise.
1836
1837 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1838
1839 * doc/options.texi: Document that Var and Init are required if CPP
1840 is given.
1841 * optc-gen.awk: Require Var and Init if CPP is given.
1842 * common.opt (Wpedantic): Use Init.
1843
1844 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1845
1846 * config/rs6000/rs6000.c (special_handling_values): Add
1847 SH_EXTRACT.
1848 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
1849 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
1850 as swappable with special handling SH_EXTRACT. Remove
1851 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
1852 optimization.
1853 (adjust_extract): New function.
1854 (handle_special_swappables): Add default to case statement; add
1855 case for SH_EXTRACT that calls adjust_extract.
1856 (dump_swap_insn_table): Handle SH_EXTRACT.
1857
1858 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1859
1860 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
1861 selection of 0th memory doubleword, regardless of endianness.
1862
1863 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1864
1865 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
1866
1867 2014-09-04 Alan Modra <amodra@gmail.com>
1868
1869 PR debug/60655
1870 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
1871 can't be output.
1872
1873 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
1874
1875 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
1876 * targhooks.c (default_dwarf_frame_reg_mode): New function.
1877 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
1878 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
1879 * doc/tm.texi: Regenerate.
1880 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
1881 selection logic to default_dwarf_frame_reg_mode.
1882
1883 2014-09-03 Marek Polacek <polacek@redhat.com>
1884
1885 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
1886 by -Wall.
1887
1888 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
1889
1890 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
1891 the automodified register.
1892
1893 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
1894
1895 * output.h (get_some_local_dynamic_name): Declare.
1896 * final.c (some_local_dynamic_name): New variable.
1897 (get_some_local_dynamic_name): New function.
1898 (final_end_function): Clear some_local_dynamic_name.
1899 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
1900 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1901 (print_operand): Report an error if '%&' is used inappropriately.
1902 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
1903 (get_some_local_dynamic_name_1): Delete.
1904 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
1905 (rs6000_get_some_local_dynamic_name): Delete.
1906 (rs6000_get_some_local_dynamic_name_1): Delete.
1907 (print_operand): Report an error if '%&' is used inappropriately.
1908 * config/s390/s390.c (machine_function): Remove some_ld_name.
1909 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1910 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
1911 * config/sparc/sparc.c: Include rtl-iter.h.
1912 (machine_function): Remove some_ld_name.
1913 (sparc_print_operand): Report an error if '%&' is used inappropriately.
1914 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1915
1916 2014-09-03 Richard Henderson <rth@redhat.com>
1917
1918 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
1919 (aarch64_popwb_pair_reg): Remove.
1920 (aarch64_set_frame_expr): Remove.
1921 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
1922 the restore ops performed by the insns generated.
1923 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
1924 insn. Perform the calls_eh_return addition later; do not attempt to
1925 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
1926 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
1927 special markup at all. Load cfun->machine->frame.hard_fp_offset
1928 into a local variable.
1929 (aarch64_frame_pointer_required): Don't check calls_alloca.
1930
1931 2014-09-03 Richard Biener <rguenther@suse.de>
1932
1933 * opts.c (default_options_optimization): Adjust
1934 max-combine-insns to 2 for -Og.
1935
1936 2014-09-03 Martin Jambor <mjambor@suse.cz>
1937
1938 PR ipa/62015
1939 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
1940 pass-trough jump functions correctly.
1941
1942 2014-09-03 Martin Jambor <mjambor@suse.cz>
1943
1944 PR ipa/61986
1945 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
1946 created replacements in ascending order of offsets.
1947 (known_aggs_to_agg_replacement_list): Likewise.
1948
1949 2014-09-03 Martin Liska <mliska@suse.cz>
1950
1951 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
1952 is set to set uninitialized value for vnresult.
1953
1954 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1955
1956 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
1957 for TARGET_MUST_PASS_IN_STACK.
1958
1959 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1960
1961 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
1962 for TARGET_ARG_PARTIAL_BYTES.
1963
1964 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1965
1966 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
1967 instructions for varargs implementation.
1968 (nds32_expand_epilogue): Emit stack adjustment instructions for
1969 varargs implementation.
1970
1971 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1972
1973 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
1974 optimization detection.
1975
1976 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1977
1978 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
1979 arguments.
1980 (nds32_function_arg_advance): Deal with nameless arguments.
1981 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
1982 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
1983 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
1984
1985 2014-09-03 Richard Biener <rguenther@suse.de>
1986
1987 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
1988 (struct bb_bitmap_sets): Remove deferred member.
1989 (BB_DEFERRED): Remove.
1990 (defer_or_phi_translate_block): Remove.
1991 (compute_antic_aux): Remove deferring of blocks, assert
1992 proper iteration order.
1993 (compute_antic): Do not set BB_DEFERRED.
1994 (eliminate): Allocate el_avail of proper size initially.
1995
1996 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1997
1998 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
1999 according to the value of crtl->args.pretend_args_size.
2000
2001 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2002
2003 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
2004 varargs information.
2005
2006 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2007
2008 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
2009 implementation for TARGET_SETUP_INCOMING_VARARGS.
2010 (nds32_strict_argument_naming): Refine comment.
2011 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
2012 Define for future implementation.
2013
2014 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
2015
2016 * config/i386/adxintrin.h (_subborrow_u32): New.
2017 (_addcarry_u32): Ditto.
2018 (_subborrow_u64): Ditto.
2019 (_addcarry_u64): Ditto.
2020 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
2021 IX86_BUILTIN_SBB64.
2022 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
2023 __builtin_ia32_sbb_u64
2024
2025 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2026
2027 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
2028 GPR-specific stuff.
2029 (nds32_function_arg_advance): Likewise.
2030 (nds32_init_cumulative_args): Likewise.
2031 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
2032 (NDS32_FIRST_GPR_REGNUM): Define.
2033 (NDS32_LAST_GPR_REGNUM): Define.
2034 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
2035 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
2036 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
2037 (machine_function): Use GRP-specific stuff.
2038
2039 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2040
2041 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
2042 (nds32_expand_epilogue): Likewise.
2043 (nds32_expand_prologue_v3push): Likewise.
2044 (nds32_expand_epilogue_v3pop): Likewise.
2045
2046 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2047
2048 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
2049 v3push/v3pop for variadic function.
2050 * config/nds32/nds32.md (prologue, epilogue): Likewise.
2051
2052 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2053
2054 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
2055 Check rtx for varargs implementation.
2056 (nds32_output_stack_pop): Likewise.
2057 * config/nds32/nds32-protos.h: Have a rtx argument for
2058 nds32_output_stack_push and nds32_output_stack_pop.
2059 * config/nds32/nds32.md: Likewise.
2060
2061 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2062
2063 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
2064 to check if FUNC is an interrupt service routine.
2065 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
2066
2067 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2068
2069 * config/nds32/nds32.h (machine_function): Add some fields for variadic
2070 arguments implementation.
2071
2072 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2073
2074 * config/nds32/nds32-predicates.c
2075 (nds32_valid_stack_push_pop): Rename to ...
2076 (nds32_valid_stack_push_pop_p): ... this.
2077 * config/nds32/nds32-protos.h: Likewise.
2078 * config/nds32/predicates.md: Likewise.
2079
2080 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2081
2082 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
2083 (nds32_emit_stack_v3push): ... this.
2084 (nds32_gen_stack_v3pop): Rename to ...
2085 (nds32_emit_stack_v3pop): ... this and consider CFA restore
2086 information.
2087
2088 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2089
2090 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
2091 (nds32_emit_stack_push_multiple): ... this.
2092 (nds32_gen_stack_pop_multiple): Rename to ...
2093 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
2094 information.
2095
2096 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2097
2098 PR target/61078
2099 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
2100 and add a second splitter to handle the remaining cases.
2101
2102 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2103
2104 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
2105
2106 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
2107
2108 * cfgexpand.c (label_rtx_for_bb): Change type to
2109 hash_map<basic_block, rtx_code_label *> *.
2110 (expand_gimple_basic_block): Adjust.
2111 (pass_expand::execute): Likewise.
2112
2113 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
2114
2115 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
2116 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
2117 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
2118 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
2119 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
2120 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
2121 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
2122 of rtx.
2123
2124 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
2125
2126 * alloc-pool.c: Include coretypes.h.
2127 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
2128 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
2129 hash_set instead of htab.
2130 * ggc-page.c (in_gc): New variable.
2131 (ggc_free): Do nothing if a collection is taking place.
2132 (ggc_collect): Set in_gc appropriately.
2133 * ggc.h (gt_ggc_mx(const char *)): New function.
2134 (gt_pch_nx(const char *)): Likewise.
2135 (gt_ggc_mx(int)): Likewise.
2136 (gt_pch_nx(int)): Likewise.
2137 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
2138 (hash_map::hash_entry::pch_nx): Likewise.
2139 (hash_map::hash_entry::pch_nx_helper): Likewise.
2140 (hash_map::hash_map): Adjust.
2141 (hash_map::create_ggc): New function.
2142 (gt_ggc_mx): Likewise.
2143 (gt_pch_nx): Likewise.
2144 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
2145 (default_hashset_traits::pch_nx): Likewise.
2146 (hash_set::hash_entry::ggc_mx): Likewise.
2147 (hash_set::hash_entry::pch_nx): Likewise.
2148 (hash_set::hash_entry::pch_nx_helper): Likewise.
2149 (hash_set::hash_set): Adjust.
2150 (hash_set::create_ggc): New function.
2151 (hash_set::elements): Likewise.
2152 (gt_ggc_mx): Likewise.
2153 (gt_pch_nx): Likewise.
2154 * hash-table.h (hash_table::hash_table): Adjust.
2155 (hash_table::m_ggc): New member.
2156 (hash_table::~hash_table): Adjust.
2157 (hash_table::expand): Likewise.
2158 (hash_table::empty): Likewise.
2159 (gt_ggc_mx): New function.
2160 (hashtab_entry_note_pointers): Likewise.
2161 (gt_pch_nx): Likewise.
2162
2163 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2164
2165 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
2166 built-in definition.
2167 (XVCVUXDDP_SCALE): Likewise.
2168 (XVCVDPSXDS_SCALE): Likewise.
2169 (XVCVDPUXDS_SCALE): Likewise.
2170 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2171 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
2172 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
2173 VSX_BUILTIN_XVCVDPUXDS_SCALE.
2174 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
2175 prototype.
2176 * config/rs6000/rs6000.c (real.h): New include.
2177 (rs6000_scale_v2df): New function.
2178 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
2179 (UNSPEC_VSX_XVCVUXDDP): Likewise.
2180 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
2181 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
2182 (vsx_xvcvsxddp_scale): New define_expand.
2183 (vsx_xvcvsxddp): New define_insn.
2184 (vsx_xvcvuxddp_scale): New define_expand.
2185 (vsx_xvcvuxddp): New define_insn.
2186 (vsx_xvcvdpsxds_scale): New define_expand.
2187 (vsx_xvcvdpsxds): New define_insn.
2188 (vsx_xvcvdpuxds_scale): New define_expand.
2189 (vsx_xvcvdpuxds): New define_insn.
2190 * doc/extend.texi (vec_ctf): Add new prototypes.
2191 (vec_cts): Likewise.
2192 (vec_ctu): Likewise.
2193 (vec_splat): Likewise.
2194 (vec_div): Likewise.
2195 (vec_mul): Likewise.
2196
2197 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2198
2199 PR target/62275
2200 * config/arm/neon.md
2201 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
2202 <v_cmp_result>): New pattern.
2203 * config/arm/iterators.md (NEON_VCVT): New int iterator.
2204 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
2205 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
2206 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
2207 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
2208 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
2209
2210 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2211
2212 PR target/62275
2213 * config/arm/iterators.md (FIXUORS): New code iterator.
2214 (VCVT): New int iterator.
2215 (su_optab): New code attribute.
2216 (su): Likewise.
2217 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
2218
2219 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2220
2221 * config/aarch64/predicates.md (aarch64_comparison_operation):
2222 New special predicate.
2223 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
2224 aarch64_comparison_operation instead of matching an operator.
2225 Update operand numbers.
2226 (csinc3<mode>_insn): Likewise.
2227 (*csinv3<mode>_insn): Likewise.
2228 (*csneg3<mode>_insn): Likewise.
2229 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
2230 * config/aarch64/aarch64.c (aarch64_get_condition_code):
2231 Return -1 instead of aborting on invalid condition codes.
2232 (aarch64_print_operand): Update aarch64_get_condition_code callsites
2233 to assert that the returned condition code is valid.
2234 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
2235
2236 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
2237
2238 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
2239 tree.def, and gimple.def
2240
2241 2014-09-02 Jakub Jelinek <jakub@redhat.com>
2242 Balaji V. Iyer <balaji.v.iyer@intel.com>
2243 Igor Zamyatin <igor.zamyatin@intel.com>
2244
2245 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
2246 (__cilkrts_cilk_for_64): Likewise.
2247 * cilk-common.c (declare_cilk_for_builtin): New function.
2248 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
2249 __cilkrts_cilk_for_64 bultins.
2250 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
2251 CILK_TI_F_LOOP_64.
2252 (cilk_for_32_fndecl): New define.
2253 (cilk_for_64_fndecl): Likewise.
2254 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
2255 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
2256 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
2257 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
2258 GF_OMP_FOR_COMBINED_INTO.
2259 * gimplify.c (gimplify_scan_omp_clauses): Added
2260 OMP_CLAUSE__CILK_FOR_COUNT_ case.
2261 (gimplify_adjust_omp_clauses): Ditto.
2262 (gimplify_omp_for): Added CILK_FOR case.
2263 (gimplify_expr): Ditto.
2264 * omp-low.c: Include cilk.h.
2265 (extract_omp_for_data): Set appropriate kind for
2266 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
2267 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
2268 (create_omp_child_function_name): Added second argument to handle
2269 cilk_for case.
2270 (cilk_for_check_loop_diff_type): New function.
2271 (expand_cilk_for_call): Likewise.
2272 (expand_cilk_for): Likewise.
2273 (create_omp_child_function): Set cilk_for_count; handle the cases when
2274 it is true; call create_omp_child_function_name with second argument.
2275 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
2276 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
2277 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
2278 * tree-nested.c (convert_nonlocal_omp_clauses): Added
2279 OMP_CLAUSE__CILK_FOR_COUNT_ case.
2280 (convert_local_omp_clauses): Ditto.
2281 * tree-pretty-print.c (dump_omp_clause): Added
2282 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
2283 (dump_generic_node): Added CILK_FOR case.
2284 * tree.c (omp_clause_num_ops): New element
2285 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
2286 (omp_clause_code_name): New element _Cilk_for_count_.
2287 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
2288 * tree.def: Add tree code for CILK_FOR.
2289
2290 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2291
2292 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
2293 (ppc403-compare): Add "exts with dot" case.
2294 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
2295 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
2296 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
2297 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
2298 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
2299 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
2300 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
2301 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
2302 cell-cmp-microcoded): Similarly.
2303 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
2304 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
2305 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
2306 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
2307 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
2308 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
2309 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
2310 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
2311 (power6-compare): Add "exts with dot" case.
2312 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
2313 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
2314 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
2315
2316 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
2317 if avoiding Cell microcode.
2318 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
2319 (is_cracked_insn): Ditto.
2320 (insn_must_be_first_in_group): Ditto.
2321 * config/rs6000/rs6000.md (dot): Adjust comment.
2322 (cell_micro): Handle exts+dot.
2323 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
2324 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
2325 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
2326 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
2327 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
2328 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
2329 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
2330
2331 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2332
2333 * config/rs6000/rs6000.md (QHSI): Delete.
2334 (EXTQI, EXTHI, EXTSI): New mode iterators.
2335 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
2336 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
2337 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
2338 9 anonymous instructions, and 8 splitters): Delete.
2339 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
2340 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
2341 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
2342 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
2343 *zero_extendsi<mode>2_dot2): New.
2344
2345 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2346
2347 * config/rs6000/rs6000.md (any_extend): New code iterator.
2348 (u, su): New code attributes.
2349 (dmode, DMODE): New mode attributes.
2350 (<su>mul<mode>3_highpart): New.
2351 (*<su>mul<mode>3_highpart): New.
2352 (<su>mulsi3_highpart_le): New.
2353 (<su>muldi3_highpart_le): New.
2354 (<su>mulsi3_highpart_64): New.
2355 (<u>mul<mode><dmode>3): New.
2356 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
2357 splitters): Delete.
2358 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
2359 splitters): Delete.
2360
2361 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2362
2363 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
2364 *mulsi3_internal2, and two splitters): Delete.
2365 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
2366 Delete.
2367 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
2368
2369 2014-09-02 Richard Biener <rguenther@suse.de>
2370
2371 PR tree-optimization/62695
2372 * tree-ssa-structalias.c (find_func_clobbers): Add missing
2373 vector truncate.
2374
2375 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
2376
2377 PR target/62312
2378 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
2379
2380 2014-09-01 Andi Kleen <ak@linux.intel.com>
2381
2382 * file-find.c (add_prefix_begin): Add.
2383 (do_add_prefix): Rename from add_prefix with first argument.
2384 (add_prefix): Add new wrapper.
2385 * file-find.h (add_prefix_begin): Add.
2386 * gcc-ar.c (main): Support -B option.
2387
2388 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
2389
2390 * genemit.c: Include dumpfile.h.
2391 (gen_split): Print name of splitter function to dump file.
2392
2393 2014-09-01 Richard Biener <rguenther@suse.de>
2394
2395 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
2396 Use stack auto_vecs for constraint expressions.
2397 (find_func_aliases_for_call): Likewise.
2398 (find_func_aliases): Likewise.
2399 (find_func_clobbers): Likewise.
2400
2401 2014-09-01 Richard Biener <rguenther@suse.de>
2402
2403 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
2404 operands vector in most cases. Remove redundant code.
2405
2406 2014-09-01 Olivier Hainque <hainque@adacore.com>
2407
2408 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
2409 $WIND_BASE instead of designating a harcoded arbitrary home dir.
2410 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
2411
2412 2014-09-01 Richard Biener <rguenther@suse.de>
2413
2414 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
2415 copy_reference_ops_from_call, vn_nary_op_compute_hash,
2416 vn_reference_compute_hash, vn_reference_insert): Remove.
2417 (vn_reference_lookup_call): New function.
2418 * tree-ssa-sccvn.c (vn_reference_compute_hash,
2419 copy_reference_ops_from_ref, copy_reference_ops_from_call,
2420 vn_reference_insert, vn_nary_op_compute_hash): Make static.
2421 (create_reference_ops_from_call): Remove.
2422 (vn_reference_lookup_3): Properly update shared_lookup_references.
2423 (vn_reference_lookup_pieces): Assert that we updated
2424 shared_lookup_references properly.
2425 (vn_reference_lookup): Likewise.
2426 (vn_reference_lookup_call): New function.
2427 (visit_reference_op_call): Use it. Avoid re-building the
2428 reference ops.
2429 (visit_reference_op_load): Remove redundant lookup.
2430 (visit_reference_op_store): Perform special tail-merging work
2431 only when possibly doing tail-merging.
2432 (visit_use): Likewise.
2433 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
2434
2435 2014-09-01 Jakub Jelinek <jakub@redhat.com>
2436
2437 PR target/62025
2438 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
2439 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
2440 (find_inc): Revert 2014-08-13 change.
2441
2442 2014-09-01 Marek Polacek <polacek@redhat.com>
2443
2444 PR middle-end/61903
2445 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
2446 Change the type of V to unsigned HOST_WIDE_INT.
2447
2448 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
2449
2450 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
2451 the size of byte markers.
2452 (do_shift_rotate): Fix confusion between host, target and marker byte
2453 size.
2454 (verify_symbolic_number_p): Likewise.
2455 (find_bswap_or_nop_1): Likewise.
2456 (find_bswap_or_nop): Likewise.
2457
2458 2014-09-01 Olivier Hainque <hainque@adacore.com>
2459
2460 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
2461 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
2462
2463 2014-09-01 Jakub Jelinek <jakub@redhat.com>
2464
2465 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
2466 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
2467 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
2468
2469 2014-09-01 Yury Gribov <y.gribov@samsung.com>
2470
2471 PR sanitizer/61897
2472 PR sanitizer/62140
2473 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
2474 (build_check_stmt): Likewise.
2475 (instrument_strlen_call): Likewise.
2476 (asan_expand_check_ifn): Likewise and fix types.
2477 (maybe_cast_to_ptrmode): New function.
2478
2479 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2480
2481 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
2482
2483 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
2484
2485 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
2486
2487 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
2488
2489 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
2490 prefix to function labels when generating fast indirect calls.
2491
2492 2014-08-30 David Malcolm <dmalcolm@redhat.com>
2493
2494 PR bootstrap/62304
2495
2496 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
2497 param back from rtx_insn * to rtx. Rename param from "label" to
2498 "label_or_return", reintroducing "label" as an rtx_insn * after
2499 we've ensured it's not a RETURN.
2500 (first_active_target_insn): Likewise for return type and param;
2501 add a checked cast to rtx_insn * once we've ensured "insn" is not
2502 a RETURN.
2503 (steal_delay_list_from_target): Convert param "pnew_thread" back
2504 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
2505 with JUMP_LABEL.
2506 (own_thread_p): Convert param "thread" back from an rtx_insn * to
2507 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
2508 cast once we've established we're not dealing with a RETURN,
2509 renaming subsequent uses of "thread" to "thread_insn".
2510 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
2511 to JUMP_LABEL.
2512 (follow_jumps): Convert return type and param "label" from
2513 rtx_insn * back to rtx. Move initialization of "value" to after
2514 the handling for ANY_RETURN_P, adding a checked cast there to
2515 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
2516 rename to "this_label_or_return", reintroducing "this_label" as
2517 an rtx_insn * once we've handled the case where it could be an
2518 ANY_RETURN_P.
2519 (fill_slots_from_thread): Rename param "thread" to
2520 "thread_or_return", converting from an rtx_insn * back to an rtx.
2521 Reintroduce name "thread" as an rtx_insn * local with a checked
2522 cast once we've handled the case of it being an ANY_RETURN_P.
2523 Convert local "new_thread" from an rtx_insn * back to an rtx.
2524 Add a checked cast when assigning to "trial" from "new_thread".
2525 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
2526 checked cast to rtx_insn * from "new_thread" when invoking
2527 get_label_before.
2528 (fill_eager_delay_slots): Convert locals "target_label",
2529 "insn_at_target" from rtx_insn * back to rtx.
2530 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
2531 (relax_delay_slots): Convert locals "trial", "target_label" from
2532 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
2533 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
2534 invoking update_block.
2535 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
2536 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
2537
2538 * resource.h (mark_target_live_regs): Undo erroneous conversion
2539 of second param of r214693, converting it back from rtx_insn * to
2540 rtx, since it could be a RETURN.
2541
2542 * resource.c (find_dead_or_set_registers): Similarly, convert
2543 param "jump_target" back from an rtx_insn ** to an rtx *, as we
2544 could be writing back a RETURN. Rename local rtx_insn * "next" to
2545 "next_insn", and introduce "lab_or_return" as a local rtx,
2546 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
2547 (mark_target_live_regs): Undo erroneous conversion
2548 of second param of r214693, converting it back from rtx_insn * to
2549 rtx, since it could be a RETURN. Rename it from "target" to
2550 "target_maybe_return", reintroducing the name "target" as a local
2551 rtx_insn * with a checked cast, after we've handled the case of
2552 ANY_RETURN_P.
2553
2554 2014-08-29 DJ Delorie <dj@redhat.com>
2555
2556 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
2557 pointer size up to a power of two.
2558 * defaults.h (DWARF2_ADDR_SIZE): Round up.
2559 (POINTER_SIZE_UNITS): New, rounded up value.
2560 * dwarf2asm.c (size_of_encoded_value): Use it.
2561 (dw2_output_indirect_constant_1): Likewise.
2562 * expmed.c (init_expmed_one_conv): We now know the sizes of
2563 partial int modes.
2564 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
2565 * optabs.c (expand_float): Use precision, not size.
2566 (expand_fix): Likewise.
2567 * simplify-rtx (simplify_unary_operation_1): Likewise.
2568 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2569 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
2570 (default_assemble_integer) Likewise.
2571 (dump_tm_clone_pairs): Likewise.
2572 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
2573 * var-tracking.c (adjust_mems): Allow partial-int modes also.
2574 (prepare_call_arguments): Likewise.
2575 * stor-layout.c (finalize_type_size): Preserve precision.
2576 (layout_type): Use precision, not size.
2577
2578 * expr.c (convert_move): If the target has an explicit converter,
2579 use it.
2580
2581 2014-08-29 David Malcolm <dmalcolm@redhat.com>
2582
2583 * gdbinit.in: Skip various inline functions in rtl.h when
2584 stepping.
2585
2586 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
2587
2588 PR bootstrap/62301
2589 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
2590
2591 2014-08-29 Richard Biener <rguenther@suse.de>
2592
2593 PR tree-optimization/62291
2594 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
2595 exactly the vector size needed and use quick_push.
2596 (phi_translate_1): Adjust comment.
2597 (valid_in_sets): Remove block argument and remove pointless
2598 checking of NAMEs.
2599 (dependent_clean): Adjust for removal of block argument.
2600 (clean): Likewise.
2601 (compute_antic_aux): Likewise.
2602 (compute_partial_antic_aux): Likewise.
2603
2604 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
2605 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2606 Anna Tikhonova <anna.tikhonova@intel.com>
2607 Ilya Tocar <ilya.tocar@intel.com>
2608 Andrey Turetskiy <andrey.turetskiy@intel.com>
2609 Ilya Verbin <ilya.verbin@intel.com>
2610 Kirill Yukhin <kirill.yukhin@intel.com>
2611 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2612
2613 * config/i386/sse.md
2614 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
2615 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
2616 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
2617 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
2618
2619 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
2620 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2621 Anna Tikhonova <anna.tikhonova@intel.com>
2622 Ilya Tocar <ilya.tocar@intel.com>
2623 Andrey Turetskiy <andrey.turetskiy@intel.com>
2624 Ilya Verbin <ilya.verbin@intel.com>
2625 Kirill Yukhin <kirill.yukhin@intel.com>
2626 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2627
2628 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
2629 * config/i386/sse.md
2630 (define_mode_iterator VI4_128_8_256): New.
2631 (define_mode_iterator VI2_128_4_256): Ditto.
2632 (define_mode_iterator PMOV_DST_MODE): Rename into
2633 (define_mode_iterator PMOV_DST_MODE_1): this.
2634 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
2635 Use PMOV_DST_MODE_1 mode iterator.
2636 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
2637 Ditto.
2638 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
2639 Ditto.
2640 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
2641 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
2642 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
2643 (define_mode_iterator PMOV_DST_MODE_2): New.
2644 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
2645 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
2646 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
2647 Ditto.
2648 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
2649 (define_mode_attr pmov_dst_3): Ditto.
2650 (define_mode_attr pmov_dst_zeroed_3): Ditto.
2651 (define_mode_attr pmov_suff_3): Ditto.
2652 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
2653 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
2654 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
2655 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
2656 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
2657 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
2658 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
2659 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
2660 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
2661 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
2662 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
2663 (define_mode_attr pmov_dst_4): Ditto.
2664 (define_mode_attr pmov_dst_zeroed_4): Ditto.
2665 (define_mode_attr pmov_suff_4): Ditto.
2666 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
2667 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
2668 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
2669 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
2670 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
2671 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
2672 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
2673 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
2674 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
2675 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
2676 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
2677
2678 2014-08-29 Richard Biener <rguenther@suse.de>
2679
2680 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
2681 NON_LVALUE_EXPR in gimple.
2682
2683 2014-08-29 Richard Biener <rguenther@suse.de>
2684
2685 PR middle-end/62292
2686 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
2687 from previous refactoring.
2688 (gimple_fold_builtin_strncpy): Likewise.
2689
2690 2014-08-29 David Malcolm <dmalcolm@redhat.com>
2691
2692 PR bootstrap/62300
2693 * function.c (assign_parm_setup_reg): Remove erroneous checked
2694 cast to rtx_insn * on result of gen_extend_insn in favor of
2695 introducing a new local rtx "pat".
2696
2697 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2698
2699 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
2700 to silence warning.
2701 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
2702
2703 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2704
2705 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
2706 (next_insn): Likewise.
2707 * emit-rtl.c (next_insn): Likewise.
2708 (previous_insn): Likewise.
2709 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
2710 "insn" and "next" from rtx to rtx_insn *.
2711 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
2712 "insn", "insn1", "vliw_start", "prologue_end_note",
2713 "last_insn_in_packet".
2714
2715 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2716
2717 * shrink-wrap.h (active_insn_between): Strengthen both params from
2718 rtx to rtx_insn *.
2719 * function.c (active_insn_between): Likewise.
2720
2721 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2722
2723 * genattr.c (main): When writing out insn-attr.h, strengthen param
2724 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
2725 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
2726 writing out the definition of dfa_clear_single_insn_cache to the
2727 generated insn-automata.c
2728
2729 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2730
2731 * resource.h (clear_hashed_info_for_insn): Strengthen param from
2732 rtx to rtx_insn *.
2733 (incr_ticks_for_insn): Likewise.
2734 (init_resource_info): Likewise.
2735
2736 * resource.c (init_resource_info): Likewise.
2737 (clear_hashed_info_for_insn): Likewise.
2738 (incr_ticks_for_insn): Likewise.
2739
2740 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
2741 rtx to rtx_insn *.
2742 (steal_delay_list_from_target): Use methods of "seq".
2743 (try_merge_delay_insns): Use methods of "merged_insns".
2744 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
2745 (reorg_redirect_jump): Likewise for param "jump".
2746
2747 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2748
2749 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
2750 rtx to rtx_insn *.
2751 * config/s390/s390.c (s390_split_branches): Eliminate top-level
2752 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
2753 "set_insn".
2754 (s390_mainpool_finish): In three places, split out a local rtx
2755 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
2756 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
2757 and split another local rtx "insn" out into rtx "pat" and
2758 rtx_insn * "insn".
2759 * config/sh/sh.c (output_branchy_insn): Rather than working
2760 directly on operands[9], introduce local rtx_code_label *
2761 variables named "lab" in two places, working on them, and then
2762 assigning them to operands[9], so that the intervening operations
2763 are known by the type system to be on insns.
2764
2765 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2766
2767 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
2768 const rtx_insn *.
2769
2770 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
2771 in invocation of INSN_HAS_LOCATION.
2772
2773 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2774
2775 * config/rs6000/altivec.h (vec_xl): New #define.
2776 (vec_xst): Likewise.
2777 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
2778 (XXSPLTD_V2DI): Likewise.
2779 (DIV_V2DI): Likewise.
2780 (UDIV_V2DI): Likewise.
2781 (MUL_V2DI): Likewise.
2782 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2783 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
2784 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
2785 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
2786 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
2787 (UNSPEC_VSX_DIVSD): Likewise.
2788 (UNSPEC_VSX_DIVUD): Likewise.
2789 (UNSPEC_VSX_MULSD): Likewise.
2790 (vsx_mul_v2di): New insn-and-split.
2791 (vsx_div_v2di): Likewise.
2792 (vsx_udiv_v2di): Likewise.
2793 (vsx_xxspltd_<mode>): New insn.
2794
2795 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2796
2797 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
2798 NEXT_INSN.
2799 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
2800 (NEXT_INSN): Likewise.
2801 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
2802 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
2803 const rtx_insn *.
2804 (no_labels_between_p): Likewise for both params.
2805
2806 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
2807 cast when using NEXT_INSN on operands[2].
2808 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
2809 "insn" from rtx to rtx_insn *, adding a checked cast.
2810 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
2811 rtx_insn *.
2812 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
2813 for third param.
2814 (arc_text_label): Likewise for param "insn".
2815 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
2816 "insn".
2817 (arc_ccfsm_record_condition): Likewise for param "jump".
2818 (arc_text_label): Likewise for local "label".
2819 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
2820 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
2821 a method for typesafety. Add a checked cast.
2822 * config/arc/constraints.md (Clb): Add a checked cast when getting
2823 the CODE_LABEL from a LABEL_REF.
2824 * config/arm/arm.c (require_pic_register): Strengthen locals
2825 "seq", "insn" from rtx to rtx_insn *.
2826 (create_fix_barrier): Likewise for locals "selected", "next".
2827 (thumb1_reorg): Likewise for locals "prev", "insn".
2828 (arm_expand_prologue): Likewise for local "last".
2829 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
2830 operands[0].
2831 (thumb2_output_casesi): Likewise for operands[2].
2832 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
2833 strengthen local "insn" from rtx to rtx_insn *.
2834 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
2835 type and param "insn".
2836 (find_prev_insn_start): Likewise.
2837 (hwloop_optimize): Likewise for locals "insn", "last_insn",
2838 "prev".
2839 (gen_one_bundle): Likewise for loal "t".
2840 (find_load): Likewise for param "insn".
2841 (workaround_speculation): Likewise for locals "insn", "next",
2842 "target", "next_tgt".
2843 * config/c6x/c6x.c (assign_reservations): Likewise for both params
2844 and for locals "insn", "within", "last".
2845 (count_unit_reqs): Likewise for params "head", "tail" and local
2846 "insn".
2847 (try_rename_operands): Likewise for params "head", "tail".
2848 (reshuffle_units): Likewise for locals "head", "tail", "insn".
2849 (struct c6x_sched_context): Likewise for fields
2850 "last_scheduled_insn", "last_scheduled_iter0".
2851 (init_sched_state): Replace NULL_RTX with NULL.
2852 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
2853 to rtx_insn *.
2854 (undo_split_delayed_nonbranch): Likewise for param and for local
2855 "prev".
2856 (conditionalize_after_sched): Likewise for local "insn".
2857 (bb_earliest_end_cycle): Likewise.
2858 (filter_insns_above): Likewise for locals "insn", "next".
2859 (hwloop_optimize): Remove redundant checked cast.
2860 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
2861 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
2862 NULL_RTX with NULL.
2863 (cris_simple_epilogue): Likewise.
2864 (cris_expand_prologue): Likewise.
2865 (cris_expand_epilogue): Likewise.
2866 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
2867 local "insn" from rtx to rtx_insn *.
2868 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
2869 (struct frv_packet_group): Likewise for the elements within array
2870 fields "insns", "sorted", and for field "nop".
2871 (frv_packet): Likewise for the elements within array field
2872 "insns".
2873 (frv_add_insn_to_packet): Likewise for param "insn".
2874 (frv_insert_nop_in_packet): Likewise for param "insn" and local
2875 "last".
2876 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
2877 (frv_sort_insn_group_1): Likewise for local "insn".
2878 (frv_optimize_membar_local): Likewise.
2879 (frv_align_label): Likewise for locals "x", "last", "barrier",
2880 "label".
2881 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
2882 local.
2883 (ia64_sched_init): Likewise for local "insn".
2884 (scheduled_good_insn): Likewise for param "last".
2885 (struct _ia64_sched_context): Likewise for field
2886 "last_scheduled_insn".
2887 (ia64_init_sched_context): Replace NULL_RTX with NULL.
2888 (struct bundle_state): Likewise for field "insn".
2889 (issue_nops_and_insn): Likewise for param "insn".
2890 (get_next_important_insn): Likewise for return type and both
2891 params.
2892 (ia64_add_bundle_selector_before): Likewise for param "insn".
2893 (bundling): Likewise for params "prev_head_insn", "tail" and
2894 locals "insn", "next_insn", "b". Eliminate top-level local rtx
2895 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
2896 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
2897 Strengthen final param from rtx to rtx_insn *.
2898 (iq2000_move_1word): Likewise for second param.
2899 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
2900 param "cur_insn" and local "next_insn".
2901 (iq2000_move_1word): Likewise for param "insn".
2902 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
2903 casts when using NEXT_INSN on operands[1].
2904 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
2905 "insn" from rtx to rtx_insn *.
2906 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
2907 "x", introducing local rtx_insn * "insn" for when working with the
2908 CODE_LABEL of the LABEL_REF.
2909 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
2910 rtx_insn *.
2911 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
2912 param.
2913 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
2914 type.
2915 (conditionalize_block): Likewise for return type and param.
2916 (mcore_is_dead): Likewise for param "first" and local "insn".
2917 (emit_new_cond_insn): Likewise for return type.
2918 (conditionalize_block): Likewise for return type, param, and
2919 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
2920 "newinsn".
2921 (conditionalize_optimization): Likewise for local "insn".
2922 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
2923 using NEXT_INSN.
2924 * config/microblaze/microblaze.md: Add checked casts when using
2925 NEXT_INSN.
2926 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
2927 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
2928 and rtx_insn * "insn".
2929 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
2930 checked cast when using NEXT_INSN on operands[2].
2931 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
2932 local "insn" from rtx to rtx_insn *.
2933 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
2934 Likewise.
2935 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
2936 Add a checked cast when using NEXT_INSN on operands[1].
2937 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
2938 rtx to rtx_insn *.
2939 (pa_output_cbranch): Likewise for final param.
2940 (pa_output_lbranch): Likewise for second param.
2941 (pa_output_bb): Likewise for third param.
2942 (pa_output_bvb): Likewise.
2943 (pa_output_dbra): Likewise for second param.
2944 (pa_output_movb): Likewise.
2945 (pa_output_parallel_movb): Likewise.
2946 (pa_output_parallel_addb): Likewise.
2947 (pa_output_millicode_call): Likewise for first param.
2948 (pa_output_mul_insn): Likewise for second param.
2949 (pa_output_div_insn): Likewise for third param.
2950 (pa_output_mod_insn): Likewise for second param.
2951 (pa_jump_in_call_delay): Likewise for param.
2952 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
2953 (pa_output_div_insn): Likewise.
2954 (pa_output_mod_insn): Likewise.
2955 (pa_output_cbranch): Likewise.
2956 (pa_output_lbranch): Likewise.
2957 (pa_output_bb): Likewise.
2958 (pa_output_bvb): Likewise.
2959 (pa_output_dbra): Likewise.
2960 (pa_output_movb): Likewise.
2961 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
2962 to simplify and for typesafety.
2963 (pa_output_call): Use method of rtx_sequence *.
2964 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
2965 (pa_jump_in_call_delay): Likewise.
2966 (pa_output_parallel_movb): Likewise.
2967 (pa_output_parallel_addb): Likewise.
2968 (pa_following_call): Likewise.
2969 (pa_combine_instructions): Likewise for locals "anchor",
2970 "floater".
2971 (pa_can_combine_p): Likewise for params "anchor", "floater" and
2972 locals "start", "end".
2973 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
2974 param "insn" and local "local_insn".
2975 (picochip_final_prescan_insn): Likewise for local "local_insn".
2976 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
2977 local "insn".
2978 (uses_TOC): Likewise.
2979 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
2980 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
2981 splitting out to more tightly-scoped locals, 3 as rtx and one as
2982 rtx_insn *.
2983 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
2984 to rtx_insn *.
2985 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
2986 where needed.
2987 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
2988 to rtx_insn *.
2989 (fixup_addr_diff_vecs): Likewise.
2990 (reg_unused_after): Likewise for param 2.
2991 (sh_can_redirect_branch): Likewise for both params.
2992 (check_use_sfunc_addr): Likewise for param 1.
2993 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
2994 (find_barrier): Likewise for local "last_got".
2995 (gen_block_redirect): Likewise for return type, param "jump" and
2996 locals "prev", "scan", "next", "insn".
2997 (struct far_branch): Likewise for fields "near_label",
2998 "insert_place", "far_label".
2999 (gen_far_branch): Likewise for local "jump".
3000 (fixup_addr_diff_vecs): Likewise for param "first" and locals
3001 "insn", "prev".
3002 (barrier_align): Likewise for param and for locals "prev", "x".
3003 Introduce local rtx_sequence * "prev_seq" and use insn method for
3004 typesafety and clarity.
3005 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
3006 (get_dest_uid): Likewise for local "dest".
3007 (split_branches): Likewise for locals "next", "beyond", "label",
3008 "block", "far_label". Add checked casts when assigning to
3009 bp->far_label and "far_label".
3010 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
3011 (sequence_insn_p): Likewise.
3012 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
3013 more loop-scoped rtx "insn" when walking LABEL_REFS.
3014 (sh_can_redirect_branch): Strengthen both params from rtx to
3015 rtx_insn *.
3016 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
3017 new local rtx_sequence * "seq" via a dyn_cast, and use a method
3018 for clarity and typesafety.
3019 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
3020 "insn" from rtx to rtx_insn *.
3021 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
3022 when using NEXT_INSN on the CODE_LABEL in operands[2].
3023 (define_insn "casesi_worker_2"): Likewise.
3024 (define_insn "casesi_shift_media"): Likewise.
3025 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
3026 operands[3].
3027 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
3028 Strengthen field "insn" from rtx to rtx_insn *.
3029 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
3030 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
3031 param "start_insn" and local "start_insn".
3032 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
3033 field "insn".
3034 (find_set_of_reg_bb): Likewise for param "insn".
3035 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
3036 (trace_reg_uses): Likewise for param "start_insn".
3037 (sh_treg_combine::cbranch_trace): Likewise for field
3038 "cbranch_insn".
3039 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
3040 param "insn".
3041 (sh_treg_combine::record_set_of_reg): Likewise for param
3042 "start_insn" and local "i".
3043 (sh_treg_combine::can_remove_cstore): Likewise for local
3044 "prev_insn".
3045 (sh_treg_combine::try_optimize_cbranch): Likewise for param
3046 "insn".
3047 (sh_treg_combine::execute): Likewise for local "i".
3048 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
3049 param.
3050 (sparc_check_64): Likewise for second param.
3051 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
3052 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
3053 dyn_cast, using its insn method for typesafety and clarity.
3054 (empty_delay_slot): Strengthen param "insn" from rtx to
3055 rtx_insn *.
3056 (set_extends): Likewise.
3057 (sparc_check_64): Likewise.
3058 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
3059 for locals "seq", "last_insn".
3060 (combine_bnp): Likewise for param "insn".
3061 (xstormy16_reorg): Likewise for local "insn".
3062 * config/v850/v850.c (substitute_ep_register): Likewise for params
3063 "first_insn", "last_insn" and local "insn".
3064 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
3065 elements of "regs" array, and local "insn".
3066 * except.c (emit_note_eh_region_end): Likewise for param "insn".
3067 * final.c (final_sequence): Strengthen this global from rtx to
3068 rtx_sequence *.
3069 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
3070 rtx_insn *.
3071 (final_scan_insn): Update assignment to "final_sequence" to be
3072 from "seq", the cast version of "body", for type-safety.
3073 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
3074 "insns" from rtx to rtx_insn *.
3075 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
3076 * genattr.c (main): When writing out generated insn-attr.h,
3077 strengthen params 1 and 3 of eligible_for_delay,
3078 eligible_for_annul_true, eligible_for_annul_false from rtx to
3079 rtx_insn *.
3080 * genattrtab.c (write_eligible_delay): Likewise when writing out
3081 generated insn-attrtab.c; also local "insn" the generated
3082 functions.
3083 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
3084 to rtx_insn *.
3085 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
3086 "start_label" from rtx to rtx_insn *.
3087 * ira.c (decrease_live_ranges_number): Likewise for local "p".
3088 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
3089 "insns" and local "insn".
3090 (validate_equiv_mem): Likewise for param "start" and local "insn".
3091 (memref_used_between_p): Likewise for params "start", "end" and
3092 local "insn".
3093 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
3094 final param.
3095 * loop-doloop.c (doloop_optimize): Within region guarded by
3096 INSN_P (doloop_pat), introduce a new local rtx_insn *
3097 "doloop_insn" via a checked cast, and use it for typesafety,
3098 eventually writing the value back into doloop_pat.
3099 * output.h (final_sequence): Strengthen this global from rtx to
3100 rtx_sequence *.
3101 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
3102 reintroducing "insn" as an rtx_insn * via a checked cast.
3103 Strengthen param "attempt" and local "new_insn"from rtx to
3104 rtx_insn *.
3105 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
3106 to rtx_insn *.
3107 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
3108 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
3109 "p" in favor of more tightly-scoped replacements, sometimes rtx
3110 and sometimes rtx_insn *, as appropriate.
3111 (delete_output_reload): Eliminate top-level rtx "i1", splitting
3112 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
3113 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
3114 local "trial" from rtx to rtx_insn *.
3115 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
3116 rtx to rtx_insn *. Strenghten local "pat" from rtx to
3117 rtx_sequence * and use methods for clarity and typesafety.
3118 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
3119 rtx to rtx_insn *. Strenghten local "li" from rtx to
3120 rtx_insn_list * and use its methods for clarity and typesafety.
3121 (steal_delay_list_from_target): Strengthen param "insn" from rtx
3122 to rtx_insn *.
3123 (steal_delay_list_from_fallthrough): Likewise.
3124 (try_merge_delay_insns): Likewise for param "thread" and locals
3125 "trial", "next_trial", "delay_insn".
3126 (redundant_insn): Likewise for param "target" and local "trial".
3127 (own_thread_p): Likewise for param "thread" and locals
3128 "active_insn", "insn".
3129 (get_label_before): Likewise for param "insn".
3130 (fill_simple_delay_slots): Likewise for local "new_label"; use
3131 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
3132 (label_before_next_insn): Strengthen return type and local "insn"
3133 from rtx to rtx_insn *.
3134 (relax_delay_slots): Likewise for locals "other", "tmp".
3135 (make_return_insns): Likewise for param "first" and locals "insn",
3136 "jump_insn", "prev". Move declaration of "pat" to its assignment
3137 and strengthen from rtx to rtx_sequence *. Use its methods for
3138 clarity and typesafety.
3139 * rtlanal.c (no_labels_between_p): Strengthen params from
3140 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
3141 rtx_insn *.
3142 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
3143 from const_rtx to const rtx_insn *.
3144 (reg_set_between_p): Rename param "from_insn" to
3145 "uncast_from_insn", and reintroduce "from_insn" as a
3146 const rtx_insn * via a checked cast.
3147 (modified_between_p): Likewise for param "start" as "uncast_start".
3148 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
3149 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
3150 "tmp", head" from rtx to rtx_insn *.
3151 (recompute_rev_top_order): Likewise for local "insn".
3152 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
3153 * store-motion.c (build_store_vectors): Likewise for local "insn".
3154 Strengthen local "st" from rtx to rtx_insn_list * and use methods
3155 for clarity and typesafety.
3156 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
3157 rtx to rtx_insn *.
3158 (computation_cost): Likewise for local "seq".
3159 (get_address_cost): Likewise.
3160
3161 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3162
3163 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
3164 const rtx_insn *.
3165 (label_is_jump_target_p): Likewise for second param.
3166
3167 * rtlanal.c (tablejump_p): Likewise for param "insn".
3168 (label_is_jump_target_p): Likewise for param "jump_insn".
3169
3170 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3171
3172 * rtl.h (find_first_parameter_load): Strengthen return type and
3173 both params from rtx to rtx_insn *.
3174 * rtlanal.c (find_first_parameter_load): Strengthen return type,
3175 both params and locals "before", "first_set" from rtx to
3176 rtx_insn *. Remove now-redundant cast.
3177 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
3178
3179 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3180
3181 * rtl.h (find_last_value): Delete.
3182 * rtlanal.c (find_last_value): Delete.
3183
3184 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3185
3186 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
3187 from rtx to rtx_insn *.
3188 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
3189 rtx "note" with new local rtx_insn * "new_head" when calculating
3190 head insn of new basic block.
3191 * combine.c (combine_split_insns): Strengthen return type and local
3192 "ret" from rtx to rtx_insn *.
3193 (likely_spilled_retval_p): Likewise for locals "use" and "p".
3194 (try_combine): Eliminate local "m_split", splitting into new
3195 locals "m_split_insn" and "m_split_pat".
3196 (find_split_point): Strengthen local "seq" from rtx into
3197 rtx_insn *.
3198 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
3199 locals "label", "branch".
3200 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
3201 for local "insn".
3202 (define_expand "umulsi3_highpart"): Likewise for local "insn".
3203 * dse.c (note_add_store_info): Likewise for fields "first",
3204 "current".
3205 (note_add_store): Likewise for local "insn".
3206 (emit_inc_dec_insn_before): Likewise for locals "insn",
3207 "new_insn", "cur".
3208 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
3209 (replace_read): Likewise for locals "insns", "this_insn".
3210 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
3211 (notice_eh_throw): Likewise for param "insn".
3212 (before_next_cfi_note): Likewise for return type, param, and local
3213 "prev".
3214 (connect_traces): Likewise for local "note".
3215 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
3216 (verify_rtl_sharing): Likewise.
3217 (unshare_all_rtl_in_chain): Likewise for param "insn".
3218 (get_first_nonnote_insn): Likewise for local "insn".
3219 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
3220 "seq" and use its methods to clarify things.
3221 (next_insn): Strengthen return type from rtx to rtx_insn *.
3222 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
3223 local rtx_insn * using a checked cast, dropping a checked cast
3224 made redundant by this change. Use a cast to and method of
3225 rtx_sequence to clarify the code.
3226 (previous_insn): Rename param "insn" to "uncast_insn" and
3227 reintroduce "insn" as a local rtx_insn * using a checked cast,
3228 dropping a checked cast made redundant by this change. Use a cast
3229 to and method of rtx_sequence to clarify the code.
3230 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
3231 reintroduce "insn" as a local rtx_insn * using a checked cast,
3232 dropping a checked cast made redundant by this change.
3233 (next_nonnote_insn_bb): Likewise.
3234 (prev_nonnote_insn): Likewise.
3235 (prev_nonnote_insn_bb): Likewise.
3236 (next_nondebug_insn): Likewise.
3237 (prev_nondebug_insn): Likewise.
3238 (next_nonnote_nondebug_insn): Likewise.
3239 (prev_nonnote_nondebug_insn): Likewise.
3240 (next_real_insn): Likewise.
3241 (prev_real_insn): Likewise.
3242 (next_active_insn): Likewise.
3243 (prev_active_insn): Likewise.
3244 (next_cc0_user): Likewise. Use rtx_sequence and a method for
3245 clarity.
3246 (prev_cc0_setter): Likewise.
3247 (try_split): Rename param "trial" to "uncast_trial" and
3248 reintroduce "insn" as a local rtx_insn * using a checked cast,
3249 dropping checked casts made redundant by this change.
3250 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
3251 rtx to rtx_insn *.
3252 (remove_insn): Rename param "insn" to "uncast_insn" and
3253 reintroduce "insn" as a local rtx_insn * using a checked cast.
3254 (emit_pattern_after_setloc): Likewise for param "after", as
3255 "uncast_after".
3256 (emit_pattern_after): Likewise. Strengthen local "prev" from
3257 rtx to rtx_insn *.
3258 (emit_pattern_before_setloc): Rename param "before" to
3259 "uncast_before" and reintroduce "before" as a local rtx_insn *
3260 using a checked cast. Strengthen locals "first", "last" from
3261 rtx to rtx_insn *.
3262 (emit_pattern_before): Likewise rename/cast param "before" to
3263 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
3264 * except.c (copy_reg_eh_region_note_forward): Strengthen param
3265 "first" and local "insn" from rtx to rtx_insn *.
3266 (copy_reg_eh_region_note_backward): Likewise for param "last"
3267 and local "insn".
3268 * expr.c (fixup_args_size_notes): Rename param "last" to
3269 "uncast_last" and reintroduce "last" as a local rtx_insn *
3270 using a checked cast. Strengthen local "insn" from rtx to
3271 rtx_insn *.
3272 * function.c (set_insn_locations): Strengthen param "insn" from
3273 rtx to rtx_insn *.
3274 (record_insns): Likewise for param "insns" and local "tmp".
3275 (active_insn_between): Rename param "tail" to
3276 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
3277 using a checked cast.
3278 (thread_prologue_and_epilogue_insns): Split out top-level local
3279 rtx "seq" into three different rtx_insn * locals. Strengthen
3280 local "prologue_seq" from rtx to rtx_insn *.
3281 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
3282 from rtx to rtx_insn *.
3283 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
3284 (priority): Likewise for locals "prev_first", "twin".
3285 (setup_insn_max_reg_pressure): Likewise for param "after".
3286 (sched_setup_bb_reg_pressure_info): Likewise.
3287 (no_real_insns_p): Strengthen params from const_rtx to
3288 const rtx_insn *.
3289 (schedule_block): Strengthen local "next_tail" from rtx to
3290 rtx_insn *.
3291 * ifcvt.c (find_active_insn_before): Strengthen return type and
3292 param "insn" from rtx to rtx_insn *.
3293 (find_active_insn_after): Likewise.
3294 (cond_exec_process_insns): Likewise for param "start" and local "insn".
3295 (cond_exec_process_if_block): Likewise for locals "then_start",
3296 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
3297 (noce_process_if_block): Likewise for local "jump".
3298 (merge_if_block): Likewise for two locals named "end".
3299 (cond_exec_find_if_block): Likewise for local "last_insn".
3300 * jump.c (delete_related_insns): Rename param "insn" to
3301 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
3302 checked cast. Strengthen local "p" from rtx to rtx_insn *.
3303 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
3304 NULL.
3305 (split_reg): Likewise.
3306 * lra.c (lra_process_new_insns): Likewise.
3307 * modulo-sched.c (permute_partial_schedule): Strengthen param
3308 "last" from rtx to rtx_insn *.
3309 * optabs.c (add_equal_note): Likewise for param "insns" and local
3310 "last_insn".
3311 (expand_binop_directly): Add checked casts to rtx_insn * within
3312 NEXT_INSN (pat) uses.
3313 (expand_unop_direct): Likewise.
3314 (maybe_emit_unop_insn): Likewise.
3315 * recog.c (peep2_attempt): Strengthen locals "last",
3316 "before_try", "x" from rtx to rtx_insn *.
3317 * reorg.c (optimize_skip): Strengthen return type and local
3318 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
3319 and locals "trial", "next_trial" from rtx to rtx_insn *.
3320 * resource.c (next_insn_no_annul): Strengthen return type and
3321 param "insn" from rtx to rtx_insn *. Use a cast to and method of
3322 rtx_sequence to clarify the code.
3323 (mark_referenced_resources): Add a checked cast to rtx_insn *
3324 within PREV_INSN (x).
3325 (find_dead_or_set_registers): Strengthen return type, param
3326 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
3327 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
3328 to rtx_insn **.
3329 (mark_target_live_regs): Strengthen params "insns" and "target",
3330 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
3331 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
3332 the code.
3333 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
3334 from rtx to rtx_insn *.
3335 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
3336 from rtx to rtx_insn *.
3337 (copy_reg_eh_region_note_backward): Likewise.
3338 (unshare_all_rtl_in_chain): Likewise for sole param.
3339 (dump_rtl_slim): Strengthen second and third params from const_rtx
3340 to const rtx_insn *.
3341 * sched-deps.c (sched_free_deps): Strengthen params "head" and
3342 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
3343 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
3344 "next_tail" from rtx to rtx_insn *.
3345 (begin_move_insn): Likewise for local "next".
3346 * sched-int.h (sched_free_deps): Likewise for first and second
3347 params.
3348 (no_real_insns_p): Strengthen both params from const_rtx to
3349 const rtx_insn *.
3350 (sched_setup_bb_reg_pressure_info): Strengthen second params from
3351 rtx to rtx_insn *.
3352 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
3353 "next_tail".
3354 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
3355 and locals "insn", "tail" from const_rtx to const rtx_insn *.
3356 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
3357 rtx_insn *.
3358 (debug_rtl_slim): Strengthen params "first" and "last" from
3359 const_rtx to const rtx_insn *.
3360 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
3361 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
3362 (convert_to_simple_return): Likewise for param "returnjump".
3363 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
3364 "prologue_seq".
3365 (convert_to_simple_return): Likewise for param "returnjump".
3366 * valtrack.c (propagate_for_debug): Likewise for params
3367 "insn", "last".
3368 * valtrack.h (propagate_for_debug): Likewise for second param.
3369
3370 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3371
3372 * output.h (insn_current_reference_address): Strengthen param
3373 from rtx to rtx_insn *.
3374 * final.c (insn_current_reference_address): Likewise.
3375
3376 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3377
3378 * basic-block.h (inside_basic_block_p): Strengthen param from
3379 const_rtx to const rtx_insn *.
3380 * cfgbuild.c (inside_basic_block_p): Likewise.
3381
3382 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3383
3384 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
3385 rtx_insn *.
3386 (get_trace_info): Likewise for param "insn".
3387 (save_point_p): Likewise.
3388 (maybe_record_trace_start): Likewise for both params.
3389 (maybe_record_trace_start_abnormal): Likewise.
3390 (create_trace_edges): Likewise for sole param and for three of the
3391 locals named "lab".
3392 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
3393 to rtx_insn *, and update a call to pat->element to pat->insn.
3394
3395 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3396
3397 * function.h (struct expr_status): Convert field "x_forced_labels"
3398 from rtx_expr_list * to rtx_insn_list *.
3399
3400 * cfgbuild.c (make_edges): Convert local "x" from an
3401 rtx_expr_list * to an rtx_insn_list *, replacing use of
3402 "element" method with "insn" method.
3403 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3404 * except.c (sjlj_emit_dispatch_table): Replace use of
3405 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
3406 forced_labels.
3407 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
3408 rtx_expr_list * to an rtx_insn_list *, replacing use of
3409 "element" method with "insn" method.
3410 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3411 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
3412 rtx_insn *, adding a checked cast. Replace use of
3413 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
3414 forced_labels.
3415 (expand_label): Likewise for local "label_r".
3416
3417 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3418
3419 * function.h (struct rtl_data): Convert field
3420 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
3421 rtx_insn_list *.
3422 * rtl.h (remove_node_from_insn_list): New prototype.
3423
3424 * builtins.c (expand_builtin): When prepending to
3425 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
3426 gen_rtx_EXPR_LIST.
3427 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
3428 to rtx_insn_list *, and use its "insn" method rather than
3429 "element" method.
3430 * cfgrtl.c (delete_insn): Use new function
3431 remove_node_from_insn_list rather than
3432 remove_node_from_expr_list.
3433 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
3434 to rtx_insn_list *, and use its "insn" method rather than
3435 "element" method.
3436 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3437 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3438 * rtlanal.c (remove_node_from_insn_list): New function, adapted
3439 from remove_node_from_expr_list.
3440 * stmt.c (expand_label): When prepending to
3441 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
3442 gen_rtx_EXPR_LIST.
3443
3444 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3445
3446 * function.h (struct rtl_data): Strengthen fields "x_return_label"
3447 and "x_naked_return_label" from rtx to rtx_code_label *.
3448
3449 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3450
3451 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
3452 (SET_NEXT_INSN): Likewise.
3453 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
3454
3455 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
3456 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
3457 to split out the SEQUENCE from local "bundle", strengthening the
3458 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
3459 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
3460 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
3461 and the type of the elements of the "slot" array from rtx to
3462 rtx_insn *.
3463 (reorg_split_calls): Likewise for locals "insn" and "next", and
3464 the type of the elements of the "slot" array.
3465
3466 * config/frv/frv.c (frv_nops): Likewise for the elements of this
3467 array.
3468 (frv_function_prologue): Likewise for locals "insn", "next",
3469 "last_call".
3470 (frv_register_nop): Introduce a local "nop_insn" to be the
3471 rtx_insn * containing rtx "nop".
3472
3473 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
3474 used as an insn and sometimes as a pattern, so rename it to
3475 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
3476 using it where dealing with the core insn.
3477
3478 * config/picochip/picochip.c (reorder_var_tracking_notes):
3479 Strengthen locals "insn", "next", "last_insn", "queue",
3480 "next_queue", "prev" from rtx to rtx_insn *.
3481
3482 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
3483 the second param is an rtx_insn ** rather than an rtx **.
3484 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
3485 from rtx to rtx_sequence *, and introduce local named "sequence",
3486 using methods of rtx_sequence to clarify the code.
3487 (remove_insn): Introduce local rtx_sequence * named "sequence" and
3488 use its methods.
3489 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
3490 Rename param "after" to "uncast_after", reintroducing "after" as a
3491 local rtx_insn * with a checked cast.
3492 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
3493 reintroducing "after" as a local rtx_insn * with a checked cast.
3494 Strengthen local "last" from rtx to rtx_insn * and remove the
3495 now-redundant checked casts.
3496 (copy_delay_slot_insn): Strengthen return type and param from rtx
3497 to rtx_insn *.
3498
3499 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
3500 "last" from rtx to rtx_insn *.
3501
3502 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3503
3504 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
3505 param from rtx to rtx_insn *.
3506
3507 * emit-rtl.c (copy_delay_slot_insn): Likewise.
3508
3509 * reorg.c (skip_consecutive_labels): Strengthen return type, param
3510 and local "insn" from rtx to rtx_insn *.
3511 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
3512 (unfilled_slots_next): Likewise.
3513 (function_return_label): Strengthen from rtx to rtx_code_label *.
3514 (function_simple_return_label): Likewise.
3515 (first_active_target_insn): Strengthen return type and param from
3516 rtx to rtx_insn *.
3517 (find_end_label): Strengthen return type from rtx to
3518 rtx_code_label *; strengthen locals as appropriate.
3519 (emit_delay_sequence): Strengthen return type, param "insn" and
3520 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
3521 and local "li" from rtx to rtx_insn_list *, using methods of
3522 rtx_insn_list for clarity and typesafety.
3523 (add_to_delay_list): Strengthen return type and param "insn" from
3524 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
3525 rtx_insn_list * and use methods of rtx_insn_list.
3526 (delete_from_delay_slot): Strengthen return type, param "insn",
3527 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
3528 Strengthen local "seq" from rtx to rtx_sequence *, and local
3529 "delay_list" from rtx to rtx_insn_list *, using methods of
3530 rtx_sequence for clarity and type-safety.
3531 (delete_scheduled_jump): Add checked cast when invoking
3532 delete_from_delay_slot. Strengthen local "trial" from rtx to
3533 rtx_insn *.
3534 (optimize_skip): Strengthen return type and local "delay_list"
3535 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
3536 rtx_insn *.
3537 (steal_delay_list_from_target): Strengthen return type, param
3538 "delay_list" and local "new_delay_list" from rtx to
3539 rtx_insn_list *. Strengthen param "seq" from rtx to
3540 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
3541 rtx_insn **.
3542 Split out local "temp" into multiple more-tightly scoped locals:
3543 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
3544 of rtx_insn_list and rtx_sequence for clarity and typesafety.
3545 Strengthen locals named "trial" from rtx to rtx_insn *.
3546 (steal_delay_list_from_fallthrough): Strengthen return type and
3547 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
3548 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
3549 Strengthen local "trial" from rtx to rtx_insn *.
3550 (try_merge_delay_insns): Strength local "merged_insns" from rtx
3551 to rtx_insn_list * and use its methods. Strengthen local "pat"
3552 from rtx to rtx_sequence * and use its methods. Strengthen locals
3553 "dtrial" and "new_rtx" from rtx to rtx_insn *.
3554 (get_label_before): Strengthen return type and local "label" from
3555 rtx to rtx_insn *.
3556 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
3557 "next_trial", "next", prev". Strengthen local "delay_list" from
3558 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
3559 rtx_insn **.
3560 (follow_jumps): Strengthen return type, param "label" and locals
3561 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
3562 (fill_slots_from_thread): Strengthen return type, param
3563 "delay_list" from rtx to rtx_insn_list *. Strengthen params
3564 "insn", "thread", "opposite_thread" and locals "new_thread",
3565 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
3566 "sequence" from a checked cast to rtx_sequence so that we can call
3567 steal_delay_list_from_target and steal_delay_list_from_fallthrough
3568 with an rtx_sequence *.
3569 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
3570 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
3571 Strengthen local "delay_list" from rtx to rtx_insn_list *.
3572 (relax_delay_slots): Strengthen param "first" and locals "insn",
3573 "next", "trial", "delay_insn", "target_label" from rtx to
3574 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
3575 Introduce a local "trial_seq" for PATTERN (trial) of type
3576 rtx_sequence *, in both cases using methods of rtx_sequence.
3577 (dbr_schedule): Strengthen param "first" and locals "insn",
3578 "next", "epilogue_insn" from rtx to rtx_insn *.
3579
3580 2014-08-28 Richard Biener <rguenther@suse.de>
3581
3582 PR tree-optimization/62283
3583 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3584 Do not peel loops for alignment where the vector loop likely
3585 doesn't run at least VF times.
3586
3587 2014-08-28 Bin Cheng <bin.cheng@arm.com>
3588
3589 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
3590 important_candidates. Consider all important candidates if
3591 IVS doesn't give any result. Remove check on ivs->upto.
3592 (try_add_cand_for): Call iv_ca_add_use only once.
3593
3594 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3595 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3596 Anna Tikhonova <anna.tikhonova@intel.com>
3597 Ilya Tocar <ilya.tocar@intel.com>
3598 Andrey Turetskiy <andrey.turetskiy@intel.com>
3599 Ilya Verbin <ilya.verbin@intel.com>
3600 Kirill Yukhin <kirill.yukhin@intel.com>
3601 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3602
3603 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
3604 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
3605 masking.
3606 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
3607 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
3608 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
3609 (define_insn "*mul<mode>3"): Add EVEX version.
3610
3611 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3612 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3613 Anna Tikhonova <anna.tikhonova@intel.com>
3614 Ilya Tocar <ilya.tocar@intel.com>
3615 Andrey Turetskiy <andrey.turetskiy@intel.com>
3616 Ilya Verbin <ilya.verbin@intel.com>
3617 Kirill Yukhin <kirill.yukhin@intel.com>
3618 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3619
3620 * config/i386/sse.md
3621 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
3622 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
3623 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
3624 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
3625 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
3626 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
3627 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
3628 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
3629 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
3630 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
3631 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
3632 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
3633 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
3634 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
3635 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
3636 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
3637
3638 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3639 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3640 Anna Tikhonova <anna.tikhonova@intel.com>
3641 Ilya Tocar <ilya.tocar@intel.com>
3642 Andrey Turetskiy <andrey.turetskiy@intel.com>
3643 Ilya Verbin <ilya.verbin@intel.com>
3644 Kirill Yukhin <kirill.yukhin@intel.com>
3645 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3646
3647 * config/i386/sse.md
3648 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
3649 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
3650 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
3651
3652 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3653 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3654 Anna Tikhonova <anna.tikhonova@intel.com>
3655 Ilya Tocar <ilya.tocar@intel.com>
3656 Andrey Turetskiy <andrey.turetskiy@intel.com>
3657 Ilya Verbin <ilya.verbin@intel.com>
3658 Kirill Yukhin <kirill.yukhin@intel.com>
3659 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3660
3661 * config/i386/sse.md
3662 (define_mode_iterator VI128_256): New.
3663 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
3664
3665 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3666 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3667 Anna Tikhonova <anna.tikhonova@intel.com>
3668 Ilya Tocar <ilya.tocar@intel.com>
3669 Andrey Turetskiy <andrey.turetskiy@intel.com>
3670 Ilya Verbin <ilya.verbin@intel.com>
3671 Kirill Yukhin <kirill.yukhin@intel.com>
3672 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3673
3674 * config/i386/sse.md
3675 (define_mode_iterator VI8_256_512): New.
3676 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
3677 Ditto.
3678 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
3679 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
3680 Ditto.
3681 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
3682
3683 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3684
3685 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
3686 pointer to the cumulative reloc value and return the value for
3687 this reloc instead.
3688 (compute_reloc_for_rtx): Take a const_rtx. Call
3689 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
3690 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
3691 for_each_rtx for the CONST case.
3692
3693 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3694
3695 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
3696 (mark_constants_in_pattern): ...this new function to iterate over
3697 all the subrtxes.
3698 (mark_constants): Update accordingly.
3699
3700 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3701
3702 * varasm.c: Include rtl-iter.h.
3703 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
3704 Remove the pointer to the cumulative hashval_t and just return
3705 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
3706 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3707 Accumulate the hashval_ts here instead of const_rtx_hash_1.
3708
3709 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3710
3711 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
3712 Give real type of data parameter. Remove return value.
3713 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
3714 to iterate over subrtxes.
3715
3716 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3717
3718 * var-tracking.c (use_narrower_mode_test): Turn from being a
3719 for_each_rtx callback to being a function that examines each
3720 subrtx itself.
3721 (adjust_mems): Update accordingly.
3722
3723 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3724
3725 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
3726 callback to being a function that examines each subrtx itself.
3727 Remove handling of null rtxes.
3728 (add_uses): Update accordingly.
3729
3730 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3731
3732 * var-tracking.c: Include rtl-iter.h.
3733 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
3734 to being a function that examines each subrtx itself.
3735 (use_type): Update accordingly.
3736
3737 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3738
3739 * store-motion.c: Include rtl-iter.h.
3740 (extract_mentioned_regs_1): Delete.
3741 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
3742 for_each_rtx to iterate over subrtxes.
3743
3744 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3745
3746 * sel-sched.c: Include rtl-iter.h
3747 (count_occurrences_1): Delete.
3748 (count_occurrences_equiv): Turn rtxes into const_rtxes.
3749 Use FOR_EACH_SUBRTX rather than for_each_rtx.
3750
3751 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3752
3753 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
3754 * rtlanal.c (tls_referenced_p_1): Delete.
3755 (tls_referenced_p): Take a const_rtx rather than an rtx.
3756 Use FOR_EACH_SUBRTX rather than for_each_rtx.
3757
3758 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3759
3760 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
3761 (for_each_inc_dec): Take an rtx rather than an rtx *.
3762 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
3763 (cselib_record_sets): Likewise.
3764 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
3765 (check_for_inc_dec): Likewise.
3766 * rtlanal.c (for_each_inc_dec_ops): Delete.
3767 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
3768 rather than a pointer to the memory address. Replace
3769 for_each_inc_dec_ops argument with separate function and data
3770 arguments. Abort on non-autoinc addresses.
3771 (for_each_inc_dec_find_mem): Delete.
3772 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
3773 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
3774
3775 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3776
3777 * rtl.h (find_all_hard_regs): Declare.
3778 * rtlanal.c (find_all_hard_regs): New function.
3779 (record_hard_reg_uses_1): Delete.
3780 (record_hard_reg_uses): Use find_all_hard_regs.
3781
3782 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3783
3784 * rtl.h (replace_label_data): Delete.
3785 (replace_label): Take the old label, new label and update-nuses flag
3786 as direct arguments. Return void.
3787 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
3788 * rtlanal.c (replace_label): Update interface as above. Handle
3789 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
3790 iterator. Use FOR_EACH_SUBRTX_PTR.
3791
3792 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3793
3794 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
3795 with const_rtx parameters.
3796 * varasm.c (get_pool_constant): Likewise.
3797 * rtlanal.c (rtx_referenced_p_1): Delete.
3798 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3799 Assert that the rtx we're looking for is nonnull. Allow searches
3800 for constant pool SYMBOL_REFs.
3801
3802 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3803
3804 * reload1.c: Include rtl-iter.h.
3805 (note_reg_elim_costly): Turn from being a for_each_rtx callback
3806 to being a function that examines each subrtx itself.
3807 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
3808
3809 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3810
3811 * regcprop.c (cprop_find_used_regs_1): Delete.
3812 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3813
3814 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3815
3816 * regcprop.c: Include rtl-iter.h.
3817 (kill_value): Take a const_rtx.
3818 (kill_autoinc_value): Turn from being a for_each_rtx callback
3819 to being a function that examines each subrtx itself.
3820 (copyprop_hardreg_forward_1): Update accordingly.
3821
3822 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3823
3824 * reg-stack.c: Include rtl-iter.h.
3825 (subst_stack_regs_in_debug_insn): Delete.
3826 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
3827 instead of for_each_rtx.
3828
3829 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3830
3831 * lower-subreg.c (find_decomposable_subregs): Turn from being
3832 a for_each_rtx callback to being a function that examines each
3833 subrtx itself. Remove handling of null rtxes.
3834 (decompose_multiword_subregs): Update accordingly.
3835
3836 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3837
3838 * lower-subreg.c (adjust_decomposed_uses): Delete.
3839 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
3840 Remove handling of null rtxes.
3841
3842 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3843
3844 * lower-subreg.c: Include rtl-iter.h.
3845 (resolve_subreg_use): Turn from being a for_each_rtx callback
3846 to being a function that examines each subrtx itself. Remove
3847 handling of null rtxes.
3848 (resolve_reg_notes, resolve_simple_move): Update accordingly.
3849 (decompose_multiword_subregs): Likewise.
3850
3851 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3852
3853 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
3854 to being a function that examines each subrtx itself.
3855 (simplify_using_condition, simplify_using_initial_values): Update
3856 accordingly.
3857
3858 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3859
3860 * loop-iv.c: Include rtl-iter.h.
3861 (find_single_def_src): New function.
3862 (replace_single_def_regs): Turn from being a for_each_rtx callback
3863 to being a function that examines each subrtx itself.
3864 (replace_in_expr, simplify_using_initial_values): Update accordingly.
3865
3866 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3867
3868 * jump.c (eh_returnjump_p_1): Delete.
3869 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3870 Remove handling of null rtxes.
3871
3872 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3873
3874 * jump.c: Include rtl-iter.h.
3875 (returnjump_p_1): Delete.
3876 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3877 Remove handling of null rtxes.
3878
3879 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3880
3881 * ira.c: Include rtl-iter.h.
3882 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
3883 to being a function that examines each subrtx itself. Remove
3884 handling of null rtxes.
3885 (update_equiv_regs): Update call accordingly.
3886
3887 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3888
3889 * fwprop.c: Include rtl-iter.h.
3890 (varying_mem_p): Turn from being a for_each_rtx callback to being
3891 a function that examines each subrtx itself.
3892 (propagate_rtx): Update accordingly.
3893
3894 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3895
3896 * function.c: Include rtl-iter.h
3897 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
3898 callback to being a function that examines each subrtx itself.
3899 Return the changed flag.
3900 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
3901 (instantiate_virtual_regs): Update calls accordingly.
3902
3903 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3904
3905 * final.c: Include rtl-iter.h.
3906 (mark_symbol_ref_as_used): Delete.
3907 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
3908 for_each_rtx.
3909
3910 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3911
3912 * emit-rtl.c: Include rtl-iter.h.
3913 (find_auto_inc): Turn from being a for_each_rtx callback to being
3914 a function that examines each subrtx itself. Assume the first operand
3915 to an RTX_AUTOINC is the automodified register.
3916 (try_split): Update call accordingly.
3917
3918 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3919
3920 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
3921 Return a bool, inverting the result so that 0/false means "not ok".
3922 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
3923 subrtxes of a CONST.
3924 (mem_loc_descriptor, add_const_value_attribute)
3925 (resolve_addr_in_expr): Update calls accordingly.
3926
3927 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3928
3929 * dwarf2out.c: Include rtl-iter.h.
3930 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
3931 Remove unused data parameter. Return a bool, inverting the result
3932 so that 0/false means "not ok".
3933 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
3934 instead of for_each_rtx.
3935
3936 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3937
3938 * dse.c: Include rtl-iter.h.
3939 (check_mem_read_rtx): Change void * parameter to real type.
3940 Remove return value.
3941 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
3942 for_each_rtx. Don't handle null rtxes.
3943
3944 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3945
3946 * df-problems.c: Include rtl-iter.h.
3947 (find_memory): Turn from being a for_each_rtx callback to being
3948 a function that examines each subrtx itself. Continue to look for
3949 volatile references even after a nonvolatile one has been found.
3950 (can_move_insns_across): Update calls accordingly.
3951
3952 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3953
3954 * ddg.c (walk_mems_2, walk_mems_1): Delete.
3955 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
3956 to iterate over subrtxes. Return a bool rather than an int.
3957
3958 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3959
3960 * ddg.c: Include rtl-iter.h.
3961 (mark_mem_use_1): Rename to...
3962 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
3963 instead of for_each_rtx.
3964 (mem_read_insn_p): Update accordingly.
3965
3966 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3967
3968 * cse.c (change_cc_mode_args): Delete.
3969 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
3970 a function that examines each subrtx itself. Take the fields of
3971 change_cc_mode_args as argument and return void.
3972 (cse_change_cc_mode_insn): Update calls accordingly.
3973
3974 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3975
3976 * cse.c (is_dead_reg): Change argument to const_rtx.
3977 (dead_debug_insn_data): Delete.
3978 (is_dead_debug_insn): Expand commentary. Turn from being a
3979 for_each_rtx callback to being a function that examines
3980 each subrtx itself. Take the fields of dead_debug_insn_data
3981 as argument.
3982 (delete_trivially_dead_insns): Update call accordingly.
3983
3984 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3985
3986 * cse.c (check_for_label_ref): Move earlier in file. Turn from
3987 being a for_each_rtx callback to being a function that examines
3988 each subrtx itself.
3989 (cse_extended_basic_block): Update call accordingly.
3990
3991 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3992
3993 * cse.c (check_dependence_data): Delete.
3994 (check_dependence): Change from being a for_each_rtx callback to being
3995 a function that examines all subrtxes itself. Don't handle null rtxes.
3996 (invalidate): Update call accordingly.
3997
3998 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3999
4000 * cse.c: Include rtl-iter.h.
4001 (approx_reg_cost_1): Delete.
4002 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4003 Don't handle null rtxes.
4004
4005 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4006
4007 * cfgcleanup.c: Include rtl-iter.h.
4008 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
4009 to being a function that examines each subrtx itself.
4010 (thread_jump): Update accordingly.
4011
4012 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4013
4014 * combine-stack-adj.c: Include rtl-iter.h.
4015 (record_stack_refs_data): Delete.
4016 (record_stack_refs): Turn from being a for_each_rtx callback
4017 to being a function that examines each subrtx itself.
4018 Take a pointer to the reflist. Invert sense of return value
4019 so that true means success and false means failure. Don't
4020 handle null rtxes.
4021 (combine_stack_adjustments_for_block): Update accordingly.
4022
4023 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4024
4025 * combine.c (record_truncated_value): Turn from being a for_each_rtx
4026 callback to a function that takes an rtx and returns a bool
4027 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
4028 for_each_rtx.
4029
4030 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4031
4032 * combine.c: Include rtl-iter.h.
4033 (unmentioned_reg_p_1): Delete.
4034 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
4035 Don't handle null rtxes.
4036
4037 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4038
4039 * calls.c: Include rtl-iter.h.
4040 (internal_arg_pointer_based_exp_1): Delete.
4041 (internal_arg_pointer_based_exp): Take a const_rtx.
4042 Use FOR_EACH_SUBRTX to iterate over subrtxes.
4043
4044 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4045
4046 * caller-save.c: Include rtl-iter.h.
4047 (add_used_regs_1): Delete.
4048 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
4049 to iterate over subrtxes. Assert that any remaining pseudos
4050 have been spilled.
4051
4052 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4053
4054 * bt-load.c: Include rtl-iter.h.
4055 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
4056 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
4057 to iterate over subrtxes.
4058 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
4059 find_btr_use rather than btr_referenced_p.
4060
4061 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4062
4063 * alias.c: Include rtl-iter.h.
4064 (refs_newer_value_cb): Delete.
4065 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4066
4067 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4068
4069 * rtl-iter.h: New file.
4070 * rtlanal.c: Include it.
4071 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
4072 (generic_subrtx_iterator <T>::add_single_to_queue)
4073 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
4074 (generic_subrtx_iterator <T>::free_array): New functions.
4075 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
4076 (generic_subrtx_iterator <const_rtx_accessor>)
4077 (generic_subrtx_iterator <rtx_var_accessor>
4078 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
4079 (setup_reg_subrtx_bounds): New function.
4080 (init_rtlanal): Call it.
4081
4082 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
4083
4084 PR target/62261
4085 * config/sh/sh.md (ashlsi3): Handle negative shift count for
4086 TARGET_SHMEDIA.
4087 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
4088
4089 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
4090
4091 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
4092
4093 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4094
4095 * rtl.h (JUMP_LABEL_AS_INSN): New.
4096
4097 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4098
4099 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
4100 rtx_expr_list **.
4101 (alloc_EXPR_LIST): Strengthen return type from rtx to
4102 rtx_expr_list *.
4103 (remove_free_EXPR_LIST_node): Likewise for param.
4104 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
4105 from rtx to rtx_expr_list *.
4106 * sched-int.h (struct deps_desc): Strengthen fields
4107 "pending_read_mems" and "pending_write_mems" from rtx to
4108 rtx_expr_list *.
4109
4110 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
4111 rtx to rtx_expr_list *.
4112 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
4113 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
4114 rtx_expr_list **.
4115 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
4116 from rtx to rtx_expr_list *.
4117 * loop-iv.c (simplify_using_initial_values): Strengthen local
4118 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
4119 "pnote_next" from rtx * to rtx_expr_list **.
4120 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
4121 param "exprp" from rtx * to rtx_expr_list **.
4122 (add_insn_mem_dependence): Strengthen local "mem_list" from
4123 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
4124 to rtx_expr_list *.
4125 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
4126 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
4127 param "old_mems_p" from rtx * to rtx_expr_list **.
4128 * var-tracking.c (struct adjust_mem_data): Strengthen field
4129 "side_effects" from rtx to rtx_expr_list *.
4130 (adjust_insn): Replace NULL_RTX with NULL when assigning to
4131 rtx_expr_list *.
4132 (prepare_call_arguments): Likewise.
4133
4134 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4135
4136 * function.h (struct rtl_data): Strengthen field
4137 "x_stack_slot_list" from rtx to rtx_expr_list *.
4138
4139 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
4140 when assigning to stack_slot_list.
4141
4142 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4143
4144 * function.h (struct rtl_data): Strengthen field
4145 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
4146 * rtl.h (remove_node_from_expr_list): Strengthen second param from
4147 rtx * to rtx_expr_list **.
4148
4149 * cfgbuild.c (make_edges): In loop over
4150 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
4151 rtx_expr_list *, and use methods of the latter class to clarify
4152 the code.
4153 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
4154 rtx_expr_list *, and use methods of the latter class to clarify
4155 the code.
4156 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
4157 * reload1.c (set_initial_label_offsets): Likewise for local "x".
4158 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
4159 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
4160 to rtx_expr_list *. Use methods of the latter class to clarify
4161 the code.
4162
4163 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4164
4165 * function.h (struct expr_status): Strengthen field
4166 "x_forced_labels" from rtx to rtx_expr_list *.
4167
4168 * cfgbuild.c (make_edges): Split local "x" into two locals,
4169 strengthening one from rtx to rtx_expr_list *, and using methods
4170 of said class.
4171 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
4172 loop over forced_labels, introduce strengthen it from rtx to
4173 rtx_expr_list *, using methods to clarify the code.
4174 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
4175 to rtx_expr_list *, using methods of said class to clarify the
4176 code.
4177 * reload1.c (set_initial_label_offsets): Split local "x" into two
4178 per-loop variables, strengthening the first from rtx to
4179 rtx_expr_list * and using methods.
4180
4181 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4182
4183 * coretypes.h (class rtx_expr_list): Add forward declaration.
4184 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
4185 * gengenrtl.c (special_rtx): Add EXPR_LIST.
4186 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
4187 invariant: GET_CODE (X) == EXPR_LIST.
4188 (is_a_helper <rtx_expr_list *>::test): New.
4189 (rtx_expr_list::next): New.
4190 (rtx_expr_list::element): New.
4191 (gen_rtx_EXPR_LIST): New.
4192
4193 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4194
4195 * varasm.c (mark_constants): Convert a GET_CODE check into a
4196 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
4197 Use methods of rtx_sequence to clarify the code.
4198
4199 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4200
4201 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
4202 local "seq" via a checked cast, and use methods of rtx_sequence
4203 to simplify the code.
4204
4205 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4206
4207 * resource.c (mark_referenced_resources): Strengthen local
4208 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
4209 using methods of rtx_sequence to clarify the code.
4210 (find_dead_or_set_registers): Within the switch statement, convert
4211 a GET_CODE check to a dyn_cast, introducing local "seq". Within
4212 the JUMP_P handling, introduce another local "seq", adding a
4213 checked cast to rtx_sequence *. In both cases, use methods of
4214 rtx_sequence to clarify the code.
4215 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
4216 via a checked cast, and use methods of rtx_sequence to simplify
4217 the code.
4218
4219 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4220
4221 * reorg.c (redundant_insn): In two places in the function, replace
4222 a check of GET_CODE with a dyn_cast, introducing local "seq", and
4223 usings methods of rtx_sequence to clarify the code.
4224
4225 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4226
4227 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
4228 local "seq" with a checked cast, and use methods of rtx_sequence
4229 to clarify the code.
4230
4231 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4232
4233 * function.c (contains): Introduce local "seq" for PATTERN (insn),
4234 with a checked cast, in the region for where we know it's a
4235 SEQUENCE. Use methods of rtx_sequence.
4236
4237 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4238
4239 * final.c (get_attr_length_1): Replace GET_CODE check with a
4240 dyn_cast, introducing local "seq" and the use of methods of
4241 rtx_sequence.
4242 (shorten_branches): Likewise, introducing local "body_seq".
4243 Strengthen local "inner_insn" from rtx to rtx_insn *.
4244 (reemit_insn_block_notes): Replace GET_CODE check with a
4245 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
4246 Use methods of rtx_sequence.
4247 (final_scan_insn): Likewise, introducing local "seq" for when
4248 "body" is known to be a SEQUENCE, using its methods.
4249
4250 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4251
4252 * except.c (can_throw_external): Strengthen local "seq" from rtx
4253 to rtx_sequence *. Use methods of rtx_sequence.
4254 (insn_nothrow_p): Likewise.
4255
4256 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4257
4258 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
4259 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
4260 Use methods of rtx_sequence.
4261 (scan_trace): Likewise for local "pat".
4262
4263 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4264
4265 * coretypes.h (class rtx_sequence): Add forward declaration.
4266 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
4267 invariant: GET_CODE (X) == SEQUENCE.
4268 (is_a_helper <rtx_sequence *>::test): New.
4269 (is_a_helper <const rtx_sequence *>::test): New.
4270 (rtx_sequence::len): New.
4271 (rtx_sequence::element): New.
4272 (rtx_sequence::insn): New.
4273
4274 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4275
4276 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
4277 rtx_insn_list **.
4278 (alloc_INSN_LIST): Strengthen return type from rtx to
4279 rtx_insn_list *.
4280 (copy_INSN_LIST): Likewise for return type and param.
4281 (concat_INSN_LIST): Likewise for both params and return type.
4282 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
4283 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
4284 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
4285 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
4286
4287 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
4288 "implicit_sets", "control_uses", "clobbers" from rtx to
4289 rtx_insn_list *.
4290 (struct deps_desc): Likewise for fields "pending_read_insns",
4291 "pending_write_insns", "pending_jump_insns",
4292 "last_pending_memory_flush", "last_function_call",
4293 "last_function_call_may_noreturn", "sched_before_next_call",
4294 "sched_before_next_jump".
4295 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
4296 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
4297
4298 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
4299 from rtx to rtx_insn_list *.
4300 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
4301 rtx_insn_list *.
4302
4303 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
4304 to rtx_insn_list **.
4305 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
4306 rtx_insn_list *.
4307 (queue_insn): Likewise for local "link".
4308 (struct haifa_saved_data): Strengthen field "insn_queue" from
4309 rtx * to rtx_insn_list **.
4310 (save_backtrack_point): Update allocation of save->insn_queue to
4311 reflect the strengthening of elements from rtx to rtx_insn_list *.
4312 (queue_to_ready): Strengthen local "link" from rtx to
4313 rtx_insn_list *; use methods "next" and "insn" when traversing the
4314 list.
4315 (early_queue_to_ready): Likewise for locals "link", "next_link",
4316 "prev_link".
4317 (schedule_block): Update allocation of insn_queue to reflect the
4318 strengthening of elements from rtx to rtx_insn_list *. Strengthen
4319 local "link" from rtx to rtx_insn_list *, and use methods when
4320 working it.
4321 (add_to_speculative_block): Strengthen locals "twins" and
4322 "next_node" from rtx to rtx_insn_list *, and use methods when
4323 working with them. Strengthen local "twin" from rtx to
4324 rtx_insn *, eliminating a checked cast.
4325 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
4326 from rtx to rtx_insn_list *, and use methods when working with
4327 them.
4328
4329 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
4330 from rtx to rtx_insn_list *, adding a checked cast.
4331 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
4332 rtx_insn_list **.
4333 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
4334 "newlink" from rtx to rtx_insn_list *. Strengthen local
4335 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
4336 from rtx to rtx_insn *.
4337 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
4338 from rtx to rtx_insn_list *. Use methods of the latter class.
4339 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
4340 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
4341 (remove_free_INSN_LIST_node): Strengthen return type and local
4342 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
4343 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
4344 rtx_insn_list *, using "insn" method.
4345
4346 * sched-deps.c (add_dependence_list): Strengthen param "list"
4347 from rtx to rtx_insn_list *, and use methods when working with it.
4348 (add_dependence_list_and_free): Strengthen param "listp" from
4349 rtx * to rtx_insn_list **.
4350 (remove_from_dependence_list): Strenghten param "listp" from rtx *
4351 to rtx_insn_list **, and use methods when working with *listp.
4352 (remove_from_both_dependence_lists): Strengthen param "listp" from
4353 rtx * to rtx_insn_list **
4354 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
4355 to rtx_insn_list **. Eliminate local "link", in favor of two new
4356 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
4357 respectively.
4358 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
4359 by introducing local "cond_deps".
4360 (remove_from_deps): Strengthen param "insn" from rtx to
4361 rtx_insn *.
4362
4363 * sched-rgn.c (concat_insn_mem_list): Strengthen param
4364 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
4365 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
4366 Use methods of rtx_insn_list.
4367
4368 * store-motion.c (struct st_expr): Strengthen fields
4369 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
4370 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
4371 rtx_insn_list *.
4372 (find_moveable_store): Split out "tmp" into multiple more-tightly
4373 scoped locals. Use methods of rtx_insn_list *.
4374 (compute_store_table): Strengthen local "tmp" from rtx to
4375 rtx_insn *. Use methods of rtx_insn_list *.
4376
4377 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4378
4379 * coretypes.h (class rtx_insn_list): Add forward declaration.
4380 * rtl.h (class rtx_insn_list): New subclass of rtx_def
4381 (is_a_helper <rtx_insn_list *>::test): New.
4382 (rtx_insn_list::next): New.
4383 (rtx_insn_list::insn): New.
4384 (gen_rtx_INSN_LIST): Add prototype.
4385 * emit-rtl.c (gen_rtx_INSN_LIST): New.
4386 * gengenrtl.c (special_rtx): Add INSN_LIST.
4387
4388 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4389
4390 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
4391 "prev" from rtx to rtx_insn *.
4392
4393 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4394
4395 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
4396 functions. Require merely an rtx for now, not an rtx_insn *.
4397 (BLOCK_FOR_INSN): Likewise.
4398 (INSN_LOCATION): Likewise.
4399 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
4400
4401 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4402
4403 * rtl.h (PATTERN): Convert this macro into a pair of inline
4404 functions, for now, requiring const_rtx and rtx.
4405
4406 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4407
4408 * target.def (unwind_emit): Strengthen param "insn" from rtx to
4409 rtx_insn *.
4410 (final_postscan_insn): Likewise.
4411 (adjust_cost): Likewise.
4412 (adjust_priority): Likewise.
4413 (variable_issue): Likewise.
4414 (macro_fusion_pair_p): Likewise.
4415 (dfa_post_cycle_insn): Likewise.
4416 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
4417 (first_cycle_multipass_issue): Likewise.
4418 (dfa_new_cycle): Likewise.
4419 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
4420 (speculate_insn): Likewise for param "insn".
4421 (gen_spec_check): Likewise for params "insn" and "label".
4422 (get_insn_spec_ds): Likewise for param "insn".
4423 (get_insn_checked_ds): Likewise.
4424 (dispatch_do): Likewise.
4425 (dispatch): Likewise.
4426 (cannot_copy_insn_p): Likewise.
4427 (invalid_within_doloop): Likewise.
4428 (legitimate_combined_insn): Likewise.
4429 (needed): Likewise.
4430 (after): Likewise.
4431
4432 * doc/tm.texi: Automatically updated to reflect changes to
4433 target.def.
4434
4435 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
4436 working with insn.
4437 (schedule_block): Likewise.
4438 (sched_init): Likewise.
4439 (sched_speculate_insn): Strengthen param "insn" from rtx to
4440 rtx_insn *.
4441 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
4442 working with insn.
4443 * hooks.c (hook_bool_rtx_true): Rename to...
4444 hook_bool_rtx_insn_true): ...this, and strengthen first param from
4445 rtx to rtx_insn *.
4446 (hook_constcharptr_const_rtx_null): Rename to...
4447 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
4448 first param from const_rtx to const rtx_insn *.
4449 (hook_bool_rtx_int_false): Rename to...
4450 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
4451 param from rtx to rtx_insn *.
4452 (hook_void_rtx_int): Rename to...
4453 (hook_void_rtx_insn_int): ...this, and strengthen first param from
4454 rtx to rtx_insn *.
4455
4456 * hooks.h (hook_bool_rtx_true): Rename to...
4457 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
4458 rtx to rtx_insn *.
4459 (hook_bool_rtx_int_false): Rename to...
4460 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
4461 param from rtx to rtx_insn *.
4462 (hook_void_rtx_int): Rename to...
4463 (hook_void_rtx_insn_int): ...this, and strengthen first param from
4464 rtx to rtx_insn *.
4465 (hook_constcharptr_const_rtx_null): Rename to...
4466 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
4467 first param from const_rtx to const rtx_insn *.
4468
4469 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
4470 and local "prev" from rtx to rtx_insn *.
4471
4472 * sched-int.h (sched_speculate_insn): Strengthen first param from
4473 rtx to rtx_insn *.
4474
4475 * sel-sched.c (create_speculation_check): Likewise for local "label".
4476 * targhooks.c (default_invalid_within_doloop): Strengthen param
4477 "insn" from const_rtx to const rtx_insn *.
4478 * targhooks.h (default_invalid_within_doloop): Strengthen param
4479 from const_rtx to const rtx_insn *.
4480
4481 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
4482 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
4483
4484 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
4485 "insn".
4486 (arc_invalid_within_doloop): Likewise, with const.
4487
4488 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
4489 (arm_cannot_copy_insn_p): Likewise for param "insn".
4490 (arm_unwind_emit): Likewise.
4491
4492 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
4493 "dep_insn".
4494
4495 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
4496 (c6x_variable_issue): Likewise. Removed now-redundant checked
4497 cast.
4498 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
4499
4500 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
4501 Likewise for param "insn".
4502 (epiphany_mode_after): Likewise.
4503 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
4504 params "insn", "dep_insn".
4505 (epiphany_mode_needed): Likewise for param "insn".
4506 (epiphany_mode_after): Likewise.
4507
4508 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
4509 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
4510 (ix86_avx_u128_mode_needed): Likewise.
4511 (ix86_i387_mode_needed): Likewise.
4512 (ix86_mode_needed): Likewise.
4513 (ix86_avx_u128_mode_after): Likewise.
4514 (ix86_mode_after): Likewise.
4515 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
4516 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
4517 (ix86_adjust_priority): Likewise for param "insn".
4518 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
4519 (do_dispatch): Likewise.
4520 (has_dispatch): Likewise.
4521 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
4522
4523 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
4524 reflect renaming of default hook implementation from
4525 hook_constcharptr_const_rtx_null to
4526 hook_constcharptr_const_rtx_insn_null.
4527 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
4528 rtx to rtx_insn *.
4529 (ia64_variable_issue): Likewise for param "insn".
4530 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
4531 (ia64_dfa_new_cycle): Likewise.
4532 (ia64_get_insn_spec_ds): Likewise.
4533 (ia64_get_insn_checked_ds): Likewise.
4534 (ia64_speculate_insn): Likewise.
4535 (ia64_gen_spec_check): Likewise for params "insn", "label".
4536 (ia64_asm_unwind_emit): Likewise for param "insn".
4537
4538 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
4539
4540 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
4541 "insn", "def_insn".
4542 (m68k_sched_variable_issue): Likewise for param "insn".
4543
4544 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
4545 "def_insn".
4546
4547 * config/microblaze/microblaze.c (microblaze_adjust_cost):
4548 Likewise for params "insn", "dep".
4549
4550 * config/mips/mips.c (mips_adjust_cost): Likewise.
4551 (mips_variable_issue): Likewise for param "insn".
4552 (mips_final_postscan_insn): Likewise.
4553
4554 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
4555 for params "insn", "dep".
4556
4557 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
4558 "dep_insn".
4559 (pa_adjust_priority): Likewise for param "insn".
4560
4561 * config/picochip/picochip.c (picochip_sched_adjust_cost):
4562 Likewise for params "insn", "dep_insn".
4563
4564 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
4565 param "insn".
4566 (rs6000_variable_issue): Likewise.
4567 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
4568 (rs6000_debug_adjust_cost): Likewise.
4569 (rs6000_adjust_priority): Likewise for param "insn".
4570 (rs6000_use_sched_lookahead_guard): Likewise.
4571 (get_next_active_insn): Likewise for return type and both params.
4572 (redefine_groups): Likewise for params "prev_head_insn", "tail"
4573 and locals "insn", "next_insn".
4574 (pad_groups): Likewise.
4575
4576 * config/s390/s390.c (s390_adjust_priority): Likewise for param
4577 "insn".
4578 (s390_cannot_copy_insn_p): Likewise.
4579 (s390_sched_variable_issue): Likewise for third param, eliminating
4580 checked cast.
4581 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
4582 default hook implementation from hook_constcharptr_const_rtx_null
4583 to hook_constcharptr_const_rtx_insn_null.
4584
4585 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
4586 from rtx to rtx_insn *.
4587 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
4588 (sh_variable_issue): Likewise for param "insn".
4589 (sh_dfa_new_cycle): Likewise.
4590 (sh_mode_needed): Likewise.
4591 (sh_mode_after): Likewise.
4592
4593 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
4594 params "insn", "dep_insn".
4595 (hypersparc_adjust_cost): Likewise.
4596 (sparc_adjust_cost): Likewise.
4597
4598 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
4599 param, eliminated checked cast.
4600 (spu_sched_adjust_cost): Likewise for first and third params.
4601
4602 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
4603 params "insn" and "dep_insn" from rtx to rtx_insn *.
4604
4605 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
4606
4607 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4608
4609 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
4610 (set_is_load_p): ...this, updating to work on a SET pattern rather
4611 than an insn.
4612 (is_store_insn): Rename to...
4613 (set_is_store_p): ...this, updating to work on a SET pattern
4614 rather than an insn.
4615 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
4616 top of function to where it is needed. Rewrite the bogus
4617 condition that checks for "insn" and "dep" being PARALLEL to
4618 instead use single_set, introducing locals "insn_set" and
4619 "dep_set". Given that we only ever returned "cost" for a non-pair
4620 of SETs, bail out early if we don't have a pair of SET.
4621 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
4622 use the new locals "insn_set" and "dep_set", and update calls to
4623 is_load_insn and is_store_insn to be calls to set_is_load_p and
4624 set_is_store_p.
4625
4626 2014-08-27 Guozhi Wei <carrot@google.com>
4627
4628 PR target/62262
4629 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
4630 amount before using it.
4631
4632 2014-08-27 Richard Biener <rguenther@suse.de>
4633
4634 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
4635 get_maxval_strlen inside a more useful API.
4636 (gimple_fold_builtin_with_strlen): Remove and fold into ...
4637 (gimple_fold_builtin): ... caller.
4638 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
4639 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
4640 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
4641 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
4642 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
4643 gimple_fold_builtin_sprintf): Adjust to compute maxval
4644 themselves.
4645
4646 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
4647
4648 PR other/62248
4649 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
4650
4651 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4652 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4653 Anna Tikhonova <anna.tikhonova@intel.com>
4654 Ilya Tocar <ilya.tocar@intel.com>
4655 Andrey Turetskiy <andrey.turetskiy@intel.com>
4656 Ilya Verbin <ilya.verbin@intel.com>
4657 Kirill Yukhin <kirill.yukhin@intel.com>
4658 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4659
4660 * config/i386/sse.md
4661 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
4662 Use `concat_tg_mode' attribute to determine asm register size.
4663
4664 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4665 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4666 Anna Tikhonova <anna.tikhonova@intel.com>
4667 Ilya Tocar <ilya.tocar@intel.com>
4668 Andrey Turetskiy <andrey.turetskiy@intel.com>
4669 Ilya Verbin <ilya.verbin@intel.com>
4670 Kirill Yukhin <kirill.yukhin@intel.com>
4671 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4672
4673 * config/i386/sse.md
4674 (define_mode_iterator VI48_AVX512VL): New.
4675 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
4676 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
4677 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
4678 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4679 with VI1): Change mode iterator.
4680 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4681 with VI_ULOADSTORE_BW_AVX512VL): New.
4682 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4683 with VI_ULOADSTORE_F_AVX512VL): Ditto.
4684 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4685 with VI1): Change mode iterator.
4686 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4687 with VI_ULOADSTORE_BW_AVX512VL): New.
4688 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4689 with VI_ULOADSTORE_F_AVX512VL): Ditto.
4690 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4691 with VI1): Change mode iterator.
4692 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4693 with VI_ULOADSTORE_BW_AVX512VL): New.
4694 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4695 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
4696 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
4697 (define_insn "<avx512>_storedqu<mode>_mask" with
4698 VI48_AVX512VL): New.
4699 (define_insn "<avx512>_storedqu<mode>_mask" with
4700 VI12_AVX512VL): Ditto.
4701
4702 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4703 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4704 Anna Tikhonova <anna.tikhonova@intel.com>
4705 Ilya Tocar <ilya.tocar@intel.com>
4706 Andrey Turetskiy <andrey.turetskiy@intel.com>
4707 Ilya Verbin <ilya.verbin@intel.com>
4708 Kirill Yukhin <kirill.yukhin@intel.com>
4709 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4710
4711 * config/i386/sse.md
4712 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
4713 (define_mode_iterator VI48_AVX512BW): New.
4714 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
4715 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4716 with VI48_AVX2_48_AVX512F): New.
4717 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4718 with VI2_AVX512VL): Ditto.
4719
4720 2014-08-27 Richard Biener <rguenther@suse.de>
4721
4722 PR middle-end/62239
4723 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
4724 (fold_builtin_3): Do not fold strcat_chk here.
4725 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
4726 from builtins.c.
4727 (gimple_fold_builtin): Fold strcat_chk here.
4728
4729 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
4730
4731 * dwarf2out.h (dwarf2out_decl): Remove prototype.
4732 * dwarf2out.c (dwarf2out_decl): Make static.
4733
4734 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
4735
4736 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
4737
4738 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4739
4740 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
4741 from rtx to rtx_insn *.
4742 (cselib_lookup_from_insn): Likewise for final param.
4743 (cselib_subst_to_values_from_insn): Likewise.
4744 (cselib_add_permanent_equiv): Likewise.
4745
4746 * cselib.c (cselib_current_insn): Likewise for this variable.
4747 (cselib_subst_to_values_from_insn): Likewise for param "insn".
4748 (cselib_lookup_from_insn): Likewise.
4749 (cselib_add_permanent_equiv): Likewise for param "insn" and local
4750 "save_cselib_current_insn".
4751 (cselib_process_insn): Replace use of NULL_RTX with NULL.
4752
4753 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
4754 from rtx to rtx_insn *.
4755
4756 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4757
4758 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
4759 rtx_insn *.
4760
4761 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4762
4763 * df.h (df_dump_insn_problem_function): Strengthen first param of
4764 this callback from const_rtx to const rtx_insn *.
4765 (struct df_insn_info): Strengthen field "insn" from rtx to
4766 rtx_insn *.
4767 (DF_REF_INSN): Eliminate this function, reinstating the older
4768 macro definition.
4769 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
4770 (df_reg_defined): Likewise.
4771 (df_find_use): Likewise.
4772 (df_reg_used): Likewise.
4773 (df_dump_insn_top): Strengthen param 1 from const_rtx to
4774 const rtx_insn *.
4775 (df_dump_insn_bottom): Likewise.
4776 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
4777 (df_insn_debug_regno): Likewise.
4778 (debug_df_insn): Likewise.
4779 (df_rd_simulate_one_insn): Likewise for param 2.
4780 (df_word_lr_simulate_defs): Likewise for param 1.
4781 (df_word_lr_simulate_uses): Likewise.
4782 (df_md_simulate_one_insn): Likewise for param 2.
4783 (df_simulate_find_noclobber_defs): Likewise for param 1.
4784 (df_simulate_find_defs): Likewise.
4785 (df_simulate_defs): Likewise.
4786 (df_simulate_uses): Likewise.
4787 (df_simulate_one_insn_backwards): Likewise for param 2.
4788 (df_simulate_one_insn_forwards): Likewise.
4789 (df_uses_create): Likewise for param 2.
4790 (df_insn_create_insn_record): Likewise for param 1.
4791 (df_insn_delete): Likewise.
4792 (df_insn_rescan): Likewise.
4793 (df_insn_rescan_debug_internal): Likewise.
4794 (df_insn_change_bb): Likewise.
4795 (df_notes_rescan): Likewise.
4796 * rtl.h (remove_death): Likewise for param 2.
4797 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
4798 const rtx_insn *.
4799 * sched-int.h (reemit_notes): Strengthen param from rtx to
4800 rtx_insn *.
4801 * valtrack.h (propagate_for_debug): Likewise for param 1.
4802
4803 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
4804 local "tmp_rtx" from const_rtx to const rtx_insn *.
4805 * combine.c (remove_death): Strengthen param "insn" from rtx to
4806 rtx_insn *.
4807 (move_deaths): Likewise for local "where_dead".
4808 * cse.c (delete_trivially_dead_insns): Introduce local
4809 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
4810 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
4811 rtx_insn *.
4812 (df_reg_defined): Likewise.
4813 (df_find_use): Likewise.
4814 (df_reg_used): Likewise.
4815 (df_dump_insn_problem_data): Strengthen param "insn" from
4816 const_rtx to const rtx_insn *.
4817 (df_dump_insn_top): Likewise.
4818 (df_dump_insn_bottom): Likewise.
4819 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
4820 (df_insn_debug_regno): Likewise.
4821 (debug_df_insn): Likewise.
4822 (DF_REF_INSN): Delete.
4823 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
4824 from rtx to rtx_insn *.
4825 (df_chain_insn_top_dump): Strengthen param "insn" from
4826 const_rtx to const rtx_insn *.
4827 (df_chain_insn_bottom_dump): Likewise.
4828 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
4829 rtx_insn *.
4830 (df_word_lr_simulate_uses): Likewise.
4831 (df_print_note): Likewise.
4832 (df_remove_dead_and_unused_notes): Likewise.
4833 (df_set_unused_notes_for_mw): Likewise.
4834 (df_set_dead_notes_for_mw): Likewise.
4835 (df_create_unused_note): Likewise.
4836 (df_simulate_find_defs): Likewise.
4837 (df_simulate_find_uses): Likewise.
4838 (df_simulate_find_noclobber_defs): Likewise.
4839 (df_simulate_defs): Likewise.
4840 (df_simulate_uses): Likewise.
4841 (df_simulate_one_insn_backwards): Likewise.
4842 (df_simulate_one_insn_forwards): Likewise.
4843 (df_md_simulate_one_insn): Likewise.
4844 * df-scan.c (df_uses_create): Likewise.
4845 (df_insn_create_insn_record): Likewise.
4846 (df_insn_delete): Likewise.
4847 (df_insn_rescan): Likewise.
4848 (df_insn_rescan_debug_internal): Likewise.
4849 (df_insn_change_bb): Likewise.
4850 (df_notes_rescan): Likewise.
4851 (df_refs_add_to_chains): Likewise.
4852 (df_insn_refs_verify): Likewise.
4853 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
4854 when invoking df_insn_delete.
4855 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
4856 (set_unique_reg_note): Add checked cast.
4857 * final.c (cleanup_subreg_operands): Likewise.
4858 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
4859 "insn" from rtx to rtx_insn *.
4860 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
4861 "last" from rtx to rtx_insn *.
4862 * ira-emit.c (change_regs_in_insn): New function.
4863 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
4864 Invoke change_regs_in_insn rather than change_regs.
4865 * ira.c (update_equiv_regs): Strengthen locals "insn",
4866 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
4867 for_each_rtx_in_insn rather than for_each_rtx.
4868 * recog.c (confirm_change_group): Add checked casts.
4869 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
4870 Add checked cast.
4871 (peep2_fill_buffer): Add checked cast.
4872 * rtlanal.c (remove_note): Likewise.
4873 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
4874 locals "next" "end" from rtx to rtx_insn *.
4875
4876 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4877
4878 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
4879 to rtx_insn *.
4880 (struct reg_use_data): Likewise for field "insn".
4881 (insn_cost): Likewise for param.
4882 (real_insn_for_shadow): Likewise for return type and param.
4883 (increase_insn_priority): Likewise for param 1.
4884 (debug_dependencies): Likewise for both params.
4885
4886 * haifa-sched.c (insn_delay): Likewise for param "insn".
4887 (real_insn_for_shadow): Likewise for return type and param "insn".
4888 (update_insn_after_change): Likewise for param "insn".
4889 (recompute_todo_spec): Likewise for param "next" and locals "pro",
4890 "other".
4891 (insn_cost): Likewise for param "insn".
4892 (increase_insn_priority): Likewise.
4893 (calculate_reg_deaths): Likewise.
4894 (setup_insn_reg_pressure_info): Likewise.
4895 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
4896 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
4897 (model_recompute): Likewise.
4898 (must_restore_pattern_p): Likewise for param "next".
4899 (model_excess_cost): Likewise for param "insn".
4900 (queue_remove): Likewise.
4901 (adjust_priority): Likewise for param "prev".
4902 (update_register_pressure): Likewise for param "insn".
4903 (setup_insn_max_reg_pressure): Likewise for local "insn".
4904 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
4905 (model_add_to_schedule): Likewise.
4906 (model_reset_queue_indices): Likewise for local "insn".
4907 (unschedule_insns_until): Strengthen local "recompute_vec" from
4908 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
4909 "con" from rtx to rtx_insn *.
4910 (restore_last_backtrack_point): Likewise for both locals "x". Add
4911 checked casts.
4912 (estimate_insn_tick): Likewise for param "insn".
4913 (commit_schedule): Likewise for params "prev_head", "tail" and
4914 local "x".
4915 (verify_shadows): Likewise for locals "i1", "i2".
4916 (dump_insn_stream): Likewise for params "head", "tail" and locals
4917 "next_tail", "insn".
4918 (schedule_block): Likewise for locals "insn", "x". Add a checked
4919 cast.
4920 (fix_inter_tick): Likewise for params "head", "tail".
4921 (create_check_block_twin): Likewise for local "jump".
4922 (haifa_change_pattern): Likewise for param "insn".
4923 (haifa_speculate_insn): Likewise.
4924 (dump_new_block_header): Likewise for params "head", "tail".
4925 (fix_jump_move): Likewise for param "jump".
4926 (move_block_after_check): Likewise.
4927 (sched_init_insn_luid): Likewise for param "insn".
4928 (sched_init_luids): Likewise for local "insn".
4929 (insn_luid): Likewise for param "insn".
4930 (init_h_i_d): Likewise.
4931 (haifa_init_h_i_d): Likewise for local "insn".
4932 (haifa_init_insn): Likewise for param "insn".
4933 * sched-deps.c (add_dependence): Likewise for local "real_pro",
4934 "other".
4935 (create_insn_reg_use): Likewise for param "insn".
4936 (setup_insn_reg_uses): Likewise. Add a checked cast.
4937 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
4938 "tail" from rtx to rtx_insn *.
4939 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
4940 "insn", "next_tail".
4941
4942 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4943
4944 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
4945 from rtx to rtx_insn *.
4946 (model_add_to_schedule): Likewise for locals "start", "end",
4947 "iter".
4948
4949 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4950
4951 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
4952 rtx_insn *.
4953 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
4954 "to" and locals "insn", "next", "copy". Remove now-redundant
4955 checked cast.
4956
4957 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4958
4959 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
4960 rtx_insn * and param 4 from rtx * to rtx_insn **.
4961 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
4962 param 2 from rtx * to rtx_insn **.
4963
4964 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
4965 rtx_insn * and final param from rtx * to rtx_insn **.
4966
4967 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
4968 from rtx to rtx_insn *.
4969 (try_head_merge_bb): Likewise for both locals named "move_upto".
4970 * df-problems.c (can_move_insns_across): Likewise for params
4971 "from", "to", "across_from", "across_to" and locals "insn",
4972 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
4973 rtx_insn **.
4974 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
4975 from rtx to rtx_insn *.
4976 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
4977 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
4978 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
4979 rtx_insn *.
4980 (noce_try_abs): Likewise.
4981 (noce_get_condition): Likewise for param "jump". Strengthen param
4982 "earliest" from rtx * to rtx_insn **.
4983 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
4984 rtx_insn *.
4985 (find_cond_trap): Likewise.
4986 (dead_or_predicable): Likewise for local "earliest".
4987 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
4988 checked cast.
4989 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
4990 and local "prev". Strengthen param "earliest" from rtx * to
4991 rtx_insn **.
4992 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
4993 Strengthen param "earliest" from rtx * to rtx_insn **.
4994
4995 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4996
4997 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
4998 "to" and local "insn" from rtx to rtx_insn *.
4999
5000 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5001
5002 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
5003 from rtx to rtx_insn *.
5004 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
5005 (code_motion_path_driver): Likewise for local "last_insn".
5006 (simplify_changed_insns): Likewise for local "insn".
5007
5008 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5009
5010 * rtl.h (push_to_sequence): Strengthen param from rtx to
5011 rtx_insn *.
5012 (push_to_sequence2): Likewise for both params.
5013 (delete_insns_since): Likewise for param.
5014 (reorder_insns_nobb): Likewise for all three params.
5015 (set_new_first_and_last_insn): Likewise for both params.
5016
5017 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
5018 rtx_insn *. Remove now-redundant cast.
5019 (set_last_insn): Likewise.
5020
5021 * builtins.c (expand_builtin_return): Strengthen local
5022 "call_fusage" from rtx to rtx_insn *.
5023 * cfgrtl.c (create_basic_block_structure): Likewise for local
5024 "after".
5025 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
5026 "first", "last" and local "insn".
5027 (delete_insns_since): Likewise for param "from".
5028 (reorder_insns_nobb): Likewise for params "from", "to", "after"
5029 and local "x".
5030 (push_to_sequence): Likewise for param "first" and local "last".
5031 (push_to_sequence2): Likewise for params "first" and "last".
5032 * lra.c (emit_add3_insn): Likewise for local "last".
5033 (lra_emit_add): Likewise.
5034 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
5035 "last_insn".
5036 (process_address_1): Likewise for locals "insn", last".
5037 * modulo-sched.c (ps_first_note): Likewise for return type.
5038 * optabs.c (expand_binop_directly): Likewise for param "last".
5039
5040 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5041
5042 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
5043 to rtx_insn*.
5044 * emit-rtl.c (get_last_insn_anywhere): Likewise.
5045
5046 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5047
5048 * function.h (struct sequence_stack): Strengthen fields "first"
5049 and "last" from rtx to rtx_insn *.
5050 (struct emit_status): Likewise for fields "x_first_insn" and
5051 "x_last_insn".
5052
5053 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
5054 (set_first_insn): Add checked cast.
5055 (get_last_insn): Remove now-redundant checked cast.
5056 (set_last_insn): Add checked cast.
5057
5058 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
5059 "saved_first" and "saved_last" from rtx to rtx_insn *.
5060
5061 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5062
5063 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
5064 (unlink_insn_chain): Strengthen both params from rtx to
5065 rtx_insn *.
5066
5067 * cfgrtl.c (cfg_layout_function_header): Likewise for this
5068 variable.
5069 (unlink_insn_chain): Likewise for params "first" and "last".
5070 Remove now-redundant checked cast.
5071 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
5072 (fixup_reorder_chain): Strengthen local "insn" from rtx to
5073 rtx_insn *.
5074 * emit-rtl.c (link_insn_into_chain): Likewise for all three
5075 params.
5076 (add_insn): Likewise for param "insn" and local "prev".
5077 (add_insn_after_nobb): Likewise for both params and local "next".
5078 (add_insn_before_nobb): Likewise for both params and local "prev".
5079 (add_insn_after): Rename param "after" to "uncast_after",
5080 introducing local "after" with another checked cast.
5081 (add_insn_before): Rename params "insn" and "before", giving them
5082 "uncast_" prefixes, adding the old names back using checked casts.
5083 (emit_note_after): Likewise for param "after".
5084 (emit_note_before): Likewise for param "before".
5085 (emit_label): Add a checked cast.
5086
5087 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5088
5089 * cselib.h (cselib_record_sets_hook): Strengthen initial param
5090 "insn" from rtx to rtx_insn *.
5091
5092 * cselib.c (cselib_record_sets_hook): Likewise.
5093
5094 * var-tracking.c (add_with_sets): Likewise, renaming back from
5095 "uncast_insn" to "insn" and eliminating the checked cast from rtx
5096 to rtx_insn *.
5097
5098 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5099
5100 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
5101 and "header_" from rtx to rtx_insn *.
5102 (struct basic_block_d): Likewise for field "head_" within "x"
5103 field of union basic_block_il_dependent.
5104 (BB_HEAD): Drop function...
5105 (SET_BB_HEAD): ...and this function in favor of...
5106 (BB_HEAD): ...reinstate macro.
5107 (BB_END): Drop function...
5108 (SET_BB_END): ...and this function in favor of...
5109 (BB_END): ...reinstate macro.
5110 (BB_HEADER): Drop function...
5111 (SET_BB_HEADER): ...and this function in favor of...
5112 (BB_HEADER): ...reinstate macro.
5113
5114 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
5115 (fix_crossing_unconditional_branches): Likewise.
5116 * caller-save.c (save_call_clobbered_regs): Likewise.
5117 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
5118 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
5119 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5120 (merge_blocks_move_successor_nojumps): Likewise.
5121 (outgoing_edges_match): Update use of for_each_rtx to
5122 for_each_rtx_in_insn.
5123 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
5124 (expand_gimple_cond): Likewise.
5125 (expand_gimple_tailcall): Likewise.
5126 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
5127 SET_BB_END.
5128 (construct_exit_block): Drop use of SET_BB_END.
5129 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
5130 rtx_insn *.
5131 (delete_insn): Rename param "insn" to "uncast_insn", introducing
5132 a new local "insn" with a checked cast to rtx_insn *. Drop use of
5133 SET_BB_HEAD and SET_BB_END.
5134 (create_basic_block_structure): Drop use of SET_BB_HEAD and
5135 SET_BB_END.
5136 (rtl_delete_block): Drop use of SET_BB_HEAD.
5137 (rtl_split_block): Drop use of SET_BB_END.
5138 (emit_nop_for_unique_locus_between): Likewise.
5139 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
5140 (block_label): Drop use of SET_BB_HEAD.
5141 (fixup_abnormal_edges): Drop use of SET_BB_END.
5142 (record_effective_endpoints): Drop use of SET_BB_HEADER.
5143 (relink_block_chain): Likewise.
5144 (fixup_reorder_chain): Drop use of SET_BB_END.
5145 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
5146 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
5147 rtx_insn **. Drop use of SET_BB_HEADER.
5148 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
5149 SET_BB_HEAD.
5150 (BB_HEAD): Delete this function.
5151 (SET_BB_HEAD): Likewise.
5152 (BB_END): Likewise.
5153 (SET_BB_END): Likewise.
5154 (BB_HEADER): Likewise.
5155 (SET_BB_HEADER): Likewise.
5156 * emit-rtl.c (add_insn_after): Rename param "insn" to
5157 "uncast_insn", adding a new local "insn" and a checked cast to
5158 rtx_insn *. Drop use of SET_BB_END.
5159 (remove_insn): Strengthen locals "next" and "prev" from rtx to
5160 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
5161 (reorder_insns): Drop use of SET_BB_END.
5162 (emit_insn_after_1): Strengthen param "first" and locals "last",
5163 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
5164 (emit_pattern_after_noloc): Add checked cast.
5165 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
5166 (restore_other_notes): Likewise.
5167 (move_insn): Likewise.
5168 (sched_extend_bb): Likewise.
5169 (fix_jump_move): Likewise.
5170 * ifcvt.c (noce_process_if_block): Likewise.
5171 (dead_or_predicable): Likewise.
5172 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
5173 * reg-stack.c (change_stack): Drop use of SET_BB_END.
5174 * sel-sched-ir.c (sel_move_insn): Likewise.
5175 * sel-sched.c (move_nop_to_previous_block): Likewise.
5176
5177 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
5178 SET_BB_END.
5179 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
5180
5181 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5182
5183 * basic-block.h (create_basic_block_structure): Strengthen params
5184 1 "head" and 2 "end" from rtx to rtx_insn *.
5185 * cfgrtl.c (create_basic_block_structure): Likewise.
5186 (rtl_create_basic_block): Update casts from void * to rtx to
5187 rtx_insn *, so that we can pass them as rtx_insn * to
5188 create_basic_block_structure.
5189 * sel-sched-ir.c (sel_create_basic_block): Likewise.
5190
5191 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5192
5193 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
5194 rtx_insn **.
5195 (check_for_inc_dec): Strengthen param "insn" from rtx to
5196 rtx_insn *.
5197
5198 * cselib.h (cselib_process_insn): Likewise.
5199
5200 * cselib.c (cselib_record_sets): Likewise.
5201 (cselib_process_insn): Likewise.
5202
5203 * dse.c (struct insn_info): Likewise for field "insn".
5204 (check_for_inc_dec_1): Likewise for local "insn".
5205 (check_for_inc_dec): Likewise for param "insn".
5206 (scan_insn): Likewise.
5207 (dse_step1): Likewise for local "insn".
5208
5209 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
5210 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
5211
5212 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5213
5214 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
5215 from rtx to rtx_insn *.
5216 (DEP_PRO): Delete this function and...
5217 (SET_DEP_PRO): ...this function in favor of...
5218 (DEP_PRO): ...reinstate this macro.
5219 (DEP_CON): Delete this function and...
5220 (SET_DEP_CON): ...this function in favor of...
5221 (DEP_CON): ...reinstate this old macro.
5222 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
5223 (init_dep): Likewise.
5224 (set_priorities): Likewise for both params.
5225 (sd_copy_back_deps): Likewise for params 1 and 2.
5226
5227 * haifa-sched.c (priority): Likewise for param "insn" and local
5228 "next".
5229 (set_priorities): Likewise for params "head" and "tail" and local
5230 "insn".
5231 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
5232 local "consumer".
5233 (add_to_speculative_block): Add a checked cast.
5234 (create_check_block_twin): Drop use of SET_DEP_CON.
5235 (add_jump_dependencies): Strengthen params "insn" and "jump" from
5236 rtx to rtx_insn *.
5237
5238 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
5239 Drop use of SET_DEP_PRO
5240 (init_dep): Strengthen params "pro" and "con" from rtx to
5241 rtx_insn *.
5242 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
5243 use of SET_DEP_CON.
5244 (DEP_PRO): Delete.
5245 (DEP_CON): Delete.
5246 (SET_DEP_PRO): Delete.
5247 (SET_DEP_CON): Delete.
5248
5249 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5250
5251 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
5252 from rtx to rtx_insn *.
5253 (VINSN_INSN_RTX): Eliminate rvalue function and...
5254 (SET_VINSN_INSN): ...lvalue function in favor of...
5255 (VINSN_INSN_RTX): reinstate this old macro.
5256
5257 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
5258 in favor of VINSN_INSN_RTX.
5259 (VINSN_INSN_RTX): Delete this function.
5260 (SET_VINSN_INSN_RTX): Likewise.
5261
5262 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5263
5264 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
5265 (BND_TO): Delete this function and...
5266 (SET_BND_TO): ...this functions in favor of...
5267 (BND_TO): ...reinstating this macro.
5268 (struct _fence): Strengthen field "executing_insns" from
5269 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
5270 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
5271 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
5272 and param "insn" from rtx to insn_t.
5273 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
5274 rtx_insn *.
5275
5276 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
5277 vec<rtx_insn *> .
5278 (rtx_vec_t): Likewise.
5279 (struct sched_deps_info_def): Strengthen param of "start_insn"
5280 callback from rtx to rtx_insn *. Likewise for param "insn2" of
5281 "note_mem_dep" callback and first param of "note_dep" callback.
5282
5283 * haifa-sched.c (add_to_speculative_block): Strengthen param
5284 "insn" from rtx to rtx_insn *.
5285 (clear_priorities): Likewise.
5286 (calc_priorities): Likewise for local "insn".
5287
5288 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
5289 Remove redundant checked cast.
5290 (haifa_note_mem_dep): Likewise for param "pending_insn".
5291 (haifa_note_dep): Likewise for param "elem".
5292 (note_mem_dep): Likewise for param "e".
5293 (sched_analyze_1): Add checked casts.
5294 (sched_analyze_2): Likewise.
5295
5296 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
5297 from rtx to rtx_insn *.
5298 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
5299 from vec<rtx> * to vec<rtx_insn *> *.
5300
5301 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
5302 scaffolding.
5303 (flist_add): Strengthen param "executing_insns" from
5304 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
5305 (advance_deps_context): Remove now-redundant checked cast.
5306 (init_fences): Replace uses of NULL_RTX with NULL.
5307 (merge_fences): Strengthen params "last_scheduled_insn" and
5308 "sched_next" from rtx to rtx_insn * and "executing_insns" from
5309 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
5310 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
5311 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
5312 an instruction, rather than doing double-duty as a pattern.
5313 (return_nop_to_pool): Update for change of insn_t.
5314 (deps_init_id): Remove now-redundant checked cast.
5315 (struct sched_scan_info_def): Strengthen param of "init_insn"
5316 callback from rtx to insn_t.
5317 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
5318 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
5319 NULL.
5320 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
5321 "end" from rtx to rtx_insn *.
5322 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
5323 (rtx insn_rtx, bool force_unique_p)
5324 (BND_TO): Delete function.
5325 (SET_BND_TO): Delete function.
5326
5327 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
5328 rtx to rtx_insn *.
5329 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
5330 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
5331 rtx to rtx_insn *.
5332 (undo_transformations): Likewise for param "insn".
5333 (update_liveness_on_insn): Likewise.
5334 (compute_live_below_insn): Likewise for param "insn" and local
5335 "succ".
5336 (update_data_sets): Likewise for param "insn".
5337 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
5338 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
5339 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
5340 rtx_insn *.
5341 (move_cond_jump): Likewise for param "insn".
5342 (move_cond_jump): Drop use of SET_BND_TO.
5343 (compute_av_set_on_boundaries): Likewise.
5344 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
5345 (update_and_record_unavailable_insns): Strengthen local "bb_end"
5346 from rtx to rtx_insn *.
5347 (maybe_emit_renaming_copy): Likewise for param "insn".
5348 (maybe_emit_speculative_check): Likewise.
5349 (handle_emitting_transformations): Likewise.
5350 (remove_insn_from_stream): Likewise.
5351 (code_motion_process_successors): Strengthen local "succ" from rtx
5352 to insn_t.
5353
5354 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5355
5356 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
5357 ilist_t, not _xlist_t;
5358 (ILIST_INSN): Define in terms of new union field "insn".
5359 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
5360 _XLIST_NEXT.
5361 (struct _list_node): Add new field "insn" to the union, of type
5362 insn_t.
5363 (ilist_add): Replace macro with an inline function, requiring an
5364 insn_t.
5365 (ilist_remove): Define this macro directly in terms of
5366 _list_remove, rather than indirectly via _xlist_remove.
5367 (ilist_clear): Likewise, in terms of _list_clear rather than
5368 _xlist_clear.
5369 (ilist_is_in_p): Replace macro with an inline function, requiring
5370 an insn_t.
5371 (_list_iter_cond_insn): New function.
5372 (ilist_iter_remove): Define this macro directly in terms of
5373 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
5374 (ilist_iterator): Define directly in terms of _list_iterator
5375 rather than indirectly through _xlist_iterator.
5376 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
5377 than in terms of _FOR_EACH_X.
5378 (FOR_EACH_INSN_1): Likewise.
5379
5380 2014-08-26 Joseph Myers <joseph@codesourcery.com>
5381
5382 PR target/60606
5383 PR target/61330
5384 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
5385 DECL_HARD_REGISTER and return for invalid register specifications.
5386 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
5387 DECL_HARD_REGISTER, call expand_one_error_var.
5388 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
5389 CC_REGNUM with non-MODE_CC modes.
5390 (arm_regno_class): Return NO_REGS for PC_REGNUM.
5391
5392 2014-08-26 Marek Polacek <polacek@redhat.com>
5393
5394 PR c/61271
5395 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
5396
5397 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
5398
5399 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
5400 qi cost; add di cost.
5401 (cortexa57_addrcost_table): Likewise.
5402
5403 2014-08-26 Marek Polacek <polacek@redhat.com>
5404
5405 PR c/61271
5406 * expr.c (is_aligning_offset): Remove logical not.
5407
5408 2014-08-26 Marek Polacek <polacek@redhat.com>
5409
5410 PR c/61271
5411 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
5412 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
5413
5414 2014-08-26 Richard Biener <rguenther@suse.de>
5415
5416 PR tree-optimization/62175
5417 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
5418 expand possibly trapping operations.
5419
5420 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5421
5422 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
5423 "insn" from rtx to rtx_insn *.
5424 (permute_load): Likewise for param "insn".
5425 (permute_store): Likewise.
5426 (handle_special_swappables): Likewise for local "insn".
5427 (replace_swap_with_copy): Likewise for locals "insn" and
5428 "new_insn".
5429 (rs6000_analyze_swaps): Likewise for local "insn".
5430
5431 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5432
5433 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
5434 to rtx_insn *.
5435
5436 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5437
5438 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
5439 "note_list" from rtx to rtx_insn *.
5440 (BB_NOTE_LIST): Replace this function and...
5441 (SET_BB_NOTE_LIST): ...this function with...
5442 (BB_NOTE_LIST): ...the former macro implementation.
5443
5444 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
5445 local "from_start" from rtx to rtx_insn *. Strengthen param
5446 "to_endp" from rtx * to rtx_insn **.
5447
5448 * haifa-sched.c (concat_note_lists): Likewise.
5449 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
5450 BB_NOTE_LIST.
5451 (sel_restore_notes): Likewise.
5452 (move_bb_info): Likewise.
5453 (BB_NOTE_LIST): Delete this function.
5454 (SET_BB_NOTE_LIST): Delete this function.
5455 * sel-sched.c (create_block_for_bookkeeping): Eliminate
5456 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
5457
5458 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5459
5460 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
5461 from rtx * to rtx_insn **.
5462 (reorder2): Likewise.
5463 (dependencies_evaluation_hook): Strengthen params "head", "tail"
5464 from rtx to rtx_insn *.
5465
5466 * doc/tm.texi: Update mechanically for above change to target.def.
5467
5468 * sched-int.h (note_list): Strengthen this variable from rtx to
5469 rtx_insn *.
5470 (remove_notes): Likewise for both params.
5471 (restore_other_notes): Likewise for return type and first param.
5472 (struct ready_list): Strengthen field "vec" from rtx * to
5473 rtx_insn **.
5474 (struct dep_replacement): Strenghten field "insn" from rtx to
5475 rtx_insn *.
5476 (struct deps_desc): Likewise for fields "last_debug_insn",
5477 "last_args_size".
5478 (struct haifa_sched_info): Likewise for callback field
5479 "can_schedule_ready_p"'s param, for first param of "new_ready"
5480 callback field, for both params of "rank" callback field, for
5481 first field of "print_insn" callback field (with a const), for
5482 both params of "contributes_to_priority" callback, for param
5483 of "insn_finishes_block_p" callback, for fields "prev_head",
5484 "next_tail", "head", "tail", for first param of "add_remove_insn"
5485 callback, for first param of "begin_schedule_ready" callback, for
5486 both params of "begin_move_insn" callback, and for second param
5487 of "advance_target_bb" callback.
5488 (add_dependence): Likewise for params 1 and 2.
5489 (sched_analyze): Likewise for params 2 and 3.
5490 (deps_analyze_insn): Likewise for param 2.
5491 (ready_element): Likewise for return type.
5492 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
5493 (try_ready): Strenghten param from rtx to rtx_insn *.
5494 (sched_emit_insn): Likewise for return type.
5495 (record_delay_slot_pair): Likewise for params 1 and 2.
5496 (add_delay_dependencies): Likewise for param.
5497 (contributes_to_priority): Likewise for both params.
5498 (find_modifiable_mems): Likewise.
5499
5500 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
5501 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
5502 "first_older_only_insn" from rtx to rtx_insn *.
5503 (arm_sched_reorder): Strengthen param "ready" from rtx * to
5504 rtx_insn **.
5505
5506 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
5507 "last_scheduled_iter0" from rtx to rtx_insn *.
5508 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
5509 (c6x_sched_reorder_1): Strengthen param "ready" and locals
5510 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
5511 "insn" from rtx to rtx_insn *.
5512 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
5513 rtx_insn **.
5514 (c6x_sched_reorder2): Strengthen param "ready" and locals
5515 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
5516 "insn" from rtx to rtx_insn *.
5517 (c6x_variable_issue): Add a checked cast when assigning from insn
5518 to ss.last_scheduled_iter0.
5519 (split_delayed_branch): Strengthen param "insn" and local "i1"
5520 from rtx to rtx_insn *.
5521 (split_delayed_nonbranch): Likewise.
5522 (undo_split_delayed_nonbranch): Likewise for local "insn".
5523 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
5524 "entry_after", "end_packet", "head_insn", "tail_insn",
5525 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
5526 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
5527 to rtx_insn **. Remove now-redundant checked cast on last_insn,
5528 but add a checked cast on loop->start_label. Consolidate calls to
5529 avoid assigning result of gen_spkernel to "insn", now an
5530 rtx_insn *.
5531
5532 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
5533 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
5534 rtx to rtx_insn *.
5535 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
5536 rtx_insn **. Strengthen locals "top", "next" from rtx to
5537 rtx_insn *.
5538 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
5539 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
5540 (add_parameter_dependencies): Strengthen params "call", "head" and
5541 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
5542 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
5543 (add_dependee_for_func_arg): Likewise for param "arg" and local
5544 "insn".
5545 (ix86_dependencies_evaluation_hook): Likewise for params "head",
5546 "tail" and locals "insn", "first_arg".
5547
5548 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
5549 for params "head", "tail" and locals "insn", "next", "next_tail".
5550 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
5551 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
5552 "insn", "lowest", "highest" from rtx to rtx_insn *.
5553 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
5554 rtx_insn **.
5555 (ia64_sched_reorder2): Likewise.
5556
5557 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
5558 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
5559 from rtx * to rtx_insn **.
5560 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
5561 rtx_insn **.
5562 (mep_print_sched_insn): Strengthen param "insn" from rtx to
5563 rtx_insn *.
5564 (mep_sched_reorder): Strengthen param "ready" from rtx * to
5565 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
5566 to rtx_insn *.
5567
5568 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
5569 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
5570 to rtx_insn *.
5571 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
5572 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
5573 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
5574 rtx_insn **.
5575 (vr4130_reorder): Likewise.
5576 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
5577 rtx to rtx_insn *.
5578 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
5579 rtx_insn **.
5580 (mips_sched_reorder): Likewise.
5581 (mips_sched_reorder2): Likewise.
5582
5583 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
5584
5585 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
5586 Strengthen local "tmp" from rtx to rtx_insn *.
5587 (rs6000_sched_reorder2): Likewise.
5588
5589 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
5590 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
5591 (s390_sched_reorder): Strengthen param "ready" from rtx * to
5592 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
5593
5594 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
5595 "tmp2" from rtx to rtx_insn *.
5596 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
5597 Strengthen local "insn" from rtx to rtx_insn *.
5598 (ready_reorder): Strengthen param "ready" from rtx * to
5599 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
5600 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
5601 (sh_reorder2): Likewise.
5602
5603 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
5604 local "insn" from rtx to rtx_insn *.
5605
5606 * haifa-sched.c (note_list): Strengthen this variable from rtx to
5607 rtx_insn *.
5608 (scheduled_insns): Strengthen this variable from vec<rtx> to
5609 vec<rtx_insn *>.
5610 (set_modulo_params): Likewise for locals "i1", "i2".
5611 (record_delay_slot_pair): Likewise for params "i1", "i2".
5612 (add_delay_dependencies): Likewise for param "insn".
5613 (cond_clobbered_p): Likewise.
5614 (recompute_todo_spec): Likewise for local "prev".
5615 (last_scheduled_insn): Likewise for this variable.
5616 (nonscheduled_insns_begin): Likewise.
5617 (model_set_excess_costs): Strengthen param "insns" from rtx * to
5618 rtx_insn **.
5619 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
5620 rtx_insn *.
5621 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
5622 Strengthen local "insn" from rtx to rtx_insn *.
5623 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
5624 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
5625 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
5626 (ready_remove_first): Likewise for return type and local "t".
5627 (ready_element): Likewise for return type.
5628 (ready_remove): Likewise for return type and local "t".
5629 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
5630 (check_clobbered_conditions): Strengthen local "x" from rtx to
5631 rtx_insn *, adding a checked cast.
5632 (schedule_insn): Likewise for param "insn".
5633 (remove_notes): Likewise for params "head", "tail" and locals
5634 "next_tail", "insn", "next".
5635 (struct haifa_saved_data): Likewise for fields
5636 "last_scheduled_insn", "nonscheduled_insns_begin".
5637 (save_backtrack_point): Update for change to field "vec" of
5638 struct ready_list.
5639 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
5640 rtx_insn **.
5641 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
5642 from rtx to rtx_insn *
5643 (resolve_dependencies): Strengthen param "insn" from rtx to
5644 rtx_insn *
5645 (restore_other_notes): Likewise for return type, for param "head"
5646 and local "note_head".
5647 (undo_all_replacements): Likewise for local "insn".
5648 (first_nonscheduled_insn): Likewise for return type and local "insn".
5649 (queue_to_ready): Likewise for local "insn", adding checked casts.
5650 (early_queue_to_ready): Likewise for local "insn".
5651 (debug_ready_list_1): Strengthen local "p" from rtx * to
5652 rtx_insn **.
5653 (move_insn): Strengthen param "insn" and local "note" from rtx to
5654 rtx_insn *
5655 (insn_finishes_cycle_p): Likewise for param "insn".
5656 (max_issue): Likewise for local "insn".
5657 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
5658 to rtx_insn **.
5659 (commit_schedule): Strengthen param "prev_head" and local "insn"
5660 from rtx to rtx_insn *
5661 (prune_ready_list): Likewise for local "insn".
5662 (schedule_block): Likewise for locals "prev_head", "head", "tail",
5663 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
5664 (set_priorities): Likewise for local "prev_head".
5665 (try_ready): Likewise for param "next".
5666 (fix_tick_ready): Likewise.
5667 (change_queue_index): Likewise.
5668 (sched_extend_ready_list): Update for change to field "vec" of
5669 struct ready_list.
5670 (generate_recovery_code): Strengthen param "insn" from rtx to
5671 rtx_insn *.
5672 (begin_speculative_block): Likewise.
5673 (create_check_block_twin): Likewise for param "insn" and locals
5674 "label", "check", "twin". Introduce local "check_pat" to avoid
5675 "check" being used as a plain rtx before being used as an insn.
5676 (fix_recovery_deps): Add a checked cast to rtx_insn * when
5677 extracting elements from ready_list.
5678 (sched_remove_insn): Strengthen param "insn" from rtx to
5679 rtx_insn *.
5680 (sched_emit_insn): Likewise for return type.
5681 (ready_remove_first_dispatch): Likewise for return type and local
5682 "insn".
5683
5684 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
5685
5686 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
5687 const rtx_insn *.
5688
5689 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
5690 from rtx to rtx_insn *.
5691 (add_dependence_list): Likewise for param "insn". Add a checked
5692 cast.
5693 (add_dependence_list_and_free): Strengthen param "insn" from rtx
5694 to rtx_insn *. Strengthen param "list_p" from rtx * to
5695 rtx_insn **.
5696 (chain_to_prev_insn): Strengthen param "insn" and locals
5697 "prec_nonnote", "i" from rtx to rtx_insn *.
5698 (flush_pending_lists): Likewise for param "insn".
5699 (cur_insn): Likewise for this variable.
5700 (haifa_start_insn): Add a checked cast.
5701 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
5702 (sched_analyze_reg): Likewise for param "insn".
5703 (sched_analyze_1): Likewise.
5704 (sched_analyze_2): Likewise. Add checked casts.
5705 (sched_analyze_insn): Likewise. Also for local "prev".
5706 (deps_analyze_insn): Likewise for param "insn".
5707 (sched_analyze): Likewise for params "head", "tail" and local "insn".
5708 (add_dependence_1): Likewise for params "insn", "elem".
5709 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
5710 (parse_add_or_inc): Likewise for param "insn".
5711 (find_inc): Likewise for local "inc_cand".
5712 (find_modifiable_mems): Likewise for params "head", "tail" and
5713 locals "insn", "next_tail".
5714
5715 * sched-ebb.c (init_ready_list): Likewise for local "insn".
5716 (begin_schedule_ready): Likewise for param "insn".
5717 (begin_move_insn): Likewise for params "insn" and "last".
5718 (ebb_print_insn): Strengthen param "insn" from const_rtx to
5719 const rtx_insn *.
5720 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
5721 (ebb_contributes_to_priority): Likewise for params "next", "insn".
5722 (ebb_add_remove_insn): Likewise for param "insn".
5723 (advance_target_bb): Likewise.
5724
5725 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
5726 "insn".
5727 (check_live): Likewise for param "insn".
5728 (init_ready_list): Likewise for local "insn".
5729 (can_schedule_ready_p): Likewise for param "insn".
5730 (begin_schedule_ready): Likewise.
5731 (new_ready): Likewise for param "next".
5732 (rgn_print_insn): Likewise for param "insn".
5733 (rgn_rank): Likewise for params "insn1", "insn2".
5734 (contributes_to_priority): Likewise for params "next", "insn".
5735 (rgn_insn_finishes_block_p): Likewise for param "insn".
5736 (add_branch_dependences): Likewise for params "head", "tail" and
5737 locals "insn", "last".
5738 (rgn_add_remove_insn): Likewise for param "insn".
5739 (advance_target_bb): Likewise.
5740
5741 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
5742 const_rtx to const rtx_insn *.
5743
5744 * sel-sched-dump.h (sel_print_insn): Likewise.
5745
5746 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
5747 (deps_init_id): Likewise.
5748
5749 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
5750 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
5751 rtx_insn **.
5752
5753 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5754
5755 * output.h (final_start_function): Strengthen param 1 from rtx to
5756 rtx_insn *.
5757
5758 * final.c (final_start_function): Likewise, renaming back from
5759 "uncast_first" to "first", and dropping the checked cast from rtx
5760 to rtx_insn *.
5761
5762 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5763
5764 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
5765 * final.c (final): Likewise. Rename param back from
5766 "uncast_first" to "first" and eliminate the checked cast from rtx
5767 to rtx_insn *.
5768
5769 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5770
5771 * output.h (shorten_branches): Strengthen param from rtx to
5772 rtx_insn *.
5773
5774 * final.c (shorten_branches): Likewise, renaming param back from
5775 "uncast_first" to "first", and dropping the checked cast from rtx
5776 to rtx_insn *.
5777
5778 * genattr.c (gen_attr): Likewise when writing out the prototype of
5779 shorten_branches.
5780
5781 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5782
5783 * sched-int.h (struct haifa_sched_info): Strengthen fields
5784 "prev_head" and "next_tail" from rtx to rtx_insn *.
5785
5786 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5787
5788 * rtl.h (rtx_jump_table_data::get_labels): New method.
5789 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
5790 with use of the new rtx_jump_table_data::get_labels method.
5791 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
5792 to rtx_jump_table_data *. Simplify by using get_labels method.
5793 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
5794 a dyn_cast, introducing local "table", using it to replace
5795 label-lookup logic with a get_labels method call.
5796 (patch_jump_insn): Simplify using get_labels method.
5797 * dwarf2cfi.c (create_trace_edges): Likewise.
5798 * rtlanal.c (label_is_jump_target_p): Likewise.
5799
5800 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5801
5802 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
5803 to rtx_insn *.
5804
5805 * emit-rtl.c (unshare_all_rtl_1): Likewise.
5806 (unshare_all_rtl_again): Likewise, also for local "p".
5807
5808 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5809
5810 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
5811 to rtx_insn *.
5812 * cfgrtl.c (delete_insn_and_edges): Likewise.
5813
5814 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5815
5816 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
5817 from rtx to rtx_insn *.
5818
5819 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
5820
5821 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5822
5823 * function.c (thread_prologue_and_epilogue_insns): Likewise for
5824 locals "returnjump", "epilogue_end", "insn", "next".
5825
5826 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
5827 "returnjump" from rtx * to rtx_insn **.
5828 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
5829
5830 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5831
5832 * basic-block.h (struct edge_def). Strengthen "r" within
5833 union edge_def_insns from rtx to rtx_insn *.
5834
5835 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
5836 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
5837 rtx_insn *.
5838 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
5839 from rtx to rtx_insn *.
5840 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
5841 rtx_insn *.
5842 * postreload-gcse.c (reg_killed_on_edge): Likewise.
5843 (reg_used_on_edge): Likewise.
5844 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
5845 (gt_pch_nx): New overload for rtx_insn *&.
5846 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
5847 from rtx to rtx_insn *.
5848
5849 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5850
5851 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
5852 from rtx to rtx_insn *.
5853 (BB_FOOTER): Replace function with access macro.
5854 (SET_BB_FOOTER): Delete.
5855
5856 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
5857 with BB_FOOTER.
5858 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5859 (emit_barrier_after_bb): Likewise.
5860 (record_effective_endpoints): Likewise.
5861 (relink_block_chain): Likewise.
5862 (fixup_fallthru_exit_predecessor): Likewise.
5863 (cfg_layout_duplicate_bb): Likewise.
5864 (cfg_layout_split_block): Likewise.
5865 (cfg_layout_delete_block): Likewise.
5866 (cfg_layout_merge_blocks): Likewise.
5867 (BB_FOOTER): Delete function.
5868 (SET_BB_FOOTER): Delete function.
5869 * combine.c (update_cfg_for_uncondjump): Replace uses of
5870 SET_BB_FOOTER with BB_FOOTER.
5871
5872 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5873
5874 * except.h (struct eh_landing_pad_d): Strengthen field
5875 "landing_pad" from rtx to rtx_code_label *.
5876
5877 * except.c (sjlj_emit_dispatch_table): Likewise for param
5878 "dispatch_label"
5879 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
5880
5881 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5882
5883 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
5884 first param from rtx to rtx_insn *.
5885 * config/xtensa/xtensa.c (struct machine_function): Likewise for
5886 field "set_frame_ptr_insn".
5887 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
5888 "csend" from rtx to rtx_code_label *.
5889 (xtensa_expand_atomic): Likewise for local "csloop".
5890 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
5891 rtx_insn *.
5892 (xtensa_call_tls_desc): Likewise for return type and locals
5893 "call_insn", "insns".
5894 (xtensa_legitimize_tls_address): Likewise for local "insns".
5895 (xtensa_expand_prologue): Likewise for locals "insn", "first".
5896
5897 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5898
5899 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
5900 first param from rtx to rtx_insn *.
5901 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
5902 "insn".
5903
5904 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5905
5906 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
5907 Strengthen param 1 from rtx to rtx_insn *.
5908 (tilepro_output_cbranch): Likewise.
5909 (tilepro_adjust_insn_length): Likewise.
5910 (tilepro_final_prescan_insn): Likewise for sole param.
5911
5912 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
5913 Likewise for local "last".
5914 (cbranch_predicted_p): Likewise for param "insn".
5915 (tilepro_output_simple_cbranch_with_opcode): Likewise.
5916 (tilepro_output_cbranch_with_opcode): Likewise.
5917 (tilepro_output_cbranch): Likewise.
5918 (frame_emit_load): Likewise for return type and locals "seq",
5919 "insn".
5920 (emit_sp_adjust): Likewise for return type and local "insn".
5921 (tilepro_expand_epilogue): Likewise for locals "last_insn",
5922 "insn".
5923 (tilepro_adjust_insn_length): Likewise for param "insn".
5924 (next_insn_to_bundle): Likewise for return type and params
5925 "r", "end".
5926 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
5927 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
5928 local "new_insns".
5929 (match_addli_pcrel): Likewise for param "insn".
5930 (replace_addli_pcrel): Likewise.
5931 (match_auli_pcrel): Likewise.
5932 (replace_auli_pcrel): Likewise.
5933 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
5934 "next_insn".
5935 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
5936 "queue", "next_queue", "prev".
5937 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
5938 (tilepro_final_prescan_insn): Likewise for param "insn".
5939
5940 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5941
5942 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
5943 Strengthen param 1 from rtx to rtx_insn *.
5944 (tilegx_output_cbranch): Likewise.
5945 (tilegx_adjust_insn_length): Likewise.
5946 (tilegx_final_prescan_insn): Likewise for sole param.
5947
5948 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
5949 or local "last".
5950 (cbranch_predicted_p): Likewise for param "insn".
5951 (tilegx_output_simple_cbranch_with_opcode): Likewise.
5952 (tilegx_output_cbranch_with_opcode): Likewise.
5953 (tilegx_output_cbranch): Likewise.
5954 (frame_emit_load): Likewise for return type.
5955 (set_frame_related_p): Likewise for locals "seq", "insn".
5956 (emit_sp_adjust): Likewise for return type, and for local "insn".
5957 Introduce local "pat" for use in place of "insn" where the latter
5958 isn't an instruction.
5959 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
5960 from rtx to rtx_insn *.
5961 (tilegx_adjust_insn_length): Likewise for param "insn".
5962 (next_insn_to_bundle): Likewise for return type and params "r" and
5963 "end".
5964 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
5965 "end".
5966 (replace_insns): Likewise for params "old_insn", "new_insns".
5967 (replace_mov_pcrel_step1): Likewise for param "insn" and local
5968 "new_insns".
5969 (replace_mov_pcrel_step2): Likewise.
5970 (replace_mov_pcrel_step3): Likewise.
5971 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
5972 "next_insn".
5973 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
5974 "queue", "next_queue", "prev".
5975 (tilegx_output_mi_thunk): Likewise for local "insn".
5976 (tilegx_final_prescan_insn): Likewise for param "insn".
5977
5978 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5979
5980 * config/spu/spu.c (frame_emit_store): Strengthen return type from
5981 rtx to rtx_insn *.
5982 (frame_emit_load): Likewise.
5983 (frame_emit_add_imm): Likewise, also for local "insn".
5984 (spu_expand_prologue): Likewise for local "insn".
5985 (struct spu_bb_info): Likewise for field "prop_jump".
5986 (emit_nop_for_insn): Likewise for param "insn" and local
5987 "new_insn".
5988 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
5989 "hbr_insn".
5990 (spu_emit_branch_hint): Likewise for params "before", "branch" and
5991 locals "hint", "insn".
5992 (get_branch_target): Likewise for param "branch".
5993 (insn_clobbers_hbr): Likewise for param "insn".
5994 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
5995 locals "insn", "before_4", "before_16".
5996 (insert_hbrp): Likewise for local "insn".
5997 (spu_machine_dependent_reorg): Likewise for locals "branch",
5998 "insn", "next", "bbend".
5999 (uses_ls_unit): Likewise for param "insn".
6000 (get_pipe): Likewise.
6001 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
6002 introducing a checked cast.
6003 (spu_sched_adjust_cost): Likewise for params "insn" and
6004 "dep_insn".
6005 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
6006 (spu_sms_res_mii): Likewise.
6007
6008 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6009
6010 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
6011 from rtx to rtx_insn *.
6012 (output_cbranch): Likewise for param 6.
6013 (output_return): Likewise for param 1.
6014 (output_sibcall): Likewise.
6015 (output_v8plus_shift): Likewise.
6016 (output_v8plus_mult): Likewise.
6017 (output_v9branch): Likewise for param 7.
6018 (output_cbcond): Likewise for param 3.
6019
6020 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
6021 for local "insn".
6022 (sparc_legitimize_pic_address): Likewise.
6023 (sparc_emit_call_insn): Likewise.
6024 (emit_save_or_restore_regs): Likewise.
6025 (emit_window_save): Likewise for return type and local "insn".
6026 (sparc_expand_prologue): Likewise for local "insn".
6027 (sparc_flat_expand_prologue): Likewise.
6028 (output_return): Likewise for param "insn".
6029 (output_sibcall): Likewise for param "insn" and local "delay".
6030 (output_ubranch): Likewise for param "insn".
6031 (output_cbranch): Likewise.
6032 (output_cbcond): Likewise.
6033 (output_v9branch): Likewise.
6034 (output_v8plus_shift): Likewise.
6035 (sparc_output_mi_thunk): Likewise for local "insn".
6036 (get_some_local_dynamic_name): Likewise.
6037 (output_v8plus_mult): Likewise for param "insn".
6038
6039 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6040
6041 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
6042 from rtx to rtx_insn *.
6043 (output_branchy_insn): Likewise for param 3.
6044 (output_far_jump): Likewise for param 1.
6045 (final_prescan_insn): Likewise.
6046 (sh_insn_length_adjustment): Likewise for sole param.
6047
6048 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
6049 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
6050 rtx_code_label *.
6051 (sh_emit_compare_and_set): Likewise for local "lab".
6052 (output_far_jump): Strengthen param "insn" and local "prev" from
6053 rtx to rtx_insn *.
6054 (output_branchy_insn): Likewise for param "insn" and local
6055 "next_insn".
6056 (output_ieee_ccmpeq): Likewise for param "insn".
6057 (struct label_ref_list_d): Strengthen field "label" from rtx to
6058 rtx_code_label *.
6059 (pool_node): Likewise.
6060 (pool_window_label): Likewise for this global.
6061 (add_constant): Likewise for return type and locals "lab", "new_rtx".
6062 (dump_table): Strengthen params "start", "barrier" and local
6063 "scan" from rtx to rtx_insn *.
6064 (broken_move): Likewise for param "insn".
6065 (untangle_mova): Likewise for params "first_mova" and "new_mova".
6066 Strengthen param "first_mova" from rtx * to rtx_insn **.
6067 (mova_p): Likewise for param "insn".
6068 (fixup_mova): Likewise for param "mova".
6069 (find_barrier): Likewise for return type, params "mova" and
6070 "from", and locals "barrier_before_mova", "found_barrier",
6071 "good_barrier", "orig", "last_symoff", "next". Strengthen local
6072 "label" from rtx to rtx_code_label *.
6073 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
6074 rtx to rtx_insn *.
6075 (sh_reorg): Likewise for locals "link", "scan", "barrier".
6076 (split_branches): Likewise for param "first" and local "insn".
6077 (final_prescan_insn): Likewise for param "insn".
6078 (sequence_insn_p): Likewise for locals "prev", "next".
6079 (sh_insn_length_adjustment): Likewise for param "insn".
6080 (sh_can_redirect_branch): Likewise for local "insn".
6081 (find_r0_life_regions): Likewise for locals "end", "insn".
6082 (sh_output_mi_thunk): Likewise for local "insns".
6083
6084 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6085
6086 * config/score/score.c (score_output_mi_thunk): Strengthen local
6087 "insn" from rtx to rtx_insn *.
6088 (score_prologue): Likewise.
6089
6090 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6091
6092 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
6093 1 from rtx to rtx_insn *.
6094 (s390_emit_jump): Likewise for return type.
6095 (s390_emit_call): Likewise.
6096 (s390_load_got): Likewise.
6097
6098 * config/s390/s390.c (last_scheduled_insn): Likewise for this
6099 variable.
6100 (s390_match_ccmode): Likewise for param "insn".
6101 (s390_emit_jump): Likewise for return type.
6102 (s390_split_branches): Likewise for local "label".
6103 (struct constant): Strengthen field "label" from rtx to
6104 rtx_code_label *.
6105 (struct constant_pool): Likewise for field "label". Strengthen
6106 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
6107 rtx_insn *.
6108 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
6109 insns.
6110 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
6111 (s390_end_pool): Likewise.
6112 (s390_dump_pool): Likewise for local "insn".
6113 (s390_mainpool_start): Likewise.
6114 (s390_chunkify_start): Likewise.
6115 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
6116 with insns. Strengthen locals "label", "jump", "barrier", "next",
6117 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
6118 (s390_chunkify_finish): Strengthen local "insn" from rtx to
6119 rtx_insn *.
6120 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
6121 "jump", "label", "next_insn".
6122 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
6123 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
6124 "tbegin_insn".
6125 (s390_load_got): Likewise for return type and local "insns".
6126 (s390_save_gprs_to_fprs): Likewise for local "insn".
6127 (s390_restore_gprs_from_fprs): Likewise.
6128 (pass_s390_early_mach::execute): Likewise.
6129 (s390_emit_prologue): Likewise for local "insns".
6130 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
6131 rtx_code_label *.
6132 (s390_emit_call): Strengthen return type and local "insn" from
6133 rtx to rtx_insn *.
6134 (s390_emit_tpf_eh_return): Likewise for local "insn".
6135 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
6136 "next_insn", introducing locals "s_pat", "rpat" to allow this.
6137 (s390_fix_long_loop_prediction): Likewise for param "insn" and
6138 local "cur_insn".
6139 (s390_non_addr_reg_read_p): Likewise for param "insn".
6140 (find_cond_jump): Likewise for return type and param "insn".
6141 (s390_swap_cmp): Likewise for param "insn".
6142 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
6143 "prev_insn", "next_insn".
6144 (s390_reorg): Likewise for locals "insn", "target".
6145 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
6146 (s390_sched_variable_issue): For now, rename param "insn" to
6147 "uncast_insn", introducing a checked cast.
6148 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
6149 insn.
6150 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
6151 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
6152
6153 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6154
6155 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
6156 param from rtx to rtx_insn *.
6157 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
6158
6159 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6160
6161 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
6162 4 from rtx to rtx_insn *.
6163 (rs6000_final_prescan_insn): Likewise for first param.
6164 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
6165 local "insn".
6166 (rs6000_get_some_local_dynamic_name): Likewise.
6167 (output_cbranch): Likewise for param "insn".
6168 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
6169 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
6170 (rs6000_emit_allocate_stack): Likewise for local "insn".
6171 (load_cr_save): Likewise.
6172 (restore_saved_cr): Likewise.
6173 (restore_saved_lr): Likewise.
6174 (emit_cfa_restores): Likewise.
6175 (rs6000_output_function_epilogue): Likewise for locals "insn" and
6176 "deleted_debug_label".
6177 (rs6000_output_mi_thunk): Likewise for local "insn".
6178 (rs6000_final_prescan_insn): Likewise for param "insn".
6179
6180 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6181
6182 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
6183 Strengthen param "insn" from rtx to rtx_insn *.
6184 * config/picochip/picochip.c (picochip_current_prescan_insn):
6185 Likewise for this variable.
6186 (picochip_final_prescan_insn): Likewise for param "insn".
6187
6188 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6189
6190 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
6191 from rtx to rtx_insn *.
6192 (pa_output_indirect_call): Likewise.
6193 (pa_adjust_insn_length): Likewise.
6194 (pa_attr_length_millicode_call): Likewise.
6195 (pa_attr_length_call): Likewise.
6196 (pa_attr_length_indirect_call): Likewise.
6197
6198 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
6199 "insn".
6200 (pa_attr_length_millicode_call): Likewise.
6201 (pa_attr_length_call): Likewise.
6202 (pa_output_call): Likewise.
6203 (pa_attr_length_indirect_call): Likewise.
6204 (pa_output_indirect_call): Likewise.
6205
6206 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6207
6208 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
6209 Strengthen first param from rtx to rtx_insn *.
6210 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
6211 param "insn".
6212
6213 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6214
6215 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
6216 type from rtx to rtx_insn *.
6217 (mips_expand_call): Likewise.
6218 (mips_adjust_insn_length): Likewise for first param.
6219 (mips_output_conditional_branch): Likewise.
6220 (mips_output_order_conditional_branch): Likewise.
6221 (mips_final_prescan_insn): Likewise.
6222
6223 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
6224 rtx_insn * for the SEQUENCE case.
6225 (SEQ_END): Likewise.
6226 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
6227 (mips_emit_call_insn): Likewise, also for local "insn".
6228 (mips16_gp_pseudo_reg): Likewise for local "scan".
6229 (mips16_build_call_stub): Likewise for return type and for local
6230 "insn". Introduce a new local "pattern" so that "insn" can indeed
6231 be an insn.
6232 (mips_expand_call): Strengthen return type and local "insn" from
6233 rtx to rtx_insn *.
6234 (mips_block_move_loop): Strengthen local "label" from rtx to
6235 rtx_code_label *.
6236 (mips_expand_synci_loop): Likewise for locals "label",
6237 "end_label".
6238 (mips_set_frame_expr): Strengthen local "insn" from rtx to
6239 rtx_insn *.
6240 (mips16e_collect_argument_saves): Likewise for locals "insn",
6241 "next".
6242 (mips_find_gp_ref): Likewise for param of callback for "pred"
6243 param, and for local "insn".
6244 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
6245 (mips_insn_has_flexible_gp_ref_p): Likewise.
6246 (mips_epilogue_emit_cfa_restores): Likewise for return type and
6247 local "insn".
6248 (mips_epilogue_set_cfa): Likewise for local "insn".
6249 (mips_expand_epilogue): Likewise.
6250 (mips_adjust_insn_length): Likewise for param "insn".
6251 (mips_output_conditional_branch): Likewise.
6252 (mips_output_order_conditional_branch): Likewise.
6253 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
6254 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
6255 "falu2_turn_enabled_insn".
6256 (mips_builtin_branch_and_move): Strengthen locals "true_label",
6257 "done_label" from rtx to rtx_code_label *.
6258 (struct mips16_constant): Likewise for field "label".
6259 (mips16_add_constant): Likewise for return type.
6260 (mips16_emit_constants_1): Strengthen return type and param "insn"
6261 from rtx to rtx_insn *.
6262 (mips16_emit_constants): Likewise for param "insn".
6263 (mips16_insn_length): Likewise.
6264 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
6265 to rtx_code_label *.
6266 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
6267 from rtx to rtx_insn *.
6268 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
6269 "jump". Strengthen local "label" from rtx to rtx_code_label *.
6270 (r10k_simplify_address): Strengthen param "insn" and local
6271 "def_insn" from rtx to rtx_insn *.
6272 (r10k_safe_address_p): Strengthen param "insn" from rtx to
6273 rtx_insn *.
6274 (r10k_needs_protection_p_1): Update target type of cast of data
6275 from to rtx to rtx_insn *.
6276 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
6277 rtx * to rtx_insn **.
6278 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
6279 rtx_insn *.
6280 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
6281 (mips_call_expr_from_insn): Likewise for param "insn".
6282 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
6283 (mips_find_pic_call_symbol): Likewise for param "insn".
6284 (mips_annotate_pic_calls): Likewise for local "insn".
6285 (mips_sim_insn): Likewise for this variable.
6286 (struct mips_sim): Likewise for field "insn" within elements of
6287 last_set array.
6288 (mips_sim_wait_reg): Likewise for param "insn".
6289 (mips_sim_wait_regs): Likewise.
6290 (mips_sim_wait_units): Likewise.
6291 (mips_sim_wait_insn): Likewise.
6292 (mips_sim_issue_insn): Likewise.
6293 (mips_sim_finish_insn): Likewise.
6294 (mips_seq_time): Likewise for param "seq" and local "insn".
6295 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
6296 locals "first", "second".
6297 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
6298 "last", "last2", "next".
6299 (mips_avoid_hazard): Likewise for params "after", "insn".
6300 (mips_reorg_process_insns): Likewise for locals "insn",
6301 "last_insn", "subinsn", "next_insn".
6302 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
6303 (mips16_split_long_branches): Likewise for locals "insn" "jump",
6304 "jump_sequence".
6305 (mips_output_mi_thunk): Likewise for local "insn".
6306 (mips_final_prescan_insn): Likewise for param "insn".
6307
6308 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6309
6310 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
6311 Strengthen return type and local "insns" from rtx to rtx_insn *.
6312 (microblaze_legitimize_tls_address): Likewise for local "insns".
6313 (microblaze_block_move_loop): Strengthen local "label" from rtx
6314 to rtx_code_label *.
6315 (microblaze_expand_prologue): Strengthen two locals named "insn"
6316 from rtx to rtx_insn *.
6317 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
6318 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
6319 "insn". Strengthen locals "div_label", "div_end_label" from rtx
6320 to rtx_code_label *.
6321
6322 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6323
6324 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
6325 param from rtx to rtx_insn *.
6326 (mep_reuse_lo): Likewise for third param.
6327 (mep_use_post_modify_p): Likewise for first param.
6328 (mep_core_address_length): Likewise.
6329 (mep_cop_address_length): Likewise.
6330 (mep_final_prescan_insn): Likewise.
6331 (mep_store_data_bypass_p): Likewise for both params.
6332 (mep_mul_hilo_bypass_p): Likewise.
6333 (mep_ipipe_ldc_p): Likewise for param.
6334
6335 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
6336 (mep_rewrite_mult): Likewise.
6337 (mep_rewrite_mulsi3): Likewise.
6338 (mep_rewrite_maddsi3): Likewise.
6339 (mep_reuse_lo_p_1): Likewise.
6340 (mep_reuse_lo_p): Likewise.
6341 (mep_frame_expr): Likewise.
6342 (mep_make_parallel): Likewise for both params.
6343 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
6344 local "insn".
6345 (mep_use_post_modify_p): Likewise for param "insn".
6346 (mep_core_address_length): Likewise.
6347 (mep_cop_address_length): Likewise.
6348 (mep_reg_set_in_function): Likewise for local "insn".
6349 (mep_asm_without_operands_p): Likewise.
6350 (F): Likewise for return type and param "x".
6351 (add_constant): Likewise for local "insn".
6352 (maybe_dead_move): Likewise for return type and local "insn".
6353 (mep_expand_prologue): Likewise for local "insn".
6354 (mep_final_prescan_insn): Likewise for param "insn".
6355 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
6356 "next", "follow", "x".
6357 (mep_insert_repeat_label_last): Likewise for return type, param
6358 "last_insn", and locals "next", "prev". Strengthen param "label"
6359 from rtx to rtx_code_label *.
6360 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
6361 rtx_insn *.
6362 (struct mep_doloop_end): Likewise for fields "insn" and
6363 "fallthrough".
6364 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
6365 Strengthen local "repeat_label" from rtx to rtx_code_label *.
6366 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
6367 rtx_insn *.
6368 (mep_invert_branch): Likewise for params "insn" and "after".
6369 (mep_reorg_erepeat): Likewise for param "insns" and locals
6370 "insn", "prev", "new_last", "barrier", "user". Strengthen local
6371 "l" from rtx to rtx_code_label *.
6372 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
6373 from rtx to rtx_insn *.
6374 (mep_reorg_addcombine): Likewise for param "insns" and locals
6375 "i", "n".
6376 (add_sp_insn_p): Likewise for param "insn".
6377 (mep_reorg_noframe): Likewise for param "insns" and locals
6378 "start_frame_insn", "end_frame_insn", "next".
6379 (mep_reorg): Likewise for local "insns".
6380 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
6381 cast.
6382 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
6383 (mep_mul_hilo_bypass_p): Likewise.
6384 (mep_ipipe_ldc_p): Likewise for param "insn".
6385 (mep_make_bundle): Likewise for return type, param "cop" and local
6386 "insn", splitting out the latter into a new local "seq" for when it
6387 is a SEQUENCE rather than an insn.
6388 (core_insn_p): Likewise for param "insn".
6389 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
6390 "last", "first", "note", "prev", "core_insn".
6391
6392 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6393
6394 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
6395 rtx to rtx_insn *.
6396 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
6397 (m68k_final_prescan_insn): Likewise for first param.
6398
6399 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
6400 (m68k_set_frame_related): Likewise for param "insn".
6401 (output_btst): Likewise for param "insn".
6402 (m68k_final_prescan_insn): Likewise.
6403 (m68k_move_to_reg): Likewise for local "insn".
6404 (m68k_call_tls_get_addr): Likewise for local "insns".
6405 (m68k_call_m68k_read_tp): Likewise.
6406 (strict_low_part_peephole_ok): Likewise for param "first_insn".
6407 (m68k_output_mi_thunk): Likewise for local "insn".
6408
6409 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6410
6411 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
6412 first param from rtx to rtx_insn *.
6413 (iq2000_adjust_insn_length): Likewise.
6414 (iq2000_output_conditional_branch): Likewise.
6415 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
6416 "insn" and local "nop_insn".
6417 (iq2000_annotate_frame_insn): Likewise for param "insn".
6418 (iq2000_expand_prologue): Likewise for both locals "insn".
6419 (iq2000_adjust_insn_length): Likewise for param "insn".
6420 (iq2000_output_conditional_branch): Likewise.
6421
6422 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6423
6424 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
6425 "insns" from rtx to rtx_insn *.
6426 (ia64_emit_cond_move): Likewise for locals "insn", "first".
6427 (struct spill_fill_data): Likewise for field "init_after" and for
6428 elements of array field "prev_insn".
6429 (spill_restore_mem): Likewise for locals "insn", "first".
6430 (do_spill): Likewise for local "insn".
6431 (do_restore): Likewise.
6432 (ia64_expand_prologue): Likewise.
6433 (ia64_expand_epilogue): Likewise.
6434 (emit_insn_group_barriers): Likewise for locals "insn",
6435 "last_label".
6436 (emit_all_insn_group_barriers): Likewise for locals "insn",
6437 "last".
6438 (dfa_stop_insn): Likewise for this global.
6439 (dfa_pre_cycle_insn): Likewise.
6440 (ia64_nop): Likewise.
6441 (final_emit_insn_group_barriers): Likewise for locals "insn",
6442 "last".
6443 (emit_predicate_relation_info): Likewise for locals "head", "n",
6444 "insn", "b", "a".
6445 (ia64_reorg): Likewise for local "insn".
6446 (ia64_output_mi_thunk): Likewise.
6447 (expand_vec_perm_interleave_2): Likewise for local "seq".
6448
6449 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6450
6451 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
6452 param 1 "insn" from rtx to rtx_insn *.
6453 (ix86_use_lea_for_mov): Likewise.
6454 (ix86_avoid_lea_for_addr): Likewise.
6455 (ix86_split_lea_for_addr): Likewise.
6456 (ix86_lea_for_add_ok): Likewise.
6457 (ix86_output_call_insn): Likewise.
6458
6459 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
6460 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
6461 (ix86_output_function_epilogue): Likewise for locals "insn",
6462 "deleted_debug_label".
6463 (legitimize_tls_address): Likewise for local "insn".
6464 (get_some_local_dynamic_name): Likewise.
6465 (increase_distance): Likewise for params "prev", "next".
6466 (distance_non_agu_define_in_bb): Likewise for params "insn",
6467 "start" and locals "prev", "next".
6468 (distance_non_agu_define): Likewise for param "insn".
6469 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
6470 locals "next", "prev".
6471 (distance_agu_use): Likewise for param "insn".
6472 (ix86_lea_outperforms): Likewise.
6473 (ix86_ok_to_clobber_flags): Likewise.
6474 (ix86_avoid_lea_for_add): Likewise.
6475 (ix86_use_lea_for_mov): Likewise.
6476 (ix86_avoid_lea_for_addr): Likewise.
6477 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
6478 (ix86_split_lea_for_addr): Likewise for param "insn".
6479 (ix86_lea_for_add_ok): Likewise for param "insn".
6480 (ix86_expand_carry_flag_compare): Likewise for local
6481 "compare_seq".
6482 (ix86_expand_int_movcc): Likewise.
6483 (ix86_output_call_insn): Likewise for param "insn".
6484 (ix86_output_call_insn): Likewise for local "i".
6485 (x86_output_mi_thunk): Introduce local "insn", using it in place
6486 of "tmp" when dealing with insns.
6487 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
6488 "start".
6489 (ix86_pad_returns): Likewise for locals "ret", "prev".
6490 (ix86_count_insn_bb): Likewise for local "insn".
6491 (ix86_pad_short_function): Likewise for locals "ret", "insn".
6492 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
6493 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
6494 (expand_vec_perm_interleave2): Likewise for local "seq".
6495 (expand_vec_perm_vperm2f128_vblend): Likewise.
6496 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
6497 call to for_each_rtx with for_each_rtx_in_insn.
6498
6499 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6500
6501 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
6502 "label" from rtx to rtx_code_label *.
6503 (ix86_expand_prologue): Likewise.
6504 (ix86_expand_split_stack_prologue): Likewise for locals "label",
6505 "varargs_label".
6506 (ix86_split_idivmod): Likewise for locals "end_label" and
6507 "qimode_label".
6508 (ix86_expand_branch): Likewise for local "label2".
6509 (ix86_expand_aligntest): Likewise for return type and local "label".
6510 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
6511 "top_label".
6512 (expand_movmem_epilogue): Likewise for the various locals named
6513 "label".
6514 (expand_setmem_epilogue): Likewise.
6515 (expand_small_movmem_or_setmem): Likewise for local "label".
6516 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
6517 Strengthen param "done_label" from rtx * to rtx_code_label **.
6518 Strengthen locals "loop_label" and "label" from rtx to
6519 rtx_code_label *.
6520 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
6521 Likewise for locals "loop_label", "label".
6522 (ix86_expand_set_or_movmem): Likewise for locals "label",
6523 "jump_around_label", "hot_label".
6524 (ix86_expand_strlensi_unroll_1): Likewise for locals
6525 "align_2_label", align_3_label", "align_4_label", "end_0_label",
6526 "end_2_label".
6527 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
6528 (void ix86_emit_i387_log1p): Likewise for locals "label1",
6529 "label2", "jump_label".
6530 (ix86_expand_sse_compare_and_jump): Likewise for return type and
6531 local "label".
6532 (ix86_expand_lfloorceil): Likewise for local "label".
6533 (ix86_expand_rint): Likewise.
6534 (ix86_expand_floorceildf_32): Likewise.
6535 (ix86_expand_floorceil): Likewise.
6536 (ix86_expand_rounddf_32): Likewise.
6537 (ix86_expand_trunc): Likewise.
6538 (ix86_expand_truncdf_32): Likewise.
6539 (ix86_expand_round): Likewise.
6540
6541 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6542
6543 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
6544 first param from rtx to rtx_insn *.
6545 (h8300_insn_length_from_table): Likewise.
6546 * config/h8300/h8300.c (F): Likewise for return type and param
6547 "x".
6548 (Fpa): Add a checked cast to rtx_insn *.
6549 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
6550 rtx_insn *.
6551 (final_prescan_insn): Likewise for param "insn".
6552 (h8300_binary_length): Likewise.
6553 (h8300_insn_length_from_table): Likewise.
6554
6555 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6556
6557 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
6558 Strengthen first param "insn" from rtx to rtx_insn *.
6559
6560 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
6561 Likewise.
6562 (frame_insn): Likewise for return type. Introduce local "insn"
6563 for use in place of local "x" for use as an rtx_insn *.
6564 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
6565 (epiphany_expand_prologue): Likewise for local "insn".
6566 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
6567 * config/epiphany/resolve-sw-modes.c
6568 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
6569 "seq".
6570
6571 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6572
6573 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
6574 param from rtx to rtx_insn *.
6575 (c6x_final_prescan_insn): Likewise for first param.
6576
6577 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
6578 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
6579 (c6x_expand_compare): Strengthen local "insns" from rtx to
6580 rtx_insn *.
6581 (c6x_get_unit_specifier): Likewise for param "insn".
6582 (c6x_print_unit_specifier_field): Likewise.
6583 (c6x_final_prescan_insn): Likewise.
6584 (emit_add_sp_const): Likewise for local "insn".
6585 (c6x_expand_prologue): Likewise.
6586
6587 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6588
6589 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
6590 param 1 from rtx to rtx_insn *.
6591 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
6592 the various locals named "insn".
6593 (expand_epilogue_reg_restore): Likewise.
6594 (frame_related_constant_load): Likewise.
6595 (add_to_reg): Likewise.
6596 (emit_link_insn): Likewise.
6597 (do_link): Likewise.
6598 (expand_interrupt_handler_prologue): Likewise.
6599 (branch_dest): Likewise for param "branch".
6600 (asm_conditional_branch): Likewise for param "insn".
6601 (gen_one_bundle): Likewise for elements of param "slot" and local
6602 "t".
6603 (bfin_gen_bundles): Likewise for locals "insn", "next" and
6604 elements of local "slot".
6605 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6606 "queue", "next_queue", "prev".
6607 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
6608 (add_sched_insns_for_speculation): Likewise for local "insn".
6609
6610 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6611
6612 * config/avr/avr-protos.h (output_movqi): Strengthen first param
6613 from rtx to rtx_insn *.
6614 (output_movhi): Likewise.
6615 (output_movsisf): Likewise.
6616 (avr_out_tstsi): Likewise.
6617 (avr_out_tsthi): Likewise.
6618 (avr_out_tstpsi): Likewise.
6619 (avr_out_compare): Likewise.
6620 (avr_out_compare64): Likewise.
6621 (avr_out_movpsi): Likewise.
6622 (ashlqi3_out): Likewise.
6623 (ashlhi3_out): Likewise.
6624 (ashlsi3_out): Likewise.
6625 (ashrqi3_out): Likewise.
6626 (ashrhi3_out): Likewise.
6627 (ashrsi3_out): Likewise.
6628 (lshrqi3_out): Likewise.
6629 (lshrhi3_out): Likewise.
6630 (lshrsi3_out): Likewise.
6631 (avr_out_ashlpsi3): Likewise.
6632 (avr_out_ashrpsi3): Likewise.
6633 (avr_out_lshrpsi3): Likewise.
6634 (avr_out_fract): Likewise.
6635 (avr_out_sbxx_branch): Likewise.
6636 (avr_out_round): Likewise.
6637 (avr_out_xload): Likewise.
6638 (avr_out_movmem): Likewise.
6639 (adjust_insn_length): Likewise.
6640 (avr_out_lpm): Likewise.
6641 (reg_unused_after): Likewise.
6642 (_reg_unused_after): Likewise.
6643 (avr_jump_mode): Likewise for second param.
6644 (jump_over_one_insn): Likewise for first param.
6645 (avr_final_prescan_insn): Likewise.
6646 (out_shift_with_cnt): Likewise for second param.
6647
6648 * config/avr/avr.c (get_sequence_length): Likewise for param
6649 "insns" and local "insn".
6650 (emit_push_byte): Likewise for local "insn".
6651 (emit_push_sfr): Likewise.
6652 (avr_prologue_setup_frame): Likewise for locals "insn",
6653 "fp_plus_insns", "sp_plus_insns".
6654 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
6655 "sp_plus_insns".
6656 (avr_jump_mode): Likewise for param "insn".
6657 (avr_final_prescan_insn): Likewise.
6658 (avr_find_unused_d_reg): Likewise.
6659 (avr_out_lpm_no_lpmx): Likewise.
6660 (avr_out_lpm): Likewise.
6661 (avr_out_xload): Likewise.
6662 (output_movqi): Likewise.
6663 (output_movhi): Likewise.
6664 (out_movqi_r_mr): Likewise.
6665 (out_movhi_r_mr): Likewise.
6666 (out_movsi_r_mr): Likewise.
6667 (out_movsi_mr_r): Likewise.
6668 (output_movsisf): Likewise.
6669 (avr_out_load_psi): Likewise.
6670 (avr_out_store_psi): Likewise.
6671 (avr_out_movpsi): Likewise.
6672 (out_movqi_mr_r): Likewise.
6673 (avr_out_movhi_mr_r_xmega): Likewise.
6674 (out_movhi_mr_r): Likewise.
6675 (compare_condition): Likewise for param "insn" and local "next".
6676 (compare_sign_p): Likewise for param "insn".
6677 (compare_diff_p): Likewise.
6678 (compare_eq_p): Likewise.
6679 (avr_out_compare): Likewise.
6680 (avr_out_compare64): Likewise.
6681 (avr_out_tsthi): Likewise.
6682 (avr_out_tstpsi): Likewise.
6683 (avr_out_tstsi): Likewise.
6684 (out_shift_with_cnt): Likewise.
6685 (ashlqi3_out): Likewise.
6686 (ashlhi3_out): Likewise.
6687 (avr_out_ashlpsi3): Likewise.
6688 (ashlsi3_out): Likewise.
6689 (ashrqi3_out): Likewise.
6690 (ashrhi3_out): Likewise.
6691 (avr_out_ashrpsi3): Likewise.
6692 (ashrsi3_out): Likewise.
6693 (lshrqi3_out): Likewise.
6694 (lshrhi3_out): Likewise.
6695 (avr_out_lshrpsi3): Likewise.
6696 (lshrsi3_out): Likewise.
6697 (avr_out_fract): Likewise.
6698 (avr_out_round): Likewise.
6699 (avr_adjust_insn_length): Likewise.
6700 (reg_unused_after): Likewise.
6701 (_reg_unused_after): Likewise.
6702 (avr_compare_pattern): Likewise.
6703 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
6704 and locals "branch1", "branch2", "insn2", "jump".
6705 (avr_reorg): Likewise for local "insn".
6706 (avr_2word_insn_p): Likewise for param "insn".
6707 (jump_over_one_insn_p): Likewise.
6708 (avr_out_sbxx_branch): Likewise.
6709 (avr_out_movmem): Likewise.
6710
6711 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6712
6713 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
6714 param from rtx to rtx_insn *.
6715 (thumb1_final_prescan_insn): Likewise.
6716 (thumb2_final_prescan_insn): Likewise.
6717
6718 * config/arm/arm.c (emit_set_insn): Strengthen return type from
6719 rtx to rtx_insn *.
6720 (struct minipool_node): Likewise for field "insn".
6721 (dump_minipool): Likewise for param "scan".
6722 (create_fix_barrier): Likewise for local "from". Strengthen local
6723 "label" from rtx to rtx_code_label *.
6724 (push_minipool_barrier): Strengthen param "insn" from rtx to
6725 rtx_insn *.
6726 (push_minipool_fix): Likewise.
6727 (note_invalid_constants): Likewise.
6728 (thumb2_reorg): Likewise for local "insn".
6729 (arm_reorg): Likewise.
6730 (thumb2_final_prescan_insn): Likewise for param
6731 "insn" and local "first_insn".
6732 (arm_final_prescan_insn): Likewise for param "insn" and locals
6733 "start_insn", "this_insn".
6734 (arm_debugger_arg_offset): Likewise for param "insn".
6735 (thumb1_emit_multi_reg_push): Likewise for return type and local
6736 "insn".
6737 (thumb1_final_prescan_insn): Likewise for param "insn".
6738 (thumb_far_jump_used_p): Likewise for local "insn".
6739 (thumb1_expand_prologue): Likewise.
6740 (arm_expand_epilogue_apcs_frame): Likewise.
6741 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
6742 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
6743 from rtx to rtx_code_label *.
6744 (arm_split_atomic_op): Likewise for local "label".
6745 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
6746
6747 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6748
6749 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
6750 first param from rtx to rtx_insn *.
6751 (arc_verify_short): Likewise.
6752 (arc_short_long): Likewise.
6753 (arc_need_delay): Likewise.
6754
6755 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
6756 "target_insn".
6757 (arc_ccfsm_advance): Likewise for param "insn" and locals
6758 "start_insn", "this_insn".
6759 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
6760 (arc_ccfsm_post_advance): Likewise for param "insn".
6761 (arc_next_active_insn): Likewise for return type and param "insn".
6762 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
6763 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
6764 (output_short_suffix): Likewise for local "insn".
6765 (arc_final_prescan_insn): Likewise for param "insn". Remove
6766 now-redundant checked cast.
6767 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
6768 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
6769 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
6770 for use where lc_set became an insn.
6771 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
6772 rtx to rtx_insn *.
6773 (arc_get_insn_variants): Likewise for local "prev".
6774 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
6775 "next".
6776 (arc_predicate_delay_insns): Likewise for local "insn".
6777 (arc_pad_return): Likewise for local "prev". For now, add a
6778 checked cast when extracting the insn from "final_sequence".
6779 (arc_short_long): Likewise for param "insn".
6780 (arc_need_delay): Likewise for param "insn" and local "next".
6781 (arc_label_align): Likewise for locals "prev", "next".
6782
6783 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6784
6785 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
6786 "insn" from rtx to rtx_insn *.
6787 (alpha_gp_save_rtx): Likewise for local "seq".
6788 (alpha_instantiate_decls): Likewise for local "top".
6789 (get_some_local_dynamic_name): Likewise for local "insn".
6790 (alpha_does_function_need_gp): Likewise.
6791 (set_frame_related_p): Likewise for return type and for locals
6792 "seq" and "insn".
6793 (emit_frame_store_1): Likewise for local "insn".
6794 (alpha_expand_prologue): Likewise for locals "insn", "seq".
6795 (alpha_end_function): Likewise for local "insn".
6796 (alpha_output_mi_thunk_osf): Likewise.
6797 (alphaev4_insn_pipe): Likewise for param "insn".
6798 (alphaev5_insn_pipe): Likewise.
6799 (alphaev4_next_group): Likewise for return type and param 1
6800 "insn".
6801 (alphaev5_next_group): Likewise.
6802 (alpha_align_insns_1): Likewise for return type and param 1 of
6803 callback param "next_group", and for locals "i", "next", "prev",
6804 "where", "where2", "insn".
6805
6806 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
6807
6808 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
6809 rather than modifying the stmt.
6810
6811 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6812
6813 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
6814 cgraph_state conversion.
6815
6816 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6817
6818 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6819 Strengthen local "insns" from rtx to rtx_insn *.
6820 (aarch64_set_frame_expr): Likewise for local "insn".
6821 (aarch64_save_or_restore_fprs): Likewise.
6822 (aarch64_save_or_restore_callee_save_registers): Likewise.
6823 (aarch64_expand_prologue): Likewise.
6824 (aarch64_expand_epilogue): Likewise.
6825 (aarch64_output_mi_thunk): Likewise.
6826 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
6827 "label2" from rtx to rtx_code_label *.
6828 (aarch64_split_atomic_op): Likewise for local "label".
6829
6830 2014-08-25 Martin Liska <mliska@suse.cz>
6831
6832 * cgraph.h (symtab_node):
6833 (bool needed_p (void)): created from decide_is_symbol_needed
6834 (bool referred_to_p (void)): created from referred_to_p
6835 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
6836 * cgraph.h (cgraph_node):
6837 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
6838 (void expand (void)): created from expand_function
6839 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
6840 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
6841 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
6842 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
6843 * cgraph.h (varpool_node):
6844 (static void add (tree decl): created from varpool_add_new_variable
6845 * cgraph.h (cgraph_edge):
6846 void remove (void);
6847 (void remove_caller (void)): created from cgraph_edge_remove_caller
6848 (void remove_callee (void)): created from cgraph_edge_remove_callee
6849 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
6850 created from cgraph_set_call_stmt
6851 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
6852 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
6853 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
6854 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
6855 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
6856 created from cgraph_speculative_call_info
6857 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
6858 int freq_scale, bool update_original)): created from cgraph_clone_edge
6859 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
6860 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
6861 (bool recursive_p (void)): created from cgraph_edge_recursive_p
6862 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
6863 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
6864 (static void rebuild_references (void)): created from cgraph_rebuild_references
6865 * cgraph.h (symbol_table):
6866 (create_reference): renamed from add_reference
6867 (maybe_create_reference): renamed from maybe_add_reference
6868 (void register_symbol (symtab_node *node)): new function
6869 (void clear_asm_symbols (void)): new function
6870 (void unregister (symtab_node *node)): new function
6871 (void release_symbol (cgraph_node *node, int uid)): new function
6872 (cgraph_node * allocate_cgraph_symbol (void)): new function
6873 (void initialize (void)): created from cgraph_init
6874 (symtab_node *first_symbol (void)):new function
6875 (asm_node *first_asm_symbol (void)):new function
6876 (symtab_node *first_defined_symbol (void)):new function
6877 (varpool_node *first_variable (void)):new function
6878 (varpool_node *next_variable (varpool_node *node)):new function
6879 (varpool_node *first_static_initializer (void)):new function
6880 (varpool_node *next_static_initializer (varpool_node *node)):new function
6881 (varpool_node *first_defined_variable (void)):new function
6882 (varpool_node *next_defined_variable (varpool_node *node)):new function
6883 (cgraph_node *first_defined_function (void)):new function
6884 (cgraph_node *next_defined_function (cgraph_node *node)):new function
6885 (cgraph_node *first_function (void)):new function
6886 (cgraph_node *next_function (cgraph_node *node)):new function
6887 (cgraph_node *first_function_with_gimple_body (void)):new function
6888 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
6889 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
6890 created from symtab_remove_unreachable_nodes
6891 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
6892 (void process_new_functions (void)): created from cgraph_process_new_functions
6893 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
6894 (bool output_variables (void)): created from varpool_node::output_variables
6895 (void output_asm_statements (void)): created from output_asm_statements
6896 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
6897 (void compile (void)): created from compile
6898 (void output_weakrefs (void)): created from output_weakrefs
6899 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
6900 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
6901 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
6902 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
6903 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
6904 created from cgraph_next_function_with_gimple_body
6905 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
6906 created from cgraph_remove_edge_removal_hook
6907 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
6908 created from cgraph_add_node_removal_hook
6909 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
6910 created from cgraph_remove_node_removal_hook
6911 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
6912 created from varpool_add_node_removal_hook
6913 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
6914 created from varpool_remove_node_removal_hook
6915 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
6916 created from cgraph_add_function_insertion_hook
6917 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
6918 created from cgraph_remove_function_insertion_hook
6919 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
6920 created from varpool_add_variable_insertion_hook
6921 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
6922 created from varpool_remove_variable_insertion_hook
6923 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
6924 created from cgraph_add_edge_duplication_hook
6925 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
6926 created from cgraph_remove_edge_duplication_hook
6927 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
6928 created from cgraph_add_node_duplication_hook
6929 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
6930 created from cgraph_remove_node_duplication_hook
6931 (void call_edge_removal_hooks (cgraph_edge *e)):
6932 created from cgraph_call_edge_removal_hooks
6933 (void call_cgraph_insertion_hooks (cgraph_node *node)):
6934 created from call_function_insertion_hooks
6935 (void call_cgraph_removal_hooks (cgraph_node *node)):
6936 created from cgraph_call_node_removal_hooks
6937 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
6938 created from cgraph_node::call_duplication_hooks
6939 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
6940 created from cgraph_call_edge_duplication_hooks
6941 (void call_varpool_removal_hooks (varpool_node *node)):
6942 created from varpool_call_node_removal_hooks
6943 (void call_varpool_insertion_hooks (varpool_node *node)):
6944 created from varpool_call_variable_insertion_hooks
6945 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
6946 created from insert_to_assembler_name_hash
6947 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
6948 created from unlink_from_assembler_name_hash
6949 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
6950 created from symtab_prevail_in_asm_name_hash
6951 (void symtab_initialize_asm_name_hash (void)):
6952 created from symtab_initialize_asm_name_hash
6953 (void change_decl_assembler_name (tree decl, tree name)):
6954 created from change_decl_assembler_name
6955 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
6956 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
6957 created from decl_assembler_name_hash
6958 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
6959 created from decl_assembler_name_equal
6960 (static hashval_t hash_node_by_assembler_name (const void *p)):
6961 created from hash_node_by_assembler_name
6962 (static int eq_assembler_name (const void *p1, const void *p2)):
6963 created from eq_assembler_name
6964
6965 2014-08-25 Marek Polacek <polacek@redhat.com>
6966
6967 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
6968
6969 2014-08-25 Petr Murzin <petr.murzin@intel.com>
6970
6971 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
6972 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
6973 SWI1248_AVX512BW mode iterator.
6974
6975 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
6976
6977 PR target/62111
6978 * config/sh/predicates.md (general_extend_operand): Disable
6979 TRUNCATE before reload completes.
6980
6981 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
6982
6983 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
6984
6985 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
6986
6987 PR target/61996
6988 * config/sh/sh.opt (musermode): Allow negative form.
6989 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
6990 targets that don't support it.
6991 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
6992 Document -mno-usermode option.
6993
6994 2014-08-24 Kito Cheng <kito@0xlab.org>
6995
6996 * system.h (CALLER_SAVE_PROFITABLE): Poison.
6997 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
6998 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
6999 * doc/tm.texi: Regenerate.
7000
7001 2014-08-24 Kito Cheng <kito@0xlab.org>
7002
7003 * ira.c: Fix typo in comment.
7004
7005 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
7006
7007 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
7008 Deprecate c++1y. Change language to reflect greater confidence in C++14.
7009
7010 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
7011
7012 PR target/62038
7013 * config/pa/pa.c (pa_output_function_epilogue): Don't set
7014 last_address when the current function is a thunk.
7015 (pa_asm_output_mi_thunk): When we don't have named sections or they
7016 are not being used, check that thunk can reach the stub table with a
7017 short branch.
7018
7019 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7020
7021 * web.c (union_match_dups): Strengthen param "insn" from rtx to
7022 rtx_insn *.
7023 (pass_web::execute): Likewise for local "insn".
7024
7025 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7026
7027 * var-tracking.c (struct micro_operation_def): Strengthen field
7028 "insn" from rtx to rtx_insn *.
7029 (struct emit_note_data_def): Likewise.
7030 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
7031 (vt_stack_adjustments): Likewise for local "insn".
7032 (adjust_insn): Likewise for param "insn".
7033 (val_store): Likewise.
7034 (val_resolve): Likewise.
7035 (struct count_use_info): Likewise for field "insn".
7036 (log_op_type): Likewise for param "insn".
7037 (reverse_op): Likewise.
7038 (prepare_call_arguments): Likewise.
7039 (add_with_sets): The initial param takes an insn, but we can't
7040 yet strengthen it from rtx to rtx_insn * since it's used as a
7041 cselib_record_sets_hook callback. For now rename initial param
7042 from "insn" to "uncast_insn", and introduce a local "insn" of
7043 the stronger rtx_insn * type, with a checked cast.
7044 (compute_bb_dataflow): Strengthen local "insn" from rtx to
7045 rtx_insn *.
7046 (emit_note_insn_var_location): Likewise.
7047 (emit_notes_for_changes): Likewise.
7048 (emit_notes_for_differences): Likewise.
7049 (next_non_note_insn_var_location): Likewise for return type and
7050 for param "insn".
7051 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
7052 (vt_initialize): Likewise for local "insn".
7053 (delete_debug_insns): Likewise for locals "insn" and "next".
7054
7055 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7056
7057 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
7058 rtx_insn *.
7059 (mark_constant_pool): Likewise for local "insn".
7060
7061 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7062
7063 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
7064 rtx to rtx_insn *.
7065 (dead_debug_promote_uses): Likewise.
7066 (dead_debug_insert_temp): Likewise.
7067
7068 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7069
7070 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
7071 from const_rtx to const rtx_insn *.
7072 (store_killed_after): Likewise. Strengthen locals "last", "act"
7073 from rtx to rtx_insn *.
7074 (store_killed_before): Strengthen param "insn" from const_rtx to
7075 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
7076 (find_moveable_store): Strengthen param "insn" from rtx to
7077 rtx_insn *.
7078 (compute_store_table): Likewise for local "insn".
7079 (insert_insn_start_basic_block): Likewise for param "insn" and
7080 locals "prev", "before", "insn".
7081 (insert_store): For now, add a checked cast to rtx_insn * on the
7082 result of gen_move_insn.
7083 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
7084 to rtx_insn *.
7085 (replace_store_insn): Likewise. For now, add a checked cast to
7086 rtx_insn * on the result of gen_move_insn.
7087
7088 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7089
7090 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
7091 rtx_insn *.
7092 (expand_sjlj_dispatch_table): Likewise.
7093
7094 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7095
7096 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
7097 "insn" from rtx to rtx_insn *.
7098
7099 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7100
7101 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
7102 "insn" from rtx to rtx_insn *.
7103 (dup_block_and_redirect): Likewise for param 3 "before".
7104
7105 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
7106 from rtx to rtx_insn *.
7107 (move_insn_for_shrink_wrap): Likewise.
7108 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
7109 (dup_block_and_redirect): Likewise for param "before" and local
7110 "insn".
7111 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
7112 "end".
7113 (convert_to_simple_return): Likewise for local "start".
7114
7115 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
7116 Strengthen local "insn" from rtx to rtx_insn *, for use when
7117 invoking requires_stack_frame_p.
7118
7119 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7120
7121 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
7122 rtx_insn *.
7123 (speculate_expr): Likewise for locals "orig_insn_rtx",
7124 "spec_insn_rtx".
7125 (eq_transformed_insns): Likewise for locals "i1", "i2".
7126 (check_for_new_jump): Likewise for return type and local "end".
7127 (find_new_jump): Likewise for return type and local "jump".
7128 (sel_split_edge): Likewise for local "jump".
7129 (sel_create_recovery_block): Likewise.
7130 (sel_redirect_edge_and_branch_force): Likewise.
7131 (sel_redirect_edge_and_branch): Likewise.
7132
7133 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7134
7135 * sel-sched.c (substitute_reg_in_expr): Strengthen local
7136 "new_insn" from rtx to rtx_insn *.
7137 (create_insn_rtx_with_rhs): Likewise for return type and for local
7138 "insn_rtx".
7139 (create_insn_rtx_with_lhs): Likewise.
7140 (create_speculation_check): Likewise for local "insn_rtx".
7141 (implicit_clobber_conflict_p): Likewise for local "insn".
7142 (get_expr_cost): Likewise.
7143 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
7144 (move_cond_jump): Likewise for locals "next", "prev", "link",
7145 "head", "from", "to".
7146
7147 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7148
7149 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
7150 "next" from rtx to rtx_insn *.
7151 (find_conditional_protection): Likewise for local "next".
7152 (is_conditionally_protected): Likewise for local "insn1".
7153 (is_pfree): Likewise for locals "insn1", "insn2".
7154
7155 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7156
7157 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
7158 from rtx to rtx_insn *.
7159
7160 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
7161 locals "insn1", "insn2" from rtx to rtx_insn *.
7162 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
7163 locals "insn", "prev", "last_jump", "next_tail".
7164 (schedule_ebb): Likewise for params "head", "tail".
7165 (schedule_ebbs): Likewise for locals "tail", "head".
7166
7167 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
7168 to rtx_insn on "last_insn" in one of the invocations of
7169 schedule_ebb.
7170
7171 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7172
7173 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
7174 "elem", "insn" from rtx to rtx_insn *.
7175 (change_spec_dep_to_hard): Likewise.
7176 (get_back_and_forw_lists): Likewise for local "con".
7177 (sd_add_dep): Likewise for locals "elem", "insn".
7178 (sd_resolve_dep): Likewise for locals "pro", "con".
7179 (sd_unresolve_dep): Likewise.
7180 (sd_delete_dep): Likewise.
7181 (chain_to_prev_insn): Likewise for local "pro".
7182 (find_inc): Likewise for locals "pro", "con".
7183
7184 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7185
7186 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
7187 to rtx_insn *.
7188 (reg_set_between_p): Strengthen local "insn" from const_rtx to
7189 const rtx_insn *.
7190 (modified_between_p): Strengthen local "insn" from rtx to
7191 rtx_insn *.
7192 (remove_reg_equal_equiv_notes_for_regno): Likewise.
7193 (keep_with_call_p): Strengthen local "i2" from const_rtx to
7194 const rtx_insn *.
7195
7196 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7197
7198 * resource.c (next_insn_no_annul): Strengthen local "next" from
7199 rtx to rtx_insn *.
7200 (mark_referenced_resources): Likewise for local "insn".
7201
7202 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7203
7204 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
7205 to rtx_insn *.
7206 (find_reloads): Likewise for param 1.
7207 (subst_reloads): Likewise for sole param.
7208 (find_equiv_reg): Likwise for param 2.
7209 (regno_clobbered_p): Likwise for param 2.
7210 (reload): Likewise for param 1.
7211
7212 * caller-save.c (save_call_clobbered_regs): Strengthen local
7213 "insn" from rtx to rtx_insn *.
7214 (insert_one_insn): Likewise for local "insn".
7215
7216 * reload.c (this_insn): Likewise for this global.
7217 (find_reloads): Likewise for param "insn".
7218 (find_reloads_toplev): Likewise.
7219 (find_reloads_address): Likewise.
7220 (subst_reg_equivs): Likewise.
7221 (update_auto_inc_notes): Likewise.
7222 (find_reloads_address_1): Likewise.
7223 (find_reloads_subreg_address): Likewise.
7224 (subst_reloads): Likewise.
7225 (find_equiv_reg): Likewise, also for local "p".
7226 (regno_clobbered_p): Likewise for param "insn".
7227
7228 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
7229 array.
7230 (spill_reg_store): Likewise for the elements of this array.
7231 (remove_init_insns): Likewise for local "equiv_insn".
7232 (will_delete_init_insn_p): Likewise for param "insn".
7233 (reload): Likewise for param ""first" and local "insn".
7234 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
7235 rtx_insn *.
7236 (calculate_elim_costs_all_insns): Likewise.
7237 (delete_caller_save_insns): Likewise.
7238 (spill_failure): Likewise for param "insn".
7239 (delete_dead_insn): Likewise.
7240 (set_label_offsets): Likewise.
7241 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
7242 "prev_insn".
7243 (elimination_costs_in_insn): Likewise for param "insn".
7244 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
7245 when referring to an insn.
7246 (set_initial_label_offsets): Likewise.
7247 (set_offsets_for_label): Strengthen param "insn" from rtx to
7248 rtx_insn *.
7249 (init_eliminable_invariants): Likewise for param "first" and local
7250 "insn".
7251 (fixup_eh_region_note): Likewise for param "insn".
7252 (reload_as_needed): Likewise for locals "prev", "insn",
7253 "old_next", "old_prev", "next".
7254 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
7255 "last".
7256 (reload_inheritance_insn): Strengthen elements of this array from
7257 rtx to rtx_insn *.
7258 (failed_reload): Likewise for param "insn".
7259 (choose_reload_regs): Likewise for local "insn". Replace use of
7260 NULL_RTX with NULL when referring to an insn.
7261 (input_reload_insns): Strengthen elements of this array from rtx
7262 to rtx_insn *.
7263 (other_input_address_reload_insns): Likewise for this global.
7264 (other_input_reload_insns): Likewise for this global.
7265 (input_address_reload_insns): Likwise for the elements of this
7266 array.
7267 (inpaddr_address_reload_insns): Likwise for the elements of this
7268 array.
7269 (output_reload_insns): Likewise for the elements of this array.
7270 (output_address_reload_insns): Likewise for the elements of this
7271 array.
7272 (outaddr_address_reload_insns): Likewise for the elements of this
7273 array.
7274 (operand_reload_insns): Likewise for this global.
7275 (other_operand_reload_insns): Likewise for this global.
7276 (other_output_reload_insns): Likewise for the elements of this
7277 array.
7278 (new_spill_reg_store): Likewise for the elements of this
7279 array.
7280 (emit_input_reload_insns): Likewise for locals "insn", "temp".
7281 Strengthen local "where" from rtx * to rtx_insn **.
7282 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
7283 from rtx to rtx_insn *.
7284 (do_input_reload): Likewise for local "insn".
7285 (do_output_reload): Likewise for local "insn".
7286 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
7287 (emit_insn_if_valid_for_reload): Likewise for return type and local
7288 "last". Add checked cast to rtx_insn when returning "insn" since
7289 this has been through emit_insn.
7290 (gen_reload): Strengthen return type and locals "last", "insn", "set"
7291 from rtx to rtx_insn *. Add checked cast to rtx_insn when
7292 returning "insn" since it's been through
7293 emit_insn_if_valid_for_reload at this point.
7294 (delete_output_reload): Strengthen param "insn" and locals
7295 "output_reload_insn", "i2" from rtx to rtx_insn *.
7296 (delete_address_reloads): Likewise for params "dead_insn",
7297 "current_insn" and locals "prev", "next".
7298 (delete_address_reloads_1): Likewise for params "dead_insn",
7299 "current_insn" and locals "prev", "i2".
7300 (inc_for_reload): Likewise for locals "last", "add_insn".
7301 (add_auto_inc_notes): Strengthen param "insn" from rtx to
7302 rtx_insn *.
7303
7304 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
7305 param of this duplicate of the prototype from reload.h
7306
7307 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7308
7309 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
7310 rtx to rtx_insn *.
7311 (regstat_bb_compute_calls_crossed): Likewise.
7312
7313 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7314
7315 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
7316 to rtx_insn *.
7317 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
7318 with an insn.
7319 (regrename_analyze): Strengthen local "insn" from rtx to
7320 rtx_insn *.
7321 (scan_rtx_reg): Likewise for param "insn".
7322 (scan_rtx_address): Likewise.
7323 (scan_rtx): Likewise.
7324 (restore_operands): Likewise.
7325 (record_out_operands): Likewise.
7326 (build_def_use): Likewise for local "insn". Replace use of
7327 NULL_RTX with NULL when dealing with an insn.
7328
7329 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7330
7331 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
7332 * reginfo.c (reg_scan): Likewise, also for local "insn".
7333 (reg_scan_mark_refs): Likewise for param "insn".
7334 (init_subregs_of_mode): Likewise for local "insn".
7335
7336 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7337
7338 * regcprop.c (struct queued_debug_insn_change): Strengthen field
7339 "insn" from rtx to rtx_insn *.
7340 (replace_oldest_value_reg): Likewise for param "insn".
7341 (replace_oldest_value_addr): Likewise.
7342 (replace_oldest_value_mem): Likewise.
7343 (apply_debug_insn_changes): Likewise for local "last_insn".
7344 (copyprop_hardreg_forward_1): Likewise for local "insn".
7345
7346 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7347
7348 * reg-stack.c (next_flags_user): Strengthen return type and param
7349 "insn" from rtx to rtx_insn *.
7350 (straighten_stack): Likewise for param "insn".
7351 (check_asm_stack_operands): Likewise.
7352 (remove_regno_note): Likewise.
7353 (emit_pop_insn): Likewise for return type, param "insn", local
7354 "pop_insn".
7355 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
7356 "limit" from rtx to rtx_insn *.
7357 (swap_to_top): Likewise for param "insn".
7358 (move_for_stack_reg): Likewise.
7359 (move_nan_for_stack_reg): Likewise.
7360 (swap_rtx_condition): Likewise.
7361 (compare_for_stack_reg): Likewise.
7362 (subst_all_stack_regs_in_debug_insn): Likewise.
7363 (subst_stack_regs_pat): Likewise, and local "insn2".
7364 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
7365 rtx_insn *.
7366 (subst_stack_regs): Likewise.
7367 (change_stack): Likewise.
7368 (convert_regs_1): Likewise for locals "insn", "next".
7369
7370 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7371
7372 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
7373 rtx_insn *.
7374 (combine_set_extension): Likewise for param "curr_insn".
7375 (transform_ifelse): Likewise for param "def_insn".
7376 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
7377 from vec<rtx> * to vec<rtx_insn *> *.
7378 (is_cond_copy_insn): Likewise for param "insn".
7379 (struct ext_state): Strengthen the four vec fields from vec<rtx>
7380 to vec<rtx_insn *>.
7381 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
7382 local "def_insn" from rtx to rtx_insn *.
7383 (get_sub_rtx): Likewise for param "def_insn".
7384 (merge_def_and_ext): Likewise.
7385 (combine_reaching_defs): Likewise.
7386 (add_removable_extension): Likewise for param "insn".
7387 (find_removable_extensions): Likewise for local "insn".
7388 (find_and_remove_re): Likewise for locals "curr_insn" and
7389 "def_insn". Strengthen locals "reinsn_del_list" and
7390 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
7391
7392 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7393
7394 * recog.c (split_insn): Strengthen param "insn" and locals
7395 "first", "last" from rtx to rtx_insn *.
7396 (split_all_insns): Likewise for locals "insn", "next".
7397 (split_all_insns_noflow): Likewise.
7398
7399 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7400
7401 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
7402 const rtx_insn *.
7403 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
7404 (debug_rtx_find): Likewise for param 1 "x".
7405
7406 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
7407 const_rtx to const rtx_insn *. Likewise for local "insn".
7408 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
7409 (debug_rtx_find): Likewise for param 1 "x".
7410 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
7411 from const_rtx to const rtx_insn * within the appropriate cases of
7412 the switch statement.
7413
7414 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
7415 Strengthen local "insns" from rtx to rtx_insn * since this is
7416 passed to a call to debug_rtx_list.
7417
7418 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7419
7420 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
7421 to rtx_insn *.
7422
7423 * function.c (stack_protect_epilogue): Add checked cast to
7424 rtx_insn for now when invoking predict_insn_def.
7425
7426 * predict.c (predict_insn): Strengthen param "insn" from rtx to
7427 rtx_insn *.
7428 (predict_insn_def): Likewise.
7429 (rtl_predict_edge): Likewise for local "last_insn".
7430 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
7431 const rtx_insn *.
7432 (combine_predictions_for_insn): Strengthen param "insn" from rtx
7433 to rtx_insn *.
7434 (bb_estimate_probability_locally): Likewise for local "last_insn".
7435 (expensive_function_p): Likewise for local "insn".
7436
7437 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
7438 local "jmp", since this is used when invoking predict_insn_def.
7439
7440 2014-08-22 Marek Polacek <polacek@redhat.com>
7441
7442 PR c++/62199
7443 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
7444
7445 2014-08-22 Marek Polacek <polacek@redhat.com>
7446
7447 PR c/61271
7448 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
7449 a comparison in parens.
7450 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
7451 in parens.
7452
7453 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7454
7455 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
7456 rtx_insn *.
7457
7458 * cprop.c (fis_get_condition): Likewise.
7459
7460 * postreload.c (reload_cse_regs): Likewise for param "first".
7461 (reload_cse_simplify): Likewise for param "insn".
7462 (reload_cse_regs_1): Likewise for local "insn".
7463 (reload_cse_simplify_set): Likewise for param "insn".
7464 (reload_cse_simplify_operands): Likewise.
7465 (struct reg_use): Likewise for field "insn".
7466 (reload_combine_purge_insn_uses): Likewise for param "insn".
7467 (fixup_debug_insns): Likewise for params "from", "to" and local
7468 "insn".
7469 (try_replace_in_use): Likewise for local "use_insn".
7470 (reload_combine_recognize_const_pattern): Likewise for param
7471 "insn" and locals "add_moved_after_insn", "use_insn".
7472 (reload_combine_recognize_pattern): Likewise for param "insn" and
7473 local "prev".
7474 (reload_combine): Likewise for locals "insn", "prev".
7475 (reload_combine_note_use): Likewise for param "insn".
7476 (move2add_use_add2_insn): Likewise.
7477 (move2add_use_add3_insn): Likewise.
7478 (reload_cse_move2add): Likewise, also for local "next".
7479 (move2add_note_store): Likewise for local "insn".
7480
7481 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7482
7483 * postreload-gcse.c (struct occr): Strengthen field "insn" from
7484 rtx to rtx_insn *.
7485 (struct unoccr): Likewise.
7486 (struct modifies_mem): Likewise.
7487 (alloc_mem): Likewise for local "insn".
7488 (insert_expr_in_table): Likewise for param "insn".
7489 (dump_expr_hash_table_entry): Likewise for local "insn".
7490 (oprs_unchanged_p): Likewise for param "insn".
7491 (load_killed_in_block_p): Likewise for local "setter".
7492 (record_last_reg_set_info): Likewise for param "insn".
7493 (record_last_reg_set_info_regno): Likewise.
7494 (record_last_mem_set_info): Likewise.
7495 (record_last_set_info): Likewise for local "last_set_insn".
7496 (record_opr_changes): Likewise for param "insn".
7497 (hash_scan_set): Likewise.
7498 (compute_hash_table): Likewise for local "insn".
7499 (get_avail_load_store_reg): Likewise for param "insn".
7500 (eliminate_partially_redundant_load): Likewise, also for locals
7501 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
7502 RTX for insns.
7503 (eliminate_partially_redundant_loads): Likewise for local "insn".
7504
7505 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7506
7507 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
7508 rtx to rtx_insn *.
7509 (expand_binop): Likewise for locals "entry_last", "last", "insns"
7510 (expand_twoval_unop): Likewise for locals entry_last", "last".
7511 (expand_twoval_binop): Likewise.
7512 (expand_twoval_binop_libfunc): Likewise for local "insns".
7513 (widen_leading): Likewise for local "last".
7514 (expand_doubleword_clz): Likewise for local "seq". Strengthen
7515 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
7516 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
7517 (expand_parity): Likewise for locals "last" and "seq".
7518 (expand_ffs): Likewise for local "seq". Strengthen local
7519 "nonzero_label" from rtx to rtx_code_label *.
7520 (expand_absneg_bit): Strengthen local "insns" from rtx to
7521 rtx_insn *.
7522 (expand_unop_direct): Likewise for local "last".
7523 (expand_unop): Likewise for locals "last", "insns".
7524 (expand_abs_nojump): Likewise for local "last".
7525 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
7526 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
7527 rtx_insn *.
7528 (expand_copysign_absneg): Strengthen local "label" from rtx to
7529 rtx_code_label *.
7530 (expand_copysign_bit): Strengthen local "insns" from rtx to
7531 rtx_insn *.
7532 (struct no_conflict_data): Likewise for fields "first", "insn".
7533 (emit_libcall_block_1): Likewise for param "insns" and locals
7534 "next", "last", "insn".
7535 (emit_libcall_block): For now, add a checked cast to rtx_insn *
7536 on "insns" when invoking emit_libcall_block_1. Ultimately we
7537 want to strengthen insns itself.
7538 (prepare_cmp_insn): Strengthen local "last" from rtx to
7539 rtx_insn *.
7540 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
7541 (prepare_float_lib_cmp): Likewise for local "insns".
7542 (emit_conditional_move): Likewise for local "last".
7543 (emit_conditional_add): Likewise.
7544 (have_sub2_insn): Likewise for local "seq".
7545 (expand_float): Likewise for local "insns". Strengthen locals
7546 "label", "neglabel" from rtx to rtx_code_label *.
7547 (expand_fix): Likewise for locals "last", "insn", "insns" (to
7548 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
7549 (expand_fixed_convert): Likewise for local "insns" (to
7550 rtx_insn *).
7551 (expand_sfix_optab): Likewise for local "last".
7552 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
7553 to rtx_code_label *.
7554 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
7555 from rtx to rtx_insn *.
7556 (expand_atomic_fetch_op): Likewise for local "insn".
7557 (maybe_legitimize_operand_same_code): Likewise for local "last".
7558 (maybe_legitimize_operands): Likewise.
7559
7560 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7561
7562 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
7563 "insn" from rtx to rtx_insn *.
7564 (ps_rtl_insn): Likewise for return type.
7565 (doloop_register_get): Likewise for params "head", "tail" and
7566 locals "insn", "first_insn_not_to_check".
7567 (schedule_reg_move): Likewise for local "this_insn".
7568 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
7569 of gen_move_insn for now.
7570 (reset_sched_times): Strengthen local "insn" from rtx to
7571 rtx_insn *.
7572 (permute_partial_schedule): Likewise.
7573 (duplicate_insns_of_cycles): Likewise for local "u_insn".
7574 (dump_insn_location): Likewise for param "insn".
7575 (loop_canon_p): Likewise for local "insn".
7576 (sms_schedule): Likewise.
7577 (print_partial_schedule): Likewise.
7578 (ps_has_conflicts): Likewise.
7579
7580 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7581
7582 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
7583 "tailp" from rtx * to rtx_insn **.
7584
7585 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
7586 from rtx to rtx_insn *.
7587 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
7588 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
7589 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
7590 rtx to rtx_insn *.
7591 * modulo-sched.c (const_iteration_count): Strengthen return type
7592 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
7593 use of NULL_RTX with NULL when working with insns.
7594 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
7595 to rtx_insn *.
7596 (sms_schedule): Likewise.
7597 * sched-rgn.c (init_ready_list): Likewise, also for locals
7598 "src_head" and "src_next_tail".
7599 (compute_block_dependences): Likewise.
7600 (free_block_dependencies): Likewise.
7601 (debug_rgn_dependencies): Likewise.
7602 (free_rgn_deps): Likewise.
7603 (compute_priorities): Likewise.
7604 (schedule_region): Likewise.
7605 * sel-sched.c (find_ebb_boundaries): Likewise.
7606
7607 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
7608 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
7609
7610 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7611
7612 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
7613 from rtx to rtx_insn *.
7614 (new_seginfo): Likewise for param "insn".
7615 (create_pre_exit): Likewise for locals "last_insn",
7616 "before_return_copy", "return_copy".
7617 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
7618 "mode_set".
7619
7620 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7621
7622 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
7623 from rtx to rtx_insn *.
7624 (lra_push_insn): Likewise for 1st param.
7625 (lra_push_insn_and_update_insn_regno_info): Likewise.
7626 (lra_pop_insn): Likewise for return type.
7627 (lra_invalidate_insn_data): Likewise for 1st param.
7628 (lra_set_insn_deleted): Likewise.
7629 (lra_delete_dead_insn): Likewise.
7630 (lra_process_new_insns): Likewise for first 3 params.
7631 (lra_set_insn_recog_data): Likewise for 1st param.
7632 (lra_update_insn_recog_data): Likewise.
7633 (lra_set_used_insn_alternative): Likewise.
7634 (lra_invalidate_insn_regno_info): Likewise.
7635 (lra_update_insn_regno_info): Likewise.
7636 (lra_former_scratch_operand_p): Likewise.
7637 (lra_eliminate_regs_1): Likewise.
7638 (lra_get_insn_recog_data): Likewise.
7639
7640 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
7641 rtx to rtx_insn *.
7642
7643 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
7644 "mv1" and "mv2".
7645 (substitute_within_insn): New.
7646 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
7647 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
7648 Replace call to "substitute" with call to substitute_within_insn.
7649
7650 * lra-constraints.c (curr_insn): Strengthen from rtx to
7651 rtx_insn *.
7652 (get_equiv_with_elimination): Likewise for param "insn".
7653 (match_reload): Strengthen params "before" and "after" from rtx *
7654 to rtx_insn **.
7655 (emit_spill_move): Likewise for return type. Add a checked cast
7656 to rtx_insn * on result of gen_move_insn for now.
7657 (check_and_process_move): Likewise for local "before". Replace
7658 NULL_RTX with NULL when referring to insns.
7659 (process_addr_reg): Strengthen params "before" and "after" from
7660 rtx * to rtx_insn **.
7661 (insert_move_for_subreg): Likewise.
7662 (simplify_operand_subreg): Strengthen locals "before" and "after"
7663 from rtx to rtx_insn *.
7664 (process_address_1): Strengthen params "before" and "after" from
7665 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
7666 rtx to rtx_insn *.
7667 (process_address): Strengthen params "before" and "after" from
7668 rtx * to rtx_insn **.
7669 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
7670 (curr_insn_transform): Strengthen locals "before" and "after"
7671 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
7672 to insns.
7673 (loc_equivalence_callback): Update cast of "data", changing
7674 resulting type from rtx to rtx_insn *.
7675 (substitute_pseudo_within_insn): New.
7676 (inherit_reload_reg): Strengthen param "insn" from rtx to
7677 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
7678 NULL when referring to insns. Add a checked cast to rtx_insn *
7679 when using usage_insn to invoke lra_update_insn_regno_info.
7680 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
7681 likewise for locals "restore", "save". Add checked casts to
7682 rtx_insn * when using usage_insn to invoke
7683 lra_update_insn_regno_info and lra_process_new_insns. Replace
7684 NULL_RTX with NULL when referring to insns.
7685 (split_if_necessary): Strengthen param "insn" from rtx to
7686 rtx_insn *.
7687 (update_ebb_live_info): Likewise for params "head", "tail" and local
7688 "prev_insn".
7689 (get_last_insertion_point): Likewise for return type and local "insn".
7690 (get_live_on_other_edges): Likewise for local "last".
7691 (inherit_in_ebb): Likewise for params "head", "tail" and locals
7692 "prev_insn", "next_insn", "restore".
7693 (remove_inheritance_pseudos): Likewise for local "prev_insn".
7694 (undo_optional_reloads): Likewise for local "insn".
7695
7696 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
7697 "insn".
7698 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
7699 insns.
7700 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
7701 rtx_insn *.
7702 (spill_pseudos): Likewise for local "insn".
7703 (init_elimination): Likewise.
7704 (process_insn_for_elimination): Likewise for param "insn".
7705
7706 * lra-lives.c (curr_insn): Likewise.;
7707
7708 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
7709 (remove_pseudos): Likewise for param "insn".
7710 (spill_pseudos): Likewise for local "insn".
7711 (lra_final_code_change): Likewise for locals "insn", "curr".
7712
7713 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
7714 (lra_set_insn_deleted): Likewise.
7715 (lra_delete_dead_insn): Likewise, and for local "prev".
7716 (new_insn_reg): Likewise for param "insn".
7717 (lra_set_insn_recog_data): Likewise.
7718 (lra_update_insn_recog_data): Likewise.
7719 (lra_set_used_insn_alternative): Likewise.
7720 (get_insn_freq): Likewise.
7721 (invalidate_insn_data_regno_info): Likewise.
7722 (lra_invalidate_insn_regno_info): Likewise.
7723 (lra_update_insn_regno_info): Likewise.
7724 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
7725 vec<rtx_insn *>.
7726 (lra_push_insn_1): Strengthen param "insn" from rtx to
7727 rtx_insn *.
7728 (lra_push_insn): Likewise.
7729 (lra_push_insn_and_update_insn_regno_info): Likewise.
7730 (lra_pop_insn): Likewise for return type and local "insn".
7731 (push_insns): Likewise for params "from", "to", and local "insn".
7732 (setup_sp_offset): Likewise for params "from", "last" and locals
7733 "before", "insn".
7734 (lra_process_new_insns): Likewise for params "insn", "before",
7735 "after" and local "last".
7736 (struct sloc): Likewise for field "insn".
7737 (lra_former_scratch_operand_p): Likewise for param "insn".
7738 (remove_scratches): Likewise for locals "insn", "last".
7739 (check_rtl): Likewise for local "insn".
7740 (add_auto_inc_notes): Likewise for param "insn".
7741 (update_inc_notes): Likewise for local "insn".
7742 (lra): Replace NULL_RTX with NULL when referring to insn.
7743
7744 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7745
7746 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
7747 to rtx_insn *.
7748 (resolve_reg_notes): Likewise.
7749 (resolve_simple_move): Likewise for return type, param "insn", and
7750 locals "insns", "minsn".
7751 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
7752 (resolve_use): Likewise.
7753 (resolve_debug): Likewise.
7754 (find_decomposable_shift_zext): Likewise.
7755 (resolve_shift_zext): Likewise for return type, param "insn", and
7756 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
7757 (decompose_multiword_subregs): Likewise for local "insn",
7758 "orig_insn", "decomposed_shift", "end".
7759
7760 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7761
7762 * basic-block.h (basic_block split_edge_and_insert): Strengthen
7763 param "insns" from rtx to rtx_insn *.
7764
7765 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
7766 rtx to rtx_insn *.
7767 (struct iv_to_split): Likewise.
7768 (loop_exit_at_end_p): Likewise for local "insn".
7769 (split_edge_and_insert): Likewise for param "insns".
7770 (compare_and_jump_seq): Likewise for return type, param "cinsn",
7771 and locals "seq", "jump".
7772 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
7773 "branch_code"; update invocations of compare_and_jump_seq to
7774 eliminate NULL_RTX in favor of NULL.
7775 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
7776 rtx to rtx_insn *.
7777 (reset_debug_uses_in_loop): Likewise.
7778 (analyze_insn_to_expand_var): Likewise for param "insn".
7779 (analyze_iv_to_split_insn): Likewise.
7780 (analyze_insns_in_loop): Likewise for local "insn".
7781 (insert_base_initialization): Likewise for param
7782 "insn" and local "seq".
7783 (split_iv): Likewise for param "insn" and local "seq".
7784 (expand_var_during_unrolling): Likewise for param "insn".
7785 (insert_var_expansion_initialization): Likewise for local "seq".
7786 (combine_var_copies_in_loop_exit): Likewise.
7787 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
7788 "insn".
7789 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
7790 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
7791 "next".
7792
7793 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7794
7795 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
7796 rtx_insn *.
7797 (iv_analyze_result): Likewise.
7798 (iv_analyze_expr): Likewise.
7799 (biv_p): Likewise.
7800
7801 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
7802 local "def_insn" from rtx to rtx_insn *.
7803 (get_biv_step_1): Likewise for local "insn".
7804 (iv_analyze_expr): Likewise for param "insn".
7805 (iv_analyze_def): Likewise for local "insn".
7806 (iv_analyze_op): Likewise for param "insn".
7807 (iv_analyze): Likewise.
7808 (iv_analyze_result): Likewise.
7809 (biv_p): Likewise.
7810 (suitable_set_for_replacement): Likewise.
7811 (simplify_using_initial_values): Likewise for local "insn".
7812 (iv_number_of_iterations): Likewise for param "insn".
7813 (check_simple_exit): Add checked cast to rtx_insn when invoking
7814 iv_number_of_iterations for now (until get_condition is
7815 strengthened).
7816
7817 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
7818 "insn" from rtx to rtx_insn *.
7819 (analyze_insns_in_loop): Likewise for local "insn".
7820
7821 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7822
7823 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
7824 to rtx_insn *.
7825 (struct invariant): Likewise.
7826 (hash_invariant_expr_1): Likewise for param "insn".
7827 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
7828 (find_exits): Likewise for local "insn".
7829 (create_new_invariant): Likewise for param "insn".
7830 (check_dependencies): Likewise.
7831 (find_invariant_insn): Likewise.
7832 (record_uses): Likewise.
7833 (find_invariants_insn): Likewise.
7834 (find_invariants_bb): Likewise for local "insn".
7835 (get_pressure_class_and_nregs): Likewise for param "insn".
7836 (calculate_loop_reg_pressure): Likewise for local "insn".
7837
7838 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7839
7840 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
7841 to rtx_insn *.
7842 (add_test): Likewise for locals "seq", "jump".
7843 (doloop_modify): Likewise for locals "sequence", "jump_insn".
7844
7845 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7846
7847 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
7848 rtx_insn *.
7849 (rebuild_jump_labels_chain): Likewise for param "chain".
7850
7851 * cfgexpand.c (pass_expand::execute): Add checked cast to
7852 rtx_insn * when calling rebuild_jump_labels_chain in region where
7853 we know e->insns.r is non-NULL.
7854
7855 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
7856 rtx_insn *.
7857 (rebuild_jump_labels): Likewise.
7858 (rebuild_jump_labels_chain): Likewise for param "chain".
7859 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
7860 (init_label_info): Likewise for param "f".
7861 (maybe_propagate_label_ref): Likewise for params "jump_insn",
7862 "prev_nonjump_insn".
7863 (mark_all_labels): Likewise for param "f" and locals "insn",
7864 "prev_nonjump_insn".
7865
7866 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7867
7868 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
7869 from rtx to rtx_insn *insn.
7870 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
7871 (ira_add_allocno_copy): Likewise.
7872 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
7873 rtx to rtx_insn *.
7874 (ira_create_copy): Likewise.
7875 (ira_add_allocno_copy): Likewise.
7876 (create_bb_allocnos): Likewise for local "insn".
7877 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
7878 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
7879 process_regs_for_copy for rtx_insn * param.
7880 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
7881 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
7882 process_regs_for_copy for rtx_insn * param.
7883 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
7884 * ira-costs.c (record_reg_classes): Likewise for param "insn".
7885 (record_operand_costs): Likewise.
7886 (scan_one_insn): Likewise for return type, and for param "insn".
7887 (process_bb_for_costs): Likewise for local "insn".
7888 (process_bb_node_for_hard_reg_moves): Likewise.
7889 * ira-emit.c (struct move): Likewise for field "insn".
7890 (create_move): Eliminate use of NULL_RTX when dealing with an
7891 rtx_insn *.
7892 (emit_move_list): Strengthen return type and locals "result",
7893 "insn" from rtx to rtx_insn *insn.
7894 (emit_moves): Likewise for locals "insns", "tmp".
7895 (ira_emit): Likewise for local "insn".
7896 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
7897 "insn".
7898 (find_call_crossed_cheap_reg): Likewise.
7899 (process_bb_node_lives): Likewise for local "insn".
7900 * ira.c (decrease_live_ranges_number): Likewise.
7901 (compute_regs_asm_clobbered): Likewise.
7902 (build_insn_chain): Likewise.
7903 (find_moveable_pseudos): Likewise, also locals "def_insn",
7904 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
7905 to rtx_insn **. Add a checked cast when assigning from
7906 "closest_use" into closest_uses array in a region where we know
7907 it's a non-NULL insn.
7908 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
7909 to rtx_insn *.
7910 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
7911 "last_interesting_insn", "uin".
7912 (move_unallocated_pseudos): Likewise for locals "def_insn",
7913 "move_insn", "newinsn".
7914
7915 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7916
7917 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
7918 Strengthen locals "done_label", "do_error" from rtx to
7919 rtx_code_label *.
7920 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
7921 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
7922 rtx_code_label *.
7923 (ubsan_expand_si_overflow_neg_check): Likewise for locals
7924 "done_label", "do_error" to rtx_code_label * and local "last" to
7925 rtx_insn *.
7926 (ubsan_expand_si_overflow_mul_check): Likewise for locals
7927 "done_label", "do_error", "large_op0", "small_op0_large_op1",
7928 "one_small_one_large", "both_ops_large", "after_hipart_neg",
7929 "after_lopart_neg", "do_overflow", "hipart_different" to
7930 rtx_code_label * and local "last" to rtx_insn *.
7931
7932 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7933
7934 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
7935 "insn" and "move_insn" from rtx to rtx_insn *.
7936
7937 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7938
7939 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
7940 rtx_insn *.
7941 (cheap_bb_rtx_cost_p): Likewise.
7942 (first_active_insn): Likewise for return type and local "insn".
7943 (last_active_insn): Likewise for return type and locals "insn",
7944 "head".
7945 (struct noce_if_info): Likewise for fields "jump", "insn_a",
7946 "insn_b".
7947 (end_ifcvt_sequence): Likewise for return type and locals "insn",
7948 "seq".
7949 (noce_try_move): Likewise for local "seq".
7950 (noce_try_store_flag): Likewise.
7951 (noce_try_store_flag_constants): Likewise.
7952 (noce_try_addcc): Likewise.
7953 (noce_try_store_flag_mask): Likewise.
7954 (noce_try_cmove): Likewise.
7955 (noce_try_minmax): Likewise.
7956 (noce_try_abs): Likewise.
7957 (noce_try_sign_mask): Likewise.
7958 (noce_try_bitop): Likewise.
7959 (noce_can_store_speculate_p): Likewise for local "insn".
7960 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
7961 seq".
7962 (check_cond_move_block): Likewise for local "insn".
7963 (cond_move_convert_if_block): Likewise.
7964 (cond_move_process_if_block): Likewise for locals "seq",
7965 "loc_insn".
7966 (noce_find_if_block): Likewise for local "jump".
7967 (merge_if_block): Likewise for local "last".
7968 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
7969 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
7970 (block_has_only_trap): Likewise for return type and local "trap".
7971 (find_if_case_1): Likewise for local "jump".
7972 (dead_or_predicable): Likewise for locals "head", "end", "jump",
7973 "insn".
7974
7975 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7976
7977 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
7978 "last_insn", "loop_end" from rtx to rtx_insn *.
7979
7980 * hw-doloop.c (scan_loop): Likewise for local "insn".
7981 (discover_loop): Likewise for param "tail_insn".
7982 (discover_loops): Likewise for local "tail".
7983
7984 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
7985 cast to rtx_insn * when assigning from an rtx local to a
7986 hwloop_info's "last_insn" field.
7987
7988 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7989
7990 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
7991 (add_delay_dependencies): Strengthen local "pro" from rtx to
7992 rtx_insn *.
7993 (recompute_todo_spec): Likewise.
7994 (dep_cost_1): Likewise for locals "insn", "used".
7995 (schedule_insn): Likewise for local "dbg".
7996 (schedule_insn): Likewise for locals "pro", "next".
7997 (unschedule_insns_until): Likewise for local "con".
7998 (restore_pattern): Likewise for local "next".
7999 (estimate_insn_tick): Likewise for local "pro".
8000 (resolve_dependencies): Likewise for local "next".
8001 (fix_inter_tick): Likewise.
8002 (fix_tick_ready): Likewise for local "pro".
8003 (add_to_speculative_block): Likewise for locals "check", "twin",
8004 "pro".
8005 (sched_extend_bb): Likewise for locals "end", "insn".
8006 (init_before_recovery): Likewise for local "x".
8007 (sched_create_recovery_block): Likewise for local "barrier".
8008 (create_check_block_twin): Likewise for local "pro".
8009 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
8010 "consumer".
8011 (unlink_bb_notes): Update for change to type of bb_header.
8012 Strengthen locals "prev", "label", "note", "next" from rtx to
8013 rtx_insn *.
8014 (clear_priorities): Likewise for local "pro".
8015
8016 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8017
8018 * gcse.c (struct occr): Strengthen field "insn" from rtx to
8019 rtx_insn *.
8020 (test_insn): Likewise for this global.
8021 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
8022 const rtx_insn *.
8023 (oprs_anticipatable_p): Likewise.
8024 (oprs_available_p): Likewise.
8025 (insert_expr_in_table): Strengthen param "insn" from rtx to
8026 rtx_insn *.
8027 (hash_scan_set): Likewise.
8028 (hash_scan_clobber): Likewise.
8029 (hash_scan_call): Likewise.
8030 (hash_scan_insn): Likewise.
8031 (compute_hash_table_work): Likewise for local "insn".
8032 (process_insert_insn): Likewise for return type and local "pat".
8033 (insert_insn_end_basic_block): Likewise for locals "new_insn",
8034 "pat", "pat_end", "maybe_cc0_setter".
8035 (pre_edge_insert): Likewise for local "insn".
8036 (pre_insert_copy_insn): Likewise for param "insn".
8037 (pre_insert_copies): Likewise for local "insn".
8038 (struct set_data): Likewise for field "insn".
8039 (single_set_gcse): Likewise for param "insn".
8040 (gcse_emit_move_after): Likewise.
8041 (pre_delete): Likewise for local "insn".
8042 (update_bb_reg_pressure): Likewise for param "from" and local
8043 "insn".
8044 (should_hoist_expr_to_dom): Likewise for param "from".
8045 (hoist_code): Likewise for local "insn".
8046 (get_pressure_class_and_nregs): Likewise for param "insn".
8047 (calculate_bb_reg_pressure): Likewise for local "insn".
8048 (compute_ld_motion_mems): Likewise.
8049
8050 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8051
8052 * genpeep.c (main): Rename param back from "uncast_ins1" to
8053 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
8054 checked cast.
8055
8056 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
8057
8058 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
8059
8060 PR target/62195
8061 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
8062 documentation to state it is only for VSX operations.
8063
8064 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
8065 constraint only active if VSX.
8066
8067 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
8068 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
8069 (lfiwzx): Likewise.
8070
8071 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8072
8073 * fwprop.c (single_def_use_dom_walker::before_dom_children):
8074 Strengthen local "insn" from rtx to rtx_insn *.
8075 (use_killed_between): Likewise for param "target_insn".
8076 (all_uses_available_at): Likewise for param "target_insn" and
8077 local "next".
8078 (update_df_init): Likewise for params "def_insn", "insn".
8079 (update_df): Likewise for param "insn".
8080 (try_fwprop_subst): Likewise for param "def_insn" and local
8081 "insn".
8082 (free_load_extend): Likewise for param "insn".
8083 (forward_propagate_subreg): Likewise for param "def_insn" and
8084 local "use_insn".
8085 (forward_propagate_asm): Likewise for param "def_insn" and local
8086 "use_insn".
8087 (forward_propagate_and_simplify): Likewise for param "def_insn"
8088 and local "use_insn".
8089 (forward_propagate_into): Likewise for locals "def_insn" and
8090 "use_insn".
8091
8092 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8093
8094 * function.c (emit_initial_value_sets): Strengthen local "seq"
8095 from rtx to rtx_insn *.
8096 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
8097 local "seq".
8098 (instantiate_virtual_regs): Likewise for local "insn".
8099 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
8100 (reorder_blocks_1): Likewise for param "insns" and local "insn".
8101 (expand_function_end): Likewise for locals "insn" and "seq".
8102 (epilogue_done): Likewise for local "insn".
8103 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
8104 "last", "trial".
8105 (reposition_prologue_and_epilogue_notes): Likewise for locals
8106 "insn", "last", "note", "first".
8107 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
8108 (pass_match_asm_constraints::execute): Likewise for local "insn".
8109
8110 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8111
8112 * output.h (final_scan_insn): Strengthen return type from rtx to
8113 rtx_insn *.
8114 (final_forward_branch_p): Likewise for param.
8115 (current_output_insn): Likewise for this global.
8116
8117 * final.c (rtx debug_insn): Likewise for this variable.
8118 (current_output_insn): Likewise.
8119 (get_attr_length_1): Rename param "insn" to "uncast_insn",
8120 adding "insn" back in as an rtx_insn * with a checked cast, so
8121 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
8122 first param.
8123 (compute_alignments): Strengthen local "label" from rtx to
8124 rtx_insn *.
8125 (shorten_branches): Rename param from "first" to "uncast_first",
8126 introducing a new local rtx_insn * "first" using a checked cast to
8127 effectively strengthen "first" from rtx to rtx_insn * without
8128 affecting the type signature. Strengthen locals "insn", "seq",
8129 "next", "label" from rtx to rtx_insn *.
8130 (change_scope): Strengthen param "orig_insn" and local "insn" from
8131 rtx to rtx_insn *.
8132 (final_start_function): Rename param from "first" to "uncast_first",
8133 introducing a new local rtx_insn * "first" using a checked cast to
8134 effectively strengthen "first" from rtx to rtx_insn * without
8135 affecting the type signature. Strengthen local "insn" from rtx to
8136 rtx_insn *.
8137 (dump_basic_block_info): Strengthen param "insn" from rtx to
8138 rtx_insn *.
8139 (final): Rename param from "first" to "uncast_first",
8140 introducing a new local rtx_insn * "first" using a checked cast to
8141 effectively strengthen "first" from rtx to rtx_insn * without
8142 affecting the type signature. Strengthen locals "insn", "next"
8143 from rtx to rtx_insn *.
8144 (output_alternate_entry_point): Strengthen param "insn" from rtx to
8145 rtx_insn *.
8146 (call_from_call_insn): Strengthen param "insn" from rtx to
8147 rtx_call_insn *.
8148 (final_scan_insn): Rename param from "insn" to "uncast_insn",
8149 introducing a new local rtx_insn * "insn" using a checked cast to
8150 effectively strengthen "insn" from rtx to rtx_insn * without
8151 affecting the type signature. Strengthen return type and locals
8152 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
8153 now-redundant checked cast to rtx_insn * from both invocations of
8154 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
8155 introducing a local "call_insn" for use when invoking
8156 call_from_call_insn.
8157 (notice_source_line): Strengthen param "insn" from rtx to
8158 rtx_insn *.
8159 (leaf_function_p): Likewise for local "insn".
8160 (final_forward_branch_p): Likewise.
8161 (leaf_renumber_regs): Likewise for param "first".
8162 (rest_of_clean_state): Likewise for locals "insn" and "next".
8163 (self_recursive_call_p): Likewise for param "insn".
8164 (collect_fn_hard_reg_usage): Likewise for local "insn".
8165 (get_call_fndecl): Likewise for param "insn".
8166 (get_call_cgraph_rtl_info): Likewise.
8167 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
8168 introducing a new local rtx_insn * "insn" using a checked cast to
8169 effectively strengthen "insn" from rtx to rtx_insn * without
8170 affecting the type signature.
8171
8172 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
8173 cast when assigning from param "insn" to current_output_insn.
8174 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
8175 so that we can assign it back to current_output_insn.
8176
8177 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8178
8179 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
8180 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
8181 atmxt540s and atmxt540sreva devices.
8182 * config/avr/avr-tables.opt: Regenerate.
8183 * config/avr/t-multilib: Regenerate.
8184 * doc/avr-mmcu.texi: Regenerate.
8185
8186 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8187
8188 * expr.c (convert_move): Strengthen local "insns" from rtx to
8189 rtx_insn *.
8190 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
8191 "top_label" from rtx to rtx_code_label *.
8192 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
8193 rtx_insn *.
8194 (emit_single_push_insn): Likewise for locals "prev", "last".
8195 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
8196 to rtx_code_label *.
8197 (store_constructor): Likewise for locals "loop_start", "loop_end".
8198 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
8199 rtx_insn *.
8200 (expand_expr_real_2): Likewise.
8201 (expand_expr_real_1): Strengthen local "label" from rtx to
8202 rtx_code_label *.
8203
8204 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8205
8206 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
8207 from rtx to rtx_insn *.
8208 (store_bit_field_1): Likewise.
8209 (extract_bit_field_1): Likewise.
8210 (expand_mult_const): Likewise for local "insns".
8211 (expmed_mult_highpart): Strengthen local "label" from rtx to
8212 rtx_code_label *.
8213 (expand_smod_pow2): Likewise.
8214 (expand_sdiv_pow2): Likewise.
8215 (expand_divmod): Strengthen locals "last", "insn" from rtx to
8216 rtx_insn *. Strengthen locals "label", "label1", "label2",
8217 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
8218 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
8219 (emit_store_flag): Likewise.
8220 (emit_store_flag_force): Strengthen local "label" from rtx to
8221 rtx_code_label *.
8222 (do_cmp_and_jump): Likewise for param "label".
8223
8224 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8225
8226 * explow.c (force_reg): Strengthen local "insn" from rtx to
8227 rtx_insn *.
8228 (adjust_stack_1): Likewise.
8229 (allocate_dynamic_stack_space): Likewise. Strengthen locals
8230 "final_label", "available_label", "space_available" from rtx to
8231 rtx_code_label *.
8232 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
8233 (anti_adjust_stack_and_probe): Likewise.
8234
8235 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8236
8237 * except.h (sjlj_emit_function_exit_after): Strengthen param
8238 "after" from rtx to rtx_insn *. This is only called with
8239 result of get_last_insn (in function.c) so type-change should be
8240 self-contained.
8241
8242 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
8243 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
8244 to rtx_insn *. These fields are only used from except.c so this
8245 type-change should be self-contained to this patch.
8246
8247 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
8248 local "last" from rtx to rtx_insn *.
8249 (dw2_build_landing_pads): Likewise for local "seq".
8250 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
8251 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
8252 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
8253 rtx to rtx_insn *.
8254 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
8255 to rtx_insn *.
8256 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
8257 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
8258 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
8259 referring to an insn. Strengthen local "dispatch_label" from
8260 rtx to rtx_code_label *.
8261 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
8262 rtx_insn *.
8263 (expand_eh_return): Strengthen local "around_label" from
8264 rtx to rtx_code_label *.
8265 (convert_to_eh_region_ranges): Strengthen locals "iter",
8266 "last_action_insn", "first_no_action_insn",
8267 "first_no_action_insn_before_switch",
8268 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
8269
8270 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8271
8272 * dwarf2out.c (last_var_location_insn): Strengthen this variable
8273 from rtx to rtx_insn *.
8274 (cached_next_real_insn): Likewise.
8275 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
8276 working with insns.
8277 (dwarf2out_var_location): Strengthen locals "next_real",
8278 "next_note", "expected_next_loc_note", "last_start", "insn" from
8279 rtx to rtx_insn *.
8280
8281 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8282
8283 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
8284 from rtx to rtx_insn *.
8285 (create_pseudo_cfg): Likewise for local "insn".
8286
8287 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8288
8289 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
8290 from rtx to rtx_insn *.
8291 (df_bb_regno_last_def_find): Likewise.
8292
8293 * df-problems.c (df_rd_bb_local_compute): Likewise.
8294 (df_lr_bb_local_compute): Likewise.
8295 (df_live_bb_local_compute): Likewise.
8296 (df_chain_remove_problem): Likewise.
8297 (df_chain_create_bb): Likewise.
8298 (df_word_lr_bb_local_compute): Likewise.
8299 (df_remove_dead_eq_notes): Likewise for param "insn".
8300 (df_note_bb_compute): Likewise for local "insn".
8301 (simulate_backwards_to_point): Likewise.
8302 (df_md_bb_local_compute): Likewise.
8303
8304 * df-scan.c (df_scan_free_bb_info): Likewise.
8305 (df_scan_start_dump): Likewise.
8306 (df_scan_start_block): Likewise.
8307 (df_install_ref_incremental): Likewise for local "insn".
8308 (df_insn_rescan_all): Likewise.
8309 (df_reorganize_refs_by_reg_by_insn): Likewise.
8310 (df_reorganize_refs_by_insn_bb): Likewise.
8311 (df_recompute_luids): Likewise.
8312 (df_bb_refs_record): Likewise.
8313 (df_update_entry_exit_and_calls): Likewise.
8314 (df_bb_verify): Likewise.
8315
8316 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8317
8318 * ddg.h (struct ddg_node): Strengthen fields "insn" and
8319 "first_note" from rtx to rtx_insn *.
8320 (get_node_of_insn): Likewise for param 2 "insn".
8321 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
8322
8323 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
8324 rtx_insn *.
8325 (mem_write_insn_p): Likewise.
8326 (mem_access_insn_p): Likewise.
8327 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
8328 (def_has_ccmode_p): Likewise for param "insn".
8329 (add_cross_iteration_register_deps): Likewise for locals
8330 "def_insn" and "use_insn".
8331 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
8332 (build_intra_loop_deps): Likewise for local "src_insn".
8333 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
8334 to rtx_insn *.
8335 (get_node_of_insn): Likewise for param "insn".
8336
8337 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8338
8339 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
8340 (deletable_insn_p): Strengthen param "insn" from rtx to
8341 rtx_insn *. Add checked cast to rtx_call_insn when invoking
8342 find_call_stack_args, since this is guarded by CALL_P (insn).
8343 (marked_insn_p): Strengthen param "insn" from rtx to
8344 rtx_insn *.
8345 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
8346 invoking find_call_stack_args, since this is guarded by
8347 CALL_P (insn).
8348 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
8349 rtx_insn *; we know this is an insn since this was called by
8350 mark_nonreg_stores.
8351 (mark_nonreg_stores_2): Likewise.
8352 (mark_nonreg_stores): Strengthen param "insn" from rtx to
8353 rtx_insn *.
8354 (find_call_stack_args): Strengthen param "call_insn" from rtx to
8355 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
8356 to rtx_insn *.
8357 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
8358 from rtx to rtx_insn *.
8359 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
8360 "next", "ref_insn".
8361 (delete_unmarked_insns): Likewise for locals "insn", "next".
8362 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
8363 (mark_reg_dependencies): Likewise for param "insn".
8364 (rest_of_handle_ud_dce): Likewise for local "insn".
8365 (word_dce_process_block): Likewise.
8366 (dce_process_block): Likewise.
8367
8368 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8369
8370 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
8371 from rtx to rtx_insn *.
8372 (struct change_cc_mode_args): Likewise for field "insn".
8373 (this_insn): Strengthen from rtx to rtx_insn *.
8374 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
8375 with insn.
8376 (validate_canon_reg): Strengthen param "insn" from rtx to
8377 rtx_insn *.
8378 (canon_reg): Likewise.
8379 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
8380 dealing with insn.
8381 (record_jump_equiv): Strengthen param "insn" from rtx to
8382 rtx_insn *.
8383 (try_back_substitute_reg): Likewise, also for locals "prev",
8384 "bb_head".
8385 (find_sets_in_insn): Likewise for param "insn".
8386 (canonicalize_insn): Likewise.
8387 (cse_insn): Likewise. Add a checked cast.
8388 (invalidate_from_clobbers): Likewise for param "insn".
8389 (invalidate_from_sets_and_clobbers): Likewise.
8390 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
8391 dealing with insn.
8392 (cse_prescan_path): Strengthen local "insn" from rtx to
8393 rtx_insn *.
8394 (cse_extended_basic_block): Likewise for locals "insn" and
8395 "prev_insn".
8396 (cse_main): Likewise for param "f".
8397 (check_for_label_ref): Likewise for local "insn".
8398 (set_live_p): Likewise for second param ("insn").
8399 (insn_live_p): Likewise for first param ("insn") and for local
8400 "next".
8401 (cse_change_cc_mode_insn): Likewise for first param "insn".
8402 (cse_change_cc_mode_insns): Likewise for first and second params
8403 "start" and "end".
8404 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
8405 and "end".
8406 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
8407 "cc_src_insn".
8408
8409 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8410 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8411 Anna Tikhonova <anna.tikhonova@intel.com>
8412 Ilya Tocar <ilya.tocar@intel.com>
8413 Andrey Turetskiy <andrey.turetskiy@intel.com>
8414 Ilya Verbin <ilya.verbin@intel.com>
8415 Kirill Yukhin <kirill.yukhin@intel.com>
8416 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8417
8418 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
8419 New.
8420 * config/i386/sse.md
8421 (define_mode_iterator VI248_AVX2): Delete.
8422 (define_mode_iterator VI2_AVX2_AVX512BW): New.
8423 (define_mode_iterator VI48_AVX2): Ditto.
8424 (define_insn <shift_insn><mode>3): Delete.
8425 (define_insn "<shift_insn><mode>3<mask_name>" with
8426 VI2_AVX2_AVX512BW): New.
8427 (define_insn "<shift_insn><mode>3<mask_name>" with
8428 VI48_AVX2): Ditto.
8429
8430 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8431 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8432 Anna Tikhonova <anna.tikhonova@intel.com>
8433 Ilya Tocar <ilya.tocar@intel.com>
8434 Andrey Turetskiy <andrey.turetskiy@intel.com>
8435 Ilya Verbin <ilya.verbin@intel.com>
8436 Kirill Yukhin <kirill.yukhin@intel.com>
8437 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8438
8439 * config/i386/sse.md
8440 (define_mode_iterator VI4F_BRCST32x2): New.
8441 (define_mode_attr 64x2_mode): Ditto.
8442 (define_mode_attr 32x2mode): Ditto.
8443 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
8444 with VI4F_BRCST32x2): Ditto.
8445 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
8446 with V16FI mode iterator): Ditto.
8447 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
8448 with V16FI): Ditto.
8449 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
8450 with VI8F_BRCST64x2): Ditto.
8451
8452 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8453 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8454 Anna Tikhonova <anna.tikhonova@intel.com>
8455 Ilya Tocar <ilya.tocar@intel.com>
8456 Andrey Turetskiy <andrey.turetskiy@intel.com>
8457 Ilya Verbin <ilya.verbin@intel.com>
8458 Kirill Yukhin <kirill.yukhin@intel.com>
8459 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8460
8461 * config/i386/sse.md
8462 (define_mode_iterator VI8_AVX512VL): New.
8463 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
8464
8465 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
8466
8467 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
8468 (define_mode_iterator V48_AVX512VL): New.
8469 (define_mode_iterator V12_AVX512VL): Ditto.
8470 (define_insn <avx512>_load<mode>_mask): Split into two similar
8471 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
8472 Refactor output template.
8473 (define_insn "<avx512>_store<mode>_mask"): Ditto.
8474
8475 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8476
8477 * cprop.c (struct occr): Strengthen field "insn" from rtx to
8478 rtx_insn *.
8479 (reg_available_p): Likewise for param "insn".
8480 (insert_set_in_table): Likewise.
8481 (hash_scan_set): Likewise.
8482 (hash_scan_insn): Likewise.
8483 (make_set_regs_unavailable): Likewise.
8484 (compute_hash_table_work): Likewise for local "insn".
8485 (reg_not_set_p): Strengthen param "insn" from const_rtx to
8486 const rtx_insn *.
8487 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
8488 (try_replace_reg): Likewise.
8489 (find_avail_set): Likewise.
8490 (cprop_jump): Likewise for params "setcc", "jump".
8491 (constprop_register): Likewise for param "insn".
8492 (cprop_insn): Likewise.
8493 (do_local_cprop): Likewise.
8494 (local_cprop_pass): Likewise for local "insn".
8495 (bypass_block): Likewise for params "setcc" and "jump".
8496 (bypass_conditional_jumps): Likewise for locals "setcc" and
8497 "insn".
8498 (one_cprop_pass): Likewise for local "insn".
8499
8500 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8501
8502 * compare-elim.c (struct comparison_use): Strengthen field "insn"
8503 from rtx to rtx_insn *.
8504 (struct comparison): Likewise, also for field "prev_clobber".
8505 (conforming_compare): Likewise for param "insn".
8506 (arithmetic_flags_clobber_p): Likewise.
8507 (find_flags_uses_in_insn): Likewise.
8508 (find_comparison_dom_walker::before_dom_children): Likewise for
8509 locals "insn", "next", "last_clobber".
8510 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
8511
8512 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8513
8514 * combine-stack-adj.c (struct csa_reflist): Strengthen field
8515 "insn" from rtx to rtx_insn *.
8516 (single_set_for_csa): Likewise for param "insn".
8517 (record_one_stack_ref): Likewise.
8518 (try_apply_stack_adjustment): Likewise.
8519 (struct record_stack_refs_data): Likewise for field "insn".
8520 (maybe_move_args_size_note): Likewise for params "last" and "insn".
8521 (prev_active_insn_bb): Likewise for return type and param "insn".
8522 (next_active_insn_bb): Likewise.
8523 (force_move_args_size_note): Likewise for params "prev" and "last"
8524 and locals "test", "next_candidate", "prev_candidate".
8525 (combine_stack_adjustments_for_block): Strengthen locals
8526 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
8527 rtx_insn *.
8528
8529 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8530
8531 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
8532 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
8533 (subst_insn): Likewise for this variable.
8534 (added_links_insn): Likewise.
8535 (struct insn_link): Likewise for field "insn".
8536 (alloc_insn_link): Likewise for param "insn".
8537 (struct undobuf): Likewise for field "other_insn".
8538 (find_single_use): Likewise for param "insn" and local "next".
8539 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
8540 (delete_noop_moves): Likewise for locals "insn", "next".
8541 (create_log_links): Likewise for locals "insn", "use_insn".
8542 Strengthen local "next_use" from rtx * to rtx_insn **.
8543 (insn_a_feeds_b): Likewise for params "a", "b".
8544 (combine_instructions): Likewise for param "f" and locals "insn",
8545 "next", "prev", "first", "last_combined_insn", "link", "link1",
8546 "temp". Replace use of NULL_RTX with NULL when referring to
8547 insns.
8548 (setup_incoming_promotions): Likewise for param "first"
8549 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
8550 (can_combine_p): Likewise for params "insn", "i3", "pred",
8551 "pred2", "succ", "succ2" and for local "p".
8552 (combinable_i3pat): Likewise for param "i3".
8553 (cant_combine_insn_p): Likewise for param "insn".
8554 (likely_spilled_retval_p): Likewise.
8555 (adjust_for_new_dest): Likewise.
8556 (update_cfg_for_uncondjump): Likewise, also for local "insn".
8557 (try_combine): Likewise for return type and for params "i3", "i2",
8558 "i1", "i0", "last_combined_insn", and for locals "insn",
8559 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
8560 "i0_insn". Eliminate local "tem" in favor of new locals
8561 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
8562 checked cast for now to rtx_insn * on the return type of
8563 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
8564 insns.
8565 (find_split_point): Strengthen param "insn" from rtx to
8566 rtx_insn *.
8567 (simplify_set): Likewise for local "other_insn".
8568 (recog_for_combine): Likewise for param "insn".
8569 (record_value_for_reg): Likewise.
8570 (record_dead_and_set_regs_1): Likewise for local
8571 "record_dead_insn".
8572 (record_dead_and_set_regs): Likewise for param "insn".
8573 (record_promoted_value): Likewise.
8574 (check_promoted_subreg): Likewise.
8575 (get_last_value_validate): Likewise.
8576 (reg_dead_at_p): Likewise.
8577 (move_deaths): Likewise for param "to_insn".
8578 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
8579 and locals "place", "place2", "cc0_setter". Eliminate local "tem
8580 in favor of new locals "tem_note" and "tem_insn", the latter being
8581 an rtx_insn *.
8582 (distribute_links): Strengthen locals "place", "insn" from rtx to
8583 rtx_insn *.
8584
8585 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8586
8587 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
8588 than a const_rtx.
8589 (can_delete_label_p): Require a const rtx_code_label * rather than
8590 a const_rtx.
8591 (delete_insn): Add checked cast to rtx_code_label * when we know
8592 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
8593 rtx to rtx_insn *.
8594 (delete_insn_chain): Strengthen locals "prev" and "current" from
8595 rtx to rtx_insn *. Add a checked cast when assigning from
8596 "finish" (strengthening the params will come later). Add a
8597 checked cast to rtx_note * in region where we know
8598 NOTE_P (current).
8599 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
8600 rtx_insn *.
8601 (compute_bb_for_insn): Likewise.
8602 (free_bb_for_insn): Likewise for local "insn".
8603 (compute_bb_for_insn): Likewise.
8604 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
8605 local "insn" from rtx to rtx_insn *
8606 (flow_active_insn_p): Require a const rtx_insn * rather than a
8607 const_rtx.
8608 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
8609 rtx_insn *.
8610 (can_fallthru): Likewise for locals "insn" and "insn2".
8611 (bb_note): Likewise for local "note".
8612 (first_insn_after_basic_block_note): Likewise for local "note" and
8613 for return type.
8614 (rtl_split_block): Likewise for locals "insn" and "next".
8615 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
8616 "end".
8617 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
8618 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
8619 "prev", "tmp".
8620 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
8621 them), "kill_from", "barrier", "new_insn".
8622 (patch_jump_insn): Likewise for params "insn", "old_label".
8623 (redirect_branch_edge): Likewise for locals "old_label", "insn".
8624 (force_nonfallthru_and_redirect): Likewise for locals "insn",
8625 "old_label", "new_label".
8626 (rtl_tidy_fallthru_edge): Likewise for local "q".
8627 (rtl_split_edge): Likewise for locals "before", "last".
8628 (commit_one_edge_insertion): Likewise for locals "before",
8629 "after", "insns", "tmp", "last", adding a checked cast where
8630 currently necessary.
8631 (commit_edge_insertions): Likewise.
8632 (rtl_dump_bb): Likewise for locals "insn", "last".
8633 (print_rtl_with_bb): Likewise for local "x".
8634 (rtl_verify_bb_insns): Likewise for local "x".
8635 (rtl_verify_bb_pointers): Likewise for local "insn".
8636 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
8637 "head", "end".
8638 (rtl_verify_fallthru): Likewise for local "insn".
8639 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
8640 (purge_dead_edges): Likewise for local "insn".
8641 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
8642 (skip_insns_after_block): Likewise for return type and for locals
8643 "insn", "last_insn", "next_head", "prev".
8644 (record_effective_endpoints): Likewise for locals "next_insn",
8645 "insn", "end".
8646 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
8647 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
8648 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
8649 (duplicate_insn_chain): For now, add checked cast from rtx to
8650 rtx_insn * when returning insn.
8651 (cfg_layout_duplicate_bb): Likewise for local "insn".
8652 (cfg_layout_delete_block): Likewise for locals "insn", "next",
8653 "prev", "remaints".
8654 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
8655 (rtl_block_empty_p): Likewise.
8656 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
8657 "split_point", "last".
8658 (rtl_block_ends_with_call_p): Likewise for local "insn".
8659 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
8660 const rtx_insn *.
8661 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
8662 "split_at_insn" from rtx to rtx_insn *.
8663 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
8664 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
8665 to const rtx_insn *.
8666 (rtl_account_profile_record): Likewise.
8667
8668 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8669
8670 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
8671 rtx to rtx_insn *.
8672 (average_num_loop_insns): Likewise.
8673 (init_set_costs): Likewise for local "seq".
8674 (seq_cost): Likewise for param "seq", from const_rtx to const
8675 rtx_insn *.
8676
8677 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8678
8679 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
8680 rtx to rtx_insn *.
8681
8682 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8683
8684 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
8685 "f1" and "f2" from rtx * to rtx_insn **.
8686 (flow_find_head_matching_sequence): Likewise.
8687
8688 * cfgcleanup.c (try_simplify_condjump): Strengthen local
8689 "cbranch_insn" from rtx to rtx_insn *.
8690 (thread_jump): Likewise for local "insn".
8691 (try_forward_edges): Likewise for local "last".
8692 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
8693 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
8694 "real_b_end".
8695 (can_replace_by): Likewise for params "i1", "i2".
8696 (old_insns_match_p): Likewise.
8697 (merge_notes): Likewise.
8698 (walk_to_nondebug_insn): Likewise for param "i1".
8699 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
8700 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
8701 "afterlast1", "afterlast2" from rtx to rtx_insn *.
8702 (flow_find_head_matching_sequence): Strengthen params "f1" and
8703 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
8704 "last1", "last2", "beforelast1", "beforelast2" from rtx to
8705 rtx_insn *.
8706 (outgoing_edges_match): Likewise for locals "last1", "last2".
8707 (try_crossjump_to_edge): Likewise for local "insn".
8708 Replace call to for_each_rtx with for_each_rtx_in_insn.
8709
8710 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
8711 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
8712 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
8713 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
8714 (try_optimize_cfg): Strengthen local "last" from rtx to
8715 rtx_insn *.
8716 (delete_dead_jumptables): Likewise for locals "insn", "next",
8717 "label".
8718
8719 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
8720 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
8721 "rtx else_first_tail", to reflect the basic-block.h changes above.
8722
8723 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8724
8725 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
8726 rtx_insn *.
8727 (purge_dead_tablejump_edges): Likewise.
8728 (find_bb_boundaries): Likewise for locals "insn", "end",
8729 "flow_transfer_insn".
8730
8731 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8732
8733 * caller-save.c (save_call_clobbered_regs): Strengthen locals
8734 "ins" and "prev" from rtx to rtx_insn *.
8735
8736 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8737
8738 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
8739 rtx_insn *.
8740 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
8741 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
8742 "scan_start".
8743 (load_register_parameters): Likewise for local "before_arg".
8744 (check_sibcall_argument_overlap): Likewise for param "insn".
8745 (expand_call): Likewise for locals "normal_call_insns",
8746 "tail_call_insns", "insns", "before_call", "after_args",
8747 "before_arg", "last", "prev". Strengthen one of the "last" from
8748 rtx to rtx_call_insn *.
8749 (fixup_tail_calls): Strengthen local "insn" from rtx to
8750 rtx_insn *.
8751 (emit_library_call_value_1): Likewise for locals "before_call" and
8752 "last".
8753
8754 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8755
8756 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
8757 and "last" from rtx to rtx_insn *.
8758 (expand_builtin_nonlocal_goto): Likewise for local "insn".
8759 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
8760 rtx_call_insn *.
8761 (expand_errno_check): Strengthen local "lab" from rtx to
8762 rtx_code_label *.
8763 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
8764 rtx_insn *.
8765 (expand_builtin_mathfn_2): Likewise.
8766 (expand_builtin_mathfn_ternary): Likewise.
8767 (expand_builtin_mathfn_3): Likewise.
8768 (expand_builtin_interclass_mathfn): Likewise for local "last".
8769 (expand_builtin_int_roundingfn): Likewise for local "insns".
8770 (expand_builtin_int_roundingfn_2): Likewise.
8771 (expand_builtin_strlen): Likewise for local "before_strlen".
8772 (expand_builtin_strncmp): Likewise for local "seq".
8773 (expand_builtin_signbit): Likewise for local "last".
8774 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
8775 from rtx to rtx_code_label *.
8776 (expand_stack_restore): Strengthen local "prev" from rtx to
8777 rtx_insn *.
8778
8779 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8780
8781 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
8782 to rtx_insn *.
8783 (struct btr_def_s): Likewise.
8784 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
8785 const rtx_insn *.
8786 (add_btr_def): Likewise.
8787 (new_btr_user): Likewise.
8788 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
8789 rtx to rtx_insn *.
8790 (link_btr_uses): Likewise.
8791 (move_btr_def): Likewise for locals "insp", "old_insn",
8792 "new_insn". Add checked cast to rtx_insn * for now on result of
8793 gen_move_insn.
8794 (can_move_up): Strengthen param "insn" from const_rtx to
8795 const rtx_insn *.
8796
8797 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8798
8799 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
8800 rtx_insn *.
8801 (get_uncond_jump_length): Likewise for locals "label", "jump".
8802 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
8803 "jump", "insn".
8804 (add_labels_and_missing_jumps): Likewise for local "new_jump".
8805 (fix_up_fall_thru_edges): Likewise for local "old_jump".
8806 (find_jump_block): Likewise for local "insn".
8807 (fix_crossing_conditional_branches): Likewise for locals
8808 "old_jump", "new_jump".
8809 (fix_crossing_unconditional_branches): Likewise for locals
8810 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
8811 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
8812
8813 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8814
8815 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
8816 rtx to rtx_insn *.
8817 (struct mem_insn): Likewise for field "insn".
8818 (reg_next_use): Strengthen from rtx * to rtx_insn **.
8819 (reg_next_inc_use): Likewise.
8820 (reg_next_def): Likewise.
8821 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
8822 from rtx to rtx_insn *.
8823 (move_insn_before): Likewise for param "next_insn" and local "insns".
8824 (attempt_change): Likewise for local "mov_insn".
8825 (try_merge): Likewise for param "last_insn".
8826 (get_next_ref): Likewise for return type and local "insn".
8827 Strengthen param "next_array" from rtx * to rtx_insn **.
8828 (parse_add_or_inc): Strengthen param "insn" from rtx to
8829 rtx_insn *.
8830 (find_inc): Likewise for locals "insn" and "other_insn" (three of
8831 the latter).
8832 (merge_in_block): Likewise for locals "insn", "curr",
8833 "other_insn".
8834 (pass_inc_dec::execute): Update allocations of the arrays to
8835 reflect the stronger types.
8836
8837 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8838
8839 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
8840 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
8841 from rtx to rtx_code_label *.
8842
8843 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8844
8845 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
8846 to rtx_insn *.
8847
8848 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8849
8850 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
8851 generated a warning and prevented bootstrapping the compiler.
8852
8853 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8854
8855 * rtl.h (delete_related_insns): Strengthen return type from rtx to
8856 rtx_insn *.
8857
8858 * jump.c (delete_related_insns): Likewise, also for locals "next"
8859 and "prev".
8860
8861 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8862
8863 * genautomata.c (output_internal_insn_latency_func): When writing
8864 the function "internal_insn_latency" to insn-automata.c,
8865 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
8866 allowing the optional guard function of (define_bypass) clauses to
8867 expect a pair of rtx_insn *, rather than a pair of rtx.
8868 (output_insn_latency_func): When writing the function
8869 "insn_latency", add an "uncast_" prefix to params "insn" and
8870 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
8871 using checked casts from the params, thus enabling the above
8872 change to the generated "internal_insn_latency" function.
8873
8874 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
8875
8876 PR tree-optimization/62091
8877 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
8878 handle correctly arrays.
8879 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
8880 inheritance binfos.
8881 (record_known_type): Walk into inner type.
8882 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
8883 condition on no type changes.
8884
8885 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8886
8887 * genattrtab.c (write_attr_get): Within the generated get_attr_
8888 functions, rename param "insn" to "uncast_insn" and reintroduce
8889 "insn" as an local rtx_insn * using a checked cast, so that "insn"
8890 is an rtx_insn * within insn-attrtab.c
8891
8892 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8893
8894 * output.h (peephole): Strengthen return type from rtx to
8895 rtx_insn *.
8896 * rtl.h (delete_for_peephole): Likewise for both params.
8897 * genpeep.c (main): In generated "peephole" function, strengthen
8898 return type and local "insn" from rtx to rtx_insn *. For now,
8899 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
8900 rtx_insn *, with a checked cast.
8901 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
8902 locals "insn", "next", "prev" from rtx to rtx_insn *.
8903
8904 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
8905
8906 PR tree-optimization/62112
8907 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
8908 * gimple-iterator.h (gsi_replace): Return bool.
8909 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
8910 moved from ref_may_alias_global_p.
8911 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
8912 New overloads.
8913 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
8914 (stmt_kills_ref_p_1): Rename...
8915 (stmt_kills_ref_p): ... to this.
8916 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
8917 stmt_kills_ref_p): Declare.
8918 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
8919 Move the self-assignment case...
8920 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
8921
8922 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8923
8924 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
8925
8926 * emit-rtl.c (try_split): Likewise, also for locals "before" and
8927 "after". For now, don't strengthen param "trial", which requires
8928 adding checked casts when returning it.
8929
8930 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8931
8932 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
8933 "label" from rtx to rtx_code_label *. Strengthen param 1 of
8934 "var_location" hook from rtx to rtx_insn *.
8935 (debug_nothing_rtx): Delete in favor of...
8936 (debug_nothing_rtx_code_label): New prototype.
8937 (debug_nothing_rtx_rtx): Delete unused prototype.
8938 (debug_nothing_rtx_insn): New prototype.
8939
8940 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
8941 invoking debug_hooks->var_location (in two places, one in a NOTE
8942 case of a switch statement, the other guarded by a CALL_P
8943 conditional. Add checked cast to rtx_code_label * when invoking
8944 debug_hooks->label (within CODE_LABEL case of switch statement).
8945
8946 * dbxout.c (dbx_debug_hooks): Update "label" hook from
8947 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
8948 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
8949 (xcoff_debug_hooks): Likewise.
8950 * debug.c (do_nothing_debug_hooks): Likewise.
8951 (debug_nothing_rtx): Delete in favor of...
8952 (debug_nothing_rtx_insn): New function.
8953 (debug_nothing_rtx_rtx): Delete unused function.
8954 (debug_nothing_rtx_code_label): New function.
8955 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
8956 debug_nothing_rtx to debug_nothing_rtx_code_label.
8957 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
8958 to rtx_insn *.
8959 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
8960 debug_nothing_rtx to debug_nothing_rtx_insn.
8961 (sdbout_label): Strengthen param "insn" from rtx to
8962 rtx_code_label *.
8963 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
8964 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
8965 "var_location" hook from debug_nothing_rtx to
8966 debug_nothing_rtx_insn.
8967
8968 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8969
8970 * recog.h (insn_output_fn): Update this function typedef to match
8971 the changes below to the generated output functions, strengthening
8972 the 2nd param from rtx to rtx_insn *.
8973
8974 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
8975 insn when invoking an output function, to match the new signature
8976 of insn_output_fn with a stronger second param.
8977
8978 * genconditions.c (write_header): In the generated code for
8979 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
8980 to match the other changes in this patch.
8981
8982 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
8983 the generated "gen_" functions from rtx to rtx_insn * within their
8984 implementations.
8985
8986 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
8987 the subfunctions within the generated "recog_", "split", "peephole2"
8988 function trees from rtx to rtx_insn *. For now, the top-level
8989 generated functions ("recog", "split", "peephole2") continue to
8990 take a plain rtx for "insn", to avoid introducing dependencies on
8991 other patches. Rename this 2nd param from "insn" to
8992 "uncast_insn", and reintroduce "insn" as a local variable of type
8993 rtx_insn *, initialized at the top of the generated function with
8994 a checked cast on "uncast_insn".
8995 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
8996 the generated "gen_" functions from rtx to rtx_insn * within their
8997 prototypes.
8998
8999 * genoutput.c (process_template): Strengthen the 2nd param within
9000 the generated "output_" functions "insn" from rtx to rtx_insn *.
9001
9002 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
9003
9004 * tree-profile.c (tree_profiling): Skip external functions
9005 when doing coverage instrumentation.
9006 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
9007
9008 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9009
9010 * config/rs6000/altivec.h (vec_cpsgn): New #define.
9011 (vec_mergee): Likewise.
9012 (vec_mergeo): Likewise.
9013 (vec_cntlz): Likewise.
9014 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
9015 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
9016 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
9017 VMRGEW, and VMRGOW.
9018 * doc/extend.texi: Document various forms of vec_cpsgn,
9019 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
9020 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
9021 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
9022 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
9023 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
9024
9025 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9026
9027 * config/rs6000/rs6000.c (context.h): New include.
9028 (tree-pass.h): Likewise.
9029 (make_pass_analyze_swaps): New decl.
9030 (rs6000_option_override): Register pass_analyze_swaps.
9031 (swap_web_entry): New subsclass of web_entry_base (df.h).
9032 (special_handling_values): New enum.
9033 (union_defs): New function.
9034 (union_uses): Likewise.
9035 (insn_is_load_p): Likewise.
9036 (insn_is_store_p): Likewise.
9037 (insn_is_swap_p): Likewise.
9038 (rtx_is_swappable_p): Likewise.
9039 (insn_is_swappable_p): Likewise.
9040 (chain_purpose): New enum.
9041 (chain_contains_only_swaps): New function.
9042 (mark_swaps_for_removal): Likewise.
9043 (swap_const_vector_halves): Likewise.
9044 (adjust_subreg_index): Likewise.
9045 (permute_load): Likewise.
9046 (permute_store): Likewise.
9047 (handle_special_swappables): Likewise.
9048 (replace_swap_with_copy): Likewise.
9049 (dump_swap_insn_table): Likewise.
9050 (rs6000_analyze_swaps): Likewise.
9051 (pass_data_analyze_swaps): New pass_data.
9052 (pass_analyze_swaps): New rtl_opt_pass.
9053 (make_pass_analyze_swaps): New function.
9054 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
9055
9056 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9057
9058 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
9059 type from rtx to rtx_insn *.
9060 (create_copy_of_insn_rtx): Likewise.
9061 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
9062 (create_copy_of_insn_rtx): Likewise, also for local "res".
9063
9064 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9065
9066 * rtl.h (find_first_parameter_load): Strengthen return type from
9067 rtx to rtx_insn *.
9068 * rtlanal.c (find_first_parameter_load): Strengthen return type
9069 from rtx to rtx_insn *. Add checked cast for now, to postpone
9070 strengthening the params.
9071
9072 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
9073
9074 PR fortran/44054
9075 * diagnostic.c: Set default caret.
9076 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
9077 line is needed.
9078 * diagnostic.h (struct diagnostic_context):
9079
9080 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9081
9082 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
9083 (sel_bb_head): Strengthen return type insn_t (currently just an
9084 rtx) to rtx_insn *.
9085 (sel_bb_end): Likewise.
9086
9087 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
9088 (sel_bb_head): Strengthen return type and local "head" from
9089 insn_t (currently just an rtx) to rtx_insn *.
9090 (sel_bb_end): Likewise for return type.
9091 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
9092 working with insn.
9093
9094 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9095
9096 * basic-block.h (get_last_bb_insn): Strengthen return type from
9097 rtx to rtx_insn *.
9098 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
9099 end".
9100
9101 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
9102
9103 PR fortran/44054
9104 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
9105 to here ...
9106 (diagnostic_report_diagnostic): ... from here.
9107 * toplev.c (general_init): Move code to c-family.
9108
9109 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9110
9111 * df.h (web_entry_base): Replace existing struct web_entry with a
9112 new class web_entry_base with only the predecessor member.
9113 (unionfind_root): Remove declaration and move to class member.
9114 (unionfind_union): Remove declaration and move to friend
9115 function.
9116 (union_defs): Remove declaration.
9117 * web.c (web_entry_base::unionfind_root): Modify to be member
9118 function and adjust accessors.
9119 (unionfind_union): Modify to be friend function and adjust
9120 accessors.
9121 (web_entry): New subclass of web_entry_base containing the reg
9122 member.
9123 (union_match_dups): Modify for struct -> class changes.
9124 (union_defs): Likewise.
9125 (entry_register): Likewise.
9126 (pass_web::execute): Likewise.
9127
9128 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
9129
9130 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
9131 builtin define __VEC_ELEMENT_REG_ORDER__.
9132
9133 2014-08-20 Martin Jambor <mjambor@suse.cz>
9134 Wei Mi <wmi@google.com>
9135
9136 PR ipa/60449
9137 PR middle-end/61776
9138 * tree-ssa-operands.c (update_stmt_operands): Remove
9139 MODIFIED_NORETURN_CALLS.
9140 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
9141 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
9142 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
9143 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
9144 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
9145 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
9146 (gimple_call_set_ctrl_altering): New func.
9147 (gimple_call_ctrl_altering_p): Ditto.
9148 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
9149 (make_blocks): Use gimple_call_initialize_ctrl_altering.
9150 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
9151 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
9152 remove MODIFIED_NORETURN_CALLS.
9153
9154 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
9155
9156 * coverage.c (coverage_compute_profile_id): Return non-0;
9157 also handle symbols with unique name.
9158 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
9159
9160 2014-08-20 Steve Ellcey <sellcey@mips.com>
9161
9162 PR middle-end/49191
9163 * doc/sourcebuild.texi (non_strict_align): New.
9164
9165 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
9166
9167 * cgraphunit.c (ipa_passes, compile): Reshedule
9168 symtab_remove_unreachable_nodes passes; update comments.
9169 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
9170 TODO_remove_functions before the pass; the functions ought to be
9171 already removed.
9172 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
9173 TODO_remove_functions.
9174 * passes.c (pass_data_early_local_passes): Do not schedule function
9175 removal.
9176 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
9177
9178 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9179
9180 PR c/59304
9181 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
9182 before setting the option.
9183 * diagnostic.c (diagnostic_classify_diagnostic): Record
9184 command-line status.
9185
9186 2014-08-20 Richard Biener <rguenther@suse.de>
9187
9188 PR lto/62190
9189 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
9190 to build uint{16,32,64}_type_node.
9191
9192 2014-08-20 Terry Guo <terry.guo@arm.com>
9193
9194 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
9195 with immediate_operand.
9196
9197 2014-08-20 David Malcolm <dmalcolm@redhat.com>
9198
9199 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
9200 "insn" from an as_a to a safe_as_a, for the case when "insn" is
9201 NULL.
9202
9203 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9204
9205 PR preprocessor/51303
9206 * incpath.c (remove_duplicates): Use cpp_warning.
9207
9208 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9209
9210 PR c/60975
9211 PR c/53063
9212 * doc/options.texi (CPP): Document it.
9213 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
9214 * optc-gen.awk: Handle CPP.
9215 * opth-gen.awk: Likewise.
9216
9217 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9218
9219 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
9220 rtx_insn *.
9221 (duplicate_insn_chain): Likewise.
9222 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
9223 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
9224 checked cast for now (until we can strengthen the params in the
9225 same way).
9226 (duplicate_insn_chain): Likewise.
9227
9228 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9229
9230 * rtl.h (next_cc0_user): Strengthen return type from rtx to
9231 rtx_insn *.
9232 (prev_cc0_setter): Likewise.
9233
9234 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
9235 rtx_insn *, adding checked casts for now as necessary.
9236 (prev_cc0_setter): Likewise.
9237
9238 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9239
9240 * expr.h (emit_move_insn): Strengthen return type from rtx to
9241 rtx_insn *.
9242 (emit_move_insn_1): Likewise.
9243 (emit_move_complex_push): Likewise.
9244 (emit_move_complex_parts): Likewise.
9245
9246 * expr.c (emit_move_via_integer): Strengthen return type from rtx
9247 to rtx_insn *. Replace use of NULL_RTX with NULL when working
9248 with insns.
9249 (emit_move_complex_push): Strengthen return type from rtx to
9250 rtx_insn *.
9251 (emit_move_complex): Likewise, also for local "ret".
9252 (emit_move_ccmode): Likewise.
9253 (emit_move_multi_word): Likewise for return type and locals
9254 "last_insn", "seq".
9255 (emit_move_insn_1): Likewise for return type and locals "result",
9256 "ret".
9257 (emit_move_insn): Likewise for return type and local "last_insn".
9258 (compress_float_constant): Likewise.
9259
9260 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9261
9262 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
9263 from rtx to rtx_insn *.
9264
9265 * rtl.h (emit_insn_before): Likewise.
9266 (emit_insn_before_noloc): Likewise.
9267 (emit_insn_before_setloc): Likewise.
9268 (emit_jump_insn_before): Likewise.
9269 (emit_jump_insn_before_noloc): Likewise.
9270 (emit_jump_insn_before_setloc): Likewise.
9271 (emit_call_insn_before): Likewise.
9272 (emit_call_insn_before_noloc): Likewise.
9273 (emit_call_insn_before_setloc): Likewise.
9274 (emit_debug_insn_before): Likewise.
9275 (emit_debug_insn_before_noloc): Likewise.
9276 (emit_debug_insn_before_setloc): Likewise.
9277 (emit_label_before): Likewise.
9278 (emit_insn_after): Likewise.
9279 (emit_insn_after_noloc): Likewise.
9280 (emit_insn_after_setloc): Likewise.
9281 (emit_jump_insn_after): Likewise.
9282 (emit_jump_insn_after_noloc): Likewise.
9283 (emit_jump_insn_after_setloc): Likewise.
9284 (emit_call_insn_after): Likewise.
9285 (emit_call_insn_after_noloc): Likewise.
9286 (emit_call_insn_after_setloc): Likewise.
9287 (emit_debug_insn_after): Likewise.
9288 (emit_debug_insn_after_noloc): Likewise.
9289 (emit_debug_insn_after_setloc): Likewise.
9290 (emit_label_after): Likewise.
9291 (emit_insn): Likewise.
9292 (emit_debug_insn): Likewise.
9293 (emit_jump_insn): Likewise.
9294 (emit_call_insn): Likewise.
9295 (emit_label): Likewise.
9296 (gen_clobber): Likewise.
9297 (emit_clobber): Likewise.
9298 (gen_use): Likewise.
9299 (emit_use): Likewise.
9300 (emit): Likewise.
9301
9302 (emit_barrier_before): Strengthen return type from rtx to
9303 rtx_barrier *.
9304 (emit_barrier_after): Likewise.
9305 (emit_barrier): Likewise.
9306
9307 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
9308 from rtx to rtx_insn *. Add checked casts for now when converting
9309 "last" from rtx to rtx_insn *.
9310 (emit_insn_before_noloc): Likewise for return type.
9311 (emit_jump_insn_before_noloc): Likewise.
9312 (emit_call_insn_before_noloc): Likewise.
9313 (emit_debug_insn_before_noloc): Likewise.
9314 (emit_barrier_before): Strengthen return type and local "insn"
9315 from rtx to rtx_barrier *.
9316 (emit_label_before): Strengthen return type from rtx to
9317 rtx_insn *. Add checked cast for now when returning param
9318 (emit_pattern_after_noloc): Strengthen return type from rtx to
9319 rtx_insn *. Add checked casts for now when converting "last" from
9320 rtx to rtx_insn *.
9321 (emit_insn_after_noloc): Strengthen return type from rtx to
9322 rtx_insn *.
9323 (emit_jump_insn_after_noloc): Likewise.
9324 (emit_call_insn_after_noloc): Likewise.
9325 (emit_debug_insn_after_noloc): Likewise.
9326 (emit_barrier_after): Strengthen return type from rtx to
9327 rtx_barrier *.
9328 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
9329 Add checked cast for now when converting "label" from rtx to
9330 rtx_insn *.
9331 (emit_pattern_after_setloc): Strengthen return type from rtx to
9332 rtx_insn *. Add checked casts for now when converting "last" from
9333 rtx to rtx_insn *.
9334 (emit_pattern_after): Strengthen return type from rtx to
9335 rtx_insn *.
9336 (emit_insn_after_setloc): Likewise.
9337 (emit_insn_after): Likewise.
9338 (emit_jump_insn_after_setloc): Likewise.
9339 (emit_jump_insn_after): Likewise.
9340 (emit_call_insn_after_setloc): Likewise.
9341 (emit_call_insn_after): Likewise.
9342 (emit_debug_insn_after_setloc): Likewise.
9343 (emit_debug_insn_after): Likewise.
9344 (emit_pattern_before_setloc): Likewise. Add checked casts for now
9345 when converting "last" from rtx to rtx_insn *.
9346 (emit_pattern_before): Strengthen return type from rtx to
9347 rtx_insn *.
9348 (emit_insn_before_setloc): Likewise.
9349 (emit_insn_before): Likewise.
9350 (emit_jump_insn_before_setloc): Likewise.
9351 (emit_jump_insn_before): Likewise.
9352 (emit_call_insn_before_setloc): Likewise.
9353 (emit_call_insn_before): Likewise.
9354 (emit_debug_insn_before_setloc): Likewise.
9355 (emit_debug_insn_before): Likewise.
9356 (emit_insn): Strengthen return type and locals "last", "insn",
9357 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
9358 within cases where we know we have an insn.
9359 (emit_debug_insn): Likewise.
9360 (emit_jump_insn): Likewise.
9361 (emit_call_insn): Strengthen return type and local "insn" from rtx
9362 to rtx_insn *.
9363 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
9364 a checked cast to rtx_insn * for now on "label".
9365 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
9366 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
9367 (emit_use): Likewise.
9368 (gen_use): Likewise, also for local "seq".
9369 (emit): Likewise for return type and local "insn".
9370 (rtx_insn): Likewise for return type and local "new_rtx".
9371
9372 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
9373 from rtx to rtx_barrier *.
9374
9375 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
9376 changed return type from rtx to rtx_insn *, we must update
9377 "emit_fn" type, and this in turn means updating...
9378 (frame_insn): ...this. Strengthen return type from rtx to
9379 rtx_insn *. Introduce a new local "insn" of the appropriate type.
9380
9381 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9382
9383 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
9384 rtx to rtx_jump_table_data *. Also for local.
9385 * rtl.h (emit_jump_table_data): Likewise.
9386
9387 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9388
9389 * basic-block.h (create_basic_block_structure): Strengthen third
9390 param "bb_note" from rtx to rtx_note *.
9391 * rtl.h (emit_note_before): Strengthen return type from rtx to
9392 rtx_note *.
9393 (emit_note_after): Likewise.
9394 (emit_note): Likewise.
9395 (emit_note_copy): Likewise. Also, strengthen param similarly.
9396 * function.h (struct rtl_data): Strengthen field
9397 "x_stack_check_probe_note" from rtx to rtx_note *.
9398
9399 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
9400 from rtx to rtx_note *.
9401 * cfgrtl.c (create_basic_block_structure): Strengthen third param
9402 "bb_note" from rtx to rtx_note *.
9403 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
9404 when calling emit_note_copy.
9405 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
9406 rtx_note *.
9407 (emit_note_after): Likewise.
9408 (emit_note_before): Likewise.
9409 (emit_note_copy): Likewise. Also, strengthen param similarly.
9410 (emit_note): Likewise.
9411 * except.c (emit_note_eh_region_end): Likewise for return type.
9412 Strengthen local "next" from rtx to rtx_insn *.
9413 (convert_to_eh_region_ranges): Strengthen local "note"
9414 from rtx to rtx_note *.
9415 * final.c (change_scope): Likewise.
9416 (reemit_insn_block_notes): Likewise, for both locals named "note".
9417 Also, strengthen local "insn" from rtx to rtx_insn *.
9418 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
9419 rtx to rtx_note *.
9420 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
9421 strengthen local "seq" from rtx to rtx_insn *.
9422 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
9423 to rtx_note *.
9424 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
9425 vec<rtx_note *>.
9426 (get_bb_note_from_pool): Strengthen return type from rtx to
9427 rtx_note *.
9428 (sel_create_basic_block): Strengthen local "new_bb_note" from
9429 insn_t to rtx_note *.
9430 * var-tracking.c (emit_note_insn_var_location): Strengthen local
9431 "note" from rtx to rtx_note *.
9432 (emit_notes_in_bb): Likewise.
9433
9434 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9435
9436 * function.h (struct rtl_data): Strengthen field
9437 "x_parm_birth_insn" from rtx to rtx_insn *.
9438 * function.c (struct assign_parm_data_all): Strengthen fields
9439 "first_conversion_insn" and "last_conversion_insn" from rtx to
9440 rtx_insn *.
9441
9442 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9443
9444 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
9445 to rtx_insn *; also for local "var_end_seq".
9446 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
9447 (maybe_cleanup_end_of_block): Likewise for param "last" and local
9448 "insn".
9449 (expand_gimple_cond): Likewise for locals "last2" and "last".
9450 (mark_transaction_restart_calls): Likewise for local "insn".
9451 (expand_gimple_stmt): Likewise for return type and locals "last"
9452 and "insn".
9453 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
9454 (avoid_complex_debug_insns): Likewise for param "insn".
9455 (expand_debug_locations): Likewise for locals "insn", "last",
9456 "prev_insn" and "insn2".
9457 (expand_gimple_basic_block): Likewise for local "last".
9458 (construct_exit_block): Likewise for locals "head", "end",
9459 "orig_end".
9460 (pass_expand::execute): Likewise for locals "var_seq",
9461 "var_ret_seq", "next".
9462
9463 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9464
9465 * asan.h (asan_emit_stack_protection): Strengthen return type from
9466 rtx to rtx_insn *.
9467 * asan.c (asan_emit_stack_protection): Likewise. Add local
9468 "insns" to hold the return value.
9469
9470 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9471
9472 * basic-block.h (bb_note): Strengthen return type from rtx to
9473 rtx_note *.
9474 * sched-int.h (bb_note): Likewise.
9475 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
9476
9477 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9478
9479 * rtl.h (make_insn_raw): Strengthen return type from rtx to
9480 rtx_insn *.
9481
9482 * emit-rtl.c (make_insn_raw): Strengthen return type and local
9483 "insn" from rtx to rtx_insn *.
9484 (make_debug_insn_raw): Strengthen return type from rtx to
9485 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
9486 (make_jump_insn_raw): Strengthen return type from rtx to
9487 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
9488 (make_call_insn_raw): Strengthen return type from rtx to
9489 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
9490 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
9491 callback from rtx to rtx_insn *; likewise for local "insn" and
9492 "next", adding a checked cast to rtx_insn in the relevant cases of
9493 the switch statement.
9494 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
9495 callback from rtx to rtx_insn *.
9496 (emit_pattern_after_setloc): Likewise.
9497 (emit_pattern_after): Likewise.
9498 (emit_pattern_before_setloc): Likewise.
9499 (emit_pattern_before): Likewise.
9500
9501 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9502
9503 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
9504 rtx_call_insn *.
9505 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
9506 accepting an rtx_insn *.
9507 (last_call_insn): Strengthen return type from rtx to
9508 rtx_call_insn *.
9509
9510 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9511
9512 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
9513 "insns" from rtx to rtx_insn *.
9514 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
9515 locals "insn" and "prev".
9516
9517 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9518
9519 * rtl.h (tablejump_p): Strengthen third param from rtx * to
9520 rtx_jump_table_data **.
9521
9522 * cfgbuild.c (make_edges): Introduce local "table", using it in
9523 place of "tmp" for jump table data.
9524 (find_bb_boundaries): Strengthen local "table" from rtx to
9525 rtx_jump_table_data *.
9526 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9527 (outgoing_edges_match): Likewise for locals "table1" and "table2".
9528 (try_crossjump_to_edge): Likewise.
9529 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
9530 "table".
9531 (patch_jump_insn): Introduce local "table", using it in place of
9532 "tmp" for jump table data.
9533 (force_nonfallthru_and_redirect): Introduce local "table", so that
9534 call to tablejump_p can receive an rtx_jump_table_data **. Update
9535 logic around the call to overwrite "note" appropriately if
9536 tablejump_p returns non-zero.
9537 (get_last_bb_insn): Introduce local "table", using it in place of
9538 "tmp" for jump table data.
9539 * dwarf2cfi.c (create_trace_edges): Likewise.
9540
9541 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
9542 from rtx to rtx_jump_table_data *.
9543 (create_fix_barrier): Strengthen local "tmp" from rtx to
9544 rtx_jump_table_data *.
9545 (arm_reorg): Likewise for local "table".
9546
9547 * config/s390/s390.c (s390_chunkify_start): Likewise.
9548
9549 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
9550
9551 * jump.c (delete_related_insns): Strengthen local "lab_next" from
9552 rtx to rtx_jump_table_data *.
9553
9554 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
9555 rtx_jump_table_data **. Add a checked cast when writing through
9556 the pointer: we know there that local "table" is non-NULL and that
9557 JUMP_TABLE_DATA_P (table) holds.
9558 (label_is_jump_target_p): Introduce local "table", using it in
9559 place of "tmp" for jump table data.
9560
9561 2014-08-19 Marek Polacek <polacek@redhat.com>
9562
9563 PR c++/62153
9564 * doc/invoke.texi: Document -Wbool-compare.
9565
9566 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9567
9568 * rtl.h (entry_of_function): Strengthen return type from rtx to
9569 rtx_insn *.
9570 * cfgrtl.c (entry_of_function): Likewise.
9571
9572 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9573
9574 * emit-rtl.h (get_insns): Strengthen return type from rtx to
9575 rtx_insn *, adding a checked cast for now.
9576 (get_last_insn): Likewise.
9577
9578 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9579
9580 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
9581 rtx_code_label *.
9582
9583 * emit-rtl.c (gen_label_rtx): Likewise.
9584
9585 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9586
9587 * rtl.h (previous_insn): Strengthen return type from rtx to
9588 rtx_insn *.
9589 (next_insn): Likewise.
9590 (prev_nonnote_insn): Likewise.
9591 (prev_nonnote_insn_bb): Likewise.
9592 (next_nonnote_insn): Likewise.
9593 (next_nonnote_insn_bb): Likewise.
9594 (prev_nondebug_insn): Likewise.
9595 (next_nondebug_insn): Likewise.
9596 (prev_nonnote_nondebug_insn): Likewise.
9597 (next_nonnote_nondebug_insn): Likewise.
9598 (prev_real_insn): Likewise.
9599 (next_real_insn): Likewise.
9600 (prev_active_insn): Likewise.
9601 (next_active_insn): Likewise.
9602
9603 * emit-rtl.c (next_insn): Strengthen return type from rtx to
9604 rtx_insn *, adding a checked cast.
9605 (previous_insn): Likewise.
9606 (next_nonnote_insn): Likewise.
9607 (next_nonnote_insn_bb): Likewise.
9608 (prev_nonnote_insn): Likewise.
9609 (prev_nonnote_insn_bb): Likewise.
9610 (next_nondebug_insn): Likewise.
9611 (prev_nondebug_insn): Likewise.
9612 (next_nonnote_nondebug_insn): Likewise.
9613 (prev_nonnote_nondebug_insn): Likewise.
9614 (next_real_insn): Likewise.
9615 (prev_real_insn): Likewise.
9616 (next_active_insn): Likewise.
9617 (prev_active_insn): Likewise.
9618
9619 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
9620 param "stepfunc" so that it returns an rtx_insn * rather than an
9621 rtx, to track the change to prev_nonnote_insn_bb, which is the
9622 only function this is called with.
9623 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
9624
9625 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
9626
9627 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
9628 assert.
9629
9630 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9631
9632 * coretypes.h (class rtx_debug_insn): Add forward declaration.
9633 (class rtx_nonjump_insn): Likewise.
9634 (class rtx_jump_insn): Likewise.
9635 (class rtx_call_insn): Likewise.
9636 (class rtx_jump_table_data): Likewise.
9637 (class rtx_barrier): Likewise.
9638 (class rtx_code_label): Likewise.
9639 (class rtx_note): Likewise.
9640
9641 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
9642 adding the invariant DEBUG_INSN_P (X).
9643 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
9644 the invariant NONJUMP_INSN_P (X).
9645 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
9646 the invariant JUMP_P (X).
9647 (class rtx_call_insn): New, a subclass of rtx_insn, adding
9648 the invariant CALL_P (X).
9649 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
9650 invariant JUMP_TABLE_DATA_P (X).
9651 (class rtx_barrier): New, a subclass of rtx_insn, adding the
9652 invariant BARRIER_P (X).
9653 (class rtx_code_label): New, a subclass of rtx_insn, adding
9654 the invariant LABEL_P (X).
9655 (class rtx_note): New, a subclass of rtx_insn, adding
9656 the invariant NOTE_P(X).
9657 (is_a_helper <rtx_debug_insn *>::test): New.
9658 (is_a_helper <rtx_nonjump_insn *>::test): New.
9659 (is_a_helper <rtx_jump_insn *>::test): New.
9660 (is_a_helper <rtx_call_insn *>::test): New.
9661 (is_a_helper <rtx_jump_table_data *>::test): New functions,
9662 overloaded for both rtx and rtx_insn *.
9663 (is_a_helper <rtx_barrier *>::test): New.
9664 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
9665 for both rtx and rtx_insn *.
9666 (is_a_helper <rtx_note *>::test): New.
9667
9668 2014-08-19 Marek Polacek <polacek@redhat.com>
9669
9670 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
9671 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9672 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
9673 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9674
9675 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9676
9677 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
9678 rtx_insn *. To help with transition, for now, convert from an
9679 access macro into a pair of functions: BND_TO, returning an
9680 rtx_insn *, and...
9681 (SET_BND_TO): New function, for use where BND_TO is used as an
9682 lvalue.
9683
9684 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
9685 SET_BND_TO.
9686 (BND_TO): New function, adding a checked cast.
9687 (SET_BND_TO): New function.
9688
9689 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
9690 SET_BND_TO.
9691 (compute_av_set_on_boundaries): Likewise.
9692
9693 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
9694
9695 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
9696 destination if it is used in source.
9697 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
9698 (*popcount<mode>2_falsedep_1): Likewise.
9699
9700 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
9701
9702 PR other/62168
9703 * configure.ac: Set install_gold_as_default to no first.
9704 * configure: Regenerated.
9705
9706 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9707
9708 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
9709 "note_list" field will eventually be an rtx_insn *. To help with
9710 transition, for now, convert from an access macro into a pair of
9711 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
9712 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
9713 used as an lvalue.
9714
9715 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
9716 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
9717
9718 * sel-sched-ir.c (init_bb): Likewise.
9719 (sel_restore_notes): Likewise.
9720 (move_bb_info): Likewise.
9721 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
9722 (SET_BB_NOTE_LIST): New function.
9723
9724 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9725
9726 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
9727 field will eventually be an rtx_insn *. To help with transition,
9728 for now, convert from an access macro into a pair of functions:
9729 VINSN_INSN_RTX, returning an rtx_insn *, and...
9730 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
9731 is used as an lvalue.
9732
9733 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
9734 SET_VINSN_INSN_RTX where it's used as an lvalue.
9735 (VINSN_INSN_RTX): New function.
9736 (SET_VINSN_INSN_RTX): New function.
9737
9738 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9739
9740 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
9741 eventually be rtx_insn *, but to help with transition, for now,
9742 convert from an access macro into a pair of functions: DEP_PRO
9743 returning an rtx_insn * and...
9744 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
9745 lvalue, returning an rtx&.
9746 (DEP_CON): Analogous changes to DEP_PRO above.
9747 (SET_DEP_CON): Likewise.
9748
9749 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
9750 an lvalue to SET_DEP_CON.
9751 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
9752 (sd_copy_back_deps): Likewise for DEP_CON.
9753 (DEP_PRO): New function, adding a checked cast for now.
9754 (DEP_CON): Likewise.
9755 (SET_DEP_PRO): New function.
9756 (SET_DEP_CON): Likewise.
9757
9758 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
9759
9760 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
9761 (extra_options): Add i386/cygwin.opt.
9762 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
9763 (CPP_SPEC): Accept -pthread.
9764 (LINK_SPEC): Ditto.
9765 (GOMP_SELF_SPECS): Update comment.
9766 * config/i386/cygwin.opt: New file for -pthread flag.
9767
9768 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9769
9770 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
9771 * df.h (DF_REF_INSN): Convert from a macro to a function, so
9772 that we can return an rtx_insn *.
9773
9774 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
9775
9776 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
9777 when building executables, not DLLs. Add --large-address-aware
9778 under the same conditions.
9779 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
9780 when building executables, not DLLs. Add --large-address-aware
9781 under the same conditions when using -m32.
9782
9783 * config/i386/cygwin-stdint.h: Throughout, make type
9784 definitions dependent on target architecture, not host.
9785
9786 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9787
9788 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
9789 the return type from rtx to rtx_insn *, which will enable various
9790 conversions in followup patches. For now this is is done by a
9791 checked cast.
9792 (NEXT_INSN): Likewise.
9793 (SET_PREV_INSN): Convert to an inline function. This is intended
9794 for use as an lvalue, and so returns an rtx& to allow in-place
9795 modification.
9796 (SET_NEXT_INSN): Likewise.
9797
9798 2014-07-08 Mark Wielaard <mjw@redhat.com>
9799
9800 PR debug/59051
9801 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
9802
9803 2014-08-19 Marek Polacek <polacek@redhat.com>
9804
9805 PR c/61271
9806 * cgraphunit.c (handle_alias_pairs): Fix condition.
9807
9808 2014-08-19 Richard Biener <rguenther@suse.de>
9809
9810 * gimple-fold.c (fold_gimple_assign): Properly build a
9811 null-pointer constant when devirtualizing addresses.
9812
9813 2014-07-07 Mark Wielaard <mjw@redhat.com>
9814
9815 * dwarf2out.c (decl_quals): New function.
9816 (modified_type_die): Take one cv_quals argument instead of two,
9817 one for const and one for volatile.
9818 (add_type_attribute): Likewise.
9819 (generic_parameter_die): Call add_type_attribute with one modifier
9820 argument.
9821 (base_type_for_mode): Likewise.
9822 (add_bounds_info): Likewise.
9823 (add_subscript_info): Likewise.
9824 (gen_array_type_die): Likewise.
9825 (gen_descr_array_type_die): Likewise.
9826 (gen_entry_point_die): Likewise.
9827 (gen_enumeration_type_die): Likewise.
9828 (gen_formal_parameter_die): Likewise.
9829 (gen_subprogram_die): Likewise.
9830 (gen_variable_die): Likewise.
9831 (gen_const_die): Likewise.
9832 (gen_field_die): Likewise.
9833 (gen_pointer_type_die): Likewise.
9834 (gen_reference_type_die): Likewise.
9835 (gen_ptr_to_mbr_type_die): Likewise.
9836 (gen_inheritance_die): Likewise.
9837 (gen_subroutine_type_die): Likewise.
9838 (gen_typedef_die): Likewise.
9839 (force_type_die): Likewise.
9840
9841 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9842
9843 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
9844 if unset.
9845 * configure: Regenerate.
9846
9847 2014-08-19 Richard Biener <rguenther@suse.de>
9848
9849 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
9850 DECL_EXTERNALs in BLOCKs as non-references.
9851 * tree-streamer-out.c (streamer_write_chain): Likewise.
9852
9853 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
9854 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9855 Anna Tikhonova <anna.tikhonova@intel.com>
9856 Ilya Tocar <ilya.tocar@intel.com>
9857 Andrey Turetskiy <andrey.turetskiy@intel.com>
9858 Ilya Verbin <ilya.verbin@intel.com>
9859 Kirill Yukhin <kirill.yukhin@intel.com>
9860 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9861
9862 * config/i386/sse.md
9863 (define_mode_iterator VI48_AVX512F): Delete.
9864 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
9865 (define_mode_iterator VI2_AVX512VL): Ditto.
9866 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
9867 Delete.
9868 (define_insn
9869 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
9870 New.
9871 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
9872 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
9873 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
9874 with VI48_AVX512F_AVX512VL): New.
9875 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
9876 with VI2_AVX512VL): Ditto.
9877
9878 2014-08-19 Marek Polacek <polacek@redhat.com>
9879
9880 * doc/invoke.texi: Document -Wc99-c11-compat.
9881
9882 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9883
9884 * rtl.h (PREV_INSN): Split macro in two: the existing one,
9885 for rvalues, and...
9886 (SET_PREV_INSN): New macro, for use as an lvalue.
9887 (NEXT_INSN, SET_NEXT_INSN): Likewise.
9888
9889 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
9890 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
9891 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
9892 (fixup_abnormal_edges): Likewise.
9893 (unlink_insn_chain): Likewise.
9894 (fixup_reorder_chain): Likewise.
9895 (cfg_layout_delete_block): Likewise.
9896 (cfg_layout_merge_blocks): Likewise.
9897 * combine.c (update_cfg_for_uncondjump): Likewise.
9898 * emit-rtl.c (link_insn_into_chain): Likewise.
9899 (remove_insn): Likewise.
9900 (delete_insns_since): Likewise.
9901 (reorder_insns_nobb): Likewise.
9902 (emit_insn_after_1): Likewise.
9903 * final.c (rest_of_clean_state): Likewise.
9904 (final_scan_insn): Likewise.
9905 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
9906 * haifa-sched.c (concat_note_lists): Likewise.
9907 (remove_notes): Likewise.
9908 (restore_other_notes): Likewise.
9909 (move_insn): Likewise.
9910 (unlink_bb_notes): Likewise.
9911 (restore_bb_notes): Likewise.
9912 * jump.c (delete_for_peephole): Likewise.
9913 * optabs.c (emit_libcall_block_1): Likewise.
9914 * reorg.c (emit_delay_sequence): Likewise.
9915 (fill_simple_delay_slots): Likewise.
9916 * sel-sched-ir.c (sel_move_insn): Likewise.
9917 (sel_remove_insn): Likewise.
9918 (get_bb_note_from_pool): Likewise.
9919 * sel-sched.c (move_nop_to_previous_block): Likewise.
9920
9921 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
9922 * config/c6x/c6x.c (gen_one_bundle): Likewise.
9923 (c6x_gen_bundles): Likewise.
9924 (hwloop_optimize): Likewise.
9925 * config/frv/frv.c (frv_function_prologue): Likewise.
9926 (frv_register_nop): Likewise.
9927 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
9928 (ia64_reorg): Likewise.
9929 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
9930 (mep_make_bundle): Likewise.
9931 (mep_bundle_insns): Likewise.
9932 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
9933 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
9934 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
9935
9936 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9937
9938 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
9939 return type from rtx to rtx_insn *.
9940 (BB_END): Likewise.
9941 (BB_HEADER): Likewise.
9942 (BB_FOOTER): Likewise.
9943 (SET_BB_HEAD): Convert to a function.
9944 (SET_BB_END): Likewise.
9945 (SET_BB_HEADER): Likewise.
9946 (SET_BB_FOOTER): Likewise.
9947
9948 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
9949 Strengthen the return type from rtx to rtx_insn *. For now, this
9950 is done by adding a checked cast, but this will eventually
9951 become a field lookup.
9952 (BB_END): Likewise.
9953 (BB_HEADER): Likewise.
9954 (BB_FOOTER): Likewise.
9955 (SET_BB_HEAD): New function, from macro of same name. This is
9956 intended for use as an lvalue, and so returns an rtx& to allow
9957 in-place modification.
9958 (SET_BB_END): Likewise.
9959 (SET_BB_HEADER): Likewise.
9960 (SET_BB_FOOTER): Likewise.
9961
9962 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9963
9964 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
9965 for rvalues, and...
9966 (SET_BB_HEAD): New macro, for use as a lvalue.
9967 (BB_END, SET_BB_END): Likewise.
9968 (BB_HEADER, SET_BB_HEADER): Likewise.
9969 (BB_FOOTER, SET_BB_FOOTER): Likewise.
9970
9971 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
9972 of BB_* macros into SET_BB_* macros.
9973 (fix_crossing_unconditional_branches): Likewise.
9974 * caller-save.c (save_call_clobbered_regs): Likewise.
9975 (insert_one_insn): Likewise.
9976 * cfgbuild.c (find_bb_boundaries): Likewise.
9977 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9978 (outgoing_edges_match): Likewise.
9979 (try_optimize_cfg): Likewise.
9980 * cfgexpand.c (expand_gimple_cond): Likewise.
9981 (expand_gimple_tailcall): Likewise.
9982 (expand_gimple_basic_block): Likewise.
9983 (construct_exit_block): Likewise.
9984 * cfgrtl.c (delete_insn): Likewise.
9985 (create_basic_block_structure): Likewise.
9986 (rtl_delete_block): Likewise.
9987 (rtl_split_block): Likewise.
9988 (emit_nop_for_unique_locus_between): Likewise.
9989 (rtl_merge_blocks): Likewise.
9990 (block_label): Likewise.
9991 (try_redirect_by_replacing_jump): Likewise.
9992 (emit_barrier_after_bb): Likewise.
9993 (fixup_abnormal_edges): Likewise.
9994 (record_effective_endpoints): Likewise.
9995 (relink_block_chain): Likewise.
9996 (fixup_reorder_chain): Likewise.
9997 (fixup_fallthru_exit_predecessor): Likewise.
9998 (cfg_layout_duplicate_bb): Likewise.
9999 (cfg_layout_split_block): Likewise.
10000 (cfg_layout_delete_block): Likewise.
10001 (cfg_layout_merge_blocks): Likewise.
10002 * combine.c (update_cfg_for_uncondjump): Likewise.
10003 * emit-rtl.c (add_insn_after): Likewise.
10004 (remove_insn): Likewise.
10005 (reorder_insns): Likewise.
10006 (emit_insn_after_1): Likewise.
10007 * haifa-sched.c (get_ebb_head_tail): Likewise.
10008 (restore_other_notes): Likewise.
10009 (move_insn): Likewise.
10010 (sched_extend_bb): Likewise.
10011 (fix_jump_move): Likewise.
10012 * ifcvt.c (noce_process_if_block): Likewise.
10013 (dead_or_predicable): Likewise.
10014 * ira.c (update_equiv_regs): Likewise.
10015 * reg-stack.c (change_stack): Likewise.
10016 * sel-sched-ir.c (sel_move_insn): Likewise.
10017 * sel-sched.c (move_nop_to_previous_block): Likewise.
10018
10019 * config/c6x/c6x.c (hwloop_optimize): Likewise.
10020 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
10021
10022 2014-08-18 David Malcolm <dmalcolm@redhat.com>
10023
10024 * rtl.h (for_each_rtx_in_insn): New function.
10025 * rtlanal.c (for_each_rtx_in_insn): Likewise.
10026
10027 2014-08-18 David Malcolm <dmalcolm@redhat.com>
10028
10029 * coretypes.h (class rtx_insn): Add forward declaration.
10030
10031 * rtl.h: Include is-a.h.
10032 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
10033 workaround to ensure gengtype knows inheritance is occurring,
10034 whilst continuing to use the pre-existing special-casing for
10035 rtx_def.
10036 (class rtx_insn): New subclass of rtx_def, adding the
10037 invariant that we're dealing with something we can sanely use
10038 INSN_UID, NEXT_INSN, PREV_INSN on.
10039 (is_a_helper <rtx_insn *>::test): New.
10040 (is_a_helper <const rtx_insn *>::test): New.
10041
10042 2014-08-18 David Malcolm <dmalcolm@redhat.com>
10043
10044 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
10045
10046 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
10047
10048 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
10049 comdats as extern.
10050
10051 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
10052
10053 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
10054 to BUILT_IN_UNREACHABLE.
10055
10056 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
10057
10058 PR target/62011
10059 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
10060 New tune flag.
10061 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
10062 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
10063 (ffs<mode>2): Do not expand with tzcnt for
10064 TARGET_AVOID_FALSE_DEP_FOR_BMI.
10065 (ffssi2_no_cmove): Ditto.
10066 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
10067 (ctz<mode>2): New expander.
10068 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
10069 (*ctz<mode>2_falsedep): New insn.
10070 (*ctz<mode>2): Rename from ctz<mode>2.
10071 (clz<mode>2_lzcnt): New expander.
10072 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
10073 (*clz<mode>2_lzcnt_falsedep): New insn.
10074 (*clz<mode>2): Rename from ctz<mode>2.
10075 (popcount<mode>2): New expander.
10076 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
10077 (*popcount<mode>2_falsedep): New insn.
10078 (*popcount<mode>2): Rename from ctz<mode>2.
10079 (*popcount<mode>2_cmp): Remove.
10080 (*popcountsi2_cmp_zext): Ditto.
10081
10082 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
10083
10084 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
10085 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
10086 * config/microblaze/microblaze.h
10087 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
10088
10089 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
10090
10091 PR other/62168
10092 * configure.ac: Set install_gold_as_default to no for
10093 --enable-gold=no.
10094 * configure: Regenerated.
10095
10096 2014-08-18 Roman Gareev <gareevroman@gmail.com>
10097
10098 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
10099 * config.in: Add undef of HAVE_isl.
10100 * configure: Regenerate.
10101 * configure.ac: Add definition of HAVE_isl.
10102 * graphite-blocking.c: Add checking of HAVE_isl.
10103 * graphite-dependences.c: Likewise.
10104 * graphite-interchange.c: Likewise.
10105 * graphite-isl-ast-to-gimple.c: Likewise.
10106 * graphite-optimize-isl.c: Likewise.
10107 * graphite-poly.c: Likewise.
10108 * graphite-scop-detection.c: Likewise.
10109 * graphite-sese-to-poly.c: Likewise.
10110 * graphite.c: Likewise.
10111 * toplev.c: Replace the checking of HAVE_cloog with the checking
10112 of HAVE_isl.
10113
10114 2014-08-18 Richard Biener <rguenther@suse.de>
10115
10116 PR tree-optimization/62090
10117 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
10118 (fold_builtin_3): Do not fold snprintf.
10119 (fold_builtin_4): Likewise.
10120 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
10121 moved from builtins.c.
10122 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
10123 (gimple_fold_builtin): Do not fold sprintf here.
10124
10125 2014-08-18 Richard Biener <rguenther@suse.de>
10126
10127 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
10128 code to ...
10129 (maybe_canonicalize_mem_ref_addr): ... this function.
10130 (fold_stmt_1): Apply it here before all simplification.
10131
10132 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
10133
10134 PR ipa/61800
10135 * cgraph.h (cgraph_node::create_indirect_edge): Add
10136 compute_indirect_info param.
10137 * cgraph.c (cgraph_node::create_indirect_edge): Compute
10138 indirect_info only when it is required.
10139 * cgraphclones.c (cgraph_clone_edge): Do not recompute
10140 indirect_info fore cloned indirect edge.
10141
10142 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10143 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10144 Anna Tikhonova <anna.tikhonova@intel.com>
10145 Ilya Tocar <ilya.tocar@intel.com>
10146 Andrey Turetskiy <andrey.turetskiy@intel.com>
10147 Ilya Verbin <ilya.verbin@intel.com>
10148 Kirill Yukhin <kirill.yukhin@intel.com>
10149 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10150
10151 * config/i386/sse.md
10152 (define_mode_iterator VI8_AVX2_AVX512BW): New.
10153 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
10154
10155 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10156 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10157 Anna Tikhonova <anna.tikhonova@intel.com>
10158 Ilya Tocar <ilya.tocar@intel.com>
10159 Andrey Turetskiy <andrey.turetskiy@intel.com>
10160 Ilya Verbin <ilya.verbin@intel.com>
10161 Kirill Yukhin <kirill.yukhin@intel.com>
10162 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10163
10164 * config/i386/sse.md
10165 (define_mode_iterator VF1_AVX512VL): New.
10166 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
10167 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
10168 New.
10169
10170 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10171 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10172 Anna Tikhonova <anna.tikhonova@intel.com>
10173 Ilya Tocar <ilya.tocar@intel.com>
10174 Andrey Turetskiy <andrey.turetskiy@intel.com>
10175 Ilya Verbin <ilya.verbin@intel.com>
10176 Kirill Yukhin <kirill.yukhin@intel.com>
10177 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10178
10179 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
10180 * config/i386/i386.md
10181 (define_code_iterator any_float): New.
10182 (define_code_attr floatsuffix): New.
10183 * config/i386/sse.md
10184 (define_mode_iterator VF1_128_256VL): New.
10185 (define_mode_iterator VF2_512_256VL): New.
10186 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
10187 TARGET check.
10188 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
10189 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
10190 New.
10191 (define_mode_attr qq2pssuff): New.
10192 (define_mode_attr sselongvecmode): New.
10193 (define_mode_attr sselongvecmodelower): New.
10194 (define_mode_attr sseintvecmode3): New.
10195 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
10196 New.
10197 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
10198 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
10199 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
10200 (define_insn "ufloatv2siv2df2<mask_name>"): New.
10201
10202 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10203 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10204 Anna Tikhonova <anna.tikhonova@intel.com>
10205 Ilya Tocar <ilya.tocar@intel.com>
10206 Andrey Turetskiy <andrey.turetskiy@intel.com>
10207 Ilya Verbin <ilya.verbin@intel.com>
10208 Kirill Yukhin <kirill.yukhin@intel.com>
10209 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10210
10211 * config/i386/sse.md
10212 (define_mode_iterator VF2_AVX512VL): New.
10213 (define_mode_attr sseintvecmode2): New.
10214 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
10215 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
10216 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
10217 (define_insn
10218 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
10219 Ditto.
10220 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
10221 Ditto.
10222 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
10223 Ditto.
10224
10225 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10226 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10227 Anna Tikhonova <anna.tikhonova@intel.com>
10228 Ilya Tocar <ilya.tocar@intel.com>
10229 Andrey Turetskiy <andrey.turetskiy@intel.com>
10230 Ilya Verbin <ilya.verbin@intel.com>
10231 Kirill Yukhin <kirill.yukhin@intel.com>
10232 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10233
10234 * config/i386/i386.md
10235 (define_insn "*movoi_internal_avx"): Add evex version.
10236 (define_insn "*movti_internal"): Ditto.
10237
10238 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10239 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10240 Anna Tikhonova <anna.tikhonova@intel.com>
10241 Ilya Tocar <ilya.tocar@intel.com>
10242 Andrey Turetskiy <andrey.turetskiy@intel.com>
10243 Ilya Verbin <ilya.verbin@intel.com>
10244 Kirill Yukhin <kirill.yukhin@intel.com>
10245 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10246
10247 * config/i386/i386.md
10248 (define_attr "isa"): Add avx512dq, noavx512dq.
10249 (define_attr "enabled"): Ditto.
10250 * config/i386/sse.md
10251 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
10252
10253 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10254 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10255 Anna Tikhonova <anna.tikhonova@intel.com>
10256 Ilya Tocar <ilya.tocar@intel.com>
10257 Andrey Turetskiy <andrey.turetskiy@intel.com>
10258 Ilya Verbin <ilya.verbin@intel.com>
10259 Kirill Yukhin <kirill.yukhin@intel.com>
10260 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10261
10262 * config/i386/i386.c
10263 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
10264 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
10265 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
10266 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
10267 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
10268 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
10269 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
10270 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
10271 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
10272 * config/i386/sse.md
10273 (define_mode_iterator VMOVE): Allow V4TI mode.
10274 (define_mode_iterator V_AVX512VL): New.
10275 (define_mode_iterator V): New handling for AVX512VL.
10276 (define_insn "avx512f_load<mode>_mask"): Delete.
10277 (define_insn "<avx512>_load<mode>_mask"): New.
10278 (define_insn "avx512f_store<mode>_mask"): Delete.
10279 (define_insn "<avx512>_store<mode>_mask"): New.
10280
10281
10282 2014-08-18 Yury Gribov <y.gribov@samsung.com>
10283
10284 PR sanitizer/62089
10285 * asan.c (instrument_derefs): Fix bitfield check.
10286
10287 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10288
10289 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
10290 * config/rs6000/htm.md (ttest): Remove clobber.
10291 * config/rs6000/predicates.md (any_mask_operand): New predicate.
10292 (and_operand): Reformat.
10293 (and_2rld_operand): New predicate.
10294 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
10295 parameter.
10296 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
10297 parameter. Handle AND directly.
10298 (rs6000_split_logical_di): Remove last parameter.
10299 (rs6000_split_logical): Remove last parameter. Remove obsolete
10300 comment.
10301 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
10302 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
10303 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
10304 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
10305 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
10306 and 5 anonymous splitters): Delete.
10307 (and<mode>3): New expander.
10308 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
10309 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
10310 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
10311 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
10312 (floatdisf2_internal1): Remove clobbers.
10313 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
10314 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
10315 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
10316 (and<mode>3 for BOOL_128): Remove clobber.
10317 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
10318 rs6000_split_logical.
10319 (*bool<mode>3_internal for BOOL_128): Adjust call of
10320 rs6000_split_logical.
10321 (*boolc<mode>3_internal1 for BOOL_128,
10322 *boolc<mode>3_internal2 for BOOL_128,
10323 *boolcc<mode>3_internal1 for BOOL_128,
10324 *boolcc<mode>3_internal2 for BOOL_128,
10325 *eqv<mode>3_internal1 for BOOL_128,
10326 *eqv<mode>3_internal2 for BOOL_128,
10327 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
10328 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
10329 clobber.
10330 (*vec_reload_and_reg_<mptrsize>): Delete.
10331
10332 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10333
10334 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
10335 and split, *boolccsi3_internal3 and split): Delete.
10336 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
10337 *boolccdi3_internal3 and split): Delete.
10338 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
10339 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
10340
10341 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10342
10343 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
10344 and split, *boolcsi3_internal3 and split): Delete.
10345 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
10346 *boolcdi3_internal3 and split): Delete.
10347 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
10348
10349 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10350
10351 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
10352 <'u'>: Also support printing the low-order 16 bits.
10353 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
10354 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
10355 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
10356 *booldi3_internal3 and split): Delete.
10357 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
10358 *bool<mode>3_dot2): New.
10359 (two anonymous define_splits for non_logical_cint_operand): Merge.
10360
10361 2014-08-17 Marek Polacek <polacek@redhat.com>
10362 Manuel López-Ibáñez <manu@gcc.gnu.org>
10363
10364 PR c/62059
10365 * diagnostic.c (adjust_line): Add gcc_checking_assert.
10366 (diagnostic_show_locus): Don't print caret diagnostic
10367 if a column is larger than the line_width.
10368
10369 2014-08-17 Roman Gareev <gareevroman@gmail.com>
10370
10371 * common.opt: Make the ISL AST generator to be the main code generator
10372 of Graphite.
10373
10374 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
10375
10376 * wide-int.h (generic_wide_int): Declare as class instead of struct.
10377
10378 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
10379
10380 PR target/61641
10381 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
10382 Declare.
10383 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
10384 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
10385 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
10386 Define.
10387 * config/pa/pa.md (begin_brtab): Delete insn.
10388 (end_brtab): Likewise.
10389
10390 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
10391
10392 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
10393
10394 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
10395
10396 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
10397 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
10398 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
10399 (get_dynamic_type): Remove.
10400 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
10401 (clear_speculation): Bring to ipa-deivrt.h
10402 (get_class_context): Rename to ...
10403 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
10404 (contains_type_p): Update.
10405 (get_dynamic_type): Rename to ...
10406 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
10407 (possible_polymorphic_call_targets): UPdate.
10408 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
10409 * ipa-prop.c (ipa_analyze_call_uses): Update.
10410
10411 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
10412
10413 * doc/invoke.texi (SH options): Document missing processor variant
10414 options. Remove references to Hitachi. Undocument deprecated mspace
10415 option.
10416
10417 2014-08-15 Jason Merrill <jason@redhat.com>
10418
10419 * tree.c (type_hash_canon): Uncomment assert.
10420
10421 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10422
10423 * input.h (in_system_header_at): Add comment.
10424
10425 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10426
10427 PR fortran/44054
10428 * diagnostic.c (build_message_string): Make it extern.
10429 * diagnostic.h (build_message_string): Make it extern.
10430
10431 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
10432
10433 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
10434 load/store from/to non-floating class pseudo.
10435
10436 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10437
10438 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
10439
10440 2014-08-15 Richard Biener <rguenther@suse.de>
10441
10442 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
10443 (get_constraint_for_ssa_var): Remove dead code.
10444 (get_constraint_for_1): Adjust.
10445 (find_what_var_points_to): Likewise.
10446 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
10447
10448 2014-08-15 Ilya Tocar <tocarip@gmail.com>
10449
10450 PR target/61878
10451 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
10452 (_mm512_mask_cmpge_epu32_mask): Ditto.
10453 (_mm512_cmpge_epu32_mask): Ditto.
10454 (_mm512_mask_cmpge_epi64_mask): Ditto.
10455 (_mm512_cmpge_epi64_mask): Ditto.
10456 (_mm512_mask_cmpge_epu64_mask): Ditto.
10457 (_mm512_cmpge_epu64_mask): Ditto.
10458 (_mm512_mask_cmple_epi32_mask): Ditto.
10459 (_mm512_cmple_epi32_mask): Ditto.
10460 (_mm512_mask_cmple_epu32_mask): Ditto.
10461 (_mm512_cmple_epu32_mask): Ditto.
10462 (_mm512_mask_cmple_epi64_mask): Ditto.
10463 (_mm512_cmple_epi64_mask): Ditto.
10464 (_mm512_mask_cmple_epu64_mask): Ditto.
10465 (_mm512_cmple_epu64_mask): Ditto.
10466 (_mm512_mask_cmplt_epi32_mask): Ditto.
10467 (_mm512_cmplt_epi32_mask): Ditto.
10468 (_mm512_mask_cmplt_epu32_mask): Ditto.
10469 (_mm512_cmplt_epu32_mask): Ditto.
10470 (_mm512_mask_cmplt_epi64_mask): Ditto.
10471 (_mm512_cmplt_epi64_mask): Ditto.
10472 (_mm512_mask_cmplt_epu64_mask): Ditto.
10473 (_mm512_cmplt_epu64_mask): Ditto.
10474 (_mm512_mask_cmpneq_epi32_mask): Ditto.
10475 (_mm512_mask_cmpneq_epu32_mask): Ditto.
10476 (_mm512_cmpneq_epu32_mask): Ditto.
10477 (_mm512_mask_cmpneq_epi64_mask): Ditto.
10478 (_mm512_cmpneq_epi64_mask): Ditto.
10479 (_mm512_mask_cmpneq_epu64_mask): Ditto.
10480 (_mm512_cmpneq_epu64_mask): Ditto.
10481 (_mm512_castpd_ps): Ditto.
10482 (_mm512_castpd_si512): Ditto.
10483 (_mm512_castps_pd): Ditto.
10484 (_mm512_castps_si512): Ditto.
10485 (_mm512_castsi512_ps): Ditto.
10486 (_mm512_castsi512_pd): Ditto.
10487 (_mm512_castpd512_pd128): Ditto.
10488 (_mm512_castps512_ps128): Ditto.
10489 (_mm512_castsi512_si128): Ditto.
10490 (_mm512_castpd512_pd256): Ditto.
10491 (_mm512_castps512_ps256): Ditto.
10492 (_mm512_castsi512_si256): Ditto.
10493 (_mm512_castpd128_pd512): Ditto.
10494 (_mm512_castps128_ps512): Ditto.
10495 (_mm512_castsi128_si512): Ditto.
10496 (_mm512_castpd256_pd512): Ditto.
10497 (_mm512_castps256_ps512): Ditto.
10498 (_mm512_castsi256_si512): Ditto.
10499 (_mm512_cmpeq_epu32_mask): Ditto.
10500 (_mm512_mask_cmpeq_epu32_mask): Ditto.
10501 (_mm512_mask_cmpeq_epu64_mask): Ditto.
10502 (_mm512_cmpeq_epu64_mask): Ditto.
10503 (_mm512_cmpgt_epu32_mask): Ditto.
10504 (_mm512_mask_cmpgt_epu32_mask): Ditto.
10505 (_mm512_mask_cmpgt_epu64_mask): Ditto.
10506 (_mm512_cmpgt_epu64_mask): Ditto.
10507 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
10508 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
10509 * config/i386/i386.c (enum ix86_builtins): Add
10510 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
10511 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
10512 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
10513 (bdesc_args): Add __builtin_ia32_si512_256si,
10514 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
10515 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
10516 __builtin_ia32_pd512_pd.
10517 (ix86_expand_args_builtin): Handle new FTYPEs.
10518 * config/i386/sse.md (castmode): Add 512-bit modes.
10519 (AVX512MODE2P): New.
10520 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
10521 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
10522
10523 2014-08-15 Richard Biener <rguenther@suse.de>
10524
10525 * fold-const.c (tree_swap_operands_p): Put all constants
10526 last, also strip sign-changing NOPs when considering further
10527 canonicalization. Canonicalize also when optimizing for size.
10528
10529 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10530
10531 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
10532 one_match > zero_match case to just before simple_sequence.
10533
10534 2014-08-15 Richard Biener <rguenther@suse.de>
10535
10536 * data-streamer.h (streamer_string_index, string_for_index):
10537 Remove.
10538 * data-streamer-out.c (streamer_string_index): Make static.
10539 * data-streamer-in.c (string_for_index): Likewise.
10540 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
10541 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
10542
10543 2014-08-15 Richard Biener <rguenther@suse.de>
10544
10545 PR tree-optimization/62031
10546 * tree-data-ref.c (dr_analyze_indices): Do not set
10547 DR_UNCONSTRAINED_BASE.
10548 (dr_may_alias_p): All indirect accesses have to go the
10549 formerly DR_UNCONSTRAINED_BASE path.
10550 * tree-data-ref.h (struct indices): Remove
10551 unconstrained_base member.
10552 (DR_UNCONSTRAINED_BASE): Remove.
10553
10554 2014-08-15 Jakub Jelinek <jakub@redhat.com>
10555
10556 PR middle-end/62092
10557 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
10558 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
10559 in OMP_CLAUSE_MAP in some outer target region.
10560
10561 2014-08-15 Bin Cheng <bin.cheng@arm.com>
10562
10563 * tree-ssa-loop-ivopts.c (ivopts_data): New field
10564 name_expansion_cache.
10565 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
10566 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
10567 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
10568 (difference_cannot_overflow_p): New parameter. Use affine
10569 expansion for equality check.
10570 (iv_elimination_compare_lt): Pass new argument.
10571
10572 2014-08-14 DJ Delorie <dj@redhat.com>
10573
10574 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
10575 variables to the accumulator.
10576
10577 * config/rl78/predicates.md (rl78_near_mem_operand): New.
10578 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
10579 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
10580 with far-far moves.
10581
10582 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
10583 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
10584 (umulqihi3_virt): Likewise.
10585 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
10586 (umulqihi3_real): Likewise.
10587
10588 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
10589
10590 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
10591
10592 PR tree-optimization/62091
10593 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
10594 function_entry_reached.
10595 (walk_aliased_vdefs): Clear it here.
10596 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
10597
10598 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
10599
10600 * ipa-utils.h (compare_virtual_tables): Declare.
10601 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
10602
10603 2014-08-14 Marek Polacek <polacek@redhat.com>
10604
10605 DR 458
10606 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
10607 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
10608
10609 2014-08-14 Tom de Vries <tom@codesourcery.com>
10610
10611 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
10612
10613 2014-08-14 Tom de Vries <tom@codesourcery.com>
10614
10615 PR rtl-optimization/62004
10616 PR rtl-optimization/62030
10617 * ifcvt.c (rtx_interchangeable_p): New function.
10618 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
10619 * emit-rtl.h (mem_attrs_eq_p): Declare.
10620
10621 2014-08-14 Roman Gareev <gareevroman@gmail.com>
10622
10623 * graphite-scop-detection.c:
10624 Add inclusion of cp-tree.h.
10625 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
10626 in case they are pointers to object types
10627
10628 2014-08-14 Richard Biener <rguenther@suse.de>
10629
10630 * BASE-VER: Change to 5.0.0
10631
10632 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10633 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10634 Anna Tikhonova <anna.tikhonova@intel.com>
10635 Ilya Tocar <ilya.tocar@intel.com>
10636 Andrey Turetskiy <andrey.turetskiy@intel.com>
10637 Ilya Verbin <ilya.verbin@intel.com>
10638 Kirill Yukhin <kirill.yukhin@intel.com>
10639 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10640
10641 * config/i386/sse.md (define_mode_attr avx512): New.
10642 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
10643 V4DI modes.
10644 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
10645 (define_mode_attr ssse3_avx2): Ditto.
10646 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
10647 (define_mode_attr avx2_avx512bw): New.
10648 (define_mode_attr ssedoublemodelower): New.
10649 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
10650 V32HI, V64QI modes.
10651 (define_mode_attr ssebytemode): Allow V8DI modes.
10652 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
10653 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
10654 (define_mode_attr ssePSmode2): New.
10655 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
10656 V16HI, V32HI modes.
10657 (define_mode_attr dbpsadbwmode): New.
10658 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
10659 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
10660 (vi8_sse4_1_avx2_avx512): New.
10661 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
10662 mode attribute.
10663 (define_mode_attr blendbits): Move before its immediate use.
10664
10665 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10666 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10667 Anna Tikhonova <anna.tikhonova@intel.com>
10668 Ilya Tocar <ilya.tocar@intel.com>
10669 Andrey Turetskiy <andrey.turetskiy@intel.com>
10670 Ilya Verbin <ilya.verbin@intel.com>
10671 Kirill Yukhin <kirill.yukhin@intel.com>
10672 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10673
10674 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
10675 * config/i386/subst.md
10676 (define_mode_iterator SUBST_V): Update.
10677 (define_mode_iterator SUBST_A): Ditto.
10678 (define_subst_attr "mask_operand7"): New.
10679 (define_subst_attr "mask_operand10"): New.
10680 (define_subst_attr "mask_operand_arg34") : New.
10681 (define_subst_attr "mask_expand_op3"): New.
10682 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
10683 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
10684 (define_subst_attr "mask_avx512vl_condition"): New.
10685 (define_subst_attr "round_mask_operand4"): Ditto.
10686 (define_subst_attr "round_mask_scalar_op3"): Delete.
10687 (define_subst_attr "round_mask_op4"): New.
10688 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
10689 V16SImode.
10690 (define_subst_attr "round_modev8sf_condition"): New.
10691 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
10692 <MODE>mode.
10693 (define_subst_attr "round_saeonly_mask_operand4"): New.
10694 (define_subst_attr "round_saeonly_mask_op4"): New.
10695 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
10696 V8DImode, V16SImode.
10697 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
10698 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
10699 (define_subst_attr "mask_expand4_args"): New.
10700 (define_subst "mask_expand4"): New.
10701
10702 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10703 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10704 Anna Tikhonova <anna.tikhonova@intel.com>
10705 Ilya Tocar <ilya.tocar@intel.com>
10706 Andrey Turetskiy <andrey.turetskiy@intel.com>
10707 Ilya Verbin <ilya.verbin@intel.com>
10708 Kirill Yukhin <kirill.yukhin@intel.com>
10709 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10710
10711 * config/i386/i386.md
10712 (define_attr "isa"): Add avx512bw,noavx512bw.
10713 (define_attr "enabled"): Ditto.
10714 (define_split): Add 32/64-bit mask logic.
10715 (define_insn "*k<logic>qi"): New.
10716 (define_insn "*k<logic>hi"): New.
10717 (define_insn "*anddi_1"): Add mask version.
10718 (define_insn "*andsi_1"): Ditto.
10719 (define_insn "*<code><mode>_1"): Ditto.
10720 (define_insn "*<code>hi_1"): Ditto.
10721 (define_insn "kxnor<mode>"): New.
10722 (define_insn "kunpcksi"): New.
10723 (define_insn "kunpckdi"): New.
10724 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
10725 (define_insn "*one_cmplhi2_1"): Ditto.
10726
10727 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10728 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10729 Anna Tikhonova <anna.tikhonova@intel.com>
10730 Ilya Tocar <ilya.tocar@intel.com>
10731 Andrey Turetskiy <andrey.turetskiy@intel.com>
10732 Ilya Verbin <ilya.verbin@intel.com>
10733 Kirill Yukhin <kirill.yukhin@intel.com>
10734 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10735
10736 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
10737 V32HImode.
10738
10739 2014-08-14 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 (print_reg): Сorrectly print 64-bit mask
10749 registers.
10750 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
10751 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
10752 xmm/ymm16+ when availble.
10753 * config/i386/i386.h
10754 (HARD_REGNO_NREGS): Add mask regs.
10755 (VALID_AVX512F_REG_MODE): Ditto.
10756 (VALID_AVX512F_REG_MODE) : Define.
10757 (VALID_MASK_AVX512BW_MODE): Ditto.
10758 (reg_class) (MASK_REG_P(X)): Define.
10759 * config/i386/i386.md: Do not split long moves with mask register,
10760 use kmovb if avx512bw is availible.
10761 (movdi_internal): Handle mask registers.
10762
10763 2014-08-14 Richard Biener <rguenther@suse.de>
10764
10765 PR tree-optimization/62081
10766 * tree-ssa-loop.c (pass_fix_loops): New pass.
10767 (pass_tree_loop::gate): Do not fixup loops here.
10768 * tree-pass.h (make_pass_fix_loops): Declare.
10769 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
10770
10771 2014-08-14 Richard Biener <rguenther@suse.de>
10772
10773 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
10774 (type_hash_canon): ... this and avoid 2nd lookup for the add.
10775
10776 2014-08-14 Richard Biener <rguenther@suse.de>
10777
10778 PR tree-optimization/62090
10779 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
10780 (fold_builtin_2): Do not fold sprintf.
10781 (fold_builtin_3): Likewise.
10782 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
10783 moved from builtins.c.
10784 (gimple_fold_builtin): Fold sprintf.
10785
10786 2014-08-14 Richard Biener <rguenther@suse.de>
10787
10788 PR rtl-optimization/62079
10789 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
10790 run cleanup_cfg.
10791
10792 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
10793
10794 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
10795 current_function_decl.
10796
10797 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
10798
10799 * cgraph.c (cgraph_node::function_symbol): Fix wrong
10800 cgraph_function_node to cgraph_node::function_symbol
10801 refactoring.
10802
10803 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
10804
10805 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
10806 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
10807
10808 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
10809
10810 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
10811 warning.
10812
10813 2014-08-13 Roman Gareev <gareevroman@gmail.com>
10814
10815 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
10816 generator.
10817
10818 2014-08-12 Jakub Jelinek <jakub@redhat.com>
10819
10820 PR target/62025
10821 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
10822 any registers that are used in mem_insn.
10823
10824 2014-08-12 Steve Ellcey <sellcey@mips.com>
10825
10826 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
10827
10828 2014-08-12 Steve Ellcey <sellcey@mips.com>
10829
10830 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
10831 (MULTILIB_DIRNAMES): Ditto.
10832 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
10833 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
10834 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
10835 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
10836 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
10837 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
10838
10839 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10840
10841 PR target/61413
10842 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
10843 of __ARM_SIZEOF_WCHAR_T.
10844
10845 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10846
10847 PR target/62098
10848 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
10849 Remove unnecessary attributes.
10850
10851 2014-08-12 Yury Gribov <y.gribov@samsung.com>
10852
10853 * internal-fn.c (init_internal_fns): Fix off-by-one.
10854
10855 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
10856 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10857 Anna Tikhonova <anna.tikhonova@intel.com>
10858 Ilya Tocar <ilya.tocar@intel.com>
10859 Andrey Turetskiy <andrey.turetskiy@intel.com>
10860 Ilya Verbin <ilya.verbin@intel.com>
10861 Kirill Yukhin <kirill.yukhin@intel.com>
10862 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10863
10864 * config/i386/i386.c (standard_sse_constant_opcode): Use
10865 vpxord/vpternlog if avx512 is availible.
10866
10867 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
10868
10869 PR middle-end/62103
10870 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
10871 bitfields, that is when size doesn't match the size of type or the
10872 size of the constructor.
10873
10874 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10875
10876 * config/rs6000/constraints.md (wh constraint): New constraint,
10877 for FP registers if direct move is available.
10878 (wi constraint): New constraint, for VSX/FP registers that can
10879 handle 64-bit integers.
10880 (wj constraint): New constraint for VSX/FP registers that can
10881 handle 64-bit integers for direct moves.
10882 (wk constraint): New constraint for VSX/FP registers that can
10883 handle 64-bit doubles for direct moves.
10884 (wy constraint): Make documentation match implementation.
10885
10886 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
10887 scalar_in_vmx_p field to simplify tests of whether SFmode or
10888 DFmode can go in the Altivec registers.
10889 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
10890 (rs6000_setup_reg_addr_masks): Likewise.
10891 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
10892 field, and wh/wi/wj/wk constraints.
10893 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
10894 the wh/wi/wj/wk constraints.
10895 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
10896 upper registers, prefer VSX registers unless the operation is a
10897 memory operation with REG+OFFSET addressing.
10898
10899 * config/rs6000/vsx.md (VSr mode attribute): Add support for
10900 DImode. Change SFmode to use ww constraint instead of d to allow
10901 SF registers in the upper registers.
10902 (VSr2): Likewise.
10903 (VSr3): Likewise.
10904 (VSr5): Fix thinko in comment.
10905 (VSa): New mode attribute that is an alternative to wa, that
10906 returns the VSX register class that a mode can go in, but may not
10907 be the preferred register class.
10908 (VS_64dm): New mode attribute for appropriate register classes for
10909 referencing 64-bit elements of vectors for direct moves and normal
10910 moves.
10911 (VS_64reg): Likewise.
10912 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
10913 register allocator to only registers the data type can handle.
10914 (vsx_le_perm_load_<mode>): Likewise.
10915 (vsx_le_perm_store_<mode>): Likewise.
10916 (vsx_xxpermdi2_le_<mode>): Likewise.
10917 (vsx_xxpermdi4_le_<mode>): Likewise.
10918 (vsx_lxvd2x2_le_<mode>): Likewise.
10919 (vsx_lxvd2x4_le_<mode>): Likewise.
10920 (vsx_stxvd2x2_le_<mode>): Likewise.
10921 (vsx_add<mode>3): Likewise.
10922 (vsx_sub<mode>3): Likewise.
10923 (vsx_mul<mode>3): Likewise.
10924 (vsx_div<mode>3): Likewise.
10925 (vsx_tdiv<mode>3_internal): Likewise.
10926 (vsx_fre<mode>2): Likewise.
10927 (vsx_neg<mode>2): Likewise.
10928 (vsx_abs<mode>2): Likewise.
10929 (vsx_nabs<mode>2): Likewise.
10930 (vsx_smax<mode>3): Likewise.
10931 (vsx_smin<mode>3): Likewise.
10932 (vsx_sqrt<mode>2): Likewise.
10933 (vsx_rsqrte<mode>2): Likewise.
10934 (vsx_tsqrt<mode>2_internal): Likewise.
10935 (vsx_fms<mode>4): Likewise.
10936 (vsx_nfma<mode>4): Likewise.
10937 (vsx_eq<mode>): Likewise.
10938 (vsx_gt<mode>): Likewise.
10939 (vsx_ge<mode>): Likewise.
10940 (vsx_eq<mode>_p): Likewise.
10941 (vsx_gt<mode>_p): Likewise.
10942 (vsx_ge<mode>_p): Likewise.
10943 (vsx_xxsel<mode>): Likewise.
10944 (vsx_xxsel<mode>_uns): Likewise.
10945 (vsx_copysign<mode>3): Likewise.
10946 (vsx_float<VSi><mode>2): Likewise.
10947 (vsx_floatuns<VSi><mode>2): Likewise.
10948 (vsx_fix_trunc<mode><VSi>2): Likewise.
10949 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
10950 (vsx_x<VSv>r<VSs>i): Likewise.
10951 (vsx_x<VSv>r<VSs>ic): Likewise.
10952 (vsx_btrunc<mode>2): Likewise.
10953 (vsx_b2trunc<mode>2): Likewise.
10954 (vsx_floor<mode>2): Likewise.
10955 (vsx_ceil<mode>2): Likewise.
10956 (vsx_<VS_spdp_insn>): Likewise.
10957 (vsx_xscvspdp): Likewise.
10958 (vsx_xvcvspuxds): Likewise.
10959 (vsx_float_fix_<mode>2): Likewise.
10960 (vsx_set_<mode>): Likewise.
10961 (vsx_extract_<mode>_internal1): Likewise.
10962 (vsx_extract_<mode>_internal2): Likewise.
10963 (vsx_extract_<mode>_load): Likewise.
10964 (vsx_extract_<mode>_store): Likewise.
10965 (vsx_splat_<mode>): Likewise.
10966 (vsx_xxspltw_<mode>): Likewise.
10967 (vsx_xxspltw_<mode>_direct): Likewise.
10968 (vsx_xxmrghw_<mode>): Likewise.
10969 (vsx_xxmrglw_<mode>): Likewise.
10970 (vsx_xxsldwi_<mode>): Likewise.
10971 (vsx_xscvdpspn): Tighten constraints to only use register classes
10972 the types use.
10973 (vsx_xscvspdpn): Likewise.
10974 (vsx_xscvdpspn_scalar): Likewise.
10975
10976 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
10977 wj, and wk constraints.
10978 (GPR_REG_CLASS_P): New helper macro for register classes targeting
10979 general purpose registers.
10980
10981 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
10982 direct moves.
10983 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
10984 DImode instead of wm. Use wk constraint for direct move of DFmode
10985 instead of wm.
10986 (extendsidi2_lfiwax): Likewise.
10987 (lfiwax): Likewise.
10988 (lfiwzx): Likewise.
10989 (movdi_internal64): Likewise.
10990
10991 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
10992 wk constraints. Make the wy constraint documentation match them
10993 implementation.
10994
10995 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
10996
10997 Replacement of isl_int by isl_val
10998 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
10999 (compute_bounds_for_param): use isl_val instead of isl_int
11000 (compute_bounds_for_loop): likewise
11001 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
11002 (build_linearized_memory_access): use isl_val instead of isl_int
11003 (pdr_stride_in_loop): likewise
11004 * graphite-optimize-isl.c:
11005 (getPrevectorMap): use isl_val instead of isl_int
11006 * graphite-poly.c:
11007 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
11008 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
11009 (extern the_isl_ctx): declare
11010 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
11011 (extract_affine_gmp): likewise
11012 (wrap): likewise
11013 (build_loop_iteration_domains): likewise
11014 (add_param_constraints): likewise
11015
11016 2014-08-11 Richard Biener <rguenther@suse.de>
11017
11018 PR tree-optimization/62075
11019 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
11020 handle uses in patterns.
11021
11022 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11023 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11024 Anna Tikhonova <anna.tikhonova@intel.com>
11025 Ilya Tocar <ilya.tocar@intel.com>
11026 Andrey Turetskiy <andrey.turetskiy@intel.com>
11027 Ilya Verbin <ilya.verbin@intel.com>
11028 Kirill Yukhin <kirill.yukhin@intel.com>
11029 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11030
11031 * common/config/i386/i386-common.c
11032 (OPTION_MASK_ISA_AVX512VL_SET): Define.
11033 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
11034 (ix86_handle_option): Handle OPT_mavx512vl.
11035 * config/i386/cpuid.h (bit_AVX512VL): Define.
11036 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
11037 set -mavx512vl accordingly.
11038 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11039 OPTION_MASK_ISA_AVX512VL.
11040 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
11041 (ix86_option_override_internal): Define PTA_AVX512VL, handle
11042 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
11043 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
11044 * config/i386/i386.h (TARGET_AVX512VL): Define.
11045 (TARGET_AVX512VL_P(x)): Ditto.
11046 * config/i386/i386.opt: Add mavx512vl.
11047
11048 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
11049
11050 PR tree-optimization/62073
11051 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
11052 a basic block.
11053
11054 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11055 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11056 Anna Tikhonova <anna.tikhonova@intel.com>
11057 Ilya Tocar <ilya.tocar@intel.com>
11058 Andrey Turetskiy <andrey.turetskiy@intel.com>
11059 Ilya Verbin <ilya.verbin@intel.com>
11060 Kirill Yukhin <kirill.yukhin@intel.com>
11061 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11062
11063 * common/config/i386/i386-common.c
11064 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
11065 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
11066 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
11067 (ix86_handle_option): Handle OPT_mavx512bw.
11068 * config/i386/cpuid.h (bit_AVX512BW): Define.
11069 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
11070 set -mavx512bw accordingly.
11071 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11072 OPTION_MASK_ISA_AVX512BW.
11073 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
11074 (ix86_option_override_internal): Define PTA_AVX512BW, handle
11075 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
11076 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
11077 * config/i386/i386.h (TARGET_AVX512BW): Define.
11078 (TARGET_AVX512BW_P(x)): Ditto.
11079 * config/i386/i386.opt: Add mavx512bw.
11080
11081 2014-08-11 Richard Biener <rguenther@suse.de>
11082
11083 PR tree-optimization/62070
11084 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
11085 Remove SSA checking.
11086
11087 2014-08-11 Yury Gribov <y.gribov@samsung.com>
11088
11089 * asan.c (asan_check_flags): New enum.
11090 (build_check_stmt_with_calls): Removed function.
11091 (build_check_stmt): Split inlining logic to
11092 asan_expand_check_ifn.
11093 (instrument_derefs): Rename parameter.
11094 (instrument_mem_region_access): Rename parameter.
11095 (instrument_strlen_call): Likewise.
11096 (asan_expand_check_ifn): New function.
11097 (asan_instrument): Remove old code.
11098 (pass_sanopt::execute): Change handling of
11099 asan-instrumentation-with-call-threshold.
11100 (asan_clear_shadow): Fix formatting.
11101 (asan_function_start): Likewise.
11102 (asan_emit_stack_protection): Likewise.
11103 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
11104 Update description.
11105 * internal-fn.c (expand_ASAN_CHECK): New function.
11106 * internal-fn.def (ASAN_CHECK): New internal function.
11107 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
11108 Update description.
11109 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
11110 * tree.c: Small comment fix.
11111
11112 2014-08-11 Yury Gribov <y.gribov@samsung.com>
11113
11114 * gimple.c (gimple_call_fnspec): Support internal functions.
11115 (gimple_call_return_flags): Use const.
11116 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
11117 * internal-fn.def: Add fnspec information.
11118 * internal-fn.h (internal_fn_fnspec): New function.
11119 (init_internal_fns): Declare new function.
11120 * internal-fn.c (internal_fn_fnspec_array): New global variable.
11121 (init_internal_fns): New function.
11122 * tree-core.h: Update macro call.
11123 * tree.c (build_common_builtin_nodes): Initialize internal fns.
11124
11125 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
11126
11127 * lto-streamer.h (struct output_block::symbol): Change from
11128 struct symtab_node to plain symtab_node.
11129 (referenced_from_this_partition_p): Change first parameter
11130 from struct symtab_node to plain symtab_node.
11131
11132 2014-08-10 Marek Polacek <polacek@redhat.com>
11133
11134 PR c/51849
11135 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
11136
11137 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
11138
11139 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
11140 DECL correctly; do not give up on types in static storage.
11141
11142 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
11143
11144 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
11145
11146 2014-08-09 Roman Gareev <gareevroman@gmail.com>
11147
11148 * graphite-isl-ast-to-gimple.c:
11149 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
11150
11151 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
11152
11153 2014-08-08 Guozhi Wei <carrot@google.com>
11154
11155 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
11156
11157 2014-08-08 Cary Coutant <ccoutant@google.com>
11158
11159 * dwarf2out.c (get_skeleton_type_unit): Remove.
11160 (output_skeleton_debug_sections): Remove skeleton type units.
11161 (output_comdat_type_unit): Likewise.
11162 (dwarf2out_finish): Likewise.
11163
11164 2014-08-07 Yi Yang <ahyangyi@google.com>
11165
11166 * predict.c (expr_expected_value_1): Remove the redundant assignment.
11167
11168 2014-08-08 Richard Biener <rguenther@suse.de>
11169
11170 * lto-streamer.h (struct lto_input_block): Make it a class
11171 with a constructor.
11172 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
11173 (struct lto_function_header, struct lto_simple_header,
11174 struct lto_simple_header_with_strings,
11175 struct lto_decl_header, struct lto_function_header): Make
11176 a simple inheritance hieararchy. Remove unused fields.
11177 (struct lto_asm_header): Remove.
11178 * lto-streamer-out.c (produce_asm): Adjust.
11179 (lto_output_toplevel_asms): Likewise.
11180 (produce_asm_for_decls): Likewise.
11181 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
11182 * data-streamer-in.c (string_for_index): Likewise.
11183 * ipa-inline-analysis.c (inline_read_section): Likewise.
11184 * ipa-prop.c (ipa_prop_read_section): Likewise.
11185 (read_replacements_section): Likewise.
11186 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
11187 * lto-section-in.c (lto_create_simple_input_block): Likewise.
11188 (lto_destroy_simple_input_block): Likewise.
11189 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
11190 (lto_input_toplevel_asms): Likewise.
11191
11192 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
11193 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11194 Anna Tikhonova <anna.tikhonova@intel.com>
11195 Ilya Tocar <ilya.tocar@intel.com>
11196 Andrey Turetskiy <andrey.turetskiy@intel.com>
11197 Ilya Verbin <ilya.verbin@intel.com>
11198 Kirill Yukhin <kirill.yukhin@intel.com>
11199 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11200
11201 * common/config/i386/i386-common.c
11202 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
11203 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
11204 (ix86_handle_option): Handle OPT_mavx512dq.
11205 * config/i386/cpuid.h (bit_AVX512DQ): Define.
11206 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
11207 set -mavx512dq accordingly.
11208 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11209 OPTION_MASK_ISA_AVX512DQ.
11210 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
11211 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
11212 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
11213 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
11214 * config/i386/i386.h (TARGET_AVX512DQ): Define.
11215 (TARGET_AVX512DQ_P(x)): Ditto.
11216 * config/i386/i386.opt: Add mavx512dq.
11217
11218 2014-08-08 Richard Biener <rguenther@suse.de>
11219
11220 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
11221 target_percent, target_percent_s): Export.
11222 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
11223 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
11224 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
11225 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
11226 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
11227 Move to gimple-fold.c.
11228 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
11229 strcat and strcpy.
11230 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
11231 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
11232 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
11233 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
11234 (rewrite_call_expr_array): Remove.
11235 (fold_builtin_sprintf_chk): Likewise.
11236 (fold_builtin_snprintf_chk): Likewise.
11237 (fold_builtin_varargs): Remove handling of sprintf_chk,
11238 vsprintf_chk, snprintf_chk and vsnprintf_chk.
11239 (gimple_fold_builtin_sprintf_chk): Remove.
11240 (gimple_fold_builtin_snprintf_chk): Likewise.
11241 (gimple_fold_builtin_varargs): Likewise.
11242 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
11243 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
11244 * gimple.c (gimple_seq_add_seq_without_update): New function.
11245 * gimple.h (gimple_seq_add_seq_without_update): Declare.
11246 * gimple-fold.c: Include output.h.
11247 (gsi_replace_with_seq_vops): New function, split out from ...
11248 (gimplify_and_update_call_from_tree): ... here.
11249 (replace_call_with_value): New function.
11250 (replace_call_with_call_and_fold): Likewise.
11251 (var_decl_component_p): Moved from builtins.c.
11252 (gimple_fold_builtin_memory_op): Moved from builtins.c
11253 fold_builtin_memory_op and rewritten to GIMPLE.
11254 (gimple_fold_builtin_memset): Likewise.
11255 (gimple_fold_builtin_strcpy): Likewise.
11256 (gimple_fold_builtin_strncpy): Likewise.
11257 (gimple_fold_builtin_strcat): Likewise.
11258 (gimple_fold_builtin_fputs): Likewise.
11259 (gimple_fold_builtin_memory_chk): Likewise.
11260 (gimple_fold_builtin_stxcpy_chk): Likewise.
11261 (gimple_fold_builtin_stxncpy_chk): Likewise.
11262 (gimple_fold_builtin_snprintf_chk): Likewise.
11263 (gimple_fold_builtin_sprintf_chk): Likewise.
11264 (gimple_fold_builtin_strlen): New function.
11265 (gimple_fold_builtin_with_strlen): New function split out from
11266 gimple_fold_builtin.
11267 (gimple_fold_builtin): Change signature and handle
11268 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
11269 here. Call gimple_fold_builtin_with_strlen.
11270 (gimple_fold_call): Adjust.
11271
11272 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
11273
11274 * calls.c (precompute_arguments): Check
11275 promoted_for_signed_and_unsigned_p and set the promoted mode.
11276 (promoted_for_signed_and_unsigned_p): New function.
11277 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
11278 and set the promoted mode.
11279 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
11280 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
11281 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
11282
11283
11284 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
11285
11286 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
11287 instead of SUBREG_PROMOTED_UNSIGNED_SET.
11288 (expand_call): Likewise.
11289 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
11290 to get promoted mode.
11291 * combine.c (record_promoted_value): Skip > 0 comparison with
11292 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
11293 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
11294 of SUBREG_PROMOTED_UNSIGNED_P.
11295 (convert_modes): Likewise.
11296 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
11297 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
11298 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
11299 SUBREG_PROMOTED_UNSIGNED_SET.
11300 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
11301 instead of SUBREG_PROMOTED_UNSIGNED_SET.
11302 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
11303 SUBREG_PROMOTED_SET.
11304 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
11305 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
11306 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
11307 of SUBREG_PROMOTED_UNSIGNED_P.
11308 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
11309 (SUBREG_PROMOTED_SET): New define.
11310 (SUBREG_PROMOTED_GET): Likewise.
11311 (SUBREG_PROMOTED_SIGN): Likewise.
11312 (SUBREG_PROMOTED_SIGNED_P): Likewise.
11313 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
11314 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
11315 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
11316 instead of SUBREG_PROMOTED_UNSIGNED_GET.
11317 (nonzero_bits1): Skip > 0 comparison with the results as
11318 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
11319 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
11320 of !SUBREG_PROMOTED_UNSIGNED_P.
11321 * simplify-rtx.c (simplify_unary_operation_1): Use new
11322 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
11323 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
11324 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
11325 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
11326
11327 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
11328
11329 * ipa-devirt.c: Include gimple-pretty-print.h
11330 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
11331 further tests.
11332 (decl_maybe_in_construction_p): Fix conditional on cdtor check
11333 (get_polymorphic_call_info): Fix return value
11334 (type_change_info): New sturcture based on ipa-prop
11335 variant.
11336 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
11337 based on ipa-prop variant.
11338 (extr_type_from_vtbl_ptr_store): New function
11339 based on ipa-prop variant.
11340 (record_known_type): New function.
11341 (check_stmt_for_type_change): New function.
11342 (get_dynamic_type): New function.
11343 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
11344 * tree-ssa-pre.c: ipa-utils.h
11345 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
11346 machinery; sanity check with ipa-prop devirtualization.
11347 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
11348 polymorphic flag.
11349
11350 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
11351
11352 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
11353 * alias.c, cfgexpand.c, cgraphbuild.c,
11354 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
11355 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
11356 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
11357 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
11358 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
11359 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11360 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
11361 dse.c, except.c, gengtype.c, gimple-expr.c,
11362 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
11363 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
11364 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
11365 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
11366 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
11367 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
11368 pointer-set.h.
11369 * pointer-set.c: Remove file.
11370 * pointer-set.h: Remove file.
11371
11372 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11373
11374 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
11375 * config/arm/types.md (f_sels, f_seld): Delete.
11376
11377 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11378
11379 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
11380 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
11381 (aarch64_movdi_<mode>high): Likewise.
11382 (aarch64_mov<mode>high_di): Likewise.
11383 (aarch64_movdi_<mode>low): Likewise.
11384 (aarch64_mov<mode>low_di): Likewise.
11385 (aarch64_movtilow_tilow): Likewise.
11386 Add comment explaining usage of fp,simd attributes and of
11387 TARGET_FLOAT and TARGET_SIMD.
11388
11389 2014-08-07 Ian Bolton <ian.bolton@arm.com>
11390 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11391
11392 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
11393 Use MOVN when one of the half-words is 0xffff.
11394
11395 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
11396
11397 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
11398
11399 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11400
11401 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
11402 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
11403 (rfs_str): String corresponding to RFS_* constants.
11404 (rank_for_schedule_stats_t): New typedef.
11405 (rank_for_schedule_stats): New static variable.
11406 (rfs_result): New static function.
11407 (rank_for_schedule): Track statistics for deciding heuristics.
11408 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
11409 static functions.
11410 (ready_sort): Use them for debug printouts.
11411 (schedule_block): Init statistics state. Print statistics on
11412 rank_for_schedule decisions.
11413
11414 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11415
11416 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
11417
11418 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
11419
11420 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
11421 constraint.
11422
11423 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
11424
11425 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
11426 function to not conflict.
11427 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
11428 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
11429 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
11430 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
11431 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
11432 of pointer_map.
11433
11434 2014-08-07 Marek Polacek <polacek@redhat.com>
11435
11436 * fold-const.c (fold_binary_loc): Add folding of
11437 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
11438
11439 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
11440
11441 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
11442 instead of type size.
11443 (ASM_FINISH_DECLARE_OBJECT): Likewise.
11444
11445 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
11446
11447 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
11448 (*thumb1_movqi_insn): Likewise.
11449 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
11450
11451 2014-08-07 Tom de Vries <tom@codesourcery.com>
11452
11453 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
11454 (glibc_2_11_or_earlier): Remove effective-target keywords.
11455
11456 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
11457
11458 * config/arm/arm.c (bdesc_2arg): Fix typo.
11459 (arm_atomic_assign_expand_fenv): Remove The default implementation.
11460
11461 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
11462
11463 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
11464
11465 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
11466
11467 PR debug/61923
11468 * haifa-sched.c (advance_one_cycle): Fix dump.
11469 (schedule_block): Don't advance cycle if we are already at the
11470 beginning of the cycle.
11471
11472 2014-08-06 Martin Jambor <mjambor@suse.cz>
11473
11474 PR ipa/61393
11475 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
11476
11477 2014-08-06 Richard Biener <rguenther@suse.de>
11478
11479 PR lto/62034
11480 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
11481 SCCs here.
11482 (lto_input_tree): Pop SCCs here.
11483
11484 2014-08-06 Richard Biener <rguenther@suse.de>
11485
11486 PR tree-optimization/61320
11487 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
11488 handle misaligned loads.
11489
11490 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
11491
11492 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
11493 (aarch64_expand_vec_perm_const): Check for dup before zip.
11494
11495 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11496
11497 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
11498 CONST_INT_P instead of GET_CODE and compare.
11499 (aarch64_select_cc_mode): Likewise.
11500 (aarch64_print_operand): Likewise.
11501 (aarch64_rtx_costs): Likewise.
11502 (aarch64_simd_valid_immediate): Likewise.
11503 (aarch64_simd_check_vect_par_cnst_half): Likewise.
11504 (aarch64_simd_emit_pair_result_insn): Likewise.
11505
11506 2014-08-05 David Malcolm <dmalcolm@redhat.com>
11507
11508 * gdbhooks.py (find_gcc_source_dir): New helper function.
11509 (class PassNames): New class, locating and parsing passes.def.
11510 (class BreakOnPass): New command "break-on-pass".
11511
11512 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
11513
11514 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
11515 getting olde.
11516
11517 2014-08-05 Richard Biener <rguenther@suse.de>
11518
11519 PR rtl-optimization/61672
11520 * emit-rtl.h (mem_attrs_eq_p): Declare.
11521 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
11522 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
11523 * cfgcleanup.c (merge_memattrs): Likewise.
11524 Include emit-rtl.h.
11525
11526 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11527
11528 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
11529 rather than singleton vectors.
11530 (vqdmlsls_lane_s32): Likewise.
11531
11532 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11533
11534 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
11535 Use VSDQ_HSI mode iterator.
11536 (aarch64_sqrdmulh_laneq<mode>): Likewise.
11537 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
11538 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
11539 Use BUILTIN_VDQHS macro.
11540 (sqrdmulh_laneq): Likewise.
11541 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
11542 (vqdmlals_laneq_s32): Likewise.
11543 (vqdmlslh_laneq_s16): Likewise.
11544 (vqdmlsls_laneq_s32): Likewise.
11545 (vqdmulhh_laneq_s16): Likewise.
11546 (vqdmulhs_laneq_s32): Likewise.
11547 (vqrdmulhh_laneq_s16): Likewise.
11548 (vqrdmulhs_laneq_s32): Likewise.
11549
11550 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11551
11552 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
11553 (vmuld_laneq_f64): Likewise.
11554 (vmuls_laneq_f32): Likewise.
11555 (vmul_n_f64): Likewise.
11556 (vmuld_lane_f64): Reimplement in C.
11557 (vmuls_lane_f32): Likewise.
11558
11559 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11560
11561 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
11562 to reservation.
11563 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
11564
11565 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11566
11567 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
11568 (rbitsi2): Likewise.
11569 (*arm_rev): Set predicable and predicable_short_it attributes.
11570
11571 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11572
11573 * convert.c (convert_to_integer): Guard transformation to lrint by
11574 -fno-math-errno.
11575
11576 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
11577
11578 * config/aarch64/aarch64-builtins.c
11579 (aarch64_simd_builtin_type_mode): Delete.
11580 (v8qi_UP): Remap to V8QImode.
11581 (v4hi_UP): Remap to V4HImode.
11582 (v2si_UP): Remap to V2SImode.
11583 (v2sf_UP): Remap to V2SFmode.
11584 (v1df_UP): Remap to V1DFmode.
11585 (di_UP): Remap to DImode.
11586 (df_UP): Remap to DFmode.
11587 (v16qi_UP):V16QImode.
11588 (v8hi_UP): Remap to V8HImode.
11589 (v4si_UP): Remap to V4SImode.
11590 (v4sf_UP): Remap to V4SFmode.
11591 (v2di_UP): Remap to V2DImode.
11592 (v2df_UP): Remap to V2DFmode.
11593 (ti_UP): Remap to TImode.
11594 (ei_UP): Remap to EImode.
11595 (oi_UP): Remap to OImode.
11596 (ci_UP): Map to CImode.
11597 (xi_UP): Remap to XImode.
11598 (si_UP): Remap to SImode.
11599 (sf_UP): Remap to SFmode.
11600 (hi_UP): Remap to HImode.
11601 (qi_UP): Remap to QImode.
11602 (aarch64_simd_builtin_datum): Make mode a machine_mode.
11603 (VAR1): Build builtin name.
11604 (aarch64_init_simd_builtins): Remove dead code.
11605
11606 2014-08-05 Roman Gareev <gareevroman@gmail.com>
11607
11608 * graphite-isl-ast-to-gimple.c:
11609 (set_options): New function.
11610 (scop_to_isl_ast): Add calling of set_options.
11611
11612 2014-08-05 Jakub Jelinek <jakub@redhat.com>
11613
11614 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
11615 (analyze_iv_to_split_insn): Don't initialize them.
11616 (get_ivts_expr): Removed.
11617 (allocate_basic_variable, insert_base_initialization): Use
11618 SET_SRC instead of *get_ivts_expr.
11619 (split_iv): Use &SET_SRC instead of get_ivts_expr.
11620
11621 2014-08-05 Roman Gareev <gareevroman@gmail.com>
11622
11623 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
11624 (translate_isl_ast_for_loop): Add checking of the
11625 flag_loop_parallelize_all.
11626 (ast_build_before_for): New function.
11627 (scop_to_isl_ast): Add checking of the
11628 flag_loop_parallelize_all.
11629 * graphite-dependences.c: Move the defenition of the
11630 scop_get_dependences from graphite-optimize-isl.c to this file.
11631 (apply_schedule_on_deps): Add checking of the ux's emptiness.
11632 (carries_deps): Add checking of the x's value.
11633 * graphite-optimize-isl.c: Move the defenition of the
11634 scop_get_dependences to graphite-dependences.c.
11635 * graphite-poly.h: Add declarations of scop_get_dependences
11636 and carries_deps.
11637
11638 2014-08-04 Rohit <rohitarulraj@freescale.com>
11639
11640 PR target/60102
11641 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
11642 names.
11643 (alt_reg_names): Likewise.
11644 (rs6000_dwarf_register_span): For SPE high registers, replace
11645 dwarf register numbers with GCC hard register numbers.
11646 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
11647 (rs6000_dbx_register_number): For SPE high registers, return dwarf
11648 register number for the corresponding GCC hard register number.
11649 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
11650 newly added GCC hard register numbers for SPE high registers.
11651 (DWARF_FRAME_REGISTERS): Likewise.
11652 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
11653 (DWARF_FRAME_REGNUM): Likewise.
11654 (FIXED_REGISTERS): Likewise.
11655 (CALL_USED_REGISTERS): Likewise.
11656 (CALL_REALLY_USED_REGISTERS): Likewise.
11657 (REG_ALLOC_ORDER): Likewise.
11658 (enum reg_class): Likewise.
11659 (REG_CLASS_NAMES): Likewise.
11660 (REG_CLASS_CONTENTS): Likewise.
11661 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
11662
11663 2014-08-04 Richard Biener <rguenther@suse.de>
11664
11665 * gimple-fold.h (gimple_fold_builtin): Remove.
11666 * gimple-fold.c (gimple_fold_builtin): Make static.
11667 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
11668 fold_stmt, not gimple_fold_builtin.
11669
11670 2014-08-04 Martin Liska <mliska@suse.cz>
11671
11672 * cgraph.h (csi_end_p): Removed.
11673 (csi_next): Likewise.
11674 (csi_node): Likewise.
11675 (csi_start): Likewise.
11676 (cgraph_node_in_set_p): Likewise.
11677 (cgraph_node_set_size): Likewise.
11678 (vsi_end_p): Likewise.
11679 (vsi_next): Likewise.
11680 (vsi_node): Likewise.
11681 (vsi_start): Likewise.
11682 (varpool_node_set_size): Likewise.
11683 (cgraph_node_set_nonempty_p): Likewise.
11684 (varpool_node_set_nonempty_p): Likewise.
11685 * cgraphunit.c (cgraph_process_new_functions): vec replaces
11686 cgraph_node_set.
11687 * ipa-inline-transform.c: Likewise.
11688 * ipa-utils.c (cgraph_node_set_new): Removed.
11689 (cgraph_node_set_add): Likewise.
11690 (cgraph_node_set_remove): Likewise.
11691 (cgraph_node_set_find): Likewise.
11692 (dump_cgraph_node_set): Likewise.
11693 (debug_cgraph_node_set): Likewise.
11694 (free_cgraph_node_set): Likewise.
11695 (varpool_node_set_new): Likewise.
11696 (varpool_node_set_add): Likewise.
11697 (varpool_node_set_remove): Likewise.
11698 (varpool_node_set_find): Likewise.
11699 (dump_varpool_node_set): Likewise.
11700 (free_varpool_node_set): Likewise.
11701 (debug_varpool_node_set): Likewise.
11702 * tree-emutls.c (struct tls_var_data):
11703 (emutls_index): Removed.
11704 (emutls_decl): Likewise.
11705 (gen_emutls_addr): Function implementation uses newly added
11706 hash_map<varpool_node *, tls_var_data>.
11707 (clear_access_vars): Likewise.
11708 (create_emultls_var): Likewise.
11709 (ipa_lower_emutls): Likewise.
11710 (reset_access): New function.
11711
11712 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11713
11714 * config/i386/i386.c (ix86_option_override_internal): Add
11715 PTA_RDRND and PTA_MOVBE for bdver4.
11716
11717 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11718 James Greenhalgh <james.greenhalgh@arm.com>
11719
11720 * doc/md.texi (clrsb): Document.
11721 (clz): Change reference to x into operand 1.
11722 (ctz): Likewise.
11723 (popcount): Likewise.
11724
11725 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11726
11727 PR target/61713
11728 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
11729 move to subtarget in serial version if result is ignored.
11730
11731 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11732 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11733
11734 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
11735 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
11736 (sched_analyze_insn): Update use of try_group_insn to
11737 sched_macro_fuse_insns.
11738 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
11739 arguments that are not conditional jumps.
11740
11741 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11742
11743 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
11744 family information. Handle BTVER2 cpu with cpuid family value.
11745
11746 2014-08-04 Tom de Vries <tom@codesourcery.com>
11747
11748 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
11749 (glibc_2_11_or_earlier): Document effective-target keywords.
11750
11751 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
11752
11753 * ipa-devirt.c (odr_type_warn_count): Add type.
11754 (possible_polymorphic_call_targets): Set it.
11755 (ipa_devirt): Use it.
11756
11757 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
11758
11759 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
11760 Document.
11761 * ipa-devirt.c: Include hash-map.h
11762 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
11763 (clear_speculation): Break out of ...
11764 (get_class_context): ... here; speed up handling obviously useless
11765 speculations.
11766 (odr_type_warn_count, decl_warn_count): New structures.
11767 (final_warning_record): New structure.
11768 (final_warning_records): New static variable.
11769 (possible_polymorphic_call_targets): Cleanup handling of
11770 speculative info; do not build speculation when user do not care;
11771 record info about warnings when asked for.
11772 (add_decl_warning): New function.
11773 (type_warning_cmp): New function.
11774 (decl_warning_cmp): New function.
11775 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
11776 (gate): Enable pass when warnings are requested.
11777 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
11778 options.
11779
11780 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
11781
11782 * hash-map.h (default_hashmap_traits::mark_key_deleted):
11783 Fix cast.
11784 (hash_map::remove): New method.
11785 (hash_map::traverse): New method.
11786 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
11787 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
11788 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
11789 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
11790 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
11791 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
11792 pointer_map.
11793
11794 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
11795
11796 * hash-set.h: new File.
11797 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
11798 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
11799 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
11800 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
11801 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
11802 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
11803 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
11804 varpool.c: Use hash_set instead of pointer_set.
11805
11806 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
11807
11808 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
11809
11810 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11811
11812 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
11813 for frame access when strict_p is false.
11814
11815 2014-08-01 Renlin Li <renlin.li@arm.com>
11816 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11817
11818 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
11819 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
11820 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
11821 Declaration.
11822 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
11823 predicate.
11824 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
11825 aarch64_mem_pair_offset.
11826
11827 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11828
11829 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
11830 offset.
11831 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
11832 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
11833
11834 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
11835
11836 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
11837
11838 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
11839
11840 PR regression/61510
11841 * cgraphunit.c (analyze_functions): Use get_create rather than get
11842 for decls which are clones of abstract functions.
11843
11844 2014-08-01 Martin Liska <mliska@suse.cz>
11845
11846 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
11847 * ipa-prop.h (count_formal_params): Global function created from static.
11848 * ipa-prop.c (count_formal_params): Likewise.
11849 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
11850 profiles for semantically equivalent functions.
11851 * passes.c (do_per_function): If we load body of a function
11852 during WPA, this condition should behave same.
11853 * varpool.c (ctor_for_folding): More tolerant assert for variable
11854 aliases created during WPA.
11855
11856 2014-08-01 Martin Liska <mliska@suse.cz>
11857
11858 * doc/invoke.texi (Options That Control Optimization): Documentation
11859 for -foptimize-strlen introduced. Optimization levels default options
11860 fixed.
11861
11862 2014-08-01 Jakub Jelinek <jakub@redhat.com>
11863
11864 * opts.c (common_handle_option): Handle -fsanitize=alignment.
11865 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
11866 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
11867 type to bool.
11868 * stor-layout.h (min_align_of_type): New prototype.
11869 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
11870 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
11871 check.
11872 * ubsan.c: Include builtins.h.
11873 (ubsan_expand_bounds_ifn): Change return type to bool,
11874 always return true.
11875 (ubsan_expand_null_ifn): Change return type to bool, change
11876 argument to gimple_stmt_iterator *. Handle both null and alignment
11877 sanitization, take type from ckind argument's type rather than
11878 first argument.
11879 (instrument_member_call): Removed.
11880 (instrument_mem_ref): Remove t argument, add mem and base arguments.
11881 Handle both null and alignment sanitization, don't say whole
11882 struct access is member access. Build 3 argument IFN_UBSAN_NULL
11883 call instead of 2 argument.
11884 (instrument_null): Adjust instrument_mem_ref caller. Don't
11885 instrument calls here.
11886 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
11887 like SANITIZE_NULL.
11888 * stor-layout.c (min_align_of_type): New function.
11889 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
11890 Or it into SANITIZE_UNDEFINED.
11891 * doc/invoke.texi (-fsanitize=alignment): Document.
11892
11893 2014-07-31 Andi Kleen <ak@linux.intel.com>
11894
11895 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
11896
11897 2014-07-31 Andi Kleen <ak@linux.intel.com>
11898
11899 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
11900 inchash.
11901 (vn_reference_compute_hash): Dito.
11902 (vn_nary_op_compute_hash): Dito.
11903 (vn_phi_compute_hash): Dito.
11904 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
11905
11906 2014-07-31 Andi Kleen <ak@linux.intel.com>
11907
11908 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
11909 Rename to inchash:add_expr_commutative. Convert to inchash.
11910 (iterative_hash_hashable_expr): Rename to
11911 inchash:add_hashable_expr. Convert to inchash.
11912 (avail_expr_hash): Dito.
11913
11914 2014-07-31 Andi Kleen <ak@linux.intel.com>
11915
11916 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
11917 Convert to inchash.
11918
11919 2014-07-31 Andi Kleen <ak@linux.intel.com>
11920
11921 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
11922
11923 2014-07-31 Andi Kleen <ak@linux.intel.com>
11924
11925 * Makefile.in (OBJS): Add rtlhash.o
11926 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
11927 (loc_checksum): Dito.
11928 (loc_checksum_ordered): Dito.
11929 (hash_loc_operands): Dito.
11930 (hash_locs): Dito.
11931 (hash_loc_list): Dito.
11932 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
11933 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
11934 * rtlhash.c: New file.
11935 * rtlhash.h: New file.
11936
11937 2014-07-31 Andi Kleen <ak@linux.intel.com>
11938
11939 * inchash.h (inchash): Change inchash class to namespace.
11940 (class hash): ... Rename from inchash.
11941 (add_object): Move from macro to class template.
11942 * lto-streamer-out.c (hash_tree): Change inchash
11943 to inchash::hash.
11944 * tree.c (build_type_attribute_qual_variant): Dito.
11945 (type_hash_list): Dito.
11946 (attribute_hash_list): Dito.
11947 (iterative_hstate_expr): Rename to inchash::add_expr
11948 (build_range_type_1): Change inchash to inchash::hash
11949 and use hash::add_expr.
11950 (build_array_type_1): Dito.
11951 (build_function_type): Dito
11952 (build_method_type_directly): Dito.
11953 (build_offset_type): Dito.
11954 (build_complex_type): Dito.
11955 (make_vector_type): Dito.
11956 * tree.h (iterative_hash_expr): Dito.
11957
11958 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
11959
11960 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
11961
11962 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
11963
11964 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
11965 correct alphabetical position.
11966 (vpaddd_f64): Rewrite using builtins.
11967 (vpaddd_s64): Move to correct alphabetical position.
11968 (vpaddd_u64): New.
11969
11970 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
11971
11972 PR target/61844
11973 * config/sh/sh.c (sh_legitimate_address_p,
11974 sh_legitimize_reload_address): Handle reg+reg address modes when
11975 ALLOW_INDEXED_ADDRESS is false.
11976 * config/sh/predicates.md (general_movsrc_operand,
11977 general_movdst_operand): Likewise.
11978
11979 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
11980
11981 * config/aarch64/aarch64-builtins.c
11982 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
11983 BYTES_BIG_ENDIAN.
11984
11985 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
11986
11987 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
11988 the generated mask based on BYTES_BIG_ENDIAN.
11989 (aarch64_simd_check_vect_par_cnst_half): New.
11990 * config/aarch64/aarch64-protos.h
11991 (aarch64_simd_check_vect_par_cnst_half): New.
11992 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
11993 the check out to aarch64_simd_check_vect_par_cnst_half.
11994 (vect_par_cnst_lo_half): Likewise.
11995 * config/aarch64/aarch64-simd.md
11996 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
11997 (move_hi_quad_<mode>): Always generate a low mask.
11998
11999 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12000
12001 * doc/invoke.texi (AVR Options): Add documentation about
12002 __AVR_DEVICE_NAME__ built-in macro.
12003
12004 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
12005
12006 PR target/61948
12007 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
12008 constraints are satisfied.
12009 (<shift>di3_neon): Likewise.
12010
12011 2014-07-31 Richard Biener <rguenther@suse.de>
12012
12013 PR tree-optimization/61964
12014 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
12015 by structural equality.
12016
12017 2014-07-31 Yury Gribov <y.gribov@samsung.com>
12018
12019 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
12020 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
12021 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
12022 New enums.
12023 * gcc.c (sanitize_spec_function): Support new option.
12024 (SANITIZER_SPEC): Remove now redundant check.
12025 * opts.c (common_handle_option): Support new option.
12026 (finish_options): Check for incompatibilities.
12027 * toplev.c (process_options): Split userspace-specific checks.
12028
12029 2014-07-31 Richard Biener <rguenther@suse.de>
12030
12031 * lto-streamer.h (struct output_block): Remove global.
12032 (struct data_in): Remove labels, num_named_labels and
12033 num_unnamed_labels.
12034 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
12035 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
12036
12037 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
12038
12039 PR c++/60517
12040 * common.opt (-Wreturn-local-addr): Moved from c.opt.
12041 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
12042 (isolate_path): New argument to avoid inserting a trap.
12043 (find_implicit_erroneous_behaviour): Handle returning the address
12044 of a local variable.
12045 (find_explicit_erroneous_behaviour): Likewise.
12046
12047 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
12048
12049 PR lto/61868
12050 * toplev.c (init_random_seed): Move piece of code never called to
12051 set_random_seed.
12052 (set_random_seed): see above.
12053
12054 2014-07-31 Tom de Vries <tom@codesourcery.com>
12055
12056 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
12057
12058 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
12059
12060 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
12061 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
12062
12063 2014-07-31 Richard Biener <rguenther@suse.de>
12064
12065 * data-streamer.h (streamer_write_data_stream): Declare here,
12066 renamed from ...
12067 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
12068 * lto-cgraph.c (lto_output_node): Adjust.
12069 (lto_output_varpool_node): Likewise.
12070 * data-streamer-out.c (streamer_string_index): Likewise.
12071 (streamer_write_data_stream, lto_append_block): Move from ...
12072 * lto-section-out.c (lto_output_data_stream,
12073 lto_append_block): ... here.
12074
12075 2014-07-30 Mike Stump <mikestump@comcast.net>
12076
12077 * configure.ac: Also check for popen.
12078 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
12079 * configure: Regenerate.
12080 * config.in: Regenerate.
12081
12082 2014-07-30 Martin Jambor <mjambor@suse.cz>
12083
12084 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
12085 parameter to gimple.
12086
12087 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12088
12089 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
12090 address as second parameter to __tpf_eh_return routine.
12091
12092 2014-07-30 Jiong Wang <jiong.wang@arm.com>
12093
12094 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
12095 Thumb2.
12096
12097 2014-07-30 Tom Tromey <tromey@redhat.com>
12098
12099 PR c/59855
12100 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
12101 * doc/extend.texi (Type Attributes): Document designated_init
12102 attribute.
12103
12104 2014-07-30 Roman Gareev <gareevroman@gmail.com>
12105
12106 * graphite-isl-ast-to-gimple.c:
12107 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
12108 (gcc_expression_from_isl_expression): Pass type to
12109 gcc_expression_from_isl_ast_expr_id.
12110
12111 2014-07-30 Richard Biener <rguenther@suse.de>
12112
12113 * lto-streamer.h (lto_write_data): New function.
12114 * langhooks.c (lhd_append_data): Do not free block.
12115 * lto-section-out.c (lto_write_data): New function writing
12116 raw data to the current section.
12117 (lto_write_stream): Adjust for langhook semantic change.
12118 (lto_destroy_simple_output_block): Write header directly.
12119 * lto-opts.c (lto_write_options): Write options directly.
12120 * lto-streamer-out.c (produce_asm): Write heaeder directly.
12121 (lto_output_toplevel_asms): Likewise.
12122 (copy_function_or_variable): Copy data directly.
12123 (write_global_references): Output index table directly.
12124 (lto_output_decl_state_refs): Likewise.
12125 (write_symbol): Write data directly.
12126 (produce_symtab): Adjust.
12127 (produce_asm_for_decls): Output header and refs directly.
12128
12129 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
12130
12131 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
12132 to speculative_targets
12133 (get_class_context): Fix handling of contextes without outer type;
12134 avoid matching non-polymorphic types in LTO.
12135 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
12136 parameter to speculative_targetsp; handle speculation.
12137 (dump_possible_polymorphic_call_targets): Update dumping.
12138
12139 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
12140
12141 * common.opt (Wodr): Enable by default.
12142
12143 2014-07-29 Olivier Hainque <hainque@adacore.com>
12144
12145 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
12146
12147 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
12148
12149 PR bootstrap/61914
12150 * gengtype.c (strtoken): New function.
12151 (create_user_defined_type): Replace strtok with strtoken.
12152
12153 2014-07-29 Nathan Sidwell <nathan@acm.org>
12154
12155 * gcov-io.c (gcov_var): Make hidden.
12156 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
12157 (gcov_do_dump): Declare.
12158 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
12159
12160 2014-07-29 Martin Jambor <mjambor@suse.cz>
12161
12162 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
12163 parameter to gimple.
12164 (sra_modify_assign): Likewise.
12165
12166 2014-07-29 Richard Biener <rguenther@suse.de>
12167
12168 PR middle-end/52478
12169 * expr.c (expand_expr_real_2): Revert last change.
12170
12171 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
12172
12173 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
12174 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
12175 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
12176 call.
12177 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
12178 (contains_type_p): Forward declare.
12179 (polymorphic_call_target_hasher::hash): Hash speculative info.
12180 (polymorphic_call_target_hasher::equal): Compare speculative info.
12181 (get_class_context): Handle speuclation.
12182 (contains_type_p): Update.
12183 (get_polymorphic_call_info_for_decl): Update.
12184 (walk_ssa_copies): Break out from ...
12185 (get_polymorphic_call_info): ... here; set speculative context
12186 before giving up.
12187 * ipa-prop.c (ipa_write_indirect_edge_info,
12188 ipa_read_indirect_edge_info): Stream speculative context.
12189 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
12190 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
12191 SPECULATIVE_MAYBE_DERIVED_TYPE).
12192 (possible_polymorphic_call_targets overriders): Update.
12193 (dump_possible_polymorphic_call_targets overriders): Update.
12194 (dump_possible_polymorphic_call_target_p overriders): Update.
12195
12196 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
12197
12198 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
12199 ipa-devirt path; fix thinko there.
12200
12201 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
12202
12203 * config/i386/i386.c (ix86_return_in_memory): Replace one
12204 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
12205
12206 2014-07-28 Marek Polacek <polacek@redhat.com>
12207
12208 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
12209
12210 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
12211
12212 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
12213 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
12214 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
12215 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12216 (USE_LD_AS_NEEDED): Likewise.
12217 (ASM_APP_ON): Likewise.
12218 (ASM_APP_OFF): Likewise.
12219 (TARGET_POSIX_IO): Likewise.
12220 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
12221 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12222 (USE_LD_AS_NEEDED): Likewise.
12223 (ASM_APP_ON): Likewise.
12224 (ASM_APP_OFF): Likewise.
12225 (TARGET_POSIX_IO): Likewise.
12226
12227 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
12228
12229 PR middle-end/61734
12230 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
12231 operators other than the equality operators.
12232
12233 2014-07-28 Richard Biener <rguenther@suse.de>
12234
12235 PR middle-end/52478
12236 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
12237 sure to register SImode ones, not only >= word_mode ones.
12238 * expr.c (expand_expr_real_2): When expanding -ftrapv
12239 binops do not use OPTAB_LIB_WIDEN.
12240
12241 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
12242
12243 PR middle-end/61919
12244 * tree-outof-ssa.c (insert_partition_copy_on_edge)
12245 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
12246 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
12247 inserting them in the insn stream.
12248
12249 2014-07-28 Marek Polacek <polacek@redhat.com>
12250
12251 PR middle-end/61913
12252 * common.opt (Wodr): Add Var.
12253
12254 2014-07-28 Richard Biener <rguenther@suse.de>
12255
12256 PR tree-optimization/61921
12257 * tree-ssa-structalias.c (create_variable_info_for_1): Check
12258 if there is a varpool node before dereferencing it.
12259
12260 2014-07-28 Roman Gareev <gareevroman@gmail.com>
12261
12262 * graphite-sese-to-poly.c:
12263 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
12264 id of the pbb), which contains pointer to the pbb1.
12265
12266 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
12267
12268 2014-07-28 Roman Gareev <gareevroman@gmail.com>
12269
12270 * graphite-isl-ast-to-gimple.c:
12271 (graphite_create_new_guard): New function.
12272 (translate_isl_ast_node_if): New function.
12273 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
12274
12275 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
12276
12277 2014-07-27 Anthony Green <green@moxielogic.com>
12278
12279 * config.gcc: Add moxie-*-moxiebox* configuration.
12280 * config/moxie/moxiebox.h: New file.
12281
12282 2014-07-26 Andrew Pinski <apinski@cavium.com>
12283
12284 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
12285 from the read only register.
12286
12287 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
12288
12289 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
12290 as the allocation class if it isn't likely to be spilled.
12291
12292 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
12293
12294 * rtl.h (tls_referenced_p): Declare.
12295 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
12296 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
12297 (mips_cannot_force_const_mem): Use tls_referenced_p.
12298 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
12299 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
12300 instead of pa_tls_referenced_p.
12301 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
12302 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
12303 (pa_legitimate_constant_p): Likewise.
12304 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
12305 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
12306 (rs6000_cannot_force_const_mem, rs6000_emit_move)
12307 (rs6000_address_for_altivec): Use tls_referenced_p instead of
12308 rs6000_tls_referenced_p.
12309 (rs6000_tls_symbol_ref_1): Delete.
12310
12311 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
12312
12313 PR target/44551
12314 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
12315 Optimize inverse of a VEC_CONCAT.
12316
12317 2014-07-25 Xinliang David Li <davidxl@google.com>
12318
12319 * params.def: New parameter.
12320 * coverage.c (get_coverage_counts): Check new flag.
12321 (coverage_compute_profile_id): Check new flag.
12322 (coverage_begin_function): Check new flag.
12323 (coverage_end_function): Check new flag.
12324 * value-prof.c (coverage_node_map_initialized_p): New function.
12325 (init_node_map): Populate map with all functions.
12326 * doc/invoke.texi: Document new parameter.
12327
12328 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
12329 Richard Biener <rguenther@suse.de>
12330
12331 * lto-streamer-out.c (struct sccs): Turn to ...
12332 (class DFS): ... this one; refactor the DFS walk so it can
12333 be re-done on per-SCC basis.
12334 (DFS::DFS): New constructor.
12335 (DFS::~DFS): New destructor.
12336 (hash_tree): Add new MAP argument holding in-SCC hash values;
12337 remove POINTER_TYPE hashing hack.
12338 (scc_entry_compare): Rename to ...
12339 (DFS::scc_entry_compare): ... this one.
12340 (hash_scc): Rename to ...
12341 (DFS::hash_scc): ... this one; pass output_block instead
12342 of streamer_cache; work harder to get unique and stable SCC
12343 hashes.
12344 (DFS_write_tree): Rename to ...
12345 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
12346 (lto_output_tree): Update.
12347
12348 2014-07-25 Andi Kleen <ak@linux.intel.com>
12349
12350 * lto-streamer-out.c (hash_tree): Convert to inchash.
12351
12352 2014-07-25 Andi Kleen <ak@linux.intel.com>
12353
12354 * tree.c (build_type_attribute_qual_variant): Use inchash.
12355 (type_hash_list): Dito.
12356 (attribute_hash_list): Dito
12357 (iterative_hstate_expr): Dito.
12358 (iterative_hash_expr): Dito.
12359 (build_range_type_1): Dito.
12360 (build_array_type_1): Dito.
12361 (build_function_type): Dito.
12362 (build_method_type_directly): Dito.
12363 (build_offset_type): Dito.
12364 (build_complex_type): Dito.
12365 (make_vector_type): Dito.
12366 * tree.h (iterative_hash_expr): Add compat wrapper.
12367 (iterative_hstate_expr): Add.
12368
12369 2014-07-25 Andi Kleen <ak@linux.intel.com>
12370
12371 * Makefile.in (OBJS): Add inchash.o.
12372 (PLUGIN_HEADERS): Add inchash.h.
12373 * ipa-devirt.c: Include inchash.h.
12374 * lto-streamer-out.c: Dito.
12375 * tree-ssa-dom.c: Dito.
12376 * tree-ssa-pre.c: Dito.
12377 * tree-ssa-sccvn.c: Dito.
12378 * tree-ssa-tail-merge.c: Dito.
12379 * asan.c: Dito.
12380 * tree.c (iterative_hash_hashval_t): Move to ...
12381 (iterative_hash_host_wide_int): Move to ...
12382 * inchash.c: Here. New file.
12383 * tree.h (iterative_hash_hashval_t): Move to ...
12384 (iterative_hash_host_wide_int): Move to ...
12385 * inchash.h: Here. New file.
12386
12387 2014-07-25 Richard Biener <rguenther@suse.de>
12388
12389 PR middle-end/61762
12390 PR middle-end/61894
12391 * fold-const.c (native_encode_int): Add and handle offset
12392 parameter to do partial encodings of expr.
12393 (native_encode_fixed): Likewise.
12394 (native_encode_real): Likewise.
12395 (native_encode_complex): Likewise.
12396 (native_encode_vector): Likewise.
12397 (native_encode_string): Likewise.
12398 (native_encode_expr): Likewise.
12399 * fold-const.c (native_encode_expr): Add offset parameter
12400 defaulting to -1.
12401 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
12402 (fold_ctor_reference): Handle all reads from tcc_constant
12403 ctors.
12404
12405 2014-07-25 Richard Biener <rguenther@suse.de>
12406
12407 * tree-inline.c (estimate_move_cost): Mark speed_p argument
12408 as possibly unused.
12409
12410 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12411
12412 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
12413
12414 2014-07-24 Kyle McMartin <kyle@redhat.com>
12415
12416 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
12417
12418 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12419
12420 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
12421 Add prototype.
12422 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
12423 function.
12424 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
12425 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
12426 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
12427
12428 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12429
12430 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
12431 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
12432 aggregate types. Instead, *all* aggregate types, except for single-
12433 element or homogeneous float/vector aggregates, are quadword-aligned
12434 if required by their type alignment. Issue -Wpsabi note when a type
12435 is now treated differently than before.
12436
12437 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12438
12439 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
12440 does not fit fully into floating-point registers, and there is still
12441 space in the register parameter area, use GPRs to pass those parts
12442 of the argument. Issue -Wpsabi note if any parameter is now treated
12443 differently than before.
12444 (rs6000_arg_partial_bytes): Update.
12445
12446 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
12447
12448 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
12449
12450 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12451
12452 * rtl.h (target_rtl): Remove lang_dependent_initialized.
12453 * toplev.c (initialize_rtl): Don't use it. Move previously
12454 "language-dependent" calls to...
12455 (backend_init): ...here.
12456 (lang_dependent_init_target): Don't set lang_dependent_initialized.
12457 Assert that RTL initialization hasn't happend yet.
12458
12459 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12460
12461 PR rtl-optimization/61629
12462 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
12463 they have already been initialized.
12464
12465 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12466
12467 PR middle-end/61268
12468 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
12469 DECL_INCOMING_RTL and entry_parm.
12470 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
12471 * calls.c (load_register_parameters): Likewise argument values.
12472 (emit_library_call_value_1, store_one_arg): Likewise argument
12473 save areas.
12474 * config/i386/i386.c (assign_386_stack_local): Likewise the local
12475 stack slot.
12476 * explow.c (validize_mem): Modify the argument in-place.
12477
12478 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12479
12480 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
12481 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
12482
12483 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12484
12485 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
12486 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
12487
12488 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12489
12490 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
12491 (aarch64_save_callee_saves): New parameter "skip_wb".
12492 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
12493
12494 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12495
12496 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
12497 "wb_candidate2".
12498 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
12499
12500 2014-07-24 Roman Gareev <gareevroman@gmail.com>
12501
12502 * graphite-isl-ast-to-gimple.c:
12503 (graphite_create_new_loop): Add calling of isl_id_free to properly
12504 decrement reference counts.
12505
12506 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
12507
12508 2014-07-24 Martin Liska <mliska@suse.cz>
12509 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
12510 function used.
12511 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
12512 (rs6000_code_end): Likewise.
12513
12514 2014-07-24 Martin Liska <mliska@suse.cz>
12515
12516 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
12517 symtab_node funtion used.
12518 (rs6000_xcoff_declare_object_name): Likewise.
12519
12520 2014-07-24 Martin Liska <mliska@suse.cz>
12521
12522 * cgraphunit.c (compile): Correct function used.
12523
12524 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
12525
12526 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
12527 as non-indexable.
12528
12529 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
12530
12531 PR lto/61802
12532 * varasm.c (bss_initializer_p): Handle offlined ctors.
12533 (align_variable, get_variable_align): Likewise.
12534 (make_decl_one_only): Likewise.
12535 (default_binds_local_p_1): Likewise.
12536 (decl_binds_to_current_def_p): Likewise.
12537 (get_variable_section): Get constructor if it is offlined.
12538 (assemble_variable_contents): Sanity check that the caller
12539 streamed in the ctor in LTO.
12540
12541 2014-07-24 Roman Gareev <gareevroman@gmail.com>
12542
12543 * graphite-isl-ast-to-gimple.c:
12544 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
12545 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
12546 isl_ast_op_pdiv_r to the different case.
12547
12548 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
12549
12550 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12551
12552 PR middle-end/61876
12553 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
12554 when flag_errno_math is on.
12555
12556 2014-07-24 Martin Liska <mliska@suse.cz>
12557
12558 * cgraph.h (varpool_node):
12559 (availability get_availability (void)):
12560 created from cgraph_variable_initializer_availability
12561 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
12562 created from: cgraph_variable_initializer_availability
12563 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
12564 (void finalize_named_section_flags (void)):
12565 created from varpool_finalize_named_section_flags
12566 (bool assemble_decl (void)): created from varpool_assemble_decl
12567 (void analyze (void)): created from varpool_analyze_node
12568 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
12569 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
12570 (void remove_initializer (void)): created from varpool_remove_initializer
12571 (tree get_constructor (void)): created from varpool_get_constructor
12572 (bool externally_visible_p (void)): created from varpool_externally_visible_p
12573 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
12574 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
12575 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
12576 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
12577 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
12578 (static bool output_variables (void)): created from varpool_output_variables
12579 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
12580 created from varpool_extra_name_alias
12581 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
12582 (static void dump_varpool (FILE *f)): created from dump_varpool
12583 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
12584 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
12585 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
12586 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
12587 (void assemble_aliases (void)): created from assemble_aliases
12588
12589 2014-07-24 Martin Liska <mliska@suse.cz>
12590
12591 * cgraph.h (symtab_node):
12592 (void register_symbol (void)): created from symtab_register_node
12593 (void remove (void)): created from symtab_remove_node
12594 (void dump (FILE *f)): created from dump_symtab_node
12595 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
12596 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
12597 (struct ipa_ref *add_reference (symtab_node *referred_node,
12598 enum ipa_ref_use use_type)): created from add_reference
12599 (struct ipa_ref *add_reference (symtab_node *referred_node,
12600 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
12601 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
12602 gimple stmt)): created from maybe_add_reference
12603 (bool semantically_equivalent_p (symtab_node *target)): created from
12604 symtab_semantically_equivalent_p
12605 (void remove_from_same_comdat_group (void)): created from
12606 remove_from_same_comdat_group
12607 (void add_to_same_comdat_group (symtab_node *old_node)): created from
12608 symtab_add_to_same_comdat_group
12609 (void dissolve_same_comdat_group_list (void)): created from
12610 symtab_dissolve_same_comdat_group_list
12611 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
12612 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
12613 created from symtab_alias_ultimate_target
12614 (inline symtab_node *next_defined_symbol (void)): created from
12615 symtab_next_defined_symbol
12616 (bool resolve_alias (symtab_node *target)): created from
12617 symtab_resolve_alias
12618 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
12619 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
12620 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
12621 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
12622 (void set_section (const char *section)): created from set_section_1
12623 (enum availability get_availability (void)): created from symtab_node_availability
12624 (void make_decl_local (void)): created from symtab_make_decl_local
12625 (bool real_symbol_p (void)): created from symtab_read_node
12626 (can_be_discarded_p (void)): created from symtab_can_be_discarded
12627 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
12628 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
12629 symtab_in_same_comdat_p;
12630 (bool address_taken_from_non_vtable_p (void)): created from
12631 address_taken_from_non_vtable_p
12632 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
12633 (static void dump_table (FILE *)): created from dump_symtab
12634 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
12635 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
12636 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
12637 symtab_used_from_object_file_p
12638 (void dump_base (FILE *)): created from dump_symtab_base
12639 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
12640 (void unregister (void)): created from symtab_unregister_node
12641 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
12642 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
12643 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
12644 symtab_nonoverwritable_alias_1
12645 * cgraph.h (cgraph_node):
12646 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
12647 created from cgraph_remove_node_and_inline_clones
12648 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
12649 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
12650 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
12651 (cgraph_node *function_symbol (enum availability *avail = NULL)):
12652 created from cgraph_function_node
12653 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
12654 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
12655 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
12656 created from cgraph_create_clone
12657 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
12658 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
12659 created from cgraph_create_virtual_clone
12660 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
12661 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
12662 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
12663 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
12664 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
12665 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
12666 created from cgraph_function_version_info
12667 (struct cgraph_function_version_info *insert_new_function_version (void)):
12668 created from insert_new_cgraph_node_version
12669 (struct cgraph_function_version_info *function_version (void)): created from
12670 get_cgraph_node_version
12671 (void analyze (void)): created from analyze_function
12672 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
12673 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
12674 tree real_alias) cgraph_add_thunk
12675 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
12676 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
12677 created from cgraph_function_or_thunk_node
12678 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
12679 created from expand_thunk
12680 (void reset (void)): created from cgraph_reset_node
12681 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
12682 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
12683 (void remove (void)): created from cgraph_remove_node
12684 (void dump (FILE *f)): created from dump_cgraph_node
12685 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
12686 (bool get_body (void)): created from cgraph_get_body
12687 (void release_body (void)): created from cgraph_release_function_body
12688 (void unnest (void)): created from cgraph_unnest_node
12689 (void make_local (void)): created from cgraph_make_node_local
12690 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
12691 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
12692 gcov_type count, int freq)): created from cgraph_create_edge
12693 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
12694 gcov_type count, int freq)): created from cgraph_create_indirect_edge
12695 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
12696 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
12697 created from cgraph_create_edge_including_clones
12698 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
12699 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
12700 (void remove_callers (void)): created from cgraph_node_remove_callers
12701 (void remove_callees (void)): created from cgraph_node_remove_callees
12702 (enum availability get_availability (void)): created from cgraph_function_body_availability
12703 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
12704 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
12705 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
12706 (void call_duplication_hooks (cgraph_node *node2)): created from
12707 cgraph_call_node_duplication_hooks
12708 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
12709 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
12710 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
12711 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
12712 (void call_function_insertion_hooks (void)):
12713 created from cgraph_call_function_insertion_hooks
12714 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
12715 (bool local_p (void)): created from cgraph_local_node
12716 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
12717 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
12718 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
12719 (inline bool only_called_directly_or_aliased_p (void)):
12720 created from cgraph_only_called_directly_or_aliased_p
12721 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
12722 created from cgraph_will_be_removed_from_program_if_no_direct_calls
12723 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
12724 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
12725 (bool can_remove_if_no_direct_calls_p (void)):
12726 created from cgraph_can_remove_if_no_direct_calls_p
12727 (inline bool has_gimple_body_p (void)):
12728 created from cgraph_function_with_gimple_body_p
12729 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
12730 (static void dump_cgraph (FILE *f)): created from dump_cgraph
12731 (static inline void debug_cgraph (void)): created from debug_cgraph
12732 (static void record_function_versions (tree decl1, tree decl2)):
12733 created from record_function_versions
12734 (static void delete_function_version (tree decl)):
12735 created from delete_function_version
12736 (static void add_new_function (tree fndecl, bool lowered)):
12737 created from cgraph_add_new_function
12738 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
12739 (static cgraph_node * create (tree decl)): created from cgraph_create_node
12740 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
12741 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
12742 (static cgraph_node *get_for_asmname (tree asmname)):
12743 created from cgraph_node_for_asm
12744 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
12745 created from cgraph_same_body_alias
12746 (static bool used_from_object_file_p_worker (cgraph_node *node,
12747 void *): new function
12748 (static bool non_local_p (cgraph_node *node, void *)):
12749 created from cgraph_non_local_node_p_1
12750 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
12751 created from verify_cgraph
12752 (static bool make_local (cgraph_node *node, void *)):
12753 created from cgraph_make_node_local
12754 (static cgraph_node *create_alias (tree alias, tree target)):
12755 created from cgraph_create_function_alias
12756 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
12757 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
12758 created from cgraph_create_edge_1
12759 * cgraph.h (varpool_node):
12760 (void remove (void)): created from varpool_remove_node
12761 (void dump (FILE *f)): created from dump_varpool_node
12762
12763 2014-07-24 Richard Biener <rguenther@suse.de>
12764
12765 PR ipa/61823
12766 * tree-ssa-structalias.c (create_variable_info_for_1):
12767 Use varpool_get_constructor.
12768 (create_variable_info_for): Likewise.
12769
12770 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12771
12772 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
12773 subtract outgoing area size when restoring stack_pointer_rtx.
12774
12775 2014-07-24 Nick Clifton <nickc@redhat.com>
12776
12777 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
12778 that operations are taking place in parallel.
12779 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
12780
12781 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
12782
12783 * omp-low.c (extract_omp_for_data): Add missing break statement.
12784
12785 2014-07-24 Richard Biener <rguenther@suse.de>
12786
12787 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
12788 * tree-inline.c (estimate_move_cost): Add speed_p parameter
12789 and adjust MOVE_RATIO query accordingly.
12790 (estimate_num_insns): Adjust callers.
12791 * ipa-prop.c (ipa_populate_param_decls): Likewise.
12792 * ipa-cp.c (gather_context_independent_values,
12793 estimate_local_effects): Likewise.
12794 * ipa-split.c (consider_split): Likewise.
12795
12796 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
12797
12798 * config/i386/driver-i386.c: Remove names of unused arguments and
12799 unnecessary unused attributes.
12800 * config/i386/host-mingw32.c: Likewise.
12801 * config/i386/i386.c: Likewise.
12802 * config/i386/winnt-stubs.c: Likewise.
12803 * config/i386/winnt.c: Likewise.
12804
12805 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12806
12807 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
12808 (aarch64_gen_loadwb_pair): New helper function.
12809 (aarch64_expand_epilogue): Simplify code using new helper functions.
12810 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
12811
12812 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12813
12814 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
12815 (aarch64_gen_storewb_pair): New helper function.
12816 (aarch64_expand_prologue): Simplify code using new helper functions.
12817 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
12818
12819 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12820
12821 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
12822 Rename to aarch64_save_callee_saves, remove restore code.
12823 (aarch64_restore_callee_saves): New function.
12824
12825 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12826
12827 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
12828 (aarch64_save_callee_saves): New function to handle reg save
12829 for both core and vectore regs.
12830
12831 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12832
12833 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
12834 (aarch64_gen_store_pair): New helper function.
12835 (aarch64_save_or_restore_callee_save_registers)
12836 (aarch64_save_or_restore_fprs): Use new helper functions.
12837
12838 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12839
12840 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
12841 (aarch64_save_or_restore_callee_save_registers)
12842 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
12843
12844 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12845
12846 * config/aarch64/aarch64.c
12847 (aarch64_save_or_restore_callee_save_registers)
12848 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
12849
12850 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12851
12852 * config/aarch64/aarch64.c
12853 (aarch64_save_or_restore_callee_save_registers)
12854 (aarch64_save_or_restore_fprs): Remove 'increment'.
12855
12856 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12857
12858 * config/aarch64/aarch64.c
12859 (aarch64_save_or_restore_callee_save_registers)
12860 (aarch64_save_or_restore_fprs): Use register offset in
12861 cfun->machine->frame.reg_offset.
12862
12863 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12864
12865 * config/aarch64/aarch64.c
12866 (aarch64_save_or_restore_callee_save_registers)
12867 (aarch64_save_or_restore_fprs): Remove base_rtx.
12868
12869 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12870
12871 * config/aarch64/aarch64.c
12872 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
12873 to 'start_offset'. Remove local variable 'start_offset'.
12874
12875 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12876
12877 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
12878 type to HOST_WIDE_INT.
12879
12880 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12881
12882 * config/aarch64/aarch64.c (aarch64_expand_prologue)
12883 (aarch64_save_or_restore_fprs)
12884 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
12885
12886 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
12887
12888 * config/arm/t-rtems-eabi: Add
12889 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
12890 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
12891 mbig-endian/mthumb/march=armv7-r, and
12892 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
12893 multilibs.
12894
12895 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
12896 Chris Johns <chrisj@rtems.org>
12897 Joel Sherrill <joel.sherrill@oarcorp.com>
12898
12899 * config.gcc: Add nios2-*-rtems*.
12900 * config/nios2/rtems.h: New file.
12901 * gcc/config/nios2/t-rtems: New file.
12902
12903 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
12904
12905 PR target/61396
12906 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
12907 constant numbers, not general constants.
12908 (rs6000_expand_vector_init): Ditto.
12909
12910 2014-07-23 Nathan Sidwell <nathan@acm.org>
12911
12912 * gcov-tool.c (gcov_list): Declare here.
12913 (set_gcov_list): Remove.
12914 (gcov_output_files): Set gcov_list directly.
12915
12916 2014-07-23 Host Schirmeier <horst@schirmeier.com>
12917
12918 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
12919
12920 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12921
12922 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
12923 callee-saved registers are available for padding purpose
12924 and r3 is not mandatory, then prefer use those callee-saved
12925 instead of r3.
12926
12927 2014-07-23 Richard Biener <rguenther@suse.de>
12928
12929 * params.def (PARAM_MAX_COMBINE_INSNS): New.
12930 * combine.c: Include statistics.h and params.h.
12931 (combine_instructions): Guard three and four insn combines
12932 with max-combine-insns value. Record statistics for combines
12933 performed.
12934 * doc/invoke.texi (max-combine-insns): Document new param.
12935
12936 2014-07-23 Roman Gareev <gareevroman@gmail.com>
12937
12938 * graphite-isl-ast-to-gimple.c:
12939 (translate_isl_ast_node_block): New function.
12940 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
12941
12942 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
12943 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
12944
12945 2014-07-23 Roman Gareev <gareevroman@gmail.com>
12946
12947 * graphite-isl-ast-to-gimple.c:
12948 (get_max_schedule_dimensions): New function.
12949 (extend_schedule): Likewise.
12950 (generate_isl_schedule): Add calling of extend_schedule and
12951 get_max_schedule_dimensions.
12952
12953 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12954
12955 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
12956 (case UNSPEC): Handle UNSPEC_RBIT.
12957
12958 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12959
12960 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
12961 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
12962
12963 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12964
12965 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
12966
12967 2014-07-22 Roman Gareev <gareevroman@gmail.com>
12968
12969 * graphite-isl-ast-to-gimple.c:
12970 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
12971 (ivs_params_clear):
12972 (build_iv_mapping): New function.
12973 (translate_isl_ast_node_user): Likewise.
12974 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
12975
12976 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
12977 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
12978 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
12979
12980 2014-07-21 Bin Cheng <bin.cheng@arm.com>
12981
12982 PR target/55701
12983 * config/arm/arm.md (setmem): New pattern.
12984 * config/arm/arm-protos.h (struct tune_params): New fields.
12985 (arm_gen_setmem): New prototype.
12986 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
12987 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
12988 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
12989 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
12990 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
12991 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
12992 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
12993 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
12994 (arm_const_inline_cost): New function.
12995 (arm_block_set_max_insns): New function.
12996 (arm_block_set_non_vect_profit_p): New function.
12997 (arm_block_set_vect_profit_p): New function.
12998 (arm_block_set_unaligned_vect): New function.
12999 (arm_block_set_aligned_vect): New function.
13000 (arm_block_set_unaligned_non_vect): New function.
13001 (arm_block_set_aligned_non_vect): New function.
13002 (arm_block_set_vect, arm_gen_setmem): New functions.
13003
13004 2014-07-21 Bin Cheng <bin.cheng@arm.com>
13005
13006 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
13007
13008 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
13009
13010 PR target/61855
13011 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
13012 out of #ifdef __OPTIMIZE__.
13013
13014 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
13015
13016 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
13017 different trapping status if -fnon-call-exceptions is enabled.
13018
13019 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
13020
13021 * expr.c (store_field): Handle VOIDmode for calls that return values
13022 in multiple locations.
13023
13024 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13025
13026 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
13027 (altivec_vsldoi_<mode>): Likewise.
13028
13029 2014-07-20 Roman Gareev <gareevroman@gmail.com>
13030
13031 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
13032 to the number of characters in the line.
13033
13034 2014-07-20 Roman Gareev <gareevroman@gmail.com>
13035
13036 * graphite-isl-ast-to-gimple.c: Add using of
13037 build_nonstandard_integer_type instead of int128_integer_type_node.
13038
13039 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
13040
13041 * toplev.c (output_stack_usage): Adjust the location of the warning.
13042
13043 2014-07-19 Daniel Cederman <cederman@gaisler.com>
13044
13045 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
13046 (*membar_storeload): Disable for LEON3.
13047
13048 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13049
13050 PR rtl-optimization/61461
13051 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
13052
13053 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
13054
13055 PR target/61794
13056 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
13057 Fix instruction constraint.
13058 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
13059
13060 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
13061
13062 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
13063
13064 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
13065
13066 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
13067 GNU coding standards.
13068 (nds32_register_move_cost): Likewise.
13069 (nds32_memory_move_cost): Likewise.
13070 (nds32_address_cost): Likewise.
13071
13072 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13073
13074 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
13075
13076 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
13077
13078 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
13079 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
13080 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
13081 (HAVE_sync_compare_and_swapqi): Define.
13082 (HAVE_sync_compare_and_swaphi): Likewise.
13083 (HAVE_sync_compare_and_swapsi): Likewise.
13084
13085 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
13086
13087 * config/mips/p5600.md: Add missing cpu tests.
13088
13089 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13090
13091 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
13092 (vmla_f64): Likewise.
13093 (vfms_f64): Likewise.
13094 (vmls_f64): Likewise.
13095
13096 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13097
13098 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
13099 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
13100
13101 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13102
13103 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
13104 (vmlal_high_lane_s32): Likewise.
13105 (vmlal_high_lane_u16): Likewise.
13106 (vmlal_high_lane_u32): Likewise.
13107 (vmlsl_high_lane_s16): Likewise.
13108 (vmlsl_high_lane_s32): Likewise.
13109 (vmlsl_high_lane_u16): Likewise.
13110 (vmlsl_high_lane_u32): Likewise.
13111
13112 2014-07-17 Terry Guo <terry.guo@arm.com>
13113
13114 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
13115 (alus_reg): Renamed to alus_sreg.
13116 * config/arm/arm-fixed.md: Change type of non-dsp instructions
13117 from alu_reg to alu_sreg. Change type of dsp instructions from
13118 alu_reg to alu_dsp_reg.
13119 * config/arm/thumb1.md: Likewise.
13120 * config/arm/thumb2.md: Likewise.
13121 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
13122 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
13123 with alu_sreg and alus_sreg.
13124 * config/arm/arm1026ejs.md (alu_op): Likewise.
13125 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
13126 * config/arm/arm926ejs.md (9_alu_op): Likewise.
13127 * config/arm/fa526.md (526_alu_op): Likewise.
13128 * config/arm/fa606te.md (606te_alu_op): Likewise.
13129 * config/arm/fa626te.md (626te_alu_op): Likewise.
13130 * config/arm/fa726te.md (726te_alu_op): Likewise.
13131 * config/arm/fmp626.md (mp626_alu_op): Likewise.
13132 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
13133 alu_sreg, alu_dsp_reg and alus_sreg.
13134 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
13135 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13136 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13137 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
13138 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
13139 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13140 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13141 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
13142 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
13143 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
13144 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
13145 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
13146 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
13147 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
13148 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
13149 alus_reg to alus_sreg.
13150
13151 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
13152
13153 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
13154 infinity format.
13155
13156 2014-07-17 Richard Biener <rguenther@suse.de>
13157
13158 PR rtl-optimization/61801
13159 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
13160 don't set reg_pending_barrier if it appears in a debug-insn.
13161
13162 2014-07-16 DJ Delorie <dj@redhat.com>
13163
13164 * config/rx/rx.c (rx_option_override): Fix alignment values.
13165 (rx_align_for_label): Likewise.
13166
13167 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
13168
13169 PR target/61737.
13170 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
13171 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
13172 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
13173 functions.
13174 (cris_print_index, cris_print_operand, cris_constant_index_p)
13175 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
13176 (cris_address_cost): Ditto last CONSTANT_P.
13177 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
13178 callers changed. Yield cris_offsettable_symbol for non-PIC
13179 constant symbolic expressions including labels. Yield cris_unspec
13180 for all unspecs.
13181 (cris_expand_pic_call_address): New parameter MARKERP. Set its
13182 target to pic_offset_table_rtx for calls that will likely go
13183 through PLT, const0_rtx when they can't. All callers changed.
13184 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
13185 symbolic expressions to be PICified. Remove second, redundant,
13186 assert on can_create_pseudo_p returning non-zero. Use
13187 replace_equiv_address_nv, not replace_equiv_address, for final
13188 operand update.
13189 * config/cris/cris.md ("movsi"): Move variable t to pattern
13190 toplevel. Adjust assert for new cris_symbol_type member. Use
13191 CONSTANT_P instead of CONSTANT_ADDRESS_P.
13192 ("*movsi_internal") <case 9>: Make check for valid unspec operands
13193 for lapc stricter.
13194 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
13195 ("call", "call_value"): Use second incoming operand as a marker
13196 for pic-offset-table-register being used.
13197 ("*expanded_call_non_v32", "*expanded_call_v32")
13198 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
13199 second incoming operand to CALL, match cris_call_type_marker.
13200 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
13201 ("*expanded_call_side"): Ditto. Fix typo in comment.
13202 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
13203 CONSTANT_P.
13204 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
13205 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
13206 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
13207 users changed. Add members cris_offsettable_symbol and cris_unspec.
13208 (cris_symbol_type): Rename from cris_pic_symbol_type.
13209 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
13210 just CONSTANT_P.
13211 * config/cris/cris-protos.h (cris_symbol_type_of,
13212 cris_expand_pic_call_address): Adjust prototypes.
13213 (cris_legitimate_constant_p): New prototype.
13214
13215 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
13216 an existing tmake_file. Don't add t-slibgcc and t-linux.
13217
13218 2014-07-17 Jason Merrill <jason@redhat.com>
13219
13220 PR c++/61623
13221 * symtab.c (symtab_remove_from_same_comdat_group): Also
13222 set_comdat_group to NULL_TREE.
13223 (verify_symtab): Fix diagnostic.
13224
13225 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
13226
13227 PR target/61662
13228 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
13229
13230 2014-07-16 Dodji Seketeli <dodji@redhat.com>
13231
13232 Support location tracking for built-in macro tokens
13233 * input.h (is_location_from_builtin_token): New function declaration.
13234 * input.c (is_location_from_builtin_token): New function definition.
13235 * toplev.c (general_init): Tell libcpp what the pre-defined
13236 spelling location for built-in tokens is.
13237
13238 2014-07-16 Jakub Jelinek <jakub@redhat.com>
13239
13240 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
13241 on the FUNCTION_DECL.
13242
13243 2014-07-16 Richard Biener <rguenther@suse.de>
13244
13245 PR other/61782
13246 * doc/extend.texi (always_inline): Clarify.
13247
13248 2014-07-15 Eric Christopher <echristo@gmail.com>
13249
13250 * doc/invoke.texi (Link Options): Document -z option.
13251
13252 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
13253
13254 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
13255 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13256
13257 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
13258
13259 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
13260
13261 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
13262
13263 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
13264 varpool_assemble_decl.
13265 * varpool.c (varpool_assemble_decl): Assert that node->definition is
13266 true.
13267
13268 2014-07-15 Michael Matz <matz@suse.de>
13269
13270 PR rtl-optimization/61772
13271 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
13272
13273 2014-07-15 Richard Biener <rguenther@suse.de>
13274
13275 * opts.c (default_options_table): Disable bit-ccp at -Og.
13276
13277 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
13278
13279 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
13280
13281 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
13282
13283 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
13284 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
13285 call langhook for unknown declaration.
13286 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
13287 * tree.h (DECL_ARGUMENTS): Update.
13288 * print-tree.c (print_node): Update.
13289 * tree-core.h (tree_decl_non_common): Remove arguments.
13290 (tree_function_decl): Add arguments.
13291
13292 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
13293
13294 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
13295
13296 2014-07-14 Richard Biener <rguenther@suse.de>
13297
13298 PR tree-optimization/61779
13299 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
13300 simplifying a condition.
13301
13302 2014-07-14 Richard Biener <rguenther@suse.de>
13303
13304 * builtins.c (c_strlen): Make only_value == 2 really only
13305 affect warning generation.
13306
13307 2014-07-14 Richard Biener <rguenther@suse.de>
13308
13309 PR tree-optimization/61757
13310 PR tree-optimization/61783
13311 PR tree-optimization/61787
13312 * tree-ssa-dom.c (record_equality): Revert canonicalization
13313 change and add comment.
13314 (propagate_rhs_into_lhs): Revert previous fix, removing
13315 loop depth restriction again.
13316
13317 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13318
13319 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
13320 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13321 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13322 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
13323 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13324 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13325 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
13326
13327 2014-07-14 Richard Biener <rguenther@suse.de>
13328
13329 * cgraph.h (decl_in_symtab_p): Make inline.
13330
13331 2014-07-14 Jakub Jelinek <jakub@redhat.com>
13332
13333 PR middle-end/61294
13334 * doc/invoke.texi (-Wmemset-transposed-args): Document.
13335
13336 PR target/61656
13337 * config/i386/i386.c (classify_argument): Don't merge classes above
13338 number of words.
13339
13340 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
13341
13342 * cgraph.h (symtab_node): Add nonzero_address.
13343 (decl_in_symtab_p): Break out from ...
13344 (symtab_get_node): ... here.
13345 * fold-const.c: Include cgraph.h
13346 (tree_single_nonzero_warnv_p): Use symtab to determine
13347 if symbol is non-zero.
13348 * symtab.c (symtab_node::nonzero_address): New method.
13349
13350 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
13351
13352 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
13353 forgotten in previous commit.
13354
13355 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
13356
13357 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
13358 on builtin types.
13359 * ipa-devirt.c: Include stor-layout.h and intl.h
13360 (odr_subtypes_equivalent_p): New function.
13361 (warn_odr): New function.
13362 (warn_type_mismatch): New function.
13363 (odr_types_equivalent_p): New function.
13364 (add_type_duplicate): Use it.
13365 * common.opt (Wodr): New flag.
13366 * doc/invoke.texi (Wodr): Document new warning.
13367
13368 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
13369
13370 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
13371 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
13372 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
13373 (varpool_get_constructor): Push CTORS_IN timevar.
13374 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
13375
13376 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
13377
13378 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
13379 Remove VOID_FTYPE_PUSHORT.
13380 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
13381 Change code to USHORT_FTYPE_VOID.
13382 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
13383 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
13384 (ix86_atomic_assign_expand_fenv): Update for
13385 __builtin_ia32_fnstsw changes.
13386 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
13387 (fnstsw): Change operand 0 to nonimmediate operand.
13388
13389 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13390
13391 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
13392 (varpool_get_constructor): New function.
13393 (varpool_ctor_useable_for_folding_p): Break out from ...
13394 (ctor_for_folding): ... here; use varpool_get_constructor.
13395 (varpool_assemble_decl): Likewise.
13396 * lto-streamer.h (struct output_block): Turn cgraph_node
13397 to symbol filed.
13398 (lto_input_variable_constructor): Declare.
13399 * ipa-visibility.c (function_and_variable_visibility): Use
13400 varpool_get_constructor.
13401 * cgraph.h (varpool_get_constructor): Declare.
13402 (varpool_ctor_useable_for_folding_p): New function.
13403 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
13404 parameter; return error_mark_node for non-trivial constructors.
13405 (lto_write_tree_1, DFS_write_tree): Update use of
13406 get_symbol_initial_value.
13407 (output_function): Update initialization of symbol.
13408 (output_constructor): New function.
13409 (copy_function): Rename to ..
13410 (copy_function_or_variable): ... this one; handle vars too.
13411 (lto_output): Output variable sections.
13412 * lto-streamer-in.c (input_constructor): New function.
13413 (lto_read_body): Rename from ...
13414 (lto_read_body_or_constructor): ... this one; handle vars too.
13415 (lto_input_variable_constructor): New function.
13416 * ipa-prop.c (ipa_prop_write_jump_functions,
13417 ipa_prop_write_all_agg_replacement): Update.
13418 * lto-cgraph.c (compute_ltrans_boundary): Use it.
13419 (output_cgraph_opt_summary): Set symbol to NULL.
13420
13421 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13422
13423 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
13424 non-polymorphic types.
13425 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
13426 * ipa-devirt.c (types_same_for_odr): Do not explode when one
13427 of types is not polymorphic.
13428
13429 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
13430
13431 * lra-constraints.c (remove_inheritance_pseudos): Process
13432 destination pseudo too.
13433
13434 2014-07-11 Rong Xu <xur@google.com>
13435
13436 * gcov-tool.c (gcov_output_files): Fix build error introduced in
13437 commit r212448.
13438
13439 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13440
13441 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
13442 * config/avr/avr-devices.c (AVR_MCU): Same.
13443 (avr_mcu_types): add text start value to end of device list.
13444 * config/avr/avr-mcus.def: Add text section start for all devices.
13445 (ata5782): Add new avr5 device.
13446 (ata5831): Same.
13447 * config/avr/avr-tables.opt: Regenerate.
13448 * config/avr/avr.h: Add declaration for text section start handler.
13449 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
13450 SPEC functions.
13451 (LINK_SPEC): Include text section start handler to linker spec.
13452 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
13453 pass -Ttext option to linker if the text section start for the device
13454 is not zero.
13455 * config/avr/t-multilib: Regenerate.
13456 * doc/avr-mmcu.texi: Regenerate.
13457
13458 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
13459
13460 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
13461 * config/rs6000/aix52.h (LINK_SPEC): Same.
13462 * config/rs6000/aix53.h (LINK_SPEC): Same.
13463 * config/rs6000/aix61.h (LINK_SPEC): Same.
13464 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
13465
13466 2014-07-11 Roman Gareev <gareevroman@gmail.com>
13467
13468 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
13469 (graphite_verify): New function.
13470 (ivs_params_clear): New function.
13471 (gcc_expression_from_isl_ast_expr_id): New function.
13472 (gcc_expression_from_isl_expr_int): New function.
13473 (binary_op_to_tree): New function.
13474 (ternary_op_to_tree): New function.
13475 (unary_op_to_tree): New function.
13476 (nary_op_to_tree): New function.
13477 (gcc_expression_from_isl_expr_op): New function.
13478 (gcc_expression_from_isl_expression): New function.
13479 (graphite_create_new_loop): New function.
13480 (translate_isl_ast_for_loop): New function.
13481 (get_upper_bound): New function.
13482 (graphite_create_new_loop_guard): New function.
13483 (translate_isl_ast_node_for): New function.
13484 (translate_isl_ast): New function.
13485 (add_parameters_to_ivs_params): New function.
13486 (scop_to_isl_ast): New parameter ip.
13487 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
13488
13489 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13490
13491 * config/xtensa/predicates.md (call expander): Update for
13492 DECL_SECTION_NAME being string.
13493
13494 2014-07-11 Richard Biener <rguenther@suse.de>
13495
13496 PR middle-end/61473
13497 * builtins.c (fold_builtin_memory_op): Inline memory moves that
13498 can be implemented with a single load followed by a single store.
13499 (c_strlen): Only warn when only_value is not 2.
13500
13501 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
13502
13503 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
13504
13505 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
13506
13507 PR target/61561
13508 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
13509 (*movhi_bytes): Likewise.
13510 (*arm_movqi_insn): Likewise.
13511
13512 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
13513
13514 PR target/56858
13515 * config/alpha/alpha.c: Include tree-pass.h, context.h
13516 and pass_manager.h.
13517 (pass_data_handle_trap_shadows): New pass.
13518 (pass_handle_trap_shadows::gate): New pass gate function.
13519 (make_pass_handle_trap_shadows): New function.
13520 (rest_of_handle_trap_shadows): Ditto.
13521
13522 (alpha_align_insns_1): Rename from alpha_align_insns.
13523 (pass_data_align_insns): New pass.
13524 (pass_align_insns::gate): New pass gate function.
13525 (make_pass_aling_insns): New function.
13526 (rest_of_align_insns): Ditto.
13527 (alpha_align_insns): Ditto.
13528
13529 (alpha_option_override): Declare handle_trap_shadows info
13530 and align_insns_info. Register handle_trap_shadows and align_insns
13531 passes here.
13532 (alpha_reorg): Do not call alpha_trap_shadows and
13533 alpha_align_insn from here.
13534
13535 (alpha_pad_function_end): Do not skip BARRIERs.
13536
13537 2014-07-10 Rong Xu <xur@google.com>
13538
13539 Add gcov-tool: an offline gcda profile processing tool support.
13540 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
13541 (gcov_is_error): Ditto.
13542 (gcov_read_string): Ditto.
13543 (gcov_read_sync): Ditto.
13544 * gcov-io.h: Move counter defines to gcov-counter.def.
13545 * gcov-dump.c (tag_counters): Use gcov-counter.def.
13546 * coverage.c: Ditto.
13547 * gcov-tool.c: Offline gcda profile processing tool.
13548 (unlink_gcda_file): Remove one gcda file.
13549 (unlink_profile_dir): Remove gcda files from the profile path.
13550 (gcov_output_files): Output gcda files to an output dir.
13551 (profile_merge): Merge two profiles in directory.
13552 (print_merge_usage_message): Print merge usage.
13553 (merge_usage): Print merge usage and exit.
13554 (do_merge): Driver for profile merge sub-command.
13555 (profile_rewrite): Rewrite profile.
13556 (print_rewrite_usage_message): Print rewrite usage.
13557 (rewrite_usage): Print rewrite usage and exit.
13558 (do_rewrite): Driver for profile rewrite sub-command.
13559 (print_usage): Print gcov-info usage and exit.
13560 (print_version): Print gcov-info version.
13561 (process_args): Process arguments.
13562 (main): Main routine for gcov-tool.
13563 * Makefile.in: Build and install gcov-tool.
13564 * gcov-counter.def: New file split from gcov-io.h.
13565 * doc/gcc.texi: Include gcov-tool.texi.
13566 * doc/gcov-tool.texi: Document for gcov-tool.
13567
13568 2014-07-10 Richard Biener <rguenther@suse.de>
13569
13570 PR tree-optimization/61757
13571 * tree-ssa-dom.c (loop_depth_of_name): Restore.
13572 (propagate_rhs_into_lhs): Revert part of last change.
13573
13574 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
13575
13576 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
13577 FUNCTION_DECLs.
13578
13579 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
13580
13581 PR middle-end/53590
13582 * function.c (allocate_struct_function): Revert r188667 change.
13583
13584 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
13585
13586 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
13587
13588 * doc/install.texi: Remove links to defunct package providers for
13589 Solaris.
13590
13591 2014-07-09 Tom de Vries <tom@codesourcery.com>
13592
13593 * final.c (get_call_fndecl): Declare.
13594 (self_recursive_call_p): New function.
13595 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
13596
13597 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13598
13599 * ipa-devirt.c (record_node): Walk through aliases.
13600
13601 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13602
13603 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
13604
13605 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13606
13607 Revert:
13608 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
13609
13610 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13611
13612 * ipa-visibility.c (function_and_variable_visibility): Remove
13613 temporary hack disabling local aliases on AIX.
13614
13615 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13616
13617 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
13618 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
13619
13620 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13621
13622 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
13623 * rs6000/rs6000.c: Inline output of .set instruction.
13624 (declare_alias_data): New struct.
13625 (rs6000_declare_alias): New function.
13626 (rs6000_xcoff_declare_function_name): Use it.
13627 (rs6000_xcoff_declare_object_name): New function.
13628 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
13629 (ASM_OUTPUT_DEF): Turn to empty definition.
13630
13631 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13632
13633 PR bootstrap/61679
13634 * hash-table.h: use hash_table::value_type instead of
13635 Descriptor::value_type in the return types of several methods.
13636
13637 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13638
13639 * tree-pass.h (pass_data): Remove has_execute member.
13640 * passes.c (execute_one_pass): Don't check pass->has_execute.
13641 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
13642 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
13643 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
13644 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
13645 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
13646 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
13647 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
13648 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
13649 gimple-low.c, gimple-ssa-isolate-paths.c,
13650 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
13651 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
13652 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
13653 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
13654 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
13655 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
13656 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
13657 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
13658 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
13659 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
13660 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
13661 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
13662 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13663 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13664 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
13665 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
13666 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
13667 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13668 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13669 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
13670 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
13671 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
13672 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
13673 web.c: Remove initializer for pass_data::has_execute.
13674
13675 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13676
13677 * graphite-htab.h: Use hash_map instead of hash_table.
13678 * graphite-clast-to-gimple.c: Adjust.
13679 * passes.c: Use hash_map instead of hash_table.
13680 * sese.c: Likewise.
13681 * sese.h: Remove now unused code.
13682
13683 2014-07-08 Sriraman Tallam <tmsriram@google.com>
13684
13685 PR target/61599
13686 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
13687 than zero.
13688
13689 2014-07-08 Jakub Jelinek <jakub@redhat.com>
13690
13691 PR rtl-optimization/61673
13692 * combine.c (simplify_comparison): Test just mode's sign bit
13693 in tmode rather than the sign bit and any bits above it.
13694
13695 2014-07-08 Roman Gareev <gareevroman@gmail.com>
13696
13697 * graphite-isl-ast-to-gimple.c (generate_isl_context):
13698 Add __isl_give to the declaration.
13699 (generate_isl_schedule): Likewise.
13700 (scop_to_isl_ast): Likewise.
13701
13702 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13703
13704 * config/arm/arm.c (cortexa5_extra_costs): New table.
13705 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
13706
13707 2014-07-08 Jakub Jelinek <jakub@redhat.com>
13708
13709 PR tree-optimization/61725
13710 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
13711 range, use range_includes_zerop_p instead of integer_zerop on
13712 vr0->min, only use log2 of max if min is not negative.
13713
13714 2014-07-08 Richard Biener <rguenther@suse.de>
13715
13716 * tree-ssa-dom.h (loop_depth_of_name): Remove.
13717 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
13718 restriction on loop depth difference.
13719 (record_equality): Likewise.
13720 (propagate_rhs_into_lhs): Likewise. Simplify condition.
13721 (loop_depth_of_name): Remove.
13722 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
13723 restriction on loop depth difference.
13724 (init_copy_prop): Likewise.
13725
13726 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13727
13728 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
13729 parameter.
13730 (walk_aliased_vdefs): Likewise.
13731 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
13732 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
13733 (detect_type_change_from_memory_writes): Check if entry was reached.
13734
13735 2014-07-08 Richard Biener <rguenther@suse.de>
13736
13737 PR tree-optimization/61681
13738 * tree-ssa-structalias.c (find_what_var_points_to): Expand
13739 NONLOCAL inside ESCAPED.
13740
13741 2014-07-08 Richard Biener <rguenther@suse.de>
13742
13743 PR tree-optimization/61680
13744 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13745 Handle properly all read-write dependences with group accesses.
13746
13747 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
13748
13749 PR tree-optimization/61576
13750 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
13751 block containing reduction statement is predecessor of phi basi block.
13752
13753 2014-07-08 Marek Polacek <polacek@redhat.com>
13754
13755 PR c/60226
13756 * fold-const.c (round_up_loc): Change the parameter type.
13757 Remove assert.
13758 * fold-const.h (round_up_loc): Adjust declaration.
13759 * stor-layout.c (finalize_record_size): Check for too large types.
13760
13761 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
13762
13763 * symtab.c: Include calls.h.
13764 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
13765
13766 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
13767
13768 * config/rs6000/rs6000.c (output_vec_const_move): Handle
13769 little-endian code generation.
13770 * config/rs6000/spe.md (spe_evmergehi): Rename to...
13771 (vec_perm00_v2si): ... this. Handle little-endian code generation.
13772 (spe_evmergehilo): Rename to...
13773 (vec_perm01_v2si): ... this. Handle little-endian code generation.
13774 (spe_evmergelo): Rename to...
13775 (vec_perm11_v2si): ... this. Handle little-endian code generation.
13776 (spe_evmergelohi): Rename to...
13777 (vec_perm10_v2si): ... this. Handle little-endian code generation.
13778 (spe_evmergehi, spe_evmergehilo): New expanders.
13779 (spe_evmergelo, spe_evmergelohi): Likewise.
13780 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
13781 (*frob_tf_ti): Likewise.
13782 (*frob_<mode>_di_2): Likewise.
13783 (*frob_tf_di_8_2): Likewise.
13784 (*frob_di_<mode>): Likewise.
13785 (*frob_ti_tf): Likewise.
13786 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
13787 (*frob_ti_<mode>_8_2): Likewise.
13788 (*frob_ti_tf_2): Likewise.
13789 (mov_si<mode>_e500_subreg0): Rename to...
13790 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
13791 endianness only.
13792 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
13793 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
13794 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
13795 the big endianness only.
13796 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
13797 (*mov_si<mode>_e500_subreg0_2): Rename to...
13798 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
13799 big big endianness only.
13800 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
13801 (*mov_si<mode>_e500_subreg4): Rename to...
13802 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
13803 endianness only.
13804 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
13805 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
13806 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
13807 the big endianness only.
13808 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
13809 pattern.
13810 (*mov_si<mode>_e500_subreg4_2): Rename to...
13811 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
13812 endianness only.
13813 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
13814 (*mov_sitf_e500_subreg8): Rename to...
13815 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
13816 endianness only.
13817 (*mov_sitf_e500_subreg8_le): New instruction pattern.
13818 (*mov_sitf_e500_subreg8_2): Rename to...
13819 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
13820 endianness only.
13821 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
13822 (*mov_sitf_e500_subreg12): Rename to...
13823 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
13824 endianness only.
13825 (*mov_sitf_e500_subreg12_le): New instruction pattern.
13826 (*mov_sitf_e500_subreg12_2): Rename to...
13827 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
13828 endianness only.
13829 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
13830
13831 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
13832
13833 * asan.c (instrument_strlen_call): Do not instrument first byte
13834 in strlen if already instrumented.
13835
13836 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13837
13838 * config/arm/arm.opt (mwords-little-endian): Delete.
13839 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
13840 of TARGET_LITTLE_WORDS.
13841 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
13842 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
13843 warning.
13844 * doc/invoke.texi: Remove references to -mwords-little-endian.
13845
13846 2014-07-07 Jakub Jelinek <jakub@redhat.com>
13847
13848 * expmed.c (struct init_expmed_rtl): Change all fields but
13849 pow2 and cint from struct rtx_def to rtx.
13850 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
13851 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
13852 at the end again.
13853
13854 2014-07-06 Marek Polacek <polacek@redhat.com>
13855
13856 PR c/6940
13857 * doc/invoke.texi: Document -Wsizeof-array-argument.
13858
13859 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
13860
13861 * wide-int.h (wide_int_storage): Change declaration from struct
13862 to class.
13863
13864 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
13865
13866 * cgraph.c (cgraph_create_indirect_edge): Update call of
13867 get_polymorphic_call_info.
13868 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
13869 (possible_polymorphic_call_targets): Add parameter call.
13870 (decl_maybe_in_construction_p): New predicate.
13871 (get_polymorphic_call_info): Add parameter call;
13872 use decl_maybe_in_construction_p.
13873 * gimple-fold.c (fold_gimple_assign): Update use of
13874 possible_polymorphic_call_targets.
13875 (gimple_fold_call): Likewise.
13876 * ipa-prop.c: Inlcude calls.h
13877 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
13878 (param_type_may_change_p): New predicate.
13879 (detect_type_change_from_memory_writes): Break out from ...
13880 (detect_type_change): ... this one; use param_type_may_change_p.
13881 (detect_type_change_ssa): Use param_type_may_change_p.
13882 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
13883
13884 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
13885
13886 PR target/49423
13887 * config/arm/arm-protos.h (arm_legitimate_address_p,
13888 arm_is_constant_pool_ref): Add prototypes.
13889 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
13890 (arm_is_constant_pool_ref) New function.
13891 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
13892 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
13893 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
13894 operand. Remove pool_range and neg_pool_range attributes.
13895 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
13896 pool_range and neg_pool_range attributes.
13897 * config/arm/constraints.md (Uh): New constraint.
13898 (Uq): Don't allow constant pool references.
13899
13900 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
13901
13902 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
13903 (move_lo_quad_internal_be_<mode>): Likewise.
13904 (move_lo_quad_<mode>): Convert to define_expand.
13905 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
13906 (aarch64_simd_move_hi_quad_be_<mode>): New.
13907 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
13908 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
13909 (aarch64_combinez_be<mode>): New.
13910 (aarch64_combine<mode>): Convert to define_expand.
13911 (aarch64_combine_internal<mode>): New.
13912 (aarch64_simd_combine<mode>): Remove bogus RTL description.
13913
13914 2014-07-04 Tom de Vries <tom@codesourcery.com>
13915
13916 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
13917 combination of earlyclobber and read/write modifiers.
13918
13919 2014-07-04 Tom de Vries <tom@codesourcery.com>
13920
13921 * config/aarch64/aarch64-simd.md
13922 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
13923
13924 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
13925
13926 PR target/61714
13927 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
13928
13929 2014-07-04 Jakub Jelinek <jakub@redhat.com>
13930
13931 PR middle-end/61654
13932 * cgraphunit.c (expand_thunk): Call free_dominance_info.
13933
13934 PR tree-optimization/61684
13935 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
13936 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
13937
13938 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13939 Kito Cheng <kito@0xlab.org>
13940 Monk Chiang <sh.chiang04@gmail.com>
13941
13942 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
13943 (nds32_symbol_load_store_p): Move to ...
13944 (nds32_fp_as_gp_check_available): Move to ...
13945 * config/nds32/nds32-fp-as-gp.c: ... here.
13946 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
13947 extern declaration.
13948
13949 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13950 Kito Cheng <kito@0xlab.org>
13951 Monk Chiang <sh.chiang04@gmail.com>
13952
13953 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
13954 (nds32_expand_store_multiple): Move to ...
13955 (nds32_expand_movmemqi): Move to ...
13956 * config/nds32/nds32-memory-manipulation.c: ... here.
13957
13958 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13959 Kito Cheng <kito@0xlab.org>
13960 Monk Chiang <sh.chiang04@gmail.com>
13961
13962 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
13963 (nds32_output_casesi_pc_relative): Move to ...
13964 (nds32_output_casesi): Move to ...
13965 (nds32_mem_format): Move to ...
13966 (nds32_output_16bit_store): Move to ...
13967 (nds32_output_16bit_load): Move to ...
13968 (nds32_output_32bit_store): Move to ...
13969 (nds32_output_32bit_load): Move to ...
13970 (nds32_output_32bit_load_s): Move to ...
13971 (nds32_output_stack_push): Move to ...
13972 (nds32_output_stack_pop): Move to ...
13973 * config/nds32/nds32-md-auxiliary.c: ... here.
13974
13975 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13976 Ling-Hua Tseng <uranus@tinlans.org>
13977
13978 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
13979 the purpose of this file.
13980
13981 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13982 Kito Cheng <kito@0xlab.org>
13983 Monk Chiang <sh.chiang04@gmail.com>
13984
13985 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
13986 (nds32_address_cost): Move implementation to ...
13987 * config/nds32/nds32-cost.c: ... here.
13988 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
13989 (nds32_address_cost_impl): Declare.
13990
13991 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13992 Kito Cheng <kito@0xlab.org>
13993 Monk Chiang <sh.chiang04@gmail.com>
13994
13995 * config/nds32/nds32.c
13996 (nds32_consecutive_registers_load_store_p): Move to ...
13997 (nds32_valid_multiple_load_store): Move to ...
13998 (nds32_valid_stack_push_pop): Move to ...
13999 (nds32_can_use_bclr_p): Move to ...
14000 (nds32_can_use_bset_p): Move to ...
14001 (nds32_can_use_btgl_p): Move to ...
14002 (nds32_can_use_bitci_p): Move to ...
14003 * config/nds32/nds32-predicates.c: ... here.
14004
14005 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14006 Kito Cheng <kito@0xlab.org>
14007 Monk Chiang <sh.chiang04@gmail.com>
14008
14009 * config/nds32/nds32.c
14010 (nds32_expand_builtin_null_ftype_reg): Move to ...
14011 (nds32_expand_builtin_reg_ftype_imm): Move to ...
14012 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
14013 (nds32_init_builtins): Move implementation to ...
14014 (nds32_expand_builtin): Move implementation to ...
14015 * config/nds32/nds32-intrinsic.c: ... here.
14016 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
14017 (nds32_expand_builtin_impl): Declare.
14018
14019 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14020 Kito Cheng <kito@0xlab.org>
14021 Monk Chiang <sh.chiang04@gmail.com>
14022
14023 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
14024 (nds32_emit_section_tail_template): Move to ...
14025 (nds32_emit_isr_jmptbl_section): Move to ...
14026 (nds32_emit_isr_vector_section): Move to ...
14027 (nds32_emit_isr_reset_conten): Move to ...
14028 (nds32_check_isr_attrs_conflict): Move to ...
14029 (nds32_construct_isr_vectors_information): Move to ...
14030 (nds32_asm_file_start): Move implementation to ...
14031 (nds32_asm_file_end): Move implementation to ...
14032 * config/nds32/nds32-isr.c: ... here.
14033 * config/nds32/nds32-protos.h
14034 (nds32_check_isr_attrs_conflict): Declare.
14035 (nds32_construct_isr_vectors_information): Declare.
14036 (nds32_asm_file_start_for_isr): Declare.
14037 (nds32_asm_file_end_for_isr): Declare.
14038
14039 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14040 Kito Cheng <kito@0xlab.org>
14041 Monk Chiang <sh.chiang04@gmail.com>
14042
14043 * config.gcc (nds32*): Add new modules to extra_objs.
14044 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
14045 (nds32be-*-*): Likewise.
14046 * config/nds32/nds32-cost.c: New file.
14047 * config/nds32/nds32-fp-as-gp.c: New file.
14048 * config/nds32/nds32-intrinsic.c: New file.
14049 * config/nds32/nds32-isr.c: New file.
14050 * config/nds32/nds32-md-auxiliary.c: New file.
14051 * config/nds32/nds32-memory-manipulation.c: New file.
14052 * config/nds32/nds32-pipelines-auxiliary.c: New file.
14053 * config/nds32/nds32-predicates.c: New file.
14054 * config/nds32/t-nds32: New file.
14055
14056 2014-07-03 Jakub Jelinek <jakub@redhat.com>
14057
14058 PR tree-optimization/61682
14059 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
14060 using cases and when one of the operands is equal to 1.
14061
14062 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
14063
14064 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
14065 ashr<mode>3): Correct mode of operands[2].
14066 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
14067 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
14068 Correct mode of operands[2]. Fix split condition.
14069
14070 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
14071
14072 * arm.md (arch): Add armv6_or_vfpv3.
14073 (arch_enabled): Add test for the above.
14074 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
14075 on VFP9.
14076 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
14077
14078 2014-07-03 Jakub Jelinek <jakub@redhat.com>
14079
14080 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
14081 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
14082 HWI 1 and negate the unsigned value.
14083 * expmed.c (expand_sdiv_pow2): For modes wider than word always
14084 use AND instead of shift.
14085 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
14086
14087 2014-07-03 Marek Polacek <polacek@redhat.com>
14088
14089 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
14090 (-fsanitize=float-divide-by-zero): Move to the table with
14091 -fsanitize=undefined suboptions.
14092 (-fsanitize=float-cast-overflow): Likewise.
14093
14094 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
14095
14096 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
14097 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
14098 endianness.
14099
14100 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14101
14102 * loop-invariant.c (struct invariant): Add a new member: eqno;
14103 (find_identical_invariants): Update eqno;
14104 (create_new_invariant): Init eqno;
14105 (get_inv_cost): Compute comp_cost with eqno;
14106
14107 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
14108
14109 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
14110 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
14111 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
14112 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
14113 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
14114
14115 2014-07-02 Christian Bruel <christian.bruel@st.com>
14116
14117 PR target/29349
14118 PR target/53513
14119 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
14120 (make_preds_opaque): Delete.
14121 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
14122 (commit_mode_sets): New function.
14123 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
14124 Process all modes at once.
14125 * basic-block.h (pre_edge_lcm_avs): Declare.
14126 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
14127 Call clear_aux_for_edges. Fix comments.
14128 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
14129 (pre_edge_rev_lcm): Idem.
14130 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
14131 parameter.
14132 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
14133 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
14134 Idem.
14135 * config/i386/i386.c (x96_emit_mode_set): Idem.
14136 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
14137 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
14138 (fpscr_toggle) Disallow from delay slot.
14139 * target.def (emit_mode_set): Add prev_mode parameter.
14140 * doc/tm.texi: Regenerate.
14141
14142 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14143
14144 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
14145 variable i.
14146
14147 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
14148
14149 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
14150 vtable_pointer_value_to_vtable): Constify.
14151 (contains_polymorphic_type_p): Declare.
14152 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
14153 vtable_pointer_value_to_vtable): Constify.
14154 (contains_polymorphic_type_p): New predicate.
14155 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
14156 polymorphic types.
14157 (ipa_set_ancestor_jf): Likewise.
14158 (detect_type_change): Return false in easy cases.
14159 (compute_complex_assign_jump_func): Require type to contain
14160 polymorphic type.
14161 (compute_known_type_jump_func): Likewise.
14162
14163 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
14164
14165 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
14166 Remove.
14167 (type_in_anonymous_namespace_p): Constify argument.
14168 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
14169 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
14170 (main_odr_variant): New function.
14171 (hash_type_name): Make static; update assert; do not ICE on
14172 non-records.
14173 (types_same_for_odr): Bring here from tree.c; simplify and remove
14174 old structural comparing code that doesn't work for templates.
14175 (odr_hasher::equal): Update assert.
14176 (add_type_duplicate): Return true when bases should be computed;
14177 replace incomplete loader by complete; do not output duplicated
14178 warnings; do not ICE on non-records; set odr_violated flag.
14179 (get_odr_type): Be ready to replace incomplete type by complete
14180 one; work on ODR variants instead of main variants; reorder item
14181 in array so bases have still smaller indexes.
14182 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
14183 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
14184
14185 2014-07-01 Cary Coutant <ccoutant@google.com>
14186
14187 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
14188 lookup.
14189 (resolve_addr_in_expr): When replacing the rtx in a location list
14190 entry, get a new address table entry.
14191 (dwarf2out_finish): Call index_location_lists even if there are no
14192 addr_index_table entries yet.
14193
14194 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
14195
14196 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
14197 change for not being obvious.
14198
14199 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
14200
14201 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
14202 unused argument.
14203
14204 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14205
14206 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
14207 (vcagt_f64): Likewise.
14208 (vcale_f64): Likewise.
14209 (vcaled_f64): Likewise.
14210 (vcales_f32): Likewise.
14211 (vcalt_f64): Likewise.
14212 (vcaltd_f64): Likewise.
14213 (vcalts_f32): Likewise.
14214
14215 2014-07-01 Marek Polacek <polacek@redhat.com>
14216
14217 * doc/invoke.texi: Document -Wint-conversion.
14218
14219 2014-07-01 Marek Polacek <polacek@redhat.com>
14220
14221 PR c/58286
14222 * doc/invoke.texi: Document -Wincompatible-pointer-types.
14223
14224 2014-07-01 Martin Liska <mliska@suse.cz>
14225
14226 IPA REF alias refactoring
14227 * cgraph.h (iterate_direct_aliases): New function.
14228 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
14229 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
14230 FOR_EACH_ALIAS added.
14231 (cgraph_for_node_and_aliases): Likewise.
14232 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
14233 * ipa-inline.c (reset_edge_caches): Likewise.
14234 (update_caller_keys): Likewise.
14235 * trans-mem.c (ipa_tm_execute): Likewise.
14236 *varpool.c (varpool_analyze_node): Likewise.
14237 (varpool_for_node_and_aliases): Likewise.
14238 * ipa-ref.h (first_alias): New function.
14239 (last_alias): Likewise.
14240 (has_aliases_p): Likewise.
14241 * ipa-ref.c (ipa_ref::remove_reference): Removal function
14242 is sensitive to IPA_REF_ALIASes.
14243 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
14244 are put at the beginning of the list.
14245 (symtab_node::iterate_direct_aliases): New function.
14246
14247 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14248
14249 Revert:
14250 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
14251 type is complete.
14252 (write_ts_type_common_tree_pointers): Do not stream fields not set
14253 for incomplete types; do not stream duplicated fields for variants;
14254 sanity check that variant and type match.
14255 (write_ts_type_non_common_tree_pointers): Likewise.
14256 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
14257 TYPE_SIZE whether type is complete.
14258 (lto_input_ts_type_common_tree_pointers): Do same changes as in
14259 write_ts_type_common_tree_pointers
14260 (lto_input_ts_type_non_common_tree_pointers): Likewise.
14261
14262 2014-06-30 Joseph Myers <joseph@codesourcery.com>
14263
14264 * var-tracking.c (add_stores): Return instead of asserting if old
14265 and new values for conditional store are the same.
14266
14267 2014-06-30 Richard Henderson <rth@redhat.com>
14268
14269 PR rtl-opt/61608
14270 PR target/39284
14271 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
14272 the cfg if there were any changes.
14273 * passes.def: Revert move of peephole2 after reorder_blocks;
14274 move duplicate_computed_gotos before peephole2.
14275
14276 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
14277
14278 * except.c (emit_note_eh_region_end): New helper function.
14279 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
14280 emit EH_REGION_END note.
14281 * jump.c (cleanup_barriers): Do not split a call and its
14282 corresponding CALL_ARG_LOCATION note.
14283
14284 2014-06-30 Jeff Law <law@redhat.com>
14285
14286 PR tree-optimization/61607
14287 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
14288 deeper into the SSA_NAME_VALUE chain.
14289
14290 2014-06-30 Marek Polacek <polacek@redhat.com>
14291
14292 * convert.c (convert_to_integer): Don't instrument conversions if the
14293 function has no_sanitize_undefined attribute.
14294 * ubsan.c: Don't run the ubsan pass if the function has
14295 no_sanitize_undefined attribute.
14296
14297 2014-06-30 Jakub Jelinek <jakub@redhat.com>
14298
14299 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
14300 -fsanitize=undefined suboptions.
14301
14302 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
14303
14304 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
14305 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
14306 against bigendian and adjust indices.
14307
14308 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
14309
14310 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
14311
14312 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
14313
14314 PR target/61633
14315 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
14316 Add alternative; make early clobber. Adjust both split patterns
14317 to use operand 0 as the working register.
14318
14319 2014-06-30 Jakub Jelinek <jakub@redhat.com>
14320
14321 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
14322 as ira_object_id_map might be NULL, or 1.
14323
14324 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14325
14326 * loop-invariant.c (get_inv_cost): Handle register class.
14327 (gain_for_invariant): Check the register pressure of the inv
14328 and its overlapped register class, other than all.
14329
14330 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
14331
14332 * doc/invoke.texi (Optimize Options): Fix descriptions of
14333 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
14334
14335 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
14336
14337 * doc/extend.texi (Function Attributes): Update 'naked' attribute
14338 documentation.
14339
14340 2014-06-29 Tobias Grosser <tobias@grosser.es>
14341
14342 PR bootstrap/61650
14343 * graphite-isl-ast-to-gimple.c: Add missing guards.
14344
14345 2014-06-29 Roman Gareev <gareevroman@gmail.com>
14346
14347 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
14348 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
14349 * flag-types.h: Add new enum fgraphite_generator.
14350 * graphite-isl-ast-to-gimple.c: New.
14351 * graphite-isl-ast-to-gimple.h: New.
14352 * graphite.c (graphite_transform_loops): Add choice of Graphite
14353 code generator, which depends on flag_graphite_code_gen.
14354
14355 2014-06-29 Roman Gareev <gareevroman@gmail.com>
14356
14357 * graphite-dependences.c (subtract_commutative_associative_deps):
14358 Add NULL checking of the following variables: must_raw_no_source,
14359 may_raw_no_source, must_war_no_source, may_war_no_source,
14360 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
14361 must_war, may_war, must_waw, may_waw.
14362
14363 2014-06-29 Roman Gareev <gareevroman@gmail.com>
14364
14365 * graphite-clast-to-gimple.c: gloog is renamed to
14366 graphite_regenerate_ast_cloog. gloog_error is renamed to
14367 graphite_regenerate_error.
14368 * graphite-clast-to-gimple.h: The definition of the struct
14369 bb_pbb_def is moved to graphite-htab.h.
14370 Add inclusion of the hash-table.h.
14371 * graphite-htab.h: The declaration of the function gloog is moved
14372 to graphite-clast-to-gimple.h and renamed to
14373 graphite_regenerate_ast_cloog.
14374 * graphite.c (graphite_transform_loops): gloog is renamed
14375 to graphite_regenerate_ast_cloog.
14376
14377 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14378
14379 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
14380 type is complete.
14381 (write_ts_type_common_tree_pointers): Do not stream fields not set
14382 for incomplete types; do not stream duplicated fields for variants;
14383 sanity check that variant and type match.
14384 (write_ts_type_non_common_tree_pointers): Likewise.
14385 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
14386 TYPE_SIZE whether type is complete.
14387 (lto_input_ts_type_common_tree_pointers): Do same changes as in
14388 write_ts_type_common_tree_pointers
14389 (lto_input_ts_type_non_common_tree_pointers): Likewise.
14390
14391 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14392
14393 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
14394
14395 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14396
14397 * tree-inline.c (remap_type_1): Do not duplicate fields
14398 that are shared in between type and its main variant.
14399
14400 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14401
14402 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
14403 of the type.
14404 (ipa_set_ancestor_jf) Likewise.
14405 (check_stmt_for_type_change): Check that we work on main variant.
14406 (detect_type_change): Look into main variant.
14407 (compute_known_type_jump_func): Check that main variant has BINFO.
14408
14409 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14410
14411 * ipa-devirt.c (set_type_binfo): New function.
14412 (add_type_duplicate): Use it.
14413 (get_odr_type): Sanity check that binfos points to main variants.
14414 (get_class_context): Be sure the context's outer_type is main variant.
14415 (contains_type_p): Walk main variant.
14416 (get_polymorphic_call_info_for_decl): Set outer_type to be
14417 main variant.
14418 (get_polymorphic_call_info): Likewise.
14419 (possible_polymorphic_call_targets): Sanity check that we operate
14420 on main variant.
14421
14422 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14423
14424 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
14425
14426 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14427
14428 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
14429 accidental change due to wide-int branch merge.
14430
14431 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14432
14433 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
14434 compressed debug support.
14435 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
14436 * configure: Regenerate.
14437 * config.in: Regenerate.
14438 * common.opt (compressed_debug_sections): New enum.
14439 (gz, gz=): New options.
14440 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
14441 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
14442 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
14443 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
14444 LINK_COMPRESS_DEBUG_SPEC.
14445 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
14446 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
14447 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
14448 (Debugging Options): Document -gz[=type].
14449
14450 2014-06-27 Martin Jambor <mjambor@suse.cz>
14451
14452 PR ipa/61160
14453 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
14454 args_to_skip, use those from node instead. Copy args_to_skip and
14455 combined_args_to_skip from node to the new thunk.
14456 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
14457 (cgraph_create_virtual_clone): Moved computation of
14458 combined_args_to_skip...
14459 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
14460
14461 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
14462
14463 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
14464 redundant diagnostic machinary.
14465
14466 2014-06-27 Richard Biener <rguenther@suse.de>
14467
14468 * tree-ssa-math-opts.c (bswap_replace): Fix
14469 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
14470
14471 2014-06-27 Martin Liska <mliska@suse.cz>
14472
14473 * gimple.h (gimple_location_safe): New function introduced.
14474 * cgraphunit.c (walk_polymorphic_call_targets): Usage
14475 of gimple_location_safe replaces gimple_location.
14476 (gimple_fold_call): Likewise.
14477 * ipa-devirt.c (ipa_devirt): Likewise.
14478 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
14479 * ipa.c (walk_polymorphic_call_targets): Likewise.
14480 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
14481
14482 2014-06-27 Jakub Jelinek <jakub@redhat.com>
14483
14484 PR tree-optimization/57233
14485 PR tree-optimization/61299
14486 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
14487 functions.
14488 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
14489 would be lowered to scalar shifts, check if corresponding
14490 shifts and vector BIT_IOR_EXPR are supported and don't lower
14491 or lower just to narrower vector type in that case.
14492 * expmed.c (expand_shift_1): Fix up handling of vector
14493 shifts and rotates.
14494
14495 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
14496
14497 PR target/61586
14498 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
14499
14500 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
14501
14502 * doc/invoke.texi (-fsemantic-interposition): Document.
14503 * common.opt (fsemantic-interposition): New flag.
14504 * varasm.c (decl_replaceable_p): Use it.
14505
14506 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14507
14508 PR target/61542
14509 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
14510 extraction other than index 3.
14511
14512 2014-06-26 Teresa Johnson <tejohnson@google.com>
14513
14514 * doc/invoke.texi: Fix typo.
14515 * dumpfile.c: Add support for documented -fdump-* options
14516 optimized/missed/note/optall.
14517
14518 2014-06-26 Martin Jambor <mjambor@suse.cz>
14519
14520 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
14521 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
14522 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
14523 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
14524 * opts.c (default_options_optimization): Set
14525 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
14526 * doc/invoke.texi (allow-load-data-races)
14527 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
14528 (allow-store-data-races): Document the new default.
14529
14530 2014-06-26 Martin Jambor <mjambor@suse.cz>
14531
14532 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
14533 renamed to ipa_impossible_devirt_target. Fix typo.
14534 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
14535 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
14536 ipa_impossible_devirt_target.
14537
14538 2014-06-26 Richard Biener <rguenther@suse.de>
14539
14540 PR tree-optimization/61607
14541 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
14542 explaining why we restrict copies on loop depth.
14543 * tree-ssa-dom.c (cprop_operand): Remove restriction on
14544 on loop depth.
14545 (record_equivalences_from_phis): Instead add it here.
14546
14547 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
14548
14549 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
14550 (LTO_WRAPPER_OBJS): New variable.
14551 (lto-wrapper$(exeext)): Use it.
14552 * collect2.c: Include "collect-utils.h".
14553 (verbose, debug): Remove variables.
14554 (at_file_supplied): No longer static.
14555 (tool_name): New variable.
14556 (do_wait, fork_execute, maybe_unlink): Don't declare.
14557 (tool_cleanup): No longer static.
14558 (notice): Remove function.
14559 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
14560 fork_execute calls.
14561 (collect_wait, do_wait, collect_execute): Remove functions.
14562 (maybe_unlink): No longer static.
14563 * collect2.h (verbose, debug): Don't declare.
14564 (at_file_supplied): Declare.
14565 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
14566 changed.
14567 (collect_execute): Replace with implementation from collect2, plus a
14568 new arg use_atfile. All callers changed.
14569 (collect_wait): Replace with implementation from collect2.
14570 (maybe_unlink_file): Remove function.
14571 (fork_execute): Replace with implementation from collect2, plus a
14572 new arg use_atfile. All callers changed.
14573 (do_wait): Add call to utils_cleanup to the error path.
14574 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
14575 (tool_cleanup): Adjust declarations.
14576 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
14577 * tlink.c: Include "collect-utils.h".
14578 (tlink_execute): New arg use_atfile. All callers changed.
14579 (tlink_init, tlink_execute): Remove declarations.
14580
14581 * collect-utils.c (save_temps): New variable.
14582 (do_wait): Use it instead of debug. Use fatal_error.
14583 * collect-utils.h (save_temps): Declare.
14584 * collect2.c (verbose): Rename from vflag. All uses changed.
14585 (tool_cleanup): New function, copied from collect_atexit.
14586 (collect_atexit, handler): Just call it.
14587 * collect2.h (verbose): Declaration renamed from vflag.
14588 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
14589 debug.
14590
14591 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
14592 (lto-wrapper$(exeext)): Link with collect-utils.o.
14593 * collect-utils.c: New file.
14594 * collect-utils.h: New file.
14595 * lto-wrapper.c: Include "collect-utils.h".
14596 (args_name): Delete variable.
14597 (tool_name): New variable.
14598 (tool_cleanup): New function.
14599 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
14600 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
14601 (fork_execute): Remove functions.
14602
14603 2014-06-26 Nick Clifton <nickc@redhat.com>
14604
14605 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
14606
14607 * doc/extend.texi (Function Attributes): Fix typo in description
14608 of RX vector attribute.
14609
14610 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
14611
14612 * config.gcc (supported_defaults): Error when passing either
14613 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
14614
14615 2014-06-26 Richard Biener <rguenther@suse.de>
14616
14617 * tree-ssa-dom.c (cprop_operand): Remove restriction on
14618 propagating volatile pointers.
14619
14620 2014-06-26 Richard Biener <rguenther@suse.de>
14621
14622 PR tree-optimization/61607
14623 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
14624 loop if we redirected its latch edge.
14625 (thread_block_1): Do not cancel loops prematurely.
14626
14627 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
14628
14629 * toplev.c (backend_init_target): Move init_emit_regs and
14630 init_regs to...
14631 (backend_init) ... here; skip ira_init_once and backend_init_target.
14632 (target_reinit) ... and here; clear
14633 this_target_rtl->lang_dependent_initialized.
14634 (lang_dependent_init_target): Clear
14635 this_target_rtl->lang_dependent_initialized;
14636 break out rtl initialization to ...
14637 (initialize_rtl): ... here; call also backend_init_target
14638 and ira_init_once.
14639 * toplev.h (initialize_rtl): New function.
14640 * function.c: Include toplev.h
14641 (init_function_start): Call initialize_rtl.
14642 * rtl.h (target_rtl): Add target_specific_initialized,
14643 lang_dependent_initialized.
14644
14645 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
14646 Jakub Jelinek <jakub@redhat.com>
14647
14648 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
14649
14650 2014-06-25 Tom de Vries <tom@codesourcery.com>
14651
14652 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
14653
14654 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
14655
14656 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
14657 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
14658 Issue a strict overflow warning if appropriate.
14659
14660 2014-06-25 Martin Liska <mliska@suse.cz>
14661
14662 IPA REF refactoring
14663 * Makefile.in: Removed header file (ipa-ref-inline.h).
14664 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
14665 called.
14666 (cgraph_speculative_call_info): Likewise.
14667 (cgraph_for_node_thunks_and_aliases): Likewise.
14668 (cgraph_for_node_and_aliases): Likewise.
14669 (verify_cgraph_node): Likewise.
14670 * cgraph.h: Batch of IPA REF functions become member functions of
14671 symtab_node: add_reference, maybe_add_reference, clone_references,
14672 clone_referring, clone_reference, find_reference,
14673 remove_stmt_references, remove_all_references,
14674 remove_all_referring, dump_references, dump_referring,
14675 has_alias_p, iterate_reference, iterate_referring.
14676 * cgraphbuild.c (record_reference): New IPA REF function used.
14677 (record_type_list): Likewise.
14678 (record_eh_tables): Likewise.
14679 (mark_address): Likewise.
14680 (mark_load): Likewise.
14681 (mark_store): Likewise.
14682 (pass_build_cgraph_edges): Likewise.
14683 (rebuild_cgraph_edge): Likewise.
14684 (cgraph_rebuild_references): Likewise.
14685 (pass_remove_cgraph_callee_edges): Likewise.
14686 * cgraphclones.c (cgraph_clone_node): Likewise.
14687 (cgraph_create_virtual_clone): Likewise.
14688 (cgraph_materialize_clone): Likewise.
14689 (cgraph_materialize_all_clones): Likewise.
14690 * cgraphunit.c (cgraph_reset_node): Likewise.
14691 (cgraph_reset_node): Likewise.
14692 (analyze_function): Likewise.
14693 (assemble_thunks_and_aliases): Likewise.
14694 (expand_function): Likewise.
14695 * ipa-comdats.c (propagate_comdat_group): Likewise.
14696 (enqueue_references): Likewise.
14697 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
14698 (create_specialized_node): Likewise.
14699 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
14700 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
14701 * ipa-inline.c (reset_edge_caches): Likewise.
14702 (update_caller_keys): Likewise.
14703 (execute): Likewise.
14704 * ipa-prop.c (remove_described_reference): Likewise.
14705 (propagate_controlled_uses): Likewise.
14706 (ipa_edge_duplication_hook): Likewise.
14707 (ipa_modify_call_arguments): Likewise.
14708 * ipa-pure-const.c (propagate_pure_const): Likewise.
14709 * ipa-ref-inline.h: Header file removed, functions moved
14710 to symtab_node class.
14711 * ipa-ref.c (remove_reference): New class member function.
14712 (cannot_lead_to_return): New class member function.
14713 (referring_ref_list): Likewise.
14714 (referred_ref_list): Likewise.
14715 Rest of functions moved to symtab_node class.
14716 * ipa-ref.h: New member functions remove_reference,
14717 cannot_lead_to_return, referring_ref_list, referred_ref_list added
14718 to ipa_ref class.
14719 ipa_ref_list class has new member functions: first_reference,
14720 first_referring, clear, nreferences.
14721 * ipa-reference.c (analyze_function): New IPA REF function used.
14722 (write_node_summary_p): Likewise.
14723 (ipa_reference_write_optimization_summary): Likewise.
14724 * ipa-split.c (split_function): Likewise.
14725 * ipa-utils.c (ipa_reverse_postorder): Likewise.
14726 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
14727 (function_and_variable_visibility): Likewise.
14728 * ipa.c (has_addr_references_p): Likewise.
14729 (process_references): Argument type changed.
14730 (symtab_remove_unreachable_nodes): New IPA REF function used.
14731 (process_references): Likewise.
14732 (set_writeonly_bit): Likewise.
14733 * lto-cgraph.c: Implementation of new symtab_node member functions
14734 that uses new IPA REF functions.
14735 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
14736 function used.
14737 * lto-streamer-out.c (output_symbol_p): Likewise.
14738 * lto-streamer.h (referenced_from_this_partition_p): Argument type
14739 changed.
14740 * symtab.c: Implementation of new IPA REF API.
14741 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
14742 (ipa_tm_create_version): Likewise.
14743 (ipa_tm_execute): Likewise.
14744 * tree-emutls.c (gen_emutls_addr): Likewise.
14745 * tree-inline.c (copy_bb): Likewise.
14746 (delete_unreachable_blocks_update_callgraph): Likewise.
14747 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
14748 (varpool_for_node_and_aliases): Likewise.
14749
14750 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
14751
14752 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
14753
14754 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
14755
14756 PR bootstrap/61598
14757 * fold-const.c (fold_checksum_tree): Use a hash_table of const
14758 tree_node * instead of tree_node *.
14759 (fold): Adjust.
14760 (print_fold_checksum): Likewise.
14761 (fold_check_failed): Likewise.
14762 (debug_fold_checksum): Likewise.
14763 (fold_build1_stat_loc): Likewise.
14764 (fold_build2_stat_loc): Likewise.
14765 (fold_build3_stat_loc): Likewise.
14766 (fold_build_call_array_loc): Likewise.
14767
14768 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
14769
14770 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
14771 implementation with call to...
14772 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
14773 function.
14774 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
14775 Declare.
14776
14777 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
14778
14779 PR tree-optimization/57742
14780 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
14781 after replacing the statement.
14782
14783 2014-06-25 Nick Clifton <nickc@redhat.com>
14784
14785 * config/v850/v850.c (GHS_default_section_names): Change to const
14786 char * type.
14787 (GHS_current_section_names): Likewise.
14788 (v850_insert_attributes): Do not build strings, just assign the
14789 names directly. Change the type of 'chosen_section' to const
14790 char*.
14791 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
14792 directly to the array entry.
14793 * config/v850/v850.h (GHS_default_section_names): Change to const
14794 char * type.
14795 (GHS_current_section_names): Likewise.
14796
14797 2014-06-25 Jakub Jelinek <jakub@redhat.com>
14798
14799 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
14800 (LANG_HOOKS_DECLS): Add it.
14801 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
14802 has correct type.
14803 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
14804 * langhooks.h (struct lang_hooks_for_decls): Add
14805 omp_clause_linear_ctor hook.
14806 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
14807 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
14808 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
14809 combined simd loop use omp_clause_linear_ctor hook.
14810
14811 2014-06-24 Cong Hou <congh@google.com>
14812
14813 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
14814 pattern recognition.
14815 (type_conversion_p): PROMOTION is true if it's a type promotion
14816 conversion, and false otherwise. Return true if the given expression
14817 is a type conversion one.
14818 * tree-vectorizer.h: Adjust the number of patterns.
14819 * tree.def: Add SAD_EXPR.
14820 * optabs.def: Add sad_optab.
14821 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
14822 * expr.c (expand_expr_real_2): Likewise.
14823 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
14824 * gimple.c (get_gimple_rhs_num_ops): Likewise.
14825 * optabs.c (optab_for_tree_code): Likewise.
14826 * tree-cfg.c (estimate_operator_cost): Likewise.
14827 * tree-ssa-operands.c (get_expr_operands): Likewise.
14828 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
14829 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
14830 * doc/generic.texi: Add document for SAD_EXPR.
14831 * doc/md.texi: Add document for ssad and usad.
14832
14833 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14834
14835 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
14836 qualification in cast.
14837
14838 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
14839
14840 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
14841 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
14842 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
14843 (tree_function_decl): ... here.
14844 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
14845 streaming of vindex to ...
14846 (write_ts_function_decl_tree_pointers): ... here.
14847 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
14848 Do not stream DECL_VINDEX.
14849 (lto_input_ts_function_decl_tree_pointers): Stream it here.
14850
14851 2014-06-24 Catherine Moore <clm@codesourcery.com>
14852 Sandra Loosemore <sandra@codesourcery.com>
14853
14854 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
14855 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
14856 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
14857
14858 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
14859
14860 * doc/invoke.texi (Warning Options): Remove duplicated
14861 -Wmaybe-uninitialized.
14862
14863 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
14864
14865 PR tree-optimization/57742
14866 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
14867 (handle_builtin_malloc, handle_builtin_memset): New functions.
14868 (strlen_optimize_stmt): Call them.
14869 * passes.def: Move strlen after loop+dom but before vrp.
14870
14871 2014-06-24 Jakub Jelinek <jakub@redhat.com>
14872
14873 PR target/61570
14874 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
14875 model family 6 CPU with has_longmode never use a CPU without
14876 64-bit support.
14877
14878 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
14879
14880 PR target/61570
14881 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
14882 the last change.
14883
14884 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14885
14886 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
14887 * dominance.c (iterate_fix_dominators): Use hash_map instead of
14888 pointer_map.
14889 * hash-map.h: New file.
14890 * ipa-comdats.c: Use hash_map instead of pointer_map.
14891 * ipa.c: Likewise.
14892 * lto-section-out.c: Adjust.
14893 * lto-streamer.h: Replace pointer_map with hash_map.
14894 * symtab.c (verify_symtab): Likewise.
14895 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
14896 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
14897 * tree-streamer.h: Likewise.
14898 * tree-streamer.c: Adjust.
14899 * pointer-set.h: Remove pointer_map.
14900
14901 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14902
14903 * hash-table.h: Add a template arg to choose between storing values
14904 and storing pointers to values, and then provide partial
14905 specializations for both.
14906 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
14907 should store, not the type values should point to.
14908 * tree-into-ssa.c (var_info_hasher): Likewise.
14909 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
14910 * tree-complex.c: Adjust.
14911 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
14912 table instead of int_tree_map *.
14913 * tree-parloops.c: Adjust.
14914 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
14915 type is being stored.
14916 * tree-vectorizer.c: Adjust.
14917
14918 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14919
14920 * hash-table.h: Remove a layer of indirection from hash_table so that
14921 it contains the hash table's data instead of a pointer to the data.
14922 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
14923 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
14924 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
14925 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
14926 fold-const.c, gcse.c, ggc-common.c,
14927 gimple-ssa-strength-reduction.c, gimplify.c,
14928 graphite-clast-to-gimple.c, graphite-dependences.c,
14929 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
14930 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
14931 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
14932 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
14933 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
14934 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
14935 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
14936 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
14937 tree-ssa-live.c, tree-ssa-loop-im.c,
14938 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
14939 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
14940 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
14941 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
14942 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
14943 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
14944 vtable-verify.c, vtable-verify.h: Adjust.
14945
14946 2014-06-24 Richard Biener <rguenther@suse.de>
14947
14948 PR tree-optimization/61572
14949 * tree-ssa-sink.c (statement_sink_location): Do not sink
14950 loads from hard registers.
14951
14952 2014-06-24 Jakub Jelinek <jakub@redhat.com>
14953
14954 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
14955 not mentioned in clauses use private clause if the iterator is
14956 declared in #pragma omp for simd, and when adding lastprivate
14957 instead, add it to the outer #pragma omp for too. Diagnose
14958 if the variable is private in outer context. For simd collapse > 1
14959 loops, replace all iterators with temporaries.
14960 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
14961 same even in collapse > 1 loops.
14962
14963 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
14964 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
14965 non-NULL.
14966 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
14967 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
14968 non-NULL.
14969 (gimplify_adjust_omp_clauses): Likewise.
14970 * omp-low.c (lower_rec_simd_input_clauses,
14971 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
14972 safelen the same as safelen(1).
14973 * tree-nested.c (convert_nonlocal_omp_clauses,
14974 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
14975 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
14976 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
14977 Fixup handling of GIMPLE_OMP_TARGET.
14978 (convert_tramp_reference_stmt, convert_gimple_call): Handle
14979 GIMPLE_OMP_TARGET.
14980
14981 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
14982
14983 PR tree-optimization/61554
14984 * tree-ssa-propagate.c: Include "bitmap.h".
14985 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
14986 properly update constructor/destructor.
14987 (substitute_and_fold_dom_walker::before_dom_children):
14988 Remove call to gimple_purge_dead_eh_edges, add bb->index to
14989 need_eh_cleaup instead.
14990 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
14991 need_eh_cleanup.
14992
14993 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
14994
14995 * varpool.c (dump_varpool_node): Dump used_by_single_function.
14996 * tree-pass.h (make_pass_ipa_single_use): New pass.
14997 * cgraph.h (used_by_single_function): New flag.
14998 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
14999 Stream it.
15000 * passes.def (pass_ipa_single_use): Scedule.
15001 * ipa.c (BOTTOM): New macro.
15002 (meet): New function
15003 (propagate_single_user): New function.
15004 (ipa_single_use): New function.
15005 (pass_data_ipa_single_use): New pass.
15006 (pass_ipa_single_use): New pass.
15007 (pass_ipa_single_use::gate): New gate.
15008 (make_pass_ipa_single_use): New function.
15009
15010 2014-06-23 Kai Tietz <ktietz@redhat.com>
15011
15012 PR target/39284
15013 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
15014 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
15015
15016 2014-06-23 Richard Biener <rguenther@suse.de>
15017
15018 * tree-ssa-loop.c (gate_loop): New function.
15019 (pass_tree_loop::gate): Call it.
15020 (pass_data_tree_no_loop, pass_tree_no_loop,
15021 make_pass_tree_no_loop): New.
15022 * tree-vectorizer.c: Include tree-scalar-evolution.c
15023 (pass_slp_vectorize::execute): Initialize loops and SCEV if
15024 required.
15025 (pass_slp_vectorize::clone): New method.
15026 * timevar.def (TV_TREE_NOLOOP): New.
15027 * tree-pass.h (make_pass_tree_no_loop): Declare.
15028 * passes.def (pass_tree_no_loop): New pass group with
15029 SLP vectorizer.
15030
15031 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
15032
15033 PR target/61570
15034 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
15035 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
15036
15037 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
15038
15039 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
15040 "yes" where needed.
15041
15042 2014-06-23 Alan Modra <amodra@gmail.com>
15043
15044 PR bootstrap/61583
15045 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
15046 to zero on debug statements.
15047
15048 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
15049
15050 PR target/60825
15051 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
15052 Ignore third operand if present by marking qualifier_internal.
15053
15054 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
15055
15056 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
15057 vector extension.
15058 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
15059 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
15060 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
15061 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
15062 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
15063 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
15064 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
15065 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
15066 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
15067 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
15068 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
15069 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
15070 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
15071 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
15072 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
15073 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
15074 logic in GCC vector extensions
15075
15076 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
15077 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
15078 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
15079 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
15080 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
15081 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
15082 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
15083 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
15084 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
15085 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
15086
15087 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
15088
15089 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
15090 extensions.
15091
15092 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
15093 (vget_low_s64): Use __GET_LOW macro.
15094 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
15095 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
15096 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
15097 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
15098 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
15099
15100 (vcombine_s64): Use GCC vector extensions; remove cast.
15101 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
15102 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
15103 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
15104 Fix type signature; remove cast.
15105
15106 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
15107
15108 PR target/60825
15109 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
15110 V1DFmode.
15111 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
15112 add V1DFmode
15113 (BUILTIN_VD1): New.
15114 (BUILTIN_VD_RE): Remove.
15115 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
15116 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
15117 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
15118 variant but not df.
15119 (vreinterpretv1df*, vreinterpret*v1df): New.
15120 (vreinterpretdf*, vreinterpret*df): Remove.
15121 * config/aarch64/aarch64-simd.md (aarch64_create,
15122 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
15123 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
15124 (VD1): New.
15125 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
15126 (vcreate_f64): Remove cast, use v1df builtin.
15127 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
15128 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
15129 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
15130 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
15131 vmov_n_f64, vst1_f64): Use gcc vector extensions.
15132 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
15133 add range check using __builtin_aarch64_im_lane_boundsi.
15134 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
15135 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
15136 type signature, use gcc vector extensions.
15137 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
15138 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
15139 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
15140 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
15141 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
15142 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
15143 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
15144 vreinterpret_u64_f64): Use v1df builtin not df.
15145
15146 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
15147
15148 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
15149 vector registers.
15150
15151 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
15152
15153 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
15154 priority directly.
15155
15156 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15157
15158 * loop-invariant.c (pre_check_invariant_p): New function.
15159 (find_invariant_insn): Call pre_check_invariant_p.
15160
15161 2014-06-22 Richard Henderson <rth@redhat.com>
15162
15163 PR target/61565
15164 * compare-elim.c (struct comparison): Add eh_note.
15165 (find_comparison_dom_walker::before_dom_children): Don't eliminate
15166 a redundant comparison in a different EH region. Purge EH edges if
15167 necessary.
15168
15169 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15170
15171 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
15172 (var_shift): Use it.
15173 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
15174 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
15175 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
15176 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
15177 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
15178 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
15179 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
15180 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
15181 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
15182 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
15183 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
15184 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
15185 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
15186 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
15187 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
15188 *rotldi3_internal15be): Use the new attribute. Merge register and
15189 integer alternatives.
15190
15191 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15192
15193 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
15194 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
15195 split, *ashrdi3_internal3 and split): Delete, merge into...
15196 (ashr<mode>3): New expander.
15197 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
15198 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
15199
15200 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15201
15202 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
15203 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
15204 *rotldi3_internal3 and split): Delete, merge into...
15205 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
15206 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
15207 Use "rotlw" extended mnemonic.
15208
15209 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15210
15211 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
15212 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
15213 and split, *ashldi3_internal3 and split): Delete, merge into...
15214 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
15215 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
15216
15217 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15218
15219 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
15220 (lshrsi3, two anonymous define_insns and define_splits,
15221 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
15222 *lshrdi3_internal3 and split): Delete, merge into...
15223 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
15224 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
15225
15226 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15227
15228 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
15229 Remove "O" alternative.
15230
15231 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
15232
15233 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
15234 (mips_move_from_gpr_cost): Likewise.
15235 (mips_register_move_cost): Update accordingly.
15236 (mips_secondary_reload_class): Remove name of in_p.
15237
15238 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
15239
15240 PR target/61503
15241 * config/i386/i386.md (x86_64_shrd, x86_shrd,
15242 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
15243
15244 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15245
15246 * config/nios2/nios2.c: Include "builtins.h".
15247
15248 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
15249
15250 * cgraph.h (tls_model_names): New variable.
15251 * print-tree.c (print_node): Simplify.
15252 * varpool.c (tls_model_names): New variable.
15253 (dump_varpool_node): Output tls model.
15254
15255 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
15256
15257 * ipa-visibility.c (function_and_variable_visibility): Disable
15258 temporarily local aliases for some targets.
15259
15260 2014-06-20 Marek Polacek <polacek@redhat.com>
15261
15262 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
15263 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
15264 into SANITIZE_UNDEFINED.
15265 * doc/invoke.texi: Describe -fsanitize=bounds.
15266 * gimplify.c (gimplify_call_expr): Add gimplification of internal
15267 functions created in the FEs.
15268 * internal-fn.c: Move "internal-fn.h" after "tree.h".
15269 (expand_UBSAN_BOUNDS): New function.
15270 * internal-fn.def (UBSAN_BOUNDS): New internal function.
15271 * internal-fn.h: Don't define internal functions here.
15272 * opts.c (common_handle_option): Add -fsanitize=bounds.
15273 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
15274 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
15275 * tree-core.h: Define internal functions here.
15276 (struct tree_base): Add ifn field.
15277 * tree-pretty-print.c: Include "internal-fn.h".
15278 (dump_generic_node): Handle functions without CALL_EXPR_FN.
15279 * tree.c (get_callee_fndecl): Likewise.
15280 (build_call_expr_internal_loc): New function.
15281 * tree.def (CALL_EXPR): Update description.
15282 * tree.h (CALL_EXPR_IFN): Define.
15283 (build_call_expr_internal_loc): Declare.
15284 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
15285 types.
15286 (ubsan_type_descriptor): Change bool parameter to enum
15287 ubsan_print_style. Adjust the code. Add handling of
15288 UBSAN_PRINT_ARRAY.
15289 (ubsan_expand_bounds_ifn): New function.
15290 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
15291 (ubsan_build_overflow_builtin): Likewise.
15292 (instrument_bool_enum_load): Likewise.
15293 (ubsan_instrument_float_cast): Likewise.
15294 * ubsan.h (enum ubsan_print_style): New enum.
15295 (ubsan_expand_bounds_ifn): Declare.
15296 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
15297
15298 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
15299
15300 * config/rs6000/rs6000.md: Append `DONE' to preparation
15301 statements of `bswap' pattern splitters.
15302
15303 2014-06-20 Tom de Vries <tom@codesourcery.com>
15304
15305 * target.def (call_fusage_contains_non_callee_clobbers): Update
15306 definition.
15307 * doc/tm.texi: Regenerate.
15308
15309 2014-06-20 Yury Gribov <y.gribov@samsung.com>
15310 Max Ostapenko <m.ostapenko@partner.samsung.com>
15311
15312 PR sanitizer/61547
15313 * asan.c (instrument_strlen_call): Fixed instrumentation of
15314 trailing byte.
15315
15316 2014-06-20 Martin Jambor <mjambor@suse.cz>
15317
15318 PR ipa/61540
15319 * ipa-prop.c (impossible_devirt_target): New function.
15320 (try_make_edge_direct_virtual_call): Use it, also instead of
15321 asserting.
15322
15323 2014-06-20 Yury Gribov <y.gribov@samsung.com>
15324 Max Ostapenko <m.ostapenko@partner.samsung.com>
15325
15326 PR sanitizer/61530
15327 * asan.c (build_check_stmt): Add condition.
15328
15329 2014-06-20 Martin Jambor <mjambor@suse.cz>
15330
15331 PR ipa/61211
15332 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
15333 expanded clones.
15334
15335 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15336
15337 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
15338 Update comments.
15339 (VCONQ): Make comment more helpful.
15340 (VCON): Delete.
15341 * config/aarch64/aarch64-simd.md
15342 (aarch64_sqdmulh_lane<mode>):
15343 Use VCOND for operands 2. Update lane checking and flipping logic.
15344 (aarch64_sqrdmulh_lane<mode>): Likewise.
15345 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
15346 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
15347 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
15348 attribute of operand 3 to VCOND.
15349 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
15350 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
15351 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
15352 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
15353 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
15354 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
15355 define_insn.
15356 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
15357 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
15358 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
15359 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
15360 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
15361 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
15362 operand to VCOND. Update lane flipping and bounds checking logic.
15363 (aarch64_sqdmlal2_lane<mode>): Likewise.
15364 (aarch64_sqdmlsl_lane<mode>): Likewise.
15365 (aarch64_sqdmull_lane<mode>): Likewise.
15366 (aarch64_sqdmull2_lane<mode>): Likewise.
15367 (aarch64_sqdmlal_laneq<mode>):
15368 Replace VCON usage with VCONQ.
15369 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
15370 (aarch64_sqdmlal2_laneq<mode>): Emit
15371 aarch64_sqdmlal2_laneq<mode>_internal insn.
15372 Replace VCON with VCONQ.
15373 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
15374 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
15375 (aarch64_sqdmull_laneq<mode>): Emit
15376 aarch64_sqdmull_laneq<mode>_internal insn.
15377 Replace VCON with VCONQ.
15378 (aarch64_sqdmull2_laneq<mode>): Emit
15379 aarch64_sqdmull2_laneq<mode>_internal insn.
15380 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
15381 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
15382 of 3rd argument to int16x4_t.
15383 (vqdmlalh_lane_s16): Likewise.
15384 (vqdmlslh_lane_s16): Likewise.
15385 (vqdmull_high_lane_s16): Likewise.
15386 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
15387 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
15388 (vqdmlsl_lane_s16): Likewise.
15389 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
15390 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
15391 (vqdmlals_lane_s32): Likewise.
15392 (vqdmlsls_lane_s32): Likewise.
15393 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
15394 (vqdmulls_lane_s32): Likewise.
15395 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
15396 (vqdmlsl_lane_s32): Likewise.
15397 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
15398 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
15399 (vqrdmulhh_lane_s16): Likewise.
15400 (vqdmlsl_high_lane_s16): Likewise.
15401 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
15402 (vqdmlsl_high_lane_s32): Likewise.
15403 (vqrdmulhs_lane_s32): Likewise.
15404
15405 2014-06-20 Tom de Vries <tom@codesourcery.com>
15406
15407 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
15408 get_call_reg_set_usage.
15409
15410 2014-06-20 Tom de Vries <tom@codesourcery.com>
15411
15412 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
15413 it contains all call_used_regs.
15414
15415 2014-06-20 Tom de Vries <tom@codesourcery.com>
15416
15417 * final.c (collect_fn_hard_reg_usage): Add and use variable
15418 function_used_regs.
15419
15420 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
15421
15422 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
15423 (set_init_priority, get_init_priority, set_fini_priority,
15424 get_fini_priority): New methods.
15425 * tree.c (init_priority_for_decl): Remove.
15426 (init_ttree): Do not initialize init priority.
15427 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
15428 (decl_priority_info): Remove.
15429 (decl_init_priority_insert): Rewrite.
15430 (decl_fini_priority_insert): Rewrite.
15431 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
15432 tree_priority_map_marked_p): Remove.
15433 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
15434 * lto-streamer-out.c (hash_tree): Do not hash priorities.
15435 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
15436 not output priorities.
15437 (pack_ts_function_decl_value_fields): Likewise.
15438 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
15439 not input priorities.
15440 (unpack_ts_function_decl_value_fields): Likewise.
15441 * symtab.c (symbol_priority_map): Declare.
15442 (init_priority_hash): Declare.
15443 (symtab_unregister_node): Unregister from priority hash, too.
15444 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
15445 New methods.
15446 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
15447 (symbol_priority_info): New function.
15448 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
15449 New methods.
15450 * tree-core.h (tree_priority_map): Remove.
15451
15452 2014-06-20 Jakub Jelinek <jakub@redhat.com>
15453
15454 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
15455 0xff to uint64_t before shifting it up.
15456
15457 2014-06-20 Julian Brown <julian@codesourcery.com>
15458 Chung-Lin Tang <cltang@codesourcery.com>
15459
15460 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
15461 TARGET_THUMB1_ONLY. Add comments.
15462
15463 2014-06-19 Tom de Vries <tom@codesourcery.com>
15464
15465 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
15466 return type to void.
15467 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
15468
15469 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15470
15471 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
15472 as "move", from depends_on.
15473
15474 2014-06-19 Terry Guo <terry.guo@arm.com>
15475
15476 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
15477 stage.
15478
15479 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
15480
15481 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
15482 Remove cr5.
15483 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
15484
15485 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
15486
15487 PR target/61550
15488 * config/sh/sh.c (prepare_move_operands): Don't process TLS
15489 addresses here if reload in progress or completed.
15490
15491 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
15492
15493 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
15494 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
15495 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
15496 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
15497 (mips_register_priority): New function that implements the target
15498 hook TARGET_REGISTER_PRIORITY.
15499 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
15500 (mips_lra_p): Likewise for TARGET_LRA_P.
15501 (TARGET_REGISTER_PRIORITY): Define macro.
15502 (TARGET_SPILL_CLASS): Likewise.
15503 (TARGET_LRA_P): Likewise.
15504 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
15505 classes.
15506 (REG_CLASS_NAMES): Likewise.
15507 (REG_CLASS_CONTENTS): Likewise.
15508 (BASE_REG_CLASS): Use M16_SP_REGS.
15509 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
15510 New set attribute to enable alternatives depending on the register
15511 allocator used.
15512 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
15513 (*lea64): Disable pattern for MIPS16.
15514 * config/mips/mips.opt (mlra): New option.
15515
15516 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
15517
15518 * lra-constraints.c (base_to_reg): New function.
15519 (process_address): Use new function.
15520
15521 2014-06-18 Tom de Vries <tom@codesourcery.com>
15522
15523 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
15524 * config/aarch64/aarch64.c
15525 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
15526 (aarch64_emit_call_insn): New function.
15527 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
15528 of emit_call_insn.
15529 * config/aarch64/aarch64.md (define_expand "call_internal")
15530 (define_expand "call_value_internal", define_expand "sibcall_internal")
15531 (define_expand "sibcall_value_internal"): New.
15532 (define_expand "call", define_expand "call_value")
15533 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
15534 expand variant and aarch64_emit_call_insn.
15535
15536 2014-06-18 Radovan Obradovic <robradovic@mips.com>
15537 Tom de Vries <tom@codesourcery.com>
15538
15539 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
15540 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
15541 Redefine to true.
15542 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
15543 clobbers to CALL_INSN_FUNCTION_USAGE.
15544 (define_expand "sibcall_internal")
15545 (define_expand "sibcall_value_internal"): New.
15546 (define_expand "call", define_expand "call_value"): Add argument to
15547 arm_emit_call_insn.
15548 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
15549 (define_expand "sibcall_value"): Use sibcall_value_internal and
15550 arm_emit_call_insn.
15551
15552 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15553
15554 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
15555
15556 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15557
15558 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
15559 __udivmoddi4.
15560
15561 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15562
15563 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
15564 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
15565 annotations. Fix DWARF information.
15566
15567 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15568
15569 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
15570 __udivmoddi4, and fixups for negative operands.
15571
15572 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15573
15574 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
15575
15576 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15577
15578 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
15579 to __udivmoddi4.
15580
15581 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15582
15583 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
15584 manipulation.
15585
15586 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15587
15588 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
15589 describing register usage on function entry and exit.
15590
15591 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15592
15593 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
15594 (__aeabi_ldivmod): Fix whitespace.
15595
15596 2014-06-18 Andreas Schwab <schwab@suse.de>
15597
15598 * doc/md.texi (Standard Names): Use @itemx for grouped items.
15599 Remove blank line after @item.
15600
15601 2014-06-18 Richard Henderson <rth@redhat.com>
15602
15603 PR target/61545
15604 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
15605
15606 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15607
15608 * config/arm/arm.c (neon_vector_mem_operand): Allow register
15609 POST_MODIFY for neon loads and stores.
15610 (arm_print_operand): Output post-index register for neon loads and
15611 stores.
15612
15613 2014-06-18 Richard Biener <rguenther@suse.de>
15614
15615 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
15616
15617 2014-06-18 Richard Biener <rguenther@suse.de>
15618
15619 * tree-pass.h (make_pass_dce_loop): Remove.
15620 * passes.def: Replace pass_dce_loop with pass_dce.
15621 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
15622 changed free niter estimates and reset the scev cache.
15623 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
15624 make_pass_dce_loop): Remove.
15625 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
15626 (fini_copy_prop): Return whether something changed. Always
15627 let substitute_and_fold perform DCE and free niter estimates
15628 and reset the scev cache if so.
15629 (execute_copy_prop): If sth changed schedule cleanup-cfg.
15630 (pass_data_copy_prop): Do not unconditionally schedule
15631 cleanup-cfg or update-ssa.
15632
15633 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
15634
15635 PR tree-optimization/61518
15636 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
15637 reduction var is used in reduction stmt or phi-function only.
15638
15639 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15640
15641 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
15642
15643 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
15644
15645 PR tree-optimization/61517
15646 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
15647 whose rhs's first tree is the source expression instead of the
15648 expression itself.
15649 (find_bswap_or_nop): Likewise.
15650 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
15651 gimple stmt whose rhs's first tree is the source. In the memory source
15652 case, move the stmt to be replaced close to one of the original load to
15653 avoid the problem of a store between the load and the stmt's original
15654 location.
15655 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
15656 signature.
15657
15658 2014-06-18 Andreas Schwab <schwab@suse.de>
15659
15660 PR rtl-optimization/54555
15661 * postreload.c (move2add_use_add2_insn): Substitute
15662 STRICT_LOW_PART only if it is cheaper.
15663
15664 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
15665
15666 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
15667 Do not use unspec as call operand. Use memory_operand instead of
15668 memory_nox32_operand and add "m" operand constraint. Disable
15669 pattern for TARGET_X32.
15670 (*sibcall_pop_memory): Ditto.
15671 (*sibcall_value_memory): Ditto.
15672 (*sibcall_value_pop_memory): Ditto.
15673 (sibcall peepholes): Merge SImode and DImode patterns using
15674 W mode iterator. Use memory_operand instead of memory_nox32_operand.
15675 Disable pattern for TARGET_X32. Check if eliminated register is
15676 really dead after call insn. Generate call RTX without unspec operand.
15677 (sibcall_value peepholes): Ditto.
15678 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
15679 instead of memory_nox32_operand. Check if eliminated register is
15680 really dead after call insn. Generate call RTX without unspec operand.
15681 (sibcall_value_pop peepholes): Ditto.
15682 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
15683
15684 2014-06-18 Terry Guo <terry.guo@arm.com>
15685
15686 PR target/61544
15687 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
15688 reach the head.
15689
15690 2014-06-18 Olivier Hainque <hainque@adacore.com>
15691
15692 * tree-core.h (tree_block): Add an "end_locus" field, allowing
15693 memorization of the end of block source location.
15694 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
15695 * gimplify.c (gimplify_bind_expr): Propagate the block start and
15696 end source location info we have on the block entry/exit code we
15697 generate.
15698
15699 2014-06-18 Richard Biener <rguenther@suse.de>
15700
15701 * common.opt (fssa-phiopt): New option.
15702 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
15703 but not with -Og.
15704 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
15705 * doc/invoke.texi (-fssa-phiopt): Document.
15706
15707 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15708
15709 * genattrtab.c (n_bypassed): New variable.
15710 (process_bypasses): Initialise n_bypassed.
15711 Count number of bypassed reservations.
15712 (make_automaton_attrs): Allocate space for bypassed reservations
15713 rather than number of bypasses.
15714
15715 2014-06-18 Richard Biener <rguenther@suse.de>
15716
15717 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
15718 we propagated anything.
15719 (substitute_and_fold_dom_walker::before_dom_children): Something
15720 changed if we propagated into PHI arguments.
15721 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
15722 we removed a stmt.
15723
15724 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
15725
15726 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
15727 vector case.
15728 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
15729 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
15730 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
15731 Introduces alternative way of loads group permutaions.
15732 (vect_transform_grouped_load): Try alternative way of permutations.
15733
15734 2014-06-18 Jakub Jelinek <jakub@redhat.com>
15735
15736 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
15737 changed in ORT_TARGET region, don't jump to do_outer.
15738 (struct gimplify_adjust_omp_clauses_data): New type.
15739 (gimplify_adjust_omp_clauses_1): Adjust for data being
15740 a struct gimplify_adjust_omp_clauses_data pointer instead
15741 of tree *. Pass pre_p as a new argument to
15742 lang_hooks.decls.omp_finish_clause hook.
15743 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
15744 splay_tree_foreach to pass both list_p and pre_p.
15745 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
15746 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
15747 gimplify_adjust_omp_clauses callers.
15748 * langhooks.c (lhd_omp_finish_clause): New function.
15749 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
15750 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
15751 * langhooks.h (struct lang_hooks_for_decls): Add a new
15752 gimple_seq * argument to omp_finish_clause hook.
15753 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
15754 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
15755 (scan_omp_parallel, lower_omp_for): When adding
15756 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
15757 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
15758 * tree-nested.c (convert_nonlocal_omp_clauses,
15759 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
15760 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
15761
15762 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
15763
15764 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
15765 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
15766
15767 2014-06-17 Xinliang David Li <davidxl@google.com>
15768
15769 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
15770 * passes.c (pass_init_dump_file): Do not set initialize
15771 flag to false unconditionally.
15772
15773 2014-06-17 Richard Biener <rguenther@suse.de>
15774
15775 * genopinit.c (main): Use vec<>::qsort method.
15776 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
15777 Likewise.
15778 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
15779
15780 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
15781
15782 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
15783 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
15784 (mips_move_to_gpr_cost): Remove ST_REGS case.
15785 (mips_move_from_gpr_cost): Likewise.
15786 (mips_register_move_cost): Likewise.
15787 (mips_secondary_reload_class): Likewise.
15788
15789 2014-06-17 Richard Biener <rguenther@suse.de>
15790
15791 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
15792 (pass_all_optimizations): Move 3rd copy-prop pass from after
15793 fre to before ifcombine/phiopt.
15794
15795 2014-06-17 Richard Biener <rguenther@suse.de>
15796
15797 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
15798 and allow all blocks to be forwarders.
15799
15800 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
15801
15802 PR target/61483
15803 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
15804 variable 'size'; calculate 'size' right in the front; use
15805 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
15806 pcum->aapcs_stack_words.
15807
15808 2014-06-17 Nick Clifton <nickc@redhat.com>
15809
15810 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
15811 (umulhi3, mulsidi3, umulsidi3): Likewise.
15812
15813 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
15814
15815 PR middle-end/61508
15816 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
15817 check for section name.
15818
15819 2014-06-17 Richard Biener <rguenther@suse.de>
15820
15821 * tree-ssa-propagate.c: Include domwalk.h.
15822 (substitute_and_fold): Outline main worker into a domwalker ...
15823 (substitute_and_fold_dom_walker::before_dom_children): ... here.
15824 Schedule stmts we can fully propagate for removal. Remove
15825 poor-mans DCE.
15826 (substitute_and_fold): Apply a dominator walk to perform
15827 substitution. Process stmts scheduled for removal here.
15828
15829 2014-06-17 Richard Biener <rguenther@suse.de>
15830
15831 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
15832 of PHI node moving.
15833
15834 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
15835
15836 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
15837 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
15838 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
15839 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
15840 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
15841 TARGET_HARD_FLOAT.
15842 (get_fpscr) : Likewise.
15843
15844 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
15845
15846 PR rtl-optimization/61325
15847 * lra-constraints.c (valid_address_p): Add forward declaration.
15848 (simplify_operand_subreg): Check address validity before and after
15849 alter_reg of memory subreg.
15850
15851 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
15852
15853 * config/i386/i386.c (decide_alg): Correctly handle
15854 maximum size of stringop algorithm.
15855
15856 2014-06-16 Yury Gribov <y.gribov@samsung.com>
15857
15858 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
15859
15860 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
15861
15862 PR rtl-optimization/61522
15863 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
15864
15865 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
15866
15867 Revert:
15868 * symtab.c (symtab_node::reset_section): New method.
15869 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
15870 for localization.
15871 * cgraph.h (reset_section): Declare.
15872 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
15873 do not consider comdat locals.
15874 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
15875 for new symbol.
15876 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
15877 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
15878 reset sections of symbols dragged out of the comdats.
15879 (function_and_variable_visibility): Reset sections of
15880 localized symbols.
15881
15882 2014-06-16 Richard Biener <rguenther@suse.de>
15883
15884 PR tree-optimization/61482
15885 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
15886 [-INF(OVF), +INF(OVF)] range.
15887
15888 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
15889
15890 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
15891 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
15892 handling 32-bit multiplication.
15893
15894 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
15895
15896 PR middle-end/61430
15897 * lra-lives.c (process_bb_lives): Skip creating copy during
15898 insn scan when src/dest has constrained to same regno.
15899
15900 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
15901
15902 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
15903 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
15904
15905 2014-06-16 Yury Gribov <y.gribov@samsung.com>
15906
15907 * asan.c (check_func): New function.
15908 (maybe_create_ssa_name): Likewise.
15909 (build_check_stmt_with_calls): Likewise.
15910 (use_calls_p): Likewise.
15911 (report_error_func): Change interface.
15912 (build_check_stmt): Allow non-integer lengths; add support
15913 for new parameter.
15914 (asan_instrument): Likewise.
15915 (instrument_mem_region_access): Moved code to build_check_stmt.
15916 (instrument_derefs): Likewise.
15917 (instrument_strlen_call): Likewise.
15918 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
15919 * doc/invoke.texi: Describe new parameter.
15920 * params.def: Define new parameter.
15921 * params.h: Likewise.
15922 * sanitizer.def: Describe new builtins.
15923
15924 2014-06-16 Richard Biener <rguenther@suse.de>
15925
15926 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15927 Make all defs available at the end.
15928 (eliminate): If we remove a PHI node schedule cfg-cleanup.
15929
15930 2014-06-18 Jakub Jelinek <jakub@redhat.com>
15931
15932 PR plugins/45078
15933 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
15934
15935 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
15936
15937 PR bootstrap/61516
15938 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
15939 initialization. Replace remaining use of uid.
15940
15941 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
15942
15943 * c-family/c-common.c (handle_tls_model_attribute): Use
15944 set_decl_tls_model.
15945 * c-family/c-common.c (handle_tls_model_attribute): Use
15946 set_decl_tls_model.
15947 * cgraph.h (struct varpool_node): Add tls_model.
15948 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
15949 * tree.h (DECL_TLS_MODEL): Update.
15950 (DECL_THREAD_LOCAL_P): Check that variable is static.
15951 (decl_tls_model): Declare.
15952 (set_decl_tls_model): Declare.
15953 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
15954 set symbol prorperties.
15955 (get_emutls_init_templ_addr): Cleanup.
15956 (new_emutls_decl): Update.
15957 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
15958 (lto_input_varpool_node): Likewise.
15959 * lto-streamer-out.c (hash_tree): Likewise.
15960 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
15961 not stream DECL_TLS_MODEL.
15962 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
15963 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
15964
15965 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15966
15967 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
15968
15969 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15970
15971 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
15972 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
15973 lists.
15974 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
15975 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
15976 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
15977 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
15978 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
15979 (df_get_artificial_defs, df_get_artificial_uses)
15980 (df_single_def, df_single_use): Update accordingly.
15981 (df_refs_chain_dump): Take the first element in a linked list as
15982 parameter, rather than a pointer to an array of pointers.
15983 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
15984 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
15985 (df_chain_create_bb_process_use): Likewise.
15986 (df_md_bb_local_compute_process_def): Likewise.
15987 * fwprop.c (process_defs, process_uses): Likewise.
15988 (register_active_defs, update_uses): Likewise.
15989 (forward_propagate_asm): Update for new df_ref linking.
15990 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
15991 (df_null_ref_rec, df_null_mw_rec): Likewise.
15992 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
15993 explicitly.
15994 (df_scan_free_bb_info): Remove check for null artificial_defs.
15995 (df_install_ref_incremental): Adjust for new df_ref linking.
15996 Use a single-element insertion rather than a full sort.
15997 (df_ref_chain_delete_du_chain): Take the first element
15998 in a linked list as parameter, rather than a pointer to an array of
15999 pointers.
16000 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
16001 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
16002 (df_insn_info_delete): Remove check for null defs and call to
16003 df_scan_free_mws_vec.
16004 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
16005 null rather than df_null_*_rec.
16006 (df_insn_rescan_debug_internal): Likewise, and update null
16007 checks in the same way. Remove check for null defs.
16008 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
16009 Move a single element rather doing a full sort.
16010 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
16011 linking.
16012 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
16013 Initialize df_ref and df_mw_hardreg lists to null rather than
16014 df_null_*_rec.
16015 (df_ref_compare): Take df_refs as parameter, transferring the
16016 old interface to...
16017 (df_ref_ptr_compare): ...this new function.
16018 (df_sort_and_compress_refs): Update accordingly.
16019 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
16020 old interface to...
16021 (df_mw_ptr_compare): ...this new function.
16022 (df_sort_and_compress_mws): Update accordingly.
16023 (df_install_refs, df_install_mws): Return a linked list rather than
16024 an array of pointers.
16025 (df_refs_add_to_chains): Assert that old lists are empty rather
16026 than freeing them.
16027 (df_insn_refs_verify): Don't handle null defs speciailly.
16028 * web.c (union_match_dups): Update for new df_ref linking.
16029
16030 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16031
16032 * df.h (df_ref_create, df_ref_remove): Delete.
16033 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
16034 (df_ref_remove): Likewise.
16035
16036 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16037
16038 * df.h (df_single_def, df_single_use): New functions.
16039 * ira.c (find_moveable_pseudos): Use them.
16040
16041 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16042
16043 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
16044 * df-problems.c (df_note_bb_compute): Use it.
16045 * regstat.c (regstat_bb_compute_ri): Likewise.
16046
16047 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16048
16049 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
16050 * cse.c (cse_extended_basic_block): Use them.
16051 * dce.c (mark_artificial_use): Likewise.
16052 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
16053 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
16054 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
16055 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
16056 (df_simulate_initialize_backwards): Likewise.
16057 (df_simulate_finalize_backwards): Likewise.
16058 (df_simulate_initialize_forwards): Likewise.
16059 (df_md_simulate_artificial_defs_at_top): Likewise.
16060 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
16061 * regrename.c (init_rename_info): Likewise.
16062 * regstat.c (regstat_bb_compute_ri): Likewise.
16063 (regstat_bb_compute_calls_crossed): Likewise.
16064
16065 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16066
16067 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
16068 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
16069 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
16070 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
16071 * combine.c (create_log_links): Likewise.
16072 * compare-elim.c (find_flags_uses_in_insn): Likewise.
16073 (try_eliminate_compare): Likewise.
16074 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
16075 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
16076 (remove_reg_equal_equiv_notes_for_defs): Likewise.
16077 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
16078 (word_dce_process_block, dce_process_block): Likewise.
16079 * ddg.c (def_has_ccmode_p): Likewise.
16080 * df-core.c (df_bb_regno_first_def_find): Likewise.
16081 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
16082 * df-problems.c (df_rd_simulate_one_insn): Likewise.
16083 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
16084 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
16085 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
16086 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
16087 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
16088 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
16089 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
16090 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
16091 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
16092 * fwprop.c (local_ref_killed_between_p): Likewise.
16093 (all_uses_available_at, free_load_extend): Likewise.
16094 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
16095 * hw-doloop.c (scan_loop): Likewise.
16096 * ifcvt.c (dead_or_predicable): Likewise.
16097 * init-regs.c (initialize_uninitialized_regs): Likewise.
16098 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
16099 (process_bb_node_lives): Likewise.
16100 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
16101 (find_moveable_pseudos): Likewise.
16102 * loop-invariant.c (check_dependencies, record_uses): Likewise.
16103 * recog.c (peep2_find_free_register): Likewise.
16104 * ree.c (get_defs): Likewise.
16105 * regstat.c (regstat_bb_compute_ri): Likewise.
16106 (regstat_bb_compute_calls_crossed): Likewise.
16107 * sched-deps.c (find_inc, find_mem): Likewise.
16108 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
16109 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
16110 * shrink-wrap.c (requires_stack_frame_p): Likewise.
16111 (prepare_shrink_wrap): Likewise.
16112 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
16113 * web.c (union_defs, pass_web::execute): Likewise.
16114 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
16115 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
16116
16117 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
16118
16119 * lra-assign.c (assign_by_spills): Add code to assign vector regs
16120 to inheritance pseudos.
16121 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
16122
16123 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
16124
16125 PR target/61415
16126 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
16127 (BU_MISC_2): Rename to ...
16128 (BU_LDBL128_2): ... this.
16129 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
16130 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
16131 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
16132 RS6000_BTM_LDBL128.
16133 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
16134 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
16135 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
16136 (unpacktf_1): Likewise.
16137 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
16138 (__builtin_longdouble_dw1): Likewise.
16139 * doc/sourcebuild.texi (longdouble128): Document.
16140
16141 2014-06-13 Jeff Law <law@redhat.com>
16142
16143 PR rtl-optimization/61094
16144 PR rtl-optimization/61446
16145 * ree.c (combine_reaching_defs): Get the mode for the copy from
16146 the extension insn rather than the defining insn.
16147
16148 2014-06-13 Dehao Chen <dehao@google.com>
16149
16150 * dwarf2out.c (add_linkage_name): Emit more linkage name.
16151
16152 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
16153
16154 * doc/install.texi (--enable-linker-plugin-configure-flags)
16155 (--enable-linker-plugin-flags): Document new flags.
16156
16157 2014-06-13 Martin Jambor <mjambor@suse.cz>
16158
16159 PR ipa/61186
16160 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
16161 cache_token if returning early.
16162
16163 2014-06-13 Nick Clifton <nickc@redhat.com>
16164
16165 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
16166 requested alignment is active.
16167 (LABEL_ALIGN): Likewise.
16168 (LOOP_ALIGN): Likewise.
16169
16170 2014-06-13 Richard Biener <rguenther@suse.de>
16171
16172 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16173 Rewrite to propagate the VN result into all uses where
16174 possible and to remove stmts becoming dead because of that.
16175 (eliminate): Generalize stmt removal handling, remove in
16176 reverse dominator order to support proper debug stmt
16177 generation. Update stmts before removing stmts.
16178 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
16179
16180 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
16181
16182 PR tree-optimization/61375
16183 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
16184 symbolic number cannot be represented in an uint64_t.
16185 (find_bswap_or_nop_1): Likewise.
16186
16187 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
16188
16189 * symtab.c (symtab_node::reset_section): New method.
16190 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
16191 for localization.
16192 * cgraph.h (reset_section): Declare.
16193 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
16194 do not consider comdat locals.
16195 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
16196 for new symbol.
16197 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
16198 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
16199 reset sections of symbols dragged out of the comdats.
16200 (function_and_variable_visibility): Reset sections of
16201 localized symbols.
16202
16203 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
16204
16205 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
16206 to use symtab and decl_binds_to_current_def_p
16207 * tree-vectorizer.c (increase_alignment): Increase alignment
16208 of alias target, too.
16209
16210 2014-06-12 Jakub Jelinek <jakub@redhat.com>
16211
16212 PR middle-end/61486
16213 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
16214 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
16215 if outer combined construct is distribute.
16216 (gimplify_omp_for): For OMP_DISTRIBUTE set
16217 gimplify_omp_ctxp->distribute.
16218 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
16219 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
16220 mapping into decl map.
16221
16222 2014-06-12 Jason Merrill <jason@redhat.com>
16223
16224 * common.opt (fabi-version): Change default to 0.
16225
16226 2014-06-12 Jason Merrill <jason@redhat.com>
16227
16228 * toplev.c (process_options): Reject -fabi-version=1.
16229
16230 2014-06-12 Jeff Law <law@redhat.com>
16231
16232 PR tree-optimization/61009
16233 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
16234 value when we stop processing a block due to problematic PHIs.
16235
16236 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
16237
16238 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
16239 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
16240 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
16241 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
16242 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
16243 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
16244 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
16245 are not in the spec.
16246
16247 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
16248
16249 PR target/59843
16250 * config/aarch64/aarch64-modes.def: Add V1DFmode.
16251 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
16252 Support V1DFmode.
16253
16254 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
16255
16256 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
16257
16258 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
16259
16260 PR target/61443
16261 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
16262 loading from address spaces.
16263
16264 2014-06-12 Martin Liska <mliska@suse.cz>
16265
16266 PR ipa/61462
16267 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
16268 statement is reachable.
16269
16270 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
16271
16272 * symtab.c (section_hash): New hash.
16273 (symtab_unregister_node): Clear section before freeing.
16274 (hash_section_hash_entry): New haser.
16275 (eq_sections): New function.
16276 (symtab_node::set_section_for_node): New method.
16277 (set_section_1): Update.
16278 (symtab_node::set_section): Take string instead of tree as parameter.
16279 (symtab_resolve_alias): Update.
16280 * cgraph.h (section_hash_entry_d): New structure.
16281 (section_hash_entry): New typedef.
16282 (cgraph_node): Change comdat_group_ to x_comdat_group,
16283 change section_ to x_section and turn into section_hash_entry;
16284 update accestors; put set_section_for_node offline.
16285 * tree.c (decl_section_name): Turn into string.
16286 (set_decl_section_name): Change parameter to be string.
16287 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
16288 * sdbout.c (sdbout_one_type): Update.
16289 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
16290 * varasm.c (IN_NAMED_SECTION, get_named_section,
16291 resolve_unique_section, hot_function_section, get_named_text_section,
16292 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
16293 make_decl_rtl, default_unique_section): Update.
16294 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
16295 (c6x_elf_unique_section): Update.
16296 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
16297 * config/pa/pa.c (pa_function_section): Update.
16298 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
16299 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
16300 * config/arc/arc.c (arc_in_small_data_p): Update.
16301 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
16302 * config/mcore/mcore.c (mcore_unique_section): Update.
16303 * config/mips/mips.c (mips16_build_function_stub): Update.
16304 (mips16_build_call_stub): Update.
16305 (mips_function_rodata_section): Update.
16306 (mips_in_small_data_p): Update.
16307 * config/score/score.c (score_in_small_data_p): Update.
16308 * config/rx/rx.c (rx_in_small_data): Update.
16309 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
16310 (rs6000_xcoff_asm_named_section): Update.
16311 (rs6000_xcoff_unique_section): Update.
16312 * config/frv/frv.c (frv_string_begins_with): Update.
16313 (frv_in_small_data_p): Update.
16314 * config/v850/v850.c (v850_encode_data_area): Update.
16315 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
16316 (bfin_handle_l1_data_attribute): Update.
16317 (bfin_handle_l2_attribute): Update.
16318 * config/mep/mep.c (mep_unique_section): Update.
16319 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
16320 Update.
16321 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
16322 (h8300_handle_tiny_data_attribute): Update.
16323 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
16324 (m32r_in_small_data_p): Update.
16325 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
16326 * config/i386/i386.c (ix86_in_large_data_p): Update.
16327 * config/i386/winnt.c (i386_pe_unique_section): Update.
16328 * config/darwin.c (darwin_function_section): Update.
16329 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
16330 * tree-emutls.c (get_emutls_init_templ_addr): Update.
16331 (new_emutls_decl): Update.
16332 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
16333 input_varpool_node): Update.
16334 (ead_string_cst): Turn to ...
16335 (read_string): ... this one.
16336 * dwarf2out.c (secname_for_decl): Update.
16337 * asan.c (asan_protect_global): Update.
16338
16339 2014-06-11 DJ Delorie <dj@redhat.com>
16340
16341 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
16342 cache lines.
16343 * config/rx/rx.c (rx_option_override): Likewise.
16344 (rx_align_for_label): Likewise.
16345
16346 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
16347
16348 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
16349
16350 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
16351 prototype.
16352
16353 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16354
16355 * common.md: New file.
16356 * doc/md.texi: Update description of generic, machine-independent
16357 constraints.
16358 * config/s390/constraints.md (e): Delete.
16359 * Makefile.in (md_file): Include common.md.
16360 * config/m32c/t-m32c (md_file): Likewise.
16361 * genpreds.c (general_mem): New array.
16362 (generic_constraint_letters): Remove constraints now defined by
16363 common.md.
16364 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
16365 Allow the first character to be '<' or '>' as well.
16366 * genoutput.c (general_mem): New array.
16367 (indep_constraints): Remove constraints now defined by common.md.
16368 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
16369 Remove special handling of 'm'.
16370 * ira-costs.c (record_reg_classes): Remove special handling of
16371 constraints now defined by common.md.
16372 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
16373 * ira-lives.c (single_reg_class): Likewise.
16374 (ira_implicitly_set_insn_hard_regs): Likewise.
16375 * lra-constraints.c (reg_class_from_constraints): Likewise.
16376 (process_alt_operands, process_address, curr_insn_transform): Likewise.
16377 * postreload.c (reload_cse_simplify_operands): Likewise.
16378 * reload.c (push_secondary_reload, scratch_reload_class)
16379 (find_reloads, alternative_allows_const_pool_ref): Likewise.
16380 * reload1.c (maybe_fix_stack_asms): Likewise.
16381 * targhooks.c (default_secondary_reload): Likewise.
16382 * stmt.c (parse_output_constraint): Likewise.
16383 * recog.c (preprocess_constraints): Likewise.
16384 (constrain_operands, peep2_find_free_register): Likewise.
16385 (asm_operand_ok): Likewise, but add a comment saying why 'o'
16386 must be handled specially.
16387
16388 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16389
16390 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
16391 * genpreds.c (have_const_dbl_constraints): Delete.
16392 (add_constraint): Don't set it.
16393 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
16394 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
16395 constraints using the lookup_constraint logic.
16396 * ira-lives.c (single_reg_class): Likewise.
16397 * ira.c (ira_setup_alts): Likewise.
16398 * lra-constraints.c (process_alt_operands): Likewise.
16399 * recog.c (asm_operand_ok, constrain_operands): Likewise.
16400 * reload.c (find_reloads): Likewise.
16401
16402 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16403
16404 * genpreds.c (const_int_start, const_int_end): New variables.
16405 (choose_enum_order): Output CONST_INT constraints before memory
16406 constraints.
16407 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
16408 Add CT_CONST_INT.
16409 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
16410 * ira.c (ira_setup_alts): Likewise.
16411 * lra-constraints.c (process_alt_operands): Likewise.
16412 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
16413 * reload.c (find_reloads): Likewise.
16414
16415 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16416
16417 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
16418 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
16419 * recog.c (preprocess_constraints): Update accordingly.
16420
16421 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16422
16423 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
16424 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
16425 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
16426 * genpreds.c (print_type_tree): New function.
16427 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
16428 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
16429 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
16430 Write out enum constraint_type and get_constraint_type.
16431 * lra-constraints.c (satisfies_memory_constraint_p): Take a
16432 constraint_num rather than a constraint string.
16433 (satisfies_address_constraint_p): Likewise.
16434 (reg_class_from_constraints): Avoid old constraint macros.
16435 (process_alt_operands, process_address_1): Likewise.
16436 (curr_insn_transform): Likewise.
16437 * ira-costs.c (record_reg_classes): Likewise.
16438 (record_operand_costs): Likewise.
16439 * ira-lives.c (single_reg_class): Likewise.
16440 (ira_implicitly_set_insn_hard_regs): Likewise.
16441 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
16442 * postreload.c (reload_cse_simplify_operands): Likewise.
16443 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
16444 (constrain_operands, peep2_find_free_register): Likewise.
16445 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
16446 (find_reloads, alternative_allows_const_pool_ref): Likewise.
16447 * reload1.c (maybe_fix_stack_asms): Likewise.
16448 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
16449 * targhooks.c (default_secondary_reload): Likewise.
16450 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
16451 to EXTRA_CONSTRAINT_STR.
16452 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
16453
16454 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16455
16456 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
16457 (write_constraint_satisfied_p_array): ...this new function.
16458 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
16459 an array.
16460 (write_insn_preds_c): Update accordingly.
16461
16462 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16463
16464 * genpreds.c (write_lookup_constraint): Rename to...
16465 (write_lookup_constraint_1): ...this.
16466 (write_lookup_constraint_array): New function.
16467 (write_tm_preds_h): Define lookup_constraint as an inline function
16468 that uses write_lookup_constraint_array where possible.
16469 (write_insn_preds_c): Update for the changes above.
16470
16471 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16472
16473 * doc/md.texi (regclass_for_constraint): Rename to...
16474 (reg_class_for_constraint): ...this.
16475 * genpreds.c (num_constraints, enum_order, register_start)
16476 (register_end, satisfied_start, memory_start, memory_end)
16477 (address_start, address_end): New variables.
16478 (add_constraint): Count the number of constraints.
16479 (choose_enum_order): New function.
16480 (write_enum_constraint_num): Iterate over enum_order.
16481 (write_regclass_for_constraint): Rename to...
16482 (write_reg_class_for_constraint_1): ...this and update output
16483 accordingly.
16484 (write_constraint_satisfied_p): Rename to...
16485 (write_constraint_satisfied_p_1): ...this and update output
16486 accordingly. Do nothing if all extra constraints are register
16487 constraints.
16488 (write_insn_extra_memory_constraint): Delete.
16489 (write_insn_extra_address_constraint): Delete.
16490 (write_range_function): New function.
16491 (write_tm_preds_h): Define constraint_satisfied_p and
16492 reg_class_for_constraint as inline functions that do a range check
16493 before calling the out-of-line function. Use write_range_function
16494 to implement insn_extra_{register,memory,address}_constraint,
16495 the first of which is new.
16496 (write_insn_preds_c): Update after above changes to write_* functions.
16497 (main): Call choose_enum_order.
16498
16499 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
16500
16501 PR tree-optimization/61306
16502 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
16503 expression instead of its size.
16504 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
16505 false to prevent optimization when the result is unpredictable due to
16506 arithmetic right shift of signed type with highest byte is set.
16507 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
16508 (init_symbolic_number): Likewise.
16509 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
16510 when the result is unpredictable due to sign extension.
16511
16512 2014-06-11 Terry Guo <terry.guo@arm.com>
16513
16514 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
16515 (*thumb1_addsi3): Ditto.
16516 (*thumb_subdi3): Ditto.
16517 (thumb1_subsi3_insn): Ditto.
16518 (*thumb_mulsi3): Ditto.
16519 (*thumb_mulsi3_v6): Ditto.
16520 (*thumb1_andsi3_insn): Ditto.
16521 (thumb1_bicsi3): Ditto.
16522 (*thumb1_iorsi3_insn): Ditto.
16523 (*thumb1_xorsi3_insn): Ditto.
16524 (*thumb1_ashlsi3): Ditto.
16525 (*thumb1_ashrsi3): Ditto.
16526 (*thumb1_lshrsi3): Ditto.
16527 (*thumb1_rotrsi3): Ditto.
16528 (*thumb1_negdi2): Ditto.
16529 (*thumb1_negsi2): Ditto.
16530 (*thumb1_abssi2): Ditto.
16531 (*thumb1_neg_abssi2): Ditto.
16532 (*thumb1_one_cmplsi2): Ditto.
16533 (*thumb1_zero_extendhisi2): Ditto.
16534 (*thumb1_zero_extendqisi2): Ditto.
16535 (*thumb1_zero_extendqisi2_v6): Ditto.
16536 (thumb1_extendhisi2): Ditto.
16537 (thumb1_extendqisi2): Ditto.
16538 (*thumb1_movdi_insn): Ditto.
16539 (*thumb1_movsi_insn): Ditto.
16540 (*thumb1_movhi_insn): Ditto.
16541 (thumb_movhi_clobber): Ditto.
16542 (*thumb1_movqi_insn): Ditto.
16543 (*thumb1_movhf): Ditto.
16544 (*thumb1_movsf_insn): Ditto.
16545 (*thumb_movdf_insn): Ditto.
16546 (movmem12b): Ditto.
16547 (movmem8b): Ditto.
16548 (cbranchqi4): Ditto.
16549 (cbranchsi4_insn): Ditto.
16550 (cbranchsi4_scratch): Ditto.
16551 (*negated_cbranchsi4): Ditto.
16552 (*tbit_cbranch): Ditto.
16553 (*tlobits_cbranch): Ditto.
16554 (*tstsi3_cbranch): Ditto.
16555 (*cbranchne_decr1): Ditto.
16556 (*addsi3_cbranch): Ditto.
16557 (*addsi3_cbranch_scratch): Ditto.
16558 (*thumb_cmpdi_zero): Ditto.
16559 (cstoresi_eq0_thumb1): Ditto.
16560 (cstoresi_ne0_thumb1): Ditto.
16561 (*cstoresi_eq0_thumb1_insn): Ditto.
16562 (*cstoresi_ne0_thumb1_insn): Ditto.
16563 (cstoresi_nltu_thumb1): Ditto.
16564 (cstoresi_ltu_thumb1): Ditto.
16565 (thumb1_addsi3_addgeu): Ditto.
16566 (*thumb_jump): Ditto.
16567 (*call_reg_thumb1_v5): Ditto.
16568 (*call_reg_thumb1): Ditto.
16569 (*call_value_reg_thumb1_v5): Ditto.
16570 (*call_value_reg_thumb1): Ditto.
16571 (*call_insn): Ditto.
16572 (*call_value_insn): Ditto.
16573 (thumb1_casesi_internal_pic): Ditto.
16574 (thumb1_casesi_dispatch): Ditto.
16575 (*thumb1_indirect_jump): Ditto.
16576 (prologue_thumb1_interwork): Ditto.
16577 (*epilogue_insns): Ditto.
16578 (consttable_1): Ditto.
16579 (consttable_2): Ditto.
16580 (tablejump): Ditto.
16581 (*thumb1_tablejump): Ditto.
16582 (thumb_eh_return): Ditto.
16583 (define_peephole2): Two of them are thumb1 only and got moved into
16584 new file thumb1.md.
16585 (define_split): Six of them are thumb1 only and got moved into new
16586 file thumb1.md.
16587 * config/arm/thumb1.md: New file comprised of above thumb1 only
16588 patterns.
16589
16590 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16591
16592 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
16593 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
16594 dependencies.
16595 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
16596 (aarch64_crc_builtin_datum): New struct.
16597 (aarch64_crc_builtin_data): New.
16598 (aarch64_init_crc32_builtins): New function.
16599 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
16600 (aarch64_crc32_expand_builtin): New.
16601 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
16602 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16603 __ARM_FEATURE_CRC32 when appropriate.
16604 (TARGET_CRC32): Define.
16605 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
16606 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
16607 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
16608 (aarch64_<crc_variant>): New pattern.
16609 * config/aarch64/arm_acle.h: New file.
16610 * config/aarch64/iterators.md (CRC): New int iterator.
16611 (crc_variant, crc_mode): New int attributes.
16612 * doc/aarch64-acle-intrinsics.texi: New file.
16613 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
16614 Include aarch64-acle-intrinsics.texi.
16615
16616 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
16617
16618 * tree-vect-data-refs.c (vect_grouped_store_supported): New
16619 check for stores group of length 3.
16620 (vect_permute_store_chain): New permutations for stores group of
16621 length 3.
16622 * tree-vect-stmts.c (vect_model_store_cost): Change cost
16623 of vec_perm_shuffle for the new permutations.
16624
16625 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
16626
16627 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
16628 table rewriting temporarily on targets not supporting ONE_ONLY.
16629
16630 2014-06-11 Richard Biener <rguenther@suse.de>
16631
16632 PR middle-end/61437
16633 Revert
16634 2014-06-04 Richard Biener <rguenther@suse.de>
16635
16636 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
16637 TREE_PUBLIC and DECL_EXTERNAL decls.
16638
16639 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
16640
16641 * varasm.c (set_implicit_section): New function.
16642 (resolve_unique_section): Use it to set implicit section
16643 for aliases, too.
16644 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
16645 (default_function_section): Likewise.
16646 (decl_binds_to_current_def_p): Constify argument.
16647 * varasm.h (decl_binds_to_current_def_p): Update prototype.
16648 * asan.c (asan_protect_global): Use
16649 symtab_get_node (decl)->implicit_section.
16650 * symtab.c (dump_symtab_base): Dump implicit sections.
16651 (verify_symtab_base): Verify sanity of sectoins and comdats.
16652 (symtab_resolve_alias): Alias share the section of its target.
16653 (set_section_1): New function.
16654 (symtab_node::set_section): Move here, recurse to aliases.
16655 (verify_symtab): Check for duplicated symtab lists.
16656 * tree-core.h (implicit_section_name_p): Remove.
16657 * tree-vect-data-refs.c: Include varasm.h.
16658 (vect_can_force_dr_alignment_p): Fix conditional on when
16659 decl bints to current definition; use
16660 symtab_get_node (decl)->implicit_section.
16661 * cgraph.c (cgraph_make_node_local_1): Fix section set.
16662 * cgraph.h (struct symtab_node): Add implicit_section.
16663 (set_section): Rename to ...
16664 (set_section_for_node): ... this one.
16665 (set_section): Declare.
16666 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
16667 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
16668 input_overwrite_node, input_varpool_node): Stream implicit_section.
16669 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
16670 removal; it will fail in LTO.
16671
16672 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16673
16674 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
16675 Change second alternative type to f_mcr.
16676 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
16677 and 12th alternatives' types to f_mcr and f_mrc.
16678 (*movdi_aarch64): Same for 12th and 13th alternatives.
16679 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
16680 (aarch64_movtilow_tilow): Change type to fmov.
16681
16682 2014-06-10 Jiong Wang <jiong.wang@arm.com>
16683
16684 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
16685 (aarch64_save_or_restore_callee_save_registers): Fix layout.
16686
16687 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16688
16689 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
16690 New expander.
16691 (aarch64_sqrdmulh_lane<mode>): Likewise.
16692 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16693 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16694 (aarch64_sqdmulh_laneq<mode>): New expander.
16695 (aarch64_sqrdmulh_laneq<mode>): Likewise.
16696 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
16697 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
16698 (aarch64_sqdmulh_lane<mode>): New expander.
16699 (aarch64_sqrdmulh_lane<mode>): Likewise.
16700 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16701 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16702 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
16703 (aarch64_sqdmlal_laneq<mode>): Likewise.
16704 (aarch64_sqdmlsl_lane<mode>): Likewise.
16705 (aarch64_sqdmlsl_laneq<mode>): Likewise.
16706 (aarch64_sqdmlal2_lane<mode>): Likewise.
16707 (aarch64_sqdmlal2_laneq<mode>): Likewise.
16708 (aarch64_sqdmlsl2_lane<mode>): Likewise.
16709 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
16710 (aarch64_sqdmull_lane<mode>): Likewise.
16711 (aarch64_sqdmull_laneq<mode>): Likewise.
16712 (aarch64_sqdmull2_lane<mode>): Likewise.
16713 (aarch64_sqdmull2_laneq<mode>): Likewise.
16714
16715 2014-06-10 Richard Biener <rguenther@suse.de>
16716
16717 PR tree-optimization/61438
16718 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
16719 (eliminate_dom_walker::before_dom_children): Only try to inhibit
16720 insertion of IVs if running PRE.
16721 (eliminate): Adjust.
16722 (pass_pre::execute): Likewise.
16723 (pass_fre::execute): Likewise.
16724
16725 2014-06-10 Richard Biener <rguenther@suse.de>
16726
16727 PR middle-end/61456
16728 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16729 Do not use the main variant for the type comparison.
16730 (ncr_compar): Likewise.
16731 (nonoverlapping_component_refs_p): Likewise.
16732
16733 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
16734
16735 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
16736 REG_CFA_RESTORE mode.
16737
16738 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
16739
16740 * config/i386/i386.c (expand_vec_perm_pblendv): New.
16741 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
16742 expand_vec_perm_pblendv.
16743
16744 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16745
16746 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
16747 available.
16748 Simplify description of __crc32d and __crc32cd intrinsics.
16749 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
16750 availability.
16751
16752 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
16753
16754 PR lto/61334
16755 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
16756 * config.in: Regenerate.
16757 * configure: Likewise.
16758
16759 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
16760
16761 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
16762 and public vars.
16763 (intersect_static_var_sets): Remove.
16764 (propagate): Do not prune local statics.
16765
16766 2014-06-10 Jakub Jelinek <jakub@redhat.com>
16767
16768 PR fortran/60928
16769 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
16770 Set lastprivate_firstprivate even if omp_private_outer_ref
16771 langhook returns true.
16772 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
16773 langhook, call unshare_expr on new_var and call
16774 build_outer_var_ref to get the last argument.
16775
16776 2014-06-10 Marek Polacek <polacek@redhat.com>
16777
16778 PR c/60988
16779 * doc/extend.texi: Add cindex for transparent_union.
16780
16781 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
16782
16783 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
16784 init_symbolic_number ().
16785
16786 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
16787
16788 PR middle-end/61141
16789 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
16790 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
16791 (verify_rtl_sharing): Likewise.
16792
16793 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
16794
16795 PR c++/54442
16796 * tree.c (build_qualified_type): Use a canonical type for
16797 TYPE_CANONICAL.
16798
16799 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16800
16801 * config/arm/arm-modes.def: Remove XFmode.
16802
16803 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
16804
16805 PR target/61062
16806 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
16807 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
16808 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
16809 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
16810 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
16811 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
16812 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
16813 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
16814 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
16815
16816 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
16817
16818 * tree-core.h (tree_decl_with_vis): Remove section_name.
16819
16820 2014-06-09 Kito Cheng <kito@0xlab.org>
16821
16822 * ira.c (ira): Don't call init_caller_save if LRA enabled
16823 since LRA use its own infrastructure to handle that.
16824
16825 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16826
16827 * symtab.c (dump_symtab_base): Update dumping.
16828 (symtab_make_decl_local): Clear only DECL_COMDAT.
16829 * tree-vect-data-refs.c (Check that variable is static before
16830 tampering with sections.
16831 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
16832 (cgraph_create_virtual_clone): Likewise.
16833 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
16834 (decl_section_name, set_decl_section_name): New accessors.
16835 (find_decls_types_r): Do not walk section name
16836 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
16837 (decl_comdat_group, decl_comdat_group_id): Constify.
16838 (decl_section_name, set_decl_section_name): Update.
16839 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
16840 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
16841 (cgraph_make_node_local_1): Clear section and comdat group.
16842 * cgraph.h (set_comdat_group): Sanity check.
16843 (get_section, set_section): New.
16844 * ipa-comdats.c (ipa_comdats): Use get_section.
16845 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
16846 * lto-streamer-out.c: Do not follow section names.
16847 * c-family/c-common.c (handle_section_attribute): Update.
16848 * lto-cgraph.c (lto_output_node): Output section.
16849 (lto_output_varpool_node): Likewise.
16850 (read_comdat_group): Rename to ...
16851 (read_identifier): ... this one.
16852 (read_string_cst): New function.
16853 (input_node, input_varpool_node): Input section names.
16854 * tree-emutls.c (get_emutls_init_templ_addr): Update.
16855 (new_emutls_decl): Update.
16856 (secname_for_decl): Check section names only of static vars.
16857 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
16858 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
16859 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
16860 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
16861 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
16862 * config/mcore/mcore.c (mcore_unique_section): Likewise.
16863 * config/mips/mips.c (mips16_build_function_stub): Likewise.
16864 * config/v850/v850.c (v850_insert_attributes): Likewise.
16865 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
16866 Likewise.
16867 (h8300_handle_tiny_data_attribute): Likewise.
16868 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
16869 (bfin_handle_l2_attribute): Likewise.
16870
16871 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16872
16873 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
16874 remove static initializer.
16875
16876 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16877
16878 * varasm.c (use_blocks_for_decl_p): Check symbol table
16879 instead of alias attribute.
16880 (place_block_symbol): Recurse on aliases.
16881
16882 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16883
16884 * ipa-visibility.c: Include varasm.h
16885 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
16886
16887 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16888
16889 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
16890 outputting aliases.
16891
16892 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
16893
16894 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
16895 from test_insn into GGC space escape via SET_SRC.
16896
16897 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
16898
16899 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
16900 call statement, if any.
16901 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
16902 statements, if any. Tidy up.
16903
16904 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
16905
16906 PR target/61431
16907 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
16908 iterators, VSX_D that handles 64-bit types, and VSX_LE that
16909 handles swapping the two 64-bit double words on little endian
16910 systems. Include V1TImode and optionally TImode in VSX_LE so that
16911 these types are properly swapped. Change all of the insns and
16912 splits that do the 64-bit swaps to use VSX_LE.
16913 (vsx_le_perm_load_<mode>): Likewise.
16914 (vsx_le_perm_store_<mode>): Likewise.
16915 (splitters for little endian memory operations): Likewise.
16916 (vsx_xxpermdi2_le_<mode>): Likewise.
16917 (vsx_lxvd2x2_le_<mode>): Likewise.
16918 (vsx_stxvd2x2_le_<mode>): Likewise.
16919
16920 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
16921
16922 PR target/61423
16923 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
16924 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
16925 and corresponding splitters. Zero extend general register
16926 or memory input operand to XMM temporary. Enable for
16927 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
16928 (floatunssi<mode>2): Update expander predicate.
16929
16930 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
16931
16932 PR rtl-optimization/61325
16933 * lra-constraints.c (process_address_1): Check scale equal to one
16934 to prevent transformation: base + scale * index => base + new_reg.
16935
16936 2014-06-06 Richard Biener <rguenther@suse.de>
16937
16938 PR tree-optimization/59299
16939 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
16940 a def operand.
16941 (nearest_common_dominator_of_uses): Likewise.
16942 (statement_sink_location): Adjust. Support sinking loads.
16943
16944 2014-06-06 Martin Jambor <mjambor@suse.cz>
16945
16946 * ipa-prop.c (get_place_in_agg_contents_list): New function.
16947 (build_agg_jump_func_from_list): Likewise.
16948 (determine_known_aggregate_parts): Renamed to
16949 determine_locally_known_aggregate_parts. Moved some functionality
16950 to the two functions above, removed bound checks.
16951
16952 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
16953
16954 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
16955 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
16956 (aarch64_progress_pointer): Likewise.
16957 (aarch64_copy_one_part_and_move_pointers): Likewise.
16958 (aarch64_expand_movmen): Likewise.
16959 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
16960 * config/aarch64/aarch64.md (movmem<mode>): New.
16961
16962 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
16963
16964 * targhooks.c (default_add_stmt_cost): Call target specific
16965 hook instead of default one.
16966
16967 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
16968
16969 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
16970 endianness instead of host endianness.
16971 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
16972 comments.
16973
16974 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
16975
16976 PR debug/53927
16977 * function.c (instantiate_decls): Process the saved static chain.
16978 (expand_function_start): If not optimizing, save the static chain
16979 onto the stack.
16980 * tree-nested.c (convert_all_function_calls): Always create the static
16981 chain for nested functions if not optimizing.
16982
16983 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
16984
16985 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
16986
16987 2014-06-06 Richard Biener <rguenther@suse.de>
16988
16989 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
16990 (construct_init_block): Likewise.
16991 (construct_exit_block): Likewise.
16992 (pass_expand::execute): Likewise.
16993 * graphite.c (graphite_transforms): Replace check for current_loops
16994 with a check for > 1 loops.
16995 (pass_graphite_transforms::execute): Adjust.
16996 * ipa-split.c (split_function): Remove check for current_loops.
16997 * omp-low.c (expand_parallel_call): Likewise.
16998 (expand_omp_for_init_counts): Likewise.
16999 (extract_omp_for_update_vars): Likewise.
17000 (expand_omp_for_generic): Likewise.
17001 (expand_omp_sections): Likewise.
17002 (expand_omp_target): Likewise.
17003 * tracer.c (tail_duplicate): Likewise.
17004 (pass_tracer::execute): Likewise.
17005 * trans-mem.c (expand_transaction): Likewise.
17006 * tree-complex.c (expand_complex_div_wide): Likewise.
17007 * tree-eh.c (lower_resx): Likewise.
17008 (cleanup_empty_eh_merge_phis): Likewise.
17009 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
17010 current_loops with a check for > 1 loops.
17011 (pass_predcom::execute): Adjust.
17012 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
17013 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
17014 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
17015 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
17016 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
17017 * tree-switch-conversion.c (process_switch): Likewise.
17018 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
17019 * tree-vrp.c (vrp_visit_phi_node): Likewise.
17020 (execute_vrp): Likewise.
17021 * ubsan.c (ubsan_expand_null_ifn): Likewise.
17022
17023 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
17024
17025 * rtl.h (insn_location): Declare.
17026 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
17027 with UNKNOWN_LOCATION.
17028 * emit-rtl.c (insn_location): New function.
17029 * final.c (notice_source_line): Check that the instruction has a
17030 location before retrieving it and use insn_location.
17031 * modulo-sched.c (loop_single_full_bb_p): Likewise.
17032 * print-rtl.c (print_rtx): Likewise.
17033
17034 2014-06-06 Richard Biener <rguenther@suse.de>
17035
17036 * passes.def: Move 2nd VRP pass before phi-only-cprop.
17037
17038 2014-06-06 Christian Bruel <christian.bruel@st.com>
17039
17040 PR tree-optimization/43934
17041 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
17042 cost.
17043
17044 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
17045
17046 * ira-lives.c (single_reg_class): Add missing break. Explicitly
17047 return NO_REGS for extra address and memory constraints. Handle
17048 operands that match (or are equivalent to something that matches)
17049 extra constant constraints. Ignore other non-register operands.
17050
17051 2014-06-06 Alan Modra <amodra@gmail.com>
17052
17053 PR target/61300
17054 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
17055 * doc/tm.texi: Regenerate.
17056 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
17057 Use throughout in place of REG_PARM_STACK_SPACE.
17058 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
17059 "incoming" param. Pass to rs6000_function_parms_need_stack.
17060 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
17061 prototype_p when incoming. Use function decl when incoming
17062 to handle K&R style functions.
17063 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
17064 (INCOMING_REG_PARM_STACK_SPACE): Define.
17065
17066 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17067
17068 PR target/52472
17069 * cfgexpand.c (expand_debug_expr): Use address space of nested
17070 TREE_TYPE for ADDR_EXPR and MEM_REF.
17071
17072 2014-06-05 Jeff Law <law@redhat.com>
17073
17074 PR tree-optimization/61289
17075 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
17076 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
17077 looking for those which match LHS. All callers changed.
17078 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
17079 parameters and code which manipulated them. All callers changed.
17080 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
17081 and DST_MAP parameters. Simplify invalidation code by just calling
17082 invalidate_equivalences. All callers changed.
17083 (thread_across_edge): Simplify now that we don't need to maintain
17084 the map of equivalences to invalidate.
17085
17086 2014-06-05 Kai Tietz <ktietz@redhat.com>
17087 Richard Henderson <rth@redhat.com>
17088
17089 PR target/46219
17090 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
17091 checking for !TARGET_X32.
17092 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
17093 (sibcall_intern): New define_insn, plus required peepholes.
17094 (sibcall_pop_intern): Likewise.
17095 (sibcall_value_intern): Likewise.
17096 (sibcall_value_pop_intern): Likewise.
17097
17098 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
17099
17100 * tree-inline.c (tree_function_versioning): Check DF info existence
17101 before accessing it.
17102
17103 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17104
17105 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
17106 frame_size.
17107 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
17108 aarch64_frame hard_fp_offset and frame_size.
17109 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
17110 frame_size; remove original_frame_size.
17111 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
17112 (aarch64_initial_elimination_offset): Remove frame_size and
17113 offset. Use aarch64_frame frame_size.
17114
17115 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17116 Jiong Wang <jiong.wang@arm.com>
17117 Renlin <renlin.li@arm.com>
17118
17119 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
17120 initialization of R30 offset. Update offset. Iterate core
17121 regisers upto X30. Remove X29, X30 specific code.
17122
17123 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17124 Jiong Wang <jiong.wang@arm.com>
17125
17126 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
17127 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
17128 (aarch64_register_saved_on_entry): Adjust test.
17129
17130 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17131
17132 * config/aarch64/aarch64.h (machine_function): Move
17133 saved_varargs_size from here...
17134 (aarch64_frame): ... to here.
17135
17136 * config/aarch64/aarch64.c (aarch64_expand_prologue)
17137 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
17138 (aarch64_initial_elimination_offset)
17139 (aarch64_setup_incoming_varargs): Adjust location of
17140 saved_varargs_size.
17141
17142 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17143
17144 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
17145 layout comment.
17146
17147 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
17148 Prachi Godbole <Prachi.Godbole@imgtec.com>
17149
17150 * config/mips/mips-cpus.def: Add definition for p5600. Updated
17151 mips32r5 entry to use PROCESSOR_P5600.
17152 * config/mips/mips-tables.opt: Regenerate.
17153 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
17154 * config/mips/mips.c (mips_fmadd_bypass): New function.
17155 (mips_rtx_cost_data): Add costs for p5600.
17156 (mips_issue_rate): Add support for p5600.
17157 (mips_multipass_dfa_lookahead): Likewise.
17158 * config/mips/mips.h (TUNE_P5600): New define.
17159 (TUNE_MACC_CHAINS): Add TUNE_P5600.
17160 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
17161 * config/mips/mips.md: Include p5600.md.
17162 (processor): Add p5600.
17163 * config/mips/p5600.md: New file.
17164
17165 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
17166
17167 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
17168 * config/i386/predicates.md (palignr_operand): New.
17169 Indicates if permutation is suitable for palignr instruction.
17170
17171 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
17172
17173 PR tree-optimization/61319
17174 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
17175 stmt belongs to loop.
17176
17177 2014-06-05 Richard Biener <rguenther@suse.de>
17178
17179 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
17180 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
17181 (lookup_tmp_var): Adjust.
17182 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
17183
17184 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17185
17186 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
17187
17188 2014-06-05 Marek Polacek <polacek@redhat.com>
17189
17190 PR c/49706
17191 * doc/invoke.texi: Document -Wlogical-not-parentheses.
17192
17193 2014-06-04 Tom de Vries <tom@codesourcery.com>
17194
17195 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
17196 CONST_INT.
17197
17198 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
17199
17200 PR tree-optimization/61385
17201 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
17202
17203 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
17204
17205 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
17206 changed to use fatal_error.
17207 (main): Ensure lto_wrapper_cleanup is run atexit.
17208
17209 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17210
17211 * lra-constraints.c (valid_address_p): Move earlier in file.
17212 (address_eliminator): New structure.
17213 (satisfies_memory_constraint_p): New function.
17214 (satisfies_address_constraint_p): Likewise.
17215 (process_alt_operands, process_address, curr_insn_transform): Use them.
17216
17217 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17218
17219 * lra-int.h (lra_static_insn_data): Make operand_alternative a
17220 const pointer.
17221 (target_lra_int, default_target_lra_int, this_target_lra_int)
17222 (op_alt_data): Delete.
17223 * lra.h (lra_init): Delete.
17224 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
17225 (init_insn_code_data_once): Remove op_alt_data handling.
17226 (finish_insn_code_data_once): Likewise.
17227 (init_op_alt_data): Delete.
17228 (get_static_insn_data): Initialize operand_alternative to null.
17229 (free_insn_recog_data): Cast operand_alternative before freeing it.
17230 (setup_operand_alternative): Take the operand_alternative as
17231 parameter and assume it isn't already cached in the static
17232 insn data.
17233 (lra_set_insn_recog_data): Update accordingly.
17234 (lra_init): Delete.
17235 * ira.c (ira_init): Don't call lra_init.
17236 * target-globals.h (this_target_lra_int): Declare.
17237 (target_globals): Remove lra_int.
17238 (restore_target_globals): Update accordingly.
17239 * target-globals.c: Don't include lra-int.h.
17240 (default_target_globals, save_target_globals): Remove lra_int.
17241
17242 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17243
17244 * recog.h (operand_alternative): Convert reg_class, reject,
17245 matched and matches into bitfields.
17246 (preprocess_constraints): New overload.
17247 (preprocess_insn_constraints): New function.
17248 (preprocess_constraints): Take the insn as parameter.
17249 (recog_op_alt): Change into a pointer.
17250 (target_recog): Add x_op_alt.
17251 * recog.c (asm_op_alt): New variable.
17252 (recog_op_alt): Change into a pointer.
17253 (preprocess_constraints): New overload, replacing the old function
17254 definition with one that doesn't use global state.
17255 (preprocess_insn_constraints): New function.
17256 (preprocess_constraints): Use them. Take the insn as parameter.
17257 Use asm_op_alt for asms.
17258 (recog_init): Free existing x_op_alt entries.
17259 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
17260 pointer const.
17261 (make_early_clobber_and_input_conflicts): Likewise.
17262 (process_bb_node_lives): Pass the insn to process_constraints.
17263 * reg-stack.c (check_asm_stack_operands): Likewise.
17264 (subst_asm_stack_regs): Likewise.
17265 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
17266 * regrename.c (build_def_use): Likewise.
17267 * sched-deps.c (sched_analyze_insn): Likewise.
17268 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
17269 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
17270 (note_invalid_constants): Likewise.
17271 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17272 (ix86_legitimate_combined_insn): Make operand_alternative pointer
17273 const.
17274
17275 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17276
17277 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
17278 * ira-lives.c (check_and_make_def_conflict): Check for disabled
17279 alternatives.
17280 (make_early_clobber_and_input_conflicts): Likewise.
17281 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17282
17283 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17284
17285 * recog.h (alternative_class): New function.
17286 (which_op_alt): Return a const recog_op_alt.
17287 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
17288 (subst_asm_stack_regs): Likewise.
17289 * config/arm/arm.c (note_invalid_constants): Likewise.
17290 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
17291 the operand_alternative; use alternative class instead.
17292 * sel-sched.c (get_reg_class): Likewise.
17293 * regrename.c (build_def_use): Likewise.
17294 (hide_operands, restore_operands, record_out_operands): Update type
17295 accordingly.
17296
17297 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17298
17299 * recog.h (recog_op_alt): Convert to a flat array.
17300 (which_op_alt): New function.
17301 * recog.c (recog_op_alt): Convert to a flat array.
17302 (preprocess_constraints): Update accordingly, grouping all
17303 operands of the same alternative together, rather than the
17304 other way around.
17305 * ira-lives.c (check_and_make_def_conflict): Likewise.
17306 (make_early_clobber_and_input_conflicts): Likewise.
17307 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17308 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
17309 (subst_asm_stack_regs): Likewise.
17310 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
17311 * regrename.c (hide_operands, record_out_operands): Likewise.
17312 (build_def_use): Likewise.
17313 * sel-sched.c (get_reg_class): Likewise.
17314 * config/arm/arm.c (note_invalid_constants): Likewise.
17315
17316 2014-06-04 Jason Merrill <jason@redhat.com>
17317
17318 PR c++/51253
17319 PR c++/61382
17320 * gimplify.c (gimplify_arg): Non-static.
17321 * gimplify.h: Declare it.
17322
17323 2014-06-04 Richard Biener <rguenther@suse.de>
17324
17325 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
17326 TREE_PUBLIC and DECL_EXTERNAL decls.
17327
17328 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
17329
17330 * regcprop.c (copyprop_hardreg_forward_1): Account for
17331 HARD_REGNO_CALL_PART_CLOBBERED.
17332
17333 2014-06-04 Richard Biener <rguenther@suse.de>
17334
17335 * configure.ac: Check whether the underlying type of int64_t
17336 is long or long long.
17337 * configure: Regenerate.
17338 * config.in: Likewise.
17339 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
17340 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17341
17342 2014-06-04 Richard Biener <rguenther@suse.de>
17343
17344 PR tree-optimization/60098
17345 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
17346 we hit a kill.
17347 (dse_optimize_stmt): Simplify, now that we found a kill
17348 earlier.
17349
17350 2014-06-04 Richard Biener <rguenther@suse.de>
17351
17352 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
17353 of accesses with non-invariant address.
17354
17355 2014-06-04 Martin Liska <mliska@suse.cz>
17356
17357 * cgraph.h (cgraph_make_wrapper): New function introduced.
17358 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
17359 * ipa-inline.h (inline_analyze_function): The function is global.
17360 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
17361
17362 2014-06-04 Martin Liska <mliska@suse.cz>
17363
17364 * tree.h (private_lookup_attribute_starting): New function.
17365 (lookup_attribute_starting): Likewise.
17366 * tree.c (private_lookup_attribute_starting): Likewise.
17367
17368 2014-06-04 Martin Liska <mliska@suse.cz>
17369
17370 * cgraph.h (expand_thunk): New argument added.
17371 (address_taken_from_non_vtable_p): New global function.
17372 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
17373 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
17374 * cgraphunit.c (analyze_function): Likewise.
17375 (assemble_thunks_and_aliases): Argument added to call.
17376 (expand_thunk): New argument forces to produce GIMPLE thunk.
17377
17378 2014-06-04 Martin Liska <mliska@suse.cz>
17379
17380 * coverage.h (coverage_compute_cfg_checksum): Argument added.
17381 * coverage.c (coverage_compute_cfg_checksum): Likewise.
17382 * profile.c (branch_prob): Likewise.
17383
17384 2014-06-04 Martin Jambor <mjambor@suse.cz>
17385
17386 PR ipa/61340
17387 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
17388 handler for switch on an ipa_ref_use enum.
17389 * ipa-reference.c (analyze_function): Likewise.
17390
17391 2014-06-04 Kai Tietz <ktietz@redhat.com>
17392
17393 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
17394 from old call-instruction.
17395
17396 2014-06-04 Bin Cheng <bin.cheng@arm.com>
17397
17398 * config/aarch64/aarch64.c (aarch64_classify_address)
17399 (aarch64_legitimize_reload_address): Support full addressing modes
17400 for vector modes.
17401 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
17402 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
17403
17404 2014-06-03 Andrew Pinski <apinski@cavium.com>
17405
17406 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
17407 for OP0.
17408
17409 2014-06-03 Andrew Pinski <apinski@cavium.com>
17410
17411 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
17412 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
17413
17414 2014-06-03 Kai Tietz <ktietz@redhat.com>
17415
17416 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
17417 for 64-bit ms-abi.
17418
17419 2014-06-03 Dehao Chen <dehao@google.com>
17420
17421 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
17422 the same loop.
17423
17424 2014-06-03 Marek Polacek <polacek@redhat.com>
17425
17426 PR c/60439
17427 * doc/invoke.texi: Document -Wswitch-bool.
17428 * function.c (stack_protect_epilogue): Cast controlling expression of
17429 the switch to int.
17430 * gengtype.c (walk_type): Generate switch expression with its
17431 controlling expression cast to int.
17432
17433 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
17434
17435 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
17436 and attiny841.
17437 * config/avr/avr-tables.opt: Regenerate.
17438 * config/avr/t-multilib: Regenerate.
17439 * doc/avr-mmcu.texi: Regenerate.
17440
17441 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
17442 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17443
17444 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
17445 (ata6617c, ata664251): Add new avr35 devices.
17446 (ata6612c): Add new avr4 device.
17447 (ata6613c, ata6614q): Add new avr5 devices.
17448 * config/avr/avr-tables.opt: Regenerate.
17449 * config/avr/t-multilib: Regenerate.
17450 * doc/avr-mmcu.texi: Regenerate.
17451
17452 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17453
17454 * gcc/config/aarch64/aarch64-builtins.c
17455 (aarch64_types_binop_ssu_qualifiers): New static data.
17456 (TYPES_BINOP_SSU): Define.
17457 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
17458 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
17459 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
17460 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
17461 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
17462 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
17463 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
17464 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
17465 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
17466 suffix to builtin function name, remove cast.
17467 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
17468 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
17469 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
17470
17471 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17472
17473 * gcc/config/aarch64/aarch64-builtins.c
17474 (aarch64_types_binop_uus_qualifiers,
17475 aarch64_types_shift_to_unsigned_qualifiers,
17476 aarch64_types_unsigned_shiftacc_qualifiers): Define.
17477 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
17478 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
17479 sqshlu_n, uqshl_n): Update qualifiers.
17480 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
17481 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
17482 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
17483 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
17484 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
17485 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
17486 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
17487 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
17488 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
17489 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
17490 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
17491 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
17492 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
17493 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
17494 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
17495 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
17496 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
17497 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
17498 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
17499 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
17500 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
17501 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
17502 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
17503 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
17504 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
17505 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
17506 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
17507
17508 2014-06-03 Teresa Johnson <tejohnson@google.com>
17509
17510 * tree-sra.c (modify_function): Record caller nodes after rebuild.
17511
17512 2014-06-02 Jason Merrill <jason@redhat.com>
17513
17514 PR c++/61020
17515 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
17516
17517 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17518
17519 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
17520 location == 0.
17521
17522 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17523
17524 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
17525 New pattern.
17526 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
17527 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
17528 * config/aarch64/iterators.md (REVERSE): New iterator.
17529 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
17530 (rev_op): New int_attribute.
17531 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
17532 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
17533 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
17534 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
17535 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
17536 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
17537 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
17538 Replace temporary __asm__ with __builtin_shuffle.
17539
17540 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
17541
17542 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
17543 mips64r5.
17544 * config/mips/mips-tables.opt: Regenerate.
17545 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
17546 to use mips_isa_rev rather than ISA_MIPS32R2.
17547 * config/mips/mips.h (ISA_MIPS32R3): New define.
17548 (ISA_MIPS32R5): New define.
17549 (ISA_MIPS64R3): New define.
17550 (ISA_MIPS64R5): New define.
17551 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
17552 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
17553 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
17554 and mips64r5.
17555 (MIPS_ISA_SYNCI_SPEC): Likewise.
17556 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
17557 (LINK_SPEC): Added mips32r3 and mips32r5.
17558 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
17559 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
17560 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
17561 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
17562 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
17563 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
17564 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
17565
17566 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
17567
17568 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
17569 options.
17570 * config/mips/mips.opt (mxpa): New option.
17571 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
17572 assembler.
17573
17574 2014-06-03 Martin Jambor <mjambor@suse.cz>
17575
17576 PR ipa/61160
17577 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
17578 thunks.
17579
17580 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
17581
17582 PR tree-optimization/61328
17583 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
17584 initialization from find_bswap_or_nop_1.
17585 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
17586 in source_expr2 before using the size value the function sets. Also
17587 make use of init_symbolic_number () in both the old place and
17588 find_bswap_or_nop_load () to avoid reading uninitialized memory when
17589 doing recursion in the GIMPLE_BINARY_RHS case.
17590
17591 2014-06-03 Richard Biener <rguenther@suse.de>
17592
17593 PR tree-optimization/61383
17594 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
17595 stmts can't trap.
17596
17597 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
17598
17599 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
17600 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
17601 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
17602 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
17603 in this file.
17604 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
17605 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
17606 * system.h: ...here and make it unconditional.
17607 * target.def (conditional_register_usage): Mention
17608 define_register_constraint instead of old-style constraint macros.
17609 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
17610 * doc/tm.texi: Regenerate.
17611 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
17612 protected by !USE_MD_CONSTRAINTS.
17613 * config/frv/frv.md: Remove quote from old version of documentation.
17614 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
17615 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
17616 CONST_DOUBLE_OK_FOR_LETTER.
17617 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
17618
17619 2014-06-02 Andrew Pinski <apinski@cavium.com>
17620
17621 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
17622 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
17623 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
17624 file whose name depends on -mabi= and -mbig-endian.
17625 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
17626 Handle LP64 better and handle ilp32 too.
17627 (MULTILIB_OPTIONS): Delete.
17628 (MULTILIB_DIRNAMES): Delete.
17629
17630 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
17631
17632 * expr.h: Remove prototypes of functions defined in builtins.c.
17633 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
17634 Remove prototypes of functions defined in builtins.c.
17635 * builtins.h: Update prototype list to include all exported functions.
17636 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
17637 no_c99_libc_has_function): Move to targhooks.c
17638 (build_string_literal, build_call_expr_loc_array,
17639 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
17640 to tree.c.
17641 (expand_builtin_object_size, fold_builtin_object_size): Make static.
17642 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
17643 no_c99_libc_has_function): Relocate from builtins.c.
17644 * tree.c: Include builtins.h.
17645 (build_call_expr_loc_array, build_call_expr_loc_vec,
17646 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
17647 from builtins.c.
17648 * fold-const.h (fold_fma): Move prototype to builtins.h.
17649 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
17650 * asan.c: Include builtins.h.
17651 * cfgexpand.c: Likewise.
17652 * convert.c: Likewise.
17653 * emit-rtl.c: Likewise.
17654 * except.c: Likewise.
17655 * expr.c: Likewise.
17656 * fold-const.c: Likewise.
17657 * gimple-fold.c: Likewise.
17658 * gimple-ssa-strength-reduction.c: Likewise.
17659 * gimplify.c: Likewise.
17660 * ipa-inline.c: Likewise.
17661 * ipa-prop.c: Likewise.
17662 * lto-streamer-out.c: Likewise.
17663 * stmt.c: Likewise.
17664 * tree-inline.c: Likewise.
17665 * tree-object-size.c: Likewise.
17666 * tree-sra.c: Likewise.
17667 * tree-ssa-ccp.c: Likewise.
17668 * tree-ssa-forwprop.c: Likewise.
17669 * tree-ssa-loop-ivcanon.c: Likewise.
17670 * tree-ssa-loop-ivopts.c: Likewise.
17671 * tree-ssa-math-opts.c: Likewise.
17672 * tree-ssa-reassoc.c: Likewise.
17673 * tree-ssa-threadedge.c: Likewise.
17674 * tree-streamer-in.c: Likewise.
17675 * tree-vect-data-refs.c: Likewise.
17676 * tree-vect-patterns.c: Likewise.
17677 * tree-vect-stmts.c: Likewise.
17678 * config/aarch64/aarch64.c: Likewise.
17679 * config/alpha/alpha.c: Likewise.
17680 * config/arc/arc.c: Likewise.
17681 * config/arm/arm.c: Likewise.
17682 * config/avr/avr.c: Likewise.
17683 * config/bfin/bfin.c: Likewise.
17684 * config/c6x/c6x.c: Likewise.
17685 * config/cr16/cr16.c: Likewise.
17686 * config/cris/cris.c: Likewise.
17687 * config/epiphany/epiphany.c: Likewise.
17688 * config/fr30/fr30.c: Likewise.
17689 * config/frv/frv.c: Likewise.
17690 * config/h8300/h8300.c: Likewise.
17691 * config/i386/i386.c: Likewise.
17692 * config/i386/winnt.c: Likewise.
17693 * config/ia64/ia64.c: Likewise.
17694 * config/iq2000/iq2000.c: Likewise.
17695 * config/lm32/lm32.c: Likewise.
17696 * config/m32c/m32c.c: Likewise.
17697 * config/m32r/m32r.c: Likewise.
17698 * config/m68k/m68k.c: Likewise.
17699 * config/mcore/mcore.c: Likewise.
17700 * config/mep/mep.c: Likewise.
17701 * config/microblaze/microblaze.c: Likewise.
17702 * config/mips/mips.c: Likewise.
17703 * config/mmix/mmix.c: Likewise.
17704 * config/mn10300/mn10300.c: Likewise.
17705 * config/moxie/moxie.c: Likewise.
17706 * config/msp430/msp430.c: Likewise.
17707 * config/nds32/nds32.c: Likewise.
17708 * config/pa/pa.c: Likewise.
17709 * config/pdp11/pdp11.c: Likewise.
17710 * config/picochip/picochip.c: Likewise.
17711 * config/rl78/rl78.c: Likewise.
17712 * config/rs6000/rs6000.c: Likewise.
17713 * config/rx/rx.c: Likewise.
17714 * config/s390/s390.c: Likewise.
17715 * config/score/score.c: Likewise.
17716 * config/sh/sh.c: Likewise.
17717 * config/sparc/sparc.c: Likewise.
17718 * config/spu/spu.c: Likewise.
17719 * config/stormy16/stormy16.c: Likewise.
17720 * config/tilegx/tilegx.c: Likewise.
17721 * config/tilepro/tilepro.c: Likewise.
17722 * config/v850/v850.c: Likewise.
17723 * config/vax/vax.c: Likewise.
17724 * config/xtensa/xtensa.c: Likewise.
17725
17726 2014-06-02 Jeff Law <law@redhat.com>
17727
17728 PR rtl-optimization/61094
17729 * ree.c (combine_reaching_defs): Do not reextend an insn if it
17730 was marked as do_no_reextend. If a copy is needed to eliminate
17731 an extension, then mark it as do_not_reextend.
17732
17733 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
17734
17735 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
17736
17737 2014-06-02 Richard Henderson <rth@redhat.com>
17738
17739 PR target/61336
17740 * config/alpha/alpha.c (print_operand_address): Allow symbolic
17741 addresses inside asms. Use output_operand_lossage instead of
17742 gcc_unreachable.
17743
17744 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
17745
17746 PR target/61239
17747 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
17748 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
17749
17750 2014-06-02 Tom de Vries <tom@codesourcery.com>
17751
17752 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
17753 case that x has VOIDmode.
17754
17755 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
17756
17757 * varasm.c (copy_constant): Delete function.
17758 (build_constant_desc): Don't call it.
17759
17760 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17761
17762 PR target/61154
17763 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
17764 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
17765 with immediate_operand.
17766
17767 2014-06-02 Andreas Schwab <schwab@suse.de>
17768
17769 * config/ia64/ia64.c
17770 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
17771 pending_data_specs first.
17772
17773 2014-06-02 Richard Biener <rguenther@suse.de>
17774
17775 PR tree-optimization/61378
17776 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
17777 valueized_anything.
17778
17779 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
17780
17781 * config/i386/constraints.md (Bw): Rename from 'w'.
17782 (Bz): Rename from 'z'.
17783 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
17784
17785 2014-06-01 Kai Tietz <ktietz@redhat.com>
17786
17787 PR target/61377
17788 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
17789 * config/i386/i386.md (sibcall_insn_operand): Use Bs
17790 instead of m constraint.
17791
17792 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
17793
17794 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
17795 a separate alternative where the scratch operand 2 is marked as
17796 early clobber.
17797
17798 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
17799
17800 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
17801 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
17802 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
17803 and __builtins_arm_get_fpscr.
17804 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
17805 __builtins_arm_get_fpscr.
17806 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
17807 __builtins_arm_ldfpscr.
17808 (arm_atomic_assign_expand_fenv): New function.
17809 * config/arm/vfp.md (set_fpscr): New pattern.
17810 (get_fpscr) : Likewise.
17811 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
17812 VUNSPEC_SET_FPSCR.
17813 * doc/extend.texi (AARCH64 Built-in Functions) : Document
17814 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
17815
17816 2014-05-30 Jakub Jelinek <jakub@redhat.com>
17817
17818 * asan.c (report_error_func): Add SLOW_P argument, use
17819 BUILT_IN_ASAN_*_N if set.
17820 (build_check_stmt): Likewise.
17821 (instrument_derefs): If T has insufficient alignment,
17822 force same handling as for odd sizes.
17823
17824 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
17825 BUILT_IN_ASAN_REPORT_STORE_N): New.
17826 * asan.c (struct asan_mem_ref): Change access_size type to
17827 HOST_WIDE_INT.
17828 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
17829 update_mem_ref_hash_table): Likewise.
17830 (asan_mem_ref_hasher::hash): Hash in a HWI.
17831 (report_error_func): Change size_in_bytes argument to HWI.
17832 Use *_N builtins if size_in_bytes is larger than 16 or not power of
17833 two.
17834 (build_shadow_mem_access): New function.
17835 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
17836 Handle size_in_bytes not power of two or larger than 16.
17837 (instrument_derefs): Don't give up if size_in_bytes is not
17838 power of two or is larger than 16.
17839
17840 2014-05-30 Kai Tietz <ktietz@redhat.com>
17841
17842 PR target/60104
17843 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
17844 for sibling-tail-calls.
17845 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
17846 to its use.
17847 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
17848 (sibcall_insn_operand): Add check for sibcall_memory_operand.
17849
17850 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17851
17852 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
17853 * config/avr/avr-tables.opt: Regenerate.
17854 * config/avr/t-multilib: Regenerate.
17855 * doc/avr-mmcu.texi: Regenerate.
17856
17857 2014-05-30 Ian Lance Taylor <iant@google.com>
17858
17859 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
17860 target("sse").
17861
17862 2014-05-30 Tom de Vries <tom@codesourcery.com>
17863
17864 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
17865 Redefine as true.
17866
17867 2014-05-30 Tom de Vries <tom@codesourcery.com>
17868
17869 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17870 * lra.c (initialize_lra_reg_info_element): Add init of
17871 actual_call_used_reg_set field.
17872 (lra): Call lra_create_live_ranges before lra_inheritance for
17873 -fuse-caller-save.
17874 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17875 -fuse-caller-save.
17876 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
17877 instead of call_used_reg_set for -fuse-caller-save.
17878 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17879
17880 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17881
17882 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
17883 to mov_imm.
17884 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
17885
17886 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
17887
17888 * ira.c (ira_get_dup_out_num): Check for output operands at
17889 the start of the loop. Handle cases where an included alternative
17890 follows an excluded one.
17891
17892 2014-05-29 Mike Stump <mikestump@comcast.net>
17893
17894 PR debug/61352
17895 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
17896 post ld passes when lto is used.
17897
17898 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
17899
17900 PR rtl-optimization/61325
17901 * lra-constraints.c (process_address): Rename to process_address_1.
17902 (process_address): New function.
17903
17904 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
17905
17906 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
17907 TYPES_BINOPV): New static data.
17908 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
17909 New builtin.
17910 * config/aarch64/aarch64-simd.md (aarch64_ext,
17911 aarch64_im_lane_boundsi): New patterns.
17912 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
17913 patterns for EXT.
17914 (aarch64_evpc_ext): New function.
17915
17916 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
17917
17918 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
17919 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
17920 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
17921 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
17922 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
17923
17924 2014-05-29 Tom de Vries <tom@codesourcery.com>
17925
17926 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
17927
17928 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
17929 Richard Sandiford <rdsandiford@googlemail.com>
17930
17931 * arm/iterators.md (shiftable_ops): New code iterator.
17932 (t2_binop0, arith_shift_insn): New code attributes.
17933 * arm/predicates.md (shift_nomul_operator): New predicate.
17934 * arm/arm.md (insn_enabled): Delete.
17935 (enabled): Remove insn_enabled test.
17936 (*arith_shiftsi): Delete. Replace with ...
17937 (*<arith_shift_insn>_multsi): ... new pattern.
17938 (*<arith_shift_insn>_shiftsi): ... new pattern.
17939 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
17940
17941 2014-05-29 Radovan Obradovic <robradovic@mips.com>
17942 Tom de Vries <tom@codesourcery.com>
17943
17944 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
17945 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
17946 clobber.
17947 (mips_split_call): Use POST_CALL_TMP_REG.
17948 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
17949
17950 2014-05-29 Tom de Vries <tom@codesourcery.com>
17951
17952 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
17953 with #ifdef STACK_REGS.
17954
17955 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
17956
17957 * varasm.c (get_variable_section): Walk aliases.
17958 (place_block_symbol): Walk aliases.
17959
17960 2014-05-28 Tom de Vries <tom@codesourcery.com>
17961
17962 Revert:
17963 2014-05-28 Tom de Vries <tom@codesourcery.com>
17964
17965 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17966 * lra.c (initialize_lra_reg_info_element): Add init of
17967 actual_call_used_reg_set field.
17968 (lra): Call lra_create_live_ranges before lra_inheritance for
17969 -fuse-caller-save.
17970 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17971 -fuse-caller-save.
17972 * lra-constraints.c (need_for_call_save_p): Use
17973 actual_call_used_reg_set instead of call_used_reg_set for
17974 -fuse-caller-save.
17975 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17976
17977 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17978
17979 * doc/md.texi: Document that the % constraint character must
17980 be at the beginning of the string.
17981 * genoutput.c (validate_insn_alternatives): Check that '=',
17982 '+' and '%' only appear at the beginning of a constraint.
17983 * ira.c (commutative_constraint_p): Delete.
17984 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
17985 at the start of the string.
17986 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
17987 duplicate '='s.
17988 * config/arm/neon.md (bicdi3_neon): Likewise.
17989 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
17990 (slt_si, sltu_si): Likewise.
17991 * config/vax/vax.md (sbcdi3): Likewise.
17992 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
17993 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
17994 (mul64): Move '%' to beginning of constraint.
17995 * config/arm/arm.md (*xordi3_insn): Likewise.
17996 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
17997 (xorsi3): Likewise.
17998
17999 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
18000
18001 * doc/md.texi: Document the restrictions on the "enabled" attribute.
18002
18003 2014-05-28 Jason Merrill <jason@redhat.com>
18004
18005 PR c++/47202
18006 * cgraph.h (symtab_node::get_comdat_group_id): New.
18007 * cgraphunit.c (analyze_functions): Call it.
18008 * symtab.c (dump_symtab_node): Likewise.
18009 * tree.c (decl_comdat_group_id): New.
18010 * tree.h: Declare it.
18011 * lto-streamer-out.c (write_symbol): Use it.
18012 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
18013
18014 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18015
18016 PR bootstrap/PR61146
18017 * wide-int.cc: Do not include longlong.h when compiling with clang.
18018
18019 2014-05-28 Richard Biener <rguenther@suse.de>
18020
18021 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
18022 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
18023 (vrp_visit_assignment_or_call): Print less vertical space.
18024 (vrp_visit_stmt): Likewise.
18025 (vrp_visit_phi_node): Likewise. For a PHI argument with
18026 VR_VARYING range consider recording it as copy.
18027
18028 2014-05-28 Richard Biener <rguenther@suse.de>
18029
18030 Revert
18031 2014-05-28 Richard Biener <rguenther@suse.de>
18032
18033 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
18034
18035 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
18036
18037 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
18038 sufficiently aligned and an offset is used at the same time.
18039 (expand_expr_real_1): Likewise.
18040
18041 2014-05-28 Richard Biener <rguenther@suse.de>
18042
18043 PR middle-end/61045
18044 * fold-const.c (fold_comparison): When folding
18045 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
18046 the sign of the remaining constant operand stays the same.
18047
18048 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
18049
18050 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
18051 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
18052 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
18053 to the assembler.
18054 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
18055 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
18056 (m32bit-doubles) Likewise.
18057 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
18058 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
18059 option for RL78.
18060
18061 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18062
18063 * configure.ac ($gcc_cv_ld_clearcap): New test.
18064 * configure: Regenerate.
18065 * config.in: Regenerate.
18066 * config/sol2.opt (mclear-hwcap): New option.
18067 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
18068 * config/sol2-clearcap.map: Moved here from
18069 testsuite/gcc.target/i386/clearcap.map.
18070 * config/sol2-clearcapv2.map: Move here from
18071 gcc.target/i386/clearcapv2.map.
18072 * config/t-sol2 (install): Depend on install-clearcap-map.
18073 (install-clearcap-map): New target.
18074 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
18075 -mclear-hwcap.
18076
18077 2014-05-28 Richard Biener <rguenther@suse.de>
18078
18079 * hwint.h (*_HALF_WIDE_INT*): Move to ...
18080 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
18081 ... here and remove the rest.
18082 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
18083
18084 2014-05-28 Richard Biener <rguenther@suse.de>
18085
18086 PR tree-optimization/61335
18087 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
18088 new range fails, drop to varying.
18089
18090 2014-05-28 Olivier Hainque <hainque@adacore.com>
18091
18092 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
18093 (CPP_SPEC): Add entry for -mcpu=8548.
18094 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
18095 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
18096
18097 2014-05-28 Tom de Vries <tom@codesourcery.com>
18098
18099 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
18100 * lra.c (initialize_lra_reg_info_element): Add init of
18101 actual_call_used_reg_set field.
18102 (lra): Call lra_create_live_ranges before lra_inheritance for
18103 -fuse-caller-save.
18104 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
18105 -fuse-caller-save.
18106 * lra-constraints.c (need_for_call_save_p): Use
18107 actual_call_used_reg_set instead of call_used_reg_set for
18108 -fuse-caller-save.
18109 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
18110
18111 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18112 Tom de Vries <tom@codesourcery.com>
18113
18114 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
18115 to gccoptlist.
18116 (@item -fuse-caller-save): New item.
18117
18118 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18119 Tom de Vries <tom@codesourcery.com>
18120
18121 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
18122 OPT_fuse_caller_save.
18123
18124 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18125 Tom de Vries <tom@codesourcery.com>
18126
18127 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
18128 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
18129 get_call_reg_set_usage.
18130 * resource.c (mark_set_resources, mark_target_live_regs): Use
18131 get_call_reg_set_usage.
18132 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
18133 field.
18134 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
18135 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
18136 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18137 * ira-build.c (ira_create_allocno): Init
18138 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18139 (create_cap_allocno, propagate_allocno_info)
18140 (propagate_some_info_from_allocno)
18141 (copy_info_to_removed_store_destinations): Handle
18142 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18143 * ira-costs.c (ira_tune_allocno_costs): Use
18144 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
18145
18146 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18147 Tom de Vries <tom@codesourcery.com>
18148
18149 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
18150 and function_used_regs_valid fields.
18151 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
18152 find_all_hard_reg_sets.
18153 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
18154 (get_call_reg_set_usage): New function.
18155 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
18156 * regs.h (get_call_reg_set_usage): Declare.
18157
18158 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
18159
18160 PR libgcc/61152
18161 * config/dbx.h (License): Add Runtime Library Exception.
18162 * config/newlib-stdint.h (License): Same.
18163 * config/rtems.h (License): Same
18164 * config/initfini-array.h (License): Same
18165 * config/v850/v850.h (License): Same.
18166 * config/v850/v850-opts.h (License): Same
18167 * config/v850/rtems.h (License): Same.
18168
18169 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
18170
18171 PR target/61044
18172 * doc/extend.texi (Local Labels): Note that label differences are
18173 not supported for AVR.
18174
18175 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
18176 Olivier Hainque <hainque@adacore.com>
18177
18178 * rtl.h (set_for_reg_notes): Declare.
18179 * emit-rtl.c (set_for_reg_notes): New function.
18180 (set_unique_reg_note): Use it.
18181 * optabs.c (add_equal_note): Likewise
18182
18183 2014-05-27 Andrew Pinski <apinski@cavium.com>
18184
18185 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
18186 Use <w> for the register in assembly template.
18187 (stack_protect_test): Use the mode of operands[0] for the result.
18188 (stack_protect_test_<mode>): Use <w> for the register
18189 in assembly template.
18190
18191 2014-05-27 DJ Delorie <dj@redhat.com>
18192
18193 * config/rx/rx.c (add_vector_labels): New.
18194 (rx_output_function_prologue): Call it.
18195 (rx_handle_func_attribute): Don't require empty arguments.
18196 (rx_handle_vector_attribute): New.
18197 (rx_attribute_table): Add "vector" attribute.
18198 * doc/extend.texi (interrupt, vector): Document new/changed
18199 RX-specific attributes.
18200
18201 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
18202
18203 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
18204
18205 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
18206 predicate to detect a negative quotient.
18207
18208 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
18209
18210 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
18211 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
18212 Add X - Y CMP 0 to X CMP Y transformation.
18213 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
18214
18215 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
18216
18217 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
18218 before printing.
18219
18220 2014-05-27 Steve Ellcey <sellcey@mips.com>
18221
18222 * config/mips/mips.c: Add include of cgraph.h.
18223
18224 2014-05-27 Richard Biener <rguenther@suse.de>
18225
18226 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
18227
18228 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
18229
18230 PR libgcc/61152
18231 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
18232 * config/arm/arm-cores.def (License): Same.
18233 * config/arm/arm-opts.h (License): Same.
18234 * config/arm/aout.h (License): Same.
18235 * config/arm/bpabi.h (License): Same.
18236 * config/arm/elf.h (License): Same.
18237 * config/arm/linux-elf.h (License): Same.
18238 * config/arm/linux-gas.h (License): Same.
18239 * config/arm/netbsd-elf.h (License): Same.
18240 * config/arm/uclinux-eabi.h (License): Same.
18241 * config/arm/uclinux-elf.h (License): Same.
18242 * config/arm/vxworks.h (License): Same.
18243
18244 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18245
18246 * config/arm/neon.md (neon_bswap<mode>): New pattern.
18247 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
18248 (arm_init_neon_builtins): Handle NEON_BSWAP.
18249 Define required type nodes.
18250 (arm_expand_neon_builtin): Handle NEON_BSWAP.
18251 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
18252 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
18253 * config/arm/iterators.md (VDQHSD): New mode iterator.
18254
18255 2014-05-27 Richard Biener <rguenther@suse.de>
18256
18257 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18258 Try using literal operands when comparing value-ranges failed.
18259
18260 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
18261
18262 * ira.c (commutative_operand): Adjust for change to recog_data.
18263 [Missing from previous commit.]
18264
18265 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
18266
18267 * system.h (TEST_BIT): New macro.
18268 * recog.h (alternative_mask): New type.
18269 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
18270 (recog_data_d): Replace alternative_enabled_p array with
18271 enabled_alternatives.
18272 (target_recog): New structure.
18273 (default_target_recog, this_target_recog): Declare.
18274 (get_enabled_alternatives, recog_init): Likewise.
18275 * recog.c (default_target_recog, this_target_recog): New variables.
18276 (get_enabled_alternatives): New function.
18277 (extract_insn): Use it.
18278 (recog_init): New function.
18279 (preprocess_constraints, constrain_operands): Adjust for change to
18280 recog_data.
18281 * postreload.c (reload_cse_simplify_operands): Likewise.
18282 * reload.c (find_reloads): Likewise.
18283 * ira-costs.c (record_reg_classes): Likewise.
18284 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
18285 all alternatives after a disabled one would be skipped.
18286 (ira_implicitly_set_insn_hard_regs): Likewise.
18287 * ira.c (ira_setup_alts): Adjust for change to recog_data.
18288 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
18289 with enabled_alternatives.
18290 * lra.c (free_insn_recog_data): Update accordingly.
18291 (lra_update_insn_recog_data): Likewise.
18292 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
18293 * lra-constraints.c (process_alt_operands): Likewise. Handle
18294 only_alternative as part of the enabled mask.
18295 * target-globals.h (this_target_recog): Declare.
18296 (target_globals): Add a recog field.
18297 (restore_target_globals): Restore this_target_recog.
18298 * target-globals.c: Include recog.h.
18299 (default_target_globals): Initialize recog field.
18300 (save_target_globals): Likewise.
18301 * reginfo.c (reinit_regs): Call recog_init.
18302 * toplev.c (backend_init_target): Likewise.
18303
18304 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
18305
18306 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
18307 rather than any named insn's code.
18308
18309 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
18310
18311 PR libgcc/61152
18312 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
18313 * config/arm/arm-cores.def (License): Same.
18314
18315 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
18316
18317 * tree.h (decl_comdat_group): Declare.
18318 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
18319 * tree.c (decl_comdat_group): Here.
18320
18321 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
18322
18323 PR rtl-optimization/61222
18324 * combine.c (simplify_shift_const_1): When moving a PLUS outside
18325 the shift, truncate the PLUS operand to the result mode.
18326
18327 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
18328
18329 PR target/61271
18330 * config/i386/i386.c (ix86_rtx_costs)
18331 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
18332 Fix condition.
18333
18334 2014-05-26 Martin Jambor <mjambor@suse.cz>
18335
18336 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
18337 subreg uses.
18338
18339 2014-05-26 Richard Biener <rguenther@suse.de>
18340
18341 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
18342 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
18343 Provide specializations.
18344 (wi::int_traits <HOST_WIDE_INT>,
18345 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
18346
18347 2014-05-26 Alan Modra <amodra@gmail.com>
18348
18349 PR target/61098
18350 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
18351 params and return a bool. Remove dead code. Update comment.
18352 Assert we have a const_int source. Remove bogus code from
18353 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
18354 handling of constants > 2G and reg_equal note, from..
18355 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
18356 return value. Update comment. If we can, use a new pseudo
18357 for intermediate calculations.
18358 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
18359 prototype.
18360 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
18361 call to rs6000_emit_set_const in splitter.
18362 (movdi_internal64+2, +3): Likewise.
18363
18364 2014-05-26 Richard Biener <rguenther@suse.de>
18365
18366 * system.h: Define __STDC_FORMAT_MACROS before
18367 including inttypes.h.
18368 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
18369 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
18370 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
18371 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
18372 HOST_WIDEST_INT_C): Remove.
18373 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
18374 if C99 inttypes.h is not available.
18375 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
18376 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
18377 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
18378 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
18379 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
18380 (struct output_info): Likewise.
18381 (print_statistics): Adjust.
18382 (dump_bitmap_statistics): Likewise.
18383 * bt-load.c (migrate_btr_defs): Print with PRId64.
18384 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
18385 (MAX_SAFE_MULTIPLIER): Adjust.
18386 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
18387 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
18388 dump_cgraph_node): Likewise.
18389 * final.c (dump_basic_block_info): Likewise.
18390 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
18391 * gcov.c (format_gcov): Likewise.
18392 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
18393 for calculation.
18394 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
18395 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
18396 (inline_small_functions, dump_overall_stats, dump_inline_stats):
18397 Use PRId64 for dumping.
18398 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
18399 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
18400 (add_allocno_hard_regs): Adjust.
18401 * loop-doloop.c (doloop_modify): Print using PRId64.
18402 * loop-iv.c (inverse): Compute in uint64_t.
18403 (determine_max_iter, iv_number_of_iterations): Likewise.
18404 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
18405 Print using PRId64.
18406 * lto-streamer-out.c (write_symbol): Use uint64_t.
18407 * mcf.c (CAP_INFINITY): Use int64_t maximum.
18408 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
18409 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
18410 * modulo-sched.c (const_iteration_count): Use int64_t.
18411 (sms_schedule): Dump using PRId64.
18412 * predict.c (dump_prediction): Likewise.
18413 * pretty-print.h (pp_widest_integer): Remove.
18414 * profile.c (get_working_sets, is_edge_inconsistent,
18415 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
18416 * tree-pretty-print.c (pp_double_int): Remove case handling
18417 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
18418 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
18419 and adjust users.
18420 (pass_optimize_bswap::execute): Remove restriction on hosts.
18421 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
18422 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
18423 * tree.c (widest_int_cst_value): Remove.
18424 * tree.h (widest_int_cst_value): Likewise.
18425 * value-prof.c (dump_histogram_value): Print using PRId64.
18426 * gengtype.c (main): Also inject int64_t.
18427 * ggc-page.c (struct max_alignment): Use int64_t.
18428 * alloc-pool.c (struct allocation_object_def): Likewise.
18429 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
18430 for computation.
18431 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
18432 * doc/tm.texi: Regenerated.
18433 * gengtype-lex.l (IWORD): Handle [u]int64_t.
18434 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
18435 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
18436 mmix_output_register_setting): Use [u]int64_t in prototypes.
18437 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
18438 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
18439 mmix_output_octa, mmix_output_shifted_value): Adjust.
18440 (mmix_intval): Adjust. Remove unreachable case.
18441 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
18442
18443 2014-05-26 Richard Biener <rguenther@suse.de>
18444
18445 * configure.ac: Drop __int64 type check. Insist that we
18446 found uint64_t and int64_t.
18447 * hwint.h (HOST_BITS_PER___INT64): Remove.
18448 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
18449 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
18450 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
18451 (HOST_WIDEST_FAST_INT): Remove __int64 case.
18452 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
18453 for dst_q_src_df_rms_cdt.
18454 * configure: Regenerate.
18455 * config.in: Likewise.
18456
18457 2014-05-26 Michael Tautschnig <mt@debian.org>
18458
18459 PR target/61249
18460 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
18461 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
18462
18463 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18464
18465 PR rtl-optimization/61278
18466 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
18467
18468 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18469
18470 PR rtl-optimization/61220
18471 Part of PR rtl-optimization/61225
18472 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
18473 insn; skip split_edge for a block with only one successor.
18474
18475 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18476
18477 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
18478 for variables.
18479
18480 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18481
18482 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
18483 (update_vtable_references): New function.
18484 (function_and_variable_visibility): Rewrite also vtable initializers.
18485 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
18486
18487 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18488
18489 * ggc.h (ggc_grow): New function.
18490 * ggc-none.c (ggc_grow): New function.
18491 * ggc-page.c (ggc_grow): Likewise.
18492
18493 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18494
18495 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
18496 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
18497 comdat_can_be_unshared_p, cgraph_externally_visible_p,
18498 varpool_externally_visible_p, can_replace_by_local_alias,
18499 update_visibility_by_resolution_info, function_and_variable_visibility,
18500 pass_data_ipa_function_and_variable_visibility,
18501 make_pass_ipa_function_and_variable_visibility,
18502 whole_program_function_and_variable_visibility,
18503 pass_data_ipa_whole_program_visibility,
18504 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
18505 * cgraph.h (cgraph_local_node_p): Declare.
18506 * ipa-visibility.c: New file.
18507 * Makefile.in (OBJS): Add ipa-visiblity.o
18508
18509 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18510
18511 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
18512 that var decl is available.
18513
18514 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18515
18516 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
18517 symtab_node pointer.
18518 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
18519 (find_decls_types_r): Do not walk COMDAT_GROUP.
18520 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
18521 * varasm.c (make_decl_one_only): Use set_comdat_group;
18522 create node if needed.
18523 * ipa-inline-transform.c (save_inline_function_body): Update
18524 way we decl->symtab mapping.
18525 * symtab.c (symtab_hash, hash_node, eq_node
18526 symtab_insert_node_to_hashtable): Remove.
18527 (symtab_register_node): Update.
18528 (symtab_unregister_node): Update.
18529 (symtab_get_node): Reimplement as inline function.
18530 (symtab_add_to_same_comdat_group): Update.
18531 (symtab_dissolve_same_comdat_group_list): Update.
18532 (dump_symtab_base): Update.
18533 (verify_symtab_base): Update.
18534 (symtab_make_decl_local): Update.
18535 (fixup_same_cpp_alias_visibility): Update.
18536 (symtab_nonoverwritable_alias): Update.
18537 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
18538 * ipa.c (update_visibility_by_resolution_info): UPdate.
18539 * bb-reorder.c: Include cgraph.h
18540 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
18541 with comdat groups.
18542 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
18543 * cgraph.c (cgraph_get_create_node): Update.
18544 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
18545 and comdat_group_.
18546 (symtab_get_node): Make inline.
18547 (symtab_insert_node_to_hashtable): Remove.
18548 (symtab_can_be_discarded): Update.
18549 (decl_comdat_group): New function.
18550 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
18551 Update.
18552 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
18553 comdat group name.
18554 (read_comdat_group): New function.
18555 (input_node, input_varpool_node): Use it.
18556 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
18557 comdat groups.
18558 * mips.c (mips_start_unique_function): Likewise.
18559 (ix86_code_end): Likewise.
18560 (rs6000_code_end): Likweise.
18561 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
18562
18563 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18564
18565 * gengtype-state.c (fatal_reading_state): Bring offline.
18566 * optabs.c (widening_optab_handler): Bring offline.
18567 * optabs.h (widening_optab_handler): Likewise.
18568 * final.c (get_attr_length_1): Likewise.
18569
18570 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18571
18572 * sched-int.h (sd_iterator_cond): Manually tail recurse.
18573
18574 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18575
18576 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
18577 (ppc440-compare): Include shift with dot.
18578 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
18579 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
18580 without dot.
18581 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
18582 without dot.
18583 (e6500_sfx2): Include it.
18584 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
18585 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
18586 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
18587 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
18588 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
18589 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
18590 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
18591 *lshiftrt_internal1le, *lshiftrt_internal1be,
18592 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
18593 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
18594 *rotldi3_internal10le, *rotldi3_internal10be,
18595 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
18596 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
18597 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
18598 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
18599 define_insns): Use type "shift" in the appropriate alternatives.
18600
18601 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18602
18603 * config/rs6000/rs6000.md (type): Add "logical". Delete
18604 "fast_compare".
18605 (dot): Adjust comment.
18606 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
18607 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
18608 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
18609 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
18610 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
18611 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
18612 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
18613 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
18614
18615 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18616 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
18617 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18618 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18619 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18620 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18621 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18622 * config/rs6000/8540.md (ppc8540_su): Adjust.
18623 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18624 cell-cmp-microcoded): Adjust.
18625 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
18626 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18627 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
18628 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
18629 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
18630 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18631 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
18632 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
18633 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
18634 Adjust.
18635 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
18636 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
18637 Adjust. Adjust comment.
18638 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18639 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
18640
18641 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18642
18643 * config/rs6000/rs6000.md (type): Add "add".
18644 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
18645 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
18646 define_insns): Use it.
18647 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
18648
18649 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18650 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
18651 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18652 * config/rs6000/601.md (ppc601-integer): Adjust.
18653 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18654 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18655 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18656 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18657 * config/rs6000/8540.md (ppc8540_su): Adjust.
18658 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18659 cell-cmp-microcoded): Adjust.
18660 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
18661 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18662 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
18663 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
18664 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
18665 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18666 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
18667 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
18668 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
18669 Adjust.
18670 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
18671 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
18672 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18673 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
18674
18675 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18676
18677 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
18678 "delayed_compare", "var_delayed_compare".
18679 (var_shift): New attribute.
18680 (cell_micro): Adjust.
18681 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
18682 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
18683 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
18684 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
18685 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
18686 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
18687 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
18688 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
18689 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
18690 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
18691 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
18692 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
18693 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
18694 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
18695 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
18696 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
18697 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
18698 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
18699 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
18700 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
18701 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
18702 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
18703 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
18704 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18705 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18706
18707 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18708 * config/rs6000/440.md (ppc440-integer): Adjust.
18709 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18710 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
18711 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18712 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18713 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18714 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18715 * config/rs6000/8540.md (ppc8540_su): Adjust.
18716 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18717 cell-cmp-microcoded): Adjust.
18718 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
18719 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18720 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
18721 e500mc64_delayed): Adjust.
18722 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
18723 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
18724 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18725 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
18726 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
18727 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
18728 power6-delayed-compare, power6-var-delayed-compare): Adjust.
18729 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
18730 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
18731 Adjust comment.
18732 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18733 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18734
18735 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18736
18737 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
18738 (bits): New mode_attr.
18739 (idiv_ldiv): Delete mode_attr.
18740 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
18741 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18742 rs6000_adjust_priority, is_nonpipeline_insn,
18743 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18744
18745 * config/rs6000/40x.md (ppc403-idiv): Adjust.
18746 * config/rs6000/440.md (ppc440-idiv): Adjust.
18747 * config/rs6000/476.md (ppc476-idiv): Adjust.
18748 * config/rs6000/601.md (ppc601-idiv): Adjust.
18749 * config/rs6000/603.md (ppc603-idiv): Adjust.
18750 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
18751 ppc620-ldiv): Adjust.
18752 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
18753 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
18754 * config/rs6000/8540.md (ppc8540_divide): Adjust.
18755 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
18756 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
18757 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
18758 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
18759 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
18760 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
18761 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
18762 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
18763 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
18764 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
18765 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
18766 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
18767 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
18768 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
18769 * config/rs6000/titan.md (titan_fxu_div): Adjust.
18770
18771 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18772
18773 * config/rs6000/rs6000.md (type): Delete "insert_word",
18774 "insert_dword". Add "insert".
18775 (size): Update comment.
18776 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18777 insn_must_be_first_in_group): Adjust.
18778 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
18779 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
18780 *insvsi_internal6, insvdi_internal): Adjust.
18781
18782 * config/rs6000/40x.md (ppc403-integer): Adjust.
18783 * config/rs6000/440.md (ppc440-integer): Adjust.
18784 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
18785 * config/rs6000/601.md (ppc601-integer): Adjust.
18786 * config/rs6000/603.md (ppc603-integer): Adjust.
18787 * config/rs6000/6xx.md (ppc604-integer): Adjust.
18788 * config/rs6000/7450.md (ppc7450-integer): Adjust.
18789 * config/rs6000/7xx.md (ppc750-integer): Adjust.
18790 * config/rs6000/8540.md (ppc8540_su): Adjust.
18791 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
18792 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
18793 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18794 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
18795 * config/rs6000/e5500.md (e5500_sfx): Adjust.
18796 * config/rs6000/e6500.md (e6500_sfx): Adjust.
18797 * config/rs6000/mpc.md (mpccore-integer): Adjust.
18798 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
18799 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
18800 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
18801 * config/rs6000/power7.md (power7-integer): Adjust.
18802 * config/rs6000/power8.md (power8-1cyc): Adjust.
18803 * config/rs6000/rs64.md (rs64a-integer): Adjust.
18804 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18805
18806 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18807
18808 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
18809 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
18810 (size): New attribute.
18811 (dot): New attribute.
18812 (cell_micro): Adjust.
18813 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
18814 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
18815 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
18816 umuldi3_highpart): Adjust.
18817 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18818 rs6000_adjust_priority, is_nonpipeline_insn,
18819 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18820
18821 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
18822 ppc405-imul3): Adjust.
18823 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
18824 * config/rs6000/476.md (ppc476-imul): Adjust.
18825 * config/rs6000/601.md (ppc601-imul): Adjust.
18826 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
18827 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
18828 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
18829 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
18830 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
18831 Adjust.
18832 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
18833 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
18834 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
18835 cell-imul): Adjust.
18836 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
18837 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
18838 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
18839 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
18840 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
18841 * config/rs6000/mpc.md (mpccore-imul): Adjust.
18842 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
18843 power4-lmul, power4-imul, power4-imul3): Adjust.
18844 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
18845 power5-lmul, power5-imul, power5-imul3): Adjust.
18846 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
18847 power6-lmul, power6-imul, power6-imul3): Adjust.
18848 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
18849 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
18850
18851 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
18852 rs64a-lmul): Adjust.
18853 * config/rs6000/titan.md (titan_imul): Adjust.
18854
18855 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18856
18857 * config/rs6000/rs6000.md (type): Add new value "halfmul".
18858 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
18859 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
18860 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
18861 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
18862 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
18863 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
18864 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
18865 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
18866 * config/rs6000/titan.md: Delete nonsensical comment.
18867 (titan_imul): Add type imul3.
18868 (titan_mulhw): Remove type imul3; add type halfmul.
18869
18870 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18871
18872 * config/rs6000/rs6000.md (type): Reorder, reformat.
18873
18874 2014-05-23 Martin Jambor <mjambor@suse.cz>
18875
18876 PR tree-optimization/53787
18877 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
18878 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
18879 analysis_done, update all uses.
18880 * ipa-prop.c: Include domwalk.h
18881 (param_analysis_info): Removed.
18882 (param_aa_status): New type.
18883 (ipa_bb_info): Likewise.
18884 (func_body_info): Likewise.
18885 (ipa_get_bb_info): New function.
18886 (aa_overwalked): Likewise.
18887 (find_dominating_aa_status): Likewise.
18888 (parm_bb_aa_status_for_bb): Likewise.
18889 (parm_preserved_before_stmt_p): Changed to use new param AA info.
18890 (load_from_unmodified_param): Accept func_body_info as a parameter
18891 instead of parms_ainfo.
18892 (parm_ref_data_preserved_p): Changed to use new param AA info.
18893 (parm_ref_data_pass_through_p): Likewise.
18894 (ipa_load_from_parm_agg_1): Likewise. Update callers.
18895 (compute_complex_assign_jump_func): Changed to use new param AA info.
18896 (compute_complex_ancestor_jump_func): Likewise.
18897 (ipa_compute_jump_functions_for_edge): Likewise.
18898 (ipa_compute_jump_functions): Removed.
18899 (ipa_compute_jump_functions_for_bb): New function.
18900 (ipa_analyze_indirect_call_uses): Likewise, moved variable
18901 declarations down.
18902 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
18903 and info, moved variable declarations down.
18904 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
18905 node and info.
18906 (ipa_analyze_stmt_uses): Likewise.
18907 (ipa_analyze_params_uses): Removed.
18908 (ipa_analyze_params_uses_in_bb): New function.
18909 (ipa_analyze_controlled_uses): Likewise.
18910 (free_ipa_bb_info): Likewise.
18911 (analysis_dom_walker): New class.
18912 (ipa_analyze_node): Handle node-specific forbidden analysis,
18913 initialize and free func_body_info, use dominator walker.
18914 (ipcp_modif_dom_walker): New class.
18915 (ipcp_transform_function): Create and free func_body_info, use
18916 ipcp_modif_dom_walker, moved a lot of functionality there.
18917
18918 2014-05-23 Marek Polacek <polacek@redhat.com>
18919 Jakub Jelinek <jakub@redhat.com>
18920
18921 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
18922 * gcc.c (sanitize_spec_function): Likewise.
18923 * convert.c (convert_to_integer): Include "ubsan.h". Add
18924 floating-point to integer instrumentation.
18925 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
18926 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
18927 SANITIZE_NONDEFAULT.
18928 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
18929 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
18930 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
18931 * ubsan.c: Include "realmpfr.h" and "dfp.h".
18932 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
18933 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
18934 float/double/long double.
18935 (ubsan_instrument_float_cast): New function.
18936 * ubsan.h (ubsan_instrument_float_cast): Declare.
18937
18938 2014-05-23 Jiong Wang <jiong.wang@arm.com>
18939
18940 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
18941 predicate.
18942 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
18943 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
18944 Adjust for tailcalling through registers.
18945 * config/aarch64/aarch64.h (enum reg_class): New caller save
18946 register class.
18947 (REG_CLASS_NAMES): Likewise.
18948 (REG_CLASS_CONTENTS): Likewise.
18949 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
18950 Allow tailcalling without decls.
18951
18952 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
18953
18954 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
18955 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
18956
18957 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
18958 gsi, and variables v_* to v*.
18959
18960 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
18961
18962 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
18963
18964 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
18965
18966 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
18967 * omp-low.c: Update accordingly.
18968
18969 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
18970 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
18971 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
18972 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
18973 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
18974 GF_OMP_TARGET_KIND_UPDATE.
18975
18976 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
18977 Explicitly enumerate the expected region types.
18978
18979 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
18980
18981 PR other/56955
18982 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
18983 documentation; the old documentation didn't clearly state the
18984 constraints on the contents of the pointed-to storage.
18985
18986 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18987
18988 Fix bootstrap error on ia64
18989 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
18990 Return default value.
18991
18992 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
18993
18994 PR tree-optimization/54733
18995 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
18996 (CMPNOP): Define.
18997 (find_bswap_or_nop_load): New.
18998 (find_bswap_1): Renamed to ...
18999 (find_bswap_or_nop_1): This. Also add support for memory source.
19000 (find_bswap): Renamed to ...
19001 (find_bswap_or_nop): This. Also add support for memory source and
19002 detection of bitwise operations equivalent to load in target
19003 endianness.
19004 (execute_optimize_bswap): Likewise. Also move its leading comment back
19005 in place and split statement transformation into ...
19006 (bswap_replace): This.
19007
19008 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
19009
19010 PR rtl-optimization/61215
19011 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
19012 simplify_gen_subreg until final substitution.
19013
19014 2014-05-23 Alan Modra <amodra@gmail.com>
19015
19016 PR target/61231
19017 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
19018 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
19019 Use "Y" constraint rather than "m".
19020
19021 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
19022
19023 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
19024 define.
19025 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
19026 New function declaration.
19027 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
19028 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
19029 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
19030 (aarch64_init_builtins) : Initialize builtins
19031 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
19032 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
19033 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
19034 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
19035 and __builtins_aarch64_set_fpsr.
19036 (aarch64_atomic_assign_expand_fenv): New function.
19037 * config/aarch64/aarch64.md (set_fpcr): New pattern.
19038 (get_fpcr) : Likewise.
19039 (set_fpsr) : Likewise.
19040 (get_fpsr) : Likewise.
19041 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
19042 and UNSPECV_SET_FPSR.
19043 * doc/extend.texi (AARCH64 Built-in Functions) : Document
19044 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
19045 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
19046
19047 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
19048
19049 PR rtl-optimization/60969
19050 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
19051 constraints. Set up mem cost for NO_REGS case.
19052
19053 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
19054
19055 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
19056
19057 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
19058
19059 * config/darwin.c: Include "lto-section-names.h".
19060 (LTO_SEGMENT_NAME): Don't define.
19061 * config/i386/winnt.c: Include "lto-section-names.h".
19062 * lto-streamer.c: Include "lto-section-names.h".
19063 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
19064 * lto-wrapper.c: Include "lto-section-names.h".
19065 (LTO_SECTION_NAME_PREFIX): Don't define.
19066 * lto-section-names.h: New file.
19067 * cgraphunit.c: Include "lto-section-names.h".
19068
19069 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
19070
19071 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
19072
19073 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
19074
19075 PR target/61208
19076 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
19077
19078 2014-05-22 Nick Clifton <nickc@redhat.com>
19079
19080 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
19081
19082 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
19083
19084 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
19085 -> (T)A transformation to integer types.
19086
19087 2014-05-22 Teresa Johnson <tejohnson@google.com>
19088
19089 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
19090 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
19091 (gcov_rewrite): Use gcov_nonruntime_assert.
19092 (gcov_open): Ditto.
19093 (gcov_write_words): Ditto.
19094 (gcov_write_length): Ditto.
19095 (gcov_read_words): Use gcov_nonruntime_assert, and remove
19096 gcc_assert from IN_LIBGCOV code.
19097 (gcov_read_summary): Use gcov_error to flag profile corruption.
19098 (gcov_sync): Use gcov_nonruntime_assert.
19099 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
19100 (gcov_histo_index): Use gcov_nonruntime_assert.
19101 (static void gcov_histogram_merge): Ditto.
19102 (compute_working_sets): Ditto.
19103 * gcov-io.h (gcov_nonruntime_assert): Define.
19104 (gcov_error): Define for !IN_LIBGCOV
19105
19106 2014-05-22 Richard Biener <rguenther@suse.de>
19107
19108 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
19109 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
19110 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
19111 and deallocation site.
19112 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19113 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
19114 passing through the incoming points-to set.
19115 (handle_lhs_call): Use flags argument instead of recomputing it.
19116 (find_func_aliases_for_call): Call handle_lhs_call with proper
19117 call return flags.
19118
19119 2014-05-22 Jakub Jelinek <jakub@redhat.com>
19120
19121 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
19122 all padding bits in REAL_VALUE_TYPE are cleared.
19123
19124 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19125
19126 Cleanup and improve multipass_dfa_lookahead_guard
19127 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
19128 (core2i7_first_cycle_multipass_begin,)
19129 (core2i7_first_cycle_multipass_issue,)
19130 (core2i7_first_cycle_multipass_backtrack): Update signature.
19131 * config/ia64/ia64.c
19132 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
19133 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
19134 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
19135 hook definition.
19136 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
19137 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
19138 values.
19139 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
19140 return values.
19141 * doc/tm.texi: Regenerate.
19142 * doc/tm.texi.in
19143 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
19144 * haifa-sched.c (ready_try): Make signed to allow negative values.
19145 (rebug_ready_list_1): Update.
19146 (choose_ready): Simplify.
19147 (sched_extend_ready_list): Update.
19148
19149 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19150
19151 Remove IA64 speculation tweaking flags
19152 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
19153 speculation tuning flags.
19154 (msched-prefer-non-data-spec-insns,)
19155 (msched-prefer-non-control-spec-insns): Obsolete options.
19156 * haifa-sched.c (choose_ready): Remove handling of
19157 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
19158 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
19159 and PREFER_NON_DATA_SPEC.
19160 * sel-sched.c (process_spec_exprs): Remove handling of
19161 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
19162
19163 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19164
19165 Improve scheduling debug output
19166 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
19167 (advance_one_cycle): Update.
19168 (schedule_insn, queue_to_ready): Add debug printouts.
19169 (debug_ready_list_1): New static function.
19170 (debug_ready_list): Update.
19171 (max_issue): Add debug printouts.
19172 (dump_insn_stream): New static function.
19173 (schedule_block): Use it. Also better indent printouts.
19174
19175 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19176
19177 Fix sched_insn debug counter
19178 * haifa-sched.c (schedule_insn): Update.
19179 (struct haifa_saved_data): Add nonscheduled_insns_begin.
19180 (save_backtrack_point, restore_backtrack_point): Update.
19181 (first_nonscheduled_insn): New static function.
19182 (queue_to_ready, choose_ready): Use it.
19183 (schedule_block): Init nonscheduled_insns_begin.
19184 (sched_emit_insn): Update.
19185
19186
19187 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
19188
19189 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
19190 to GENERAL_REGS.
19191 (aarch64_secondary_reload) : LikeWise.
19192 (aarch64_class_max_nregs) : Remove CORE_REGS.
19193 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
19194 (REG_CLASS_NAMES) : Likewise.
19195 (REG_CLASS_CONTENTS) : LikeWise.
19196 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
19197
19198 2014-05-21 Guozhi Wei <carrot@google.com>
19199
19200 PR target/61202
19201 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
19202 constraint.
19203 (vqdmulhq_n_s16): Likewise.
19204
19205 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
19206
19207 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
19208
19209 2014-05-21 Marek Polacek <polacek@redhat.com>
19210
19211 PR sanitizer/61272
19212 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
19213
19214 2014-05-21 Martin Jambor <mjambor@suse.cz>
19215
19216 * doc/invoke.texi (Optimize Options): Document parameters
19217 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
19218 ipa-cp-array-index-hint-bonus.
19219
19220 2014-05-21 Mark Wielaard <mjw@redhat.com>
19221
19222 PR debug/16063
19223 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
19224 version >= 3 or not strict DWARF.
19225 * langhooks.h (struct lang_hooks_for_types): Add
19226 enum_underlying_base_type.
19227 * langhooks.c (lhd_enum_underlying_base_type): New function.
19228 * gcc/langhooks.h (struct lang_hooks_for_types): Add
19229 enum_underlying_base_type.
19230 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
19231 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
19232 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
19233
19234 2014-05-21 Richard Biener <rguenther@suse.de>
19235
19236 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
19237
19238 2014-05-21 John Marino <gnugcc@marino.st>
19239
19240 * config.gcc (*-*-dragonfly*): New target.
19241 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
19242 * configure: Regenerate.
19243 * config/dragonfly-stdint.h: New.
19244 * config/dragonfly.h: New.
19245 * config/dragonfly.opt: New.
19246 * config/i386/dragonfly.h: New.
19247 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
19248
19249 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19250
19251 * tree.def (VOID_CST): New.
19252 * tree-core.h (TI_VOID): New.
19253 * tree.h (void_node): New.
19254 * tree.c (tree_node_structure_for_code, tree_code_size)
19255 (iterative_hash_expr): Handle VOID_CST.
19256 (build_common_tree_nodes): Initialize void_node.
19257
19258 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
19259
19260 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
19261 functions.
19262 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
19263
19264 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
19265 more places.
19266
19267 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
19268 flag_reorder_blocks_and_partition.
19269 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
19270
19271 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
19272
19273 PR target/54236
19274 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
19275 constraints.
19276 (*addc_r_t): Add new insn_and_split.
19277
19278 2014-05-21 Jakub Jelinek <jakub@redhat.com>
19279
19280 PR middle-end/61252
19281 * omp-low.c (handle_simd_reference): New function.
19282 (lower_rec_input_clauses): Use it. Defer adding reference
19283 initialization even for reduction without placeholder if in simd,
19284 handle it properly later on.
19285
19286 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19287
19288 PR tree-optimization/60899
19289 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
19290 assume all static symbols will have definition wile parsing and
19291 check the do have definition later in compilation; check that
19292 variable referring symbol will be output before concluding that
19293 reference is safe; be conservative for referring local statics;
19294 be more precise about when comdat is output in other partition.
19295
19296 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19297
19298 PR bootstrap/60984
19299 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
19300 parameter.
19301 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
19302 (ipa_inline): Loop inline_to_all_callers until no more aliases
19303 are removed.
19304
19305 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19306
19307 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
19308 set writeonly flag only for vars actually written to.
19309
19310 2014-05-20 Dehao Chen <dehao@google.com>
19311
19312 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
19313 and callee count to get clone count.
19314 * tree-inline.c (expand_call_inline): Use callee count instead of bb
19315 count in copy_body.
19316
19317 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
19318
19319 PR rtl-optimization/61243
19320 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
19321
19322 2014-05-20 Xinliang David Li <davidxl@google.com>
19323
19324 * cgraphunit.c (walk_polymorphic_call_targets): Add
19325 dbgcnt and fopt-info support.
19326 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
19327 * ipa-devirt.c (ipa_devirt): Ditto.
19328 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
19329 * ipa.c (walk_polymorphic_call_targets): Ditto.
19330 * gimple-fold.c (fold_gimple_assign): Ditto.
19331 (gimple_fold_call): Ditto.
19332 * dbgcnt.def: New counter.
19333
19334 2014-05-20 DJ Delorie <dj@redhat.com>
19335
19336 * config/msp430/msp430.md (split): Don't allow subregs when
19337 splitting SImode adds.
19338 (andneghi): Fix subtraction logic.
19339 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
19340
19341 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19342
19343 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
19344 symbols.
19345 * except.c (switch_to_exception_section, resolve_unique_section,
19346 get_named_text_section, default_function_rodata_section,
19347 align_variable, get_block_for_decl, default_section_type_flags):
19348 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
19349 * symtab.c (symtab_add_to_same_comdat_group,
19350 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
19351 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
19352 Likewise.
19353 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
19354 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
19355 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
19356 (c6x_function_in_section_p): Likewise.
19357 * config/darwin.c (machopic_select_section): Likewise.
19358 * config/arm/arm.c (arm_function_in_section_p): Likewise.
19359 * config/mips/mips.c (mips_function_rodata_section): Likewise.
19360 * config/mep/mep.c (mep_select_section): LIkewise.
19361 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
19362
19363 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
19364
19365 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
19366 EH region of calls to pure functions that can throw an exception.
19367 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
19368 (copy_reference_ops_from_call): Also copy the EH region of the call if
19369 it can throw an exception.
19370
19371 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19372
19373 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
19374 nested VEC_SELECTs that are inverses of each other.
19375
19376 2014-05-20 Richard Biener <rguenther@suse.de>
19377
19378 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
19379 (extract_and_process_scc_for_name): not here.
19380 (cond_dom_walker::before_dom_children): Only process
19381 stmts that end the BB in interesting ways.
19382 (run_scc_vn): Mark param uses as visited.
19383
19384 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19385
19386 * config/arm/arm.md (arith_shiftsi): Do not predicate for
19387 arm_restrict_it.
19388
19389 2014-05-20 Nick Clifton <nickc@redhat.com>
19390
19391 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
19392 (msp430_gimplify_va_arg_expr): New function.
19393 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
19394
19395 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
19396 operand 0 in order to prevent confusion about the number of
19397 registers involved.
19398
19399 2014-05-20 Richard Biener <rguenther@suse.de>
19400
19401 PR tree-optimization/61221
19402 * tree-ssa-pre.c (el_to_update): Remove.
19403 (eliminate_dom_walker::before_dom_children): Handle released
19404 VDEFs by value-numbering them to the associated VUSE. Update
19405 stmt immediately for substituted call address.
19406 (eliminate): Remove delayed stmt updating code.
19407 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
19408 possibly late re-numbered vuses.
19409 (vn_reference_lookup_2): Adjust.
19410 (vn_reference_lookup_pieces): Likewise.
19411 (vn_reference_lookup): Likewise.
19412
19413 2014-05-20 Richard Biener <rguenther@suse.de>
19414
19415 * config.gcc: Remove need_64bit_hwint.
19416 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
19417 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
19418 it to be true.
19419 * config.in: Regenerate.
19420 * configure: Likewise.
19421
19422 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
19423
19424 * doc/extend.texi: Create Label Attributes section,
19425 move all label attributes into it and reference it.
19426
19427 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
19428
19429 * arm.c (thumb1_reorg): When scanning backwards skip anything
19430 that's not a proper insn.
19431
19432 2014-05-19 Richard Biener <rguenther@suse.de>
19433
19434 PR tree-optimization/61221
19435 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
19436 Do nothing for unreachable blocks.
19437 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
19438 Improve unreachability detection.
19439
19440 2014-05-19 Richard Biener <rguenther@suse.de>
19441
19442 PR tree-optimization/61209
19443 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
19444
19445 2014-05-19 Nick Clifton <nickc@redhat.com>
19446
19447 * except.c (init_eh): Fix computation of builtin setjmp buffer
19448 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
19449
19450 2014-05-19 Richard Biener <rguenther@suse.de>
19451
19452 PR tree-optimization/61184
19453 * tree-vrp.c (is_negative_overflow_infinity): Use
19454 TREE_OVERFLOW_P and do that check first.
19455 (is_positive_overflow_infinity): Likewise.
19456 (is_overflow_infinity): Likewise.
19457 (vrp_operand_equal_p): Properly treat operands with
19458 differing overflow as not equal.
19459
19460 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
19461
19462 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
19463 shift simplification where it was intended.
19464
19465 2014-05-19 Christian Bruel <christian.bruel@st.com>
19466
19467 PR target/61195
19468 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
19469
19470 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
19471
19472 PR target/61084
19473 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
19474 than wide_int.
19475
19476 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
19477
19478 * reg-notes.def (CROSSING_JUMP): Likewise.
19479 * rtl.h (rtx_def): Update comment for jump flag.
19480 (CROSSING_JUMP_P): Define.
19481 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
19482 of a REG_CROSSING_JUMP note.
19483 * cfghooks.c (tidy_fallthru_edges): Likewise.
19484 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
19485 * emit-rtl.c (try_split): Likewise.
19486 * haifa-sched.c (sched_create_recovery_edges): Likewise.
19487 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
19488 * jump.c (redirect_jump_2): Likewise.
19489 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
19490 (relax_delay_slots): Likewise.
19491 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
19492 (bbit_di): Likewise.
19493 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
19494 * config/sh/sh.md (jump_compact): Likewise.
19495 * bb-reorder.c (rotate_loop): Likewise.
19496 (pass_duplicate_computed_gotos::execute): Likewise.
19497 (add_reg_crossing_jump_notes): Rename to...
19498 (update_crossing_jump_flags): ...this.
19499 (pass_partition_blocks::execute): Update accordingly.
19500
19501 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
19502
19503 * tree.h: Remove extraneous template <>.
19504
19505 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19506
19507 * ipa.c (symtab_remove_unreachable_nodes): Remove
19508 symbol from comdat group if its body was eliminated.
19509 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
19510 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
19511 (symtab_unregister_node): ... this one.
19512 (verify_symtab_base): More strict checking of comdats.
19513 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
19514
19515 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19516
19517 * tree-pass.h (make_pass_ipa_comdats): New pass.
19518 * timevar.def (TV_IPA_COMDATS): New timevar.
19519 * passes.def (pass_ipa_comdats): Add.
19520 * Makefile.in (OBJS): Add ipa-comdats.o
19521 * ipa-comdats.c: New file.
19522
19523 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19524
19525 * ipa.c (update_visibility_by_resolution_info): New function.
19526 (function_and_variable_visibility): Use it.
19527
19528 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19529
19530 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
19531 New functions.
19532 (FOR_EACH_DEFINED_SYMBOL): New macro.
19533 (varpool_first_static_initializer, varpool_next_static_initializer,
19534 varpool_first_defined_variable, varpool_next_defined_variable):
19535 Fix comments.
19536 (symtab_in_same_comdat_p): Correctly deal with inline functions.
19537
19538 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19539
19540 * ggc-page.c (ggc_handle_finalizers): Add comment.
19541
19542 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19543
19544 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
19545 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
19546 (ggc_internal_cleared_alloc): Likewise.
19547 * ggc-page.c (finalizer): New class.
19548 (vec_finalizer): Likewise.
19549 (globals::finalizers): New member.
19550 (globals::vec_finalizers): Likewise.
19551 (ggc_internal_alloc): Record the finalizer if any for the block being
19552 allocated.
19553 (ggc_handle_finalizers): New function.
19554 (ggc_collect): Call ggc_handle_finalizers.
19555 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
19556 finalizer.
19557 (ggc_internal_cleared_alloc): Likewise.
19558 (finalize): New function.
19559 (need_finalization_p): Likewise.
19560 (ggc_alloc): Install the type's destructor as the finalizer if it
19561 might do something.
19562 (ggc_cleared_alloc): Likewise.
19563 (ggc_vec_alloc): Likewise.
19564 (ggc_cleared_vec_alloc): Likewise.
19565
19566 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19567
19568 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
19569
19570 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19571
19572 * alias.c (record_alias_subset): Adjust.
19573 * bitmap.c (bitmap_element_allocate): Likewise.
19574 (bitmap_gc_alloc_stat): Likewise.
19575 * cfg.c (init_flow): Likewise.
19576 (alloc_block): Likewise.
19577 (unchecked_make_edge): Likewise.
19578 * cfgloop.c (alloc_loop): Likewise.
19579 (flow_loops_find): Likewise.
19580 (rescan_loop_exit): Likewise.
19581 * cfgrtl.c (init_rtl_bb_info): Likewise.
19582 * cgraph.c (insert_new_cgraph_node_version): Likewise.
19583 (cgraph_allocate_node): Likewise.
19584 (cgraph_create_edge_1): Likewise.
19585 (cgraph_allocate_init_indirect_info): Likewise.
19586 * cgraphclones.c (cgraph_clone_edge): Likewise.
19587 * cgraphunit.c (add_asm_node): Likewise.
19588 (init_lowered_empty_function): Likewise.
19589 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
19590 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
19591 (alpha_use_linkage): Likewise.
19592 * config/arc/arc.c (arc_init_machine_status): Likewise.
19593 * config/arm/arm.c (arm_init_machine_status): Likewise.
19594 * config/avr/avr.c (avr_init_machine_status): Likewise.
19595 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
19596 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
19597 * config/cris/cris.c (cris_init_machine_status): Likewise.
19598 * config/darwin.c (machopic_indirection_name): Likewise.
19599 (darwin_build_constant_cfstring): Likewise.
19600 (darwin_enter_string_into_cfstring_table): Likewise.
19601 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
19602 * config/frv/frv.c (frv_init_machine_status): Likewise.
19603 * config/i386/i386.c (get_dllimport_decl): Likewise.
19604 (ix86_init_machine_status): Likewise.
19605 (assign_386_stack_local): Likewise.
19606 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
19607 (i386_pe_maybe_record_exported_symbol): Likewise.
19608 (i386_pe_record_stub): Likewise.
19609 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
19610 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
19611 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
19612 (m32c_note_pragma_address): Likewise.
19613 * config/mep/mep.c (mep_init_machine_status): Likewise.
19614 (mep_note_pragma_flag): Likewise.
19615 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
19616 (mips16_local_alias): Likewise.
19617 (mips_init_machine_status): Likewise.
19618 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
19619 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
19620 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
19621 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
19622 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
19623 * config/pa/pa.c (pa_init_machine_status): Likewise.
19624 (pa_get_deferred_plabel): Likewise.
19625 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
19626 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
19627 (rs6000_init_machine_status): Likewise.
19628 (output_toc): Likewise.
19629 * config/s390/s390.c (s390_init_machine_status): Likewise.
19630 * config/score/score.c (score_output_external): Likewise.
19631 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
19632 * config/spu/spu.c (spu_init_machine_status): Likewise.
19633 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
19634 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
19635 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
19636 * coverage.c (coverage_end_function): Likewise.
19637 * dbxout.c (dbxout_init): Likewise.
19638 * doc/gty.texi: Don't mention variable_size attribute.
19639 * dwarf2cfi.c (new_cfi): Adjust.
19640 (new_cfi_row): Likewise.
19641 (copy_cfi_row): Likewise.
19642 (create_cie_data): Likewise.
19643 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
19644 (new_loc_descr): Likewise.
19645 (find_AT_string_in_table): Likewise.
19646 (add_addr_table_entry): Likewise.
19647 (new_die): Likewise.
19648 (add_var_loc_to_decl): Likewise.
19649 (clone_die): Likewise.
19650 (clone_as_declaration): Likewise.
19651 (break_out_comdat_types): Likewise.
19652 (new_loc_list): Likewise.
19653 (add_loc_descr_to_each): Likewise.
19654 (add_location_or_const_value_attribute): Likewise.
19655 (add_linkage_name): Likewise.
19656 (lookup_filename): Likewise.
19657 (dwarf2out_var_location): Likewise.
19658 (new_line_info_table): Likewise.
19659 (dwarf2out_init): Likewise.
19660 (mem_loc_descriptor): Likewise.
19661 (loc_descriptor): Likewise.
19662 (add_const_value_attribute): Likewise.
19663 (tree_add_const_value_attribute): Likewise.
19664 (comp_dir_string): Likewise.
19665 (dwarf2out_vms_debug_main_pointer): Likewise.
19666 (string_cst_pool_decl): Likewise.
19667 * emit-rtl.c (set_mem_attrs): Likewise.
19668 (get_reg_attrs): Likewise.
19669 (start_sequence): Likewise.
19670 (init_emit): Likewise.
19671 (init_emit_regs): Likewise.
19672 * except.c (init_eh_for_function): Likewise.
19673 (gen_eh_region): Likewise.
19674 (gen_eh_region_catch): Likewise.
19675 (gen_eh_landing_pad): Likewise.
19676 (add_call_site): Likewise.
19677 * function.c (add_frame_space): Likewise.
19678 (insert_temp_slot_address): Likewise.
19679 (assign_stack_temp_for_type): Likewise.
19680 (get_hard_reg_initial_val): Likewise.
19681 (allocate_struct_function): Likewise.
19682 (prepare_function_start): Likewise.
19683 (types_used_by_var_decl_insert): Likewise.
19684 * gengtype.c (variable_size_p): Remove function.
19685 (enum alloc_quantity): Remove enum.
19686 (write_typed_alloc_def): Remove function.
19687 (write_typed_struct_alloc_def): Likewise.
19688 (write_typed_typedef_alloc_def): Likewise.
19689 (write_typed_alloc_defns): Likewise.
19690 (main): Adjust.
19691 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
19692 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
19693 * ggc.h (ggc_alloc): new function.
19694 (ggc_cleared_alloc): Likewise.
19695 (ggc_vec_alloc): Template on type of vector element, and remove
19696 element size argument.
19697 (ggc_cleared_vec_alloc): Likewise.
19698 * gimple.c (gimple_build_omp_for): Adjust.
19699 (gimple_copy): Likewise.
19700 * ipa-cp.c (get_replacement_map): Likewise.
19701 (find_aggregate_values_for_callers_subset): Likewise.
19702 (known_aggs_to_agg_replacement_list): Likewise.
19703 * ipa-devirt.c (get_odr_type): Likewise.
19704 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
19705 (read_agg_replacement_chain): Likewise.
19706 * loop-iv.c (get_simple_loop_desc): Likewise.
19707 * lto-cgraph.c (input_node_opt_summary): Likewise.
19708 * lto-section-in.c (lto_new_in_decl_state): Likewise.
19709 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
19710 (input_eh_region): Likewise.
19711 (input_eh_lp): Likewise.
19712 (input_cfg): Likewise.
19713 * optabs.c (set_optab_libfunc): Likewise.
19714 (init_tree_optimization_optabs): Likewise.
19715 (set_conv_libfunc): Likewise.
19716 * passes.c (do_per_function_toporder): Likewise.
19717 * rtl.h: Don't use variable_size gty attribute.
19718 * sese.c (if_region_set_false_region): Adjust.
19719 * stringpool.c (gt_pch_save_stringpool): Likewise.
19720 * target-globals.c (save_target_globals): Likewise.
19721 * toplev.c (general_init): Likewise.
19722 * trans-mem.c (record_tm_replacement): Likewise.
19723 (split_bb_make_tm_edge): Likewise.
19724 * tree-cfg.c (move_sese_region_to_fn): Likewise.
19725 * tree-data-ref.h (lambda_vector_new): Likewise.
19726 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
19727 * tree-iterator.c (tsi_link_before): Likewise.
19728 (tsi_link_after): Likewise.
19729 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
19730 * tree-ssa-loop-niter.c (record_estimate): Likewise.
19731 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
19732 * tree-ssa-operands.h: Don't use variable_size gty attribute.
19733 * tree-ssa.c (init_tree_ssa): Adjust.
19734 * tree-ssanames.c (set_range_info): Likewise.
19735 (get_ptr_info): Likewise.
19736 (duplicate_ssa_name_ptr_info): Likewise.
19737 (duplicate_ssa_name_range_info): Likewise.
19738 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
19739 (unpack_ts_fixed_cst_value_fields): Likewise.
19740 * tree.c (build_fixed): Likewise.
19741 (build_real): Likewise.
19742 (build_string): Likewise.
19743 (decl_priority_info): Likewise.
19744 (decl_debug_expr_insert): Likewise.
19745 (decl_value_expr_insert): Likewise.
19746 (decl_debug_args_insert): Likewise.
19747 (type_hash_add): Likewise.
19748 (build_omp_clause): Likewise.
19749 * ubsan.c (decl_for_type_insert): Likewise.
19750 * varasm.c (get_unnamed_section): Likewise.
19751 (get_noswitch_section): Likewise.
19752 (get_section): Likewise.
19753 (get_block_for_section): Likewise.
19754 (create_block_symbol): Likewise.
19755 (build_constant_desc): Likewise.
19756 (create_constant_pool): Likewise.
19757 (force_const_mem): Likewise.
19758 (record_tm_clone_pair): Likewise.
19759 * varpool.c (varpool_create_empty_node): Likewise.
19760
19761 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19762
19763 * dwarf2out.c (tree_add_const_value_attribute): Call
19764 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
19765 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
19766 instead of ggc_internal_<x>alloc_stat.
19767 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
19768 (ggc_realloc): Likewise.
19769 * ggc-none.c (ggc_internal_alloc): Likewise.
19770 (ggc_internal_cleared_alloc): Likewise.
19771 * ggc-page.c: Likewise.
19772 * ggc.h (ggc_internal_alloc_stat): Likewise.
19773 (ggc_internal_alloc): Remove macro.
19774 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
19775 (ggc_internal_cleared_alloc): Remove macro.
19776 (GGC_RESIZEVEC): Adjust.
19777 (ggc_resizevar): Remove macro.
19778 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
19779 (ggc_internal_cleared_vec_alloc_stat): Likewise.
19780 (ggc_internal_vec_cleared_alloc): Remove macro.
19781 (ggc_alloc_atomic_stat): Drop _stat suffix.
19782 (ggc_alloc_atomic): Remove macro.
19783 (ggc_alloc_cleared_atomic): Remove macro.
19784 (ggc_alloc_string_stat): Drop _stat suffix.
19785 (ggc_alloc_string): Remove macro.
19786 (ggc_alloc_rtx_def_stat): Adjust.
19787 (ggc_alloc_tree_node_stat): Likewise.
19788 (ggc_alloc_cleared_tree_node_stat): Likewise.
19789 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
19790 (ggc_alloc_cleared_simd_clone_stat): Likewise.
19791 * gimple.c (gimple_build_omp_for): Likewise.
19792 (gimple_copy): Likewise.
19793 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
19794 * toplev.c (realloc_for_line_map): Adjust.
19795 * tree-data-ref.h (lambda_vector_new): Likewise.
19796 * tree-phinodes.c (allocate_phi_node): Likewise.
19797 * tree.c (grow_tree_vec_stat): Likewise.
19798 * vec.h (va_gc::reserve): Adjust.
19799
19800 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
19801
19802 * config/microblaze/microblaze.c (break_handler): New Declaration.
19803 (microblaze_break_function_p,microblaze_is_break_handler): New.
19804 (compute_frame_size): Use microblaze_break_function_p.
19805 Add the test of break_handler.
19806 (microblaze_function_prologue) : Add the test of variable
19807 break_handler. Check the fnname by BREAK_HANDLER_NAME.
19808 (microblaze_function_epilogue) : Add the test of break_handler.
19809 (microblaze_globalize_label) : Add the test of break_handler.
19810 Check the name by BREAK_HANDLER_NAME.
19811
19812 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
19813
19814 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
19815 microblaze_is_break_handler test.
19816 (call_internal1,call_value_intern): Use microblaze_break_function_p.
19817 Use SYMBOL_REF_DECL.
19818
19819 * config/microblaze/microblaze-protos.h
19820 (microblaze_break_function_p,microblaze_is_break_handler):
19821 New Declaration.
19822
19823 * doc/extend.texi (MicroBlaze break_handler Functions): Document
19824 new MicroBlaze break_handler functions.
19825
19826 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
19827
19828 * doc/extend.texi (Size of an asm): Move node text according
19829 to its @menu entry position.
19830
19831 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
19832
19833 PR tree-optimization/61140
19834 PR tree-optimization/61150
19835 PR tree-optimization/61197
19836 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
19837
19838 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
19839
19840 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
19841
19842 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
19843
19844 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
19845 __SIZEOF_INT128__ is defined.
19846
19847 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
19848
19849 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
19850 (rs6000_delegitimize_address): Use it.
19851
19852 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
19853
19854 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
19855 inplace argument. Store the new address in the original MEM when true.
19856 * emit-rtl.c (change_address_1): Likewise.
19857 (adjust_address_1, adjust_automodify_address_1, offset_address):
19858 Update accordingly.
19859 * rtl.h (plus_constant): Add an inplace argument.
19860 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
19861 when true. Avoid generating (plus X (const_int 0)).
19862 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
19863 in-place. Pass true to plus_constant.
19864 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
19865
19866 2014-05-16 Dehao Chen <dehao@google.com>
19867
19868 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
19869
19870 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19871
19872 PR target/54089
19873 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
19874 patterns.
19875 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
19876
19877 2014-05-16 Dehao Chen <dehao@google.com>
19878
19879 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
19880 optimize_function_for_size_p.
19881 * regs.h (REG_FREQ_FROM_BB): Likewise.
19882
19883 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19884
19885 PR target/51244
19886 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
19887 negt_reg_operand cases.
19888 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
19889 predicate.
19890 * config/sh/predicates.md (cbranch_treg_value): Simplify.
19891
19892 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19893
19894 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
19895 target variants.
19896
19897 2014-05-16 David Malcolm <dmalcolm@redhat.com>
19898
19899 Revert:
19900 2014-04-29 David Malcolm <dmalcolm@redhat.com>
19901
19902 * tree-cfg.c (dump_function_to_file): Dump the return type of
19903 functions, in a line to itself before the function body, mimicking
19904 the layout of a C function.
19905
19906 2014-05-16 Dehao Chen <dehao@google.com>
19907
19908 * cfghooks.c (make_forwarder_block): Use direct computation to
19909 get fall-through edge's count and frequency.
19910
19911 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
19912
19913 * config/arc/arc.c (arc_init): Fix typo in error message.
19914 * config/i386/i386.c (ix86_expand_builtin): Likewise.
19915 (split_stack_prologue_scratch_regno): Likewise.
19916 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
19917 word from error message.
19918
19919 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
19920
19921 * ira-costs.c: Fix typo in comment.
19922
19923 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
19924
19925 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
19926
19927 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
19928
19929 * varpool.c (dump_varpool_node): Dump write-only flag.
19930 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
19931 write-only flag.
19932 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
19933 write-only variables.
19934 * ipa.c (process_references): New function.
19935 (set_readonly_bit): New function.
19936 (set_writeonly_bit): New function.
19937 (clear_addressable_bit): New function.
19938 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
19939 fix handling of aliases.
19940 * cgraph.h (struct varpool_node): Add writeonly flag.
19941
19942 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
19943
19944 PR rtl-optimization/60969
19945 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
19946 Calculate costs for this case.
19947
19948 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
19949
19950 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
19951 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
19952
19953 2014-05-16 Richard Biener <rguenther@suse.de>
19954
19955 PR tree-optimization/61194
19956 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
19957 bool patterns ending in a COND_EXPR.
19958
19959 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19960
19961 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
19962
19963 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19964
19965 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
19966 where we were unable to cost an RTX.
19967
19968 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19969
19970 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
19971 HIGH, LO_SUM.
19972
19973 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19974 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19975
19976 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
19977
19978 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19979 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19980
19981 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
19982 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
19983
19984 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19985 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19986
19987 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
19988 operators.
19989
19990 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19991 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19992
19993 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
19994 DIV/MOD.
19995
19996 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19997 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19998
19999 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
20000 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
20001
20002 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20003 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20004
20005 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
20006 rotates and shifts.
20007
20008 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20009 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20010
20011 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
20012 ZERO_EXTEND and SIGN_EXTEND better.
20013
20014 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20015 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20016
20017 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
20018 logical operations.
20019
20020 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20021 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20022
20023 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
20024 costs when costing loads and stores to memory.
20025
20026 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20027 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
20028
20029 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
20030 for SET RTX.
20031
20032 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20033
20034 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
20035
20036 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20037 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20038
20039 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
20040 to...
20041 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
20042 well formed.
20043 (aarch64_rtx_mult_cost): New.
20044 (aarch64_rtx_costs): Use it, refactor as appropriate.
20045
20046 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20047 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20048
20049 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
20050 emit instructions, return number of instructions which would
20051 be emitted.
20052 (aarch64_add_constant): Update call to aarch64_build_constant.
20053 (aarch64_output_mi_thunk): Likewise.
20054 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
20055 a CONST_DOUBLE.
20056
20057 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20058
20059 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
20060 (TARGET_RTX_COSTS): Call it.
20061
20062 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20063
20064 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
20065 (cortexa57_vector_cost): Likewise.
20066 (cortexa57_tunings): Use them.
20067
20068 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20069
20070 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
20071 (cpu_addrcost_table): Use it.
20072 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
20073 (aarch64_address_cost): Rewrite using aarch64_classify_address,
20074 move it.
20075
20076 2014-05-16 Richard Biener <rguenther@suse.de>
20077
20078 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
20079 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
20080 (visit_phi): Ignore edges marked as not executable.
20081 (class cond_dom_walker): New.
20082 (cond_dom_walker::before_dom_children): Value-number
20083 control statements and mark successor edges as not
20084 executable if possible.
20085 (run_scc_vn): First walk all control statements in
20086 dominator order, marking edges as not executable.
20087 * tree-inline.c (copy_edges_for_bb): Be not confused
20088 about random edge flags.
20089
20090 2014-05-16 Richard Biener <rguenther@suse.de>
20091
20092 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
20093
20094 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
20095
20096 PR target/61193
20097 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
20098 (__TM_simple_begin): Use it.
20099 (__TM_begin): Likewise.
20100
20101 2014-05-15 Martin Jambor <mjambor@suse.cz>
20102
20103 PR ipa/61085
20104 * ipa-prop.c (update_indirect_edges_after_inlining): Check
20105 type_preserved flag when the indirect edge is polymorphic.
20106
20107 2014-05-15 Martin Jambor <mjambor@suse.cz>
20108
20109 PR tree-optimization/61090
20110 * tree-sra.c (sra_modify_expr): Pass the current gsi to
20111 build_ref_for_model.
20112
20113 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20114
20115 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
20116 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
20117
20118 2014-05-15 Jakub Jelinek <jakub@redhat.com>
20119
20120 PR tree-optimization/61158
20121 * fold-const.c (fold_binary_loc): If X is zero-extended and
20122 shiftc >= prec, make sure zerobits is all ones instead of
20123 invoking undefined behavior.
20124
20125 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20126
20127 * regcprop.h: New file.
20128 * regcprop.c (skip_debug_insn_p): New decl.
20129 (replace_oldest_value_reg): Check skip_debug_insn_p.
20130 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
20131 * shrink-wrap.c: Include regcprop.h.
20132 (prepare_shrink_wrap): Call
20133 copyprop_hardreg_forward_bb_without_debug_insn.
20134
20135 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20136
20137 * shrink-wrap.h: Update comment.
20138 * shrink-wrap.c: Update comment.
20139 (next_block_for_reg): Rename to live_edge_for_reg.
20140 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
20141 (move_insn_for_shrink_wrap): Split live_edge.
20142 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
20143
20144 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
20145
20146 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
20147 Delete.
20148 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
20149 * config/sparc/sparc.md (fptype_ut699): New attribute.
20150 (in_branch_delay): Return false if -mfix-ut699 is specified and
20151 fptype_ut699 is set to single.
20152 (truncdfsf2): Add fptype_ut699 attribute.
20153 (fix_truncdfsi2): Likewise.
20154 (floatsisf2): Change fptype attribute.
20155 (fix_truncsfsi2): Likewise.
20156 (negtf2_notv9): Delete.
20157 (negtf2_v9): Likewise.
20158 (negtf2_hq): New instruction.
20159 (negtf2): New instruction and splitter.
20160 (negdf2_notv9): Rewrite.
20161 (abstf2_notv9): Delete.
20162 (abstf2_hq_v9): Likewise.
20163 (abstf2_v9): Likewise.
20164 (abstf2_hq): New instruction.
20165 (abstf2): New instruction and splitter.
20166 (absdf2_notv9): Rewrite.
20167
20168 2014-05-14 Cary Coutant <ccoutant@google.com>
20169
20170 PR debug/61013
20171 * opts.c (common_handle_option): Don't special-case "-g".
20172 (set_debug_level): Default to at least level 2 with "-g".
20173
20174 2014-05-14 DJ Delorie <dj@redhat.com>
20175
20176 * config/msp430/msp430.c (msp430_builtin): Add
20177 MSP430_BUILTIN_DELAY_CYCLES.
20178 (msp430_init_builtins): Register void __delay_cycles(long long).
20179 (msp430_builtin_decl): Add it.
20180 (cg_magic_constant): New.
20181 (msp430_expand_delay_cycles): New.
20182 (msp430_expand_builtin): Call it.
20183 (msp430_print_operand_raw): Change integer printing from "int" to
20184 HOST_WIDE_INT.
20185 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
20186 (delay_cycles_start): New.
20187 (delay_cycles_end): New.
20188 (delay_cycles_32): New.
20189 (delay_cycles_32x): New.
20190 (delay_cycles_16): New.
20191 (delay_cycles_16x): New.
20192 (delay_cycles_2): New.
20193 (delay_cycles_1): New.
20194 * doc/extend.texi: Document __delay_cycles().
20195
20196 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
20197
20198 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
20199 length attribute computation.
20200
20201 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
20202
20203 PR debug/61188
20204 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
20205
20206 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
20207
20208 PR target/61084
20209 * config/sparc/sparc.md: Fix types of low and high in DI constant
20210 splitter. Use gen_int_mode in some other splitters.
20211
20212 2014-05-14 Martin Jambor <mjambor@suse.cz>
20213
20214 PR ipa/60897
20215 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
20216
20217 2014-05-14 James Norris <jnorris@codesourcery.com>
20218
20219 * omp-low.c (expand_parallel_call): Remove shadow variable.
20220 (expand_omp_taskreg): Likewise.
20221
20222 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
20223
20224 * common/config/i386/i386-common.c
20225 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
20226 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
20227 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
20228 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
20229 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
20230 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
20231 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
20232 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
20233 xsavecintrin.h, xsavesintrin.h.
20234 (x86_64-*-*): Ditto.
20235 * config/i386/clflushoptintrin.h: New.
20236 * config/i386/xsavecintrin.h: Ditto.
20237 * config/i386/xsavesintrin.h: Ditto.
20238 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
20239 (bit_XSAVES): Ditto.
20240 (bit_XSAVES): Ditto.
20241 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
20242 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
20243 -mno-clflushopt.
20244 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20245 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
20246 OPTION_MASK_ISA_XSAVES.
20247 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
20248 -mxsavec, -mxsaves.
20249 (PTA_CLFLUSHOPT) Define.
20250 (PTA_XSAVEC): Ditto.
20251 (PTA_XSAVES): Ditto.
20252 (ix86_option_override_internal): Handle new options.
20253 (ix86_valid_target_attribute_inner_p): Ditto.
20254 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
20255 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
20256 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
20257 (bdesc_special_args): Add __builtin_ia32_xsaves,
20258 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
20259 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
20260 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
20261 (ix86_expand_builtin): Handle new builtins.
20262 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
20263 (TARGET_CLFLUSHOPT_P): Ditto.
20264 (TARGET_XSAVEC): Ditto.
20265 (TARGET_XSAVEC_P): Ditto.
20266 (TARGET_XSAVES): Ditto.
20267 (TARGET_XSAVES_P): Ditto.
20268 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
20269 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
20270 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
20271 (ANY_XRSTOR): New.
20272 (ANY_XRSTOR64): Ditto.
20273 (xrstor): Ditto.
20274 (xrstor): Change into <xrstor>.
20275 (xrstor_rex64): Change into <xrstor>_rex64.
20276 (xrstor64): Change into <xrstor>64
20277 (clflushopt): New.
20278 * config/i386/i386.opt (mclflushopt): New.
20279 (mxsavec): Ditto.
20280 (mxsaves): Ditto.
20281 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
20282 xsavecintrin.h.
20283 * doc/invoke.texi: Document new options.
20284
20285 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
20286
20287 PR rtl-optimization/60866
20288 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
20289 Default it to -1. Pass it down to init_simplejump_data.
20290 (init_simplejump_data): New parameter old_seqno. Pass it down
20291 to get_seqno_for_a_jump.
20292 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
20293 initializing new jump seqno as a last resort. Add comment.
20294 (sel_redirect_edge_and_branch): Save old seqno of the conditional
20295 jump and pass it down to sel_init_new_insn.
20296 (sel_redirect_edge_and_branch_force): Likewise.
20297
20298 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
20299
20300 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
20301 shifted values to avoid build warning.
20302
20303 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
20304
20305 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
20306 * cfgrtl.c (rtl_merge_blocks): Fix comment.
20307 (cfg_layout_merge_blocks): Likewise.
20308 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
20309
20310 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
20311
20312 PR rtl-optimization/60901
20313 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
20314 bb predecessor belongs to the same scheduling region. Adjust comment.
20315
20316 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
20317
20318 * doc/sourcebuild.texi: (dfp_hw): Document.
20319 (p8vector_hw): Likewise.
20320 (powerpc_eabi_ok): Likewise.
20321 (powerpc_elfv2): Likewise.
20322 (powerpc_htm_ok): Likewise.
20323 (ppc_recip_hw): Likewise.
20324 (vsx_hw): Likewise.
20325
20326 2014-05-13 Cary Coutant <ccoutant@google.com>
20327
20328 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
20329
20330 2014-05-13 David Malcolm <dmalcolm@redhat.com>
20331
20332 * gengtype-parse.c (require3): Eliminate in favor of...
20333 (require4): New.
20334 (require_template_declaration): Update to support optional single *
20335 on a type.
20336
20337 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
20338 (create_user_defined_type): Handle a single level of explicit
20339 pointerness within template arguments.
20340 (struct write_types_data): Add field "kind".
20341 (filter_type_name): Handle "*" character.
20342 (write_user_func_for_structure_ptr): Require a write_types_data
20343 rather than just a prefix string, so that we can look up the kind
20344 of the wtd and use it as an index into wrote_user_func_for_ptr,
20345 ensuring that such functions are written at most once. Support
20346 subclasses by invoking the marking function of the ultimate base class.
20347 (write_user_func_for_structure_body): Require a write_types_data
20348 rather than just a prefix string, so that we can pass this to
20349 write_user_func_for_structure_ptr.
20350 (write_func_for_structure): Likewise.
20351 (ggc_wtd): Add initializer of new "kind" field.
20352 (pch_wtd): Likewise.
20353
20354 * gengtype.h (enum write_types_kinds): New.
20355 (struct type): Add field wrote_user_func_for_ptr to the "s"
20356 union member.
20357
20358 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
20359
20360 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
20361 instead of const_binop.
20362 (fold_binary_loc): Likewise.
20363
20364 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
20365
20366 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
20367 calculation to match get_ref_base_and_extent.
20368
20369 2014-05-13 Catherine Moore <clm@codesourcery.com>
20370 Sandra Loosemore <sandra@codesourcery.com>
20371
20372 * configure.ac: Fix assembly for explicit JALR relocation check.
20373 * configure: Regenerate.
20374
20375 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20376
20377 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
20378 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
20379 Remove associated type declarations and initialisations.
20380 (arm_expand_neon_builtin): Likewise.
20381 (neon_emit_pair_result_insn): Delete.
20382 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
20383 * config/arm/neon.md (neon_vtrn<mode>): Delete.
20384 (neon_vzip<mode>): Likewise.
20385 (neon_vuzp<mode>): Likewise.
20386
20387 2014-05-13 Richard Biener <rguenther@suse.de>
20388
20389 PR ipa/60973
20390 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
20391 it needs revisiting whether the call still may be tail-called.
20392
20393 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20394
20395 * rtl.def (SYMBOL_REF): Remove middle "0" field.
20396 * rtl.h (block_symbol): Reduce number of fields to 2.
20397 (rtx_def): Add u2.symbol_ref_flags.
20398 (SYMBOL_REF_FLAGS): Use it.
20399 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
20400 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
20401 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
20402 Lower index of SYMBOL_REF_DATA.
20403 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
20404 Print SYMBOL_REF_FLAGS at the same time.
20405 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
20406
20407 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20408
20409 * rtl.def (VAR_LOCATION): Remove "i" field.
20410 * rtl.h (rtx_def): Add u2.var_location_status.
20411 (PAT_VAR_LOCATION_STATUS): Use it.
20412 (gen_rtx_VAR_LOCATION): Declare.
20413 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
20414 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
20415 * var-tracking.c (emit_note_insn_var_location): Remove casts.
20416
20417 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20418
20419 * rtl.def (scratch): Fix outdated comment and remove "0" field.
20420 * gengtype.c (adjust_field_rtx_def): Update accordingly.
20421
20422 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20423
20424 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
20425 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
20426 * rtl.h (rtx_def): Add insn_uid to u2 field.
20427 (RTX_FLAG_CHECK8): Delete in favor of...
20428 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
20429 (INSN_DELETED_P): Update accordingly.
20430 (INSN_UID): Use u2.insn_uid.
20431 (INSN_CHAIN_CODE_P): Define.
20432 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
20433 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
20434 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
20435 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
20436 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
20437 indices accordingly.
20438 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
20439 Update indices for insn-chain rtxes.
20440 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
20441 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
20442 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
20443 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
20444 * combine.c (try_combine): Likewise.
20445 * ira.c (setup_prohibited_mode_move_regs): Likewise.
20446
20447 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20448
20449 * rtl.def (REG): Remove middle field.
20450 * rtl.h (rtx_def): Add orignal_regno to u2.
20451 (ORIGINAL_REGNO): Use it instead of field 1.
20452 (REG_ATTRS): Lower field index accordingly.
20453 * gengtype.c (adjust_field_rtx_def): Remove handling of
20454 ORIGINAL_REGNO. Move REG_ATTRS index down.
20455 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
20456 code that prints the REGNO.
20457
20458 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20459
20460 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
20461 GENERATOR_FILE.
20462
20463 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20464
20465 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
20466
20467 2014-05-13 Bin Cheng <bin.cheng@arm.com>
20468
20469 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
20470 (alloc_iv): Lower base expressions containing ADDR_EXPR.
20471
20472 2014-05-13 Ian Bolton <ian.bolton@arm.com>
20473
20474 * config/aarch64/aarch64-protos.h
20475 (aarch64_hard_regno_caller_save_mode): New prototype.
20476 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
20477 New function.
20478 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
20479
20480 2014-05-13 Christian Bruel <christian.bruel@st.com>
20481
20482 * target.def (mode_switching): New hook vector.
20483 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
20484 (mode_exit, modepriority_to_mode): Likewise.
20485 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
20486 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20487 * target.h: Include tm.h and hard-reg-set.h.
20488 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
20489 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
20490 * doc/tm.texi Regenerate.
20491 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
20492 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20493 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
20494 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
20495 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
20496 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20497 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
20498 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
20499 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
20500 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
20501 (ix86_emit_mode_set): Hookify.
20502 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
20503 Delete.
20504 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20505 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
20506 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
20507 (epiphany_mode_priority_to_mode): Remove declaration.
20508 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
20509 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
20510 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
20511 Likewise.
20512 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
20513 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
20514 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
20515
20516 2014-05-13 Jakub Jelinek <jakub@redhat.com>
20517
20518 PR target/61060
20519 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
20520 is const0_rtx, return immediately. Don't test count == 0 when
20521 it is always true.
20522
20523 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20524
20525 * Makefile.in: add shrink-wrap.o.
20526 * config/i386/i386.c: include "shrink-wrap.h"
20527 * function.c: Likewise.
20528 (requires_stack_frame_p, next_block_for_reg,
20529 move_insn_for_shrink_wrap, prepare_shrink_wrap,
20530 dup_block_and_redirect): Move to shrink-wrap.c
20531 (thread_prologue_and_epilogue_insns): Extract three code segments
20532 as functions in shrink-wrap.c
20533 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
20534 shrink-wrap.h
20535 * shrink-wrap.c: New file.
20536 * shrink-wrap.h: New file.
20537
20538 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
20539
20540 * doc/extend.texi: Reflect current numbers of pragmas. Remove
20541 reference to Solaris.
20542
20543 2014-05-12 Mike Stump <mikestump@comcast.net>
20544
20545 PR other/31778
20546 * genattrtab.c (filename): Add.
20547 (convert_set_attr_alternative): Improve error message.
20548 (check_defs): Restore read_md_filename for error messages.
20549 (gen_insn): Save filename.
20550
20551 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
20552
20553 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
20554 -fno-local-ivars and -fivar-visibility.
20555 * c-family/c.opt: Make -Wshadow also implicitly enable
20556 -Wshadow-ivar.
20557
20558 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
20559
20560 * doc/tm.texi: Remove reference to deleted macro.
20561 * doc/tm.texi.in: Likewise.
20562
20563 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
20564
20565 PR target/60991
20566 * config/avr/avr.c (avr_out_store_psi): Use correct constant
20567 to restore Y.
20568
20569 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
20570
20571 PR libgcc/61152
20572 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
20573 * config/arm/aout.h (License): Same.
20574 * config/arm/bpabi.h (License): Same.
20575 * config/arm/elf.h (License): Same.
20576 * config/arm/linux-elf.h (License): Same.
20577 * config/arm/linux-gas.h (License): Same.
20578 * config/arm/netbsd-elf.h (License): Same.
20579 * config/arm/uclinux-eabi.h (License): Same.
20580 * config/arm/uclinux-elf.h (License): Same.
20581 * config/arm/vxworks.h (License): Same.
20582
20583 2014-05-11 Jakub Jelinek <jakub@redhat.com>
20584
20585 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
20586 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
20587 number of operands to 3.
20588 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
20589 * tree-nested.c (convert_nonlocal_omp_clauses,
20590 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
20591 * gimplify.c (gimplify_scan_omp_clauses): Handle
20592 OMP_CLAUSE_LINEAR_STMT.
20593 * omp-low.c (lower_rec_input_clauses): Fix typo.
20594 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
20595 cast between Fortran boolean_type_node and C _Bool if
20596 needed.
20597
20598 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
20599
20600 PR tree-optimization/61136
20601 * wide-int.h (multiple_of_p): Define a version that doesn't return
20602 the quotient.
20603 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
20604 integer_zerop/const_binop pair.
20605 (multiple_of_p): Likewise, converting both operands to widest_int
20606 precision.
20607
20608 2014-05-09 Teresa Johnson <tejohnson@google.com>
20609
20610 * cgraphunit.c (analyze_functions): Use correct dump file.
20611
20612 2014-05-09 Florian Weimer <fweimer@redhat.com>
20613
20614 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
20615 expand_used_vars.
20616 (stack_protect_return_slot_p): New function.
20617 (expand_used_vars): Call stack_protect_decl_p and
20618 stack_protect_return_slot_p for -fstack-protector-strong.
20619
20620 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
20621 Andrew Haley <aph@redhat.com>
20622 Richard Sandiford <rdsandiford@googlemail.com>
20623
20624 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
20625 pages.
20626
20627 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
20628
20629 PR middle-end/61111
20630 * fold-const.c (fold_binary_loc): Changed width of mask.
20631
20632 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
20633
20634 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
20635 unsigned int initializers for regno_in, regno_out.
20636
20637 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
20638
20639 PR target/61055
20640 * config/avr/avr.md (cc): Add new attribute set_vzn.
20641 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
20642 Set cc insn attribute to set_vzn instead of set_zn for alternatives
20643 with INC, DEC or NEG.
20644 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
20645 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
20646 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
20647
20648 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20649
20650 Revert:
20651 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20652
20653 * wide-int.cc (UTItype): Define.
20654 (UDWtype): Define for appropriate W_TYPE_SIZE.
20655
20656 2014-05-09 Richard Biener <rguenther@suse.de>
20657
20658 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
20659 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
20660 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
20661 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
20662 ssa_propagate): Adjust.
20663
20664 2014-05-08 Jeff Law <law@redhat.com>
20665
20666 PR tree-optimization/61009
20667 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
20668 tri-state rather than a boolean. When a block is too big to
20669 thread through, inform caller via negative return value.
20670 (thread_across_edge): If a block was too big for normal threading,
20671 then it's too big for a joiner too, so remove temporary equivalences
20672 and return immediately.
20673
20674 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
20675 Matthias Klose <doko@ubuntu.com>
20676
20677 PR driver/61106
20678 * optc-gen.awk: Fix option handling for -Wunused-parameter.
20679
20680 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
20681
20682 PR target/59952
20683 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
20684
20685 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
20686
20687 PR target/61092
20688 * config/alpha/alpha.c: Include gimple-iterator.h.
20689 (alpha_gimple_fold_builtin): New function. Move
20690 ALPHA_BUILTIN_UMULH folding from ...
20691 (alpha_fold_builtin): ... here.
20692 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
20693
20694 2014-05-08 Wei Mi <wmi@google.com>
20695
20696 PR target/58066
20697 * config/i386/i386.c (ix86_compute_frame_layout): Update
20698 preferred_stack_boundary for call, expanded from tls descriptor.
20699 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
20700 to depend on SP register.
20701 (*tls_local_dynamic_base_32_gnu): Ditto.
20702 (*tls_local_dynamic_32_once): Ditto.
20703 (tls_global_dynamic_64_<mode>): Set
20704 ix86_tls_descriptor_calls_expanded_in_cfun.
20705 (tls_local_dynamic_base_64_<mode>): Ditto.
20706 (tls_global_dynamic_32): Set
20707 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
20708 to depend on SP register.
20709 (tls_local_dynamic_base_32): Ditto.
20710
20711 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20712
20713 * config/arm/arm_neon.h: Update comment.
20714 * config/arm/neon-docgen.ml: Delete.
20715 * config/arm/neon-gen.ml: Delete.
20716 * doc/arm-neon-intrinsics.texi: Update comment.
20717
20718 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20719
20720 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
20721 and v4sf versions.
20722 (vand, vorr, veor, vorn, vbic): Remove.
20723 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
20724 iterator.
20725 (neon_vsub_unspec): Likewise.
20726 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
20727
20728 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20729
20730 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
20731 (vadd_s16): Likewise.
20732 (vadd_s32): Likewise.
20733 (vadd_f32): Likewise.
20734 (vadd_u8): Likewise.
20735 (vadd_u16): Likewise.
20736 (vadd_u32): Likewise.
20737 (vadd_s64): Likewise.
20738 (vadd_u64): Likewise.
20739 (vaddq_s8): Likewise.
20740 (vaddq_s16): Likewise.
20741 (vaddq_s32): Likewise.
20742 (vaddq_s64): Likewise.
20743 (vaddq_f32): Likewise.
20744 (vaddq_u8): Likewise.
20745 (vaddq_u16): Likewise.
20746 (vaddq_u32): Likewise.
20747 (vaddq_u64): Likewise.
20748 (vmul_s8): Likewise.
20749 (vmul_s16): Likewise.
20750 (vmul_s32): Likewise.
20751 (vmul_f32): Likewise.
20752 (vmul_u8): Likewise.
20753 (vmul_u16): Likewise.
20754 (vmul_u32): Likewise.
20755 (vmul_p8): Likewise.
20756 (vmulq_s8): Likewise.
20757 (vmulq_s16): Likewise.
20758 (vmulq_s32): Likewise.
20759 (vmulq_f32): Likewise.
20760 (vmulq_u8): Likewise.
20761 (vmulq_u16): Likewise.
20762 (vmulq_u32): Likewise.
20763 (vsub_s8): Likewise.
20764 (vsub_s16): Likewise.
20765 (vsub_s32): Likewise.
20766 (vsub_f32): Likewise.
20767 (vsub_u8): Likewise.
20768 (vsub_u16): Likewise.
20769 (vsub_u32): Likewise.
20770 (vsub_s64): Likewise.
20771 (vsub_u64): Likewise.
20772 (vsubq_s8): Likewise.
20773 (vsubq_s16): Likewise.
20774 (vsubq_s32): Likewise.
20775 (vsubq_s64): Likewise.
20776 (vsubq_f32): Likewise.
20777 (vsubq_u8): Likewise.
20778 (vsubq_u16): Likewise.
20779 (vsubq_u32): Likewise.
20780 (vsubq_u64): Likewise.
20781 (vand_s8): Likewise.
20782 (vand_s16): Likewise.
20783 (vand_s32): Likewise.
20784 (vand_u8): Likewise.
20785 (vand_u16): Likewise.
20786 (vand_u32): Likewise.
20787 (vand_s64): Likewise.
20788 (vand_u64): Likewise.
20789 (vandq_s8): Likewise.
20790 (vandq_s16): Likewise.
20791 (vandq_s32): Likewise.
20792 (vandq_s64): Likewise.
20793 (vandq_u8): Likewise.
20794 (vandq_u16): Likewise.
20795 (vandq_u32): Likewise.
20796 (vandq_u64): Likewise.
20797 (vorr_s8): Likewise.
20798 (vorr_s16): Likewise.
20799 (vorr_s32): Likewise.
20800 (vorr_u8): Likewise.
20801 (vorr_u16): Likewise.
20802 (vorr_u32): Likewise.
20803 (vorr_s64): Likewise.
20804 (vorr_u64): Likewise.
20805 (vorrq_s8): Likewise.
20806 (vorrq_s16): Likewise.
20807 (vorrq_s32): Likewise.
20808 (vorrq_s64): Likewise.
20809 (vorrq_u8): Likewise.
20810 (vorrq_u16): Likewise.
20811 (vorrq_u32): Likewise.
20812 (vorrq_u64): Likewise.
20813 (veor_s8): Likewise.
20814 (veor_s16): Likewise.
20815 (veor_s32): Likewise.
20816 (veor_u8): Likewise.
20817 (veor_u16): Likewise.
20818 (veor_u32): Likewise.
20819 (veor_s64): Likewise.
20820 (veor_u64): Likewise.
20821 (veorq_s8): Likewise.
20822 (veorq_s16): Likewise.
20823 (veorq_s32): Likewise.
20824 (veorq_s64): Likewise.
20825 (veorq_u8): Likewise.
20826 (veorq_u16): Likewise.
20827 (veorq_u32): Likewise.
20828 (veorq_u64): Likewise.
20829 (vbic_s8): Likewise.
20830 (vbic_s16): Likewise.
20831 (vbic_s32): Likewise.
20832 (vbic_u8): Likewise.
20833 (vbic_u16): Likewise.
20834 (vbic_u32): Likewise.
20835 (vbic_s64): Likewise.
20836 (vbic_u64): Likewise.
20837 (vbicq_s8): Likewise.
20838 (vbicq_s16): Likewise.
20839 (vbicq_s32): Likewise.
20840 (vbicq_s64): Likewise.
20841 (vbicq_u8): Likewise.
20842 (vbicq_u16): Likewise.
20843 (vbicq_u32): Likewise.
20844 (vbicq_u64): Likewise.
20845 (vorn_s8): Likewise.
20846 (vorn_s16): Likewise.
20847 (vorn_s32): Likewise.
20848 (vorn_u8): Likewise.
20849 (vorn_u16): Likewise.
20850 (vorn_u32): Likewise.
20851 (vorn_s64): Likewise.
20852 (vorn_u64): Likewise.
20853 (vornq_s8): Likewise.
20854 (vornq_s16): Likewise.
20855 (vornq_s32): Likewise.
20856 (vornq_s64): Likewise.
20857 (vornq_u8): Likewise.
20858 (vornq_u16): Likewise.
20859 (vornq_u32): Likewise.
20860 (vornq_u64): Likewise.
20861
20862 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20863
20864 * wide-int.cc (UTItype): Define.
20865 (UDWtype): Define for appropriate W_TYPE_SIZE.
20866
20867 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
20868
20869 PR tree-optimization/59100
20870 * tree-ssa-phiopt.c: Include tree-inline.h.
20871 (neutral_element_p, absorbing_element_p): New functions.
20872 (value_replacement): Handle conditional binary operations with a
20873 neutral or absorbing element.
20874
20875 2014-05-08 Richard Biener <rguenther@suse.de>
20876
20877 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
20878 folding the expression.
20879 (valueize_expr): Remove.
20880 (visit_reference_op_load): Do not valueize the result of
20881 vn_get_expr_for.
20882 (simplify_binary_expression): Likewise.
20883 (simplify_unary_expression): Likewise.
20884
20885 2014-05-08 Richard Biener <rguenther@suse.de>
20886
20887 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
20888 looking at TYPE_ARG_TYPES.
20889
20890 2014-05-08 Richard Biener <rguenther@suse.de>
20891
20892 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
20893 pointer propagation special-case.
20894
20895 2014-05-08 Bin Cheng <bin.cheng@arm.com>
20896
20897 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
20898 core part of address expressions.
20899
20900 2014-05-08 Alan Modra <amodra@gmail.com>
20901
20902 PR target/60737
20903 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
20904 loads and stores when -mno-strict-align at any alignment.
20905 (expand_block_clear): Similarly. Also correct calculation of
20906 instruction count.
20907
20908 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
20909
20910 PR middle-end/39246
20911 * tree-complex.c (expand_complex_move): Keep line info when expanding
20912 complex move.
20913 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
20914 of complex expression. Use new argument to display correct location
20915 for values coming from phi statement.
20916 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
20917 (warn_uninitialized_phi): Pass location of phi argument to
20918 warn_uninit.
20919 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
20920 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
20921
20922 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
20923
20924 * config/rs6000/predicates.md (indexed_address_mem): New.
20925 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
20926 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
20927 fpstore_ux, fpstore_u.
20928 (sign_extend, indexed, update): New.
20929 (cell_micro): Adjust.
20930 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
20931 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
20932 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
20933 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
20934 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
20935 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
20936 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
20937 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
20938 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
20939 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
20940 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
20941 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
20942 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
20943 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
20944 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
20945
20946 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
20947 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
20948 *vsx_extract_<mode>_store): Adjust.
20949 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
20950 is_cracked_insn, insn_must_be_first_in_group,
20951 insn_must_be_last_in_group): Adjust.
20952
20953 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
20954 Adjust.
20955 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
20956 ppc440-fpstore): Adjust.
20957 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
20958 ppc476-fpstore): Adjust.
20959 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
20960 ppc601-fpstore): Adjust.
20961 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
20962 Adjust.
20963 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
20964 Adjust.
20965 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
20966 ppc7450-fpstore): Adjust.
20967 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
20968 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
20969 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
20970 Adjust.
20971 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
20972 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
20973 cell-fpstore, cell-fpstore-update): Adjust.
20974 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
20975 ppce300c3_store, ppce300c3_fpstore): Adjust.
20976 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
20977 e500mc_fpstore): Adjust.
20978 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
20979 e500mc64_store, e500mc64_fpstore): Adjust.
20980 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
20981 e5500_fpstore): Adjust.
20982 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
20983 e6500_fpstore): Adjust.
20984 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
20985 Adjust.
20986 * config/rs6000/power4.md (power4-load, power4-load-ext,
20987 power4-load-ext-update, power4-load-ext-update-indexed,
20988 power4-load-update-indexed, power4-load-update, power4-fpload,
20989 power4-fpload-update, power4-store, power4-store-update,
20990 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
20991 Adjust.
20992 * config/rs6000/power5.md (power5-load, power5-load-ext,
20993 power5-load-ext-update, power5-load-ext-update-indexed,
20994 power5-load-update-indexed, power5-load-update, power5-fpload,
20995 power5-fpload-update, power5-store, power5-store-update,
20996 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
20997 Adjust.
20998 * config/rs6000/power6.md (power6-load, power6-load-ext,
20999 power6-load-update, power6-load-update-indexed,
21000 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
21001 power6-fpload-update, power6-store, power6-store-update,
21002 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
21003 Adjust.
21004 * config/rs6000/power7.md (power7-load, power7-load-ext,
21005 power7-load-update, power7-load-update-indexed,
21006 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
21007 power7-fpload-update, power7-store, power7-store-update,
21008 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
21009 Adjust.
21010 * config/rs6000/power8.md (power8-load, power8-load-update,
21011 power8-load-ext, power8-load-ext-update, power8-fpload,
21012 power8-fpload-update, power8-store, power8-store-update-indexed,
21013 power8-fpstore, power8-fpstore-update): Adjust.
21014 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
21015 Adjust.
21016 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
21017 titan_lsu_store, titan_lsu_fpstore): Adjust.
21018 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
21019
21020 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
21021
21022 PR target/60884
21023 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
21024 unrolled byte insns. Emit address increments after move insns.
21025
21026 2014-05-07 David Malcolm <dmalcolm@redhat.com>
21027
21028 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
21029 const_gimple, rather than a gimple.
21030 (gimple_call_builtin_p): Likewise, for the three variants.
21031
21032 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
21033 (gimple_call_builtin_p): Likewise, for the three variants.
21034
21035 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21036
21037 PR tree-optimization/61095
21038 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
21039
21040 2014-05-07 Richard Biener <rguenther@suse.de>
21041
21042 PR tree-optimization/61034
21043 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
21044 (maybe_skip_until): Use translate to take into account
21045 lattices when trying to do disambiguations.
21046 (get_continuation_for_phi_1): Likewise.
21047 (get_continuation_for_phi): Adjust for added translate arguments.
21048 (walk_non_aliased_vuses): Likewise.
21049 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
21050 (walk_non_aliased_vuses): Likewise.
21051 (call_may_clobber_ref_p_1): Declare.
21052 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
21053 calls. Stop early if we are only supposed to disambiguate.
21054 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
21055
21056 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
21057
21058 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
21059 Emit an error when the function has arguments.
21060
21061 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
21062
21063 * cfgloop.h (unswitch_loops): Remove.
21064 * doc/passes.texi: Remove references to loop-unswitch.c
21065 * timevar.def (TV_LOOP_UNSWITCH): Remove.
21066
21067 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
21068
21069 * tree-vect-data-refs.c (vect_grouped_load_supported): New
21070 check for loads group of length 3.
21071 (vect_permute_load_chain): New permutations for loads group of
21072 length 3.
21073 * tree-vect-stmts.c (vect_model_load_cost): Change cost
21074 of vec_perm_shuffle for the new permutations.
21075
21076 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
21077
21078 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
21079 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
21080 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
21081 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
21082 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
21083 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
21084 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
21085 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
21086
21087 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
21088
21089 * loop-unswitch.c: Delete.
21090
21091 2014-05-07 Richard Biener <rguenther@suse.de>
21092
21093 * config.gcc: Always set need_64bit_hwint to yes.
21094
21095 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
21096
21097 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
21098 of using optimize_size.
21099
21100 2014-05-06 Mike Stump <mikestump@comcast.net>
21101
21102 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
21103
21104 2014-05-06 Joseph Myers <joseph@codesourcery.com>
21105
21106 * config/i386/sse.md (*mov<mode>_internal)
21107 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
21108 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
21109 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
21110 (*<code><mode>3, *andnot<mode>3<mask_name>)
21111 (<mask_codefor><code><mode>3<mask_name>): Only consider
21112 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
21113
21114 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
21115
21116 Revert:
21117 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
21118
21119 * lra-constraints.c (valid_address_p): Move earlier in file.
21120 Add a constraint argument to the address_info version.
21121 (satisfies_memory_constraint_p): New function.
21122 (satisfies_address_constraint_p): Likewise.
21123 (process_alt_operands, curr_insn_transform): Use them.
21124 (process_address): Pass the constraint to valid_address_p when
21125 checking address operands.
21126
21127 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
21128
21129 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
21130 to their respective blocks. Fix inadvertent use of "node".
21131
21132 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
21133
21134 * emit-rtl.c (init_derived_machine_modes): New functionm, split
21135 out from...
21136 (init_emit_once): ...here.
21137 * rtl.h (init_derived_machine_modes): Declare.
21138 * toplev.c (do_compile): Call it even if no_backend.
21139
21140 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
21141 Mike Stump <mikestump@comcast.net>
21142 Richard Sandiford <rdsandiford@googlemail.com>
21143 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21144
21145 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
21146 (rtx_equal_for_memref_p): Update comment.
21147 (adjust_offset_for_component_ref): Use wide-int interfaces.
21148 * builtins.c (get_object_alignment_2): Likewise.
21149 (c_readstr): Likewise.
21150 (target_char_cast): Add comment.
21151 (determine_block_size): Use wide-int interfaces.
21152 (expand_builtin_signbit): Likewise.
21153 (fold_builtin_int_roundingfn): Likewise.
21154 (fold_builtin_bitop): Likewise.
21155 (fold_builtin_bswap): Likewise.
21156 (fold_builtin_logarithm): Use signop.
21157 (fold_builtin_pow): Likewise.
21158 (fold_builtin_memory_op): Use wide-int interfaces.
21159 (fold_builtin_object_size): Likewise.
21160 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
21161 nb_iterations_estimate.
21162 (record_niter_bound): Use wide-int interfaces.
21163 (get_estimated_loop_iterations_int): Likewise.
21164 (get_estimated_loop_iterations): Likewise.
21165 (get_max_loop_iterations): Likewise.
21166 * cfgloop.h: Include wide-int.h.
21167 (struct nb_iter_bound): Change bound to widest_int.
21168 (struct loop): Change nb_iterations_upper_bound and
21169 nb_iterations_estimate to widest_int.
21170 (record_niter_bound): Switch to use widest_int.
21171 (get_estimated_loop_iterations): Likewise.
21172 (get_max_loop_iterations): Likewise.
21173 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
21174 update for wide-int.
21175 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
21176 * combine.c (try_combine): Likewise.
21177 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
21178 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
21179 interfaces.
21180 (aarch64_float_const_representable_p): Likewise.
21181 * config/arc/arc.c: Include wide-int.h.
21182 (arc_can_use_doloop_p): Use wide-int interfaces.
21183 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
21184 (vfp3_const_double_index): Likewise.
21185 * config/avr/avr.c (avr_out_round): Likewise.
21186 (avr_fold_builtin): Likewise.
21187 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
21188 (bfin_can_use_doloop_p): Likewise.
21189 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
21190 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
21191 * config/i386/i386.c: Include wide-int.h.
21192 (ix86_data_alignment): Use wide-int interfaces.
21193 (ix86_local_alignment): Likewise.
21194 (ix86_emit_swsqrtsf): Update real_from_integer.
21195 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
21196 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
21197 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
21198 (zero_constant): Likewise.
21199 (input_operand): Likewise.
21200 (splat_input_operand): Likewise.
21201 (non_logical_cint_operand): Change const_double to const_wide_int.
21202 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
21203 (easy_altivec_constant): Remove comment.
21204 (paired_expand_vector_init): Use CONSTANT_P.
21205 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
21206 (rs6000_emit_move): Update checks.
21207 (rs6000_aggregate_candidate): Use wide-int interfaces.
21208 (rs6000_expand_ternop_builtin): Likewise.
21209 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
21210 (rs6000_assemble_integer): Likewise.
21211 (rs6000_hash_constant): Likewise.
21212 (output_toc): Likewise.
21213 (rs6000_rtx_costs): Likewise.
21214 (rs6000_emit_swrsqrt); Update call to real_from_integer.
21215 * config/rs6000/rs6000-c.c: Include wide-int.h.
21216 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
21217 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
21218 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
21219 Handle CONST_WIDE_INT.
21220 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
21221 Use tree_fits_uhwi_p.
21222 * config/sparc/sparc.c: Include wide-int.h.
21223 (sparc_fold_builtin): Use wide-int interfaces.
21224 * config/vax/vax.c: Include wide-int.h.
21225 (vax_float_literal): Use real_from_integer.
21226 * coretypes.h (struct hwivec_def): New.
21227 (hwivec): New.
21228 (const_hwivec): New.
21229 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
21230 (equiv_constant): Handle CONST_WIDE_INT.
21231 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
21232 (cselib_hash_rtx): Handle CONST_WIDE_INT.
21233 * dbxout.c (stabstr_U): Use wide-int interfaces.
21234 (dbxout_type): Update to use cst_fits_shwi_p.
21235 * defaults.h (LOG2_BITS_PER_UNIT): Define.
21236 (TARGET_SUPPORTS_WIDE_INT): Add default.
21237 * dfp.c: Include wide-int.h.
21238 (decimal_real_to_integer2): Use wide-int interfaces and rename to
21239 decimal_real_to_integer.
21240 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
21241 decimal_real_to_integer.
21242 * doc/generic.texi (Constant expressions): Update for wide_int.
21243 * doc/rtl.texi (const_double): Likewise.
21244 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
21245 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
21246 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
21247 (REAL_VALUE_FROM_INT): Remove.
21248 (TARGET_SUPPORTS_WIDE_INT): New.
21249 * doc/tm.texi: Regenerate.
21250 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
21251 * double-int.h: Include wide-int.h.
21252 (struct wi::int_traits): New.
21253 * dwarf2out.c (get_full_len): New.
21254 (dw_val_equal_p): Add case dw_val_class_wide_int.
21255 (size_of_loc_descr): Likewise.
21256 (output_loc_operands): Likewise.
21257 (insert_double): Remove.
21258 (insert_wide_int): New.
21259 (add_AT_wide): New.
21260 (print_die): Add case dw_val_class_wide_int.
21261 (attr_checksum): Likewise.
21262 (attr_checksum_ordered): Likewise.
21263 (same_dw_val_p): Likewise.
21264 (size_of_die): Likewise.
21265 (value_format): Likewise.
21266 (output_die): Likewise.
21267 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
21268 Use wide-int.
21269 (clz_loc_descriptor): Use wide-int interfaces.
21270 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
21271 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
21272 (round_up_to_align): Use wide-int interfaces.
21273 (field_byte_offset): Likewise.
21274 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
21275 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
21276 CONST_DOUBLE handling. Use wide-int interfaces.
21277 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
21278 (gen_enumeration_type_die): Use add_AT_wide.
21279 (hash_loc_operands): Add case dw_val_class_wide_int.
21280 (compare_loc_operands): Likewise.
21281 * dwarf2out.h: Include wide-int.h.
21282 (wide_int_ptr): New.
21283 (enum dw_val_class): Add dw_val_class_wide_int.
21284 (struct dw_val_struct): Add val_wide.
21285 * emit-rtl.c (const_wide_int_htab): New.
21286 (const_wide_int_htab_hash): New.
21287 (const_wide_int_htab_eq): New.
21288 (lookup_const_wide_int): New.
21289 (const_double_htab_hash): Use wide-int interfaces.
21290 (const_double_htab_eq): Likewise.
21291 (rtx_to_double_int): Conditionally compile for wide-int.
21292 (immed_double_int_const): Rename to immed_wide_int_const and
21293 update for wide-int.
21294 (immed_double_const): Conditionally compile for wide-int.
21295 (init_emit_once): Use wide-int interfaces.
21296 * explow.c (plus_constant): Likewise.
21297 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
21298 (lshift_value): Use wide-int interfaces.
21299 (expand_mult): Likewise.
21300 (choose_multiplier): Likewise.
21301 (expand_smod_pow2): Likewise.
21302 (make_tree): Likewise.
21303 * expr.c (convert_modes): Consolidate handling of constants.
21304 Use wide-int interfaces.
21305 (emit_group_load_1): Add note.
21306 (store_expr): Update comment.
21307 (get_inner_reference): Use wide-int interfaces.
21308 (expand_constructor): Update comment.
21309 (expand_expr_real_2): Use wide-int interfaces.
21310 (expand_expr_real_1): Likewise.
21311 (reduce_to_bit_field_precision): Likewise.
21312 (const_vector_from_tree): Likewise.
21313 * final.c: Include wide-int-print.h.
21314 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
21315 * fixed-value.c: Include wide-int.h.
21316 (fixed_from_string): Use wide-int interfaces.
21317 (fixed_to_decimal): Likewise.
21318 (fixed_convert_from_real): Likewise.
21319 (real_convert_from_fixed): Likewise.
21320 * fold-const.h (mem_ref_offset): Return an offset_int.
21321 (div_if_zero_remainder): Remove code parameter.
21322 * fold-const.c (div_if_zero_remainder): Remove code parameter.
21323 Use wide-int interfaces.
21324 (may_negate_without_overflow_p): Use wide-int interfaces.
21325 (negate_expr_p): Likewise.
21326 (fold_negate_expr): Likewise.
21327 (int_const_binop_1): Likewise.
21328 (const_binop): Likewise.
21329 (fold_convert_const_int_from_int): Likewise.
21330 (fold_convert_const_int_from_real): Likewise.
21331 (fold_convert_const_int_from_fixed): Likewise.
21332 (fold_convert_const_fixed_from_int): Likewise.
21333 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
21334 (sign_bit_p): Use wide-int interfaces.
21335 (make_range_step): Likewise.
21336 (build_range_check): Likewise. Pass an integer of the correct type
21337 instead of using integer_one_node.
21338 (range_predecessor): Pass an integer of the correct type instead
21339 of using integer_one_node.
21340 (range_successor): Likewise.
21341 (merge_ranges): Likewise.
21342 (unextend): Use wide-int interfaces.
21343 (extract_muldiv_1): Likewise.
21344 (fold_div_compare): Likewise.
21345 (fold_single_bit_test): Likewise.
21346 (fold_sign_changed_comparison): Likewise.
21347 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
21348 (fold_plusminus_mult_expr): Use wide-int interfaces.
21349 (native_encode_int): Likewise.
21350 (native_interpret_int): Likewise.
21351 (fold_unary_loc): Likewise.
21352 (pointer_may_wrap_p): Likewise.
21353 (size_low_cst): Likewise.
21354 (mask_with_tz): Likewise.
21355 (fold_binary_loc): Likewise.
21356 (fold_ternary_loc): Likewise.
21357 (multiple_of_p): Likewise.
21358 (tree_call_nonnegative_warnv_p): Update calls to
21359 tree_int_cst_min_precision and real_from_integer.
21360 (fold_negate_const): Use wide-int interfaces.
21361 (fold_abs_const): Likewise.
21362 (fold_relational_const): Use tree_int_cst_lt.
21363 (round_up_loc): Use wide-int interfaces.
21364 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
21365 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
21366 * gengtype.c: Remove include of double-int.h.
21367 (do_typedef): Use wide-int interfaces.
21368 (open_base_files): Add wide-int.h.
21369 (main): Add offset_int and widest_int typedefs.
21370 * gengtype-lex.l: Handle "^".
21371 (CXX_KEYWORD): Add "static".
21372 * gengtype-parse.c (require3): New.
21373 (require_template_declaration): Handle constant template arguments
21374 and nested templates.
21375 * gengtype-state.c: Don't include "double-int.h".
21376 * genpreds.c (write_one_predicate_function): Update comment.
21377 (write_tm_constrs_h): Add check for hval and lval use in
21378 CONST_WIDE_INT.
21379 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
21380 (add_to_sequence): Likewise.
21381 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
21382 and const_double_operand.
21383 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
21384 interfaces.
21385 * gimple-fold.c (get_base_constructor): Likewise.
21386 (fold_array_ctor_reference): Likewise.
21387 (fold_nonarray_ctor_reference): Likewise.
21388 (fold_const_aggregate_ref_1): Likewise.
21389 (gimple_val_nonnegative_real_p): Likewise.
21390 (gimple_fold_indirect_ref): Likewise.
21391 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
21392 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
21393 (struct slsr_cand_d): Change index to be widest_int.
21394 (struct incr_info_d): Change incr to be widest_int.
21395 (alloc_cand_and_find_basis): Use wide-int interfaces.
21396 (slsr_process_phi): Likewise.
21397 (backtrace_base_for_ref): Likewise. Return a widest_int.
21398 (restructure_reference): Take a widest_int instead of a double_int.
21399 (slsr_process_ref): Use wide-int interfaces.
21400 (create_mul_ssa_cand): Likewise.
21401 (create_mul_imm_cand): Likewise.
21402 (create_add_ssa_cand): Likewise.
21403 (create_add_imm_cand): Take a widest_int instead of a double_int.
21404 (slsr_process_add): Use wide-int interfaces.
21405 (slsr_process_cast): Likewise.
21406 (slsr_process_copy): Likewise.
21407 (dump_candidate): Likewise.
21408 (dump_incr_vec): Likewise.
21409 (replace_ref): Likewise.
21410 (cand_increment): Likewise. Return a widest_int.
21411 (cand_abs_increment): Likewise.
21412 (replace_mult_candidate): Take a widest_int instead of a double_int.
21413 (replace_unconditional_candidate): Use wide-int interfaces.
21414 (incr_vec_index): Take a widest_int instead of a double_int.
21415 (create_add_on_incoming_edge): Likewise.
21416 (create_phi_basis): Use wide-int interfaces.
21417 (replace_conditional_candidate): Likewise.
21418 (record_increment): Take a widest_int instead of a double_int.
21419 (record_phi_increments): Use wide-int interfaces.
21420 (phi_incr_cost): Take a widest_int instead of a double_int.
21421 (lowest_cost_path): Likewise.
21422 (total_savings): Likewise.
21423 (analyze_increments): Use wide-int interfaces.
21424 (ncd_with_phi): Take a widest_int instead of a double_int.
21425 (ncd_of_cand_and_phis): Likewise.
21426 (nearest_common_dominator_for_cands): Likewise.
21427 (insert_initializers): Use wide-int interfaces.
21428 (all_phi_incrs_profitable): Likewise.
21429 (replace_one_candidate): Likewise.
21430 (replace_profitable_candidates): Likewise.
21431 * godump.c: Include wide-int-print.h.
21432 (go_output_typedef): Use wide-int interfaces.
21433 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
21434 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
21435 (build_loop_iteration_domains): Likewise.
21436 * hooks.h: Include wide-int.h rather than double-int.h.
21437 (hook_bool_dint_dint_uint_bool_true): Delete.
21438 (hook_bool_wint_wint_uint_bool_true): Declare.
21439 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
21440 (hook_bool_wint_wint_uint_bool_true): New.
21441 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
21442 interfaces.
21443 (ubsan_expand_si_overflow_mul_check): Likewise.
21444 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
21445 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
21446 (get_ancestor_addr_info): Likewise.
21447 (ipa_modify_call_arguments): Likewise.
21448 * loop-doloop.c (doloop_modify): Likewise.
21449 (doloop_optimize): Likewise.
21450 * loop-iv.c (iv_number_of_iterations): Likewise.
21451 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
21452 (unroll_loop_constant_iterations): Likewise.
21453 (decide_unroll_runtime_iterations): Likewise.
21454 (unroll_loop_runtime_iterations): Likewise.
21455 (decide_peel_simple): Likewise.
21456 (decide_unroll_stupid): Likewise.
21457 * lto-streamer-in.c (streamer_read_wi): Add.
21458 (input_cfg): Use wide-int interfaces.
21459 (lto_input_tree_1): Likewise.
21460 * lto-streamer-out.c (streamer_write_wi): Add.
21461 (hash_tree): Use wide-int interfaces.
21462 (output_cfg): Likewise.
21463 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
21464 (GTFILES): Add wide-int.h and signop.h.
21465 (TAGS): Look for .cc files too.
21466 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
21467 * optabs.c (expand_subword_shift): Likewise.
21468 (expand_doubleword_shift): Likewise.
21469 (expand_absneg_bit): Likewise.
21470 (expand_copysign_absneg): Likewise.
21471 (expand_copysign_bit): Likewise.
21472 * postreload.c (reload_cse_simplify_set): Likewise.
21473 * predict.c (predict_iv_comparison): Likewise.
21474 * pretty-print.h: Include wide-int-print.h.
21475 (pp_wide_int) New.
21476 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
21477 * print-tree.c: Include wide-int-print.h.
21478 (print_node_brief): Use wide-int interfaces.
21479 (print_node): Likewise.
21480 * read-rtl.c (validate_const_wide_int): New.
21481 (read_rtx_code): Add CONST_WIDE_INT case.
21482 * real.c: Include wide-int.h.
21483 (real_to_integer2): Delete.
21484 (real_to_integer): New function, returning a wide_int.
21485 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
21486 (ten_to_ptwo): Update call to real_from_integer.
21487 (real_digit): Likewise.
21488 * real.h: Include signop.h, wide-int.h and insn-modes.h.
21489 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
21490 (REAL_VALUE_TO_INT): Delete.
21491 (real_to_integer): Declare a wide-int form.
21492 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
21493 * recog.c (const_int_operand): Improve comment.
21494 (const_scalar_int_operand): New.
21495 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
21496 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
21497 (split_double): Likewise.
21498 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
21499 (rtx_size): Likewise.
21500 (rtx_alloc_stat_v): New.
21501 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
21502 (cwi_output_hex): New.
21503 (iterative_hash_rtx): Handle CONST_WIDE_INT.
21504 (cwi_check_failed_bounds): New.
21505 * rtl.def (CONST_WIDE_INT): New.
21506 * rtl.h: Include <utility> and wide-int.h.
21507 (struct hwivec_def): New.
21508 (CWI_GET_NUM_ELEM): New.
21509 (CWI_PUT_NUM_ELEM): New.
21510 (struct rtx_def): Add num_elem and hwiv.
21511 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
21512 (CASE_CONST_UNIQUE): Likewise.
21513 (CASE_CONST_ANY): Likewise.
21514 (CONST_SCALAR_INT_P): Likewise.
21515 (CONST_WIDE_INT_P): New.
21516 (CWI_ELT): New.
21517 (HWIVEC_CHECK): New.
21518 (cwi_check_failed_bounds): New.
21519 (CWI_ELT): New.
21520 (HWIVEC_CHECK): New.
21521 (CONST_WIDE_INT_VEC) New.
21522 (CONST_WIDE_INT_NUNITS) New.
21523 (CONST_WIDE_INT_ELT) New.
21524 (rtx_mode_t): New type.
21525 (wi::int_traits <rtx_mode_t>): New.
21526 (wi::shwi): New.
21527 (wi::min_value): New.
21528 (wi::max_value): New.
21529 (rtx_alloc_v) New.
21530 (const_wide_int_alloc): New.
21531 (immed_wide_int_const): New.
21532 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
21533 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
21534 * signop.h: New file.
21535 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
21536 (simplify_const_unary_operation): Use wide-int interfaces.
21537 (simplify_binary_operation_1): Likewise.
21538 (simplify_const_binary_operation): Likewise.
21539 (simplify_const_relational_operation): Likewise.
21540 (simplify_immed_subreg): Likewise.
21541 * stmt.c (expand_case): Likewise.
21542 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
21543 signop rather than a bool.
21544 * stor-layout.c (layout_type): Use wide-int interfaces.
21545 (initialize_sizetypes): Update calls to
21546 set_min_and_max_values_for_integral_type.
21547 (set_min_and_max_values_for_integral_type): Take a signop rather
21548 than a bool. Use wide-int interfaces.
21549 (fixup_signed_type): Update accordingly. Remove
21550 HOST_BITS_PER_DOUBLE_INT limit.
21551 (fixup_unsigned_type): Likewise.
21552 * system.h (STATIC_CONSTANT_P): New.
21553 (STATIC_ASSERT): New.
21554 * target.def (can_use_doloop_p): Take widest_ints rather than
21555 double_ints.
21556 * target.h: Include wide-int.h rather than double-int.h.
21557 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
21558 than double_ints.
21559 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
21560 rather than INT_CST_LT_UNSIGNED.
21561 (can_use_doloop_if_innermost): Take widest_ints rather than
21562 double_ints.
21563 * tree-affine.c: Include wide-int-print.h.
21564 (double_int_ext_for_comb): Delete.
21565 (wide_int_ext_for_comb): New.
21566 (aff_combination_zero): Use wide-int interfaces.
21567 (aff_combination_const): Take a widest_int instead of a double_int.
21568 (aff_combination_elt): Use wide-int interfaces.
21569 (aff_combination_scale): Take a widest_int instead of a double_int.
21570 (aff_combination_add_elt): Likewise.
21571 (aff_combination_add_cst): Likewise.
21572 (aff_combination_add): Use wide-int interfaces.
21573 (aff_combination_convert): Likewise.
21574 (tree_to_aff_combination): Likewise.
21575 (add_elt_to_tree): Take a widest_int instead of a double_int.
21576 (aff_combination_to_tree): Use wide-int interfaces.
21577 (aff_combination_remove_elt): Likewise.
21578 (aff_combination_add_product): Take a widest_int instead of
21579 a double_int.
21580 (aff_combination_mult): Use wide-int interfaces.
21581 (aff_combination_expand): Likewise.
21582 (double_int_constant_multiple_p): Delete.
21583 (wide_int_constant_multiple_p): New.
21584 (aff_combination_constant_multiple_p): Take a widest_int pointer
21585 instead of a double_int pointer.
21586 (print_aff): Use wide-int interfaces.
21587 (get_inner_reference_aff): Take a widest_int pointer
21588 instead of a double_int pointer.
21589 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
21590 * tree-affine.h: Include wide-int.h.
21591 (struct aff_comb_elt): Change type of coef to widest_int.
21592 (struct affine_tree_combination): Change type of offset to widest_int.
21593 (double_int_ext_for_comb): Delete.
21594 (wide_int_ext_for_comb): New.
21595 (aff_combination_const): Use widest_int instead of double_int.
21596 (aff_combination_scale): Likewise.
21597 (aff_combination_add_elt): Likewise.
21598 (aff_combination_constant_multiple_p): Likewise.
21599 (get_inner_reference_aff): Likewise.
21600 (aff_comb_cannot_overlap_p): Likewise.
21601 (aff_combination_zero_p): Use wide-int interfaces.
21602 * tree.c: Include tree.h.
21603 (init_ttree): Use make_int_cst.
21604 (tree_code_size): Removed code for INTEGER_CST case.
21605 (tree_size): Add INTEGER_CST case.
21606 (make_node_stat): Update comment.
21607 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
21608 (build_int_cst_type): Use wide-int interfaces.
21609 (double_int_to_tree): Likewise.
21610 (double_int_fits_to_tree_p): Delete.
21611 (force_fit_type_double): Delete.
21612 (force_fit_type): New.
21613 (int_cst_hash_hash): Use wide-int interfaces.
21614 (int_cst_hash_eq): Likewise.
21615 (build_int_cst_wide): Delete.
21616 (wide_int_to_tree): New.
21617 (cache_integer_cst): Use wide-int interfaces.
21618 (build_low_bits_mask): Likewise.
21619 (cst_and_fits_in_hwi): Likewise.
21620 (real_value_from_int_cst): Likewise.
21621 (make_int_cst_stat): New.
21622 (integer_zerop): Use wide_int interfaces.
21623 (integer_onep): Likewise.
21624 (integer_all_onesp): Likewise.
21625 (integer_pow2p): Likewise.
21626 (integer_nonzerop): Likewise.
21627 (tree_log2): Likewise.
21628 (tree_floor_log2): Likewise.
21629 (tree_ctz): Likewise.
21630 (int_size_in_bytes): Likewise.
21631 (mem_ref_offset): Return an offset_int rather than a double_int.
21632 (build_type_attribute_qual_variant): Use wide_int interfaces.
21633 (type_hash_eq): Likewise
21634 (tree_int_cst_equal): Likewise.
21635 (tree_int_cst_lt): Delete.
21636 (tree_int_cst_compare): Likewise.
21637 (tree_fits_shwi_p): Use wide_int interfaces.
21638 (tree_fits_uhwi_p): Likewise.
21639 (tree_int_cst_sign_bit): Likewise.
21640 (tree_int_cst_sgn): Likewise.
21641 (tree_int_cst_min_precision): Take a signop rather than a bool.
21642 (simple_cst_equal): Use wide_int interfaces.
21643 (compare_tree_int): Likewise.
21644 (iterative_hash_expr): Likewise.
21645 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
21646 INT_CST_LT.
21647 (get_type_static_bounds): Use wide_int interfaces.
21648 (tree_int_cst_elt_check_failed): New.
21649 (build_common_tree_nodes): Reordered to set prec before filling in
21650 value.
21651 (int_cst_value): Check cst_and_fits_in_hwi.
21652 (widest_int_cst_value): Use wide_int interfaces.
21653 (upper_bound_in_type): Likewise.
21654 (lower_bound_in_type): Likewise.
21655 (num_ending_zeros): Likewise.
21656 (drop_tree_overflow): Likewise.
21657 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
21658 (gen_conditions_for_pow_cst_base): Likewise.
21659 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
21660 (group_case_labels_stmt): Use wide-int interfaces.
21661 (verify_gimple_assign_binary): Likewise.
21662 (print_loop): Likewise.
21663 * tree-chrec.c (tree_fold_binomial): Likewise.
21664 * tree-core.h (struct tree_base): Add int_length.
21665 (struct tree_int_cst): Change rep of value.
21666 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
21667 (dr_may_alias_p): Likewise.
21668 (max_stmt_executions_tree): Likewise.
21669 * tree.def (INTEGER_CST): Update comment.
21670 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
21671 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
21672 * tree-dump.c: Include wide-int.h and wide-int-print.h.
21673 (dequeue_and_dump): Use wide-int interfaces.
21674 * tree.h: Include wide-int.h.
21675 (NULL_TREE): Moved to earlier loc in file.
21676 (TREE_INT_CST_ELT_CHECK): New.
21677 (tree_int_cst_elt_check_failed): New.
21678 (TYPE_SIGN): New.
21679 (TREE_INT_CST): Delete.
21680 (TREE_INT_CST_LOW): Use wide-int interfaces.
21681 (TREE_INT_CST_HIGH): Delete.
21682 (TREE_INT_CST_NUNITS): New.
21683 (TREE_INT_CST_EXT_NUNITS): Likewise.
21684 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
21685 (TREE_INT_CST_ELT): Likewise.
21686 (INT_CST_LT): Delete.
21687 (tree_int_cst_elt_check): New (two forms).
21688 (type_code_size): Update comment.
21689 (make_int_cst_stat, make_int_cst): New.
21690 (tree_to_double_int): Delete.
21691 (double_int_fits_to_tree_p): Delete.
21692 (force_fit_type_double): Delete.
21693 (build_int_cstu): Replace with out-of-line function.
21694 (build_int_cst_wide): Delete.
21695 (tree_int_cst_lt): Define inline.
21696 (tree_int_cst_le): New.
21697 (tree_int_cst_compare): Define inline.
21698 (tree_int_cst_min_precision): Take a signop rather than a bool.
21699 (wi::int_traits <const_tree>): New.
21700 (wi::int_traits <tree>): New.
21701 (wi::extended_tree): New.
21702 (wi::int_traits <wi::extended_tree>): New.
21703 (wi::to_widest): New.
21704 (wi::to_offset): New.
21705 (wi::fits_to_tree_p): New.
21706 (wi::min_value): New.
21707 (wi::max_value): New.
21708 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
21709 (copy_tree_body_r): Likewise.
21710 * tree-object-size.c (compute_object_offset): Likewise.
21711 (addr_object_size): Likewise.
21712 * tree-predcom.c: Include wide-int-print.h.
21713 (struct dref_d): Change type of offset to widest_int.
21714 (dump_dref): Call wide-int printer.
21715 (aff_combination_dr_offset): Use wide-int interfaces.
21716 (determine_offset): Take a widest_int pointer rather than a
21717 double_int pointer.
21718 (split_data_refs_to_components): Use wide-int interfaces.
21719 (suitable_component_p): Likewise.
21720 (order_drefs): Likewise.
21721 (add_ref_to_chain): Likewise.
21722 (valid_initializer_p): Likewise.
21723 (determine_roots_comp): Likewise.
21724 * tree-pretty-print.c: Include wide-int-print.h.
21725 (dump_generic_node): Use wide-int interfaces.
21726 * tree-sra.c (sra_ipa_modify_expr): Likewise.
21727 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
21728 (move_fixed_address_to_symbol): Likewise.
21729 (move_hint_to_base): Likewise.
21730 (move_pointer_to_base): Likewise.
21731 (move_variant_to_index): Likewise.
21732 (most_expensive_mult_to_index): Likewise.
21733 (addr_to_parts): Likewise.
21734 (copy_ref_info): Likewise.
21735 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
21736 (indirect_refs_may_alias_p): Likewise.
21737 (stmt_kills_ref_p_1): Likewise.
21738 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
21739 * tree-ssa-ccp.c: Update comment at top of file. Include
21740 wide-int-print.h.
21741 (struct prop_value_d): Change type of mask to widest_int.
21742 (extend_mask): New function.
21743 (dump_lattice_value): Use wide-int interfaces.
21744 (get_default_value): Likewise.
21745 (set_constant_value): Likewise.
21746 (set_value_varying): Likewise.
21747 (valid_lattice_transition): Likewise.
21748 (set_lattice_value): Likewise.
21749 (value_to_double_int): Delete.
21750 (value_to_wide_int): New.
21751 (get_value_from_alignment): Use wide-int interfaces.
21752 (get_value_for_expr): Likewise.
21753 (do_dbg_cnt): Likewise.
21754 (ccp_finalize): Likewise.
21755 (ccp_lattice_meet): Likewise.
21756 (bit_value_unop_1): Use widest_ints rather than double_ints.
21757 (bit_value_binop_1): Likewise.
21758 (bit_value_unop): Use wide-int interfaces.
21759 (bit_value_binop): Likewise.
21760 (bit_value_assume_aligned): Likewise.
21761 (evaluate_stmt): Likewise.
21762 (ccp_fold_stmt): Likewise.
21763 (visit_cond_stmt): Likewise.
21764 (ccp_visit_stmt): Likewise.
21765 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
21766 (constant_pointer_difference): Likewise.
21767 (associate_pointerplus): Likewise.
21768 (combine_conversions): Likewise.
21769 * tree-ssa-loop.h: Include wide-int.h.
21770 (struct tree_niter_desc): Change type of max to widest_int.
21771 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
21772 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
21773 (remove_redundant_iv_tests): Likewise.
21774 (canonicalize_loop_induction_variables): Likewise.
21775 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
21776 (constant_multiple_of): Take a widest_int pointer instead of
21777 a double_int pointer.
21778 (get_computation_aff): Use wide-int interfaces.
21779 (ptr_difference_cost): Likewise.
21780 (difference_cost): Likewise.
21781 (get_loop_invariant_expr_id): Likewise.
21782 (get_computation_cost_at): Likewise.
21783 (iv_elimination_compare_lt): Likewise.
21784 (may_eliminate_iv): Likewise.
21785 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
21786 instead of double_int.
21787 (max_loop_iterations): Likewise.
21788 (max_stmt_executions): Likewise.
21789 (estimated_stmt_executions): Likewise.
21790 * tree-ssa-loop-niter.c: Include wide-int-print.h.
21791 (split_to_var_and_offset): Use wide-int interfaces.
21792 (determine_value_range): Likewise.
21793 (bound_difference_of_offsetted_base): Likewise.
21794 (bounds_add): Take a widest_int instead of a double_int.
21795 (number_of_iterations_ne_max): Use wide-int interfaces.
21796 (number_of_iterations_ne): Likewise.
21797 (number_of_iterations_lt_to_ne): Likewise.
21798 (assert_loop_rolls_lt): Likewise.
21799 (number_of_iterations_lt): Likewise.
21800 (number_of_iterations_le): Likewise.
21801 (number_of_iterations_cond): Likewise.
21802 (number_of_iterations_exit): Likewise.
21803 (finite_loop_p): Likewise.
21804 (derive_constant_upper_bound_assign): Likewise.
21805 (derive_constant_upper_bound): Return a widest_int.
21806 (derive_constant_upper_bound_ops): Likewise.
21807 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
21808 (record_estimate): Take a widest_int rather than a double_int.
21809 (record_nonwrapping_iv): Use wide-int interfaces.
21810 (double_int_cmp): Delete.
21811 (wide_int_cmp): New.
21812 (bound_index): Take a widest_int rather than a double_int.
21813 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
21814 (maybe_lower_iteration_bound): Likewise.
21815 (estimate_numbers_of_iterations_loop): Likewise.
21816 (estimated_loop_iterations): Take a widest_int pointer than than
21817 a double_int pointer.
21818 (estimated_loop_iterations_int): Use wide-int interfaces.
21819 (max_loop_iterations): Take a widest_int pointer than than
21820 a double_int pointer.
21821 (max_loop_iterations_int): Use wide-int interfaces.
21822 (max_stmt_executions): Take a widest_int pointer than than
21823 a double_int pointer.
21824 (estimated_stmt_executions): Likewise.
21825 (n_of_executions_at_most): Use wide-int interfaces.
21826 (scev_probably_wraps_p): Likewise.
21827 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
21828 to real_to_integer.
21829 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
21830 interfaces.
21831 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
21832 double_ints. Adjust for trailing_wide_ints <3> representation.
21833 (set_nonzero_bits): Likewise.
21834 (get_range_info): Return wide_ints rather than double_ints.
21835 Adjust for trailing_wide_ints <3> representation.
21836 (get_nonzero_bits): Likewise.
21837 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
21838 representation.
21839 * tree-ssanames.h (struct range_info_def): Replace min, max and
21840 nonzero_bits with a trailing_wide_ints <3>.
21841 (set_range_info): Use wide_int_refs rather than double_ints.
21842 (set_nonzero_bits): Likewise.
21843 (get_range_info): Return wide_ints rather than double_ints.
21844 (get_nonzero_bits): Likewise.
21845 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
21846 * tree-ssa-pre.c (phi_translate_1): Likewise.
21847 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
21848 (acceptable_pow_call): Likewise.
21849 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
21850 interfaces.
21851 (vn_reference_fold_indirect): Likewise.
21852 (vn_reference_maybe_forwprop_address): Likewise.
21853 (valueize_refs_1): Likewise.
21854 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
21855 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
21856 tree_int_cst_lt and tree_int_cst_le.
21857 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
21858 interfaces.
21859 (streamer_alloc_tree): Likewise.
21860 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
21861 (streamer_write_tree_header): Likewise.
21862 (streamer_write_integer_cst): Likewise.
21863 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
21864 (build_constructors): Likewise.
21865 (array_value_type): Likewise.
21866 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
21867 (vect_check_gather): Likewise.
21868 * tree-vect-generic.c (build_replicated_const): Likewise.
21869 (expand_vector_divmod): Likewise.
21870 * tree-vect-loop.c (vect_transform_loop): Likewise.
21871 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
21872 (vect_do_peeling_for_alignment): Likewise.
21873 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
21874 * tree-vrp.c: Include wide-int.h.
21875 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
21876 (extract_range_from_assert): Use wide-int interfaces.
21877 (vrp_int_const_binop): Likewise.
21878 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
21879 double_int pointers.
21880 (ranges_from_anti_range): Use wide-int interfaces.
21881 (quad_int_cmp): Delete.
21882 (quad_int_pair_sort): Likewise.
21883 (extract_range_from_binary_expr_1): Use wide-int interfaces.
21884 (extract_range_from_unary_expr_1): Likewise.
21885 (adjust_range_with_scev): Likewise.
21886 (masked_increment): Take and return wide_ints rather than double_ints.
21887 (register_edge_assert_for_2): Use wide-int interfaces.
21888 (check_array_ref): Likewise.
21889 (search_for_addr_array): Likewise.
21890 (maybe_set_nonzero_bits): Likewise.
21891 (union_ranges): Pass an integer of the correct type instead of
21892 using integer_one_node.
21893 (intersect_ranges): Likewise.
21894 (simplify_truth_ops_using_ranges): Likewise.
21895 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
21896 (range_fits_type_p): Likewise.
21897 (simplify_cond_using_ranges): Likewise. Take a signop rather than
21898 a bool.
21899 (simplify_conversion_using_ranges): Use wide-int interfaces.
21900 (simplify_float_conversion_using_ranges): Likewise.
21901 (vrp_finalize): Likewise.
21902 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
21903 (gimple_stringops_transform): Likewise.
21904 * varasm.c (decode_addr_const): Likewise.
21905 (const_hash_1): Likewise.
21906 (const_rtx_hash_1): Likewise
21907 (output_constant): Likewise.
21908 (array_size_for_constructor): Likewise.
21909 (output_constructor_regular_field): Likewise.
21910 (output_constructor_bitfield): Likewise.
21911 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
21912 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
21913 GENERATOR_FILEs.
21914 * gencheck.c: Define BITS_PER_UNIT.
21915 * wide-int.cc: New.
21916 * wide-int.h: New.
21917 * wide-int-print.cc: New.
21918 * wide-int-print.h: New.
21919
21920 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21921
21922 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
21923
21924 2014-05-06 Richard Biener <rguenther@suse.de>
21925
21926 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
21927 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
21928 (TODO_verify_all): Adjust.
21929 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
21930 TODO_verify_stmts and TODO_verify_rtl_sharing.
21931 * bb-reorder.c: Likewise.
21932 * cfgexpand.c: Likewise.
21933 * cprop.c: Likewise.
21934 * cse.c: Likewise.
21935 * function.c: Likewise.
21936 * fwprop.c: Likewise.
21937 * gcse.c: Likewise.
21938 * gimple-ssa-isolate-paths.c: Likewise.
21939 * gimple-ssa-strength-reduction.c: Likewise.
21940 * ipa-split.c: Likewise.
21941 * loop-init.c: Likewise.
21942 * loop-unroll.c: Likewise.
21943 * lower-subreg.c: Likewise.
21944 * modulo-sched.c: Likewise.
21945 * postreload-gcse.c: Likewise.
21946 * predict.c: Likewise.
21947 * recog.c: Likewise.
21948 * sched-rgn.c: Likewise.
21949 * store-motion.c: Likewise.
21950 * tracer.c: Likewise.
21951 * trans-mem.c: Likewise.
21952 * tree-call-cdce.c: Likewise.
21953 * tree-cfg.c: Likewise.
21954 * tree-cfgcleanup.c: Likewise.
21955 * tree-complex.c: Likewise.
21956 * tree-eh.c: Likewise.
21957 * tree-emutls.c: Likewise.
21958 * tree-if-conv.c: Likewise.
21959 * tree-into-ssa.c: Likewise.
21960 * tree-loop-distribution.c: Likewise.
21961 * tree-object-size.c: Likewise.
21962 * tree-parloops.c: Likewise.
21963 * tree-pass.h: Likewise.
21964 * tree-sra.c: Likewise.
21965 * tree-ssa-ccp.c: Likewise.
21966 * tree-ssa-copy.c: Likewise.
21967 * tree-ssa-copyrename.c: Likewise.
21968 * tree-ssa-dce.c: Likewise.
21969 * tree-ssa-dom.c: Likewise.
21970 * tree-ssa-dse.c: Likewise.
21971 * tree-ssa-forwprop.c: Likewise.
21972 * tree-ssa-ifcombine.c: Likewise.
21973 * tree-ssa-loop-ch.c: Likewise.
21974 * tree-ssa-loop-ivcanon.c: Likewise.
21975 * tree-ssa-loop.c: Likewise.
21976 * tree-ssa-math-opts.c: Likewise.
21977 * tree-ssa-phiopt.c: Likewise.
21978 * tree-ssa-phiprop.c: Likewise.
21979 * tree-ssa-pre.c: Likewise.
21980 * tree-ssa-reassoc.c: Likewise.
21981 * tree-ssa-sink.c: Likewise.
21982 * tree-ssa-strlen.c: Likewise.
21983 * tree-ssa-tail-merge.c: Likewise.
21984 * tree-ssa-uncprop.c: Likewise.
21985 * tree-switch-conversion.c: Likewise.
21986 * tree-tailcall.c: Likewise.
21987 * tree-vect-generic.c: Likewise.
21988 * tree-vectorizer.c: Likewise.
21989 * tree-vrp.c: Likewise.
21990 * tsan.c: Likewise.
21991 * var-tracking.c: Likewise.
21992 * bt-load.c: Likewise.
21993 * cfgcleanup.c: Likewise.
21994 * combine-stack-adj.c: Likewise.
21995 * combine.c: Likewise.
21996 * compare-elim.c: Likewise.
21997 * config/epiphany/resolve-sw-modes.c: Likewise.
21998 * config/i386/i386.c: Likewise.
21999 * config/mips/mips.c: Likewise.
22000 * config/s390/s390.c: Likewise.
22001 * config/sh/sh_treg_combine.cc: Likewise.
22002 * config/sparc/sparc.c: Likewise.
22003 * dce.c: Likewise.
22004 * dse.c: Likewise.
22005 * final.c: Likewise.
22006 * ifcvt.c: Likewise.
22007 * mode-switching.c: Likewise.
22008 * passes.c: Likewise.
22009 * postreload.c: Likewise.
22010 * ree.c: Likewise.
22011 * reg-stack.c: Likewise.
22012 * regcprop.c: Likewise.
22013 * regrename.c: Likewise.
22014 * web.c: Likewise.
22015
22016 2014-05-06 Richard Biener <rguenther@suse.de>
22017
22018 PR middle-end/61070
22019 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
22020 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
22021
22022 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
22023
22024 PR ipa/60965
22025 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
22026
22027 2014-05-05 Radovan Obradovic <robradovic@mips.com>
22028 Tom de Vries <tom@codesourcery.com>
22029
22030 * target.def (call_fusage_contains_non_callee_clobbers): New
22031 DEFHOOKPOD.
22032 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
22033 Hooks to @menu.
22034 (@node Miscellaneous Register Hooks): New node.
22035 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
22036 * doc/tm.texi: Regenerate.
22037
22038 2014-05-05 Marek Polacek <polacek@redhat.com>
22039
22040 PR driver/61065
22041 * opts.c (common_handle_option): Call error_at instead of warning_at.
22042
22043 2014-05-05 Richard Biener <rguenther@suse.de>
22044
22045 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
22046 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
22047 under the TODO_verify_il umbrella.
22048
22049 2014-05-05 Richard Biener <rguenther@suse.de>
22050
22051 * passes.c (execute_function_todo): Move TODO_verify_flow under
22052 the TODO_verify_ul umbrella.
22053
22054 2014-05-05 Richard Biener <rguenther@suse.de>
22055
22056 PR middle-end/61010
22057 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
22058 X & CST away from a CST that is the mask of a mode.
22059
22060 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22061
22062 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
22063 int argument to enum machine_mode.
22064 (picochip_class_max_nregs): Ditto.
22065 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
22066 (picochip_class_max_nregs): Ditto.
22067
22068 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22069
22070 * target.def: Add new target hook.
22071 * doc/tm.texi: Regenerate.
22072 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
22073 * targhooks.c (default_keep_leaf_when_profiled): New function.
22074
22075 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
22076 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
22077
22078 2014-05-05 Bin Cheng <bin.cheng@arm.com>
22079
22080 PR tree-optimization/60363
22081 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
22082 (copy_phi_args): New parameters. Call get_value_locus_in_path.
22083 (update_destination_phis): New parameter.
22084 (create_edge_and_update_destination_phis): Ditto.
22085 (ssa_fix_duplicate_block_edges): Pass new arguments.
22086 (thread_single_edge): Ditto.
22087
22088 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
22089
22090 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
22091 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
22092 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
22093 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
22094 Use RS6000_BTM_HARD_FLOAT.
22095 (BU_MISC_2): Likewise.
22096 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
22097 RS6000_BTM_HARD_FLOAT.
22098 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
22099 is explicitly used.
22100 (rs6000_invalid_builtin): Add hard floating builtin support.
22101 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
22102 hard float builtins.
22103 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
22104
22105 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22106
22107 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
22108 Add missing function* argument.
22109
22110 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
22111
22112 * lra-constraints.c (valid_address_p): Move earlier in file.
22113 Add a constraint argument to the address_info version.
22114 (satisfies_memory_constraint_p): New function.
22115 (satisfies_address_constraint_p): Likewise.
22116 (process_alt_operands, curr_insn_transform): Use them.
22117 (process_address): Pass the constraint to valid_address_p when
22118 checking address operands.
22119
22120 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
22121
22122 * config/mips/mips.c (mips_isa_rev): New variable.
22123 (mips_set_architecture): Set it.
22124 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
22125 from mips_isa_rev.
22126 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
22127 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
22128 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
22129 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
22130 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
22131 conditions in terms of mips_isa_rev.
22132 (mips_isa_rev): Declare.
22133
22134 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22135
22136 * config/sh/sh-mem.cc: Use tabs instead of spaces.
22137 (prob_unlikely, prob_likely): Make variables const.
22138
22139 2014-05-03 Denis Chertykov <chertykov@gmail.com>
22140
22141 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
22142
22143 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22144
22145 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
22146
22147 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22148
22149 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
22150 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
22151 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
22152 functions.
22153 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
22154 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
22155 sh_pass_in_reg_p.
22156 Replace usage of ROUND_REG with sh_round_reg.
22157 Use CEIL instead of ROUND_ADVANCE.
22158
22159 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22160
22161 PR target/61026
22162 * config/sh/sh.c: Include stdlib headers before everything else.
22163
22164 2014-05-02 Jakub Jelinek <jakub@redhat.com>
22165
22166 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
22167 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
22168 (gimplify_adjust_omp_clauses): Simd region is never
22169 directly nested in combined parallel. Instead, for linear
22170 with copyin/copyout, if in combined for simd loop, make decl
22171 firstprivate/lastprivate on OMP_FOR.
22172 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
22173 expand_omp_for_static_chunk): When setting endvar, also set
22174 fd->loop.v to the same value.
22175
22176 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
22177
22178 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
22179
22180 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
22181
22182 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
22183 expression.
22184
22185 2014-05-02 Marek Polacek <polacek@redhat.com>
22186
22187 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
22188
22189 2014-05-02 Kito Cheng <kito@0xlab.org>
22190
22191 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
22192 to a C expression marco.
22193 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
22194 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
22195 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
22196 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
22197 HONOR_REG_ALLOC_ORDER.
22198 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
22199
22200 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22201
22202 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
22203
22204 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22205
22206 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
22207
22208 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
22209
22210 * tree-if-conv.c (is_cond_scalar_reduction): New function.
22211 (convert_scalar_cond_reduction): Likewise.
22212 (predicate_scalar_phi): Add recognition and transformation
22213 of simple conditioanl reduction to be vectorizable.
22214
22215 2014-05-01 Marek Polacek <polacek@redhat.com>
22216
22217 PR c/43245
22218 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
22219
22220 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
22221
22222 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
22223 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
22224 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
22225 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
22226 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
22227 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
22228 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
22229 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
22230
22231 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
22232
22233 * config/arc/arc.opt (mlra): Move comment above option name
22234 to avoid mis-parsing as language options.
22235
22236 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22237
22238 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
22239 * config/sol2.h: ... here.
22240 * config/sol2-10.h: Remove.
22241
22242 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
22243 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
22244 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
22245 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
22246 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
22247 * config/sol2.h: ... here.
22248 (SECTION_NAME_FORMAT): Don't redefine.
22249 (STARTFILE_ARCH32_SPEC): Rename to ...
22250 (STARTFILE_ARCH_SPEC): ... this.
22251 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
22252 * config/sparc/sol2.h: ... here.
22253 (SECTION_NAME_FORMAT): Don't undef.
22254 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
22255 (SUBTARGET_EXTRA_SPECS): Remove.
22256 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
22257
22258 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
22259 (MD_STARTFILE_PREFIX): Remove.
22260 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
22261 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
22262 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
22263 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
22264 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
22265 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
22266 * config/i386/sol2.h: ... here.
22267 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
22268 * config/i386/sol2-bi.h: Remove.
22269 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
22270 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
22271
22272 * config/i386/t-sol2-64: Rename to ...
22273 * config/i386/t-sol2: ... this.
22274 * config/sparc/t-sol2-64: Rename to ...
22275 * config/sparc/t-sol2: ... this.
22276
22277 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
22278 sol2_tm_file_head, sol2_tm_file_tail.
22279 Include ${cpu_type}/sol2.h before sol2.h.
22280 Remove sol2-10.h.
22281 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
22282 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
22283 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
22284 Reflect i386/t-sol2-64 renaming.
22285 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
22286 Reflect sparc/t-sol2-64 renaming.
22287
22288 2014-04-30 Richard Biener <rguenther@suse.de>
22289
22290 * passes.c (execute_function_todo): Move TODO_verify_stmts
22291 and TODO_verify_ssa under the TODO_verify_il umbrella.
22292 * tree-ssa.h (verify_ssa): Adjust prototype.
22293 * tree-ssa.c (verify_ssa): Add parameter to tell whether
22294 we should verify SSA operands.
22295 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
22296 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
22297 whether we should verify whether not throwing stmts have EH info.
22298 * graphite-scop-detection.c (create_sese_edges): Adjust.
22299 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
22300 * tree-eh.c (lower_try_finally_switch): Do not add the
22301 default case label twice.
22302
22303 2014-04-30 Marek Polacek <polacek@redhat.com>
22304
22305 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
22306 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
22307 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
22308 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
22309
22310 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
22311
22312 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
22313 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
22314 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
22315 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
22316 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
22317 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
22318 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
22319 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
22320
22321 2014-04-29 David Malcolm <dmalcolm@redhat.com>
22322
22323 * tree-cfg.c (dump_function_to_file): Dump the return type of
22324 functions, in a line to itself before the function body, mimicking
22325 the layout of a C function.
22326
22327 2014-04-29 Jakub Jelinek <jakub@redhat.com>
22328
22329 PR tree-optimization/60971
22330 * tree-tailcall.c (process_assignment): Reject conversions which
22331 reduce precision.
22332
22333 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
22334
22335 * calls.c (initialize_argument_information): Always treat
22336 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
22337 (expand_call): Likewise.
22338 (emit_library_call_calue_1): Likewise.
22339 * expr.c (PUSH_ARGS_REVERSED): Do not define.
22340 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
22341 code accordingly.
22342
22343 2014-04-29 Nick Clifton <nickc@redhat.com>
22344
22345 * config/msp430/msp430.md (umulsidi): Fix typo.
22346 (mulhisi3): Enable even inside interrupt handlers.
22347 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
22348 bigger return address pushed in large mode.
22349
22350 2014-04-29 Nick Clifton <nickc@redhat.com>
22351
22352 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
22353 (arc_init_reg_tables): Use a machine_mode enum to iterate over
22354 available modes.
22355 * config/m32r/m32r.c (init_reg_tables): Likewise.
22356 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
22357 enum to hold the modes.
22358
22359 2014-04-29 Richard Biener <rguenther@suse.de>
22360
22361 * dominance.c (free_dominance_info): Add overload with
22362 function parameter.
22363 (dom_info_state): Likewise.
22364 (dom_info_available_p): Likewise.
22365 * basic-block.h (free_dominance_info, dom_info_state,
22366 dom_info_available_p): Declare overloads.
22367 * passes.c (execute_function_todo): Verify that verifiers
22368 don't change dominator info state. Drop dominator info
22369 for IPA pass invocations.
22370 * cgraph.c (release_function_body): Restore asserts that
22371 dominator information is released.
22372
22373 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
22374
22375 * doc/invoke.texi: Fix typo.
22376 * tree-vrp.c: Fix typos.
22377 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
22378
22379 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22380
22381 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
22382
22383 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
22384
22385 * config/aarch64/aarch64-builtins.c
22386 (aarch64_types_storestruct_lane_qualifiers): New.
22387 (TYPES_STORESTRUCT_LANE): Likewise.
22388 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
22389 (st3_lane): Likewise.
22390 (st4_lane): Likewise.
22391 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
22392 (vec_store_lanesci_lane<mode>): Likewise.
22393 (vec_store_lanesxi_lane<mode>): Likewise.
22394 (aarch64_st2_lane<VQ:mode>): Likewise.
22395 (aarch64_st3_lane<VQ:mode>): Likewise.
22396 (aarch64_st4_lane<VQ:mode>): Likewise.
22397 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
22398 * config/aarch64/arm_neon.h
22399 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
22400 use new macro arguments.
22401 (__ST3_LANE_FUNC): Likewise.
22402 (__ST4_LANE_FUNC): Likewise.
22403 * config/aarch64/iterators.md (V_TWO_ELEM): New.
22404 (V_THREE_ELEM): Likewise.
22405 (V_FOUR_ELEM): Likewise.
22406
22407 2014-04-28 David Malcolm <dmalcolm@redhat.com>
22408
22409 * doc/gimple.texi: Replace the description of the now-defunct
22410 union gimple_statement_d with a diagram showing the
22411 gimple_statement_base class hierarchy and its relationships to
22412 the GSS_ and GIMPLE_ enums.
22413
22414 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
22415
22416 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
22417 * config/aarch64/aarch64.c
22418 (aarch64_cannot_change_mode_class): Weaken conditions.
22419 (aarch64_modes_tieable_p): New.
22420 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
22421
22422 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
22423
22424 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
22425 (loadsync_<mode>): Change mode.
22426 (load_quadpti, store_quadpti): New.
22427 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
22428 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
22429
22430 2014-04-28 Martin Jambor <mjambor@suse.cz>
22431
22432 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
22433 same alias type as the original statement.
22434 (subreplacement_assignment_data): New type.
22435 (handle_unscalarized_data_in_subtree): New type of parameter,
22436 generate new memory accesses with same alias type as the original
22437 statement.
22438 (load_assign_lhs_subreplacements): Likewise.
22439 (sra_modify_constructor_assign): Generate new memory accesses with
22440 same alias type as the original statement.
22441
22442 2014-04-28 Richard Biener <rguenther@suse.de>
22443
22444 * tree-pass.h (TODO_verify_il): Define.
22445 (TODO_verify_all): Complete properly.
22446 * passes.c (execute_function_todo): Move existing loop-closed
22447 SSA verification under TODO_verify_il.
22448 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
22449 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
22450 Fix tree sharing issue.
22451
22452 2014-04-28 Richard Biener <rguenther@suse.de>
22453
22454 PR middle-end/60092
22455 * builtins.def (DEF_C11_BUILTIN): Add.
22456 (BUILT_IN_ALIGNED_ALLOC): Likewise.
22457 * coretypes.h (enum function_class): Add function_c11_misc.
22458 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
22459 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
22460 (call_may_clobber_ref_p_1): Likewise.
22461 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
22462 (mark_all_reaching_defs_necessary_1): Likewise.
22463 (propagate_necessity): Likewise.
22464 (eliminate_unnecessary_stmts): Likewise.
22465 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
22466
22467 2014-04-28 Richard Biener <rguenther@suse.de>
22468
22469 * tree-vrp.c (vrp_var_may_overflow): Remove.
22470 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
22471 with overflow immediately bump to one before that value and
22472 let iteration figure out overflow status.
22473
22474 2014-04-28 Richard Biener <rguenther@suse.de>
22475
22476 * configure.ac: Do valgrind header checks unconditionally.
22477 Add --enable-valgrind-annotations.
22478 * system.h: Guard valgrind header inclusion with
22479 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
22480 * alloc-pool.c (pool_alloc, pool_free): Use
22481 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
22482 to guard possibly dead code.
22483 * config.in: Regenerated.
22484 * configure: Likewise.
22485
22486 2014-04-28 Jeff Law <law@redhat.com>
22487
22488 PR tree-optimization/60902
22489 * tree-ssa-threadedge.c
22490 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
22491 over real defs when invalidating outputs from statements that do not
22492 produce useful outputs for threading.
22493
22494 2014-04-28 Richard Biener <rguenther@suse.de>
22495
22496 PR tree-optimization/60979
22497 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
22498 SCOPs that end in a block with a successor with abnormal
22499 predecessors.
22500
22501 2014-04-28 Richard Biener <rguenther@suse.de>
22502
22503 * tree-pass.h (execute_pass_list): Adjust prototype.
22504 * passes.c (pass_manager::execute_early_local_passes): Adjust.
22505 (do_per_function): Change callback signature, push all actual
22506 work to the callbals.
22507 (do_per_function_toporder): Likewise.
22508 (execute_function_dump): Adjust.
22509 (execute_function_todo): Likewise.
22510 (clear_last_verified): Likewise.
22511 (verify_curr_properties): Likewise.
22512 (update_properties_after_pass): Likewise.
22513 (execute_pass_list_1): Split out from ...
22514 (execute_pass_list): ... here. Adjust.
22515 (execute_ipa_pass_list): Likewise.
22516 * cgraphunit.c (cgraph_add_new_function): Adjust.
22517 (analyze_function): Likewise.
22518 (expand_function): Likewise.
22519 * cgraph.c (release_function_body): Free dominance info
22520 here instead of asserting it was magically freed elsewhere.
22521
22522 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
22523
22524 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
22525 * configure: Regenerate.
22526 * config/sparc/sparc.opt (muser-mode): New option.
22527 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
22528 for LEON3.
22529 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
22530 * doc/invoke.texi (SPARC options): Document -muser-mode.
22531
22532 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
22533
22534 * cselib.c (find_slot_memmode): Delete.
22535 (cselib_hasher): Change compare_type to a struct.
22536 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
22537 constants.
22538 (preserve_constants_and_equivs): Adjust for new compare_type.
22539 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
22540 (wrap_constant): Delete.
22541 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
22542
22543 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
22544
22545 * doc/install.texi (Building with profile feedback): Remove
22546 outdated sentence.
22547
22548 2014-04-26 Tom de Vries <tom@codesourcery.com>
22549
22550 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
22551 array accesses.
22552
22553 2014-04-25 Cary Coutant <ccoutant@google.com>
22554
22555 PR debug/60929
22556 * dwarf2out.c (should_move_die_to_comdat): A type definition
22557 can contain a subprogram definition, but don't move it to a
22558 comdat unit.
22559 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
22560 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
22561 from original DIE.
22562 (clone_tree_hash): Rename to...
22563 (clone_tree_partial): ...this; change callers. Copy
22564 DW_TAG_subprogram DIEs as declarations.
22565 (copy_decls_walk): Don't copy children of a declaration into a
22566 type unit.
22567
22568 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
22569
22570 PR target/60969
22571 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
22572 alternative 12.
22573
22574 2014-04-25 Jiong Wang <jiong.wang@arm.com>
22575
22576 * config/arm/predicates.md (call_insn_operand): Add long_call check.
22577 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
22578 reg for long_call.
22579 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
22580 restriction.
22581
22582 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22583
22584 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
22585
22586 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22587
22588 PR tree-optimization/60930
22589 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
22590 creating a multiply candidate by folding two constant
22591 multiplicands when the result overflows.
22592
22593 2014-04-25 Jakub Jelinek <jakub@redhat.com>
22594
22595 PR tree-optimization/60960
22596 * tree-vect-generic.c (expand_vector_operation): Only call
22597 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
22598
22599 2014-04-25 Tom de Vries <tom@codesourcery.com>
22600
22601 * expr.c (clobber_reg_mode): New function.
22602 * expr.h (clobber_reg): New function.
22603
22604 2014-04-25 Tom de Vries <tom@codesourcery.com>
22605
22606 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
22607 clobbers.
22608
22609 2014-04-25 Radovan Obradovic <robradovic@mips.com>
22610 Tom de Vries <tom@codesourcery.com>
22611
22612 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
22613 handle.
22614 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
22615 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
22616 new argument to find_all_hard_reg_sets call.
22617
22618 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22619
22620 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
22621 Use HOST_WIDE_INT_C for mask literal.
22622 (aarch_rev16_shleft_mask_imm_p): Likewise.
22623
22624 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
22625
22626 PR target/60941
22627 * config/sparc/sparc.md (ashlsi3_extend): Delete.
22628
22629 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
22630
22631 PR preprocessor/56540
22632 * config/i386/i386-c.c (ix86_target_macros): Define
22633 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
22634
22635 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22636
22637 * configure.ac (tga_func): Remove.
22638 (LIB_TLS_SPEC): Remove.
22639 * configure: Regenerate.
22640 * config.in: Regenerate.
22641 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
22642
22643 2014-04-25 Richard Biener <rguenther@suse.de>
22644
22645 PR ipa/60912
22646 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
22647 call stmt use/clobber sets during stmt walk instead of
22648 walking the possibly incomplete set of caller edges.
22649
22650 2014-04-25 Richard Biener <rguenther@suse.de>
22651
22652 PR ipa/60911
22653 * passes.c (apply_ipa_transforms): Inline into only caller ...
22654 (execute_one_pass): ... here. Properly bring in function
22655 bodies for nodes we want to apply IPA transforms to.
22656
22657 2014-04-24 Cong Hou <congh@google.com>
22658
22659 PR tree-optimization/60896
22660 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
22661 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
22662 (vect_mark_pattern_stmts): Set the def type of all statements in
22663 PATTERN_DEF_SEQ as vect_internal_def.
22664
22665 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22666
22667 * doc/extend.texi (PowerPC Built-in Functions): Document new
22668 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
22669 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
22670
22671 * config/rs6000/predicates.md (const_0_to_3_operand): New
22672 predicate to match 0..3 integer constants.
22673
22674 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
22675 to support adding miscellaneous builtin functions.
22676 (BU_DFP_MISC_2): Likewise.
22677 (BU_P7_MISC_1): Likewise.
22678 (BU_P7_MISC_2): Likewise.
22679 (BU_P8V_MISC_3): Likewise.
22680 (BU_MISC_1): Likewise.
22681 (BU_MISC_2): Likewise.
22682 (DIVWE): Add extended divide builtin functions.
22683 (DIVWEO): Likewise.
22684 (DIVWEU): Likewise.
22685 (DIVWEUO): Likewise.
22686 (DIVDE): Likewise.
22687 (DIVDEO): Likewise.
22688 (DIVDEU): Likewise.
22689 (DIVDEUO): Likewise.
22690 (DXEX): Add decimal floating-point builtin functions.
22691 (DXEXQ): Likewise.
22692 (DDEDPD): Likewise.
22693 (DDEDPDQ): Likewise.
22694 (DENBCD): Likewise.
22695 (DENBCDQ): Likewise.
22696 (DIEX): Likewise.
22697 (DIEXQ): Likewise.
22698 (DSCLI): Likewise.
22699 (DSCLIQ): Likewise.
22700 (DSCRI): Likewise.
22701 (DSCRIQ): Likewise.
22702 (CDTBCD): Add new BCD builtin functions.
22703 (CBCDTD): Likewise.
22704 (ADDG6S): Likewise.
22705 (BCDADD): Likewise.
22706 (BCDADD_LT): Likewise.
22707 (BCDADD_EQ): Likewise.
22708 (BCDADD_GT): Likewise.
22709 (BCDADD_OV): Likewise.
22710 (BCDSUB): Likewise.
22711 (BCDSUB_LT): Likewise.
22712 (BCDSUB_EQ): Likewise.
22713 (BCDSUB_GT): Likewise.
22714 (BCDSUB_OV): Likewise.
22715 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
22716 (UNPACK_TD): Likewise.
22717 (PACK_TF): Likewise.
22718 (UNPACK_TF): Likewise.
22719 (UNPACK_TF_0): Likewise.
22720 (UNPACK_TF_1): Likewise.
22721 (PACK_V1TI): Likewise.
22722 (UNPACK_V1TI): Likewise.
22723
22724 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
22725 support for decimal floating point builtin functions.
22726 (rs6000_expand_ternop_builtin): Add checks for the new builtin
22727 functions that take constant arguments.
22728 (rs6000_invalid_builtin): Add decimal floating point builtin support.
22729 (rs6000_init_builtins): Setup long double, _Decimal64, and
22730 _Decimal128 types for new builtin functions.
22731 (builtin_function_type): Set the unsigned flags appropriately for
22732 the new builtin functions.
22733 (rs6000_opt_masks): Add support for decimal floating point builtin
22734 functions.
22735
22736 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
22737 floating point builtin functions.
22738 (RS6000_BTM_COMMON): Likewise.
22739 (RS6000_BTI_long_double): Likewise.
22740 (RS6000_BTI_dfloat64): Likewise.
22741 (RS6000_BTI_dfloat128): Likewise.
22742 (long_double_type_internal_node): Likewise.
22743 (dfloat64_type_internal_node): Likewise.
22744 (dfloat128_type_internal_node): Likewise.
22745
22746 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
22747 2.07 bcd arithmetic instructions.
22748 (UNSPEC_BCDSUB): Likewise.
22749 (UNSPEC_BCD_OVERFLOW): Likewise.
22750 (UNSPEC_BCD_ADD_SUB): Likewise.
22751 (bcd_add_sub): Likewise.
22752 (BCD_TEST): Likewise.
22753 (bcd<bcd_add_sub>): Likewise.
22754 (bcd<bcd_add_sub>_test): Likewise.
22755 (bcd<bcd_add_sub>_test2): Likewise.
22756 (bcd<bcd_add_sub>_<code>): Likewise.
22757 (peephole2 for combined bcd ops): Likewise.
22758
22759 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
22760 decimal floating point builtin functions.
22761 (UNSPEC_DENBCD): Likewise.
22762 (UNSPEC_DXEX): Likewise.
22763 (UNSPEC_DIEX): Likewise.
22764 (UNSPEC_DSCLI): Likewise.
22765 (UNSPEC_DSCRI): Likewise.
22766 (D64_D128): Likewise.
22767 (dfp_suffix): Likewise.
22768 (dfp_ddedpd_<mode>): Likewise.
22769 (dfp_denbcd_<mode>): Likewise.
22770 (dfp_dxex_<mode>): Likewise.
22771 (dfp_diex_<mode>): Likewise.
22772 (dfp_dscli_<mode>): Likewise.
22773 (dfp_dscri_<mode>): Likewise.
22774
22775 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
22776 builtin functions.
22777 (UNSPEC_CDTBCD): Likewise.
22778 (UNSPEC_CBCDTD): Likewise.
22779 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
22780 (UNSPEC_DIVEO): Likewise.
22781 (UNSPEC_DIVEU): Likewise.
22782 (UNSPEC_DIVEUO): Likewise.
22783 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
22784 pack/unpack 128-bit types.
22785 (UNSPEC_PACK_128BIT): Likewise.
22786 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
22787 (udiv<mode>3): Use idiv_ldiv mode attribute.
22788 (div<mode>3): Likewise.
22789 (addg6s): Add new BCD builtin functions.
22790 (cdtbcd): Likewise.
22791 (cbcdtd): Likewise.
22792 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
22793 (div_extend): Likewise.
22794 (div<div_extend>_<mode>"): Likewise.
22795 (FP128_64): Add support for new builtin functions to pack/unpack
22796 128-bit types.
22797 (unpack<mode>): Likewise.
22798 (unpacktf_0): Likewise.
22799 (unpacktf_1): Likewise.
22800 (unpack<mode>_dm): Likewise.
22801 (unpack<mode>_nodm): Likewise.
22802 (pack<mode>): Likewise.
22803 (unpackv1ti): Likewise.
22804 (packv1ti): Likewise.
22805
22806 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
22807
22808 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
22809 is disabled.
22810
22811 2014-04-24 Jakub Jelinek <jakub@redhat.com>
22812
22813 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
22814 * gimplify.c (omp_is_private): Change last argument's type to int.
22815 Only diagnose lastprivate if the simd argument is 1, only diagnose
22816 linear if the simd argument is 2.
22817 (gimplify_omp_for): Adjust omp_is_private callers. When adding
22818 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
22819 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
22820 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
22821 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
22822 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
22823 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
22824 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
22825 * tree-nested.c (convert_nonlocal_omp_clauses,
22826 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
22827
22828 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
22829
22830 PR target/60822
22831 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
22832 operand 1.
22833
22834 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
22835
22836 * flag-types.h (enum ivar_visibility): Add.
22837
22838 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
22839
22840 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
22841 function * argument.
22842
22843 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
22844
22845 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
22846
22847 2014-04-24 Radovan Obradovic <robradovic@mips.com>
22848 Tom de Vries <tom@codesourcery.com>
22849
22850 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
22851 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
22852 reg-note.
22853 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
22854 * emit-rtl.c (try_split): Same.
22855
22856 2014-04-24 Radovan Obradovic <robradovic@mips.com>
22857 Tom de Vries <tom@codesourcery.com>
22858
22859 * common.opt (fuse-caller-save): New option.
22860
22861 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
22862
22863 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
22864 elements for big-endian.
22865
22866 2014-04-24 Richard Biener <rguenther@suse.de>
22867
22868 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
22869 during TER and instead use the sepops interface for expanding
22870 non-GIMPLE_SINGLE_RHS.
22871
22872 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22873
22874 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
22875 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
22876
22877 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22878
22879 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
22880 assembler 64-bit option.
22881 * configure: Regenerate.
22882
22883 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22884
22885 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
22886 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
22887 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
22888 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
22889 (TARGET_CRYPTO): Take TARGET_SIMD into account.
22890
22891 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22892
22893 * config/aarch64/aarch64-builtins.c
22894 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
22895 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
22896 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
22897 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
22898 builtins.
22899 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
22900 (Vrevsuff): New mode attribute.
22901
22902 2014-04-24 Terry Guo <terry.guo@arm.com>
22903
22904 * config/arm/arm.h (machine_function): Define variable
22905 after_arm_reorg here.
22906 * config/arm/arm.c (after_arm_reorg): Remove the definition.
22907 (arm_split_constant): Update the way to access variable
22908 after_arm_reorg.
22909 (arm_reorg): Ditto.
22910 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
22911
22912 2014-04-23 Tom de Vries <tom@codesourcery.com>
22913
22914 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
22915
22916 2014-04-23 David Malcolm <dmalcolm@redhat.com>
22917
22918 * is-a.h: Update comments to reflect the following changes to the
22919 "pointerness" of the API, making the template parameter match the
22920 return type, allowing use of is-a.h with typedefs of pointers.
22921 (is_a_helper::cast): Return a T rather then a pointer to a T, so
22922 that the return type matches the parameter to the is_a_helper.
22923 (as_a): Likewise.
22924 (dyn_cast): Likewise.
22925
22926 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
22927 pointer from the is-a.h API.
22928
22929 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
22930 (is_a_helper <cgraph_node *>::test): ...this, matching change to
22931 is-a.h API.
22932 (is_a_helper <varpool_node>::test): Likewise, convert to...
22933 (is_a_helper <varpool_node *>::test): ...this.
22934
22935 (varpool_first_variable): Update for removal of implicit pointer
22936 from the is-a.h API.
22937 (varpool_next_variable): Likewise.
22938 (varpool_first_static_initializer): Likewise.
22939 (varpool_next_static_initializer): Likewise.
22940 (varpool_first_defined_variable): Likewise.
22941 (varpool_next_defined_variable): Likewise.
22942 (cgraph_first_defined_function): Likewise.
22943 (cgraph_next_defined_function): Likewise.
22944 (cgraph_first_function): Likewise.
22945 (cgraph_next_function): Likewise.
22946 (cgraph_first_function_with_gimple_body): Likewise.
22947 (cgraph_next_function_with_gimple_body): Likewise.
22948 (cgraph_alias_target): Likewise.
22949 (varpool_alias_target): Likewise.
22950 (cgraph_function_or_thunk_node): Likewise.
22951 (varpool_variable_node): Likewise.
22952 (symtab_real_symbol_p): Likewise.
22953 * cgraphunit.c (referred_to_p): Likewise.
22954 (analyze_functions): Likewise.
22955 (handle_alias_pairs): Likewise.
22956 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
22957 * gimple-ssa.h (gimple_vuse_op): Likewise.
22958 (gimple_vdef_op): Likewise.
22959 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
22960 * gimple.c (gimple_build_asm_1): Likewise.
22961 (gimple_build_try): Likewise.
22962 (gimple_build_resx): Likewise.
22963 (gimple_build_eh_dispatch): Likewise.
22964 (gimple_build_omp_for): Likewise.
22965 (gimple_omp_for_set_clauses): Likewise.
22966
22967 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
22968 (is_a_helper <gimple_statement_asm *>::test): ...this.
22969 (is_a_helper <gimple_statement_bind>::test): Convert to...
22970 (is_a_helper <gimple_statement_bind *>::test): ...this.
22971 (is_a_helper <gimple_statement_call>::test): Convert to...
22972 (is_a_helper <gimple_statement_call *>::test): ...this.
22973 (is_a_helper <gimple_statement_catch>::test): Convert to...
22974 (is_a_helper <gimple_statement_catch *>::test): ...this.
22975 (is_a_helper <gimple_statement_resx>::test): Convert to...
22976 (is_a_helper <gimple_statement_resx *>::test): ...this.
22977 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
22978 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
22979 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
22980 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
22981 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
22982 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
22983 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
22984 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
22985 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
22986 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
22987 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
22988 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
22989 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
22990 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
22991 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
22992 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
22993 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
22994 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
22995 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
22996 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
22997 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
22998 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
22999 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
23000 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
23001 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
23002 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
23003 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
23004 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
23005 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
23006 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
23007 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
23008 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
23009 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
23010 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
23011 (is_a_helper <gimple_statement_phi>::test): Convert to...
23012 (is_a_helper <gimple_statement_phi *>::test): ...this.
23013 (is_a_helper <gimple_statement_transaction>::test): Convert to...
23014 (is_a_helper <gimple_statement_transaction *>::test): ...this.
23015 (is_a_helper <gimple_statement_try>::test): Convert to...
23016 (is_a_helper <gimple_statement_try *>::test): ...this.
23017 (is_a_helper <gimple_statement_wce>::test): Convert to...
23018 (is_a_helper <gimple_statement_wce *>::test): ...this.
23019 (is_a_helper <const gimple_statement_asm>::test): Convert to...
23020 (is_a_helper <const gimple_statement_asm *>::test): ...this.
23021 (is_a_helper <const gimple_statement_bind>::test): Convert to...
23022 (is_a_helper <const gimple_statement_bind *>::test): ...this.
23023 (is_a_helper <const gimple_statement_call>::test): Convert to...
23024 (is_a_helper <const gimple_statement_call *>::test): ...this.
23025 (is_a_helper <const gimple_statement_catch>::test): Convert to...
23026 (is_a_helper <const gimple_statement_catch *>::test): ...this.
23027 (is_a_helper <const gimple_statement_resx>::test): Convert to...
23028 (is_a_helper <const gimple_statement_resx *>::test): ...this.
23029 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
23030 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
23031 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
23032 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
23033 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
23034 Convert to...
23035 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
23036 ...this.
23037 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
23038 Convert to...
23039 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
23040 ...this.
23041 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
23042 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
23043 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
23044 to...
23045 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
23046 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
23047 to...
23048 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
23049 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
23050 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
23051 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
23052 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
23053 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
23054 to...
23055 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
23056 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
23057 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
23058 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
23059 to...
23060 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
23061 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
23062 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
23063 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
23064 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
23065 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
23066 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
23067 (is_a_helper <const gimple_statement_phi>::test): Convert to...
23068 (is_a_helper <const gimple_statement_phi *>::test): ...this.
23069 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
23070 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
23071 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
23072 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
23073 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
23074 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
23075 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
23076 to...
23077 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
23078 ...this.
23079 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
23080 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
23081
23082 (gimple_use_ops): Update for removal of implicit pointer from the
23083 is-a.h API.
23084 (gimple_set_use_ops): Likewise.
23085 (gimple_vuse): Likewise.
23086 (gimple_vdef): Likewise.
23087 (gimple_vuse_ptr): Likewise.
23088 (gimple_vdef_ptr): Likewise.
23089 (gimple_set_vuse): Likewise.
23090 (gimple_set_vdef): Likewise.
23091 (gimple_omp_return_set_lhs): Likewise.
23092 (gimple_omp_return_lhs): Likewise.
23093 (gimple_omp_return_lhs_ptr): Likewise.
23094 (gimple_call_fntype): Likewise.
23095 (gimple_call_set_fntype): Likewise.
23096 (gimple_call_set_internal_fn): Likewise.
23097 (gimple_call_use_set): Likewise.
23098 (gimple_call_clobber_set): Likewise.
23099 (gimple_bind_vars): Likewise.
23100 (gimple_bind_set_vars): Likewise.
23101 (gimple_bind_body_ptr): Likewise.
23102 (gimple_bind_set_body): Likewise.
23103 (gimple_bind_add_stmt): Likewise.
23104 (gimple_bind_block): Likewise.
23105 (gimple_bind_set_block): Likewise.
23106 (gimple_asm_ninputs): Likewise.
23107 (gimple_asm_noutputs): Likewise.
23108 (gimple_asm_nclobbers): Likewise.
23109 (gimple_asm_nlabels): Likewise.
23110 (gimple_asm_input_op): Likewise.
23111 (gimple_asm_input_op_ptr): Likewise.
23112 (gimple_asm_output_op): Likewise.
23113 (gimple_asm_output_op_ptr): Likewise.
23114 (gimple_asm_set_output_op): Likewise.
23115 (gimple_asm_clobber_op): Likewise.
23116 (gimple_asm_set_clobber_op): Likewise.
23117 (gimple_asm_label_op): Likewise.
23118 (gimple_asm_set_label_op): Likewise.
23119 (gimple_asm_string): Likewise.
23120 (gimple_catch_types): Likewise.
23121 (gimple_catch_types_ptr): Likewise.
23122 (gimple_catch_handler_ptr): Likewise.
23123 (gimple_catch_set_types): Likewise.
23124 (gimple_catch_set_handler): Likewise.
23125 (gimple_eh_filter_types): Likewise.
23126 (gimple_eh_filter_types_ptr): Likewise.
23127 (gimple_eh_filter_failure_ptr): Likewise.
23128 (gimple_eh_filter_set_types): Likewise.
23129 (gimple_eh_filter_set_failure): Likewise.
23130 (gimple_eh_must_not_throw_fndecl): Likewise.
23131 (gimple_eh_must_not_throw_set_fndecl): Likewise.
23132 (gimple_eh_else_n_body_ptr): Likewise.
23133 (gimple_eh_else_e_body_ptr): Likewise.
23134 (gimple_eh_else_set_n_body): Likewise.
23135 (gimple_eh_else_set_e_body): Likewise.
23136 (gimple_try_eval_ptr): Likewise.
23137 (gimple_try_cleanup_ptr): Likewise.
23138 (gimple_try_set_eval): Likewise.
23139 (gimple_try_set_cleanup): Likewise.
23140 (gimple_wce_cleanup_ptr): Likewise.
23141 (gimple_wce_set_cleanup): Likewise.
23142 (gimple_phi_capacity): Likewise.
23143 (gimple_phi_num_args): Likewise.
23144 (gimple_phi_result): Likewise.
23145 (gimple_phi_result_ptr): Likewise.
23146 (gimple_phi_set_result): Likewise.
23147 (gimple_phi_arg): Likewise.
23148 (gimple_phi_set_arg): Likewise.
23149 (gimple_resx_region): Likewise.
23150 (gimple_resx_set_region): Likewise.
23151 (gimple_eh_dispatch_region): Likewise.
23152 (gimple_eh_dispatch_set_region): Likewise.
23153 (gimple_omp_critical_name): Likewise.
23154 (gimple_omp_critical_name_ptr): Likewise.
23155 (gimple_omp_critical_set_name): Likewise.
23156 (gimple_omp_for_clauses): Likewise.
23157 (gimple_omp_for_clauses_ptr): Likewise.
23158 (gimple_omp_for_set_clauses): Likewise.
23159 (gimple_omp_for_collapse): Likewise.
23160 (gimple_omp_for_index): Likewise.
23161 (gimple_omp_for_index_ptr): Likewise.
23162 (gimple_omp_for_set_index): Likewise.
23163 (gimple_omp_for_initial): Likewise.
23164 (gimple_omp_for_initial_ptr): Likewise.
23165 (gimple_omp_for_set_initial): Likewise.
23166 (gimple_omp_for_final): Likewise.
23167 (gimple_omp_for_final_ptr): Likewise.
23168 (gimple_omp_for_set_final): Likewise.
23169 (gimple_omp_for_incr): Likewise.
23170 (gimple_omp_for_incr_ptr): Likewise.
23171 (gimple_omp_for_set_incr): Likewise.
23172 (gimple_omp_for_pre_body_ptr): Likewise.
23173 (gimple_omp_for_set_pre_body): Likewise.
23174 (gimple_omp_parallel_clauses): Likewise.
23175 (gimple_omp_parallel_clauses_ptr): Likewise.
23176 (gimple_omp_parallel_set_clauses): Likewise.
23177 (gimple_omp_parallel_child_fn): Likewise.
23178 (gimple_omp_parallel_child_fn_ptr): Likewise.
23179 (gimple_omp_parallel_set_child_fn): Likewise.
23180 (gimple_omp_parallel_data_arg): Likewise.
23181 (gimple_omp_parallel_data_arg_ptr): Likewise.
23182 (gimple_omp_parallel_set_data_arg): Likewise.
23183 (gimple_omp_task_clauses): Likewise.
23184 (gimple_omp_task_clauses_ptr): Likewise.
23185 (gimple_omp_task_set_clauses): Likewise.
23186 (gimple_omp_task_child_fn): Likewise.
23187 (gimple_omp_task_child_fn_ptr): Likewise.
23188 (gimple_omp_task_set_child_fn): Likewise.
23189 (gimple_omp_task_data_arg): Likewise.
23190 (gimple_omp_task_data_arg_ptr): Likewise.
23191 (gimple_omp_task_set_data_arg): Likewise.
23192 (gimple_omp_taskreg_clauses): Likewise.
23193 (gimple_omp_taskreg_clauses_ptr): Likewise.
23194 (gimple_omp_taskreg_set_clauses): Likewise.
23195 (gimple_omp_taskreg_child_fn): Likewise.
23196 (gimple_omp_taskreg_child_fn_ptr): Likewise.
23197 (gimple_omp_taskreg_set_child_fn): Likewise.
23198 (gimple_omp_taskreg_data_arg): Likewise.
23199 (gimple_omp_taskreg_data_arg_ptr): Likewise.
23200 (gimple_omp_taskreg_set_data_arg): Likewise.
23201 (gimple_omp_task_copy_fn): Likewise.
23202 (gimple_omp_task_copy_fn_ptr): Likewise.
23203 (gimple_omp_task_set_copy_fn): Likewise.
23204 (gimple_omp_task_arg_size): Likewise.
23205 (gimple_omp_task_arg_size_ptr): Likewise.
23206 (gimple_omp_task_set_arg_size): Likewise.
23207 (gimple_omp_task_arg_align): Likewise.
23208 (gimple_omp_task_arg_align_ptr): Likewise.
23209 (gimple_omp_task_set_arg_align): Likewise.
23210 (gimple_omp_single_clauses): Likewise.
23211 (gimple_omp_single_clauses_ptr): Likewise.
23212 (gimple_omp_single_set_clauses): Likewise.
23213 (gimple_omp_target_clauses): Likewise.
23214 (gimple_omp_target_clauses_ptr): Likewise.
23215 (gimple_omp_target_set_clauses): Likewise.
23216 (gimple_omp_target_child_fn): Likewise.
23217 (gimple_omp_target_child_fn_ptr): Likewise.
23218 (gimple_omp_target_set_child_fn): Likewise.
23219 (gimple_omp_target_data_arg): Likewise.
23220 (gimple_omp_target_data_arg_ptr): Likewise.
23221 (gimple_omp_target_set_data_arg): Likewise.
23222 (gimple_omp_teams_clauses): Likewise.
23223 (gimple_omp_teams_clauses_ptr): Likewise.
23224 (gimple_omp_teams_set_clauses): Likewise.
23225 (gimple_omp_sections_clauses): Likewise.
23226 (gimple_omp_sections_clauses_ptr): Likewise.
23227 (gimple_omp_sections_set_clauses): Likewise.
23228 (gimple_omp_sections_control): Likewise.
23229 (gimple_omp_sections_control_ptr): Likewise.
23230 (gimple_omp_sections_set_control): Likewise.
23231 (gimple_omp_for_set_cond): Likewise.
23232 (gimple_omp_for_cond): Likewise.
23233 (gimple_omp_atomic_store_set_val): Likewise.
23234 (gimple_omp_atomic_store_val): Likewise.
23235 (gimple_omp_atomic_store_val_ptr): Likewise.
23236 (gimple_omp_atomic_load_set_lhs): Likewise.
23237 (gimple_omp_atomic_load_lhs): Likewise.
23238 (gimple_omp_atomic_load_lhs_ptr): Likewise.
23239 (gimple_omp_atomic_load_set_rhs): Likewise.
23240 (gimple_omp_atomic_load_rhs): Likewise.
23241 (gimple_omp_atomic_load_rhs_ptr): Likewise.
23242 (gimple_omp_continue_control_def): Likewise.
23243 (gimple_omp_continue_control_def_ptr): Likewise.
23244 (gimple_omp_continue_set_control_def): Likewise.
23245 (gimple_omp_continue_control_use): Likewise.
23246 (gimple_omp_continue_control_use_ptr): Likewise.
23247 (gimple_omp_continue_set_control_use): Likewise.
23248 (gimple_transaction_body_ptr): Likewise.
23249 (gimple_transaction_label): Likewise.
23250 (gimple_transaction_label_ptr): Likewise.
23251 (gimple_transaction_set_body): Likewise.
23252 (gimple_transaction_set_label): Likewise.
23253
23254 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
23255 * ipa-inline-analysis.c (inline_write_summary): Likewise.
23256 * ipa-ref.c (ipa_record_reference): Likewise.
23257 * ipa-reference.c (analyze_function): Likewise.
23258 (ipa_reference_write_optimization_summary): Likewise.
23259 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
23260 (address_taken_from_non_vtable_p): Likewise.
23261 (comdat_can_be_unshared_p_1): Likewise.
23262 * lto-cgraph.c (lto_output_ref): Likewise.
23263 (add_references): Likewise.
23264 (compute_ltrans_boundary): Likewise.
23265 (output_symtab): Likewise.
23266 (input_ref): Likewise.
23267 (input_cgraph_1): Likewise.
23268 (output_cgraph_opt_summary): Likewise.
23269 * lto-streamer-out.c (lto_output): Likewise.
23270 (output_symbol_p): Likewise.
23271 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
23272 (lsei_start_function_in_partition): Likewise.
23273 (lsei_next_variable_in_partition): Likewise.
23274 (lsei_start_variable_in_partition): Likewise.
23275 * symtab.c (insert_to_assembler_name_hash): Likewise.
23276 (unlink_from_assembler_name_hash): Likewise.
23277 (symtab_unregister_node): Likewise.
23278 (symtab_remove_node): Likewise.
23279 (dump_symtab_node): Likewise.
23280 (verify_symtab_base): Likewise.
23281 (verify_symtab_node): Likewise.
23282 (symtab_make_decl_local): Likewise.
23283 (symtab_alias_ultimate_target): Likewise.
23284 (symtab_resolve_alias): Likewise.
23285 (symtab_get_symbol_partitioning_class): Likewise.
23286 * tree-phinodes.c (allocate_phi_node): Likewise.
23287 (reserve_phi_args_for_new_edge): Likewise.
23288 (remove_phi_args): Likewise.
23289 * varpool.c (varpool_node_for_asm): Likewise.
23290 (varpool_remove_unreferenced_decls): Likewise.
23291
23292 2014-04-23 Jeff Law <law@redhat.com>
23293
23294 PR tree-optimization/60902
23295 * tree-ssa-threadedge.c
23296 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
23297 invalidate outputs from statements that do not produce useful
23298 outputs for threading.
23299
23300 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
23301
23302 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
23303 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
23304 machine descriptions for Stack Smashing Protector.
23305
23306 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
23307
23308 * aarch64.md (<optab>_rol<mode>3): New pattern.
23309 (<optab>_rolsi3_uxtw): Likewise.
23310 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
23311
23312 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
23313
23314 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
23315 (arm_cortex_a12_tune): Likewise.
23316
23317 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23318
23319 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
23320
23321 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23322
23323 * config/arm/arm.md (arm_rev16si2): New pattern.
23324 (arm_rev16si2_alt): Likewise.
23325 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
23326
23327 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23328
23329 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
23330 (rev16<mode>2_alt): Likewise.
23331 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
23332 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
23333 (aarch_rev16_shleft_mask_imm_p): Likewise.
23334 (aarch_rev16_p_1): Likewise.
23335 (aarch_rev16_p): Likewise.
23336 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
23337 (aarch_rev16_shright_mask_imm_p): Likewise.
23338 (aarch_rev16_shleft_mask_imm_p): Likewise.
23339
23340 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23341
23342 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
23343 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
23344 rev cost.
23345 (cortex_a53_extra_costs): Likewise.
23346 (cortex_a57_extra_costs): Likewise.
23347 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
23348 (cortexa7_extra_costs): Likewise.
23349 (cortexa8_extra_costs): Likewise.
23350 (cortexa12_extra_costs): Likewise.
23351 (cortexa15_extra_costs): Likewise.
23352 (v7m_extra_costs): Likewise.
23353 (arm_new_rtx_costs): Handle BSWAP.
23354
23355 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23356
23357 * config/arm/arm.c (cortexa8_extra_costs): New table.
23358 (arm_cortex_a8_tune): New tuning struct.
23359 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
23360
23361 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23362
23363 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
23364
23365 2014-04-23 Richard Biener <rguenther@suse.de>
23366
23367 * Makefile.in (OBJS): Remove loop-unswitch.o.
23368 * tree-pass.h (make_pass_rtl_unswitch): Remove.
23369 * passes.def (pass_rtl_unswitch): Likewise.
23370 * loop-init.c (gate_rtl_unswitch): Likewise.
23371 (rtl_unswitch): Likewise.
23372 (pass_data_rtl_unswitch): Likewise.
23373 (pass_rtl_unswitch): Likewise.
23374 (make_pass_rtl_unswitch): Likewise.
23375 * rtl.h (reversed_condition): Likewise.
23376 (compare_and_jump_seq): Likewise.
23377 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
23378 and make static.
23379 * loop-unroll.c (compare_and_jump_seq): Likewise.
23380
23381 2014-04-23 Richard Biener <rguenther@suse.de>
23382
23383 PR tree-optimization/60903
23384 * tree-ssa-loop-im.c (analyze_memory_references): Remove
23385 commented code block.
23386 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
23387 loop flags to newly created BBs and edges.
23388
23389 2014-04-23 Nick Clifton <nickc@redhat.com>
23390
23391 * config/msp430/msp430.c (msp430_handle_option): Move function
23392 to msp430-common.c
23393 (msp430_option_override): Simplify mcu and mcpu option handling.
23394 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
23395 support for -mhwmult command line option.
23396 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
23397 -mhwmult command line option.
23398 (msp430_hwmult_enabled): Delete.
23399 (msp43o_output_labelref): Add support for -mhwmult command line option.
23400 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
23401 (umulsidi3): Likewise.
23402 * config/msp430/msp430.opt (mmcu): Add Report attribute.
23403 (mcpu, mlarge, msmall): Likewise.
23404 (mhwmult): New option.
23405 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
23406 prototype.
23407 (msp430_is_f5_mcu): Remove prototype.
23408 (msp430_use_f5_series_hwmult): Add prototype.
23409 * config/msp430/msp430-opts.h: New file.
23410 * common/config/msp430: New directory.
23411 * common/config/msp430/msp430-common.c: New file.
23412 * config.gcc (msp430): Remove target_has_targetm_common.
23413 * doc/invoke.texi: Document -mhwmult command line option.
23414
23415 2014-04-23 Nick Clifton <nickc@redhat.com>
23416
23417 * config/i386/cygwin.h (ENDFILE_SPEC): Include
23418 default-manifest.o if it can be found in the search path.
23419 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
23420
23421 2014-04-23 Terry Guo <terry.guo@arm.com>
23422
23423 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
23424
23425 2014-04-23 Richard Biener <rguenther@suse.de>
23426
23427 PR middle-end/60895
23428 * tree-inline.c (declare_return_variable): Use mark_addressable.
23429
23430 2014-04-23 Richard Biener <rguenther@suse.de>
23431
23432 PR middle-end/60891
23433 * loop-init.c (loop_optimizer_init): Make sure to apply
23434 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
23435
23436 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23437
23438 PR sanitizer/60275
23439 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
23440 New options.
23441 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
23442 if flag_sanitize_undefined_trap_on_error.
23443 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
23444 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
23445 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
23446 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
23447 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
23448 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
23449 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
23450 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
23451 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
23452 * ubsan.c (ubsan_instrument_unreachable): Return
23453 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
23454 (ubsan_expand_null_ifn): Emit __builtin_trap ()
23455 if flag_sanitize_undefined_trap_on_error and
23456 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
23457 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
23458 instrument_bool_enum_load): Emit __builtin_trap () if
23459 flag_sanitize_undefined_trap_on_error and
23460 __builtin_handle_*_abort () if !flag_sanitize_recover.
23461 * doc/invoke.texi (-fsanitize-recover,
23462 -fsanitize-undefined-trap-on-error): Document.
23463
23464 2014-04-22 Christian Bruel <christian.bruel@st.com>
23465
23466 * config/sh/sh.md (mov<mode>): Replace movQIHI.
23467 Force immediates to SImode.
23468
23469 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
23470
23471 * config/nios2/nios2.md (UNSPEC_ROUND): New.
23472 (lroundsfsi2): New.
23473 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
23474 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
23475 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
23476 (nios2_fpu_insn): Add entry for round.
23477 (N2FPU_NO_ERRNO_P): Define.
23478 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
23479 flag_errno_math.
23480 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
23481
23482 2014-04-22 Richard Henderson <rth@redhat.com>
23483
23484 * config/aarch64/aarch64 (addti3, subti3): New expanders.
23485 (add<GPI>3_compare0): Remove leading * from name.
23486 (add<GPI>3_carryin): Likewise.
23487 (sub<GPI>3_compare0): Likewise.
23488 (sub<GPI>3_carryin): Likewise.
23489 (<su_optab>mulditi3): New expander.
23490 (multi3): New expander.
23491 (madd<GPI>): Remove leading * from name.
23492
23493 2014-04-22 Martin Jambor <mjambor@suse.cz>
23494
23495 * cgraphclones.c (cgraph_function_versioning): Copy
23496 ipa_transforms_to_apply instead of asserting it is empty.
23497
23498 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
23499
23500 PR target/60868
23501 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
23502 on count_exp to get mode.
23503
23504 2014-04-22 Andrew Pinski <apinski@cavium.com>
23505
23506 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
23507 Handle TLS for ILP32.
23508 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
23509 (tlsie_small_<mode>): this and handle PTR.
23510 (tlsie_small_sidi): New pattern.
23511 (tlsle_small): Change to an expand to handle ILP32.
23512 (tlsle_small_<mode>): New pattern.
23513 (tlsdesc_small): Rename to ...
23514 (tlsdesc_small_<mode>): this and handle PTR.
23515
23516 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23517
23518 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
23519
23520 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23521
23522 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
23523 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
23524 (aarch64_types_signed_poly_qualifiers): Likewise.
23525 (aarch64_types_unsigned_signed_qualifiers): Likewise.
23526 (aarch64_types_poly_signed_qualifiers): Likewise.
23527 (TYPES_REINTERP_SS): Type macro added.
23528 (TYPES_REINTERP_SU): Likewise.
23529 (TYPES_REINTERP_SP): Likewise.
23530 (TYPES_REINTERP_US): Likewise.
23531 (TYPES_REINTERP_PS): Likewise.
23532 (aarch64_fold_builtin): New expression folding added.
23533 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
23534 Declarations removed.
23535 (REINTERP_SS): Declarations added.
23536 (REINTERP_US): Likewise.
23537 (REINTERP_PS): Likewise.
23538 (REINTERP_SU): Likewise.
23539 (REINTERP_SP): Likewise.
23540 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
23541 (vreinterpretq_p8_f64): Likewise.
23542 (vreinterpret_p16_f64): Likewise.
23543 (vreinterpretq_p16_f64): Likewise.
23544 (vreinterpret_f32_f64): Likewise.
23545 (vreinterpretq_f32_f64): Likewise.
23546 (vreinterpret_f64_f32): Likewise.
23547 (vreinterpret_f64_p8): Likewise.
23548 (vreinterpret_f64_p16): Likewise.
23549 (vreinterpret_f64_s8): Likewise.
23550 (vreinterpret_f64_s16): Likewise.
23551 (vreinterpret_f64_s32): Likewise.
23552 (vreinterpret_f64_s64): Likewise.
23553 (vreinterpret_f64_u8): Likewise.
23554 (vreinterpret_f64_u16): Likewise.
23555 (vreinterpret_f64_u32): Likewise.
23556 (vreinterpret_f64_u64): Likewise.
23557 (vreinterpretq_f64_f32): Likewise.
23558 (vreinterpretq_f64_p8): Likewise.
23559 (vreinterpretq_f64_p16): Likewise.
23560 (vreinterpretq_f64_s8): Likewise.
23561 (vreinterpretq_f64_s16): Likewise.
23562 (vreinterpretq_f64_s32): Likewise.
23563 (vreinterpretq_f64_s64): Likewise.
23564 (vreinterpretq_f64_u8): Likewise.
23565 (vreinterpretq_f64_u16): Likewise.
23566 (vreinterpretq_f64_u32): Likewise.
23567 (vreinterpretq_f64_u64): Likewise.
23568 (vreinterpret_s64_f64): Likewise.
23569 (vreinterpretq_s64_f64): Likewise.
23570 (vreinterpret_u64_f64): Likewise.
23571 (vreinterpretq_u64_f64): Likewise.
23572 (vreinterpret_s8_f64): Likewise.
23573 (vreinterpretq_s8_f64): Likewise.
23574 (vreinterpret_s16_f64): Likewise.
23575 (vreinterpretq_s16_f64): Likewise.
23576 (vreinterpret_s32_f64): Likewise.
23577 (vreinterpretq_s32_f64): Likewise.
23578 (vreinterpret_u8_f64): Likewise.
23579 (vreinterpretq_u8_f64): Likewise.
23580 (vreinterpret_u16_f64): Likewise.
23581 (vreinterpretq_u16_f64): Likewise.
23582 (vreinterpret_u32_f64): Likewise.
23583 (vreinterpretq_u32_f64): Likewise.
23584
23585 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23586
23587 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
23588 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
23589 (vreinterpret_p8_s8): Likewise.
23590 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
23591 (vreinterpret_p8_s16): Likewise.
23592 (vreinterpret_p8_s32): Likewise.
23593 (vreinterpret_p8_s64): Likewise.
23594 (vreinterpret_p8_f32): Likewise.
23595 (vreinterpret_p8_u8): Likewise.
23596 (vreinterpret_p8_u16): Likewise.
23597 (vreinterpret_p8_u32): Likewise.
23598 (vreinterpret_p8_u64): Likewise.
23599 (vreinterpret_p8_p16): Likewise.
23600 (vreinterpretq_p8_s8): Likewise.
23601 (vreinterpretq_p8_s16): Likewise.
23602 (vreinterpretq_p8_s32): Likewise.
23603 (vreinterpretq_p8_s64): Likewise.
23604 (vreinterpretq_p8_f32): Likewise.
23605 (vreinterpretq_p8_u8): Likewise.
23606 (vreinterpretq_p8_u16): Likewise.
23607 (vreinterpretq_p8_u32): Likewise.
23608 (vreinterpretq_p8_u64): Likewise.
23609 (vreinterpretq_p8_p16): Likewise.
23610 (vreinterpret_p16_s8): Likewise.
23611 (vreinterpret_p16_s16): Likewise.
23612 (vreinterpret_p16_s32): Likewise.
23613 (vreinterpret_p16_s64): Likewise.
23614 (vreinterpret_p16_f32): Likewise.
23615 (vreinterpret_p16_u8): Likewise.
23616 (vreinterpret_p16_u16): Likewise.
23617 (vreinterpret_p16_u32): Likewise.
23618 (vreinterpret_p16_u64): Likewise.
23619 (vreinterpret_p16_p8): Likewise.
23620 (vreinterpretq_p16_s8): Likewise.
23621 (vreinterpretq_p16_s16): Likewise.
23622 (vreinterpretq_p16_s32): Likewise.
23623 (vreinterpretq_p16_s64): Likewise.
23624 (vreinterpretq_p16_f32): Likewise.
23625 (vreinterpretq_p16_u8): Likewise.
23626 (vreinterpretq_p16_u16): Likewise.
23627 (vreinterpretq_p16_u32): Likewise.
23628 (vreinterpretq_p16_u64): Likewise.
23629 (vreinterpretq_p16_p8): Likewise.
23630 (vreinterpret_f32_s8): Likewise.
23631 (vreinterpret_f32_s16): Likewise.
23632 (vreinterpret_f32_s32): Likewise.
23633 (vreinterpret_f32_s64): Likewise.
23634 (vreinterpret_f32_u8): Likewise.
23635 (vreinterpret_f32_u16): Likewise.
23636 (vreinterpret_f32_u32): Likewise.
23637 (vreinterpret_f32_u64): Likewise.
23638 (vreinterpret_f32_p8): Likewise.
23639 (vreinterpret_f32_p16): Likewise.
23640 (vreinterpretq_f32_s8): Likewise.
23641 (vreinterpretq_f32_s16): Likewise.
23642 (vreinterpretq_f32_s32): Likewise.
23643 (vreinterpretq_f32_s64): Likewise.
23644 (vreinterpretq_f32_u8): Likewise.
23645 (vreinterpretq_f32_u16): Likewise.
23646 (vreinterpretq_f32_u32): Likewise.
23647 (vreinterpretq_f32_u64): Likewise.
23648 (vreinterpretq_f32_p8): Likewise.
23649 (vreinterpretq_f32_p16): Likewise.
23650 (vreinterpret_s64_s8): Likewise.
23651 (vreinterpret_s64_s16): Likewise.
23652 (vreinterpret_s64_s32): Likewise.
23653 (vreinterpret_s64_f32): Likewise.
23654 (vreinterpret_s64_u8): Likewise.
23655 (vreinterpret_s64_u16): Likewise.
23656 (vreinterpret_s64_u32): Likewise.
23657 (vreinterpret_s64_u64): Likewise.
23658 (vreinterpret_s64_p8): Likewise.
23659 (vreinterpret_s64_p16): Likewise.
23660 (vreinterpretq_s64_s8): Likewise.
23661 (vreinterpretq_s64_s16): Likewise.
23662 (vreinterpretq_s64_s32): Likewise.
23663 (vreinterpretq_s64_f32): Likewise.
23664 (vreinterpretq_s64_u8): Likewise.
23665 (vreinterpretq_s64_u16): Likewise.
23666 (vreinterpretq_s64_u32): Likewise.
23667 (vreinterpretq_s64_u64): Likewise.
23668 (vreinterpretq_s64_p8): Likewise.
23669 (vreinterpretq_s64_p16): Likewise.
23670 (vreinterpret_u64_s8): Likewise.
23671 (vreinterpret_u64_s16): Likewise.
23672 (vreinterpret_u64_s32): Likewise.
23673 (vreinterpret_u64_s64): Likewise.
23674 (vreinterpret_u64_f32): Likewise.
23675 (vreinterpret_u64_u8): Likewise.
23676 (vreinterpret_u64_u16): Likewise.
23677 (vreinterpret_u64_u32): Likewise.
23678 (vreinterpret_u64_p8): Likewise.
23679 (vreinterpret_u64_p16): Likewise.
23680 (vreinterpretq_u64_s8): Likewise.
23681 (vreinterpretq_u64_s16): Likewise.
23682 (vreinterpretq_u64_s32): Likewise.
23683 (vreinterpretq_u64_s64): Likewise.
23684 (vreinterpretq_u64_f32): Likewise.
23685 (vreinterpretq_u64_u8): Likewise.
23686 (vreinterpretq_u64_u16): Likewise.
23687 (vreinterpretq_u64_u32): Likewise.
23688 (vreinterpretq_u64_p8): Likewise.
23689 (vreinterpretq_u64_p16): Likewise.
23690 (vreinterpret_s8_s16): Likewise.
23691 (vreinterpret_s8_s32): Likewise.
23692 (vreinterpret_s8_s64): Likewise.
23693 (vreinterpret_s8_f32): Likewise.
23694 (vreinterpret_s8_u8): Likewise.
23695 (vreinterpret_s8_u16): Likewise.
23696 (vreinterpret_s8_u32): Likewise.
23697 (vreinterpret_s8_u64): Likewise.
23698 (vreinterpret_s8_p8): Likewise.
23699 (vreinterpret_s8_p16): Likewise.
23700 (vreinterpretq_s8_s16): Likewise.
23701 (vreinterpretq_s8_s32): Likewise.
23702 (vreinterpretq_s8_s64): Likewise.
23703 (vreinterpretq_s8_f32): Likewise.
23704 (vreinterpretq_s8_u8): Likewise.
23705 (vreinterpretq_s8_u16): Likewise.
23706 (vreinterpretq_s8_u32): Likewise.
23707 (vreinterpretq_s8_u64): Likewise.
23708 (vreinterpretq_s8_p8): Likewise.
23709 (vreinterpretq_s8_p16): Likewise.
23710 (vreinterpret_s16_s8): Likewise.
23711 (vreinterpret_s16_s32): Likewise.
23712 (vreinterpret_s16_s64): Likewise.
23713 (vreinterpret_s16_f32): Likewise.
23714 (vreinterpret_s16_u8): Likewise.
23715 (vreinterpret_s16_u16): Likewise.
23716 (vreinterpret_s16_u32): Likewise.
23717 (vreinterpret_s16_u64): Likewise.
23718 (vreinterpret_s16_p8): Likewise.
23719 (vreinterpret_s16_p16): Likewise.
23720 (vreinterpretq_s16_s8): Likewise.
23721 (vreinterpretq_s16_s32): Likewise.
23722 (vreinterpretq_s16_s64): Likewise.
23723 (vreinterpretq_s16_f32): Likewise.
23724 (vreinterpretq_s16_u8): Likewise.
23725 (vreinterpretq_s16_u16): Likewise.
23726 (vreinterpretq_s16_u32): Likewise.
23727 (vreinterpretq_s16_u64): Likewise.
23728 (vreinterpretq_s16_p8): Likewise.
23729 (vreinterpretq_s16_p16): Likewise.
23730 (vreinterpret_s32_s8): Likewise.
23731 (vreinterpret_s32_s16): Likewise.
23732 (vreinterpret_s32_s64): Likewise.
23733 (vreinterpret_s32_f32): Likewise.
23734 (vreinterpret_s32_u8): Likewise.
23735 (vreinterpret_s32_u16): Likewise.
23736 (vreinterpret_s32_u32): Likewise.
23737 (vreinterpret_s32_u64): Likewise.
23738 (vreinterpret_s32_p8): Likewise.
23739 (vreinterpret_s32_p16): Likewise.
23740 (vreinterpretq_s32_s8): Likewise.
23741 (vreinterpretq_s32_s16): Likewise.
23742 (vreinterpretq_s32_s64): Likewise.
23743 (vreinterpretq_s32_f32): Likewise.
23744 (vreinterpretq_s32_u8): Likewise.
23745 (vreinterpretq_s32_u16): Likewise.
23746 (vreinterpretq_s32_u32): Likewise.
23747 (vreinterpretq_s32_u64): Likewise.
23748 (vreinterpretq_s32_p8): Likewise.
23749 (vreinterpretq_s32_p16): Likewise.
23750 (vreinterpret_u8_s8): Likewise.
23751 (vreinterpret_u8_s16): Likewise.
23752 (vreinterpret_u8_s32): Likewise.
23753 (vreinterpret_u8_s64): Likewise.
23754 (vreinterpret_u8_f32): Likewise.
23755 (vreinterpret_u8_u16): Likewise.
23756 (vreinterpret_u8_u32): Likewise.
23757 (vreinterpret_u8_u64): Likewise.
23758 (vreinterpret_u8_p8): Likewise.
23759 (vreinterpret_u8_p16): Likewise.
23760 (vreinterpretq_u8_s8): Likewise.
23761 (vreinterpretq_u8_s16): Likewise.
23762 (vreinterpretq_u8_s32): Likewise.
23763 (vreinterpretq_u8_s64): Likewise.
23764 (vreinterpretq_u8_f32): Likewise.
23765 (vreinterpretq_u8_u16): Likewise.
23766 (vreinterpretq_u8_u32): Likewise.
23767 (vreinterpretq_u8_u64): Likewise.
23768 (vreinterpretq_u8_p8): Likewise.
23769 (vreinterpretq_u8_p16): Likewise.
23770 (vreinterpret_u16_s8): Likewise.
23771 (vreinterpret_u16_s16): Likewise.
23772 (vreinterpret_u16_s32): Likewise.
23773 (vreinterpret_u16_s64): Likewise.
23774 (vreinterpret_u16_f32): Likewise.
23775 (vreinterpret_u16_u8): Likewise.
23776 (vreinterpret_u16_u32): Likewise.
23777 (vreinterpret_u16_u64): Likewise.
23778 (vreinterpret_u16_p8): Likewise.
23779 (vreinterpret_u16_p16): Likewise.
23780 (vreinterpretq_u16_s8): Likewise.
23781 (vreinterpretq_u16_s16): Likewise.
23782 (vreinterpretq_u16_s32): Likewise.
23783 (vreinterpretq_u16_s64): Likewise.
23784 (vreinterpretq_u16_f32): Likewise.
23785 (vreinterpretq_u16_u8): Likewise.
23786 (vreinterpretq_u16_u32): Likewise.
23787 (vreinterpretq_u16_u64): Likewise.
23788 (vreinterpretq_u16_p8): Likewise.
23789 (vreinterpretq_u16_p16): Likewise.
23790 (vreinterpret_u32_s8): Likewise.
23791 (vreinterpret_u32_s16): Likewise.
23792 (vreinterpret_u32_s32): Likewise.
23793 (vreinterpret_u32_s64): Likewise.
23794 (vreinterpret_u32_f32): Likewise.
23795 (vreinterpret_u32_u8): Likewise.
23796 (vreinterpret_u32_u16): Likewise.
23797 (vreinterpret_u32_u64): Likewise.
23798 (vreinterpret_u32_p8): Likewise.
23799 (vreinterpret_u32_p16): Likewise.
23800 (vreinterpretq_u32_s8): Likewise.
23801 (vreinterpretq_u32_s16): Likewise.
23802 (vreinterpretq_u32_s32): Likewise.
23803 (vreinterpretq_u32_s64): Likewise.
23804 (vreinterpretq_u32_f32): Likewise.
23805 (vreinterpretq_u32_u8): Likewise.
23806 (vreinterpretq_u32_u16): Likewise.
23807 (vreinterpretq_u32_u64): Likewise.
23808 (vreinterpretq_u32_p8): Likewise.
23809 (vreinterpretq_u32_p16): Likewise.
23810
23811 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23812
23813 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
23814 Pattern extended.
23815 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
23816 (sqabs): Likewise.
23817 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
23818 (vqnegd_s64): Likewise.
23819 (vqabs_s64): Likewise.
23820 (vqabsd_s64): Likewise.
23821
23822 2014-04-22 Richard Henderson <rth@redhat.com>
23823
23824 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
23825 computation to the top of the loop.
23826
23827 2014-04-22 Renlin <renlin.li@arm.com>
23828 Jiong Wang <jiong.wang@arm.com>
23829
23830 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
23831 * config/aarch64/aarch64.c (aarch64_layout_frame)
23832 (aarch64_initial_elimination_offset): Likewise.
23833
23834 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
23835
23836 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
23837 Fix indentation.
23838
23839 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
23840
23841 * machmode.h (bitwise_mode_for_mode): Declare.
23842 * stor-layout.h (bitwise_type_for_mode): Likewise.
23843 * stor-layout.c (bitwise_mode_for_mode): New function.
23844 (bitwise_type_for_mode): Likewise.
23845 * builtins.c (fold_builtin_memory_op): Use it instead of
23846 int_mode_for_mode and build_nonstandard_integer_type.
23847
23848 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23849
23850 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
23851 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
23852 (*-*-solaris2*): Simplify.
23853 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
23854 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
23855 *-*-solaris2.9* handling.
23856
23857 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
23858 as bug.
23859 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
23860 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
23861 handling, simplify.
23862 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
23863 * configure: Regenerate.
23864
23865 * config/i386/sol2-9.h: Remove.
23866
23867 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
23868 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
23869 Remove Solaris 9 references.
23870
23871 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
23872
23873 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
23874 (floatuns<GPI:mode><GPF:mode>2): Remove.
23875 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
23876 and floatuns conversions.
23877 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
23878 and floatuns conversions.
23879 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
23880 (w1,w2): New mode attributes for inequal width conversions.
23881
23882 2014-04-22 Renlin Li <Renlin.Li@arm.com>
23883
23884 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
23885 the output asm format.
23886
23887 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
23888
23889 * config/aarch64/aarch64-simd.md
23890 (aarch64_cm<optab>di): Always split.
23891 (*aarch64_cm<optab>di): New.
23892 (aarch64_cmtstdi): Always split.
23893 (*aarch64_cmtstdi): New.
23894
23895 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23896
23897 PR tree-optimization/60823
23898 * omp-low.c (ipa_simd_modify_function_body): Go through
23899 all SSA_NAMEs and for those refering to vector arguments
23900 which are going to be replaced adjust SSA_NAME_VAR and,
23901 if it is a default definition, change it into a non-default
23902 definition assigned at the beginning of function from new_decl.
23903 (ipa_simd_modify_stmt_ops): Rewritten.
23904 * tree-dfa.c (set_ssa_default_def): When removing default def,
23905 check for NULL loc instead of NULL *loc.
23906
23907 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23908
23909 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
23910 restrictions on core registers for DImode values in Thumb2.
23911
23912 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23913
23914 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
23915 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
23916
23917 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23918
23919 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
23920 (*iordi_notzesidi_di): Likewise.
23921 (*iordi_notsesidi_di): Likewise.
23922
23923 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23924
23925 * config/arm/arm-protos.h (tune_params): New struct members.
23926 * config/arm/arm.c: Initialise tune_params per processor.
23927 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
23928 for speed, based on new tune_params.
23929
23930 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23931
23932 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
23933 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
23934 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
23935 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
23936 * config/aarch64/arm_neon.h (vrnd_f64): Added.
23937 (vrnda_f64): Likewise.
23938 (vrndi_f64): Likewise.
23939 (vrndm_f64): Likewise.
23940 (vrndn_f64): Likewise.
23941 (vrndp_f64): Likewise.
23942 (vrndx_f64): Likewise.
23943
23944 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23945
23946 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
23947 GET_MODE_SIZE argument is enum machine_mode.
23948
23949 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23950
23951 PR target/60910
23952 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
23953 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
23954
23955 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
23956
23957 PR middle-end/60281
23958 * asan.c (asan_emit_stack_protection): Force the base to align to
23959 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
23960 appropriate bits if STRICT_ALIGNMENT.
23961 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
23962 when asan is on.
23963 (expand_used_vars): Leave a space in the stack frame for alignment
23964 if STRICT_ALIGNMENT.
23965
23966 2014-04-21 David Malcolm <dmalcolm@redhat.com>
23967
23968 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
23969 than a gimple.
23970 (gimple_store_p): Likewise.
23971 (gimple_assign_load_p): Likewise.
23972 (gimple_assign_cast_p): Likewise.
23973 (gimple_clobber_p): Likewise.
23974
23975 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
23976 rather than a gimple.
23977 (gimple_assign_cast_p): Likewise.
23978
23979 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
23980
23981 PR target/60735
23982 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
23983 If mode is DDmode and TARGET_E500_DOUBLE allow move.
23984
23985 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
23986 more debug information for E500 if -mdebug=reg.
23987
23988 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
23989
23990 PR target/60909
23991 * config/i386/i386.c (ix86_expand_builtin)
23992 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
23993 register for target RTX.
23994 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
23995
23996 2014-04-18 Cong Hou <congh@google.com>
23997
23998 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
23999 the widen-mult pattern by handling two operands with different sizes,
24000 and operands whose size is smaller than half of the result type.
24001
24002 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
24003
24004 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
24005 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
24006 (do_estimate_edge_time): Compute it.
24007 * ipa-inline.c (want_inline_small_function_p): Bypass
24008 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
24009
24010 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
24011
24012 * ipa-inline.c (spec_rem): New static variable.
24013 (dump_overall_stats): New function.
24014 (dump_inline_stats): New function.
24015
24016 2014-04-18 Richard Henderson <rth@redhat.com>
24017
24018 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
24019 to GET_MODE_SIZE, not a reg_class_t.
24020
24021 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24022
24023 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
24024 (vsx_xxmrglw_<mode>): Likewise.
24025
24026 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
24027
24028 PR target/60876
24029 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
24030 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
24031 (rs6000_init_hard_regno_mode_ok): Likewise.
24032
24033 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
24034
24035 * ipa-inline.c (inline_small_functions): Account only non-cold
24036 functions.
24037 * doc/invoke.texi (inline-unit-growth): Update documentation.
24038
24039 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
24040
24041 * config/rs6000/rs6000.md (addti3, subti3): New.
24042
24043 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
24044
24045 PR target/60863
24046 * config/i386/i386.c (ix86_expand_clear): Remove outdated
24047 comment. Check optimize_insn_for_size_p instead of
24048 optimize_insn_for_speed_p.
24049
24050 2014-04-17 Martin Jambor <mjambor@suse.cz>
24051
24052 * gimple-iterator.c (gsi_start_edge): New function.
24053 * gimple-iterator.h (gsi_start_edge): Declare.
24054 * tree-sra.c (single_non_eh_succ): New function.
24055 (disqualify_ops_if_throwing_stmt): Renamed to
24056 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
24057 having one non-EH successor BB.
24058 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
24059 generate loads into replacements.
24060 (sra_modify_assign): Likewise and and also use the simple path for
24061 such statements.
24062 (sra_modify_function_body): Commit statements on edges.
24063
24064 2014-04-17 Richard Biener <rguenther@suse.de>
24065
24066 PR middle-end/60849
24067 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
24068 comparison results and add clarifying comment.
24069
24070 2014-04-17 Jakub Jelinek <jakub@redhat.com>
24071
24072 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
24073 (blank_mode): Initialize it.
24074 (emit_mode_size_inline, emit_mode_nunits_inline,
24075 emit_mode_inner_inline): New functions.
24076 (emit_insn_modes_h): Call them and surround their output with
24077 #if GCC_VERSION >= 4001 ... #endif.
24078 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
24079 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
24080 mode_* arrays if the argument is __builtin_constant_p.
24081 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
24082 is enum machine_mode.
24083
24084 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24085
24086 * passes.c (opt_pass::execute): Adjust.
24087 (pass_manager::execute_pass_mode_switching): Likewise.
24088 (early_local_passes::execute): Likewise.
24089 (execute_one_pass): Pass cfun to the pass's execute method.
24090 * tree-pass.h (opt_pass::execute): Add function * argument.
24091 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
24092 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
24093 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
24094 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24095 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
24096 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
24097 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
24098 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
24099 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
24100 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
24101 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
24102 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
24103 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
24104 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
24105 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
24106 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
24107 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
24108 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
24109 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
24110 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24111 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24112 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24113 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24114 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24115 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24116 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24117 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
24118 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
24119 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
24120 Adjust.
24121
24122 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24123
24124 * passes.c (opt_pass::gate): Take function * argument.
24125 (gate_all_early_local_passes): Merge into
24126 (early_local_passes::gate): this.
24127 (gate_all_early_optimizations): Merge into
24128 (all_early_optimizations::gate): this.
24129 (gate_all_optimizations): Mege into
24130 (all_optimizations::gate): this.
24131 (gate_all_optimizations_g): Merge into
24132 (all_optimizations_g::gate): this.
24133 (gate_rest_of_compilation): Mege into
24134 (rest_of_compilation::gate): this.
24135 (gate_postreload): Merge into
24136 (postreload::gate): this.
24137 (dump_one_pass): Pass cfun to the pass's gate method.
24138 (execute_ipa_summary_passes): Likewise.
24139 (execute_one_pass): Likewise.
24140 (ipa_write_summaries_2): Likewise.
24141 (ipa_write_optimization_summaries_1): Likewise.
24142 (ipa_read_summaries_1): Likewise.
24143 (ipa_read_optimization_summaries_1): Likewise.
24144 (execute_ipa_stmt_fixups): Likewise.
24145 * tree-pass.h (opt_pass::gate): Add function * argument.
24146 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
24147 combine-stack-adj.c, combine.c, compare-elim.c,
24148 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24149 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
24150 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
24151 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
24152 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
24153 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
24154 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
24155 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
24156 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
24157 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
24158 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
24159 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
24160 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
24161 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
24162 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
24163 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24164 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24165 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24166 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24167 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24168 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24169 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24170 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
24171 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
24172 var-tracking.c, vtable-verify.c, web.c: Adjust.
24173
24174 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24175
24176 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
24177 * configure: Regenerate.
24178
24179 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24180
24181 * passes.c (dump_one_pass): don't check pass->has_gate.
24182 (execute_ipa_summary_passes): Likewise.
24183 (execute_one_pass): Likewise.
24184 (ipa_write_summaries_2): Likewise.
24185 (ipa_write_optimization_summaries_1): Likewise.
24186 (ipa_read_optimization_summaries_1): Likewise.
24187 (execute_ipa_stmt_fixups): Likewise.
24188 * tree-pass.h (pass_data::has_gate): Remove.
24189 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
24190 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
24191 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
24192 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24193 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
24194 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
24195 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
24196 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
24197 gimple-low.c, gimple-ssa-isolate-paths.c,
24198 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
24199 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
24200 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
24201 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
24202 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
24203 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
24204 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
24205 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
24206 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
24207 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
24208 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
24209 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
24210 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24211 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24212 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24213 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24214 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24215 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24216 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24217 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
24218 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
24219 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
24220 Adjust.
24221
24222 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24223
24224 * pass_manager.h (pass_manager::register_dump_files_1): Remove
24225 declaration.
24226 * passes.c (pass_manager::register_dump_files_1): Merge into
24227 (pass_manager::register_dump_files): this, and remove its handling of
24228 properties since the pass always has the properties anyway.
24229 (pass_manager::pass_manager): Adjust.
24230
24231 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24232
24233 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
24234 * passes.c (pass_manager::register_dump_files_1): Remove dead code
24235 dealing with properties.
24236 (pass_manager::register_dump_files): Adjust.
24237
24238 2014-03-20 Mark Wielaard <mjw@redhat.com>
24239
24240 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
24241 then represent the bound as normal constant value.
24242
24243 2014-04-17 Jakub Jelinek <jakub@redhat.com>
24244
24245 PR target/60847
24246 Forward port from 4.8 branch
24247 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
24248
24249 * config/i386/bmiintrin.h (_blsi_u32): New.
24250 (_blsi_u64): Ditto.
24251 (_blsr_u32): Ditto.
24252 (_blsr_u64): Ditto.
24253 (_blsmsk_u32): Ditto.
24254 (_blsmsk_u64): Ditto.
24255 (_tzcnt_u32): Ditto.
24256 (_tzcnt_u64): Ditto.
24257
24258 2014-04-17 Kito Cheng <kito@0xlab.org>
24259
24260 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
24261
24262 2014-04-17 Richard Biener <rguenther@suse.de>
24263
24264 PR middle-end/60849
24265 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
24266 boolean results for comparisons.
24267
24268 2014-04-17 Richard Biener <rguenther@suse.de>
24269
24270 PR tree-optimization/60836
24271 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
24272 initial PHI args to be gimple values.
24273
24274 2014-04-17 Richard Biener <rguenther@suse.de>
24275
24276 PR tree-optimization/60841
24277 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
24278 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
24279 of stmts to SLP build.
24280 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
24281 (vect_analyze_slp): Likewise.
24282 (vect_analyze_slp_instance): Likewise.
24283 (vect_build_slp_tree): Limit overall SLP tree growth.
24284 * tree-vectorizer.h (vect_analyze_data_refs,
24285 vect_analyze_slp): Adjust prototypes.
24286
24287 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
24288
24289 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
24290 Silvermont.
24291
24292 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
24293
24294 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
24295 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
24296 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
24297 for TARGET_SLOW_PSHUFB
24298
24299 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
24300
24301 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
24302 * config/i386/i386.c (intel_cost): Ditto.
24303
24304 2014-04-17 Joey Ye <joey.ye@arm.com>
24305
24306 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
24307
24308 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
24309
24310 * opts.c (common_handle_option): Disable -fipa-reference coorectly
24311 with -fuse-profile.
24312
24313 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
24314
24315 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
24316 (type_all_derivations_known_p): New predicate.
24317 (type_all_ctors_visible_p): New predicate.
24318 (type_possibly_instantiated_p): New predicate.
24319 (get_odr_type): Compute all_derivations_known.
24320 (dump_odr_type): Dump the flag.
24321 (maybe_record_type): Cleanup.
24322 (record_target_from_binfo): Add bases_to_consider array;
24323 record bases for types w/o instances and skip CXX destructor.
24324 (possible_polymorphic_call_targets_1): Add bases_to_consider
24325 and consider_construction parameters; check if type may have instance.
24326 (get_polymorphic_call_info): Set maybe_in_construction to true
24327 when we know nothing.
24328 (record_targets_from_bases): Skip CXX destructors; they are
24329 never called for types in construction.
24330 (possible_polymorphic_call_targets): Do not record target when
24331 type may not have instance.
24332
24333 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
24334
24335 PR ipa/60854
24336 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
24337 external aliases alive, too.
24338
24339 2014-04-16 Andrew Pinski <apinski@cavium.com>
24340
24341 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
24342 definition.
24343
24344 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
24345
24346 * final.c (compute_alignments): Do not apply loop alignment to a block
24347 falling through to the exit.
24348
24349 2014-04-16 Catherine Moore <clm@codesourcery.com>
24350
24351 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
24352 Adjust constraints for microMIPS store patterns.
24353
24354 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
24355
24356 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
24357
24358 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
24359
24360 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
24361 (append_use): Run at -O0.
24362 (append_vdef): Likewise.
24363 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
24364 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
24365
24366 2014-04-16 Jakub Jelinek <jakub@redhat.com>
24367
24368 PR tree-optimization/60844
24369 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
24370 (propagate_op_to_single_use, remove_visited_stmt_chain,
24371 linearize_expr, repropagate_negates, reassociate_bb): Use it
24372 instead of gsi_remove.
24373
24374 2014-04-16 Martin Jambor <mjambor@suse.cz>
24375
24376 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
24377 ipa_transforms_to_apply.
24378 (cgraph_function_versioning): Assert that old_node has empty
24379 ipa_transforms_to_apply.
24380 * trans-mem.c (ipa_tm_create_version): Likewise.
24381 * tree-inline.c (tree_function_versioning): Do not duplicate
24382 ipa_transforms_to_apply.
24383
24384 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24385
24386 PR target/60817
24387 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
24388 x86_64-*-* cases.
24389 Pass necessary as flags on 64-bit Solaris/x86.
24390 Use lowercase relocs for x86_64-*-*.
24391 * configure: Regenerate.
24392
24393 2014-04-15 Jan Hubicka <jh@suse.cz>
24394
24395 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
24396 (maybe_record_node, likely_target_p): Use it.
24397
24398 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24399
24400 PR target/60839
24401 Revert following patch
24402
24403 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24404
24405 PR target/60735
24406 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
24407 software floating point or no floating point registers, do not
24408 allow any type in the FPRs. Eliminate a test for SPE SIMD types
24409 in GPRs that occurs after we tested for GPRs that would never be
24410 true.
24411
24412 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
24413 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
24414 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
24415 specifically allow DDmode, since that does not use the SPE SIMD
24416 instructions.
24417
24418 2014-03-21 Mark Wielaard <mjw@redhat.com>
24419
24420 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
24421 as unsigned or int depending on type and value used.
24422
24423 2014-04-15 Richard Biener <rguenther@suse.de>
24424
24425 PR rtl-optimization/56965
24426 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
24427 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
24428 ... here.
24429 * alias.c (true_dependence_1): Do not call
24430 nonoverlapping_component_refs_p.
24431 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
24432 nonoverlapping_component_refs_p.
24433 (indirect_refs_may_alias_p): Likewise.
24434
24435 2014-04-15 Teresa Johnson <tejohnson@google.com>
24436
24437 * cfg.c (dump_bb_info): Fix flags check.
24438 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
24439
24440 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24441
24442 PR rtl-optimization/60663
24443 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
24444 avoid 0 cost.
24445
24446 2014-04-15 Richard Biener <rguenther@suse.de>
24447
24448 * lto-streamer.h (LTO_major_version): Bump to 4.
24449
24450 2014-04-15 Richard Biener <rguenther@suse.de>
24451
24452 * common.opt (lto_partition_model): New enum.
24453 (flto-partition=): Merge separate options with a single with argument,
24454 add -flto-partition=one support.
24455 * flag-types.h (enum lto_partition_model): Declare.
24456 * opts.c (finish_options): Remove duplicate -flto-partition=
24457 option check.
24458 * lto-wrapper.c (run_gcc): Adjust.
24459
24460 2014-04-15 Richard Biener <rguenther@suse.de>
24461
24462 * alias.c (ncr_compar): New function.
24463 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
24464
24465 2014-04-15 Richard Biener <rguenther@suse.de>
24466
24467 * alias.c (record_component_aliases): Do not walk BINFOs.
24468
24469 2014-04-15 Richard Biener <rguenther@suse.de>
24470
24471 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24472 Add struct function argument and adjust.
24473 (find_func_aliases_for_call): Likewise.
24474 (find_func_aliases): Likewise.
24475 (find_func_clobbers): Likewise.
24476 (intra_create_variable_infos): Likewise.
24477 (compute_points_to_sets): Likewise.
24478 (ipa_pta_execute): Adjust. Do not push/pop cfun.
24479
24480 2014-04-15 Richard Biener <rguenther@suse.de>
24481
24482 * tree.c (iterative_hash_expr): Use enum tree_code_class
24483 to store TREE_CODE_CLASS.
24484 (tree_block): Likewise.
24485 (tree_set_block): Likewise.
24486 * tree.h (fold_build_pointer_plus_loc): Use
24487 convert_to_ptrofftype_loc.
24488
24489 2014-04-15 Jakub Jelinek <jakub@redhat.com>
24490
24491 PR plugins/59335
24492 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
24493 added in 4.9.
24494
24495 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
24496
24497 * cfgloop.h (struct loop): Move force_vectorize down.
24498 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
24499 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
24500 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
24501 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
24502 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
24503 * tree-core.h (enum annot_expr_kind): Add new kind values.
24504 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
24505 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
24506 kinds.
24507 * tree.def (ANNOTATE_EXPR): Tweak comment.
24508
24509 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24510
24511 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
24512 cxa_pure_virtual).
24513
24514 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
24515
24516 * tree.h (TYPE_IDENTIFIER): Declare.
24517 * tree.c (subrange_type_for_debug_p): Use it.
24518 * godump.c (go_format_type): Likewise.
24519 * dwarf2out.c (is_cxx_auto, modified_type_die,
24520 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
24521 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
24522
24523 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24524
24525 PR lto/60820
24526 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
24527
24528 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
24529
24530 * config/i386/i386.c (examine_argument): Return bool. Return true if
24531 parameter should be passed in memory.
24532 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
24533 (construct_container): Update calls to examine_argument.
24534 (function_arg_advance_64): Ditto.
24535 (return_in_memory_32): Merge with ix86_return_in_memory.
24536 (return_in_memory_64): Ditto.
24537 (return_in_memory_ms_64): Ditto.
24538
24539 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24540
24541 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
24542 * coverage.c (coverage_compute_profile_id): Handle externally visible
24543 symbols.
24544
24545 2014-04-14 Martin Jambor <mjambor@suse.cz>
24546
24547 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
24548 DECL_DISREGARD_INLINE_LIMITS functions.
24549
24550 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
24551
24552 PR target/60827
24553 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
24554
24555 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
24556
24557 PR target/60827
24558 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
24559 optimize_insn_for_speed_p instead of
24560 optimize_function_for_speed_p.
24561
24562 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
24563
24564 * doc/invoke.texi (free): Document AArch64.
24565
24566 2014-04-14 Richard Biener <rguenther@suse.de>
24567
24568 PR tree-optimization/60042
24569 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
24570 (insert_into_preds_of_block): Do not prevent PHI insertion
24571 for REFERENCE exprs here ...
24572 (eliminate_dom_walker::before_dom_children): ... but prevent
24573 their use here under similar conditions when applied to the
24574 IL after PRE optimizations.
24575
24576 2014-04-14 Richard Biener <rguenther@suse.de>
24577
24578 * passes.def: Move early points-to after early SRA.
24579
24580 2014-04-14 Richard Biener <rguenther@suse.de>
24581
24582 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
24583 check for which sign-changes we allow when forwarding
24584 a converted value into a switch.
24585
24586 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
24587
24588 * stor-layout.c (place_field): Finalize non-constant offset for the
24589 field, if any.
24590
24591 2014-04-14 Richard Biener <rguenther@suse.de>
24592
24593 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
24594 as argument.
24595 (expand_switch_using_bit_tests_p): Likewise.
24596 (process_switch): Compute and pass on speed_p based on the
24597 switch stmt.
24598 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
24599 optimize_bb_for_speed_p.
24600
24601 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
24602
24603 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
24604 * function.h (struct function): Rename has_force_vect_loops into
24605 has_force_vectorize_loops.
24606 * lto-streamer-in.c (input_cfg): Adjust for renaming.
24607 (input_struct_function_base): Likewise.
24608 * lto-streamer-out.c (output_cfg): Likewise.
24609 (output_struct_function_base): Likewise.
24610 * omp-low.c (expand_omp_simd): Likewise.
24611 * tree-cfg.c (move_sese_region_to_fn): Likewise.
24612 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
24613 (version_loop_for_if_conversion): Likewise.
24614 (tree_if_conversion): Likewise.
24615 (main_tree_if_conversion): Likewise.
24616 (gate_tree_if_conversion): Likewise.
24617 * tree-inline.c (copy_loops): Likewise.
24618 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
24619 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
24620 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
24621 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
24622 * tree-vectorizer.c (vectorize_loops): Likewise.
24623 * tree-vectorizer.h (unlimited_cost_model): Likewise.
24624
24625 2014-04-14 Richard Biener <rguenther@suse.de>
24626
24627 PR lto/60720
24628 * lto-streamer-out.c (wrap_refs): New function.
24629 (lto_output): Wrap symbol references in global initializes in
24630 type-preserving MEM_REFs.
24631
24632 2014-04-14 Christian Bruel <christian.bruel@st.com>
24633
24634 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
24635
24636 2014-04-14 Christian Bruel <christian.bruel@st.com>
24637
24638 * config/sh/sh.md (setmemqi): New expand pattern.
24639 * config/sh/sh.h (CLEAR_RATIO): Define.
24640 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
24641 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
24642
24643 2014-04-14 Richard Biener <rguenther@suse.de>
24644
24645 PR middle-end/55022
24646 * fold-const.c (negate_expr_p): Don't negate directional rounding
24647 division.
24648 (fold_negate_expr): Likewise.
24649
24650 2014-04-14 Richard Biener <rguenther@suse.de>
24651
24652 PR tree-optimization/59817
24653 PR tree-optimization/60453
24654 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
24655 recursion to catch all CHRECs in the scalar evolution and restrict
24656 the predicate for the remains appropriately.
24657
24658 2014-04-12 Catherine Moore <clm@codesourcery.com>
24659
24660 * config/mips/constraints.md: Add new register constraint "kb".
24661 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
24662 (*movhi_internal): Likewise.
24663 (*movqi_internal): Likewise.
24664 * config/mips/mips.h (M16_STORE_REGS): New register class.
24665 (REG_CLASS_NAMES): Add M16_STORE_REGS.
24666 (REG_CLASS_CONTENTS): Likewise.
24667 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
24668
24669 2014-04-11 Tobias Burnus <burnus@net-b.de>
24670
24671 PR c/60194
24672 * doc/invoke.texi (-Wformat-signedness): Document it.
24673 (Wformat=2): Mention that this enables -Wformat-signedness.
24674
24675 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24676
24677 * common/config/epiphany/epiphany-common.c
24678 (epiphany_option_optimization_table): Enable section anchors by
24679 default at -O1 or higher.
24680 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
24681 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
24682 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
24683 carries no extra cost.
24684 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
24685 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
24686 * config/epiphany/predicates.md (memclob_operand): New predicate.
24687 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
24688 Use memclob_operand predicate and X constraint for operand 3.
24689
24690 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24691
24692 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
24693 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
24694 its operands.
24695
24696 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24697
24698 PR rtl-optimization/60651
24699 * mode-switching.c (optimize_mode_switching): Make sure to emit
24700 sets of a lower numbered entity before sets of a higher numbered
24701 entity to a mode of the same or lower priority.
24702 When creating a seginfo for a basic block that starts with a code
24703 label, move the insertion point past the code label.
24704 (new_seginfo): Document and enforce requirement that
24705 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
24706 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
24707 * doc/tm.texi: Regenerate.
24708
24709 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
24710
24711 PR target/60811
24712 * config/arc/arc.c (arc_save_restore): Fix assert typo.
24713
24714 2013-04-11 Jakub Jelinek <jakub@redhat.com>
24715
24716 * BASE-VER: Set to 4.10.0.
24717
24718 2014-04-11 Tobias Burnus <burnus@net-b.de>
24719
24720 PR other/59055
24721 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
24722 * doc/gcc.texi (Service): Update description in the @menu
24723 * doc/invoke.texi (Option Summary): Remove misplaced and
24724 duplicated @menu.
24725
24726 2014-04-11 Steve Ellcey <sellcey@mips.com>
24727 Jakub Jelinek <jakub@redhat.com>
24728
24729 PR middle-end/60556
24730 * expr.c (convert_move): Use emit_store_flag_force instead of
24731 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
24732 argument to it.
24733
24734 2014-04-11 Richard Biener <rguenther@suse.de>
24735
24736 PR middle-end/60797
24737 * varasm.c (assemble_alias): Avoid endless error reporting
24738 recursion by setting TREE_ASM_WRITTEN.
24739
24740 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24741
24742 * config/s390/s390.md: Add a splitter for NOT rtx.
24743
24744 2014-04-11 Jakub Jelinek <jakub@redhat.com>
24745
24746 PR rtl-optimization/60663
24747 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
24748
24749 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
24750 Jakub Jelinek <jakub@redhat.com>
24751
24752 PR lto/60567
24753 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
24754 flag from decl_node to node.
24755
24756 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24757
24758 PR debug/60655
24759 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
24760 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
24761 ameliorating the cases where it can be.
24762
24763 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
24764
24765 Revert
24766 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
24767
24768 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24769 (loadsync_<mode>): Change mode.
24770 (load_quadpti, store_quadpti): New.
24771 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24772 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24773 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
24774
24775 2014-04-09 Cong Hou <congh@google.com>
24776
24777 PR testsuite/60773
24778 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
24779 documentation.
24780
24781 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24782
24783 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
24784 instead of vnor to exploit possible fusion opportunity in the
24785 future.
24786 (altivec_expand_vec_perm_const_le): Likewise.
24787
24788 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
24789
24790 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24791 (loadsync_<mode>): Change mode.
24792 (load_quadpti, store_quadpti): New.
24793 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24794 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24795
24796 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
24797
24798 PR target/60763
24799 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
24800 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
24801 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
24802
24803 2014-04-08 Richard Biener <rguenther@suse.de>
24804
24805 PR middle-end/60706
24806 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
24807 a 64bit widest int print double-int similar to on HWI64 hosts.
24808
24809 2014-04-08 Richard Biener <rguenther@suse.de>
24810
24811 PR tree-optimization/60785
24812 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
24813 default defs properly.
24814
24815 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
24816
24817 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
24818 (Weffc++): Likewise.
24819
24820 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
24821
24822 * ipa-devirt.c (maybe_record_node): When node is not recorded,
24823 set completep to false rather than true.
24824
24825 2014-04-07 Douglas B Rupp <rupp@adacore.com>
24826
24827 PR target/60504
24828 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
24829 ARM_TARGET2_DWARF_FORMAT.
24830
24831 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
24832
24833 PR target/60609
24834 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
24835 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
24836 ADDR_DIFF_VEC.
24837
24838 2014-04-07 Richard Biener <rguenther@suse.de>
24839
24840 PR tree-optimization/60766
24841 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
24842 (may_eliminate_iv): Convert cand_value_at result to desired type.
24843
24844 2014-04-07 Jason Merrill <jason@redhat.com>
24845
24846 PR c++/60731
24847 * common.opt (-fno-gnu-unique): Add.
24848 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
24849
24850 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24851
24852 * haifa-sched.c: Fix outdated function reference and minor
24853 grammar errors in introductory comment.
24854
24855 2014-04-07 Richard Biener <rguenther@suse.de>
24856
24857 PR middle-end/60750
24858 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
24859 for noreturn calls.
24860 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
24861
24862 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
24863
24864 PR debug/55794
24865 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
24866 size accounting for thunks.
24867 (pa_asm_output_mi_thunk): Use final_start_function() and
24868 final_end_function() to output function start and end directives.
24869
24870 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
24871
24872 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
24873 device specific ISA/ feature information. Remove short_sp and
24874 errata_skip ds. Add avr_device_specific_features enum to have device
24875 specific info.
24876 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
24877 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
24878 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
24879 updated device specific info.
24880 * config/avr/avr-mcus.def: Merge device specific details to
24881 dev_attribute field.
24882 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
24883 errata_skip.
24884 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
24885 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
24886 assembler if RMW isa supported by current device.
24887 * config/avr/genmultilib.awk: Update as device info structure changed.
24888 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
24889
24890 2014-04-04 Cong Hou <congh@google.com>
24891
24892 PR tree-optimization/60656
24893 * tree-vect-stmts.c (supportable_widening_operation):
24894 Fix a bug that elements in a vector with vect_used_by_reduction
24895 property are incorrectly reordered when the operation on it is not
24896 consistant with the one in reduction operation.
24897
24898 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
24899
24900 PR rtl-optimization/60155
24901 * gcse.c (record_set_data): New function.
24902 (single_set_gcse): New function.
24903 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
24904 (hoist_code): Likewise.
24905 (get_pressure_class_and_nregs): Likewise.
24906
24907 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
24908
24909 * explow.c (probe_stack_range): Emit a final optimization blockage.
24910
24911 2014-04-04 Anthony Green <green@moxielogic.com>
24912
24913 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
24914 typos.
24915
24916 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
24917
24918 PR ipa/59626
24919 * lto-cgraph.c (input_overwrite_node): Check that partitioning
24920 flags are set only during streaming.
24921 * ipa.c (process_references, walk_polymorphic_call_targets,
24922 symtab_remove_unreachable_nodes): Drop bodies of always inline
24923 after early inlining.
24924 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
24925
24926 2014-04-04 Jakub Jelinek <jakub@redhat.com>
24927 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24928
24929 PR debug/60655
24930 * dwarf2out.c (const_ok_for_output_1): Reject expressions
24931 containing a NOT.
24932
24933 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24934
24935 PR bootstrap/60743
24936 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
24937 duration.
24938 (cortex_a53_fdivd): Likewise.
24939
24940 2014-04-04 Martin Jambor <mjambor@suse.cz>
24941
24942 PR ipa/60640
24943 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
24944 Adjust all callers.
24945 * cgraph.c (clone_of_p): Also return true if thunks match.
24946 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
24947 cgraph_function_or_thunk_node and an obsolete comment.
24948 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
24949 file.
24950 (build_function_decl_skip_args): Likewise.
24951 (set_new_clone_decl_and_node_flags): New function.
24952 (duplicate_thunk_for_node): Likewise.
24953 (redirect_edge_duplicating_thunks): Likewise.
24954 (cgraph_clone_node): New parameter args_to_skip, pass it to
24955 redirect_edge_duplicating_thunks which is called instead of
24956 cgraph_redirect_edge_callee.
24957 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
24958 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
24959
24960 2014-04-04 Jeff Law <law@redhat.com>
24961
24962 PR target/60657
24963 * config/arm/predicates.md (const_int_I_operand): New predicate.
24964 (const_int_M_operand): Similarly.
24965 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
24966 const_int_operand.
24967 (insv_t2, extv_reg, extzv_t2): Likewise.
24968 (load_multiple_with_writeback): Similarly for const_int_I_operand.
24969 (pop_multiple_with_writeback_and_return): Likewise.
24970 (vfp_pop_multiple_with_writeback): Likewise
24971
24972 2014-04-04 Richard Biener <rguenther@suse.de>
24973
24974 PR ipa/60746
24975 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
24976 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
24977 non-GIMPLE_LABELs.
24978 * gimplify.h (gimple_add_tmp_var_fn): Declare.
24979 * gimplify.c (gimple_add_tmp_var_fn): New function.
24980 * gimple-expr.h (create_tmp_reg_fn): Declare.
24981 * gimple-expr.c (create_tmp_reg_fn): New function.
24982 * gimple-low.c (record_vars_into): Don't change cfun.
24983 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
24984 code generation without cfun.
24985
24986 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
24987
24988 PR bootstrap/60719
24989 * Makefile.in (install-driver): Fix shell scripting.
24990
24991 2014-04-03 Cong Hou <congh@google.com>
24992
24993 PR tree-optimization/60505
24994 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
24995 threshold of number of iterations below which no vectorization
24996 will be done.
24997 * tree-vect-loop.c (new_loop_vec_info):
24998 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
24999 * tree-vect-loop.c (vect_analyze_loop_operations):
25000 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
25001 * tree-vect-loop.c (vect_transform_loop):
25002 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
25003 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
25004 of iterations of the loop and see if we should build the epilogue.
25005
25006 2014-04-03 Richard Biener <rguenther@suse.de>
25007
25008 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
25009 (streamer_tree_cache_create): Adjust.
25010 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
25011 to allow optional nodes array.
25012 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
25013 (streamer_tree_cache_append): Likewise.
25014 (streamer_tree_cache_create): Create nodes array optionally
25015 as specified by parameter.
25016 * lto-streamer-out.c (create_output_block): Avoid maintaining
25017 the node array in the writer cache.
25018 (DFS_write_tree): Remove assertion.
25019 (produce_asm_for_decls): Free the out decl state hash table early.
25020 * lto-streamer-in.c (lto_data_in_create): Adjust for
25021 streamer_tree_cache_create prototype change.
25022
25023 2014-04-03 Richard Biener <rguenther@suse.de>
25024
25025 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
25026 set TREE_CHAIN to NULL_TREE.
25027
25028 2014-04-03 Richard Biener <rguenther@suse.de>
25029
25030 PR tree-optimization/60740
25031 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
25032 over all GIMPLE_COND operands.
25033
25034 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
25035
25036 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
25037 (Weffc++): Remove Scott's numbering, merge lists and reference
25038 Wnon-virtual-dtor.
25039
25040 2014-04-03 Nick Clifton <nickc@redhat.com>
25041
25042 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
25043 properly.
25044
25045 2014-04-03 Martin Jambor <mjambor@suse.cz>
25046
25047 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
25048 mention gcc_unreachable before failing.
25049 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
25050 removed symbols.
25051
25052 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
25053
25054 PR ipa/60659
25055 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
25056 inconsistent code and instead mark the context inconsistent.
25057 (possible_polymorphic_call_targets): For inconsistent contexts
25058 return empty complete list.
25059
25060 2014-04-02 Anthony Green <green@moxielogic.com>
25061
25062 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
25063 (extendqisi2, extendhisi2): Define.
25064 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
25065 (WCHAR_TYPE): Change to unsigned int.
25066
25067 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25068
25069 PR tree-optimization/60733
25070 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
25071 insertion point for PHI candidates to be the end of the feeding
25072 block for the PHI argument.
25073
25074 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
25075
25076 PR rtl-optimization/60650
25077 * lra-constraints.c (process_alt_operands): Decrease reject for
25078 earlyclobber matching.
25079
25080 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25081
25082 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
25083
25084 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25085
25086 * config/spu/spu.c (pad_bb): Do not crash when the last
25087 insn is CODE_FOR_blockage.
25088
25089 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25090
25091 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
25092 lies outside the target mode.
25093
25094 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
25095
25096 PR target/60735
25097 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
25098 software floating point or no floating point registers, do not
25099 allow any type in the FPRs. Eliminate a test for SPE SIMD types
25100 in GPRs that occurs after we tested for GPRs that would never be
25101 true.
25102
25103 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
25104 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
25105 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
25106 specifically allow DDmode, since that does not use the SPE SIMD
25107 instructions.
25108
25109 2014-04-02 Richard Biener <rguenther@suse.de>
25110
25111 PR middle-end/60729
25112 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
25113 MODE_INTs. Properly use negv_optab.
25114 (expand_abs): Likewise.
25115
25116 2014-04-02 Richard Biener <rguenther@suse.de>
25117
25118 PR bootstrap/60719
25119 * Makefile.in (install-driver): Guard extra installs with special
25120 names properly.
25121
25122 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
25123
25124 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25125 Document vec_vgbbd.
25126
25127 2014-04-01 Richard Henderson <rth@redhat.com>
25128
25129 PR target/60704
25130 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
25131 alternative enabled before register allocation.
25132
25133 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
25134
25135 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
25136 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
25137 typo.
25138 (nios2_large_got_address): Remove unneeded 'sym' parameter.
25139 (nios2_got_address): Update nios2_large_got_address call site.
25140 (nios2_delegitimize_address): New function.
25141 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
25142 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
25143 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
25144
25145 2014-04-01 Martin Husemann <martin@duskware.de>
25146
25147 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
25148 for -mabi=32.
25149
25150 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
25151
25152 PR rtl-optimization/60604
25153 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
25154 check from register_operand.
25155 (register_operand): Redefine in terms of general_operand.
25156 (nonmemory_operand): Use register_operand for the non-constant cases.
25157
25158 2014-04-01 Richard Biener <rguenther@suse.de>
25159
25160 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
25161
25162 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
25163
25164 * doc/invoke.texi (mapp-regs): Clarify.
25165
25166 2014-03-31 Ulrich Drepper <drepper@gmail.com>
25167
25168 * config/i386/avx512fintrin.h (__v32hi): Define type.
25169 (__v64qi): Likewise.
25170 (_mm512_set1_epi8): Define.
25171 (_mm512_set1_epi16): Define.
25172 (_mm512_set4_epi32): Define.
25173 (_mm512_set4_epi64): Define.
25174 (_mm512_set4_pd): Define.
25175 (_mm512_set4_ps): Define.
25176 (_mm512_setr4_epi64): Define.
25177 (_mm512_setr4_epi32): Define.
25178 (_mm512_setr4_pd): Define.
25179 (_mm512_setr4_ps): Define.
25180 (_mm512_setzero_epi32): Define.
25181
25182 2014-03-31 Martin Jambor <mjambor@suse.cz>
25183
25184 PR middle-end/60647
25185 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
25186 callsite_arguments_match_p. Updated all callers. Also check types of
25187 corresponding formal parameters and actual arguments.
25188 (not_all_callers_have_enough_arguments_p) Renamed to
25189 some_callers_have_mismatched_arguments_p.
25190
25191 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
25192
25193 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
25194
25195 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
25196
25197 PR target/60034
25198 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
25199 section anchor.
25200
25201 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
25202
25203 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
25204 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
25205 Split out
25206 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
25207 Use FMAMODE_NOVF512 mode iterator.
25208 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
25209 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
25210 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
25211 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
25212 Split out
25213 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
25214 Use VF_128_256 mode iterator.
25215 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
25216 Ditto.
25217
25218 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
25219
25220 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
25221 static chain if needed.
25222
25223 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
25224
25225 PR target/60697
25226 * lra-constraints.c (index_part_to_reg): New.
25227 (process_address): Use it.
25228
25229 2014-03-27 Jeff Law <law@redhat.com>
25230 Jakub Jelinek <jakub@redhat.com>
25231
25232 PR target/60648
25233 * expr.c (do_tablejump): Use simplify_gen_binary rather than
25234 gen_rtx_{PLUS,MULT} to build up the address expression.
25235
25236 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
25237 creating non-canonical RTL.
25238
25239 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
25240
25241 PR ipa/60243
25242 * ipa-inline.c (want_inline_small_function_p): Short circuit large
25243 functions; reorganize to make cheap checks first.
25244 (inline_small_functions): Do not estimate growth when dumping;
25245 it is expensive.
25246 * ipa-inline.h (inline_summary): Add min_size.
25247 (growth_likely_positive): New function.
25248 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
25249 (set_cond_stmt_execution_predicate): Cleanup.
25250 (estimate_edge_size_and_time): Compute min_size.
25251 (estimate_calls_size_and_time): Likewise.
25252 (estimate_node_size_and_time): Likewise.
25253 (inline_update_overall_summary): Update min_size.
25254 (do_estimate_edge_time): Likewise.
25255 (do_estimate_edge_size): Update.
25256 (do_estimate_edge_hints): Update.
25257 (growth_likely_positive): New function.
25258
25259 2014-03-28 Jakub Jelinek <jakub@redhat.com>
25260
25261 PR target/60693
25262 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
25263 also if addr has VOIDmode.
25264
25265 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25266
25267 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
25268 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
25269 Declare extern.
25270 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
25271 instructions as well as AdvancedSIMD loads.
25272
25273 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25274
25275 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
25276 Use crypto_aese type.
25277 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
25278 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
25279 crypto_aese, crypto_aesmc. Move to types.md.
25280 * config/arm/types.md (crypto_aes): Split into crypto_aese,
25281 crypto_aesmc.
25282 * config/arm/iterators.md (crypto_type): Likewise.
25283
25284 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
25285
25286 * cgraph.c: Include expr.h and tree-dfa.h.
25287 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
25288 remove LHS.
25289
25290 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
25291
25292 PR target/60675
25293 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
25294 regs from checking multi-reg pseudos.
25295
25296 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25297
25298 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
25299
25300 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25301
25302 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
25303 if it would clobber the stack pointer, even temporarily.
25304
25305 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
25306
25307 * mode-switching.c: Make small adjustments to the top comment.
25308
25309 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
25310
25311 * config/rs6000/constraints.md (wD constraint): New constraint to
25312 match the constant integer to get the top DImode/DFmode out of a
25313 vector in a VSX register.
25314
25315 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
25316 match the constant integer to get the top DImode/DFmode out of a
25317 vector in a VSX register.
25318
25319 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
25320 for ISA 2.07.
25321
25322 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25323 vbpermq builtins.
25324
25325 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
25326 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
25327
25328 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
25329 Optimize vec_extract of 64-bit values, where the value being
25330 extracted is in the top word, where we can use scalar
25331 instructions. Add direct move and store support. Combine the big
25332 endian/little endian vector select load support into a single insn.
25333 (vsx_extract_<mode>_internal1): Likewise.
25334 (vsx_extract_<mode>_internal2): Likewise.
25335 (vsx_extract_<mode>_load): Likewise.
25336 (vsx_extract_<mode>_store): Likewise.
25337 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
25338 combined into vsx_extract_<mode>_load.
25339 (vsx_extract_<mode>_one_le): Likewise.
25340
25341 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
25342 define the top 64-bit vector element.
25343
25344 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
25345 constraint.
25346
25347 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25348 Document vec_vbpermq builtin.
25349
25350 PR target/60672
25351 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
25352 enable use of xxsldwi and xxpermdi builtin functions.
25353 (vec_xxpermdi): Likewise.
25354
25355 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25356 Document use of vec_xxsldwi and vec_xxpermdi builtins.
25357
25358 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
25359
25360 PR rtl-optimization/60650
25361 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
25362 first_p. Use it.
25363 (find_spills_for): New.
25364 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
25365 Spill all pseudos on the second iteration.
25366
25367 2014-03-27 Marek Polacek <polacek@redhat.com>
25368
25369 PR c/50347
25370 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
25371 types.
25372
25373 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25374
25375 * config/s390/s390.c (s390_can_use_return_insn): Check for
25376 call-saved FPRs on 31 bit.
25377
25378 2014-03-27 Jakub Jelinek <jakub@redhat.com>
25379
25380 PR middle-end/60682
25381 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
25382 if they need regimplification, just drop them instead of
25383 calling gimple_regimplify_operands on them.
25384
25385 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
25386
25387 PR target/60580
25388 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
25389 (aarch64_frame_pointer_required): Adjust logic.
25390 (aarch64_can_eliminate): Adjust logic.
25391 (aarch64_override_options_after_change): Adjust logic.
25392
25393 2014-03-27 Dehao Chen <dehao@google.com>
25394
25395 * ipa-inline.c (early_inliner): Update node's inline info.
25396
25397 2014-03-26 Dehao Chen <dehao@google.com>
25398
25399 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
25400 compiler inserted conditional jumps for NAN float check.
25401
25402 2014-03-26 Jakub Jelinek <jakub@redhat.com>
25403
25404 * ubsan.h (ubsan_create_data): Change second argument's type
25405 to const location_t *.
25406 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
25407 _("<unknown>").
25408 (ubsan_create_data): Change second argument to const location_t *PLOC.
25409 Create Loc field whenever PLOC is non-NULL.
25410 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
25411 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
25412 callers.
25413
25414 PR other/59545
25415 * real.c (real_to_integer2): Change type of low to UHWI.
25416
25417 2014-03-26 Tobias Burnus <burnus@net-b.de>
25418
25419 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
25420 (CILK_SELF_SPECS): New define.
25421 (driver_self_specs): Use it.
25422
25423 2014-03-26 Richard Biener <rguenther@suse.de>
25424
25425 * tree-pretty-print.c (percent_K_format): Implement special
25426 case for LTO and its stripped down BLOCK tree.
25427
25428 2014-03-26 Jakub Jelinek <jakub@redhat.com>
25429
25430 PR sanitizer/60636
25431 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
25432
25433 * tree-vrp.c (simplify_internal_call_using_ranges): If only
25434 one range is range_int_cst_p, but not both, at least optimize
25435 addition/subtraction of 0 and multiplication by 0 or 1.
25436 * gimple-fold.c (gimple_fold_call): Fold
25437 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
25438 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
25439 INTEGER_CSTs, try to fold at least x * 0 and y - y.
25440
25441 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
25442
25443 PR rtl-optimization/60452
25444 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
25445 <case REG>: Return 1 for invalid offsets from the frame pointer.
25446
25447 2014-03-26 Marek Polacek <polacek@redhat.com>
25448
25449 PR c/37428
25450 * doc/extend.texi (C Extensions): Mention variable-length arrays in
25451 a structure/union.
25452
25453 2014-03-26 Marek Polacek <polacek@redhat.com>
25454
25455 PR c/39525
25456 * doc/extend.texi (Designated Inits): Describe what happens to omitted
25457 field members.
25458
25459 2014-03-26 Marek Polacek <polacek@redhat.com>
25460
25461 PR other/59545
25462 * ira-color.c (update_conflict_hard_regno_costs): Perform the
25463 multiplication in unsigned type.
25464
25465 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
25466
25467 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
25468
25469 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
25470
25471 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
25472
25473 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
25474
25475 PR ipa/60315
25476 * cif-code.def (UNREACHABLE) New code.
25477 * ipa-inline.c (inline_small_functions): Skip edges to
25478 __builtlin_unreachable.
25479 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
25480 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
25481 predicate to __bulitin_unreachable.
25482 (set_cond_stmt_execution_predicate): Fix issue when
25483 invert_tree_comparison returns ERROR_MARK.
25484 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
25485 propagate to inline clones.
25486 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
25487 to unreachable.
25488 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
25489 * cgraphclones.c (cgraph_clone_node): If call destination is already
25490 ureachable, do not redirect it back.
25491 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
25492 unreachable.
25493
25494 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
25495
25496 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
25497 Do not modify inline clones.
25498
25499 2014-03-25 Jakub Jelinek <jakub@redhat.com>
25500
25501 * config/i386/i386.md (general_sext_operand): New mode attr.
25502 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
25503 don't generate (sign_extend (const_int)).
25504 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
25505 operands[2]. Use We constraint instead of <i> and
25506 <general_sext_operand> predicate instead of <general_operand>.
25507 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
25508 * config/i386/constraints.md (We): New constraint.
25509 * config/i386/predicates.md (x86_64_sext_operand,
25510 sext_operand): New predicates.
25511
25512 2014-03-25 Martin Jambor <mjambor@suse.cz>
25513
25514 PR ipa/60600
25515 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
25516 inconsistent devirtualizations to __builtin_unreachable.
25517
25518 2014-03-25 Marek Polacek <polacek@redhat.com>
25519
25520 PR c/35449
25521 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
25522
25523 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
25524
25525 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
25526 order of elements for big-endian.
25527
25528 2014-03-25 Richard Biener <rguenther@suse.de>
25529
25530 PR middle-end/60635
25531 * gimplify-me.c (gimple_regimplify_operands): Update the
25532 re-gimplifed stmt.
25533
25534 2014-03-25 Martin Jambor <mjambor@suse.cz>
25535
25536 PR ipa/59176
25537 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
25538 (lto_output_varpool_node): Likewise.
25539 (input_overwrite_node): Likewise.
25540 (input_varpool_node): Likewise.
25541
25542 2014-03-25 Richard Biener <rguenther@suse.de>
25543
25544 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
25545 (run_gcc): Likewise.
25546
25547 2014-03-25 Jakub Jelinek <jakub@redhat.com>
25548
25549 * combine.c (simplify_compare_const): Add MODE argument.
25550 Handle mode_width 0 as very large mode_width.
25551 (try_combine, simplify_comparison): Adjust callers.
25552
25553 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
25554 type to avoid signed integer overflow.
25555 * explow.c (plus_constant): Likewise.
25556
25557 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
25558
25559 * doc/generic.texi: Correct typos.
25560
25561 2014-03-24 Tobias Burnus <burnus@net-b.de>
25562
25563 * doc/invoke.texi (-flto): Expand section about
25564 using static libraries with LTO.
25565
25566 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25567
25568 PR rtl-optimization/60501
25569 * optabs.def (addptr3_optab): New optab.
25570 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
25571 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
25572 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
25573
25574 * lra.c (emit_add3_insn): Use the addptr pattern if available.
25575
25576 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
25577
25578 2014-03-24 Ulrich Drepper <drepper@gmail.com>
25579
25580 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
25581 _mm512_set1_pd.
25582
25583 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
25584 (_mm256_undefined_ps): Define.
25585 (_mm256_undefined_pd): Define.
25586 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
25587 (_mm_undefined_pd): Define.
25588 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
25589 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
25590 (_mm512_undefined_ps): Define.
25591 (_mm512_undefined_pd): Define.
25592 Use _mm*_undefined_*.
25593 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
25594
25595 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
25596
25597 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
25598 (lshr_simd): DI mode added.
25599 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
25600 (aarch64_ushr_simddi): Likewise.
25601 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
25602 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
25603 (vshrd_n_u64): Likewise.
25604
25605 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25606
25607 * Makefile.in (s-macro_list): Depend on cc1.
25608
25609 2014-03-23 Teresa Johnson <tejohnson@google.com>
25610
25611 * ipa-utils.c (ipa_print_order): Use specified dump file.
25612
25613 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
25614
25615 PR rtl-optimization/60601
25616 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
25617
25618 * gcc.c (eval_spec_function): Initialize save_growing_value.
25619
25620 2014-03-22 Jakub Jelinek <jakub@redhat.com>
25621
25622 PR sanitizer/60613
25623 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
25624 code == MINUS_EXPR, never swap op0 with op1.
25625
25626 * toplev.c (init_local_tick): Avoid signed integer multiplication
25627 overflow.
25628 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
25629 shift by first operand's bitsize.
25630
25631 2014-03-21 Jakub Jelinek <jakub@redhat.com>
25632
25633 PR target/60610
25634 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
25635 redefine to 1 or 0.
25636 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
25637 TARGET_ISA_64BIT_P(x).
25638
25639 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25640
25641 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
25642 pattern for vector nor instead of subtract from splat(-1).
25643 (altivec_expand_vec_perm_const_le): Likewise.
25644
25645 2014-03-21 Richard Henderson <rth@twiddle.net>
25646
25647 PR target/60598
25648 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
25649 related insns after epilogue_completed.
25650
25651 2014-03-21 Martin Jambor <mjambor@suse.cz>
25652
25653 PR ipa/59176
25654 * cgraph.h (symtab_node): New flag body_removed.
25655 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
25656 when removing bodies.
25657 * symtab.c (dump_symtab_base): Dump body_removed flag.
25658 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
25659 had their bodies removed.
25660
25661 2014-03-21 Martin Jambor <mjambor@suse.cz>
25662
25663 PR ipa/60419
25664 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
25665 in the border.
25666
25667 2014-03-21 Richard Biener <rguenther@suse.de>
25668
25669 PR tree-optimization/60577
25670 * tree-core.h (struct tree_base): Document nothrow_flag use
25671 in DECL_NONALIASED.
25672 * tree.h (DECL_NONALIASED): New.
25673 (may_be_aliased): Adjust.
25674 * coverage.c (build_var): Set DECL_NONALIASED.
25675
25676 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25677
25678 * expr.c (expand_expr_real_1): Remove outdated comment.
25679
25680 2014-03-20 Jakub Jelinek <jakub@redhat.com>
25681
25682 PR middle-end/60597
25683 * ira.c (adjust_cleared_regs): Call copy_rtx on
25684 *reg_equiv[REGNO (loc)].src_p before passing it to
25685 simplify_replace_fn_rtx.
25686
25687 PR target/60568
25688 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
25689 into CONST, put pic register as first operand of PLUS. Use
25690 gen_const_mem for both 32-bit and 64-bit PIC got loads.
25691
25692 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25693
25694 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
25695
25696 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25697
25698 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
25699 around for store forwarding issue in the FPU on the UT699.
25700 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
25701 loads and operations if -mfix-ut699 is specified.
25702 (divtf3_hq): Tweak attribute.
25703 (sqrttf2_hq): Likewise.
25704
25705 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25706
25707 * calls.c (store_one_arg): Remove incorrect const qualification on the
25708 type of the temporary.
25709 * cfgexpand.c (expand_return): Likewise.
25710 * expr.c (expand_constructor): Likewise.
25711 (expand_expr_real_1): Likewise.
25712
25713 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25714
25715 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
25716 of parts.
25717
25718 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
25719
25720 PR target/60039
25721 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
25722
25723 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
25724
25725 * config/arm/aarch-common-protos.h
25726 (alu_cost_table): Fix spelling of "extend".
25727 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
25728
25729 2014-03-19 Richard Biener <rguenther@suse.de>
25730
25731 PR middle-end/60553
25732 * tree-core.h (tree_type_common): Re-order pointer members
25733 to reduce recursion depth during GC walks.
25734
25735 2014-03-19 Marek Polacek <polacek@redhat.com>
25736
25737 PR sanitizer/60569
25738 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
25739 before accessing it.
25740
25741 2014-03-19 Richard Biener <rguenther@suse.de>
25742
25743 PR lto/59543
25744 * lto-streamer-in.c (input_function): In WPA stage do not drop
25745 debug stmts.
25746
25747 2014-03-19 Jakub Jelinek <jakub@redhat.com>
25748
25749 PR tree-optimization/60559
25750 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
25751 with build_zero_cst assignment.
25752
25753 2014-03-18 Kai Tietz <ktietz@redhat.com>
25754
25755 PR rtl-optimization/56356
25756 * sdbout.c (sdbout_parms): Verify that parms'
25757 incoming argument is valid.
25758 (sdbout_reg_parms): Likewise.
25759
25760 2014-03-18 Richard Henderson <rth@redhat.com>
25761
25762 PR target/60562
25763 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
25764 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
25765 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
25766
25767 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
25768
25769 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
25770 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
25771 Italicize plugin event names in description. Explain that
25772 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
25773 Remind that no GCC functions should be called after PLUGIN_FINISH.
25774 Explain what pragmas with expansion are.
25775
25776 2014-03-18 Martin Liska <mliska@suse.cz>
25777
25778 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
25779 gimple call statement is update.
25780 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
25781 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
25782
25783 2014-03-18 Jakub Jelinek <jakub@redhat.com>
25784
25785 PR sanitizer/60557
25786 * ubsan.c (ubsan_instrument_unreachable): Call
25787 initialize_sanitizer_builtins.
25788 (ubsan_pass): Likewise.
25789
25790 PR sanitizer/60535
25791 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
25792 varpool_finalize_decl instead of rest_of_decl_compilation.
25793
25794 2014-03-18 Richard Biener <rguenther@suse.de>
25795
25796 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
25797 by using bitmap_and_compl instead of bitmap_and_compl_into.
25798 (df_rd_transfer_function): Likewise.
25799
25800 2014-03-18 Richard Biener <rguenther@suse.de>
25801
25802 * doc/lto.texi (fresolution): Fix typo.
25803
25804 2014-03-18 Richard Biener <rguenther@suse.de>
25805
25806 * doc/invoke.texi (flto): Update for changes in 4.9.
25807
25808 2014-03-18 Richard Biener <rguenther@suse.de>
25809
25810 * doc/loop.texi: Remove section on the removed lambda framework.
25811 Update loop docs with recent changes in preserving loop structure.
25812
25813 2014-03-18 Richard Biener <rguenther@suse.de>
25814
25815 * doc/lto.texi (-fresolution): Document.
25816
25817 2014-03-18 Richard Biener <rguenther@suse.de>
25818
25819 * doc/contrib.texi: Adjust my name.
25820
25821 2014-03-18 Jakub Jelinek <jakub@redhat.com>
25822
25823 PR ipa/58721
25824 * internal-fn.c: Include diagnostic-core.h.
25825 (expand_BUILTIN_EXPECT): New function.
25826 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
25827 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
25828 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
25829 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
25830 IFN_BUILTIN_EXPECT.
25831 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
25832 Revert 3 argument __builtin_expect code.
25833 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
25834 * gimple-fold.c (gimple_fold_call): Likewise.
25835 * tree.h (fold_builtin_expect): New prototype.
25836 * builtins.c (build_builtin_expect_predicate): Add predictor
25837 argument, if non-NULL, create 3 argument __builtin_expect.
25838 (fold_builtin_expect): No longer static. Add ARG2 argument,
25839 pass it through to build_builtin_expect_predicate.
25840 (fold_builtin_2): Adjust caller.
25841 (fold_builtin_3): Handle BUILT_IN_EXPECT.
25842 * internal-fn.def (BUILTIN_EXPECT): New.
25843
25844 2014-03-18 Tobias Burnus <burnus@net-b.de>
25845
25846 PR ipa/58721
25847 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
25848 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
25849 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
25850
25851 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
25852
25853 PR ipa/58721
25854 * predict.c (combine_predictions_for_bb): Fix up formatting.
25855 (expr_expected_value_1, expr_expected_value): Add predictor argument,
25856 fill what it points to if non-NULL.
25857 (tree_predict_by_opcode): Adjust caller, use the predictor.
25858 * predict.def (PRED_COMPARE_AND_SWAP): Add.
25859
25860 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
25861
25862 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
25863 proper constant for the store mode.
25864
25865 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
25866
25867 * symtab.c (change_decl_assembler_name): Fix transparent alias
25868 chain construction.
25869
25870 2014-03-16 Renlin Li <Renlin.Li@arm.com>
25871
25872 * config/aarch64/aarch64.c: Correct the comments about the
25873 aarch64 stack layout.
25874
25875 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
25876
25877 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
25878 check for GF_OMP_FOR_KIND_FOR.
25879
25880 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
25881
25882 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
25883 ymm and zmm register names.
25884
25885 2014-03-17 Jakub Jelinek <jakub@redhat.com>
25886
25887 PR target/60516
25888 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
25889 note creation for the 2010-08-31 changes.
25890
25891 2014-03-17 Marek Polacek <polacek@redhat.com>
25892
25893 PR middle-end/60534
25894 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
25895 as -fno-tree-loop-vectorize.
25896 (expand_omp_simd): Likewise.
25897
25898 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
25899
25900 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
25901 (eligible_for_call_delay): New prototype.
25902 * config/sparc/sparc.c (tls_call_delay): Rename into...
25903 (eligible_for_call_delay): ...this. Return false if the instruction
25904 cannot be put in the delay slot of a branch.
25905 (eligible_for_restore_insn): Simplify.
25906 (eligible_for_return_delay): Return false if the instruction cannot be
25907 put in the delay slot of a branch and simplify.
25908 (eligible_for_sibcall_delay): Return false if the instruction cannot be
25909 put in the delay slot of a branch.
25910 * config/sparc/sparc.md (fix_ut699): New attribute.
25911 (tls_call_delay): Delete.
25912 (in_call_delay): Reimplement.
25913 (eligible_for_sibcall_delay): Rename into...
25914 (in_sibcall_delay): ...this.
25915 (eligible_for_return_delay): Rename into...
25916 (in_return_delay): ...this.
25917 (in_branch_delay): Reimplement.
25918 (in_uncond_branch_delay): Delete.
25919 (in_annul_branch_delay): Delete.
25920
25921 2014-03-14 Richard Henderson <rth@redhat.com>
25922
25923 PR target/60525
25924 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
25925 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
25926 (*floathi<X87MODEF>2_i387_with_temp): Remove.
25927 (floathi splitters): Remove.
25928 (float<SWI48x>xf2): New pattern.
25929 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
25930 code that tried to handle DImode for 32-bit, but which was excluded
25931 by the pattern's condition. Drop allocation of stack temporary.
25932 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
25933 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
25934 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
25935 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
25936 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
25937 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
25938 (*float<SWI48><MODEF>2_sse_interunit): Remove.
25939 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
25940 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
25941 (*float<SWI48x><X87MODEF>2_i387): Remove.
25942 (all float _with_temp splitters): Remove.
25943 (*float<SWI48x><MODEF>2_i387): New pattern.
25944 (*float<SWI48><MODEF>2_sse): New pattern.
25945 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
25946 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
25947
25948 2014-03-14 Jakub Jelinek <jakub@redhat.com>
25949 Marek Polacek <polacek@redhat.com>
25950
25951 PR middle-end/60484
25952 * common.opt (dump_base_name_prefixed): New Variable.
25953 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
25954 if x_dump_base_name_prefixed is already set, set it at the end.
25955
25956 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
25957
25958 PR rtl-optimization/60508
25959 * lra-constraints.c (get_reload_reg): Add new parameter
25960 in_subreg_p.
25961 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
25962 Pass the new parameter values.
25963
25964 2014-03-14 Richard Biener <rguenther@suse.de>
25965
25966 * common.opt: Revert unintented changes from r205065.
25967 * opts.c: Likewise.
25968
25969 2014-03-14 Richard Biener <rguenther@suse.de>
25970
25971 PR middle-end/60518
25972 * cfghooks.c (split_block): Properly adjust all loops the
25973 block was a latch of.
25974
25975 2014-03-14 Martin Jambor <mjambor@suse.cz>
25976
25977 PR lto/60461
25978 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
25979 and simplify it.
25980
25981 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
25982
25983 PR target/59396
25984 * config/avr/avr.c (avr_set_current_function): Pass function name
25985 through default_strip_name_encoding before sanity checking instead
25986 of skipping the first char of the assembler name.
25987
25988 2014-03-13 Richard Henderson <rth@redhat.com>
25989
25990 PR debug/60438
25991 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
25992 (ix86_force_to_memory, ix86_free_from_memory): Remove.
25993 * config/i386/i386-protos.h: Likewise.
25994 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
25995 in the expander instead of a splitter.
25996 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
25997 any possibility of requiring a memory.
25998 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
25999 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
26000 (fp branch splitters): Update for ix86_split_fp_branch.
26001 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
26002 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
26003 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
26004 (*fop_<MODEF>_2_i387): Remove f/r alternative.
26005 (*fop_<MODEF>_3_i387): Likewise.
26006 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
26007 (splitters for the fop_* register patterns): Remove.
26008 (fscalexf4_i387): Rename from *fscalexf4_i387.
26009 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
26010
26011 2014-03-13 Jakub Jelinek <jakub@redhat.com>
26012
26013 PR tree-optimization/59779
26014 * tree-dfa.c (get_ref_base_and_extent): Use double_int
26015 type for bitsize and maxsize instead of HOST_WIDE_INT.
26016
26017 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
26018
26019 PR rtl-optimization/57320
26020 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
26021 the CFG after thread_prologue_and_epilogue_insns.
26022
26023 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
26024
26025 PR rtl-optimization/57189
26026 * lra-constraints.c (process_alt_operands): Disfavor spilling
26027 vector pseudos.
26028
26029 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
26030
26031 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
26032
26033 2014-03-13 Jakub Jelinek <jakub@redhat.com>
26034
26035 PR tree-optimization/59025
26036 PR middle-end/60418
26037 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
26038 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
26039
26040 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
26041
26042 PR target/60486
26043 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
26044 calls of avr_out_plus_1.
26045
26046 2014-03-13 Bin Cheng <bin.cheng@arm.com>
26047
26048 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
26049 BB's single pred and update the father loop's latch info later.
26050
26051 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
26052
26053 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
26054 (VEC_M): Likewise.
26055 (VEC_N): Likewise.
26056 (VEC_R): Likewise.
26057 (VEC_base): Likewise.
26058 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
26059 registers, we need to swap double words in little endian mode.
26060
26061 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
26062 to be a container mode for 128-bit integer operations added in ISA
26063 2.07. Unlike TImode and PTImode, the preferred register set is
26064 the Altivec/VMX registers for the 128-bit operations.
26065
26066 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
26067 declarations.
26068 (rs6000_split_128bit_ok_p): Likewise.
26069
26070 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
26071 macros for creating ISA 2.07 normal and overloaded builtin
26072 functions with 3 arguments.
26073 (BU_P8V_OVERLOAD_3): Likewise.
26074 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
26075 for use as overloaded functions.
26076 (VPERM_1TI_UNS): Likewise.
26077 (VSEL_1TI): Likewise.
26078 (VSEL_1TI_UNS): Likewise.
26079 (ST_INTERNAL_1ti): Likewise.
26080 (LD_INTERNAL_1ti): Likewise.
26081 (XXSEL_1TI): Likewise.
26082 (XXSEL_1TI_UNS): Likewise.
26083 (VPERM_1TI): Likewise.
26084 (VPERM_1TI_UNS): Likewise.
26085 (XXPERMDI_1TI): Likewise.
26086 (SET_1TI): Likewise.
26087 (LXVD2X_V1TI): Likewise.
26088 (STXVD2X_V1TI): Likewise.
26089 (VEC_INIT_V1TI): Likewise.
26090 (VEC_SET_V1TI): Likewise.
26091 (VEC_EXT_V1TI): Likewise.
26092 (EQV_V1TI): Likewise.
26093 (NAND_V1TI): Likewise.
26094 (ORC_V1TI): Likewise.
26095 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
26096 added in ISA 2.07. Add both normal 'altivec' builtins, and the
26097 overloaded builtin.
26098 (VADDUQM): Likewise.
26099 (VSUBCUQ): Likewise.
26100 (VADDEUQM): Likewise.
26101 (VADDECUQ): Likewise.
26102 (VSUBEUQM): Likewise.
26103 (VSUBECUQ): Likewise.
26104
26105 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
26106 __int128_t and __uint128_t types.
26107 (__uint128_type): Likewise.
26108 (altivec_categorize_keyword): Add support for vector __int128_t,
26109 vector __uint128_t, vector __int128, and vector unsigned __int128
26110 as a container type for TImode operations that need to be done in
26111 VSX/Altivec registers.
26112 (rs6000_macro_to_expand): Likewise.
26113 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
26114 to support 128-bit integer instructions vaddcuq, vadduqm,
26115 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
26116 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
26117
26118 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
26119 for V1TImode, and set up preferences to use VSX/Altivec registers.
26120 Setup VSX reload handlers.
26121 (rs6000_debug_reg_global): Likewise.
26122 (rs6000_init_hard_regno_mode_ok): Likewise.
26123 (rs6000_preferred_simd_mode): Likewise.
26124 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
26125 (easy_altivec_constant): Likewise.
26126 (output_vec_const_move): Likewise.
26127 (rs6000_expand_vector_set): Convert V1TImode set and extract to
26128 simple move.
26129 (rs6000_expand_vector_extract): Likewise.
26130 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
26131 addressing.
26132 (rs6000_const_vec): Add support for V1TImode.
26133 (rs6000_emit_le_vsx_load): Swap double words when loading or
26134 storing TImode/V1TImode.
26135 (rs6000_emit_le_vsx_store): Likewise.
26136 (rs6000_emit_le_vsx_move): Likewise.
26137 (rs6000_emit_move): Add support for V1TImode.
26138 (altivec_expand_ld_builtin): Likewise.
26139 (altivec_expand_st_builtin): Likewise.
26140 (altivec_expand_vec_init_builtin): Likewise.
26141 (altivec_expand_builtin): Likewise.
26142 (rs6000_init_builtins): Add support for V1TImode type. Add
26143 support for ISA 2.07 128-bit integer builtins. Define type names
26144 for the VSX/Altivec vector types.
26145 (altivec_init_builtins): Add support for overloaded vector
26146 functions with V1TImode type.
26147 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
26148 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
26149 external function.
26150 (rs6000_split_128bit_ok_p): Likewise.
26151 (rs6000_handle_altivec_attribute): Create V1TImode from vector
26152 __int128_t and vector __uint128_t.
26153
26154 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
26155 and mode attributes.
26156 (VSX_M): Likewise.
26157 (VSX_M2): Likewise.
26158 (VSm): Likewise.
26159 (VSs): Likewise.
26160 (VSr): Likewise.
26161 (VSv): Likewise.
26162 (VS_scalar): Likewise.
26163 (VS_double): Likewise.
26164 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
26165
26166 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
26167 we support the ISA 2.07 128-bit integer arithmetic instructions.
26168 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
26169 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
26170 and TImode types for use with the builtin functions.
26171 (V1TI_type_node): Likewise.
26172 (unsigned_V1TI_type_node): Likewise.
26173 (intTI_type_internal_node): Likewise.
26174 (uintTI_type_internal_node): Likewise.
26175
26176 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
26177 128-bit builtin functions.
26178 (UNSPEC_VADDEUQM): Likewise.
26179 (UNSPEC_VADDECUQ): Likewise.
26180 (UNSPEC_VSUBCUQ): Likewise.
26181 (UNSPEC_VSUBEUQM): Likewise.
26182 (UNSPEC_VSUBECUQ): Likewise.
26183 (VM): Add V1TImode to vector mode iterators.
26184 (VM2): Likewise.
26185 (VI_unit): Likewise.
26186 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
26187 (altivec_vaddcuq): Likewise.
26188 (altivec_vsubuqm): Likewise.
26189 (altivec_vsubcuq): Likewise.
26190 (altivec_vaddeuqm): Likewise.
26191 (altivec_vaddecuq): Likewise.
26192 (altivec_vsubeuqm): Likewise.
26193 (altivec_vsubecuq): Likewise.
26194
26195 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
26196 mode iterators.
26197 (BOOL_128): Likewise.
26198 (BOOL_REGS_OUTPUT): Likewise.
26199 (BOOL_REGS_OP1): Likewise.
26200 (BOOL_REGS_OP2): Likewise.
26201 (BOOL_REGS_UNARY): Likewise.
26202 (BOOL_REGS_AND_CR0): Likewise.
26203
26204 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
26205 128-bit integer builtin support.
26206 (vec_vadduqm): Likewise.
26207 (vec_vaddecuq): Likewise.
26208 (vec_vaddeuqm): Likewise.
26209 (vec_vsubecuq): Likewise.
26210 (vec_vsubeuqm): Likewise.
26211 (vec_vsubcuq): Likewise.
26212 (vec_vsubuqm): Likewise.
26213
26214 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26215 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
26216 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
26217 128-bit integer add/subtract to ISA 2.07.
26218
26219 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
26220
26221 * config/arc/arc.c (arc_predicate_delay_insns):
26222 Fix third argument passed to conditionalize_nonjump.
26223
26224 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
26225
26226 * config/aarch64/aarch64-builtins.c
26227 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
26228 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
26229 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
26230 instead of __builtin_lfloor.
26231 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
26232
26233 2014-03-12 Jakub Jelinek <jakub@redhat.com>
26234
26235 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
26236 (tree_ssa_ifcombine_bb_1): New function.
26237 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
26238 is an empty forwarder block to then_bb or vice versa and then_bb
26239 and else_bb are effectively swapped.
26240
26241 2014-03-12 Christian Bruel <christian.bruel@st.com>
26242
26243 PR target/60264
26244 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
26245 REG_CFA_DEF_CFA note.
26246 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
26247 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
26248
26249 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
26250
26251 PR tree-optimization/60454
26252 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
26253
26254 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26255
26256 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
26257 Do not define target_cpu_default2 to generic.
26258 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
26259 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
26260 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
26261
26262 2014-03-12 Jakub Jelinek <jakub@redhat.com>
26263 Marc Glisse <marc.glisse@inria.fr>
26264
26265 PR tree-optimization/60502
26266 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
26267 instead of build_low_bits_mask.
26268
26269 2014-03-12 Jakub Jelinek <jakub@redhat.com>
26270
26271 PR middle-end/60482
26272 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
26273 if there are multiple uses, but op doesn't live on E edge.
26274 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
26275 clobber stmts before __builtin_unreachable.
26276
26277 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
26278
26279 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
26280 hard_frame_pointer_rtx.
26281 * cse.c (cse_insn): Remove volatile check.
26282 * cselib.c (cselib_process_insn): Likewise.
26283 * dse.c (scan_insn): Likewise.
26284
26285 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
26286
26287 * config/arc/arc.c (conditionalize_nonjump): New function,
26288 broken out of ...
26289 (arc_ifcvt): ... this.
26290 (arc_predicate_delay_insns): Use it.
26291
26292 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
26293
26294 * config/arc/predicates.md (extend_operand): During/after reload,
26295 allow const_int_operand.
26296 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
26297 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
26298 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
26299 to "i".
26300 (umulsi3_highpart_i): Likewise.
26301
26302 2014-03-11 Richard Biener <rguenther@suse.de>
26303
26304 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
26305 Add asserts to guard possible wrong-code bugs.
26306
26307 2014-03-11 Richard Biener <rguenther@suse.de>
26308
26309 PR tree-optimization/60429
26310 PR tree-optimization/60485
26311 * tree-ssa-structalias.c (set_union_with_increment): Properly
26312 take into account all fields that overlap the shifted vars.
26313 (do_sd_constraint): Likewise.
26314 (do_ds_constraint): Likewise.
26315 (get_constraint_for_ptr_offset): Likewise.
26316
26317 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
26318
26319 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
26320 (nios2_compute_frame_layout):
26321 Add calculation of cfun->machine->fp_save_offset.
26322 (nios2_expand_prologue): Correct setting of frame pointer register
26323 in prologue.
26324 (nios2_expand_epilogue): Update recovery of stack pointer from
26325 frame pointer accordingly.
26326 (nios2_initial_elimination_offset): Update calculation of offset
26327 for eliminating to HARD_FRAME_POINTER_REGNUM.
26328
26329 2014-03-10 Jakub Jelinek <jakub@redhat.com>
26330
26331 PR ipa/60457
26332 * ipa.c (symtab_remove_unreachable_nodes): Don't call
26333 cgraph_get_create_node on VAR_DECLs.
26334
26335 2014-03-10 Richard Biener <rguenther@suse.de>
26336
26337 PR middle-end/60474
26338 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
26339
26340 2014-03-08 Douglas B Rupp <rupp@gnat.com>
26341
26342 * config/vms/vms.opt (vms_float_format): New variable.
26343
26344 2014-03-08 Tobias Burnus <burnus@net-b.de>
26345
26346 * doc/invoke.texi (-fcilkplus): Update implementation status.
26347
26348 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
26349 Richard Biener <rguenther@suse.de>
26350
26351 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
26352 consistently accross all TUs.
26353 (run_gcc): Enable -fshort-double automatically at link at link-time
26354 and disallow override.
26355
26356 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
26357
26358 PR target/58271
26359 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
26360 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
26361 if they can't be used.
26362
26363 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26364
26365 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
26366 for Solaris 11/x86 ld.
26367 * configure: Regenerate.
26368
26369 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26370
26371 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
26372 (LIB_TLS_SPEC): Save as ld_tls_libs.
26373 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
26374 (HAVE_AS_IX86_TLSLDM): New test.
26375 * configure, config.in: Regenerate.
26376 * config/i386/i386.c (legitimize_tls_address): Fall back to
26377 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
26378 cannot support TLS_MODEL_LOCAL_DYNAMIC.
26379 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
26380 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
26381
26382 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
26383
26384 * common.opt (fira-loop-pressure): Mark as optimization.
26385
26386 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
26387
26388 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
26389 an OpenMP mappable type.
26390
26391 2014-03-06 Matthias Klose <doko@ubuntu.com>
26392
26393 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
26394 MULTILIB_OSDIRNAMES is not defined.
26395
26396 2014-03-06 Jakub Jelinek <jakub@redhat.com>
26397 Meador Inge <meadori@codesourcery.com>
26398
26399 PR target/58595
26400 * config/arm/arm.c (arm_tls_symbol_p): Remove.
26401 (arm_legitimize_address): Call legitimize_tls_address for any
26402 arm_tls_referenced_p expression, handle constant addend. Call it
26403 before testing for !TARGET_ARM.
26404 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
26405
26406 2014-03-06 Richard Biener <rguenther@suse.de>
26407
26408 PR middle-end/60445
26409 PR lto/60424
26410 PR lto/60427
26411 Revert
26412 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
26413
26414 * tree-streamer.c (record_common_node): Assert we don't record
26415 nodes with type double.
26416 (preload_common_node): Skip type double, complex double and double
26417 pointer since it is now frontend dependent due to fshort-double option.
26418
26419 2014-03-06 Richard Biener <rguenther@suse.de>
26420
26421 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
26422 or -fno-lto is specified and the linker has full plugin support.
26423 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
26424 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
26425 * lto-wrapper.c (merge_and_complain): Merge compile-time
26426 optimization levels.
26427 (run_gcc): And pass it through to the link options.
26428
26429 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
26430
26431 PR debug/60381
26432 Revert:
26433 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26434 PR debug/59992
26435 * cselib.c (remove_useless_values): Skip to avoid quadratic
26436 behavior if the condition moved from...
26437 (cselib_process_insn): ... here holds.
26438
26439 2014-03-05 Jakub Jelinek <jakub@redhat.com>
26440
26441 PR plugins/59335
26442 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
26443 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
26444
26445 PR plugins/59335
26446 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
26447 (TM_H): Add x86-tune.def.
26448
26449 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26450
26451 * config/aarch64/aarch64.c (generic_tunings):
26452 Use cortexa57_extra_costs.
26453
26454 2014-03-05 Jakub Jelinek <jakub@redhat.com>
26455
26456 PR lto/60404
26457 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
26458 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
26459 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
26460 cost for in_lto_p.
26461
26462 2014-03-04 Heiher <r@hev.cc>
26463
26464 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
26465 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
26466
26467 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
26468
26469 * config/i386/predicates.md (const2356_operand): Change to ...
26470 (const2367_operand): ... this.
26471 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
26472 const2367_operand.
26473 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26474 (*avx512pf_scatterpf<mode>sf): Ditto.
26475 (avx512pf_scatterpf<mode>df): Ditto.
26476 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26477 (*avx512pf_scatterpf<mode>df): Ditto.
26478 * config/i386/i386.c (ix86_expand_builtin): Update
26479 incorrect hint operand error message.
26480
26481 2014-03-04 Richard Biener <rguenther@suse.de>
26482
26483 * lto-section-in.c (lto_get_section_data): Fix const cast.
26484
26485 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
26486
26487 * tree-streamer.c (record_common_node): Assert we don't record
26488 nodes with type double.
26489 (preload_common_node): Skip type double, complex double and double
26490 pointer since it is now frontend dependent due to fshort-double option.
26491
26492 2014-03-04 Richard Biener <rguenther@suse.de>
26493
26494 PR lto/60405
26495 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
26496 (lto_input_toplevel_asms): Likewise.
26497 * lto-section-in.c (lto_get_section_data): Instead do it here
26498 for every section.
26499
26500 2014-03-04 Richard Biener <rguenther@suse.de>
26501
26502 PR tree-optimization/60382
26503 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
26504 dead PHIs a reduction.
26505
26506 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
26507
26508 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
26509 hint value.
26510 (_mm_prefetch): Move out of GCC target("sse") pragma.
26511 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
26512 GCC target("prfchw") pragma.
26513 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
26514 for locality <= 2.
26515 * config/i386/i386.c (ix86_option_override_internal): Enable
26516 -mprfchw with -mprefetchwt1.
26517
26518 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
26519
26520 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
26521 Mark as varying.
26522
26523 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
26524
26525 * opts.h (CL_PCH_IGNORE): Define.
26526 * targhooks.c (option_affects_pch_p):
26527 Return false for options that have CL_PCH_IGNORE set.
26528 * opt-functions.awk: Process PchIgnore.
26529 * doc/options.texi: Document PchIgnore.
26530
26531 * config/arc/arc.opt (misize): Add PchIgnore property.
26532
26533 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26534
26535 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
26536 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
26537 constraint on constants to permit them being loaded into
26538 GENERAL_REGS or BASE_REGS.
26539
26540 2014-03-03 Nick Clifton <nickc@redhat.com>
26541
26542 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
26543 anti-cacnonical alternatives.
26544 (negandhi3_real): New pattern.
26545 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
26546
26547 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26548
26549 * config/avr/avr-mcus.def: Remove atxmega16x1.
26550 * config/avr/avr-tables.opt: Regenerate.
26551 * config/avr/t-multilib: Regenerate.
26552 * doc/avr-mmcu.texi: Regenerate.
26553
26554 2014-03-03 Tobias Grosser <tobias@grosser.es>
26555 Mircea Namolaru <mircea.namolaru@inria.fr>
26556
26557 PR tree-optimization/58028
26558 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
26559 scalar dimensions.
26560
26561 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26562
26563 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
26564 not handled by recognizers.
26565
26566 2014-03-03 Jakub Jelinek <jakub@redhat.com>
26567
26568 PR middle-end/60175
26569 * function.c (expand_function_end): Don't emit
26570 clobber_return_register sequence if clobber_after is a BARRIER.
26571 * cfgexpand.c (construct_exit_block): Append instructions before
26572 return_label to prev_bb.
26573
26574 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26575
26576 * config/rs6000/constraints.md: Document reserved use of "wc".
26577
26578 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
26579
26580 PR ipa/60150
26581 * ipa.c (function_and_variable_visibility): When dissolving comdat
26582 group, also set all symbols to local.
26583
26584 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
26585
26586 PR ipa/60306
26587
26588 Revert:
26589 2013-12-14 Jan Hubicka <jh@suse.cz>
26590 PR middle-end/58477
26591 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
26592
26593 2014-03-02 Jon Beniston <jon@beniston.com>
26594
26595 PR bootstrap/48230
26596 PR bootstrap/50927
26597 PR bootstrap/52466
26598 PR target/46898
26599 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
26600 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
26601 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
26602 (simple_return, *simple_return): New patterns
26603 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
26604 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
26605
26606 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
26607
26608 * dwarf2out.c (gen_subprogram_die): Tidy.
26609
26610 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
26611
26612 PR target/60071
26613 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
26614 (*mov_t_msb_neg_negc): ... this new insn.
26615
26616 2014-02-28 Jason Merrill <jason@redhat.com>
26617
26618 PR c++/58678
26619 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
26620 function.
26621
26622 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
26623
26624 PR c++/60314
26625 * dwarf2out.c (decltype_auto_die): New static.
26626 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
26627 (gen_type_die_with_usage): Handle 'decltype(auto)'.
26628 (is_cxx_auto): Likewise.
26629
26630 2014-02-28 Ian Bolton <ian.bolton@arm.com>
26631
26632 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
26633 we are not using general regs only.
26634
26635 2014-02-28 Richard Biener <rguenther@suse.de>
26636
26637 PR target/60280
26638 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
26639 previous fix and only allow to remove trivial pre-headers
26640 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
26641 (remove_forwarder_block): Properly update the latch of a loop.
26642
26643 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26644
26645 PR debug/59992
26646 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
26647 (cselib_preserved_hash_table): New.
26648 (preserve_constants_and_equivs): Move preserved vals to it.
26649 (cselib_find_slot): Look it up first.
26650 (cselib_init): Initialize it.
26651 (cselib_finish): Release it.
26652 (dump_cselib_table): Dump it.
26653
26654 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26655
26656 PR debug/59992
26657 * cselib.c (remove_useless_values): Skip to avoid quadratic
26658 behavior if the condition moved from...
26659 (cselib_process_insn): ... here holds.
26660
26661 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26662
26663 PR debug/57232
26664 * var-tracking.c (vt_initialize): Apply the same condition to
26665 preserve the CFA base value.
26666
26667 2014-02-28 Joey Ye <joey.ye@arm.com>
26668
26669 PR target/PR60169
26670 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
26671 if reload in progress or completed.
26672
26673 2014-02-28 Tobias Burnus <burnus@net-b.de>
26674
26675 PR middle-end/60147
26676 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
26677 NAMELIST_DECL.
26678
26679 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
26680
26681 * doc/tm.texi.in (Condition Code Status): Update documention for
26682 relative locations of cc0-setter and cc0-user.
26683
26684 2014-02-27 Jeff Law <law@redhat.com>
26685
26686 PR rtl-optimization/52714
26687 * combine.c (try_combine): When splitting an unrecognized PARALLEL
26688 into two independent simple sets, if I3 is a jump, ensure the
26689 pattern we place into I3 is a (set (pc) ...).
26690
26691 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
26692 Jeff Law <law@redhat.com>
26693
26694 PR rtl-optimization/49847
26695 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
26696 are in different blocks.
26697 * doc/tm.texi (Condition Code Status): Update documention for
26698 relative locations of cc0-setter and cc0-user.
26699
26700 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
26701
26702 PR target/59222
26703 * lra.c (lra_emit_add): Check SUBREG too.
26704
26705 2014-02-27 Andreas Schwab <schwab@suse.de>
26706
26707 * config/m68k/m68k.c (m68k_option_override): Disable
26708 -flive-range-shrinkage for classic m68k.
26709 (m68k_override_options_after_change): Likewise.
26710
26711 2014-02-27 Marek Polacek <polacek@redhat.com>
26712
26713 PR middle-end/59223
26714 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
26715 -Wmaybe-uninitialized.
26716
26717 2014-02-27 Alan Modra <amodra@gmail.com>
26718
26719 PR target/57936
26720 * reload1.c (emit_input_reload_insns): When reload_override_in,
26721 set old to rl->in_reg when rl->in_reg is a subreg.
26722
26723 2014-02-26 Richard Biener <rguenther@suse.de>
26724
26725 PR bootstrap/60343
26726 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
26727
26728 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
26729
26730 * common/config/i386/predicates.md (const1256_operand): Remove.
26731 (const2356_operand): New.
26732 (const_1_to_2_operand): Remove.
26733 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
26734 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
26735 (*avx512pf_gatherpf<mode>sf): Ditto.
26736 (avx512pf_gatherpf<mode>df): Ditto.
26737 (*avx512pf_gatherpf<mode>df_mask): Ditto.
26738 (*avx512pf_gatherpf<mode>df): Ditto.
26739 (avx512pf_scatterpf<mode>sf): Ditto.
26740 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26741 (*avx512pf_scatterpf<mode>sf): Ditto.
26742 (avx512pf_scatterpf<mode>df): Ditto.
26743 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26744 (*avx512pf_scatterpf<mode>df): Ditto.
26745 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
26746
26747 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
26748
26749 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
26750 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
26751 (_mm512_mask_testn_epi64_mask): Move to ...
26752 * config/i386/avx512cdintrin.h: Here.
26753 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
26754 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
26755 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
26756 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
26757 TARGET_AVX512F from TARGET_AVX512CD.
26758
26759 2014-02-26 Richard Biener <rguenther@suse.de>
26760
26761 PR ipa/60327
26762 * ipa.c (walk_polymorphic_call_targets): Properly guard
26763 call to inline_update_overall_summary.
26764
26765 2014-02-26 Bin Cheng <bin.cheng@arm.com>
26766
26767 PR target/60280
26768 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
26769 and latches only if requested. Fix latch if it is removed.
26770 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
26771 LOOPS_HAVE_PREHEADERS.
26772
26773 2014-02-25 Andrew Pinski <apinski@cavium.com>
26774
26775 * builtins.c (expand_builtin_thread_pointer): Create a new target
26776 when the target is NULL.
26777
26778 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
26779
26780 PR rtl-optimization/60317
26781 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26782 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26783 * lra-assigns.c: Include params.h.
26784 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
26785 other reload pseudos considerations.
26786
26787 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26788
26789 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
26790 to use canonical form for nor<mode>3.
26791
26792 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26793
26794 PR target/55426
26795 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
26796 conversions.
26797
26798 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
26799
26800 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
26801 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
26802 (ix86_handle_option): Handle OPT_mprefetchwt1.
26803 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
26804 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26805 PREFETCHWT1 CPUID.
26806 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26807 OPTION_MASK_ISA_PREFETCHWT1.
26808 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
26809 (PTA_PREFETCHWT1): New.
26810 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
26811 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
26812 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
26813 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
26814 (*prefetch_avx512pf_<mode>_: Change into ...
26815 (*prefetch_prefetchwt1_<mode>: This.
26816 * config/i386/i386.opt (mprefetchwt1): New.
26817 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
26818 (_mm_prefetch): Handle intent to write.
26819 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
26820
26821 2014-02-25 Richard Biener <rguenther@suse.de>
26822
26823 PR middle-end/60291
26824 * emit-rtl.c (mem_attrs_htab): Remove.
26825 (mem_attrs_htab_hash): Likewise.
26826 (mem_attrs_htab_eq): Likewise.
26827 (set_mem_attrs): Always allocate new mem-attrs when something changed.
26828 (init_emit_once): Do not allocate mem_attrs_htab.
26829
26830 2014-02-25 Richard Biener <rguenther@suse.de>
26831
26832 PR lto/60319
26833 * lto-opts.c (lto_write_options): Output non-explicit conservative
26834 -fwrapv, -fno-trapv and -fno-strict-overflow.
26835 * lto-wrapper.c (merge_and_complain): Handle merging those options.
26836 (run_gcc): And pass them through.
26837
26838 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
26839
26840 * sel-sched.c (calculate_new_fences): New parameter ptime.
26841 Calculate it as a maximum over all fence cycles.
26842 (sel_sched_region_2): Adjust the call to calculate_new_fences.
26843 Print the final schedule timing when sched_verbose.
26844
26845 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
26846
26847 PR rtl-optimization/60292
26848 * sel-sched.c (fill_vec_av_set): Do not reset target availability
26849 bit fot the fence instruction.
26850
26851 2014-02-24 Alangi Derick <alangiderick@gmail.com>
26852
26853 * calls.h: Fix typo in comment.
26854
26855 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
26856
26857 * config/pa/pa.c (pa_output_move_double): Don't valididate when
26858 adjusting offsetable addresses.
26859
26860 2014-02-24 Guozhi Wei <carrot@google.com>
26861
26862 * sparseset.h (sparseset_pop): Fix the wrong index.
26863
26864 2014-02-24 Walter Lee <walt@tilera.com>
26865
26866 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
26867 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
26868 triplet.
26869 * common/config/tilegx/tilegx-common.c
26870 (TARGET_DEFAULT_TARGET_FLAGS): Define.
26871 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
26872 (LINK_SPEC): Ditto.
26873 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
26874 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
26875 (tilegx_gimplify_va_arg_expr): Handle big endian.
26876 (tilegx_expand_unaligned_load): Ditto.
26877 (tilegx_expand_unaligned_store): Ditto.
26878 (TARGET_RETURN_IN_MSB): New.
26879 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
26880 (TARGET_ENDIAN_DEFAULT): New.
26881 (TARGET_BIG_ENDIAN): Handle big endian.
26882 (BYTES_BIG_ENDIAN): Ditto.
26883 (WORDS_BIG_ENDIAN): Ditto.
26884 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
26885 (ENDIAN_SPEC): New.
26886 (EXTRA_SPECS): New.
26887 * config/tilegx/tilegx.md (extv): Handle big endian.
26888 (extzv): Ditto.
26889 (insn_st<n>): Ditto.
26890 (insn_st<n>_add<bitsuffix>): Ditto.
26891 (insn_stnt<n>): Ditto.
26892 (insn_stnt<n>_add<bitsuffix>):Ditto.
26893 (vec_interleave_highv8qi): Handle big endian.
26894 (vec_interleave_highv8qi_be): New.
26895 (vec_interleave_highv8qi_le): New.
26896 (insn_v1int_h): Handle big endian.
26897 (vec_interleave_lowv8qi): Handle big endian.
26898 (vec_interleave_lowv8qi_be): New.
26899 (vec_interleave_lowv8qi_le): New.
26900 (insn_v1int_l): Handle big endian.
26901 (vec_interleave_highv4hi): Handle big endian.
26902 (vec_interleave_highv4hi_be): New.
26903 (vec_interleave_highv4hi_le): New.
26904 (insn_v2int_h): Handle big endian.
26905 (vec_interleave_lowv4hi): Handle big endian.
26906 (vec_interleave_lowv4hi_be): New.
26907 (vec_interleave_lowv4hi_le): New.
26908 (insn_v2int_l): Handle big endian.
26909 (vec_interleave_highv2si): Handle big endian.
26910 (vec_interleave_highv2si_be): New.
26911 (vec_interleave_highv2si_le): New.
26912 (insn_v4int_h): Handle big endian.
26913 (vec_interleave_lowv2si): Handle big endian.
26914 (vec_interleave_lowv2si_be): New.
26915 (vec_interleave_lowv2si_le): New.
26916 (insn_v4int_l): Handle big endian.
26917 * config/tilegx/tilegx.opt (mbig-endian): New option.
26918 (mlittle-endian): New option.
26919 * doc/install.texi: Document tilegxbe-linux.
26920 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
26921
26922 2014-02-24 Martin Jambor <mjambor@suse.cz>
26923
26924 PR ipa/60266
26925 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
26926 there are no parameter descriptors.
26927
26928 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
26929
26930 PR rtl-optimization/60268
26931 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
26932 initialization to ...
26933 (sched_rgn_init): ... here.
26934 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
26935
26936 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
26937
26938 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
26939 names.
26940
26941 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
26942
26943 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
26944 definition.
26945
26946 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
26947
26948 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
26949 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
26950
26951 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
26952
26953 * config/microblaze/predicates.md: Add cmp_op predicate.
26954 * config/microblaze/microblaze.md: Add branch_compare instruction
26955 which uses cmp_op predicate and emits cmp insn before branch.
26956 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
26957 to microblaze_expand_conditional_branch and consolidate logic.
26958 (microblaze_expand_conditional_branch): emit branch_compare
26959 insn instead of handling cmp op separate from branch insn.
26960
26961 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26962
26963 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
26964 to permit subregs.
26965
26966 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26967
26968 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
26969 define_insn with define_expand and new define_insn
26970 *altivec_lve<VI_char>x_internal.
26971 (altivec_stve<VI_char>x): Replace define_insn with define_expand
26972 and new define_insn *altivec_stve<VI_char>x_internal.
26973 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
26974 prototype.
26975 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
26976 lve*x built-ins.
26977 (altivec_expand_stvex_be): New function.
26978
26979 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
26980
26981 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
26982 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
26983 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
26984 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
26985
26986 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
26987
26988 PR target/60298
26989 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
26990 instead of emit_move_insn.
26991
26992 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26993
26994 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
26995 vspltw with vsldoi.
26996 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
26997 gen_altivec_vsumsws.
26998
26999 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27000
27001 * config/rs6000/altivec.md (altivec_lvxl): Rename as
27002 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
27003 (altivec_lvxl_<mode>): New define_expand incorporating
27004 -maltivec=be semantics where needed.
27005 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
27006 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
27007 semantics where needed.
27008 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
27009 (altivec_stvx_<mode>): New define_expand incorporating
27010 -maltivec=be semantics where needed.
27011 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
27012 VM2 iterator instead of V4SI.
27013 (altivec_stvxl_<mode>): New define_expand incorporating
27014 -maltivec=be semantics where needed.
27015 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
27016 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
27017 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
27018 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
27019 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
27020 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
27021 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
27022 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
27023 ALTIVEC_BUILTIN_STVXL.
27024 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
27025 (altivec_expand_stvx_be): Likewise.
27026 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
27027 (altivec_expand_lvx_be): Likewise.
27028 (altivec_expand_stvx_be): Likewise.
27029 (altivec_expand_builtin): Add cases for
27030 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
27031 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
27032 (altivec_init_builtins): Add definitions for
27033 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
27034 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
27035
27036 2014-02-21 Catherine Moore <clm@codesourcery.com>
27037
27038 * doc/invoke.texi (mvirt, mno-virt): Document.
27039 * config/mips/mips.opt (mvirt): New option.
27040 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
27041
27042 2014-02-21 Richard Biener <rguenther@suse.de>
27043
27044 PR tree-optimization/60276
27045 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
27046 (STMT_VINFO_MIN_NEG_DIST): New macro.
27047 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
27048 STMT_VINFO_MIN_NEG_DIST.
27049 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
27050 made for negative dependence distances still hold.
27051
27052 2014-02-21 Richard Biener <rguenther@suse.de>
27053
27054 PR middle-end/60291
27055 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
27056 DECL_INITIAL for globals not in the current function context.
27057
27058 2014-02-21 Jakub Jelinek <jakub@redhat.com>
27059
27060 PR tree-optimization/56490
27061 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
27062 * tree-ssa-uninit.c: Include params.h.
27063 (compute_control_dep_chain): Add num_calls argument, return false
27064 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
27065 num_calls to recursive call.
27066 (find_predicates): Change dep_chain into normal array,
27067 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
27068 variable and adjust compute_control_dep_chain caller.
27069 (find_def_preds): Likewise.
27070
27071 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
27072
27073 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
27074 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
27075
27076 2014-02-21 Nick Clifton <nickc@redhat.com>
27077
27078 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
27079 (pushhi1): Likewise.
27080 (popqi1): Add mode to pre_dec.
27081 (pophi1): Likewise.
27082
27083 2014-02-21 Jakub Jelinek <jakub@redhat.com>
27084
27085 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
27086 mode for mask of V8SFmode permutation.
27087
27088 2014-02-20 Richard Henderson <rth@redhat.com>
27089
27090 PR c++/60272
27091 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
27092 a new pseudo for OLDVAL.
27093
27094 2014-02-20 Jakub Jelinek <jakub@redhat.com>
27095
27096 PR target/57896
27097 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
27098 gen_reg_rtx if d->testing_p.
27099 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
27100 if d->testing_p and we will certainly return true.
27101 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
27102 if d->testing_p.
27103
27104 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
27105
27106 * emit-rtl.c (gen_reg_rtx): Assert that
27107 crtl->emit.regno_pointer_align_length is non-zero.
27108
27109 2014-02-20 Richard Henderson <rth@redhat.com>
27110
27111 PR c++/60272
27112 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
27113 on failure the store back into EXPECT.
27114
27115 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
27116 Sandra Loosemore <sandra@codesourcery.com>
27117
27118 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
27119 * config/nios2/nios2.c (nios2_function_profiler): Add
27120 -fPIC (flag_pic == 2) support.
27121 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
27122 (nios2_large_offset_p): New function.
27123 (nios2_unspec_reloc_p): Move up position, update to use
27124 nios2_large_offset_p.
27125 (nios2_unspec_address): Remove function.
27126 (nios2_unspec_offset): New function.
27127 (nios2_large_got_address): New function.
27128 (nios2_got_address): Add large offset support.
27129 (nios2_legitimize_tls_address): Update usage of removed and new
27130 functions.
27131 (nios2_symbol_binds_local_p): New function.
27132 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
27133 (nios2_legitimize_address): Update to use nios2_large_offset_p.
27134 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
27135 (nios2_print_operand): Merge H/L processing, add hiadj/lo
27136 processing for (const (unspec ...)).
27137 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
27138
27139 2014-02-20 Richard Biener <rguenther@suse.de>
27140
27141 * tree-cfg.c (replace_uses_by): Mark altered BBs before
27142 doing the substitution.
27143 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
27144
27145 2014-02-20 Martin Jambor <mjambor@suse.cz>
27146
27147 PR ipa/55260
27148 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
27149 info when checking whether lattices are bottom.
27150
27151 2014-02-20 Richard Biener <rguenther@suse.de>
27152
27153 PR middle-end/60221
27154 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
27155 regions at -O0.
27156
27157 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
27158
27159 PR ipa/58555
27160 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
27161 parameter specifying the scaling.
27162 (inline_call): Update.
27163 (want_inline_recursively): Guard division by zero.
27164 (recursive_inlining): Update.
27165 * ipa-inline.h (clone_inlined_nodes): Update.
27166
27167 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
27168
27169 PR target/60204
27170 * config/i386/i386.c (classify_argument): Pass structures of size
27171 64 bytes or less in register.
27172
27173 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
27174 Kirill Yukhin <kirill.yukhin@intel.com>
27175
27176 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
27177 (_mm_rcp28_round_ss): Ditto.
27178 (_mm_rsqrt28_round_sd): Ditto.
27179 (_mm_rsqrt28_round_ss): Ditto.
27180 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
27181 (_mm_rcp14_round_ss): Ditto.
27182 (_mm_rsqrt14_round_sd): Ditto.
27183 (_mm_rsqrt14_round_ss): Ditto.
27184 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
27185 the first input operand, get rid of match_dup.
27186 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
27187 attribute to sse.
27188 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
27189 Ditto.
27190 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
27191 operand as the first input operand, set type attribute.
27192 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
27193 Set type attribute.
27194 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
27195 operand as the first input operand, set type attribute.
27196
27197 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27198
27199 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
27200 bit of zero.
27201
27202 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
27203
27204 PR target/60207
27205 * config/i386/i386.c (construct_container): Remove TFmode check
27206 for X86_64_INTEGER_CLASS.
27207
27208 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
27209
27210 PR target/59794
27211 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
27212 only when -Wpsabi is enabled.
27213
27214 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
27215
27216 PR target/59799
27217 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
27218 passing arrays in registers are the same as for structs, so remove the
27219 special case for them.
27220
27221 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
27222
27223 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
27224 destination type, extract only the valid bits if the source type is not
27225 integral and has a different mode.
27226
27227 2014-02-19 Richard Biener <rguenther@suse.de>
27228
27229 PR ipa/60243
27230 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
27231 for all calls.
27232
27233 2014-02-19 Richard Biener <rguenther@suse.de>
27234
27235 PR ipa/60243
27236 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
27237 (ipa_modify_call_arguments): Emit an argument load explicitely and
27238 preserve virtual SSA form there and for the replacement call.
27239 Do not update SSA form nor free dominance info.
27240
27241 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
27242
27243 * ipa.c (function_and_variable_visibility): Also clear WEAK
27244 flag when disolving COMDAT_GROUP.
27245
27246 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
27247
27248 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
27249 * ipa-prop.c (ipa_set_jf_known_type): Return early when
27250 not devirtualizing.
27251 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
27252 do more sanity checks.
27253 (detect_type_change): Return true when giving up early.
27254 (compute_complex_assign_jump_func): Fix type parameter of
27255 ipa_set_ancestor_jf.
27256 (compute_complex_ancestor_jump_func): Likewise.
27257 (update_jump_functions_after_inlining): Fix updating of
27258 ancestor function.
27259 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
27260
27261 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
27262
27263 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
27264 inline clones when edge disappears.
27265
27266 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
27267
27268 PR target/60203
27269 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
27270 Split 64-bit moves into 2 patterns. Do not allow the use of
27271 direct move for TDmode in little endian, since the decimal value
27272 has little endian bytes within a word, but the 64-bit pieces are
27273 ordered in a big endian fashion, and normal subreg's of TDmode are
27274 not allowed.
27275 (mov<mode>_64bit_dm): Likewise.
27276 (movtd_64bit_nodm): Likewise.
27277
27278 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
27279
27280 PR tree-optimization/60174
27281 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
27282 statement of an SSA_NAME that occurs in an abnormal PHI node.
27283
27284 2014-02-18 Jakub Jelinek <jakub@redhat.com>
27285
27286 PR sanitizer/60142
27287 * final.c (SEEN_BB): Remove.
27288 (SEEN_NOTE, SEEN_EMITTED): Renumber.
27289 (final_scan_insn): Don't force_source_line on second
27290 NOTE_INSN_BASIC_BLOCK.
27291
27292 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
27293
27294 PR target/60205
27295 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
27296 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
27297 (type_natural_mode): Warn ABI change when %zmm register is not
27298 available for AVX512F vector value passing.
27299
27300 2014-02-18 Kai Tietz <ktietz@redhat.com>
27301
27302 PR target/60193
27303 * config/i386/i386.c (ix86_expand_prologue): Use value in
27304 rax register as displacement when restoring %r10 or %rax.
27305 Fix wrong offset when restoring both registers.
27306
27307 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
27308
27309 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
27310 assertion with conditional return.
27311
27312 2014-02-18 Jakub Jelinek <jakub@redhat.com>
27313 Uros Bizjak <ubizjak@gmail.com>
27314
27315 PR driver/60233
27316 * config/i386/driver-i386.c (host_detect_local_cpu): If
27317 YMM state is not saved by the OS, also clear has_f16c. Move
27318 CPUID 0x80000001 handling before YMM state saving checking.
27319
27320 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
27321
27322 PR rtl-optimization/58960
27323 * haifa-sched.c (alloc_global_sched_pressure_data): New,
27324 factored out from ...
27325 (sched_init): ... here.
27326 (free_global_sched_pressure_data): New, factored out from ...
27327 (sched_finish): ... here.
27328 * sched-int.h (free_global_sched_pressure_data): Declare.
27329 * sched-rgn.c (nr_regions_initial): New static global.
27330 (haifa_find_rgns): Initialize it.
27331 (schedule_region): Disable sched-pressure for the newly
27332 generated regions.
27333
27334 2014-02-17 Richard Biener <rguenther@suse.de>
27335
27336 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
27337 release SSA defs of pattern stmts.
27338
27339 2014-02-17 Richard Biener <rguenther@suse.de>
27340
27341 * tree-inline.c (expand_call_inline): Release the virtual
27342 operand defined by the call we are about to inline.
27343
27344 2014-02-17 Richard Biener <rguenther@suse.de>
27345
27346 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
27347
27348 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
27349 Ilya Tocar <ilya.tocar@intel.com>
27350
27351 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
27352 arguments order in builtin.
27353 (_mm512_permutexvar_epi64): Ditto.
27354 (_mm512_mask_permutexvar_epi64): Ditto
27355 (_mm512_maskz_permutexvar_epi32): Ditto
27356 (_mm512_permutexvar_epi32): Ditto
27357 (_mm512_mask_permutexvar_epi32): Ditto
27358
27359 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27360
27361 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
27362 (p8_vmrgow): Likewise.
27363
27364 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27365
27366 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
27367 endian targets.
27368
27369 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
27370
27371 PR target/60203
27372 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
27373 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
27374 into 64-bit and 32-bit moves. On 64-bit moves, add support for
27375 using direct move instructions on ISA 2.07. Also adjust
27376 instruction length for 64-bit.
27377 (mov<mode>_64bit, TFmode/TDmode): Likewise.
27378 (mov<mode>_32bit, TFmode/TDmode): Likewise.
27379
27380 2014-02-15 Alan Modra <amodra@gmail.com>
27381
27382 PR target/58675
27383 PR target/57935
27384 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
27385 find_replacement on parts of insn rtl that might be reloaded.
27386
27387 2014-02-15 Richard Biener <rguenther@suse.de>
27388
27389 PR tree-optimization/60183
27390 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
27391 (tree_ssa_phiprop): Calculate and free post-dominators.
27392
27393 2014-02-14 Jeff Law <law@redhat.com>
27394
27395 PR rtl-optimization/60131
27396 * ree.c (get_extended_src_reg): New function.
27397 (combine_reaching_defs): Use it rather than assuming location of REG.
27398 (find_and_remove_re): Verify first operand of extension is
27399 a REG before adding the insns to the copy list.
27400
27401 2014-02-14 Roland McGrath <mcgrathr@google.com>
27402
27403 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
27404 * configure: Regenerated.
27405 * config.in: Regenerated.
27406 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
27407 instead of ASM_SHORT.
27408
27409 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
27410 Richard Earnshaw <rearnsha@arm.com>
27411
27412 PR rtl-optimization/59535
27413 * lra-constraints.c (process_alt_operands): Encourage alternative
27414 when unassigned pseudo class is superset of the alternative class.
27415 (inherit_reload_reg): Don't inherit when optimizing for code size.
27416 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
27417 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
27418 modes not less than 4 for Thumb1.
27419
27420 2014-02-14 Kyle McMartin <kyle@redhat.com>
27421
27422 PR pch/60010
27423 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
27424
27425 2014-02-14 Richard Biener <rguenther@suse.de>
27426
27427 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
27428 (get_frame_arg): Drop the assert with langhook types_compatible_p.
27429 Do not strip INDIRECT_REFs.
27430
27431 2014-02-14 Richard Biener <rguenther@suse.de>
27432
27433 PR lto/60179
27434 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
27435 DECL_FUNCTION_SPECIFIC_TARGET.
27436 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
27437 * tree-streamer-out.c (pack_ts_target_option): Remove.
27438 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
27439 (write_ts_function_decl_tree_pointers): Do not stream
27440 DECL_FUNCTION_SPECIFIC_TARGET.
27441 * tree-streamer-in.c (unpack_ts_target_option): Remove.
27442 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
27443 (lto_input_ts_function_decl_tree_pointers): Do not stream
27444 DECL_FUNCTION_SPECIFIC_TARGET.
27445
27446 2014-02-14 Jakub Jelinek <jakub@redhat.com>
27447
27448 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
27449 (get_initial_def_for_induction, vectorizable_induction): Ignore
27450 debug stmts when looking for exit_phi.
27451 (vectorizable_live_operation): Fix up condition.
27452
27453 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27454
27455 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
27456 nreverse() because it changes the content of original tree list.
27457
27458 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27459
27460 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
27461 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
27462
27463 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27464
27465 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
27466 GNU coding standards.
27467
27468 2014-02-13 Jakub Jelinek <jakub@redhat.com>
27469
27470 PR debug/60152
27471 * dwarf2out.c (gen_subprogram_die): Don't call
27472 add_calling_convention_attribute if subr_die is old_die.
27473
27474 2014-02-13 Sharad Singhai <singhai@google.com>
27475
27476 * doc/optinfo.texi: Fix order of nodes.
27477
27478 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
27479
27480 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
27481 operands[2], not operands[3].
27482
27483 2014-02-13 Richard Biener <rguenther@suse.de>
27484
27485 PR bootstrap/59878
27486 * doc/install.texi (ISL): Update recommended version to 0.12.2,
27487 mention the possibility of an in-tree build.
27488 (CLooG): Update recommended version to 0.18.1, mention the
27489 possibility of an in-tree build and clarify that the ISL
27490 bundled with CLooG does not work.
27491
27492 2014-02-13 Jakub Jelinek <jakub@redhat.com>
27493
27494 PR target/43546
27495 * expr.c (compress_float_constant): If x is a hard register,
27496 extend into a pseudo and then move to x.
27497
27498 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
27499
27500 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
27501 caused by bad second argument to warning_at() with -mhotpatch and
27502 nested functions (e.g. with gfortran).
27503
27504 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
27505
27506 * opts.c (option_name): Remove "enabled by default" rider.
27507
27508 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
27509
27510 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
27511
27512 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
27513 Uros Bizjak <ubizjak@gmail.com>
27514
27515 PR target/60151
27516 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
27517 * configure: Regenerated.
27518
27519 2014-02-12 Richard Biener <rguenther@suse.de>
27520
27521 * vec.c (vec_prefix::calculate_allocation): Move as
27522 inline variant to vec.h.
27523 (vec_prefix::calculate_allocation_1): New out-of-line version.
27524 * vec.h (vec_prefix::calculate_allocation_1): Declare.
27525 (vec_prefix::m_has_auto_buf): Rename to ...
27526 (vec_prefix::m_using_auto_storage): ... this.
27527 (vec_prefix::calculate_allocation): Inline the easy cases
27528 and dispatch to calculate_allocation_1 which doesn't need the
27529 prefix address.
27530 (va_heap::reserve): Use gcc_checking_assert.
27531 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
27532 m_using_auto_storage.
27533 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
27534 member and adjust.
27535 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
27536 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
27537 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
27538
27539 2014-02-12 Richard Biener <rguenther@suse.de>
27540
27541 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
27542 when we found a dependence.
27543
27544 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
27545
27546 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
27547 common code...
27548 (maybe_fold_stmt): ... into this new function.
27549 * omp-low.c (lower_omp): Update comment.
27550
27551 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
27552 last use.
27553
27554 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
27555 dereference.
27556
27557 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
27558
27559 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
27560 identifiers in comments.
27561 (cortexa53_extra_costs): Likewise.
27562 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
27563 (cortexa7_extra_costs): Likewise.
27564 (cortexa12_extra_costs): Likewise.
27565 (cortexa15_extra_costs): Likewise.
27566 (v7m_extra_costs): Likewise.
27567
27568 2014-02-12 Richard Biener <rguenther@suse.de>
27569
27570 PR middle-end/60092
27571 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
27572 of posix_memalign being successful.
27573 (lower_stmt): Restrict lowering of posix_memalign to when
27574 -ftree-bit-ccp is enabled.
27575
27576 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
27577
27578 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
27579 arg_loc.
27580 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
27581
27582 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
27583
27584 PR rtl-optimization/60116
27585 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
27586 other_insn once the combination has been validated.
27587
27588 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
27589
27590 PR lto/59468
27591 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
27592 and wrapper.
27593 * ipa-devirt.c: Include demangle.h
27594 (odr_violation_reported): New static variable.
27595 (add_type_duplicate): Update odr_violations.
27596 (maybe_record_node): Add completep parameter; update it.
27597 (record_target_from_binfo): Add COMPLETEP parameter;
27598 update it as needed.
27599 (possible_polymorphic_call_targets_1): Likewise.
27600 (struct polymorphic_call_target_d): Add nonconstruction_targets;
27601 rename FINAL to COMPLETE.
27602 (record_targets_from_bases): Sanity check we found the binfo;
27603 fix COMPLETEP updating.
27604 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
27605 parameter, fix computing of COMPLETEP.
27606 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
27607 at LTO time do demangling.
27608 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
27609 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
27610 parameter.
27611 (gimple_get_virt_method_for_binfo): Likewise.
27612 * gimple-fold.h (gimple_get_virt_method_for_binfo,
27613 gimple_get_virt_method_for_vtable): Update prototypes.
27614
27615 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
27616
27617 PR target/49008
27618 * genautomata.c (add_presence_absence): Fix typo with
27619 {final_}presence_list.
27620
27621 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
27622
27623 PR target/60137
27624 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
27625 for VSX/Altivec vectors that land in GPR registers.
27626
27627 2014-02-11 Richard Henderson <rth@redhat.com>
27628 Jakub Jelinek <jakub@redhat.com>
27629
27630 PR debug/59776
27631 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
27632 around drhs if type conversion to lacc->type is not useless.
27633
27634 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27635
27636 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
27637 tuning struct.
27638 (cortex-a57.cortex-a53): Likewise.
27639 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
27640
27641 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27642
27643 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
27644 arm_restrict_it.
27645
27646 2014-02-11 Renlin Li <Renlin.Li@arm.com>
27647
27648 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
27649 add_options_for_arm_vfp3.
27650
27651 2014-02-11 Jeff Law <law@redhat.com>
27652
27653 PR middle-end/54041
27654 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
27655 object with an undesirable mode.
27656
27657 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27658
27659 PR libgomp/60107
27660 * config/i386/sol2-9.h: New file.
27661 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
27662 *-*-solaris2.9*): Use it.
27663
27664 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
27665
27666 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
27667 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
27668
27669 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
27670
27671 * config/microblaze/microblaze.c: Extend mcpu version format
27672
27673 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
27674
27675 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
27676
27677 2014-02-10 Richard Henderson <rth@redhat.com>
27678
27679 PR target/59927
27680 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
27681 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
27682 ms-abi vs -mno-accumulate-outgoing-args.
27683 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
27684 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
27685 respect to ms-abi.
27686
27687 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
27688
27689 PR middle-end/60080
27690 * cfgexpand.c (expand_asm_operands): Attach source location to
27691 ASM_INPUT rtx objects.
27692 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
27693
27694 2014-02-10 Nick Clifton <nickc@redhat.com>
27695
27696 * config/mn10300/mn10300.c (popcount): New function.
27697 (mn10300_expand_prologue): Include saved registers in stack usage
27698 count.
27699
27700 2014-02-10 Jeff Law <law@redhat.com>
27701
27702 PR middle-end/52306
27703 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
27704 when changing the SET_DEST of a prior insn to avoid an input reload.
27705
27706 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27707
27708 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
27709 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
27710 -mcall-openbsd, or -mcall-linux.
27711 (CC1_ENDIAN_BIG_SPEC): Remove.
27712 (CC1_ENDIAN_LITTLE_SPEC): Remove.
27713 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27714 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
27715 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
27716 and %cc1_endian_default.
27717 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27718
27719 2014-02-10 Richard Biener <rguenther@suse.de>
27720
27721 PR tree-optimization/60115
27722 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
27723 MEM_REF handling. Properly verify that the accesses are not
27724 out of the objects bound.
27725
27726 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27727
27728 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
27729 coretex to cortex.
27730
27731 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
27732
27733 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
27734 proper constants and fix formatting.
27735 (possible_polymorphic_call_targets): Fix formatting.
27736
27737 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
27738 Ilya Tocar <ilya.tocar@intel.com>
27739
27740 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
27741 (_mm512_loadu_epi32): Renamed into...
27742 (_mm512_loadu_si512): This.
27743 (_mm512_storeu_epi32): Renamed into...
27744 (_mm512_storeu_si512): This.
27745 (_mm512_maskz_ceil_ps): Removed.
27746 (_mm512_maskz_ceil_pd): Ditto.
27747 (_mm512_maskz_floor_ps): Ditto.
27748 (_mm512_maskz_floor_pd): Ditto.
27749 (_mm512_floor_round_ps): Ditto.
27750 (_mm512_floor_round_pd): Ditto.
27751 (_mm512_ceil_round_ps): Ditto.
27752 (_mm512_ceil_round_pd): Ditto.
27753 (_mm512_mask_floor_round_ps): Ditto.
27754 (_mm512_mask_floor_round_pd): Ditto.
27755 (_mm512_mask_ceil_round_ps): Ditto.
27756 (_mm512_mask_ceil_round_pd): Ditto.
27757 (_mm512_maskz_floor_round_ps): Ditto.
27758 (_mm512_maskz_floor_round_pd): Ditto.
27759 (_mm512_maskz_ceil_round_ps): Ditto.
27760 (_mm512_maskz_ceil_round_pd): Ditto.
27761 (_mm512_expand_pd): Ditto.
27762 (_mm512_expand_ps): Ditto.
27763 * config/i386/i386.c (ix86_builtins): Remove
27764 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
27765 (bdesc_args): Ditto.
27766 * config/i386/predicates.md (const1256_operand): New.
27767 (const_1_to_2_operand): Ditto.
27768 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
27769 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
27770 (*avx512pf_gatherpf<mode>sf): Ditto.
27771 (avx512pf_gatherpf<mode>df): Ditto.
27772 (*avx512pf_gatherpf<mode>df_mask): Ditto.
27773 (*avx512pf_gatherpf<mode>df): Ditto.
27774 (avx512pf_scatterpf<mode>sf): Ditto.
27775 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
27776 (*avx512pf_scatterpf<mode>sf): Ditto.
27777 (avx512pf_scatterpf<mode>df): Ditto.
27778 (*avx512pf_scatterpf<mode>df_mask): Ditto.
27779 (*avx512pf_scatterpf<mode>df): Ditto.
27780 (avx512f_expand<mode>): Removed.
27781 (<shift_insn><mode>3<mask_name>): Change predicate type.
27782
27783 2014-02-08 Jakub Jelinek <jakub@redhat.com>
27784
27785 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
27786 not at the end of datarefs vector use ordered_remove to avoid
27787 reordering datarefs vector.
27788
27789 PR c/59984
27790 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
27791 mark local addressable non-static vars as GOVD_PRIVATE
27792 instead of GOVD_LOCAL.
27793 * omp-low.c (lower_omp_for): Move gimple_bind_vars
27794 and BLOCK_VARS of gimple_bind_block to new_stmt rather
27795 than copying them.
27796
27797 PR middle-end/60092
27798 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
27799 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
27800 assume_aligned or alloc_align attributes.
27801 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
27802 arguments. Handle also assume_aligned and alloc_align attributes.
27803 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
27804 calls to functions with assume_aligned or alloc_align attributes.
27805 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
27806
27807 2014-02-08 Terry Guo <terry.guo@arm.com>
27808
27809 * doc/invoke.texi: Document ARM -march=armv7e-m.
27810
27811 2014-02-08 Jakub Jelinek <jakub@redhat.com>
27812
27813 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
27814 flag on __cilkrts_rethrow builtin.
27815
27816 PR ipa/60026
27817 * ipa-cp.c (determine_versionability): Fail at -O0
27818 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
27819 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
27820
27821 Revert:
27822 2014-02-04 Jakub Jelinek <jakub@redhat.com>
27823
27824 PR ipa/60026
27825 * tree-inline.c (copy_forbidden): Fail for
27826 __attribute__((optimize (0))) functions.
27827
27828 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
27829
27830 * varpool.c: Include pointer-set.h.
27831 (varpool_remove_unreferenced_decls): Variables in other partitions
27832 will not be output; be however careful to not lose information
27833 about partitioning.
27834
27835 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
27836
27837 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
27838 lookup in the vtable constructor.
27839
27840 2014-02-07 Jeff Law <law@redhat.com>
27841
27842 PR target/40977
27843 * config/m68k/m68k.md (ashldi_extsi): Turn into a
27844 define_insn_and_split.
27845
27846 * ipa-inline.c (inline_small_functions): Fix typos.
27847
27848 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27849
27850 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
27851 (s390_can_use_return_insn): Declare.
27852 * config/s390/s390.h (EPILOGUE_USES): Define.
27853 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
27854 instructions.
27855 (s390_chunkify_start): Handle return JUMP_LABELs.
27856 (s390_early_mach): Emit a main_pool instruction on the entry edge.
27857 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
27858 (s390_can_use_return_insn): New functions.
27859 (s390_fix_long_loop_prediction): Handle conditional returns.
27860 (TARGET_SET_UP_BY_PROLOGUE): Define.
27861 * config/s390/s390.md (ANY_RETURN): New code iterator.
27862 (*creturn, *csimple_return, return, simple_return): New patterns.
27863
27864 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27865
27866 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
27867 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
27868 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
27869 REG_CFA_RESTORE list when deciding not to restore a register.
27870
27871 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27872
27873 * config/s390/s390.c: Include tree-pass.h and context.h.
27874 (s390_early_mach): New function, split out from...
27875 (s390_emit_prologue): ...here.
27876 (pass_data_s390_early_mach): New pass structure.
27877 (pass_s390_early_mach): New class.
27878 (s390_option_override): Create and register early_mach pass.
27879 Move to end of file.
27880
27881 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27882
27883 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
27884 to match for the exit block.
27885
27886 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27887
27888 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
27889 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
27890 Reject misaligned operands.
27891
27892 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27893
27894 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
27895
27896 2014-02-07 Richard Biener <rguenther@suse.de>
27897
27898 PR middle-end/60092
27899 * gimple-low.c (lower_builtin_posix_memalign): New function.
27900 (lower_stmt): Call it to lower posix_memalign in a way
27901 to make alignment info accessible.
27902
27903 2014-02-07 Jakub Jelinek <jakub@redhat.com>
27904
27905 PR c++/60082
27906 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
27907 __builtin_setjmp_receiver.
27908
27909 2014-02-07 Richard Biener <rguenther@suse.de>
27910
27911 PR middle-end/60092
27912 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
27913 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
27914 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
27915 Handle BUILT_IN_POSIX_MEMALIGN.
27916 (find_func_clobbers): Likewise.
27917 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
27918 (call_may_clobber_ref_p_1): Likewise.
27919
27920 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27921
27922 PR ipa/59918
27923 * ipa-devirt.c (record_target_from_binfo): Remove overactive
27924 sanity check.
27925
27926 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27927
27928 PR ipa/59469
27929 * lto-cgraph.c (lto_output_node): Use
27930 symtab_get_symbol_partitioning_class.
27931 (lto_output_varpool_node): likewise.
27932 (symtab_get_symbol_partitioning_class): Move here from
27933 lto/lto-partition.c
27934 * cgraph.h (symbol_partitioning_class): Likewise.
27935 (symtab_get_symbol_partitioning_class): Declare.
27936
27937 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27938
27939 * ggc.h (ggc_internal_cleared_alloc): New macro.
27940 * vec.h (vec_safe_copy): Handle memory stats.
27941 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
27942 * target-globals.c (save_target_globals): Likewise.
27943
27944 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27945
27946 PR target/60077
27947 * expr.c (emit_move_resolve_push): Export; be bit more selective
27948 on when to clear alias set.
27949 * expr.h (emit_move_resolve_push): Declare.
27950 * function.h (struct function): Add tail_call_marked.
27951 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
27952 * config/i386/i386-protos.h (ix86_expand_push): Remove.
27953 * config/i386/i386.md (TImode move expander): De not call
27954 ix86_expand_push.
27955 (FP push expanders): Preserve memory attributes.
27956 * config/i386/sse.md (push<mode>1): Remove.
27957 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
27958 (ix86_expand_push): Remove.
27959 * config/i386/mmx.md (push<mode>1): Remove.
27960
27961 2014-02-06 Jakub Jelinek <jakub@redhat.com>
27962
27963 PR rtl-optimization/60030
27964 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
27965 lopart with paradoxical subreg before shifting it up by hprec.
27966
27967 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27968
27969 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
27970 Remove extra newline at end of file.
27971 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
27972 (arm_issue_rate): Handle cortexa57.
27973 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
27974 (cortex-a57.cortex-a53): Likewise.
27975
27976 2014-02-06 Jakub Jelinek <jakub@redhat.com>
27977
27978 PR target/59575
27979 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
27980 don't record in REG_FRAME_RELATED_EXPR registers not set in that
27981 bitmask.
27982 (arm_expand_prologue): Adjust all callers.
27983 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
27984 info, registers also at the lowest numbered registers side. Use
27985 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
27986 XEXP.
27987
27988 PR debug/59992
27989 * var-tracking.c (adjust_mems): Before adding a SET to
27990 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
27991
27992 2014-02-06 Alan Modra <amodra@gmail.com>
27993
27994 PR target/60032
27995 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
27996 change SDmode to DDmode when lra_in_progress.
27997
27998 2014-02-06 Jakub Jelinek <jakub@redhat.com>
27999
28000 PR middle-end/59150
28001 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
28002 free_data_ref on the dr first, and before goto again also set dr
28003 to the next dr. For simd_lane_access, free old datarefs[i] before
28004 overwriting it. For get_vectype_for_scalar_type failure, don't
28005 free_data_ref if simd_lane_access.
28006
28007 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
28008
28009 PR target/60062
28010 * tree.h (opts_for_fn): New inline function.
28011 (opt_for_fn): Define.
28012 * config/i386/i386.c (ix86_function_regparm): Use
28013 opt_for_fn (decl, optimize) instead of optimize.
28014
28015 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
28016
28017 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
28018 for SYMBOL_REF in large memory model.
28019
28020 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28021
28022 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
28023 and crypto support.
28024 (cortex-a57): Likewise.
28025 (cortex-a57.cortex-a53): Likewise.
28026
28027 2014-02-06 Yury Gribov <y.gribov@samsung.com>
28028 Kugan Vivekanandarajah <kuganv@linaro.org>
28029
28030 * config/arm/arm.c (arm_vector_alignment_reachable): Check
28031 unaligned_access.
28032 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
28033
28034 2014-02-06 Richard Biener <rguenther@suse.de>
28035
28036 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
28037 set_loop_copy and initialize_original_copy_tables.
28038
28039 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
28040
28041 * config/aarch64/aarch64-simd.md
28042 (aarch64_ashr_simddi): Change QI to SI.
28043
28044 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
28045 Jakub Jelinek <jakub@redhat.com>
28046
28047 PR middle-end/60013
28048 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
28049 of the dataflow.
28050
28051 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28052
28053 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
28054 CODE_FOR_altivec_vpku[hw]um to
28055 CODE_FOR_altivec_vpku[hw]um_direct.
28056 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
28057 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
28058 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
28059 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
28060
28061 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28062
28063 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
28064 generation for -maltivec=be.
28065 (altivec_vsumsws): Simplify redundant test.
28066
28067 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28068
28069 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
28070 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
28071 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
28072 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
28073 gen_altivec_vpkuwum.
28074 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
28075 BYTES_BIG_ENDIAN.
28076 (altivec_vpks<VI_char>ss): Likewise.
28077 (altivec_vpks<VI_char>us): Likewise.
28078 (altivec_vpku<VI_char>us): Likewise.
28079 (altivec_vpku<VI_char>um): Likewise.
28080 (altivec_vpku<VI_char>um_direct): New (copy of
28081 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
28082 internal use).
28083 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
28084 target is little endian and -maltivec=be is not specified.
28085 (*altivec_vupkhs<VU_char>_direct): New (copy of
28086 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
28087 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
28088 target is little endian and -maltivec=be is not specified.
28089 (*altivec_vupkls<VU_char>_direct): New (copy of
28090 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
28091 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
28092 little endian and -maltivec=be is not specified.
28093 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
28094 little endian and -maltivec=be is not specified.
28095
28096 2014-02-05 Richard Henderson <rth@redhat.com>
28097
28098 PR debug/52727
28099 * combine-stack-adj.c: Revert r206943.
28100 * sched-int.h (struct deps_desc): Add last_args_size.
28101 * sched-deps.c (init_deps): Initialize it.
28102 (sched_analyze_insn): Add OUTPUT dependencies between insns that
28103 contain REG_ARGS_SIZE notes.
28104
28105 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
28106
28107 * lto-cgraph.c (asm_nodes_output): Make global.
28108 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
28109 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
28110 (driver_handle_option): Handle OPT_fwpa.
28111
28112 2014-02-05 Jakub Jelinek <jakub@redhat.com>
28113
28114 PR ipa/59947
28115 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
28116 a comment typo and formatting issue. If odr_hash hasn't been
28117 created, return vNULL and set *completep to false.
28118
28119 PR middle-end/57499
28120 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
28121 bb with no successors.
28122
28123 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
28124
28125 PR target/59718
28126 * doc/invoke.texi (-march): Clarify documentation for ARM.
28127 (-mtune): Likewise.
28128 (-mcpu): Likewise.
28129
28130 2014-02-05 Richard Biener <rguenther@suse.de>
28131
28132 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
28133 when not vectorizing because of too many alias checks.
28134 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
28135 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
28136
28137 2014-02-05 Nick Clifton <nickc@redhat.com>
28138
28139 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
28140 accept extended registers in any mode when compiling for the MN10300.
28141
28142 2014-02-05 Yury Gribov <y.gribov@samsung.com>
28143
28144 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
28145 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
28146 sanitization attributes.
28147 (can_inline_edge_p): Likewise.
28148 (sanitize_attrs_match_for_inline_p): New function.
28149
28150 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
28151
28152 * ipa-prop.c (detect_type_change): Shor circuit testing of
28153 type changes on THIS pointer.
28154
28155 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
28156
28157 PR target/59777
28158 * config/pa/pa.c (legitimize_tls_address): Return original address
28159 if not passed a SYMBOL_REF rtx.
28160 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
28161 addresses.
28162 (pa_emit_move_sequence): Simplify TLS source operands.
28163 (pa_legitimate_constant_p): Reject all TLS constants.
28164 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
28165 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
28166
28167 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
28168
28169 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
28170 groups when we know they are controlled by LTO.
28171 * varasm.c (default_binds_local_p_1): If object is in other partition,
28172 it will be resolved locally.
28173
28174 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
28175
28176 * config/host-linux.c (linux_gt_pch_use_address): Don't
28177 use SSIZE_MAX because it is not always defined.
28178
28179 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
28180
28181 PR bootstrap/59913
28182 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
28183 threshold for pseudo splitting.
28184 (update_ebb_live_info): Process call argument hard registers and
28185 hard registers from insn definition too.
28186 (max_small_class_regs_num): New constant.
28187 (inherit_in_ebb): Update live hard regs through EBBs. Update
28188 reloads_num only for small register classes. Don't split for
28189 outputs of jumps.
28190
28191 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
28192
28193 PR ipa/60058
28194 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
28195 is non-null.
28196
28197 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
28198
28199 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
28200 visibility is safe.
28201
28202 2014-02-04 Marek Polacek <polacek@redhat.com>
28203
28204 * gdbinit.in (pel): Define.
28205
28206 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
28207
28208 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
28209 behavior.
28210
28211 2014-02-04 Richard Biener <rguenther@suse.de>
28212
28213 PR lto/59723
28214 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
28215 in function context local.
28216 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
28217 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
28218 similar to LTO_imported_decl_ref.
28219
28220 2014-02-04 Jakub Jelinek <jakub@redhat.com>
28221
28222 PR tree-optimization/60002
28223 * cgraphclones.c (build_function_decl_skip_args): Clear
28224 DECL_LANG_SPECIFIC.
28225
28226 PR tree-optimization/60023
28227 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
28228 false to gsi_replace.
28229 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
28230 has been in some EH region and vec_stmt could throw, add
28231 vec_stmt into the same EH region.
28232 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
28233 has no lhs, ignore it.
28234 * internal-fn.c (expand_MASK_LOAD): Likewise.
28235
28236 PR ipa/60026
28237 * tree-inline.c (copy_forbidden): Fail for
28238 __attribute__((optimize (0))) functions.
28239
28240 PR other/58712
28241 * omp-low.c (simd_clone_struct_copy): If from->inbranch
28242 is set, copy one less argument.
28243 (expand_simd_clones): Don't subtract clone_info->inbranch
28244 from simd_clone_struct_alloc argument.
28245
28246 PR rtl-optimization/57915
28247 * recog.c (simplify_while_replacing): If all unary/binary/relational
28248 operation arguments are constant, attempt to simplify those.
28249
28250 PR middle-end/59261
28251 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
28252 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
28253
28254 2014-02-04 Richard Biener <rguenther@suse.de>
28255
28256 PR tree-optimization/60012
28257 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
28258 TBAA disambiguation to all DDRs.
28259
28260 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28261
28262 PR target/59788
28263 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
28264 (LINK_SPEC): Use it for -shared, -shared-libgcc.
28265
28266 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28267
28268 PR ipa/59882
28269 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
28270
28271 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28272
28273 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
28274 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
28275
28276 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28277
28278 PR ipa/59831
28279 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
28280 to figure out targets of polymorphic calls with known decl.
28281 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28282 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
28283 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
28284 (get_polymorphic_call_info): ... here.
28285 (get_polymorphic_call_info_from_invariant): New function.
28286
28287 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28288
28289 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
28290 lookup via vtable pointer; check for type consistency
28291 and turn inconsitent facts into UNREACHABLE.
28292 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28293 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
28294 type inconsistent querries; return UNREACHABLE instead.
28295
28296 2014-02-03 Richard Henderson <rth@twiddle.net>
28297
28298 PR tree-opt/59924
28299 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
28300 already processed this node.
28301 (normalize_one_pred_1): Pass along mark_set.
28302 (normalize_one_pred): Create and destroy a pointer_set_t.
28303 (normalize_one_pred_chain): Likewise.
28304
28305 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
28306
28307 PR gcov-profile/58602
28308 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
28309
28310 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28311
28312 PR ipa/59831
28313 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
28314 -fno-devirtualize; try to devirtualize by the knowledge of
28315 virtual table pointer given by aggregate propagation.
28316 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28317 (ipa_print_node_jump_functions): Dump also offset that
28318 is relevant for polymorphic calls.
28319 (determine_known_aggregate_parts): Add arg_type parameter; use it
28320 instead of determining the type from pointer type.
28321 (ipa_compute_jump_functions_for_edge): Update call of
28322 determine_known_aggregate_parts.
28323 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
28324 (gimple_get_virt_method_for_binfo): ... here; simplify using
28325 vtable_pointer_value_to_vtable.
28326 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
28327 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
28328 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
28329 (vtable_pointer_value_to_vtable): Break out from ...; handle also
28330 POINTER_PLUS_EXPR.
28331 (vtable_pointer_value_to_binfo): ... here.
28332 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
28333
28334 2014-02-03 Teresa Johnson <tejohnson@google.com>
28335
28336 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
28337 redef of outer loop index variable.
28338
28339 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
28340
28341 PR c++/53017
28342 PR c++/59211
28343 * doc/extend.texi (Function Attributes): Typo.
28344
28345 2014-02-03 Cong Hou <congh@google.com>
28346
28347 PR tree-optimization/60000
28348 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
28349 if the vectorized statement is a store. A store statement can only
28350 appear at the end of pattern statements.
28351
28352 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
28353
28354 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
28355 (ix86_option_override_internal): Default long double to 64-bit for
28356 32-bit Bionic and to 128-bit for 64-bit Bionic.
28357
28358 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
28359 TARGET_LONG_DOUBLE_128 is true.
28360 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
28361
28362 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
28363 (mlong-double-64): Negate -mlong-double-128.
28364 (mlong-double-128): New option.
28365
28366 * config/i386/i386-c.c (ix86_target_macros): Define
28367 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
28368
28369 * doc/invoke.texi: Document -mlong-double-128.
28370
28371 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
28372
28373 PR rtl-optimization/60024
28374 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
28375
28376 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
28377
28378 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
28379
28380 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
28381
28382 PR rtl-optimization/57662
28383 * sel-sched.c (code_motion_path_driver): Do not mark already not
28384 existing blocks in the visiting bitmap.
28385
28386 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
28387
28388 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
28389 on the insn being emitted.
28390
28391 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
28392 Will Deacon <will.deacon@arm.com>
28393
28394 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
28395
28396 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28397
28398 * config/arm/arm-tables.opt: Regenerate.
28399
28400 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28401
28402 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
28403 for vector types other than V16QImode.
28404 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
28405 define_expand, and call altivec_expand_vec_perm_le when producing
28406 code with little endian element order.
28407 (*altivec_vperm_<mode>_internal): New insn having previous
28408 behavior of altivec_vperm_<mode>.
28409 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
28410 altivec_expand_vec_perm_le when producing code with little endian
28411 element order.
28412 (*altivec_vperm_<mode>_uns_internal): New insn having previous
28413 behavior of altivec_vperm_<mode>_uns.
28414
28415 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28416
28417 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
28418 (altivec_vsumsws): Add handling for -maltivec=be with a little
28419 endian target.
28420 (altivec_vsumsws_direct): New.
28421 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
28422 gen_altivec_vsumsws.
28423
28424 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
28425
28426 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
28427 vtable_pointer_value_to_binfo): New functions.
28428 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
28429 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
28430
28431 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
28432
28433 * config/nios2/nios2.md (load_got_register): Initialize GOT
28434 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
28435 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
28436
28437 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
28438
28439 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
28440 preserverd by passthrough, do not propagate the type.
28441
28442 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28443
28444 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
28445 (mips_atomic_assign_expand_fenv): New function.
28446 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
28447
28448 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28449
28450 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
28451 (__builtin_mips_set_fcsr): Likewise.
28452 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
28453 MIPS_USI_FTYPE_VOID.
28454 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
28455 (mips16_expand_set_fcsr): Likewise.
28456 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
28457 (mips16_set_fcsr_stub): Likewise.
28458 (mips16_get_fcsr_one_only_stub): New class.
28459 (mips16_set_fcsr_one_only_stub): Likewise.
28460 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
28461 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
28462 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
28463 (hard_float): New availability predicate.
28464 (mips_builtins): Add get_fcsr and set_fcsr.
28465 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
28466 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
28467 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
28468 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
28469 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
28470 patterns.
28471
28472 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28473
28474 * config/mips/mips.c (mips_one_only_stub): New class.
28475 (mips_need_mips16_rdhwr_p): Replace with...
28476 (mips16_rdhwr_stub): ...this new variable.
28477 (mips16_stub_call_address): New function.
28478 (mips16_rdhwr_one_only_stub): New class.
28479 (mips_expand_thread_pointer): Use mips16_stub_call_address.
28480 (mips_output_mips16_rdhwr): Delete.
28481 (mips_finish_stub): New function.
28482 (mips_code_end): Use it to handle rdhwr stubs.
28483
28484 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
28485
28486 PR target/60017
28487 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
28488 when calculating size of integer atomic types.
28489
28490 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
28491
28492 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
28493
28494 2014-02-01 Jakub Jelinek <jakub@redhat.com>
28495
28496 PR tree-optimization/60003
28497 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
28498 * profile.c (branch_prob): Use gimple_call_builtin_p
28499 to check for BUILT_IN_SETJMP_RECEIVER.
28500 * tree-inline.c (copy_bb): Call notice_special_calls.
28501
28502 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
28503
28504 PR bootstrap/59985
28505 * lra-constraints.c (process_alt_operands): Update reload_sum only
28506 on the first pass.
28507
28508 2014-01-31 Richard Henderson <rth@redhat.com>
28509
28510 PR middle-end/60004
28511 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
28512 until after else_eh is processed.
28513
28514 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
28515
28516 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
28517 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
28518 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
28519 in smmintrin.h, remove them.
28520 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
28521 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
28522 * config/i386/i386.md (ROUND_SAE): Fix value.
28523 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
28524 (const48_operand): New.
28525 * config/i386/subst.md (round), (round_expand): Use
28526 const_4_or_8_to_11_operand.
28527 (round_saeonly), (round_saeonly_expand): Use const48_operand.
28528
28529 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
28530
28531 * config/i386/constraints.md (Yk): Swap meaning with k.
28532 * config/i386/i386.md (movhi_internal): Change Yk to k.
28533 (movqi_internal): Ditto.
28534 (*k<logic><mode>): Ditto.
28535 (*andhi_1): Ditto.
28536 (*andqi_1): Ditto.
28537 (kandn<mode>): Ditto.
28538 (*<code>hi_1): Ditto.
28539 (*<code>qi_1): Ditto.
28540 (kxnor<mode>): Ditto.
28541 (kortestzhi): Ditto.
28542 (kortestchi): Ditto.
28543 (kunpckhi): Ditto.
28544 (*one_cmplhi2_1): Ditto.
28545 (*one_cmplqi2_1): Ditto.
28546 * config/i386/sse.md (): Change k to Yk.
28547 (avx512f_load<mode>_mask): Ditto.
28548 (avx512f_blendm<mode>): Ditto.
28549 (avx512f_store<mode>_mask): Ditto.
28550 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
28551 (avx512f_storedqu<mode>_mask): Ditto.
28552 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
28553 Ditto.
28554 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
28555 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
28556 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
28557 (avx512f_maskcmp<mode>3): Ditto.
28558 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
28559 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
28560 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
28561 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
28562 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
28563 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
28564 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
28565 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
28566 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
28567 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
28568 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
28569 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
28570 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
28571 (vec_extract_lo_<mode>_maskm): Ditto.
28572 (vec_extract_hi_<mode>_maskm): Ditto.
28573 (avx512f_vternlog<mode>_mask): Ditto.
28574 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
28575 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
28576 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
28577 (avx512f_<code>v8div16qi2_mask): Ditto.
28578 (avx512f_<code>v8div16qi2_mask_store): Ditto.
28579 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
28580 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
28581 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
28582 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
28583 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
28584 (*avx512pf_gatherpf<mode>df_mask): Ditto.
28585 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28586 (*avx512pf_scatterpf<mode>df_mask): Ditto.
28587 (avx512cd_maskb_vec_dupv8di): Ditto.
28588 (avx512cd_maskw_vec_dupv16si): Ditto.
28589 (avx512f_vpermi2var<mode>3_maskz): Ditto.
28590 (avx512f_vpermi2var<mode>3_mask): Ditto.
28591 (avx512f_vpermi2var<mode>3_mask): Ditto.
28592 (avx512f_vpermt2var<mode>3_maskz): Ditto.
28593 (*avx512f_gathersi<mode>): Ditto.
28594 (*avx512f_gathersi<mode>_2): Ditto.
28595 (*avx512f_gatherdi<mode>): Ditto.
28596 (*avx512f_gatherdi<mode>_2): Ditto.
28597 (*avx512f_scattersi<mode>): Ditto.
28598 (*avx512f_scatterdi<mode>): Ditto.
28599 (avx512f_compress<mode>_mask): Ditto.
28600 (avx512f_compressstore<mode>_mask): Ditto.
28601 (avx512f_expand<mode>_mask): Ditto.
28602 * config/i386/subst.md (mask): Change k to Yk.
28603 (mask_scalar_merge): Ditto.
28604 (sd): Ditto.
28605
28606 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
28607
28608 * doc/extend.texi (Vector Extensions): Document ?: in C++.
28609
28610 2014-01-31 Richard Biener <rguenther@suse.de>
28611
28612 PR middle-end/59990
28613 * builtins.c (fold_builtin_memory_op): Make sure to not
28614 use a floating-point mode or a boolean or enumeral type for
28615 the copy operation.
28616
28617 2014-01-30 DJ Delorie <dj@redhat.com>
28618
28619 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
28620 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
28621 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
28622 whenever main() has an epilogue.
28623
28624 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28625
28626 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
28627 unused variable "field".
28628 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
28629 (vsx_mergeh_<mode>): Likewise.
28630 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
28631 (altivec_vmrghh): Likewise.
28632 (altivec_vmrghw): Likewise.
28633 (altivec_vmrglb): Likewise.
28634 (altivec_vmrglh): Likewise.
28635 (altivec_vmrglw): Likewise.
28636 (altivec_vspltb): Add missing uses.
28637 (altivec_vsplth): Likewise.
28638 (altivec_vspltw): Likewise.
28639 (altivec_vspltsf): Likewise.
28640
28641 2014-01-30 Jakub Jelinek <jakub@redhat.com>
28642
28643 PR target/59923
28644 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
28645 frame related instructions.
28646
28647 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
28648
28649 PR rtl-optimization/59959
28650 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
28651 any reload of register whose subreg is invalid.
28652
28653 2014-01-30 Jakub Jelinek <jakub@redhat.com>
28654
28655 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
28656 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
28657 Add missing return type - void.
28658
28659 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28660
28661 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
28662 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
28663 remove element index adjustment for endian (now handled in vsx.md
28664 and altivec.md).
28665 (altivec_expand_vec_perm_const): Use
28666 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
28667 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
28668 (vsx_xxspltw_<mode>): Adjust element index for little endian.
28669 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
28670 define_expand and a new define_insn *altivec_vspltb_internal;
28671 adjust for -maltivec=be on a little endian target.
28672 (altivec_vspltb_direct): New.
28673 (altivec_vsplth): Divide into a define_expand and a new
28674 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
28675 little endian target.
28676 (altivec_vsplth_direct): New.
28677 (altivec_vspltw): Divide into a define_expand and a new
28678 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
28679 little endian target.
28680 (altivec_vspltw_direct): New.
28681 (altivec_vspltsf): Divide into a define_expand and a new
28682 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
28683 a little endian target.
28684
28685 2014-01-30 Richard Biener <rguenther@suse.de>
28686
28687 PR tree-optimization/59993
28688 * tree-ssa-forwprop.c (associate_pointerplus): Check we
28689 can propagate form the earlier stmt and avoid the transform
28690 when the intermediate result is needed.
28691
28692 2014-01-30 Alangi Derick <alangiderick@gmail.com>
28693
28694 * README.Portability: Fix typo.
28695
28696 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
28697
28698 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
28699 comparison_operator with ordered_comparison_operator.
28700
28701 2014-01-30 Nick Clifton <nickc@redhat.com>
28702
28703 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
28704 Rename to mn10300_store_multiple_regs.
28705 * config/mn10300/mn10300.c: Likewise.
28706 * config/mn10300/mn10300.md (store_movm): Fix typo: call
28707 store_multiple_regs.
28708 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
28709 Call mn10300_store_multiple_regs.
28710
28711 2014-01-30 Nick Clifton <nickc@redhat.com>
28712 DJ Delorie <dj@redhat.com>
28713
28714 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
28715 %fp 2 to keep registers after it properly word-aligned.
28716 (rl78_alloc_physical_registers_umul): Handle the case where both
28717 input operands are the same.
28718
28719 2014-01-30 Richard Biener <rguenther@suse.de>
28720
28721 PR tree-optimization/59903
28722 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
28723 check properly.
28724
28725 2014-01-30 Jason Merrill <jason@redhat.com>
28726
28727 PR c++/59633
28728 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
28729
28730 PR c++/59645
28731 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
28732
28733 2014-01-30 Richard Biener <rguenther@suse.de>
28734
28735 PR tree-optimization/59951
28736 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
28737
28738 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
28739
28740 PR target/59784
28741 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
28742 SFmode to DFmode case.
28743
28744 2014-01-29 DJ Delorie <dj@redhat.com>
28745
28746 * config/msp430/msp430.opt (-minrt): New.
28747 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
28748 if -minrt given.
28749 (ENDFILE_SPEC): Likewise.
28750
28751 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
28752
28753 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
28754 (estimate_function_body_sizes): Use it.
28755
28756 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
28757
28758 PR c++/58561
28759 * dwarf2out.c (is_cxx_auto): New.
28760 (is_base_type): Use it.
28761 (gen_type_die_with_usage): Likewise.
28762
28763 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28764
28765 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
28766 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
28767 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
28768 -maltivec=be with LE targets.
28769 (vsx_mergeh_<mode>): Likewise.
28770 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
28771 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
28772 (altivec_vmrghb): Replace with define_expand and new
28773 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
28774 (altivec_vmrghb_direct): New define_insn.
28775 (altivec_vmrghh): Replace with define_expand and new
28776 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
28777 (altivec_vmrghh_direct): New define_insn.
28778 (altivec_vmrghw): Replace with define_expand and new
28779 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
28780 (altivec_vmrghw_direct): New define_insn.
28781 (*altivec_vmrghsf): Adjust for endianness.
28782 (altivec_vmrglb): Replace with define_expand and new
28783 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
28784 (altivec_vmrglb_direct): New define_insn.
28785 (altivec_vmrglh): Replace with define_expand and new
28786 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
28787 (altivec_vmrglh_direct): New define_insn.
28788 (altivec_vmrglw): Replace with define_expand and new
28789 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
28790 (altivec_vmrglw_direct): New define_insn.
28791 (*altivec_vmrglsf): Adjust for endianness.
28792 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28793 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28794 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28795 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28796 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28797 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28798 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28799 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28800
28801 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
28802
28803 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
28804 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
28805 whitespace.
28806
28807 2014-01-29 Richard Biener <rguenther@suse.de>
28808
28809 PR tree-optimization/58742
28810 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
28811 associate_pointerplus_align.
28812 (associate_pointerplus_diff): New function.
28813 (associate_pointerplus): Likewise. Call associate_pointerplus_align
28814 and associate_pointerplus_diff.
28815
28816 2014-01-29 Richard Biener <rguenther@suse.de>
28817
28818 * lto-streamer.h (LTO_major_version): Bump to 3.
28819 (LTO_minor_version): Reset to 0.
28820
28821 2014-01-29 Renlin Li <Renlin.Li@arm.com>
28822
28823 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
28824 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
28825 (arm_file_start): Generate correct asm header for armv7ve.
28826 * config/arm/bpabi.h: Add multilib support for armv7ve.
28827 * config/arm/driver-arm.c: Change the architectures of cortex-a7
28828 and cortex-a15 to armv7ve.
28829 * config/arm/t-aprofile: Add multilib support for armv7ve.
28830 * doc/invoke.texi: Document -march=armv7ve.
28831
28832 2014-01-29 Richard Biener <rguenther@suse.de>
28833
28834 PR tree-optimization/58742
28835 * tree-ssa-forwprop.c (associate_plusminus): Return true
28836 if we changed sth, defer EH cleanup to ...
28837 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
28838 (simplify_mult): New function.
28839
28840 2014-01-29 Jakub Jelinek <jakub@redhat.com>
28841
28842 PR middle-end/59917
28843 PR tree-optimization/59920
28844 * tree.c (build_common_builtin_nodes): Remove
28845 __builtin_setjmp_dispatcher initialization.
28846 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
28847 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
28848 instead of gsi_after_labels + manually skipping debug stmts.
28849 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
28850 ignore bbs with IFN_ABNORMAL_DISPATCHER.
28851 * tree-inline.c (copy_edges_for_bb): Remove
28852 can_make_abnormal_goto argument, instead add abnormal_goto_dest
28853 argument. Ignore computed_goto_p stmts. Don't call
28854 make_abnormal_goto_edges. If a call might need abnormal edges
28855 for non-local gotos, see if it already has an edge to
28856 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
28857 with true argument, don't do anything then, otherwise add
28858 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
28859 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
28860 caller.
28861 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
28862 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
28863 (lower_stmt): Don't set data->calls_builtin_setjmp.
28864 (lower_builtin_setjmp): Adjust comment.
28865 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
28866 * tree-cfg.c (found_computed_goto): Remove.
28867 (factor_computed_gotos): Remove.
28868 (make_goto_expr_edges): Return bool, true for computed gotos.
28869 Don't call make_abnormal_goto_edges.
28870 (build_gimple_cfg): Don't set found_computed_goto, don't call
28871 factor_computed_gotos.
28872 (computed_goto_p): No longer static.
28873 (make_blocks): Don't set found_computed_goto.
28874 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
28875 (make_edges): If make_goto_expr_edges returns true, push bb
28876 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
28877 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
28878 vector. Record mapping between bbs and OpenMP regions if there
28879 are any, adjust make_gimple_omp_edges caller. Call
28880 handle_abnormal_edges.
28881 (make_abnormal_goto_edges): Remove.
28882 * tree-cfg.h (make_abnormal_goto_edges): Remove.
28883 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
28884 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
28885 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
28886 * internal-fn.def (ABNORMAL_DISPATCHER): New.
28887 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
28888 filling *region also set *region_idx to (*region)->entry->index.
28889
28890 PR other/58712
28891 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
28892 For REGs set ORIGINAL_REGNO.
28893
28894 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
28895
28896 * doc/md.texi: Mention that a target shouldn't implement
28897 vec_widen_(s|u)mul_even/odd pair if it is less efficient
28898 than hi/lo pair.
28899
28900 2014-01-29 Jakub Jelinek <jakub@redhat.com>
28901
28902 PR tree-optimization/59594
28903 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
28904 a copy of the datarefs vector rather than the vector itself.
28905
28906 2014-01-28 Jason Merrill <jason@redhat.com>
28907
28908 PR c++/53756
28909 * dwarf2out.c (auto_die): New static.
28910 (gen_type_die_with_usage): Handle C++1y 'auto'.
28911 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
28912 on definition.
28913
28914 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
28915
28916 PR target/59672
28917 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
28918 (SPEC_X32): Likewise.
28919 (SPEC_64): Likewise.
28920 * config/i386/i386.c (ix86_option_override_internal): Turn off
28921 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
28922 for TARGET_16BIT.
28923 (x86_file_start): Output .code16gcc for TARGET_16BIT.
28924 * config/i386/i386.h (TARGET_16BIT): New macro.
28925 (TARGET_16BIT_P): Likewise.
28926 * config/i386/i386.opt: Add m16.
28927 * doc/invoke.texi: Document -m16.
28928
28929 2014-01-28 Jakub Jelinek <jakub@redhat.com>
28930
28931 PR preprocessor/59935
28932 * input.c (location_get_source_line): Bail out on when line number
28933 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
28934
28935 2014-01-28 Richard Biener <rguenther@suse.de>
28936
28937 PR tree-optimization/58742
28938 * tree-ssa-forwprop.c (associate_plusminus): Handle
28939 pointer subtraction of the form (T)(P + A) - (T)P.
28940
28941 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28942
28943 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
28944 at const_int_cost.
28945
28946 2014-01-28 Richard Biener <rguenther@suse.de>
28947
28948 Revert
28949 2014-01-28 Richard Biener <rguenther@suse.de>
28950
28951 PR rtl-optimization/45364
28952 PR rtl-optimization/59890
28953 * var-tracking.c (local_get_addr_clear_given_value): Handle
28954 already cleared slot.
28955 (val_reset): Handle not allocated local_get_addr_cache.
28956 (vt_find_locations): Use post-order on the inverted CFG.
28957
28958 2014-01-28 Richard Biener <rguenther@suse.de>
28959
28960 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
28961
28962 2014-01-28 Richard Biener <rguenther@suse.de>
28963
28964 PR rtl-optimization/45364
28965 PR rtl-optimization/59890
28966 * var-tracking.c (local_get_addr_clear_given_value): Handle
28967 already cleared slot.
28968 (val_reset): Handle not allocated local_get_addr_cache.
28969 (vt_find_locations): Use post-order on the inverted CFG.
28970
28971 2014-01-28 Alan Modra <amodra@gmail.com>
28972
28973 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
28974 * configure.ac <recursive call for build != host>: Define
28975 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
28976 and LD_FOR_BUILD too.
28977 * configure: Regenerate.
28978
28979 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
28980
28981 * config/i386/i386.c (get_builtin_code_for_version): Separate
28982 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
28983 Broadwell from Haswell.
28984
28985 2014-01-27 Steve Ellcey <sellcey@mips.com>
28986
28987 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
28988 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
28989 * config/mips/mips.c (mips_option_override): Change setting
28990 of TARGET_DSP.
28991 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
28992 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
28993 Change from Mask to Var.
28994
28995 2014-01-27 Jeff Law <law@redhat.com>
28996
28997 * ipa-inline.c (inline_small_functions): Fix typo.
28998
28999 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
29000
29001 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
29002 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
29003 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
29004 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
29005 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
29006 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
29007 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
29008 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
29009 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
29010 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
29011 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
29012 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
29013 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
29014 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
29015 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
29016 (_mm512_storeu_epi64): Ditto.
29017 (_mm512_cmpge_epi32_mask): Ditto.
29018 (_mm512_cmpge_epu32_mask): Ditto.
29019 (_mm512_cmpge_epi64_mask): Ditto.
29020 (_mm512_cmpge_epu64_mask): Ditto.
29021 (_mm512_cmple_epi32_mask): Ditto.
29022 (_mm512_cmple_epu32_mask): Ditto.
29023 (_mm512_cmple_epi64_mask): Ditto.
29024 (_mm512_cmple_epu64_mask): Ditto.
29025 (_mm512_cmplt_epi32_mask): Ditto.
29026 (_mm512_cmplt_epu32_mask): Ditto.
29027 (_mm512_cmplt_epi64_mask): Ditto.
29028 (_mm512_cmplt_epu64_mask): Ditto.
29029 (_mm512_cmpneq_epi32_mask): Ditto.
29030 (_mm512_cmpneq_epu32_mask): Ditto.
29031 (_mm512_cmpneq_epi64_mask): Ditto.
29032 (_mm512_cmpneq_epu64_mask): Ditto.
29033 (_mm512_expand_pd): Ditto.
29034 (_mm512_expand_ps): Ditto.
29035 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
29036 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
29037 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
29038 * config/i386/i386.c (ix86_builtins): Add
29039 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
29040 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
29041 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
29042 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
29043 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
29044 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
29045 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
29046 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
29047 IX86_BUILTIN_PMOVUSQW512_MEM.
29048 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
29049 __builtin_ia32_pmovsqd512mem_mask,
29050 __builtin_ia32_pmovqd512mem_mask,
29051 __builtin_ia32_pmovusqw512mem_mask,
29052 __builtin_ia32_pmovsqw512mem_mask,
29053 __builtin_ia32_pmovqw512mem_mask,
29054 __builtin_ia32_pmovusdw512mem_mask,
29055 __builtin_ia32_pmovsdw512mem_mask,
29056 __builtin_ia32_pmovdw512mem_mask,
29057 __builtin_ia32_pmovqb512mem_mask,
29058 __builtin_ia32_pmovusqb512mem_mask,
29059 __builtin_ia32_pmovsqb512mem_mask,
29060 __builtin_ia32_pmovusdb512mem_mask,
29061 __builtin_ia32_pmovsdb512mem_mask,
29062 __builtin_ia32_pmovdb512mem_mask.
29063 (bdesc_args): Add __builtin_ia32_expanddf512,
29064 __builtin_ia32_expandsf512.
29065 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
29066 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
29067 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
29068 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
29069 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
29070 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
29071 (avx512f_<code>v8div16qi2_mask_store): This.
29072 (avx512f_expand<mode>): New.
29073
29074 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
29075
29076 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
29077 New.
29078 (_mm512_mask_prefetch_i64gather_pd): Ditto.
29079 (_mm512_prefetch_i32scatter_pd): Ditto.
29080 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
29081 (_mm512_prefetch_i64scatter_pd): Ditto.
29082 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
29083 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
29084 (_mm512_mask_prefetch_i64gather_ps): Ditto.
29085 (_mm512_prefetch_i32scatter_ps): Ditto.
29086 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
29087 (_mm512_prefetch_i64scatter_ps): Ditto.
29088 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
29089 * config/i386/i386-builtin-types.def: Define
29090 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
29091 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
29092 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
29093 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
29094 IX86_BUILTIN_SCATTERPFQPD.
29095 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
29096 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
29097 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
29098 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
29099 __builtin_ia32_scatterpfqps.
29100 (ix86_expand_builtin): Expand new built-ins.
29101 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
29102 fix memory access data type.
29103 (*avx512pf_gatherpf<mode>_mask): Ditto.
29104 (*avx512pf_gatherpf<mode>): Ditto.
29105 (avx512pf_scatterpf<mode>): Ditto.
29106 (*avx512pf_scatterpf<mode>_mask): Ditto.
29107 (*avx512pf_scatterpf<mode>): Ditto.
29108 (GATHER_SCATTER_SF_MEM_MODE): New.
29109 (avx512pf_gatherpf<mode>df): Ditto.
29110 (*avx512pf_gatherpf<mode>df_mask): Ditto.
29111 (*avx512pf_scatterpf<mode>df): Ditto.
29112
29113 2014-01-27 Jakub Jelinek <jakub@redhat.com>
29114
29115 PR bootstrap/59934
29116 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
29117 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
29118 reached.
29119
29120 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
29121
29122 * common/config/arm/arm-common.c
29123 (arm_rewrite_mcpu): Handle multiple names.
29124 * config/arm/arm.h
29125 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
29126
29127 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
29128
29129 * gimple-builder.h (create_gimple_tmp): Delete.
29130
29131 2014-01-27 Christian Bruel <christian.bruel@st.com>
29132
29133 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
29134 words comparisons.
29135
29136 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
29137
29138 * config/pa/pa.md (call): Generate indirect long calls to non-local
29139 functions when outputing 32-bit code.
29140 (call_value): Likewise except for special call to buggy powf function.
29141
29142 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
29143 portable runtime and PIC indirect calls.
29144 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
29145 and PIC call sequences. Use ldo instead of blr to set return register
29146 in PIC call sequence.
29147
29148 2014-01-25 Walter Lee <walt@tilera.com>
29149
29150 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
29151 avoid clobbering a live register.
29152
29153 2014-01-25 Walter Lee <walt@tilera.com>
29154
29155 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
29156 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
29157 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
29158 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
29159
29160 2014-01-25 Walter Lee <walt@tilera.com>
29161
29162 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
29163 arguments on even registers.
29164 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
29165 STACK_BOUNDARY.
29166 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
29167 (BIGGEST_ALIGNMENT): Ditto.
29168 (BIGGEST_FIELD_ALIGNMENT): Ditto.
29169
29170 2014-01-25 Walter Lee <walt@tilera.com>
29171
29172 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
29173 insns before bundling.
29174 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
29175
29176 2014-01-25 Walter Lee <walt@tilera.com>
29177
29178 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
29179 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
29180 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
29181
29182 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
29183
29184 * config/mips/constraints.md (kl): Delete.
29185 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
29186 define expands, using...
29187 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
29188 instructions for MIPS16.
29189 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
29190 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
29191
29192 2014-01-25 Walter Lee <walt@tilera.com>
29193
29194 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
29195 (clzdi2): Ditto.
29196 (ffsdi2): Ditto.
29197
29198 2014-01-25 Walter Lee <walt@tilera.com>
29199
29200 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
29201 (TARGET_EXPAND_TO_RTL_HOOK): Define.
29202
29203 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
29204
29205 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
29206 Handle XOR.
29207
29208 2014-01-25 Jakub Jelinek <jakub@redhat.com>
29209
29210 * print-rtl.c (in_call_function_usage): New var.
29211 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
29212 EXPR_LIST mode as mode and not as reg note name.
29213
29214 PR middle-end/59561
29215 * cfgloopmanip.c (copy_loop_info): If
29216 loop->warned_aggressive_loop_optimizations, make sure
29217 the flag is set in target loop too.
29218
29219 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
29220
29221 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
29222 flag_cilkplus.
29223 * builtins.def: Likewise.
29224 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
29225 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
29226 * ira.c (ira_setup_eliminable_regset): Likewise.
29227 * omp-low.c (gate_expand_omp): Likewise.
29228 (execute_lower_omp): Likewise.
29229 (diagnose_sb_0): Likewise.
29230 (gate_diagnose_omp_blocks): Likewise.
29231 (simd_clone_clauses_extract): Likewise.
29232 (gate): Likewise.
29233
29234 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29235
29236 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
29237 correction for little endian...
29238 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
29239 here.
29240
29241 2014-01-24 Jeff Law <law@redhat.com>
29242
29243 PR tree-optimization/59919
29244 * tree-vrp.c (find_assert_locations_1): Do not register asserts
29245 for non-returning calls.
29246
29247 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
29248
29249 * common/config/aarch64/aarch64-common.c
29250 (aarch64_rewrite_mcpu): Handle multiple names.
29251 * config/aarch64/aarch64.h
29252 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
29253
29254 2014-01-24 Dodji Seketeli <dodji@redhat.com>
29255
29256 * input.c (add_file_to_cache_tab): Handle the case where fopen
29257 returns NULL.
29258
29259 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
29260
29261 PR target/59929
29262 * config/i386/i386.md (pushsf splitter): Get stack adjustment
29263 from push operand if code of push isn't PRE_DEC.
29264
29265 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
29266
29267 PR target/59909
29268 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
29269 -mquad-memory-atomic. Update -mquad-memory documentation to say
29270 it is only used for non-atomic loads/stores.
29271
29272 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
29273 -mquad-memory or -mquad-memory-atomic switches.
29274
29275 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
29276 -mquad-memory-atomic to ISA 2.07 support.
29277
29278 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
29279 to separate support of normal quad word memory operations (ldq, stq)
29280 from the atomic quad word memory operations.
29281
29282 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
29283 support to separate non-atomic quad word operations from atomic
29284 quad word operations. Disable non-atomic quad word operations in
29285 little endian mode so that we don't have to swap words after the
29286 load and before the store.
29287 (quad_load_store_p): Add comment about atomic quad word support.
29288 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
29289 options printed with -mdebug=reg.
29290
29291 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
29292 -mquad-memory-atomic as the test for whether we have quad word
29293 atomic instructions.
29294 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
29295 or -mp8-vector are used, allow byte/half-word atomic operations.
29296
29297 * config/rs6000/sync.md (load_lockedti): Insure that the address
29298 is a proper indexed or indirect address for the lqarx instruction.
29299 On little endian systems, swap the hi/lo registers after the lqarx
29300 instruction.
29301 (load_lockedpti): Use indexed_or_indirect_operand predicate to
29302 insure the address is valid for the lqarx instruction.
29303 (store_conditionalti): Insure that the address is a proper indexed
29304 or indirect address for the stqcrx. instruction. On little endian
29305 systems, swap the hi/lo registers before doing the stqcrx.
29306 instruction.
29307 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
29308 insure the address is valid for the stqcrx. instruction.
29309
29310 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
29311 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
29312 type of quad memory support is available.
29313
29314 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
29315
29316 PR regression/59915
29317 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
29318 there is a danger of looping.
29319
29320 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
29321
29322 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
29323 force flag_ira_loop_pressure if set via command line.
29324
29325 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
29326
29327 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
29328 (ashr_simd): New builtin handling DI mode.
29329 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
29330 (aarch64_sshr_simddi): New match pattern.
29331 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
29332 (vshrd_n_s64): Likewise.
29333 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
29334
29335 2014-01-23 Nick Clifton <nickc@redhat.com>
29336
29337 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
29338 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
29339 favour of mcu specific scripts.
29340 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
29341 430x multilibs.
29342
29343 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
29344 Alex Velenko <Alex.Velenko@arm.com>
29345
29346 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
29347 (vaddv_s16): Likewise.
29348 (vaddv_s32): Likewise.
29349 (vaddv_u8): Likewise.
29350 (vaddv_u16): Likewise.
29351 (vaddv_u32): Likewise.
29352 (vaddvq_s8): Likewise.
29353 (vaddvq_s16): Likewise.
29354 (vaddvq_s32): Likewise.
29355 (vaddvq_s64): Likewise.
29356 (vaddvq_u8): Likewise.
29357 (vaddvq_u16): Likewise.
29358 (vaddvq_u32): Likewise.
29359 (vaddvq_u64): Likewise.
29360 (vaddv_f32): Likewise.
29361 (vaddvq_f32): Likewise.
29362 (vaddvq_f64): Likewise.
29363 (vmaxv_f32): Likewise.
29364 (vmaxv_s8): Likewise.
29365 (vmaxv_s16): Likewise.
29366 (vmaxv_s32): Likewise.
29367 (vmaxv_u8): Likewise.
29368 (vmaxv_u16): Likewise.
29369 (vmaxv_u32): Likewise.
29370 (vmaxvq_f32): Likewise.
29371 (vmaxvq_f64): Likewise.
29372 (vmaxvq_s8): Likewise.
29373 (vmaxvq_s16): Likewise.
29374 (vmaxvq_s32): Likewise.
29375 (vmaxvq_u8): Likewise.
29376 (vmaxvq_u16): Likewise.
29377 (vmaxvq_u32): Likewise.
29378 (vmaxnmv_f32): Likewise.
29379 (vmaxnmvq_f32): Likewise.
29380 (vmaxnmvq_f64): Likewise.
29381 (vminv_f32): Likewise.
29382 (vminv_s8): Likewise.
29383 (vminv_s16): Likewise.
29384 (vminv_s32): Likewise.
29385 (vminv_u8): Likewise.
29386 (vminv_u16): Likewise.
29387 (vminv_u32): Likewise.
29388 (vminvq_f32): Likewise.
29389 (vminvq_f64): Likewise.
29390 (vminvq_s8): Likewise.
29391 (vminvq_s16): Likewise.
29392 (vminvq_s32): Likewise.
29393 (vminvq_u8): Likewise.
29394 (vminvq_u16): Likewise.
29395 (vminvq_u32): Likewise.
29396 (vminnmv_f32): Likewise.
29397 (vminnmvq_f32): Likewise.
29398 (vminnmvq_f64): Likewise.
29399
29400 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
29401
29402 * config/aarch64/aarch64-simd.md
29403 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
29404 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
29405 (*aarch64_mul3_elt<mode>): Likewise.
29406 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
29407 (*aarch64_mul3_elt_to_64v2df): Likewise.
29408 (*aarch64_mla_elt<mode>): Likewise.
29409 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
29410 (*aarch64_mls_elt<mode>): Likewise.
29411 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
29412 (*aarch64_fma4_elt<mode>): Likewise.
29413 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
29414 (*aarch64_fma4_elt_to_64v2df): Likewise.
29415 (*aarch64_fnma4_elt<mode>): Likewise.
29416 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
29417 (*aarch64_fnma4_elt_to_64v2df): Likewise.
29418 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
29419 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
29420 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
29421 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
29422 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
29423 (aarch64_sqdmull_lane<mode>_internal): Likewise.
29424 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
29425
29426 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
29427
29428 * config/aarch64/aarch64-simd.md
29429 (aarch64_be_checked_get_lane<mode>): New define_expand.
29430 * config/aarch64/aarch64-simd-builtins.def
29431 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
29432 New builtin definition.
29433 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
29434 Use new safe be builtin.
29435
29436 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
29437
29438 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
29439 New define_insn.
29440 (aarch64_be_st1<mode>): Likewise.
29441 (aarch_ld1<VALL:mode>): Define_expand modified.
29442 (aarch_st1<VALL:mode>): Likewise.
29443 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
29444 (UNSPEC_ST1): Likewise.
29445
29446 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
29447
29448 * config/microblaze/microblaze.md: Add trap insn and attribute
29449
29450 2014-01-23 Dodji Seketeli <dodji@redhat.com>
29451
29452 PR preprocessor/58580
29453 * input.h (location_get_source_line): Take an additional line_size
29454 parameter.
29455 (void diagnostics_file_cache_fini): Declare new function.
29456 * input.c (struct fcache): New type.
29457 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
29458 New static constants.
29459 (diagnostic_file_cache_init, total_lines_num)
29460 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
29461 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
29462 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
29463 (get_next_line, read_next_line, goto_next_line, read_line_num):
29464 New static function definitions.
29465 (diagnostic_file_cache_fini): New function.
29466 (location_get_source_line): Take an additional output line_len
29467 parameter. Re-write using lookup_or_add_file_to_cache_tab and
29468 read_line_num.
29469 * diagnostic.c (diagnostic_finish): Call
29470 diagnostic_file_cache_fini.
29471 (adjust_line): Take an additional input parameter for the length
29472 of the line, rather than calculating it with strlen.
29473 (diagnostic_show_locus): Adjust the use of
29474 location_get_source_line and adjust_line with respect to their new
29475 signature. While displaying a line now, do not stop at the first
29476 null byte. Rather, display the zero byte as a space and keep
29477 going until we reach the size of the line.
29478 * Makefile.in: Add vec.o to OBJS-libcommon
29479
29480 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
29481 Ilya Tocar <ilya.tocar@intel.com>
29482
29483 * config/i386/avx512fintrin.h (_mm512_kmov): New.
29484 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
29485 (__builtin_ia32_kmov16): Ditto.
29486 * config/i386/i386.md (UNSPEC_KMOV): New.
29487 (kmovw): Ditto.
29488
29489 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
29490
29491 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
29492 (_mm512_storeu_si512): Ditto.
29493
29494 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
29495
29496 PR target/52125
29497 * rtl.h (get_referenced_operands): Declare.
29498 * recog.c (get_referenced_operands): New function.
29499 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
29500 operands have been referenced when recording LO_SUM references.
29501
29502 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
29503
29504 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
29505
29506 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
29507
29508 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
29509 Enable for generic and recent AMD targets.
29510
29511 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
29512
29513 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
29514 ARG_SIZE note when adjustment was eliminated.
29515
29516 2014-01-22 Jeff Law <law@redhat.com>
29517
29518 PR tree-optimization/59597
29519 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
29520 in file. Accept new argument REGISTERING and use it to modify
29521 dump output appropriately.
29522 (register_jump_thread): Corresponding changes.
29523 (mark_threaded_blocks): Reinstate code to cancel unprofitable
29524 thread paths involving joiner blocks. Add code to dump cancelled
29525 jump threading paths.
29526
29527 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
29528
29529 PR rtl-optimization/59477
29530 * lra-constraints.c (inherit_in_ebb): Process call for living hard
29531 regs. Update reloads_num and potential_reload_hard_regs for all insns.
29532
29533 2014-01-22 Tom Tromey <tromey@redhat.com>
29534
29535 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
29536 PARAMS.
29537 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
29538
29539 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
29540
29541 PR rtl-optimization/59896
29542 * lra-constraints.c (process_alt_operands): Check unused note for
29543 matched operands of insn with no output reloads.
29544
29545 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
29546
29547 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
29548 (mips_move_from_gpr_cost): Likewise.
29549
29550 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
29551
29552 PR rtl-optimization/59858
29553 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
29554 ira_class_hard_regs_num.
29555 (process_alt_operands): Increase reject for dying matched operand.
29556
29557 2014-01-21 Jakub Jelinek <jakub@redhat.com>
29558
29559 PR target/59003
29560 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
29561 smaller than size, perform several stores or loads and stores
29562 at dst + count - size to store or copy all of size bytes, rather
29563 than just last modesize bytes.
29564
29565 2014-01-20 DJ Delorie <dj@redhat.com>
29566
29567 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
29568 that CLOBBERs are REGs before propogating their values.
29569
29570 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
29571
29572 PR middle-end/59789
29573 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
29574 (cgraph_inline_failed_type): New function.
29575 * cgraph.h (DEFCIFCODE): Add type.
29576 (cgraph_inline_failed_type_t): New enum.
29577 (cgraph_inline_failed_type): New prototype.
29578 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
29579 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
29580 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
29581 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
29582 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
29583 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
29584 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
29585 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
29586 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
29587 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
29588 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
29589 OPTIMIZATION_MISMATCH.
29590 * tree-inline.c (expand_call_inline): Emit errors during
29591 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
29592
29593 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
29594
29595 PR target/59685
29596 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
29597 mode attribute in insn output.
29598
29599 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
29600
29601 * output.h (output_constant): Delete.
29602 * varasm.c (output_constant): Make private.
29603
29604 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
29605
29606 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
29607
29608 2014-01-20 Jakub Jelinek <jakub@redhat.com>
29609
29610 PR middle-end/59860
29611 * tree.h (fold_builtin_strcat): New prototype.
29612 * builtins.c (fold_builtin_strcat): No longer static. Add len
29613 argument, if non-NULL, don't call c_strlen. Optimize
29614 directly into __builtin_memcpy instead of __builtin_strcpy.
29615 (fold_builtin_2): Adjust fold_builtin_strcat caller.
29616 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
29617
29618 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
29619
29620 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29621 for SImode_address_operand operands, having only a REG argument.
29622
29623 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
29624
29625 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
29626 loader name using mbig-endian.
29627 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
29628
29629 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
29630
29631 * doc/invoke.texi (-march): Clarify documentation for AArch64.
29632 (-mtune): Likewise.
29633 (-mcpu): Likewise.
29634
29635 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
29636
29637 * config/aarch64/aarch64-protos.h
29638 (aarch64_cannot_change_mode_class_ptr): Declare.
29639 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
29640 aarch64_cannot_change_mode_class_ptr): New.
29641 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
29642 backend hook aarch64_cannot_change_mode_class.
29643
29644 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
29645
29646 * common/config/aarch64/aarch64-common.c
29647 (aarch64_handle_option): Don't handle any option order logic here.
29648 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
29649 selected_cpu, warn on architecture version mismatch.
29650 (aarch64_override_options): Fix parsing order for option strings.
29651
29652 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29653 Iain Sandoe <iain@codesourcery.com>
29654
29655 PR bootstrap/59496
29656 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
29657 warning. Amend comment to reflect current functionality.
29658
29659 2014-01-20 Richard Biener <rguenther@suse.de>
29660
29661 PR middle-end/59860
29662 * builtins.c (fold_builtin_strcat): Remove case better handled
29663 by tree-ssa-strlen.c.
29664
29665 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
29666
29667 * config/aarch64/aarch64.opt
29668 (mcpu, march, mtune): Make case-insensitive.
29669
29670 2014-01-20 Jakub Jelinek <jakub@redhat.com>
29671
29672 PR target/59880
29673 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29674 if operands[1] is a REG or ZERO_EXTEND of a REG.
29675
29676 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
29677
29678 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
29679
29680 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
29681
29682 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
29683 long non-pic millicode calls.
29684
29685 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29686
29687 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
29688
29689 2014-01-19 Kito Cheng <kito@0xlab.org>
29690
29691 * builtins.c (expand_movstr): Check movstr expand done or fail.
29692
29693 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29694 H.J. Lu <hongjiu.lu@intel.com>
29695
29696 PR target/59379
29697 * config/i386/i386.md (*lea<mode>): Zero-extend return register
29698 to DImode for zero-extended addresses.
29699
29700 2014-01-19 Jakub Jelinek <jakub@redhat.com>
29701
29702 PR rtl-optimization/57763
29703 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
29704 on the new indirect jump_insn and increment LABEL_NUSES (label).
29705
29706 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
29707
29708 PR bootstrap/59580
29709 PR bootstrap/59583
29710 * config.gcc (x86_archs): New variable.
29711 (x86_64_archs): Likewise.
29712 (x86_cpus): Likewise.
29713 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
29714 --with-arch/--with-cpu= options.
29715 Support --with-arch=/--with-cpu={nehalem,westmere,
29716 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
29717
29718 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29719
29720 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
29721 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
29722
29723 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29724
29725 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
29726
29727 2014-01-18 Jakub Jelinek <jakub@redhat.com>
29728
29729 PR target/58944
29730 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
29731 clear cpp_get_options (parse_in)->warn_unused_macros for
29732 ix86_target_macros_internal with cpp_define.
29733
29734 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
29735
29736 * jump.c (delete_related_insns): Keep (use (insn))s.
29737 * reorg.c (redundant_insn): Check for barriers too.
29738
29739 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29740
29741 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
29742
29743 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
29744
29745 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
29746 call to $$dyncall when TARGET_LONG_CALLS is true.
29747
29748 2014-01-17 Jeff Law <law@redhat.com>
29749
29750 * ree.c (combine_set_extension): Temporarily disable test for
29751 changing number of hard registers.
29752
29753 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
29754
29755 PR middle-end/58125
29756 * ipa-inline-analysis.c (inline_free_summary):
29757 Do not free summary of aliases.
29758
29759 2014-01-17 Jakub Jelinek <jakub@redhat.com>
29760
29761 PR middle-end/59706
29762 * gimplify.c (gimplify_expr): Use create_tmp_var
29763 instead of create_tmp_var_raw. If cond doesn't have
29764 integral type, don't add the IFN_ANNOTATE builtin at all.
29765
29766 2014-01-17 Martin Jambor <mjambor@suse.cz>
29767
29768 PR ipa/59736
29769 * ipa-cp.c (prev_edge_clone): New variable.
29770 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
29771 Also resize prev_edge_clone vector.
29772 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
29773 (ipcp_edge_removal_hook): New function.
29774 (ipcp_driver): Register ipcp_edge_removal_hook.
29775
29776 2014-01-17 Andrew Pinski <apinski@cavium.com>
29777 Steve Ellcey <sellcey@mips.com>
29778
29779 PR target/59462
29780 * config/mips/mips.c (mips_print_operand): Check operand mode instead
29781 of operator mode.
29782
29783 2014-01-17 Jeff Law <law@redhat.com>
29784
29785 PR middle-end/57904
29786 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
29787 so that pass_ccp runs first.
29788
29789 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29790
29791 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
29792 (ix86_adjust_cost): Use !TARGET_XXX.
29793 (do_reorder_for_imul): Likewise.
29794 (swap_top_of_ready_list): Likewise.
29795 (ix86_sched_reorder): Likewise.
29796
29797 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29798
29799 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29800 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
29801 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
29802 (intel_memset): New. Duplicate slm_memset.
29803 (intel_cost): New. Duplicate slm_cost.
29804 (m_INTEL): New macro.
29805 (processor_target_table): Add "intel".
29806 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
29807 with PROCESSOR_INTEL for "intel".
29808 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
29809 PROCESSOR_SILVERMONT.
29810 (ix86_issue_rate): Likewise.
29811 (ix86_adjust_cost): Likewise.
29812 (ia32_multipass_dfa_lookahead): Likewise.
29813 (swap_top_of_ready_list): Likewise.
29814 (ix86_sched_reorder): Likewise.
29815 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
29816 instead of TARGET_OPT_AGU.
29817 * config/i386/i386.h (TARGET_INTEL): New.
29818 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
29819 (processor_type): Add PROCESSOR_INTEL.
29820 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
29821 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
29822
29823 2014-01-17 Marek Polacek <polacek@redhat.com>
29824
29825 PR c/58346
29826 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
29827 size is zero.
29828
29829 2014-01-17 Richard Biener <rguenther@suse.de>
29830
29831 PR tree-optimization/46590
29832 * opts.c (default_options_table): Add entries for
29833 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
29834 all enabled at -O1 but not for -Og.
29835 * common.opt (fbranch-count-reg): Remove Init(1).
29836 (fmove-loop-invariants): Likewise.
29837 (ftree-pta): Likewise.
29838
29839 2014-01-17 Jakub Jelinek <jakub@redhat.com>
29840
29841 * config/i386/i386.c (ix86_data_alignment): For compatibility with
29842 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
29843 decls to at least the GCC 4.8 used alignments.
29844
29845 PR fortran/59440
29846 * tree-nested.c (convert_nonlocal_reference_stmt,
29847 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
29848 of GIMPLE_BIND stmts, adjust associated decls.
29849
29850 2014-01-17 Richard Biener <rguenther@suse.de>
29851
29852 PR tree-optimization/46590
29853 * vec.h (vec<>::bseach): New member function implementing
29854 binary search according to C89 bsearch.
29855 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
29856 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
29857 bitmap pointer again. Make accesses_in_loop a flat array.
29858 (mem_ref_obstack): New global.
29859 (outermost_indep_loop): Adjust for mem_ref->stored changes.
29860 (mark_ref_stored): Likewise.
29861 (ref_indep_loop_p_2): Likewise.
29862 (set_ref_stored_in_loop): New helper function.
29863 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
29864 (memref_free): Adjust.
29865 (record_mem_ref_loc): Simplify.
29866 (gather_mem_refs_stmt): Adjust.
29867 (sort_locs_in_loop_postorder_cmp): New function.
29868 (analyze_memory_references): Sort accesses_in_loop after
29869 loop postorder number.
29870 (find_ref_loc_in_loop_cmp): New function.
29871 (for_all_locs_in_loop): Find relevant cluster of locs in
29872 accesses_in_loop and iterate without recursion.
29873 (execute_sm): Avoid uninit warning.
29874 (struct ref_always_accessed): Simplify.
29875 (ref_always_accessed::operator ()): Likewise.
29876 (ref_always_accessed_p): Likewise.
29877 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
29878 loop postorder numbers here.
29879 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
29880 numbers.
29881
29882 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
29883
29884 PR c++/57945
29885 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
29886 on decls for which assemble_alias has been called.
29887
29888 2014-01-17 Nick Clifton <nickc@redhat.com>
29889
29890 * config/msp430/msp430.opt: (mcpu): New option.
29891 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
29892 (msp430_option_override): Parse target_cpu. If the MCU name
29893 matches a generic string, clear target_mcu.
29894 (msp430_attr): Allow numeric interrupt values up to 63.
29895 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
29896 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
29897 option.
29898 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
29899 Add mcpu matches.
29900 * config/msp430/msp430.md (popm): Use %J rather than %I.
29901 (addsi3): Use msp430_nonimmediate_operand for operand 2.
29902 (addhi_cy_i): Use immediate_operand for operand 2.
29903 * doc/invoke.texi: Document -mcpu option.
29904
29905 2014-01-17 Richard Biener <rguenther@suse.de>
29906
29907 PR rtl-optimization/38518
29908 * df.h (df_analyze_loop): Declare.
29909 * df-core.c: Include cfgloop.h.
29910 (df_analyze_1): Split out main part of df_analyze.
29911 (df_analyze): Adjust.
29912 (loop_inverted_post_order_compute): New function.
29913 (loop_post_order_compute): Likewise.
29914 (df_analyze_loop): New function avoiding whole-function
29915 postorder computes.
29916 * loop-invariant.c (find_defs): Use df_analyze_loop.
29917 (find_invariants): Adjust.
29918 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
29919
29920 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
29921
29922 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
29923 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
29924
29925 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
29926
29927 * ipa-ref.c (ipa_remove_stmt_references): Fix references
29928 traversal when removing references.
29929
29930 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
29931
29932 PR ipa/59775
29933 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
29934
29935 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
29936
29937 PR middle-end/56791
29938 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
29939 pushing a reload for an autoinc when we had previously reloaded an
29940 inner part of the address.
29941
29942 2014-01-16 Jakub Jelinek <jakub@redhat.com>
29943
29944 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
29945 field.
29946 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
29947 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
29948 when not giving up or versioning for alias only because of
29949 loop->safelen.
29950 (vect_analyze_data_ref_dependences): Set to true.
29951 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
29952 is a GIMPLE_PHI.
29953 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
29954 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
29955 to the condition.
29956
29957 PR middle-end/58344
29958 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
29959
29960 PR target/59839
29961 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
29962 operand 0 predicate for gathers, use a new pseudo as subtarget.
29963
29964 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
29965
29966 PR middle-end/59609
29967 * lra-constraints.c (process_alt_operands): Add printing debug info.
29968 Check absence of input/output reloads for matched operands too.
29969
29970 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
29971
29972 PR rtl-optimization/59835
29973 * ira.c (ira_init_register_move_cost): Increase cost for
29974 impossible modes.
29975
29976 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
29977
29978 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
29979
29980 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
29981
29982 PR target/59780
29983 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
29984 non-register objects. Use gen_(high/low)part more consistently.
29985 Fix assertions.
29986
29987 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
29988
29989 PR target/59844
29990 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
29991 endian support, remove tests for WORDS_BIG_ENDIAN.
29992 (p8_mfvsrd_3_<mode>): Likewise.
29993 (reload_gpr_from_vsx<mode>): Likewise.
29994 (reload_gpr_from_vsxsf): Likewise.
29995 (p8_mfvsrd_4_disf): Likewise.
29996
29997 2014-01-16 Richard Biener <rguenther@suse.de>
29998
29999 PR rtl-optimization/46590
30000 * lcm.c (compute_antinout_edge): Use postorder iteration.
30001 (compute_laterin): Use inverted postorder iteration.
30002
30003 2014-01-16 Nick Clifton <nickc@redhat.com>
30004
30005 PR middle-end/28865
30006 * varasm.c (output_constant): Return the number of bytes actually
30007 emitted.
30008 (output_constructor_array_range): Update the field size with the
30009 number of bytes emitted by output_constant.
30010 (output_constructor_regular_field): Likewise. Also do not
30011 complain if the total number of bytes emitted is now greater
30012 than the expected fieldpos.
30013 * output.h (output_constant): Update prototype and descriptive comment.
30014
30015 2014-01-16 Marek Polacek <polacek@redhat.com>
30016
30017 PR middle-end/59827
30018 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
30019 it is error_mark_node.
30020
30021 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
30022
30023 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
30024 VALID_AVX256_REG_OR_OI_MODE.
30025
30026 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
30027
30028 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
30029 current procedure should be profiled.
30030
30031 2014-01-15 Andrew Pinski <apinski@cavium.com>
30032
30033 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
30034 of moving from/to the STACK_REG register class.
30035
30036 2014-01-15 Richard Henderson <rth@redhat.com>
30037
30038 PR debug/54694
30039 * reginfo.c (global_regs_decl): Globalize.
30040 * rtl.h (global_regs_decl): Declare.
30041 * ira.c (do_reload): Diagnose frame_pointer_needed and it
30042 reserved via global_regs.
30043
30044 2014-01-15 Teresa Johnson <tejohnson@google.com>
30045
30046 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
30047
30048 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
30049
30050 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
30051 and vmulosh rather than call gen_vec_widen_smult_*.
30052 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
30053 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
30054 (vec_widen_smult_even_v16qi): Likewise.
30055 (vec_widen_umult_even_v8hi): Likewise.
30056 (vec_widen_smult_even_v8hi): Likewise.
30057 (vec_widen_umult_odd_v16qi): Likewise.
30058 (vec_widen_smult_odd_v16qi): Likewise.
30059 (vec_widen_umult_odd_v8hi): Likewise.
30060 (vec_widen_smult_odd_v8hi): Likewise.
30061 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
30062 vmuloub rather than call gen_vec_widen_umult_*.
30063 (vec_widen_umult_lo_v16qi): Likewise.
30064 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
30065 vmulosb rather than call gen_vec_widen_smult_*.
30066 (vec_widen_smult_lo_v16qi): Likewise.
30067 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
30068 rather than call gen_vec_widen_umult_*.
30069 (vec_widen_umult_lo_v8hi): Likewise.
30070 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
30071 rather than call gen_vec_widen_smult_*.
30072 (vec_widen_smult_lo_v8hi): Likewise.
30073
30074 2014-01-15 Jeff Law <law@redhat.com>
30075
30076 PR tree-optimization/59747
30077 * ree.c (find_and_remove_re): Properly handle case where a second
30078 eliminated extension requires widening a copy created for elimination
30079 of a prior extension.
30080 (combine_set_extension): Ensure that the number of hard regs needed
30081 for a destination register does not change when we widen it.
30082
30083 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
30084
30085 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
30086 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
30087 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
30088 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
30089 (avr-*-rtems*): Likewise.
30090 (bfin*-rtems*): Likewise.
30091 (moxie-*-rtems*): Likewise.
30092 (h8300-*-rtems*): Likewise.
30093 (i[34567]86-*-rtems*): Likewise.
30094 (lm32-*-rtems*): Likewise.
30095 (m32r-*-rtems*): Likewise.
30096 (m68k-*-rtems*): Likewise.
30097 (microblaze*-*-rtems*): Likewise.
30098 (mips*-*-rtems*): Likewise.
30099 (powerpc-*-rtems*): Likewise.
30100 (sh-*-rtems*): Likewise.
30101 (sparc-*-rtems*): Likewise.
30102 (sparc64-*-rtems*): Likewise.
30103 (v850-*-rtems*): Likewise.
30104 (m32c-*-rtems*): Likewise.
30105
30106 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
30107
30108 PR rtl-optimization/59511
30109 * ira.c (ira_init_register_move_cost): Use memory costs for some
30110 cases of register move cost calculations.
30111 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
30112 instead of BB frequency.
30113 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
30114 * lra-assigns.c (find_hard_regno_for): Ditto.
30115
30116 2014-01-15 Richard Biener <rguenther@suse.de>
30117
30118 PR tree-optimization/59822
30119 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
30120 (vectorizable_load): Use it to hoist defs of uses of invariant
30121 loads out of the loop.
30122
30123 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
30124 Kugan Vivekanandarajah <kuganv@linaro.org>
30125
30126 PR target/59695
30127 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
30128 truncation.
30129
30130 2014-01-15 Richard Biener <rguenther@suse.de>
30131
30132 PR rtl-optimization/59802
30133 * lcm.c (compute_available): Use inverted postorder to seed
30134 the initial worklist.
30135
30136 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30137
30138 PR target/59803
30139 * config/s390/s390.c (s390_preferred_reload_class): Don't return
30140 ADDR_REGS for invalid symrefs in non-PIC code.
30141
30142 2014-01-15 Jakub Jelinek <jakub@redhat.com>
30143
30144 PR other/58712
30145 * builtins.c (determine_block_size): Initialize *probable_max_size
30146 even if len_rtx is CONST_INT.
30147
30148 2014-01-14 Andrew Pinski <apinski@cavium.com>
30149
30150 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
30151 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
30152 (cortexa53_tunings): Likewise.
30153 (aarch64_sched_issue_rate): New function.
30154 (TARGET_SCHED_ISSUE_RATE): Define.
30155
30156 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
30157
30158 * ira-costs.c (find_costs_and_classes): Add missed
30159 ira_init_register_move_cost_if_necessary.
30160
30161 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
30162
30163 PR target/59787
30164 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
30165
30166 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
30167
30168 PR target/59794
30169 * config/i386/i386.c (type_natural_mode): Add a bool parameter
30170 to indicate if type is used for function return value. Warn ABI
30171 change if the vector mode isn't available for function return value.
30172 (ix86_function_arg_advance): Pass false to type_natural_mode.
30173 (ix86_function_arg): Likewise.
30174 (ix86_gimplify_va_arg): Likewise.
30175 (function_arg_32): Don't warn ABI change.
30176 (ix86_function_value): Pass true to type_natural_mode.
30177 (ix86_return_in_memory): Likewise.
30178 (ix86_struct_value_rtx): Removed.
30179 (TARGET_STRUCT_VALUE_RTX): Likewise.
30180
30181 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
30182
30183 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
30184 converting a conditional jump into a conditional return.
30185
30186 2014-01-14 Richard Biener <rguenther@suse.de>
30187
30188 PR tree-optimization/58921
30189 PR tree-optimization/59006
30190 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
30191 hoisting invariant stmts.
30192 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
30193 invariant loads on the preheader edge if possible.
30194
30195 2014-01-14 Joey Ye <joey.ye@arm.com>
30196
30197 * doc/plugin.texi (Building GCC plugins): Update to C++.
30198
30199 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
30200
30201 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
30202 (_mm_rcp28_round_ss): Ditto.
30203 (_mm_rsqrt28_round_sd): Ditto.
30204 (_mm_rsqrt28_round_ss): Ditto.
30205 (_mm_rcp28_sd): Ditto.
30206 (_mm_rcp28_ss): Ditto.
30207 (_mm_rsqrt28_sd): Ditto.
30208 (_mm_rsqrt28_ss): Ditto.
30209 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
30210 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
30211 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
30212 (IX86_BUILTIN_RCP28SD): Ditto.
30213 (IX86_BUILTIN_RCP28SS): Ditto.
30214 (IX86_BUILTIN_RSQRT28SD): Ditto.
30215 (IX86_BUILTIN_RSQRT28SS): Ditto.
30216 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
30217 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
30218 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
30219 (ix86_expand_special_args_builtin): Expand new FTYPE.
30220 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
30221 (srcp14<mode>): Make insn unary.
30222 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
30223 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
30224 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
30225 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
30226 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
30227 Fix rounding: make it SAE only.
30228 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
30229 Ditto.
30230 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
30231 Ditto.
30232 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
30233 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
30234 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
30235 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
30236 (round_saeonly_mask_scalar_operand4): Ditto.
30237 (round_saeonly_mask_scalar_op3): Ditto.
30238 (round_saeonly_mask_scalar_op4): Ditto.
30239
30240 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30241
30242 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30243 Implement -maltivec=be for vec_insert and vec_extract.
30244
30245 2014-01-10 DJ Delorie <dj@redhat.com>
30246
30247 * config/msp430/msp430.md (call_internal): Don't allow memory
30248 references with SP as the base register.
30249 (call_value_internal): Likewise.
30250 * config/msp430/constraints.md (Yc): New. For memory references
30251 that don't use SP as a base register.
30252
30253 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
30254 "an integer without a # prefix"
30255 * config/msp430/msp430.md (epilogue_helper): Use it.
30256
30257 2014-01-13 Jakub Jelinek <jakub@redhat.com>
30258
30259 PR target/59617
30260 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
30261 AVX512F gather builtins.
30262 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
30263 on gather decls with INTEGER_TYPE masktype.
30264 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
30265 directly into the builtin rather than hoisting it before loop.
30266
30267 PR tree-optimization/59387
30268 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
30269 (scev_const_prop): If folded_casts and type has undefined overflow,
30270 use force_gimple_operand instead of force_gimple_operand_gsi and
30271 for each added stmt if it is assign with
30272 arith_code_with_undefined_signed_overflow, call
30273 rewrite_to_defined_overflow.
30274 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
30275 gimple-fold.h instead.
30276 (arith_code_with_undefined_signed_overflow,
30277 rewrite_to_defined_overflow): Moved to ...
30278 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
30279 rewrite_to_defined_overflow): ... here. No longer static.
30280 Include gimplify-me.h.
30281 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
30282 rewrite_to_defined_overflow): New prototypes.
30283
30284 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30285
30286 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
30287
30288 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
30289
30290 * builtins.c (get_object_alignment_2): Minor tweak.
30291 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
30292
30293 2014-01-13 Christian Bruel <christian.bruel@st.com>
30294
30295 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
30296 optimized non constant lengths.
30297
30298 2014-01-13 Jakub Jelinek <jakub@redhat.com>
30299
30300 PR libgomp/59194
30301 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
30302 load as __atomic_load_N if possible.
30303
30304 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
30305
30306 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
30307 target parameter.
30308 (rs6000_expand_builtin): Adjust call.
30309
30310 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
30311
30312 PR target/58115
30313 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
30314 * config/rs6000/rs6000.c: Include target-globals.h.
30315 (rs6000_set_current_function): Instead of doing target_reinit
30316 unconditionally, use save_target_globals_default_opts and
30317 restore_target_globals.
30318
30319 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
30320 FPSCR.
30321 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
30322 (rs6000_expand_builtin): Handle mffs and mtfsf.
30323 (rs6000_init_builtins): Define mffs and mtfsf.
30324 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
30325 (rs6000_mffs): New pattern.
30326 (rs6000_mtfsf): New pattern.
30327
30328 2014-01-11 Bin Cheng <bin.cheng@arm.com>
30329
30330 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
30331 Start narrowing with START. Apply candidate-use pair
30332 and check overall cost in narrowing.
30333 (iv_ca_prune): Pass new argument.
30334
30335 2014-01-10 Jeff Law <law@redhat.com>
30336
30337 PR middle-end/59743
30338 * ree.c (combine_reaching_defs): Ensure the defining statement
30339 occurs before the extension when optimizing extensions with
30340 different source and destination hard registers.
30341
30342 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
30343
30344 PR ipa/58585
30345 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
30346 vtables into the type inheritance graph.
30347
30348 2014-01-10 Jakub Jelinek <jakub@redhat.com>
30349
30350 PR rtl-optimization/59754
30351 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
30352 modes in the REGNO != REGNO case.
30353
30354 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30355
30356 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
30357
30358 2014-01-10 Jakub Jelinek <jakub@redhat.com>
30359
30360 PR tree-optimization/59745
30361 * tree-predcom.c (tree_predictive_commoning_loop): Call
30362 free_affine_expand_cache if giving up because components is NULL.
30363
30364 * target-globals.c (save_target_globals): Allocate < 4KB structs using
30365 GC in payload of target_globals struct instead of allocating them on
30366 the heap and the larger structs separately using GC.
30367 * target-globals.h (struct target_globals): Make regs, hard_regs,
30368 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
30369 of GTY((skip)) and change type to void *.
30370 (reset_target_globals): Cast loads from those fields to corresponding
30371 types.
30372
30373 2014-01-10 Steve Ellcey <sellcey@mips.com>
30374
30375 PR plugins/59335
30376 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
30377 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
30378 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
30379
30380 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
30381
30382 PR target/59744
30383 * aarch64-modes.def (CC_Zmode): New flags mode.
30384 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
30385 represents an equality.
30386 (aarch64_get_condition_code): Handle CC_Zmode.
30387 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
30388
30389 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30390
30391 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
30392 extraction in good case.
30393
30394 2014-01-10 Richard Biener <rguenther@suse.de>
30395
30396 PR tree-optimization/59374
30397 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
30398 checking after SLP discovery. Mark stmts not participating
30399 in any SLP instance properly.
30400
30401 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30402
30403 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
30404 when handling a SET rtx.
30405
30406 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30407
30408 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
30409 (cortex-a57): Likewise.
30410 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
30411
30412 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30413
30414 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
30415 non-iwmmxt builtins.
30416
30417 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
30418
30419 PR ipa/58252
30420 PR ipa/59226
30421 * ipa-devirt.c record_target_from_binfo): Take as argument
30422 stack of binfos and lookup matching one for virtual inheritance.
30423 (possible_polymorphic_call_targets_1): Update.
30424
30425 2014-01-10 Huacai Chen <chenhc@lemote.com>
30426
30427 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
30428 kernel strings for Loongson-2E/2F/3A.
30429
30430 2014-01-10 Jakub Jelinek <jakub@redhat.com>
30431
30432 PR middle-end/59670
30433 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
30434 is_gimple_call before calling gimple_call_internal_p.
30435
30436 2014-01-09 Steve Ellcey <sellcey@mips.com>
30437
30438 * Makefile.in (TREE_FLOW_H): Remove.
30439 (TREE_SSA_H): Add file names from tree-flow.h.
30440 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
30441 * tree.h: Remove tree-flow.h reference.
30442 * hash-table.h: Remove tree-flow.h reference.
30443 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
30444 reference with tree-ssa-loop.h.
30445
30446 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30447
30448 * doc/invoke.texi: Add -maltivec={be,le} options, and document
30449 default element-order behavior for -maltivec.
30450 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
30451 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
30452 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
30453 when targeting big endian, at least for now.
30454 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
30455
30456 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30457
30458 PR middle-end/47735
30459 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
30460 var satisfies use_register_for_decl, just take into account type
30461 alignment, rather than decl alignment.
30462
30463 PR tree-optimization/59622
30464 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
30465 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
30466 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
30467 Don't devirtualize for inplace at all. For targets.length () == 1,
30468 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
30469
30470 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
30471
30472 * config/i386/i386.md (cpu): Remove the unused btver1.
30473
30474 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
30475
30476 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
30477
30478 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30479
30480 PR target/58115
30481 * tree-core.h (struct target_globals): New forward declaration.
30482 (struct tree_target_option): Add globals field.
30483 * tree.h (TREE_TARGET_GLOBALS): Define.
30484 (prepare_target_option_nodes_for_pch): New prototype.
30485 * target-globals.h (struct target_globals): Define even if
30486 !SWITCHABLE_TARGET.
30487 * tree.c (prepare_target_option_node_for_pch,
30488 prepare_target_option_nodes_for_pch): New functions.
30489 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
30490 * config/i386/i386.c: Include target-globals.h.
30491 (ix86_set_current_function): Instead of doing target_reinit
30492 unconditionally, use save_target_globals_default_opts and
30493 restore_target_globals.
30494
30495 2014-01-09 Richard Biener <rguenther@suse.de>
30496
30497 PR tree-optimization/59715
30498 * tree-cfg.h (split_critical_edges): Declare.
30499 * tree-cfg.c (split_critical_edges): Export.
30500 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
30501
30502 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
30503
30504 * cfgexpand.c (expand_stack_vars): Optionally disable
30505 asan stack protection.
30506 (expand_used_vars): Likewise.
30507 (partition_stack_vars): Likewise.
30508 * asan.c (asan_emit_stack_protection): Optionally disable
30509 after return stack usage.
30510 (instrument_derefs): Optionally disable memory access instrumentation.
30511 (instrument_builtin_call): Likewise.
30512 (instrument_strlen_call): Likewise.
30513 (asan_protect_global): Optionally disable global variables protection.
30514 * doc/invoke.texi: Added doc for new options.
30515 * params.def: Added new options.
30516 * params.h: Likewise.
30517
30518 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30519
30520 PR rtl-optimization/59724
30521 * ifcvt.c (cond_exec_process_if_block): Don't call
30522 flow_find_head_matching_sequence with 0 longest_match.
30523 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
30524 non-active insns if !stop_after.
30525 (try_head_merge_bb): Revert 2014-01-07 changes.
30526
30527 2014-01-08 Jeff Law <law@redhat.com>
30528
30529 * ree.c (get_sub_rtx): New function, extracted from...
30530 (merge_def_and_ext): Here.
30531 (combine_reaching_defs): Use get_sub_rtx.
30532
30533 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
30534
30535 * cgraph.h (varpool_variable_node): Do not choke on null node.
30536
30537 2014-01-08 Catherine Moore <clm@codesourcery.com>
30538
30539 * config/mips/mips.md (simple_return): Attempt to use JRC
30540 for microMIPS.
30541 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
30542
30543 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
30544
30545 PR rtl-optimization/59137
30546 * reorg.c (steal_delay_list_from_target): Call update_block for
30547 elided insns.
30548 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
30549
30550 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30551
30552 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
30553 two duplicate entries.
30554
30555 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
30556
30557 Revert:
30558 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
30559
30560 * config/mips/mips.c (mips_truncated_op_cost): New function.
30561 (mips_rtx_costs): Adjust test for BADDU.
30562 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
30563
30564 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
30565
30566 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
30567 (*baddu_si): ...this new pattern.
30568
30569 2014-01-08 Jakub Jelinek <jakub@redhat.com>
30570
30571 PR ipa/59722
30572 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
30573
30574 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
30575
30576 PR middle-end/57748
30577 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
30578 inner_reference_p.
30579 (expand_expr, expand_normal): Adjust.
30580 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
30581 inner_reference_p. Use inner_reference_p to expand inner references.
30582 (store_expr): Adjust.
30583 * cfgexpand.c (expand_call_stmt): Adjust.
30584
30585 2014-01-08 Rong Xu <xur@google.com>
30586
30587 * gcov-io.c (gcov_var): Move from gcov-io.h.
30588 (gcov_position): Ditto.
30589 (gcov_is_error): Ditto.
30590 (gcov_rewrite): Ditto.
30591 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
30592 only part to libgcc/libgcov.h.
30593
30594 2014-01-08 Marek Polacek <polacek@redhat.com>
30595
30596 PR middle-end/59669
30597 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
30598
30599 2014-01-08 Marek Polacek <polacek@redhat.com>
30600
30601 PR sanitizer/59667
30602 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
30603
30604 2014-01-08 Jakub Jelinek <jakub@redhat.com>
30605
30606 PR rtl-optimization/59649
30607 * stor-layout.c (get_mode_bounds): For BImode return
30608 0 and STORE_FLAG_VALUE.
30609
30610 2014-01-08 Richard Biener <rguenther@suse.de>
30611
30612 PR middle-end/59630
30613 * gimple.h (is_gimple_builtin_call): Remove.
30614 (gimple_builtin_call_types_compatible_p): New.
30615 (gimple_call_builtin_p): New overload.
30616 * gimple.c (is_gimple_builtin_call): Remove.
30617 (validate_call): Rename to ...
30618 (gimple_builtin_call_types_compatible_p): ... this and export. Also
30619 check return types.
30620 (validate_type): New static function.
30621 (gimple_call_builtin_p): New overload and adjust.
30622 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
30623 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
30624 (gimple_fold_stmt_to_constant_1): Likewise.
30625 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
30626
30627 2014-01-08 Richard Biener <rguenther@suse.de>
30628
30629 PR middle-end/59471
30630 * gimplify.c (gimplify_expr): Gimplify register-register type
30631 VIEW_CONVERT_EXPRs to separate stmts.
30632
30633 2014-01-07 Jeff Law <law@redhat.com>
30634
30635 PR middle-end/53623
30636 * ree.c (combine_set_extension): Handle case where source
30637 and destination registers in an extension insn are different.
30638 (combine_reaching_defs): Allow source and destination registers
30639 in extension to be different under limited circumstances.
30640 (add_removable_extension): Remove restriction that the
30641 source and destination registers in the extension are the same.
30642 (find_and_remove_re): Emit a copy from the extension's
30643 destination to its source after the defining insn if
30644 the source and destination registers are different.
30645
30646 PR middle-end/59285
30647 * ifcvt.c (merge_if_block): If we are merging a block with more than
30648 one successor with a block with no successors, remove any BARRIER
30649 after the second block.
30650
30651 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
30652
30653 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
30654
30655 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
30656
30657 PR target/59652
30658 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
30659 for 14-bit register offsets when INT14_OK_STRICT is false.
30660
30661 2014-01-07 Roland Stigge <stigge@antcom.de>
30662 Michael Meissner <meissner@linux.vnet.ibm.com>
30663
30664 PR 57386/target
30665 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
30666 Only check TFmode for SPE constants. Don't check TImode or TDmode.
30667
30668 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
30669
30670 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
30671 -mcpu.
30672
30673 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
30674
30675 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
30676 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
30677 rtx is const0_rtx or not.
30678
30679 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
30680
30681 PR target/58115
30682 * target-globals.c (save_target_globals): Remove this_fn_optab
30683 handling.
30684 * toplev.c: Include optabs.h.
30685 (target_reinit): Temporarily restore the global options if another
30686 set of options are in force.
30687
30688 2014-01-07 Jakub Jelinek <jakub@redhat.com>
30689
30690 PR rtl-optimization/58668
30691 * cfgcleanup.c (flow_find_cross_jump): Don't count
30692 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
30693 to determine what is counted.
30694 (flow_find_head_matching_sequence): Use active_insn_p to determine
30695 what is counted.
30696 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
30697 counting change.
30698 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
30699 determine what is counted.
30700
30701 PR tree-optimization/59643
30702 * tree-predcom.c (split_data_refs_to_components): If one dr is
30703 read and one write, determine_offset fails and the write isn't
30704 in the bad component, just put the read into the bad component.
30705
30706 2014-01-07 Mike Stump <mikestump@comcast.net>
30707 Jakub Jelinek <jakub@redhat.com>
30708
30709 PR pch/59436
30710 * tree-core.h (struct tree_optimization_option): Change optabs
30711 type from unsigned char * to void *.
30712 * optabs.c (init_tree_optimization_optabs): Adjust
30713 TREE_OPTIMIZATION_OPTABS initialization.
30714
30715 2014-01-06 Jakub Jelinek <jakub@redhat.com>
30716
30717 PR target/59644
30718 * config/i386/i386.h (struct machine_function): Add
30719 no_drap_save_restore field.
30720 * config/i386/i386.c (ix86_save_reg): Use
30721 !cfun->machine->no_drap_save_restore instead of
30722 crtl->stack_realign_needed.
30723 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
30724 this function clears frame_pointer_needed. Set
30725 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
30726 and DRAP reg is needed.
30727
30728 2014-01-06 Marek Polacek <polacek@redhat.com>
30729
30730 PR c/57773
30731 * doc/implement-c.texi: Mention that other integer types are
30732 permitted as bit-field types in strictly conforming mode.
30733
30734 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
30735
30736 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
30737 is newly allocated.
30738
30739 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
30740
30741 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
30742
30743 2014-01-06 Martin Jambor <mjambor@suse.cz>
30744
30745 PR ipa/59008
30746 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
30747 to int.
30748 * ipa-prop.c (ipa_print_node_params): Fix indentation.
30749
30750 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
30751
30752 PR debug/59350
30753 PR debug/59510
30754 * var-tracking.c (add_stores): Preserve the value of the source even if
30755 we don't record the store.
30756
30757 2014-01-06 Terry Guo <terry.guo@arm.com>
30758
30759 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
30760
30761 2014-01-05 Iain Sandoe <iain@codesourcery.com>
30762
30763 PR bootstrap/59541
30764 * config/darwin.c (darwin_function_section): Adjust return values to
30765 correspond to optimisation changes made in r206070.
30766
30767 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
30768
30769 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
30770 from prefetch_block tune setting.
30771 (nocona_cost): Correct size of prefetch block to 64.
30772
30773 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
30774
30775 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
30776 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
30777 used to save the static chain register in the computation of the offset
30778 from which the FP registers need to be restored.
30779
30780 2014-01-04 Jakub Jelinek <jakub@redhat.com>
30781
30782 PR tree-optimization/59519
30783 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
30784 ICE if get_current_def (current_new_name) is already non-NULL, as long
30785 as it is a phi result of some other phi in *new_exit_bb that has
30786 the same argument.
30787
30788 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
30789 or vmovdqu* for misaligned_operand.
30790 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
30791 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
30792 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
30793 aligned_mem for AVX512F masked aligned load and store builtins and for
30794 non-temporal moves.
30795
30796 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
30797
30798 PR tree-optimization/59651
30799 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
30800 Address range for negative step should be added by TYPE_SIZE_UNIT.
30801
30802 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
30803
30804 * config/m68k/m68k.c (handle_move_double): Handle pushes with
30805 overlapping registers also for registers other than the stack pointer.
30806
30807 2014-01-03 Marek Polacek <polacek@redhat.com>
30808
30809 PR other/59661
30810 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
30811 __builtin_FILE.
30812
30813 2014-01-03 Jakub Jelinek <jakub@redhat.com>
30814
30815 PR target/59625
30816 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
30817 asm goto as jump.
30818
30819 * config/i386/i386.md (MODE_SIZE): New mode attribute.
30820 (push splitter): Use <P:MODE_SIZE> instead of
30821 GET_MODE_SIZE (<P:MODE>mode).
30822 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
30823 (mov -1, reg peephole2): Likewise.
30824 * config/i386/sse.md (*mov<mode>_internal,
30825 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
30826 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
30827 *<code><mode>3, *andnot<mode>3<mask_name>,
30828 <mask_codefor><code><mode>3<mask_name>): Likewise.
30829 * config/i386/subst.md (mask_mode512bit_condition,
30830 sd_mask_mode512bit_condition): Likewise.
30831
30832 2014-01-02 Xinliang David Li <davidxl@google.com>
30833
30834 PR tree-optimization/59303
30835 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
30836 (dump_predicates): Better output format.
30837 (pred_equal_p): New function.
30838 (is_neq_relop_p): Ditto.
30839 (is_neq_zero_form_p): Ditto.
30840 (pred_expr_equal_p): Ditto.
30841 (pred_neg_p): Ditto.
30842 (simplify_pred): Ditto.
30843 (simplify_preds_2): Ditto.
30844 (simplify_preds_3): Ditto.
30845 (simplify_preds_4): Ditto.
30846 (simplify_preds): Ditto.
30847 (push_pred): Ditto.
30848 (push_to_worklist): Ditto.
30849 (get_pred_info_from_cmp): Ditto.
30850 (is_degenerated_phi): Ditto.
30851 (normalize_one_pred_1): Ditto.
30852 (normalize_one_pred): Ditto.
30853 (normalize_one_pred_chain): Ditto.
30854 (normalize_preds): Ditto.
30855 (normalize_cond_1): Remove function.
30856 (normalize_cond): Ditto.
30857 (is_gcond_subset_of): Ditto.
30858 (is_subset_of_any): Ditto.
30859 (is_or_set_subset_of): Ditto.
30860 (is_and_set_subset_of): Ditto.
30861 (is_norm_cond_subset_of): Ditto.
30862 (pred_chain_length_cmp): Ditto.
30863 (convert_control_dep_chain_into_preds): Type change.
30864 (find_predicates): Ditto.
30865 (find_def_preds): Ditto.
30866 (destroy_predicates_vecs): Ditto.
30867 (find_matching_predicates_in_rest_chains): Ditto.
30868 (use_pred_not_overlap_with_undef_path_pred): Ditto.
30869 (is_pred_expr_subset): Ditto.
30870 (is_pred_chain_subset_of): Ditto.
30871 (is_included_in): Ditto.
30872 (is_superset_of): Ditto.
30873
30874 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
30875
30876 Update copyright years.
30877
30878 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
30879
30880 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
30881 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
30882 config/arc/arc.md, config/arc/arc.opt,
30883 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
30884 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
30885 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
30886 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
30887 config/linux-protos.h, config/linux.c, config/winnt-c.c,
30888 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
30889 vtable-verify.c, vtable-verify.h: Use the standard form for the
30890 copyright notice.
30891
30892 2014-01-02 Tobias Burnus <burnus@net-b.de>
30893
30894 * gcc.c (process_command): Update copyright notice dates.
30895 * gcov-dump.c: Ditto.
30896 * gcov.c: Ditto.
30897 * doc/cpp.texi: Bump @copying's copyright year.
30898 * doc/cppinternals.texi: Ditto.
30899 * doc/gcc.texi: Ditto.
30900 * doc/gccint.texi: Ditto.
30901 * doc/gcov.texi: Ditto.
30902 * doc/install.texi: Ditto.
30903 * doc/invoke.texi: Ditto.
30904
30905 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
30906
30907 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
30908
30909 2014-01-01 Jakub Jelinek <jakub@redhat.com>
30910
30911 * config/i386/sse.md (*mov<mode>_internal): Guard
30912 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
30913
30914 PR rtl-optimization/59647
30915 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
30916 new_rtx into UNSIGNED_FLOAT rtxes.
30917 \f
30918 Copyright (C) 2014 Free Software Foundation, Inc.
30919
30920 Copying and distribution of this file, with or without modification,
30921 are permitted in any medium without royalty provided the copyright
30922 notice and this notice are preserved.