re PR middle-end/63237 (error: invalid operand in unary operation)
[gcc.git] / gcc / ChangeLog
1 2014-09-12 Richard Biener <rguenther@suse.de>
2
3 PR middle-end/63237
4 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
5
6 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
7
8 * tree.c (integer_each_onep): New function.
9 * tree.h (integer_each_onep): Declare it.
10 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
11 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
12 (X & 1) == 0 for vector and complex.
13
14 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
15
16 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
17 for A57.
18 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
19 cost to spilling from integer to FP registers.
20
21 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
22
23 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
24 move handling.
25 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
26 are now handled correctly.
27
28 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
29
30 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
31 handling of CALLER_SAVE_REGS and POINTER_REGS.
32
33 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
34
35 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
36 the number of hard registers.
37
38 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
39 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
40 Anna Tikhonova <anna.tikhonova@intel.com>
41 Ilya Tocar <ilya.tocar@intel.com>
42 Andrey Turetskiy <andrey.turetskiy@intel.com>
43 Ilya Verbin <ilya.verbin@intel.com>
44 Kirill Yukhin <kirill.yukhin@intel.com>
45 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
46
47 * config/i386/sse.md
48 (define_mode_iterator VI48_AVX512VL): New.
49 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
50 "avx512f_vternlog<mode>_maskz" and update mode iterator.
51 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
52 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
53 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
54 "avx512f_vternlog<mode>_mask" and update mode iterator.
55 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
56 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
57 iterator.
58 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
59 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
60 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
61 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
62 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
63 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
64
65 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
66 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
67 Anna Tikhonova <anna.tikhonova@intel.com>
68 Ilya Tocar <ilya.tocar@intel.com>
69 Andrey Turetskiy <andrey.turetskiy@intel.com>
70 Ilya Verbin <ilya.verbin@intel.com>
71 Kirill Yukhin <kirill.yukhin@intel.com>
72 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
73
74 * config/i386/sse.md (VI128_256): Delete.
75 (define_mode_iterator VI124_256): New.
76 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
77 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
78 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
79 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
80 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
81 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
82 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
83 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
84 iterator.
85 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
86 in presence of AVX-512.
87
88 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
89 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
90 Anna Tikhonova <anna.tikhonova@intel.com>
91 Ilya Tocar <ilya.tocar@intel.com>
92 Andrey Turetskiy <andrey.turetskiy@intel.com>
93 Ilya Verbin <ilya.verbin@intel.com>
94 Kirill Yukhin <kirill.yukhin@intel.com>
95 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
96
97 * config/i386/sse.md
98 (define_expand "<avx512>_gathersi<mode>"): Rename from
99 "avx512f_gathersi<mode>".
100 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
101 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
102 (define_expand "<avx512>_gatherdi<mode>"): Rename from
103 "avx512f_gatherdi<mode>".
104 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
105 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
106 wide versions.
107 (define_expand "<avx512>_scattersi<mode>"): Rename from
108 "avx512f_scattersi<mode>".
109 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
110 (define_expand "<avx512>_scatterdi<mode>"): Rename from
111 "avx512f_scatterdi<mode>".
112 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
113
114 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
115
116 * ira.h (ira_finish_once): Delete.
117 * ira-int.h (target_ira_int::~target_ira_int): Declare.
118 (target_ira_int::free_ira_costs): Likewise.
119 (target_ira_int::free_register_move_costs): Likewise.
120 (ira_finish_costs_once): Delete.
121 * ira.c (free_register_move_costs): Replace with...
122 (target_ira_int::free_register_move_costs): ...this new function.
123 (target_ira_int::~target_ira_int): Define.
124 (ira_init): Call free_register_move_costs as a member function rather
125 than a global function.
126 (ira_finish_once): Delete.
127 * ira-costs.c (free_ira_costs): Replace with...
128 (target_ira_int::free_ira_costs): ...this new function.
129 (ira_init_costs): Call free_ira_costs as a member function rather
130 than a global function.
131 (ira_finish_costs_once): Delete.
132 * target-globals.c (target_globals::~target_globals): Call the
133 target_ira_int destructor.
134 * toplev.c: Include lra.h.
135 (finalize): Call lra_finish_once rather than ira_finish_once.
136
137 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
138
139 * common.opt (flto-odr-type-merging): New flag.
140 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
141 (types_same_for_odr): Likewise.
142 (odr_subtypes_equivalent_p): Likewise.
143 (add_type_duplicate): Do not walk type variants.
144 (register_odr_type): New function.
145 * ipa-utils.h (register_odr_type): Declare.
146 (odr_type_p): New function.
147 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
148 TYPE_DECLs
149 * doc/invoke.texi (-flto-odr-type-merging): Document.
150 * tree.c (need_assembler_name_p): Compute ODR names when asked
151 for it.
152 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
153
154 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
155
156 PR target/63228
157 * config/i386/i386.c (ix86_option_override_internal): Also turn
158 off OPTION_MASK_ABI_X32 for -m16.
159
160 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
161
162 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
163 GPR instead of P.
164
165 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
166
167 PR target/58757
168 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
169 Directly forward to __*_DENORM_MIN__.
170
171 2014-09-11 David Malcolm <dmalcolm@redhat.com>
172
173 * rtl.h (LABEL_REF_LABEL): New macro.
174
175 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
176 of XEXP (, 0), where we know that we have a LABEL_REF.
177 * cfgbuild.c (make_edges): Likewise.
178 (purge_dead_tablejump_edges): Likewise.
179 * cfgexpand.c (convert_debug_memory_address): Likewise.
180 * cfgrtl.c (patch_jump_insn): Likewise.
181 * combine.c (distribute_notes): Likewise.
182 * cse.c (hash_rtx_cb): Likewise.
183 (exp_equiv_p): Likewise.
184 (fold_rtx): Likewise.
185 (check_for_label_ref): Likewise.
186 * cselib.c (rtx_equal_for_cselib_1): Likewise.
187 (cselib_hash_rtx): Likewise.
188 * emit-rtl.c (mark_label_nuses): Likewise.
189 * explow.c (convert_memory_address_addr_space): Likewise.
190 * final.c (output_asm_label): Likewise.
191 (output_addr_const): Likewise.
192 * gcse.c (add_label_notes): Likewise.
193 * genconfig.c (walk_insn_part): Likewise.
194 * genrecog.c (validate_pattern): Likewise.
195 * ifcvt.c (cond_exec_get_condition): Likewise.
196 (noce_emit_store_flag): Likewise.
197 (noce_get_alt_condition): Likewise.
198 (noce_get_condition): Likewise.
199 * jump.c (maybe_propagate_label_ref): Likewise.
200 (mark_jump_label_1): Likewise.
201 (redirect_exp_1): Likewise.
202 (rtx_renumbered_equal_p): Likewise.
203 * lra-constraints.c (operands_match_p): Likewise.
204 * reload.c (operands_match_p): Likewise.
205 (find_reloads): Likewise.
206 * reload1.c (set_label_offsets): Likewise.
207 * reorg.c (get_branch_condition): Likewise.
208 * rtl.c (rtx_equal_p_cb): Likewise.
209 (rtx_equal_p): Likewise.
210 * rtlanal.c (reg_mentioned_p): Likewise.
211 (rtx_referenced_p): Likewise.
212 (get_condition): Likewise.
213 * sched-vis.c (print_value): Likewise.
214 * varasm.c (const_hash_1): Likewise.
215 (compare_constant): Likewise.
216 (const_rtx_hash_1): Likewise.
217 (output_constant_pool_1): Likewise.
218
219 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
220
221 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
222 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
223 instead of minus.
224 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
225 cr6_test_for_lt_reverse): Ditto.
226
227 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
228
229 PR c++/61489
230 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
231
232 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
233
234 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
235 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
236 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
237 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
238 Delete.
239
240 (aarch64_fold_builtin): Remove all reinterpret cases.
241
242 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
243
244 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
245
246 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
247 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
248 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
249 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
250 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
251 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
252 aarch64_reinterpretv2df<mode>): Delete.
253
254 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
255
256 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
257 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
258 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
259 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
260 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
261 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
262 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
263 vreinterpret_u32_f64): Use cast.
264
265 * config/aarch64/iterators.md (VD_RE): Delete.
266
267 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
268
269 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
270 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
271 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
272 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
273 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
274 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
275 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
276 Replace inline assembler with __aarch64_vset_lane_any.
277
278 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
279
280 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
281 types.
282 (vmull_high_lane_s32): Likewise.
283 (vmull_high_lane_u16): Likewise.
284 (vmull_high_lane_u32): Likewise.
285
286 2014-09-11 Jason Merrill <jason@redhat.com>
287
288 PR c++/58678
289 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
290
291 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
292
293 PR target/63223
294 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
295 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
296 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
297
298 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
299 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
300 Anna Tikhonova <anna.tikhonova@intel.com>
301 Ilya Tocar <ilya.tocar@intel.com>
302 Andrey Turetskiy <andrey.turetskiy@intel.com>
303 Ilya Verbin <ilya.verbin@intel.com>
304 Kirill Yukhin <kirill.yukhin@intel.com>
305 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
306
307 * config/i386/sse.md
308 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
309 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
310 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
311 New.
312 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
313 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
314 iterator.
315 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
316 New.
317 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
318 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
319 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
320 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
321 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
322 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
323 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
324 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
325 iterator.
326 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
327 New.
328 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
329 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
330 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
331
332 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
333
334 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
335 to access removed nodes.
336
337 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
338
339 PR tree-optimization/63186
340 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
341 (mark_nonssa_use): Likewise.
342 (verify_non_ssa_vars): Verify all header blocks for label
343 definitions.
344
345 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
346 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
347 Anna Tikhonova <anna.tikhonova@intel.com>
348 Ilya Tocar <ilya.tocar@intel.com>
349 Andrey Turetskiy <andrey.turetskiy@intel.com>
350 Ilya Verbin <ilya.verbin@intel.com>
351 Kirill Yukhin <kirill.yukhin@intel.com>
352 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
353
354 * config/i386/sse.md
355 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
356 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
357 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
358 "<avx2_avx512f>_permvar<mode><mask_name>".
359 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
360 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
361 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
362 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
363 Ditto.
364 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
365 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
366 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
367 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
368
369 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
370
371 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
372 V2DF, V4SF, DF, and DI modes.
373 (vsx_fmav2df2): Likewise.
374 (vsx_float_fix_<mode>2): Likewise.
375 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
376
377 2014-09-10 Xinliang David Li <davidxl@google.com>
378
379 PR target/63209
380 * config/arm/arm.md (movcond_addsi): Handle case where source
381 and target operands are the same.
382
383 2014-09-10 David Malcolm <dmalcolm@redhat.com>
384
385 * final.c (this_is_asm_operands): Strengthen this variable from
386 rtx to const rtx_insn *.
387 * output.h (this_is_asm_operands): Likewise.
388 * rtl-error.c (location_for_asm): Strengthen param "insn" from
389 const_rtx to const rtx_insn *.
390 (diagnostic_for_asm): Likewise.
391 * rtl-error.h (error_for_asm): Likewise.
392 (warning_for_asm): Likewise.
393
394 2014-09-10 David Malcolm <dmalcolm@redhat.com>
395
396 * genextract.c (print_header): When writing out insn_extract to
397 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
398 * recog.h (insn_extract): Strengthen the param from rtx to
399 rtx_insn *.
400
401 2014-09-10 Mike Stump <mikestump@comcast.net>
402
403 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
404 8.6.1.
405
406 2014-09-10 Martin Jambor <mjambor@suse.cz>
407
408 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
409 (analyze): Do not set analyze flag if expand_thunk returns false;.
410 (create_wrapper): Likewise.
411 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
412
413 2014-09-10 Martin Jambor <mjambor@suse.cz>
414
415 PR ipa/61654
416 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
417 new decl properly. Analyze the new thunk if it is expanded.
418
419 2014-09-10 Andreas Schwab <schwab@suse.de>
420
421 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
422 [USED_FOR_TARGET]: Define.
423
424 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
425
426 * config/mips/mips.c (mips_secondary_reload_class): Handle
427 regno < 0 case.
428
429 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
430
431 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
432 assignment.
433
434 2014-09-10 Jakub Jelinek <jakub@redhat.com>
435
436 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
437 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
438 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
439 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
440 flag_delete_null_pointer_checks for them.
441 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
442 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
443 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
444 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
445 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
446 stmt's iterator.
447 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
448 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
449 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
450 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
451 * doc/invoke.texi (-fsanitize=nonnull-attribute,
452 -fsanitize=returns-nonnull-attribute): Document.
453
454 * ubsan.h (struct ubsan_mismatch_data): Removed.
455 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
456 * ubsan.c (ubsan_source_location): For unknown locations,
457 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
458 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
459 Allow more than one location and arbitrary extra arguments passed
460 in ... instead of through MISMATCH pointer.
461 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
462 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
463 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
464 callers.
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/sse.md
476 (define_mode_iterator VI48F): New.
477 (define_insn "<avx512>_compress<mode>_mask"): Rename from
478 "avx512f_compress<mode>_mask" and update mode iterator.
479 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
480 "avx512f_compressstore<mode>_mask" and update mode iterator.
481 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
482 "avx512f_expand<mode>_maskz" and update mode iterator.
483 (define_insn "<avx512>_expand<mode>_mask"): Rename from
484 "avx512f_expand<mode>_mask" and update mode iterator.
485
486 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
487 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
488 Anna Tikhonova <anna.tikhonova@intel.com>
489 Ilya Tocar <ilya.tocar@intel.com>
490 Andrey Turetskiy <andrey.turetskiy@intel.com>
491 Ilya Verbin <ilya.verbin@intel.com>
492 Kirill Yukhin <kirill.yukhin@intel.com>
493 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
494
495 * config/i386/i386.c
496 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
497 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
498 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
499 avx512dq_rangepv4sf_mask.
500 * config/i386/sse.md
501 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
502 UNSPEC_RANGE.
503 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
504 (define_insn "reduces<mode>"): Ditto.
505 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
506 Ditto.
507 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
508 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
509 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
510
511 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
512 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
513 Anna Tikhonova <anna.tikhonova@intel.com>
514 Ilya Tocar <ilya.tocar@intel.com>
515 Andrey Turetskiy <andrey.turetskiy@intel.com>
516 Ilya Verbin <ilya.verbin@intel.com>
517 Kirill Yukhin <kirill.yukhin@intel.com>
518 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
519
520 * config/i386/i386.c
521 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
522 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
523 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
524 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
525 avx512vl_getmantv2df_mask.
526 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
527 avx512f_vgetmantv4sf_round.
528 * config/i386/sse.md
529 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
530 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
531 mode iterator.
532 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
533 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
534 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
535 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
536 iterator..
537 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
538 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
539 update mode iterator.
540 (define_expand
541 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
542 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
543 mode iterator.
544 (define_insn
545 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
546 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
547 update mode iterator.
548 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
549 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
550 iterator..
551 (define_insn
552 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
553 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
554 mode iterator..
555 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
556 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
557 update mode iterator.
558 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
559 "avx512f_getmant<mode><round_saeonly_name>".
560
561 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
562
563 PR ipa/63166
564 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
565
566 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
567 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
568 Anna Tikhonova <anna.tikhonova@intel.com>
569 Ilya Tocar <ilya.tocar@intel.com>
570 Andrey Turetskiy <andrey.turetskiy@intel.com>
571 Ilya Verbin <ilya.verbin@intel.com>
572 Kirill Yukhin <kirill.yukhin@intel.com>
573 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
574
575 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
576 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
577 (define_mode_iterator FMAMODE_AVX512): New.
578 (define_mode_iterator FMAMODE): Remove conditions.
579 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
580 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
581 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
582 mode iterator.
583 (define_mode_iterator FMAMODE_NOVF512): Remove.
584 (define_insn "*fma_fmadd_<mode>"): Rename from
585 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
586 FMAMODE mode iterator.
587 (define_mode_iterator VF_SF_AVX512VL): New.
588 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
589 Use VF_SF_AVX512VL mode iterator.
590 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
591 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
592 iterator.
593 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
594 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
595 iterator.
596 (define_insn "*fma_fmsub_<mode>"): Rename from
597 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
598 FMAMODE mode iterator.
599 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
600 Use VF_SF_AVX512VL mode iterator.
601 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
602 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
603 iterator.
604 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
605 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
606 iterator.
607 (define_insn "*fma_fnmadd_<mode>"): Rename from
608 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
609 use FMAMODE mode iterator.
610 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
611 Use VF_SF_AVX512VL mode iterator.
612 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
613 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
614 iterator.
615 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
616 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
617 iterator.
618 (define_insn "*fma_fnmsub_<mode>"): Rename from
619 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
620 FMAMODE mode iterator.
621 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
622 Use VF_SF_AVX512VL mode iterator.
623 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
624 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
625 iterator.
626 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
627 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
628 iterator.
629 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
630 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
631 use VF_AVX512VL mode iterator.
632 (define_insn "*fma_fmaddsub_<mode>"): Rename from
633 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
634 remove subst usage.
635 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
636 Use VF_SF_AVX512VL mode iterator.
637 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
638 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
639 iterator.
640 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
641 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
642 iterator.
643 (define_insn "*fma_fmsubadd_<mode>"): Rename from
644 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
645 remove usage of subst.
646 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
647 Use VF_SF_AVX512VL mode iterator.
648 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
649 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
650 iterator.
651 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
652 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
653 iterator.
654
655 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
656
657 Revert r213751:
658 * calls.c (precompute_arguments): Check
659 promoted_for_signed_and_unsigned_p and set the promoted mode.
660 (promoted_for_signed_and_unsigned_p): New function.
661 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
662 and set the promoted mode.
663 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
664 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
665 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
666
667 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
668
669 * opth-gen.awk: Generate mapping from cpp message reasons to the
670 options that enable them.
671 * doc/options.texi (CppReason): Document.
672
673 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
674
675 * doc/invoke.texi (Wnormalized=): Update.
676
677 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
678
679 PR target/63195
680 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
681 operands. Split off the constant operand alternative to ...
682 (*bool<mode>3_imm): New.
683
684 2014-09-09 David Malcolm <dmalcolm@redhat.com>
685
686 * rtl.h (single_set_2): Strengthen first param from const_rtx to
687 const rtx_insn *, and move prototype to above...
688 (single_set): ...this. Convert this from a macro to an inline
689 function, enforcing the requirement that the param is a const
690 rtx_insn *.
691 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
692
693 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
694 Strengthen both params from rtx to rtx_insn *.
695 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
696 Likewise; introduce locals "producer_set", "consumer_set", using
697 them in place of "producer" and "consumer" when dealing with SET
698 rather than insn.
699 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
700 when invoking single_set in region guarded by INSN_P.
701 (avr_out_bitop): Likewise.
702 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
703 region guarded by GET_CODE check, using methods to strengthen
704 local "this_insn" from rtx to rtx_insn *, and for clarity.
705 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
706 Strengthen local "insn" from rtx to rtx_insn *.
707 (define_insn_and_split "xload<mode>_A"): Likewise.
708 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
709 "insn".
710 (find_load): Likewise for return type.
711 (workaround_speculation): Likewise for both locals named
712 "load_insn".
713 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
714 local "cc0_user".
715 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
716 for local "prev".
717 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
718 param 2.
719 * config/h8300/h8300.c (notice_update_cc): Likewise.
720 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
721 "insn" and "dep_insn".
722 (exact_store_load_dependency): Likewise for both params.
723 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
724 since this now clashes with inline function. Instead, delay
725 calling single_set until the point where its needed, and then
726 assign the result to "compare_set" and rework the conditional that
727 follows.
728 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
729 local "last" from rtx to rtx_insn *.
730 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
731 second param.
732 (mips_store_data_bypass_p): Likewise for both params.
733 * config/mips/mips.c (mips_load_store_insns): Likewise for second
734 param.
735 (mips_store_data_bypass_p): Likewise for both params.
736 (mips_orphaned_high_part_p): Likewise for param "insn".
737 * config/mn10300/mn10300.c (extract_bundle): Likewise.
738 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
739 Introduce local rtx "insn2_pat".
740 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
741 "ninsn".
742 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
743 Introduce local rtx "set", using it in place of "insn" for the
744 result of single_set. This appears to fix a bug, since the call
745 to find_regno_note on a SET does nothing.
746 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
747 params from rtx to rtx_insn *.
748 (set_to_load_agen): Likewise.
749 * config/s390/s390.c (s390_label_align): Likewise for local
750 "prev_insn". Introduce new rtx locals "set" and "src", using
751 them in place of "prev_insn" for the results of single_set
752 and SET_SRC respectively.
753 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
754 Introduce new rtx local "set" using in place of "jump" for the
755 result of single_set. Use SET_SRC (set) rather than plain
756 XEXP (set, 1).
757 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
758 rtx to rtx_insn *.
759 (noncall_uses_reg): Likewise.
760 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
761 guarded by GET_CODE check, using its methods for clarity, and to
762 enable strengthening local "this_insn" from rtx to rtx_insn *.
763 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
764 "insn" from rtx to rtx_insn *.
765 (define_expand "umulhisi3"): Likewise.
766 (define_expand "smulsi3_highpart"): Likewise.
767 (define_expand "umulsi3_highpart"): Likewise.
768 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
769 local "after". Replace GET_CODE check with a dyn_cast,
770 introducing new local rtx_sequence * "seq", using insn method for
771 typesafety.
772
773 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
774 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
775 place of "insn" once we're dealing with patterns rather than the
776 input insn.
777 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
778 (scan_trace): Likewise for local "elt", updating lookups within
779 sequence to use insn method rather than element method.
780 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
781 to rtx_insn *.
782 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
783 * ifcvt.c (noce_try_abs): Likewise for local "insn".
784 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
785 invoking single_set.
786 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
787 "insn" from rtx to rtx_insn *.
788 (skip_usage_debug_insns): Likewise for return type, adding a
789 checked cast.
790 (check_secondary_memory_needed_p): Likewise for local "insn".
791 (inherit_reload_reg): Likewise.
792 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
793 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
794 checked casts.
795 (store_data_bypass_p): Likewise for both params.
796 (if_test_bypass_p): Likewise.
797 * recog.h (store_data_bypass_p): Likewise for both params.
798 (if_test_bypass_p): Likewise.
799 * reload.c (find_equiv_reg): Likewise for local "where".
800 * reorg.c (delete_jump): Likewise for param "insn".
801 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
802 to const rtx_insn *.
803 * store-motion.c (replace_store_insn): Likewise for param "del".
804 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
805 and use its methods for clarity, and to strengthen local "del"
806 from rtx to rtx_insn *.
807 (build_store_vectors): Use insn method of "st" when calling
808 replace_store_insn for typesafety and clarity.
809
810 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
811
812 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
813 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
814 on how to make it legal in future.
815
816 2014-09-09 David Malcolm <dmalcolm@redhat.com>
817
818 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
819 to rtx_insn *.
820 (restinsn): Likewise.
821 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
822 Likewise for param.
823 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
824 Likewise.
825 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
826 first param.
827 (arc_hazard): Likewise for both params.
828 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
829 checked casts to rtx_sequence * and uses of the insn method for
830 type-safety.
831 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
832 (arc_adjust_insn_length): Likewise for param "insn".
833 (struct insn_length_parameters_s): Likewise for first param of
834 "get_variants" callback field.
835 (arc_get_insn_variants): Likewise for first param and local
836 "inner". Replace a check of GET_CODE with a dyn_cast to
837 rtx_sequence *, using methods for type-safety and clarity.
838 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
839 rtx_sequence * and uses of the insn method for type-safety when
840 invoking arc_adjust_insn_length.
841 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
842 for param.
843 (arm_address_offset_is_imm): Likewise.
844 (struct tune_params): Likewise for params 1 and 3 of the
845 "sched_adjust_cost" callback field.
846 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
847 params 1 and 3 ("insn" and "dep").
848 (xscale_sched_adjust_cost): Likewise.
849 (fa726te_sched_adjust_cost): Likewise.
850 (cortexa7_older_only): Likewise for param "insn".
851 (cortexa7_younger): Likewise.
852 (arm_attr_length_move_neon): Likewise.
853 (arm_address_offset_is_imm): Likewise.
854 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
855 * config/avr/avr.c (avr_notice_update_cc): Likewise.
856 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
857 (workaround_speculation): Likewise for local "last_condjump".
858 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
859 (shadow_or_blockage_p): Likewise.
860 (get_unit_reqs): Likewise.
861 (get_unit_operand_masks): Likewise.
862 (c6x_registers_update): Likewise.
863 (returning_call_p): Likewise.
864 (can_use_callp): Likewise.
865 (convert_to_callp): Likewise.
866 (find_last_same_clock): Likwise for local "t".
867 (reorg_split_calls): Likewise for local "shadow".
868 (hwloop_pattern_reg): Likewise for param "insn".
869 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
870 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
871 (frv_extract_membar): Likewise.
872 (frv_optimize_membar_local): Strengthen param "last_membar" from
873 rtx * to rtx_insn **.
874 (frv_optimize_membar_global): Strengthen param "membar" from rtx
875 to rtx_insn *.
876 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
877 to rtx_insn **.
878 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
879 both params from rtx to rtx_insn *.
880 (ia64_ld_address_bypass_p): Likewise.
881 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
882 "insn".
883 (ia64_safe_type): Likewise.
884 (group_barrier_needed): Likewise.
885 (safe_group_barrier_needed): Likewise.
886 (ia64_single_set): Likewise.
887 (is_load_p): Likewise.
888 (record_memory_reference): Likewise.
889 (get_mode_no_for_insn): Likewise.
890 (important_for_bundling_p): Likewise.
891 (unknown_for_bundling_p): Likewise.
892 (ia64_st_address_bypass_p): Likewise for both params.
893 (ia64_ld_address_bypass_p): Likewise.
894 (expand_vselect): Introduce new local rtx_insn * "insn", using it
895 in place of rtx "x" after the emit_insn call.
896 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
897 Strengthen param from rtx to rtx_insn *.
898 (ix86_agi_dependent): Likewise for both params.
899 (ix86_attr_length_immediate_default): Likewise for param 1.
900 (ix86_attr_length_address_default): Likewise for param.
901 (ix86_attr_length_vex_default): Likewise for param 1.
902 * config/i386/i386.c (ix86_attr_length_immediate_default):
903 Likewise for param "insn".
904 (ix86_attr_length_address_default): Likewise.
905 (ix86_attr_length_vex_default): Likewise.
906 (ix86_agi_dependent): Likewise for both params.
907 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
908 (vselect_insn): Likewise for this variable.
909 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
910 for param 1.
911 (m68k_sched_attr_opy_type): Likewise.
912 * config/m68k/m68k.c (sched_get_operand): Likewise.
913 (sched_attr_op_type): Likewise.
914 (m68k_sched_attr_opx_type): Likewise.
915 (m68k_sched_attr_opy_type): Likewise.
916 (sched_get_reg_operand): Likewise.
917 (sched_get_mem_operand): Likewise.
918 (m68k_sched_address_bypass_p): Likewise for both params.
919 (sched_get_indexed_address_scale): Likewise.
920 (m68k_sched_indexed_address_bypass_p): Likewise.
921 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
922 (m68k_sched_indexed_address_bypass_p): Likewise.
923 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
924 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
925 removing another.
926 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
927 params from rtx to rtx_insn *.
928 (mips_fmadd_bypass): Likewise.
929 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
930 (mips_linked_madd_p): Likewise.
931 (mips_macc_chains_last_hilo): Likewise for this variable.
932 (mips_macc_chains_record): Likewise for param.
933 (vr4130_last_insn): Likewise for this variable.
934 (vr4130_swap_insns_p): Likewise for both params.
935 (mips_ls2_variable_issue): Likewise for param.
936 (mips_need_noat_wrapper_p): Likewise for param "insn".
937 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
938 in place of "x" after the emit_insn.
939 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
940 params from rtx to rtx_insn *.
941 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
942 (pa_combine_instructions): Introduce local "par" for result of
943 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
944 to make_insn_raw.
945 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
946 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
947 (rl78_alloc_physical_registers_op1): Likewise.
948 (rl78_alloc_physical_registers_op2): Likewise.
949 (rl78_alloc_physical_registers_ro1): Likewise.
950 (rl78_alloc_physical_registers_cmp): Likewise.
951 (rl78_alloc_physical_registers_umul): Likewise.
952 (rl78_alloc_address_registers_macax): Likewise.
953 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
954 * config/s390/predicates.md (execute_operation): Likewise for
955 local "insn".
956 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
957 params.
958 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
959 (addr_generation_dependency_p): Likewise for param "insn".
960 (s390_agen_dep_p): Likewise for both params.
961 (s390_fpload_toreg): Likewise for param "insn".
962 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
963 * config/sh/sh.c (sh_loop_align): Likewise for param and local
964 "next".
965 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
966 * config/sh/sh_treg_combine.cc
967 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
968 and local "i".
969 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
970 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
971 "and_insn", "load", "shift".
972 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
973 "insn".
974 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
975 for XEXP (note, 0) of the REG_CC_SETTER note.
976 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
977 rtx_insn *, eliminating a checked cast made redundant by this.
978 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
979 to rtx_insn *.
980 * genattr.c (main): When writing out the prototype to
981 const_num_delay_slots, strengthen the param from rtx to
982 rtx_insn *.
983 * genattrtab.c (write_const_num_delay_slots): Likewise when
984 writing out the implementation of const_num_delay_slots.
985 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
986 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
987 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
988 favor of new rtx locals "src" and "set" and new local rtx_insn *
989 "insn" and "seq".
990 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
991 to rtx_insn *.
992 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
993 locals "cond", "if_then_else", "set" and new rtx_insn * locals
994 "insn" and "seq".
995 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
996 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
997 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
998 the top-level scope, replacing with new more tightly-scoped rtx
999 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
1000 "new_insn", "copy_of_insn_b", and make local rtx "set" more
1001 tightly-scoped.
1002 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
1003 rtx_insn *.
1004 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
1005 "move_insn".
1006 (ira_setup_alts): Likewise for param "insn".
1007 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
1008 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
1009 and an rtx_insn *.
1010 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
1011 new more-tightly scoped rtx locals "add3_insn", "insn",
1012 "add2_insn" and rtx_insn * "move_insn".
1013 * postreload-gcse.c (eliminate_partially_redundant_load): Add
1014 checked cast on result of gen_move_insn when invoking
1015 extract_insn.
1016 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
1017 rtx_insn *.
1018 (verify_changes): Add a checked cast on "object" when invoking
1019 insn_invalid_p.
1020 (extract_insn_cached): Strengthen param "insn" from rtx to
1021 rtx_insn *.
1022 (extract_constrain_insn_cached): Likewise.
1023 (extract_insn): Likewise.
1024 * recog.h (insn_invalid_p): Likewise for param 1.
1025 (recog_memoized): Likewise for param.
1026 (extract_insn): Likewise.
1027 (extract_constrain_insn_cached): Likewise.
1028 (extract_insn_cached): Likewise.
1029 * reload.c (can_reload_into): Likewise for local "test_insn".
1030 * reload.h (cleanup_subreg_operands): Likewise for param.
1031 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
1032 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
1033 result of emit_insn. Remove a checked cast made redundant by this
1034 change.
1035 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
1036 rtx to rtx_insn *.
1037 * sel-sched.c (get_reg_class): Likewise.
1038
1039 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
1040 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1041
1042 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
1043 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
1044 Define.
1045 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
1046
1047 2014-09-09 David Malcolm <dmalcolm@redhat.com>
1048
1049 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
1050 const rtx_insn *, and from rtx to rtx_insn * for the other
1051 overloaded variant.
1052 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
1053 INSN_LOCATION, since we know INSN_P holds.
1054 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
1055 (insn_file): Likewise.
1056 (insn_scope): Likewise.
1057 (insn_location): Likewise.
1058
1059 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
1060 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
1061 for the result of gen_load_const_gp.
1062 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
1063 param from rtx to rtx_insn *.
1064 * config/rs6000/rs6000.c (output_call): Likewise.
1065 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
1066 introducing a checked cast to rtx_sequence * and use of the insn
1067 method.
1068 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
1069 from rtx to rtx_insn *.
1070 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
1071 (insn_line): Likewise.
1072 (insn_file): Likewise.
1073 (insn_location): Likewise.
1074 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
1075 from rtx to rtx_insn *.
1076 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
1077 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
1078 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
1079 via a checked cast.
1080 * reorg.c (relax_delay_slots): Strengthen locals named "after"
1081 from rtx to rtx_insn *; use methods of "pat" for type-safety.
1082
1083 2014-09-09 David Malcolm <dmalcolm@redhat.com>
1084
1085 * combine.c (try_combine): Eliminate checked cast on result of
1086 gen_rtx_INSN.
1087 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
1088 autogenerated one by strengthening the return type and params 2 and 3
1089 from rtx to rtx_insn *, and by naming the params.
1090 * gengenrtl.c (special_rtx): Add INSN to those that are
1091 special-cased.
1092 * rtl.h (gen_rtx_INSN): New prototype.
1093
1094 2014-09-09 David Malcolm <dmalcolm@redhat.com>
1095
1096 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
1097 than NULL_RTX.
1098 (no_equiv): Likewise.
1099 (update_equiv_regs): Likewise.
1100 (setup_reg_equiv): Likewise. Strengthen locals "elem",
1101 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
1102 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
1103 clarity.
1104 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
1105 from rtx to rtx_insn_list *.
1106 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
1107 rtx_insn_list * and use methods for clarity and typesafety.
1108 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
1109 "list".
1110 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
1111 redundant check on INSN_P (insns): this cannot hold, as "insns" is
1112 an INSN_LIST, not an insn.
1113 (reverse_equiv_p): Strengthen local "insns" from rtx to
1114 rtx_insn_list * and use methods for clarity and typesafety.
1115 (contains_reloaded_insn_p): Likewise for local "list".
1116
1117 2014-09-09 Jiong Wang <jiong.wang@arm.com>
1118
1119 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
1120 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
1121 (arm_builtin_vectorized_function): Likewise.
1122 * config/arm/arm_neon_builtins.def: New macro for copysignf.
1123 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
1124
1125 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
1126
1127 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
1128 * builtins.h (default_target_builtins): Likewise.
1129 * gcse.h (default_target_gcse): Likewise.
1130 * target-globals.h (target_globals): Add a destructor. Convert
1131 void-pointer fields back to their real type and change from
1132 GTY((atomic)) to GTY((skip)).
1133 (restore_target_globals): Remove casts accordingly.
1134 * target-globals.c (save_target_globals): Use XCNEW rather than
1135 ggc_internal_cleared_alloc to allocate non-GC structures.
1136 Use ggc_cleared_alloc to allocate the target_globals structure
1137 itself.
1138 (target_globals::~target_globals): Define.
1139
1140 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1141
1142 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
1143 mnemonic instead of fldmfdd.
1144 * config/arm/arm.c (vfp_output_fstmd): Rename to...
1145 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
1146 Output vpush when address register is SP.
1147 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
1148 (vfp_output_vstmd): ... This.
1149 * config/arm/vfp.md (push_multi_vfp): Update call to
1150 vfp_output_vstmd.
1151
1152 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1153
1154 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
1155
1156 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1157
1158 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
1159 (*sqrtdf2_vfp): Likewise.
1160 (*cmpsf_vfp): Likewise.
1161 (*cmpsf_trap_vfp): Likewise.
1162 (*cmpdf_vfp): Likewise.
1163 (*cmpdf_trap_vfp): Likewise.
1164
1165 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1166
1167 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
1168 (*truncdfsf2_vfp): Likewise.
1169 (*truncsisf2_vfp): Likewise.
1170 (*truncsidf2_vfp): Likewise.
1171 (fixuns_truncsfsi2): Likewise.
1172 (fixuns_truncdfsi2): Likewise.
1173 (*floatsisf2_vfp): Likewise.
1174 (*floatsidf2_vfp): Likewise.
1175 (floatunssisf2): Likewise.
1176 (floatunssidf2): Likewise.
1177
1178 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1179
1180 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
1181 (*muldf3_vfp): Likewise.
1182 (*mulsf3negsf_vfp): Likewise.
1183 (*muldf3negdf_vfp): Likewise.
1184 (*mulsf3addsf_vfp): Likewise.
1185 (*muldf3adddf_vfp): Likewise.
1186 (*mulsf3subsf_vfp): Likewise.
1187 (*muldf3subdf_vfp): Likewise.
1188 (*mulsf3negsfaddsf_vfp): Likewise.
1189 (*fmuldf3negdfadddf_vfp): Likewise.
1190 (*mulsf3negsfsubsf_vfp): Likewise.
1191 (*muldf3negdfsubdf_vfp): Likewise.
1192
1193 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1194
1195 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
1196 (*absdf2_vfp): Likewise.
1197 (*negsf2_vfp): Likewise.
1198 (*negdf2_vfp): Likewise.
1199 (*addsf3_vfp): Likewise.
1200 (*adddf3_vfp): Likewise.
1201 (*subsf3_vfp): Likewise.
1202 (*subdf3_vfp): Likewise.
1203 (*divsf3_vfp): Likewise.
1204 (*divdf3_vfp): Likewise.
1205
1206 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1207
1208 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
1209 multiple.
1210 (arm_print_operand): Don't convert real values to decimal
1211 representation in default case.
1212 (fp_immediate_constant): Delete.
1213 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
1214 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
1215 syntax.
1216 (*thumb2_movsi_vfp): Likewise.
1217 (*movdi_vfp): Likewise.
1218 (*movdi_vfp_cortexa8): Likewise.
1219 (*movhf_vfp_neon): Likewise.
1220 (*movhf_vfp): Likewise.
1221 (*movsf_vfp): Likewise.
1222 (*thumb2_movsf_vfp): Likewise.
1223 (*movdf_vfp): Likewise.
1224 (*thumb2_movdf_vfp): Likewise.
1225 (*movsfcc_vfp): Likewise.
1226 (*thumb2_movsfcc_vfp): Likewise.
1227 (*movdfcc_vfp): Likewise.
1228 (*thumb2_movdfcc_vfp): Likewise.
1229
1230 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
1231
1232 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
1233 (-mtune): Likewise.
1234 (-mcpu): Likewise.
1235
1236 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1237
1238 PR target/61749
1239 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
1240 Use qualifier_immediate for last operand. Rename to...
1241 (aarch64_types_ternop_lane_qualifiers): ... This.
1242 (TYPES_QUADOP): Rename to...
1243 (TYPES_TERNOP_LANE): ... This.
1244 (aarch64_simd_expand_args): Return const0_rtx when encountering user
1245 error. Change return of 0 to return of NULL_RTX.
1246 (aarch64_crc32_expand_builtin): Likewise.
1247 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
1248 ICE when expanding unknown builtin.
1249 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
1250 TERNOP_LANE qualifiers.
1251 (sqdmlsl_lane): Likewise.
1252 (sqdmlal_laneq): Likewise.
1253 (sqdmlsl_laneq): Likewise.
1254 (sqdmlal2_lane): Likewise.
1255 (sqdmlsl2_lane): Likewise.
1256 (sqdmlal2_laneq): Likewise.
1257 (sqdmlsl2_laneq): Likewise.
1258
1259 2014-09-09 Nick Clifton <nickc@redhat.com>
1260
1261 * doc/invoke.texi (Optimization Options): Add missing @gol to the
1262 end of a line.
1263 (S/390 and zSeries Options): Remove superfluous word from the
1264 description of the -mhotpatch option.
1265
1266 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
1267
1268 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
1269 * ira.c: #include "shrink-wrap.h"
1270 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
1271 * ifcvt.c: #include "shrink-wrap.h"
1272 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
1273
1274 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
1275
1276 * common/config/picochip/picochip-common.c: Remove.
1277 * config.gcc: Remove support for picochip.
1278 * config/picochip/constraints.md: Remove.
1279 * config/picochip/dfa_space.md: Remove.
1280 * config/picochip/dfa_speed.md: Remove.
1281 * config/picochip/picochip-protos.h: Remove.
1282 * config/picochip/picochip.c: Remove.
1283 * config/picochip/picochip.h: Remove.
1284 * config/picochip/picochip.md: Remove.
1285 * config/picochip/picochip.opt: Remove.
1286 * config/picochip/predicates.md: Remove.
1287 * config/picochip/t-picochip: Remove.
1288 * doc/md.texi: Don't document picochi.
1289
1290 2014-09-08 David Malcolm <dmalcolm@redhat.com>
1291
1292 * basic-block.h (control_flow_insn_p): Strengthen param from
1293 const_rtx to const rtx_insn *.
1294 * cfgbuild.c (control_flow_insn_p): Likewise.
1295
1296 2014-09-08 David Malcolm <dmalcolm@redhat.com>
1297
1298 * gcse.c (modify_mem_list): Strengthen this variable from
1299 vec<rtx> * to vec<rtx_insn *> *.
1300 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
1301 vec<rtx_insn *>.
1302 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
1303 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
1304 (record_last_mem_set_info): Strengthen param "insn" from rtx to
1305 rtx_insn *.
1306 (record_last_set_info): Likewise for local "last_set_insn".
1307
1308 2014-09-08 DJ Delorie <dj@redhat.com>
1309
1310 * doc/invoke.texi (MSP430 Options): Add -minrt.
1311
1312 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1313
1314 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
1315 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
1316 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
1317 handling SH_SPLAT.
1318 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
1319 of extracted lane.
1320 (adjust_splat): New function.
1321 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
1322 (dump_swap_insn_table): Add case for SH_SPLAT.
1323
1324 2014-09-08 Richard Biener <rguenther@suse.de>
1325
1326 PR ipa/63196
1327 * tree-inline.c (copy_loops): The source loop header should
1328 always be non-NULL.
1329 (tree_function_versioning): If loops need fixup after removing
1330 unreachable blocks fix them.
1331 * omp-low.c (simd_clone_adjust): Do not add incr block to
1332 loop under construction.
1333
1334 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
1335
1336 * config/aarch64/aarch64-builtins.c
1337 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
1338
1339 2014-09-08 Joseph Myers <joseph@codesourcery.com>
1340
1341 * config/i386/cygming.h (TF_SIZE): Remove.
1342 * config/i386/darwin.h (TF_SIZE): Remove.
1343 * config/i386/dragonfly.h (TF_SIZE): Remove.
1344 * config/i386/freebsd.h (TF_SIZE): Remove.
1345 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
1346 * config/i386/openbsdelf.h (TF_SIZE): Remove.
1347 * config/i386/sol2.h (TF_SIZE): Remove.
1348 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
1349 * config/ia64/linux.h (TF_SIZE): Remove.
1350 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
1351 * doc/tm.texi: Regenerate.
1352 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
1353
1354 2014-09-08 Joseph Myers <joseph@codesourcery.com>
1355
1356 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
1357 Remove.
1358 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
1359 Remove.
1360 * doc/tm.texi: Regenerate.
1361 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
1362 Poison.
1363 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
1364 * config/cris/cris.h (__make_dp): Remove.
1365
1366 2014-09-08 Richard Biener <rguenther@suse.de>
1367
1368 PR bootstrap/63204
1369 * cfgloop.c (mark_loop_for_removal): Track former header
1370 unconditionally.
1371 * cfgloop.h (struct loop): Add former_header member unconditionally.
1372 * loop-init.c (fix_loop_structure): Enable bogus loop removal
1373 diagnostic unconditionally.
1374
1375 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
1376
1377 PR target/63190
1378 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
1379 constraint for operand0 and remove write only modifier from operand3.
1380
1381 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
1382
1383 PR rtl-optimization/62208
1384 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
1385 rather than const0_rtx in eq/ne-xor simplifications.
1386
1387 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
1388
1389 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
1390 (arc_output_mi_thunk): Likewise.
1391
1392 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
1393 arguments to silence bogus warning.
1394
1395 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
1396
1397 PR middle-end/63171
1398 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
1399
1400 2014-09-06 Tom de Vries <tom@codesourcery.com>
1401
1402 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
1403 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
1404 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1405
1406 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
1407
1408 PR target/63188
1409 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
1410 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
1411
1412 2014-09-05 Easwaran Raman <eraman@google.com>
1413
1414 PR rtl-optimization/62146
1415 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
1416 hoisted instruction unconditional.
1417
1418 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
1419
1420 PR target/63187
1421 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
1422 Do not allow any_mask_operand for operands[2].
1423 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
1424
1425 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1426
1427 * config/arc/arc.c (arc_print_operand): Use insn method of
1428 final_sequence for type-safety.
1429 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
1430 "insn" from rtx to rtx_insn *.
1431 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
1432 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
1433 Likewise for locals "branch", "label".
1434 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
1435 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
1436 (same_cmp_following_p): Likewise for locals "i2", "i3".
1437 * config/sh/sh_optimize_sett_clrt.cc
1438 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
1439 param "cbranch_insn".
1440 * function.c (convert_jumps_to_returns): Likewis for local "jump".
1441 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
1442 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
1443 const rtx_insn *.
1444 (condjump_p): Likewise.
1445 (condjump_in_parallel_p): Likewise.
1446 (pc_set): Likewise.
1447 (any_uncondjump_p): Likewise.
1448 (any_condjump_p): Likewise.
1449 (condjump_label): Likewise.
1450 (returnjump_p): Strengthen param "insn" from rtx to
1451 const rtx_insn *.
1452 (onlyjump_p): Strengthen param "insn" from const_rtx to
1453 const rtx_insn *.
1454 (jump_to_label_p): Likewise.
1455 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
1456 (invert_jump): Likewise.
1457 * reorg.c (simplejump_or_return_p): Add checked cast when calling
1458 simplejump_p.
1459 (get_jump_flags): Strengthen param "insn" from rtx to
1460 const rtx_insn *.
1461 (get_branch_condition): Likewise.
1462 (condition_dominates_p): Likewise.
1463 (make_return_insns): Move declaration of local "pat" earlier, to
1464 after we've handled NONJUMP_INSN_P and non-sequences, using its
1465 methods to simplify the code and for type-safety.
1466 * rtl.h (find_constant_src): Strengthen param from const_rtx to
1467 const rtx_insn *.
1468 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
1469 (condjump_p): Strengthen param from const_rtx to
1470 const rtx_insn *.
1471 (any_condjump_p): Likewise.
1472 (any_uncondjump_p): Likewise.
1473 (pc_set): Likewise.
1474 (condjump_label): Likewise.
1475 (simplejump_p): Likewise.
1476 (returnjump_p): Likewise.
1477 (onlyjump_p): Likewise.
1478 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
1479 (invert_jump): Likewise.
1480 (condjump_in_parallel_p): Strengthen param from const_rtx to
1481 const rtx_insn *.
1482 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
1483 to const rtx_insn *.
1484 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
1485 to const rtx_insn *.
1486 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
1487
1488 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1489
1490 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
1491 above the conditional, and convert the check on GET_CODE to a
1492 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
1493 the conditional. Simplify the conditional by using methods of
1494 "trial_seq".
1495
1496 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1497
1498 * haifa-sched.c (check_clobbered_conditions): Strengthen local
1499 "link" from rtx to rtx_insn_list *, and use its methods for
1500 clarity and type-safety.
1501 (toggle_cancelled_flags): Likewise.
1502 (restore_last_backtrack_point): Likewise.
1503 (queue_to_ready): Use insn method of "link" in one place.
1504 (schedule_block): Strengthen local "link" from rtx to
1505 rtx_insn_list *, and use its methods for clarity and type-safety.
1506
1507 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1508
1509 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
1510 param "insn" from const_rtx to const rtx_insn *.
1511 (sched_get_reverse_condition_uncached): Likewise.
1512 (sched_get_condition_with_rev): Likewise.
1513 (sched_has_condition_p): Likewise.
1514 (sched_insns_conditions_mutex_p): Likewise for both params.
1515 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
1516 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
1517 (setup_insn_reg_uses): Move local "list" to be more tightly
1518 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
1519 its methods for clarity and type-safety.
1520 (sched_analyze_1): Strengthen local "pending" from rtx to
1521 rtx_insn_list *, and local "pending_mem" from rtx to
1522 rtx_expr_list *. Use methods of each for clarity and type-safety.
1523 (sched_analyze_2): Likewise.
1524 (sched_analyze_insn): Likewise.
1525
1526 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
1527 param from const_rtx to const rtx_insn *.
1528 (sched_insns_conditions_mutex_p): Likewise for both params.
1529 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
1530 param.
1531
1532 * system.h (CONST_CAST_RTX_INSN): New macro.
1533
1534 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1535
1536 * recog.c (peep2_attempt): Strengthen return type from rtx to
1537 rtx_insn *.
1538 (peep2_update_life): Likewise for params "last", "prev", removing
1539 a checked cast made redundant by this.
1540 (peephole2_optimize): Likewise for local "last".
1541
1542 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1543
1544 * basic-block.h (set_block_for_insn): Eliminate this macro in
1545 favor of...
1546 * rtl.h (set_block_for_insn): New inline function, imposing the
1547 requirement that the "insn" param is an rtx_insn *.
1548
1549 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1550
1551 * caller-save.c (setup_save_areas): Strengthen local "insn" from
1552 rtx to rtx_insn *.
1553 * final.c (get_call_reg_set_usage): Likewise for first param,
1554 eliminating a checked cast.
1555 * regs.h (get_call_reg_set_usage): Likewise for first param.
1556 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
1557 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
1558 cast, replacing references to "x" with "call_insn" where
1559 appropriate.
1560 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
1561 rtx_insn *, adding a checked cast.
1562
1563 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1564
1565 * output.h (final_scan_insn): Strengthen first param from rtx to
1566 rtx_insn *.
1567
1568 * final.c (final_scan_insn): Likewise, renaming it back from
1569 "uncast_insn" to "insn", eliminating the checked cast.
1570
1571 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
1572 "vec" with an rtx_sequence * "seq", taking a copy of
1573 "final_sequence", and using methods of "seq" for clarity, and for
1574 type-safety in the calls to final_scan_insn.
1575 * config/mips/mips.c (mips_output_conditional_branch): Use methods
1576 of "final_sequence" for clarity, and for type-safety in the call to
1577 final_scan_insn.
1578 * config/sh/sh.c (print_slot): Strengthen param from rtx to
1579 rtx_sequence * and rename from "insn" to "seq".
1580
1581 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1582
1583 * jump.c (delete_related_insns): Introduce a new local "table" by
1584 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
1585 get_labels method of "table" to simplify access to the labels in
1586 the jump table.
1587
1588 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1589
1590 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
1591 f_minmaxs, f_minmaxd types.
1592
1593 2014-09-05 Richard Biener <rguenther@suse.de>
1594
1595 * cfgloop.c (mark_loop_for_removal): Record former header
1596 when ENABLE_CHECKING.
1597 * cfgloop.h (strut loop): Add former_header member when
1598 ENABLE_CHECKING.
1599 * loop-init.c (fix_loop_structure): Sanity check loops
1600 marked for removal if they re-appeared.
1601
1602 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1603
1604 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
1605 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
1606
1607 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
1608 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
1609 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
1610 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
1611 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
1612 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
1613 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
1614 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
1615 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
1616 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
1617 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
1618 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
1619 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
1620 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
1621 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
1622 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
1623 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
1624 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
1625 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
1626 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
1627 with int{32,16,8}_t.
1628
1629 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1630
1631 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
1632 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
1633 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
1634 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
1635 Remove temporary __asm__ and reimplement.
1636
1637 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1638
1639 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
1640 handling cmge, cmgt, cmeq, cmtst.
1641
1642 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
1643 cmlt, cmgeu, cmgtu, cmtst): Remove.
1644
1645 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
1646 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
1647 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
1648 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
1649
1650 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1651
1652 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
1653 TYPES_TST): Define.
1654 (aarch64_fold_builtin): Update pattern for cmtst.
1655
1656 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
1657 Declare.
1658
1659 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
1660
1661 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
1662 Switch operands, separate out more cases, refactor.
1663
1664 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
1665
1666 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
1667 argument; rename old version to...
1668 (aarch64_const_vec_all_same_in_range_p): ...this.
1669 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
1670
1671 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
1672
1673 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1674
1675 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
1676 Remove qualifier_const_pointer, update comment.
1677
1678 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1679
1680 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
1681
1682 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1683
1684 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
1685 varargs with pointer parameter.
1686 (aarch64_simd_expand_builtin): pass pointer into previous.
1687
1688 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1689
1690 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
1691 alus_ext.
1692
1693 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1694
1695 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
1696 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
1697 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
1698 Replace temporary asm with call to builtin.
1699 (vrbit_p8, vrbitq_p8): New functions.
1700
1701 2014-09-05 Richard Biener <rguenther@suse.de>
1702
1703 * cfgloop.c (mark_loop_for_removal): New function.
1704 * cfgloop.h (mark_loop_for_removal): Declare.
1705 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
1706 (merge_blocks): Likewise.
1707 (duplicate_block): Likewise.
1708 * except.c (sjlj_emit_dispatch_table): Likewise.
1709 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
1710 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
1711 (thread_through_loop_header): Likewise.
1712
1713 2014-09-05 Richard Biener <rguenther@suse.de>
1714
1715 PR middle-end/63148
1716 * fold-const.c (try_move_mult_to_index): Remove.
1717 (fold_binary_loc): Do not call it.
1718 * tree-data-ref.c (dr_analyze_indices): Strip conversions
1719 from the base object again.
1720
1721 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
1722
1723 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
1724 DImode.
1725
1726 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1727
1728 PR target/55701
1729 * config/arm/arm.md (setmem): New pattern.
1730 * config/arm/arm-protos.h (struct tune_params): New fields.
1731 (arm_gen_setmem): New prototype.
1732 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
1733 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
1734 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
1735 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
1736 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
1737 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
1738 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
1739 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
1740 (arm_const_inline_cost): New function.
1741 (arm_block_set_max_insns): New function.
1742 (arm_block_set_non_vect_profit_p): New function.
1743 (arm_block_set_vect_profit_p): New function.
1744 (arm_block_set_unaligned_vect): New function.
1745 (arm_block_set_aligned_vect): New function.
1746 (arm_block_set_unaligned_non_vect): New function.
1747 (arm_block_set_aligned_non_vect): New function.
1748 (arm_block_set_vect, arm_gen_setmem): New functions.
1749
1750 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1751
1752 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
1753
1754 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1755
1756 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
1757
1758 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1759
1760 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
1761 an rtx.
1762 * valtrack.h: Adjust.
1763
1764 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1765
1766 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
1767 an rtx.
1768 (emit_jump_insn_before_noloc): Likewise.
1769 (emit_call_insn_before_noloc): Likewise.
1770 (emit_label_before): Likewise.
1771 (emit_label_after): Likewise.
1772 (emit_insn_before_setloc): Likewise.
1773 (emit_jump_insn_before_setloc): Likewise.
1774 (emit_call_insn_before_setloc): Likewise.
1775 (emit_call_insn_before): Likewise.
1776 * rtl.h: Adjust.
1777
1778 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1779
1780 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
1781 rtx_insn *, eliminating a checked cast.
1782
1783 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1784
1785 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
1786 const_rtx to const rtx_insn *.
1787 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
1788 cast.
1789
1790 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1791
1792 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
1793 fixup_args_size_notes.
1794 * expr.c (fixup_args_size_notes): Strengthen first two params from
1795 rtx to rtx_insn *, eliminating a checked cast.
1796 * rtl.h (fixup_args_size_notes): Strengthen first two params from
1797 rtx to rtx_insn *.
1798
1799 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1800
1801 * haifa-sched.c (get_ready_element): Strengthen return type from
1802 rtx to rtx_insn *.
1803 * sched-int.h (get_ready_element): Likewise.
1804
1805 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
1806
1807 PR target/63165
1808 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
1809 indexed_or_indirect_operand instead of memory_operand.
1810 (floatsi<mode>2_lfiwzx_mem): Ditto.
1811
1812 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1813
1814 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
1815 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
1816 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
1817
1818 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1819
1820 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
1821 rtx.
1822 (get_last_nonnote_insn): Likewise.
1823 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
1824 * resource.c (find_basic_block): Likewise.
1825 * rtl.h: Adjust.
1826 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
1827 const_rtx.
1828
1829 2014-09-04 David Malcolm <dmalcolm@redhat.com>
1830
1831 * genattr.c (main): Within the prototype of insn_latency written
1832 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
1833 * genautomata.c (output_internal_maximal_insn_latency_func):
1834 Within the implementation of insn_latency written out to
1835 insn-automata.c, strengthen both params from rtx to rtx_insn *,
1836 eliminating a pair of checked casts.
1837
1838 2014-09-04 David Malcolm <dmalcolm@redhat.com>
1839
1840 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
1841 rtx_insn *.
1842
1843 * rtl.h (eh_returnjump_p): Likewise.
1844
1845 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
1846
1847 * Makefile.in (TAGS): Handle constructs in timevar.def.
1848
1849 2014-09-04 Guozhi Wei <carrot@google.com>
1850
1851 PR target/62040
1852 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
1853 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
1854 it into two patterns.
1855 (move_lo_quad_internal_be_<mode>): Likewise.
1856
1857 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1858
1859 * doc/options.texi: Document that Var and Init are required if CPP
1860 is given.
1861 * optc-gen.awk: Require Var and Init if CPP is given.
1862 * common.opt (Wpedantic): Use Init.
1863
1864 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1865
1866 * config/rs6000/rs6000.c (special_handling_values): Add
1867 SH_EXTRACT.
1868 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
1869 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
1870 as swappable with special handling SH_EXTRACT. Remove
1871 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
1872 optimization.
1873 (adjust_extract): New function.
1874 (handle_special_swappables): Add default to case statement; add
1875 case for SH_EXTRACT that calls adjust_extract.
1876 (dump_swap_insn_table): Handle SH_EXTRACT.
1877
1878 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1879
1880 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
1881 selection of 0th memory doubleword, regardless of endianness.
1882
1883 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1884
1885 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
1886
1887 2014-09-04 Alan Modra <amodra@gmail.com>
1888
1889 PR debug/60655
1890 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
1891 can't be output.
1892
1893 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
1894
1895 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
1896 * targhooks.c (default_dwarf_frame_reg_mode): New function.
1897 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
1898 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
1899 * doc/tm.texi: Regenerate.
1900 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
1901 selection logic to default_dwarf_frame_reg_mode.
1902
1903 2014-09-03 Marek Polacek <polacek@redhat.com>
1904
1905 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
1906 by -Wall.
1907
1908 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
1909
1910 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
1911 the automodified register.
1912
1913 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
1914
1915 * output.h (get_some_local_dynamic_name): Declare.
1916 * final.c (some_local_dynamic_name): New variable.
1917 (get_some_local_dynamic_name): New function.
1918 (final_end_function): Clear some_local_dynamic_name.
1919 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
1920 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1921 (print_operand): Report an error if '%&' is used inappropriately.
1922 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
1923 (get_some_local_dynamic_name_1): Delete.
1924 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
1925 (rs6000_get_some_local_dynamic_name): Delete.
1926 (rs6000_get_some_local_dynamic_name_1): Delete.
1927 (print_operand): Report an error if '%&' is used inappropriately.
1928 * config/s390/s390.c (machine_function): Remove some_ld_name.
1929 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1930 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
1931 * config/sparc/sparc.c: Include rtl-iter.h.
1932 (machine_function): Remove some_ld_name.
1933 (sparc_print_operand): Report an error if '%&' is used inappropriately.
1934 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1935
1936 2014-09-03 Richard Henderson <rth@redhat.com>
1937
1938 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
1939 (aarch64_popwb_pair_reg): Remove.
1940 (aarch64_set_frame_expr): Remove.
1941 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
1942 the restore ops performed by the insns generated.
1943 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
1944 insn. Perform the calls_eh_return addition later; do not attempt to
1945 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
1946 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
1947 special markup at all. Load cfun->machine->frame.hard_fp_offset
1948 into a local variable.
1949 (aarch64_frame_pointer_required): Don't check calls_alloca.
1950
1951 2014-09-03 Richard Biener <rguenther@suse.de>
1952
1953 * opts.c (default_options_optimization): Adjust
1954 max-combine-insns to 2 for -Og.
1955
1956 2014-09-03 Martin Jambor <mjambor@suse.cz>
1957
1958 PR ipa/62015
1959 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
1960 pass-trough jump functions correctly.
1961
1962 2014-09-03 Martin Jambor <mjambor@suse.cz>
1963
1964 PR ipa/61986
1965 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
1966 created replacements in ascending order of offsets.
1967 (known_aggs_to_agg_replacement_list): Likewise.
1968
1969 2014-09-03 Martin Liska <mliska@suse.cz>
1970
1971 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
1972 is set to set uninitialized value for vnresult.
1973
1974 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1975
1976 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
1977 for TARGET_MUST_PASS_IN_STACK.
1978
1979 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1980
1981 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
1982 for TARGET_ARG_PARTIAL_BYTES.
1983
1984 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1985
1986 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
1987 instructions for varargs implementation.
1988 (nds32_expand_epilogue): Emit stack adjustment instructions for
1989 varargs implementation.
1990
1991 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1992
1993 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
1994 optimization detection.
1995
1996 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1997
1998 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
1999 arguments.
2000 (nds32_function_arg_advance): Deal with nameless arguments.
2001 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
2002 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
2003 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
2004
2005 2014-09-03 Richard Biener <rguenther@suse.de>
2006
2007 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
2008 (struct bb_bitmap_sets): Remove deferred member.
2009 (BB_DEFERRED): Remove.
2010 (defer_or_phi_translate_block): Remove.
2011 (compute_antic_aux): Remove deferring of blocks, assert
2012 proper iteration order.
2013 (compute_antic): Do not set BB_DEFERRED.
2014 (eliminate): Allocate el_avail of proper size initially.
2015
2016 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2017
2018 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
2019 according to the value of crtl->args.pretend_args_size.
2020
2021 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2022
2023 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
2024 varargs information.
2025
2026 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2027
2028 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
2029 implementation for TARGET_SETUP_INCOMING_VARARGS.
2030 (nds32_strict_argument_naming): Refine comment.
2031 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
2032 Define for future implementation.
2033
2034 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
2035
2036 * config/i386/adxintrin.h (_subborrow_u32): New.
2037 (_addcarry_u32): Ditto.
2038 (_subborrow_u64): Ditto.
2039 (_addcarry_u64): Ditto.
2040 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
2041 IX86_BUILTIN_SBB64.
2042 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
2043 __builtin_ia32_sbb_u64
2044
2045 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2046
2047 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
2048 GPR-specific stuff.
2049 (nds32_function_arg_advance): Likewise.
2050 (nds32_init_cumulative_args): Likewise.
2051 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
2052 (NDS32_FIRST_GPR_REGNUM): Define.
2053 (NDS32_LAST_GPR_REGNUM): Define.
2054 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
2055 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
2056 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
2057 (machine_function): Use GRP-specific stuff.
2058
2059 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2060
2061 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
2062 (nds32_expand_epilogue): Likewise.
2063 (nds32_expand_prologue_v3push): Likewise.
2064 (nds32_expand_epilogue_v3pop): Likewise.
2065
2066 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2067
2068 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
2069 v3push/v3pop for variadic function.
2070 * config/nds32/nds32.md (prologue, epilogue): Likewise.
2071
2072 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2073
2074 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
2075 Check rtx for varargs implementation.
2076 (nds32_output_stack_pop): Likewise.
2077 * config/nds32/nds32-protos.h: Have a rtx argument for
2078 nds32_output_stack_push and nds32_output_stack_pop.
2079 * config/nds32/nds32.md: Likewise.
2080
2081 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2082
2083 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
2084 to check if FUNC is an interrupt service routine.
2085 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
2086
2087 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2088
2089 * config/nds32/nds32.h (machine_function): Add some fields for variadic
2090 arguments implementation.
2091
2092 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2093
2094 * config/nds32/nds32-predicates.c
2095 (nds32_valid_stack_push_pop): Rename to ...
2096 (nds32_valid_stack_push_pop_p): ... this.
2097 * config/nds32/nds32-protos.h: Likewise.
2098 * config/nds32/predicates.md: Likewise.
2099
2100 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2101
2102 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
2103 (nds32_emit_stack_v3push): ... this.
2104 (nds32_gen_stack_v3pop): Rename to ...
2105 (nds32_emit_stack_v3pop): ... this and consider CFA restore
2106 information.
2107
2108 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2109
2110 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
2111 (nds32_emit_stack_push_multiple): ... this.
2112 (nds32_gen_stack_pop_multiple): Rename to ...
2113 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
2114 information.
2115
2116 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2117
2118 PR target/61078
2119 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
2120 and add a second splitter to handle the remaining cases.
2121
2122 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2123
2124 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
2125
2126 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
2127
2128 * cfgexpand.c (label_rtx_for_bb): Change type to
2129 hash_map<basic_block, rtx_code_label *> *.
2130 (expand_gimple_basic_block): Adjust.
2131 (pass_expand::execute): Likewise.
2132
2133 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
2134
2135 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
2136 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
2137 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
2138 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
2139 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
2140 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
2141 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
2142 of rtx.
2143
2144 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
2145
2146 * alloc-pool.c: Include coretypes.h.
2147 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
2148 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
2149 hash_set instead of htab.
2150 * ggc-page.c (in_gc): New variable.
2151 (ggc_free): Do nothing if a collection is taking place.
2152 (ggc_collect): Set in_gc appropriately.
2153 * ggc.h (gt_ggc_mx(const char *)): New function.
2154 (gt_pch_nx(const char *)): Likewise.
2155 (gt_ggc_mx(int)): Likewise.
2156 (gt_pch_nx(int)): Likewise.
2157 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
2158 (hash_map::hash_entry::pch_nx): Likewise.
2159 (hash_map::hash_entry::pch_nx_helper): Likewise.
2160 (hash_map::hash_map): Adjust.
2161 (hash_map::create_ggc): New function.
2162 (gt_ggc_mx): Likewise.
2163 (gt_pch_nx): Likewise.
2164 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
2165 (default_hashset_traits::pch_nx): Likewise.
2166 (hash_set::hash_entry::ggc_mx): Likewise.
2167 (hash_set::hash_entry::pch_nx): Likewise.
2168 (hash_set::hash_entry::pch_nx_helper): Likewise.
2169 (hash_set::hash_set): Adjust.
2170 (hash_set::create_ggc): New function.
2171 (hash_set::elements): Likewise.
2172 (gt_ggc_mx): Likewise.
2173 (gt_pch_nx): Likewise.
2174 * hash-table.h (hash_table::hash_table): Adjust.
2175 (hash_table::m_ggc): New member.
2176 (hash_table::~hash_table): Adjust.
2177 (hash_table::expand): Likewise.
2178 (hash_table::empty): Likewise.
2179 (gt_ggc_mx): New function.
2180 (hashtab_entry_note_pointers): Likewise.
2181 (gt_pch_nx): Likewise.
2182
2183 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2184
2185 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
2186 built-in definition.
2187 (XVCVUXDDP_SCALE): Likewise.
2188 (XVCVDPSXDS_SCALE): Likewise.
2189 (XVCVDPUXDS_SCALE): Likewise.
2190 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2191 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
2192 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
2193 VSX_BUILTIN_XVCVDPUXDS_SCALE.
2194 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
2195 prototype.
2196 * config/rs6000/rs6000.c (real.h): New include.
2197 (rs6000_scale_v2df): New function.
2198 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
2199 (UNSPEC_VSX_XVCVUXDDP): Likewise.
2200 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
2201 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
2202 (vsx_xvcvsxddp_scale): New define_expand.
2203 (vsx_xvcvsxddp): New define_insn.
2204 (vsx_xvcvuxddp_scale): New define_expand.
2205 (vsx_xvcvuxddp): New define_insn.
2206 (vsx_xvcvdpsxds_scale): New define_expand.
2207 (vsx_xvcvdpsxds): New define_insn.
2208 (vsx_xvcvdpuxds_scale): New define_expand.
2209 (vsx_xvcvdpuxds): New define_insn.
2210 * doc/extend.texi (vec_ctf): Add new prototypes.
2211 (vec_cts): Likewise.
2212 (vec_ctu): Likewise.
2213 (vec_splat): Likewise.
2214 (vec_div): Likewise.
2215 (vec_mul): Likewise.
2216
2217 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2218
2219 PR target/62275
2220 * config/arm/neon.md
2221 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
2222 <v_cmp_result>): New pattern.
2223 * config/arm/iterators.md (NEON_VCVT): New int iterator.
2224 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
2225 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
2226 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
2227 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
2228 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
2229
2230 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2231
2232 PR target/62275
2233 * config/arm/iterators.md (FIXUORS): New code iterator.
2234 (VCVT): New int iterator.
2235 (su_optab): New code attribute.
2236 (su): Likewise.
2237 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
2238
2239 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2240
2241 * config/aarch64/predicates.md (aarch64_comparison_operation):
2242 New special predicate.
2243 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
2244 aarch64_comparison_operation instead of matching an operator.
2245 Update operand numbers.
2246 (csinc3<mode>_insn): Likewise.
2247 (*csinv3<mode>_insn): Likewise.
2248 (*csneg3<mode>_insn): Likewise.
2249 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
2250 * config/aarch64/aarch64.c (aarch64_get_condition_code):
2251 Return -1 instead of aborting on invalid condition codes.
2252 (aarch64_print_operand): Update aarch64_get_condition_code callsites
2253 to assert that the returned condition code is valid.
2254 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
2255
2256 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
2257
2258 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
2259 tree.def, and gimple.def
2260
2261 2014-09-02 Jakub Jelinek <jakub@redhat.com>
2262 Balaji V. Iyer <balaji.v.iyer@intel.com>
2263 Igor Zamyatin <igor.zamyatin@intel.com>
2264
2265 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
2266 (__cilkrts_cilk_for_64): Likewise.
2267 * cilk-common.c (declare_cilk_for_builtin): New function.
2268 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
2269 __cilkrts_cilk_for_64 bultins.
2270 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
2271 CILK_TI_F_LOOP_64.
2272 (cilk_for_32_fndecl): New define.
2273 (cilk_for_64_fndecl): Likewise.
2274 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
2275 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
2276 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
2277 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
2278 GF_OMP_FOR_COMBINED_INTO.
2279 * gimplify.c (gimplify_scan_omp_clauses): Added
2280 OMP_CLAUSE__CILK_FOR_COUNT_ case.
2281 (gimplify_adjust_omp_clauses): Ditto.
2282 (gimplify_omp_for): Added CILK_FOR case.
2283 (gimplify_expr): Ditto.
2284 * omp-low.c: Include cilk.h.
2285 (extract_omp_for_data): Set appropriate kind for
2286 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
2287 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
2288 (create_omp_child_function_name): Added second argument to handle
2289 cilk_for case.
2290 (cilk_for_check_loop_diff_type): New function.
2291 (expand_cilk_for_call): Likewise.
2292 (expand_cilk_for): Likewise.
2293 (create_omp_child_function): Set cilk_for_count; handle the cases when
2294 it is true; call create_omp_child_function_name with second argument.
2295 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
2296 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
2297 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
2298 * tree-nested.c (convert_nonlocal_omp_clauses): Added
2299 OMP_CLAUSE__CILK_FOR_COUNT_ case.
2300 (convert_local_omp_clauses): Ditto.
2301 * tree-pretty-print.c (dump_omp_clause): Added
2302 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
2303 (dump_generic_node): Added CILK_FOR case.
2304 * tree.c (omp_clause_num_ops): New element
2305 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
2306 (omp_clause_code_name): New element _Cilk_for_count_.
2307 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
2308 * tree.def: Add tree code for CILK_FOR.
2309
2310 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2311
2312 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
2313 (ppc403-compare): Add "exts with dot" case.
2314 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
2315 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
2316 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
2317 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
2318 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
2319 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
2320 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
2321 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
2322 cell-cmp-microcoded): Similarly.
2323 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
2324 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
2325 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
2326 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
2327 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
2328 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
2329 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
2330 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
2331 (power6-compare): Add "exts with dot" case.
2332 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
2333 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
2334 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
2335
2336 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
2337 if avoiding Cell microcode.
2338 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
2339 (is_cracked_insn): Ditto.
2340 (insn_must_be_first_in_group): Ditto.
2341 * config/rs6000/rs6000.md (dot): Adjust comment.
2342 (cell_micro): Handle exts+dot.
2343 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
2344 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
2345 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
2346 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
2347 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
2348 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
2349 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
2350
2351 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2352
2353 * config/rs6000/rs6000.md (QHSI): Delete.
2354 (EXTQI, EXTHI, EXTSI): New mode iterators.
2355 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
2356 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
2357 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
2358 9 anonymous instructions, and 8 splitters): Delete.
2359 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
2360 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
2361 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
2362 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
2363 *zero_extendsi<mode>2_dot2): New.
2364
2365 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2366
2367 * config/rs6000/rs6000.md (any_extend): New code iterator.
2368 (u, su): New code attributes.
2369 (dmode, DMODE): New mode attributes.
2370 (<su>mul<mode>3_highpart): New.
2371 (*<su>mul<mode>3_highpart): New.
2372 (<su>mulsi3_highpart_le): New.
2373 (<su>muldi3_highpart_le): New.
2374 (<su>mulsi3_highpart_64): New.
2375 (<u>mul<mode><dmode>3): New.
2376 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
2377 splitters): Delete.
2378 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
2379 splitters): Delete.
2380
2381 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2382
2383 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
2384 *mulsi3_internal2, and two splitters): Delete.
2385 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
2386 Delete.
2387 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
2388
2389 2014-09-02 Richard Biener <rguenther@suse.de>
2390
2391 PR tree-optimization/62695
2392 * tree-ssa-structalias.c (find_func_clobbers): Add missing
2393 vector truncate.
2394
2395 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
2396
2397 PR target/62312
2398 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
2399
2400 2014-09-01 Andi Kleen <ak@linux.intel.com>
2401
2402 * file-find.c (add_prefix_begin): Add.
2403 (do_add_prefix): Rename from add_prefix with first argument.
2404 (add_prefix): Add new wrapper.
2405 * file-find.h (add_prefix_begin): Add.
2406 * gcc-ar.c (main): Support -B option.
2407
2408 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
2409
2410 * genemit.c: Include dumpfile.h.
2411 (gen_split): Print name of splitter function to dump file.
2412
2413 2014-09-01 Richard Biener <rguenther@suse.de>
2414
2415 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
2416 Use stack auto_vecs for constraint expressions.
2417 (find_func_aliases_for_call): Likewise.
2418 (find_func_aliases): Likewise.
2419 (find_func_clobbers): Likewise.
2420
2421 2014-09-01 Richard Biener <rguenther@suse.de>
2422
2423 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
2424 operands vector in most cases. Remove redundant code.
2425
2426 2014-09-01 Olivier Hainque <hainque@adacore.com>
2427
2428 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
2429 $WIND_BASE instead of designating a harcoded arbitrary home dir.
2430 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
2431
2432 2014-09-01 Richard Biener <rguenther@suse.de>
2433
2434 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
2435 copy_reference_ops_from_call, vn_nary_op_compute_hash,
2436 vn_reference_compute_hash, vn_reference_insert): Remove.
2437 (vn_reference_lookup_call): New function.
2438 * tree-ssa-sccvn.c (vn_reference_compute_hash,
2439 copy_reference_ops_from_ref, copy_reference_ops_from_call,
2440 vn_reference_insert, vn_nary_op_compute_hash): Make static.
2441 (create_reference_ops_from_call): Remove.
2442 (vn_reference_lookup_3): Properly update shared_lookup_references.
2443 (vn_reference_lookup_pieces): Assert that we updated
2444 shared_lookup_references properly.
2445 (vn_reference_lookup): Likewise.
2446 (vn_reference_lookup_call): New function.
2447 (visit_reference_op_call): Use it. Avoid re-building the
2448 reference ops.
2449 (visit_reference_op_load): Remove redundant lookup.
2450 (visit_reference_op_store): Perform special tail-merging work
2451 only when possibly doing tail-merging.
2452 (visit_use): Likewise.
2453 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
2454
2455 2014-09-01 Jakub Jelinek <jakub@redhat.com>
2456
2457 PR target/62025
2458 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
2459 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
2460 (find_inc): Revert 2014-08-13 change.
2461
2462 2014-09-01 Marek Polacek <polacek@redhat.com>
2463
2464 PR middle-end/61903
2465 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
2466 Change the type of V to unsigned HOST_WIDE_INT.
2467
2468 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
2469
2470 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
2471 the size of byte markers.
2472 (do_shift_rotate): Fix confusion between host, target and marker byte
2473 size.
2474 (verify_symbolic_number_p): Likewise.
2475 (find_bswap_or_nop_1): Likewise.
2476 (find_bswap_or_nop): Likewise.
2477
2478 2014-09-01 Olivier Hainque <hainque@adacore.com>
2479
2480 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
2481 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
2482
2483 2014-09-01 Jakub Jelinek <jakub@redhat.com>
2484
2485 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
2486 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
2487 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
2488
2489 2014-09-01 Yury Gribov <y.gribov@samsung.com>
2490
2491 PR sanitizer/61897
2492 PR sanitizer/62140
2493 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
2494 (build_check_stmt): Likewise.
2495 (instrument_strlen_call): Likewise.
2496 (asan_expand_check_ifn): Likewise and fix types.
2497 (maybe_cast_to_ptrmode): New function.
2498
2499 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2500
2501 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
2502
2503 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
2504
2505 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
2506
2507 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
2508
2509 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
2510 prefix to function labels when generating fast indirect calls.
2511
2512 2014-08-30 David Malcolm <dmalcolm@redhat.com>
2513
2514 PR bootstrap/62304
2515
2516 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
2517 param back from rtx_insn * to rtx. Rename param from "label" to
2518 "label_or_return", reintroducing "label" as an rtx_insn * after
2519 we've ensured it's not a RETURN.
2520 (first_active_target_insn): Likewise for return type and param;
2521 add a checked cast to rtx_insn * once we've ensured "insn" is not
2522 a RETURN.
2523 (steal_delay_list_from_target): Convert param "pnew_thread" back
2524 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
2525 with JUMP_LABEL.
2526 (own_thread_p): Convert param "thread" back from an rtx_insn * to
2527 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
2528 cast once we've established we're not dealing with a RETURN,
2529 renaming subsequent uses of "thread" to "thread_insn".
2530 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
2531 to JUMP_LABEL.
2532 (follow_jumps): Convert return type and param "label" from
2533 rtx_insn * back to rtx. Move initialization of "value" to after
2534 the handling for ANY_RETURN_P, adding a checked cast there to
2535 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
2536 rename to "this_label_or_return", reintroducing "this_label" as
2537 an rtx_insn * once we've handled the case where it could be an
2538 ANY_RETURN_P.
2539 (fill_slots_from_thread): Rename param "thread" to
2540 "thread_or_return", converting from an rtx_insn * back to an rtx.
2541 Reintroduce name "thread" as an rtx_insn * local with a checked
2542 cast once we've handled the case of it being an ANY_RETURN_P.
2543 Convert local "new_thread" from an rtx_insn * back to an rtx.
2544 Add a checked cast when assigning to "trial" from "new_thread".
2545 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
2546 checked cast to rtx_insn * from "new_thread" when invoking
2547 get_label_before.
2548 (fill_eager_delay_slots): Convert locals "target_label",
2549 "insn_at_target" from rtx_insn * back to rtx.
2550 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
2551 (relax_delay_slots): Convert locals "trial", "target_label" from
2552 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
2553 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
2554 invoking update_block.
2555 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
2556 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
2557
2558 * resource.h (mark_target_live_regs): Undo erroneous conversion
2559 of second param of r214693, converting it back from rtx_insn * to
2560 rtx, since it could be a RETURN.
2561
2562 * resource.c (find_dead_or_set_registers): Similarly, convert
2563 param "jump_target" back from an rtx_insn ** to an rtx *, as we
2564 could be writing back a RETURN. Rename local rtx_insn * "next" to
2565 "next_insn", and introduce "lab_or_return" as a local rtx,
2566 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
2567 (mark_target_live_regs): Undo erroneous conversion
2568 of second param of r214693, converting it back from rtx_insn * to
2569 rtx, since it could be a RETURN. Rename it from "target" to
2570 "target_maybe_return", reintroducing the name "target" as a local
2571 rtx_insn * with a checked cast, after we've handled the case of
2572 ANY_RETURN_P.
2573
2574 2014-08-29 DJ Delorie <dj@redhat.com>
2575
2576 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
2577 pointer size up to a power of two.
2578 * defaults.h (DWARF2_ADDR_SIZE): Round up.
2579 (POINTER_SIZE_UNITS): New, rounded up value.
2580 * dwarf2asm.c (size_of_encoded_value): Use it.
2581 (dw2_output_indirect_constant_1): Likewise.
2582 * expmed.c (init_expmed_one_conv): We now know the sizes of
2583 partial int modes.
2584 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
2585 * optabs.c (expand_float): Use precision, not size.
2586 (expand_fix): Likewise.
2587 * simplify-rtx (simplify_unary_operation_1): Likewise.
2588 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2589 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
2590 (default_assemble_integer) Likewise.
2591 (dump_tm_clone_pairs): Likewise.
2592 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
2593 * var-tracking.c (adjust_mems): Allow partial-int modes also.
2594 (prepare_call_arguments): Likewise.
2595 * stor-layout.c (finalize_type_size): Preserve precision.
2596 (layout_type): Use precision, not size.
2597
2598 * expr.c (convert_move): If the target has an explicit converter,
2599 use it.
2600
2601 2014-08-29 David Malcolm <dmalcolm@redhat.com>
2602
2603 * gdbinit.in: Skip various inline functions in rtl.h when
2604 stepping.
2605
2606 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
2607
2608 PR bootstrap/62301
2609 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
2610
2611 2014-08-29 Richard Biener <rguenther@suse.de>
2612
2613 PR tree-optimization/62291
2614 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
2615 exactly the vector size needed and use quick_push.
2616 (phi_translate_1): Adjust comment.
2617 (valid_in_sets): Remove block argument and remove pointless
2618 checking of NAMEs.
2619 (dependent_clean): Adjust for removal of block argument.
2620 (clean): Likewise.
2621 (compute_antic_aux): Likewise.
2622 (compute_partial_antic_aux): Likewise.
2623
2624 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
2625 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2626 Anna Tikhonova <anna.tikhonova@intel.com>
2627 Ilya Tocar <ilya.tocar@intel.com>
2628 Andrey Turetskiy <andrey.turetskiy@intel.com>
2629 Ilya Verbin <ilya.verbin@intel.com>
2630 Kirill Yukhin <kirill.yukhin@intel.com>
2631 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2632
2633 * config/i386/sse.md
2634 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
2635 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
2636 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
2637 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
2638
2639 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
2640 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2641 Anna Tikhonova <anna.tikhonova@intel.com>
2642 Ilya Tocar <ilya.tocar@intel.com>
2643 Andrey Turetskiy <andrey.turetskiy@intel.com>
2644 Ilya Verbin <ilya.verbin@intel.com>
2645 Kirill Yukhin <kirill.yukhin@intel.com>
2646 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2647
2648 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
2649 * config/i386/sse.md
2650 (define_mode_iterator VI4_128_8_256): New.
2651 (define_mode_iterator VI2_128_4_256): Ditto.
2652 (define_mode_iterator PMOV_DST_MODE): Rename into
2653 (define_mode_iterator PMOV_DST_MODE_1): this.
2654 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
2655 Use PMOV_DST_MODE_1 mode iterator.
2656 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
2657 Ditto.
2658 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
2659 Ditto.
2660 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
2661 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
2662 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
2663 (define_mode_iterator PMOV_DST_MODE_2): New.
2664 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
2665 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
2666 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
2667 Ditto.
2668 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
2669 (define_mode_attr pmov_dst_3): Ditto.
2670 (define_mode_attr pmov_dst_zeroed_3): Ditto.
2671 (define_mode_attr pmov_suff_3): Ditto.
2672 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
2673 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
2674 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
2675 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
2676 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
2677 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
2678 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
2679 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
2680 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
2681 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
2682 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
2683 (define_mode_attr pmov_dst_4): Ditto.
2684 (define_mode_attr pmov_dst_zeroed_4): Ditto.
2685 (define_mode_attr pmov_suff_4): Ditto.
2686 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
2687 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
2688 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
2689 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
2690 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
2691 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
2692 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
2693 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
2694 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
2695 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
2696 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
2697
2698 2014-08-29 Richard Biener <rguenther@suse.de>
2699
2700 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
2701 NON_LVALUE_EXPR in gimple.
2702
2703 2014-08-29 Richard Biener <rguenther@suse.de>
2704
2705 PR middle-end/62292
2706 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
2707 from previous refactoring.
2708 (gimple_fold_builtin_strncpy): Likewise.
2709
2710 2014-08-29 David Malcolm <dmalcolm@redhat.com>
2711
2712 PR bootstrap/62300
2713 * function.c (assign_parm_setup_reg): Remove erroneous checked
2714 cast to rtx_insn * on result of gen_extend_insn in favor of
2715 introducing a new local rtx "pat".
2716
2717 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2718
2719 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
2720 to silence warning.
2721 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
2722
2723 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2724
2725 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
2726 (next_insn): Likewise.
2727 * emit-rtl.c (next_insn): Likewise.
2728 (previous_insn): Likewise.
2729 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
2730 "insn" and "next" from rtx to rtx_insn *.
2731 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
2732 "insn", "insn1", "vliw_start", "prologue_end_note",
2733 "last_insn_in_packet".
2734
2735 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2736
2737 * shrink-wrap.h (active_insn_between): Strengthen both params from
2738 rtx to rtx_insn *.
2739 * function.c (active_insn_between): Likewise.
2740
2741 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2742
2743 * genattr.c (main): When writing out insn-attr.h, strengthen param
2744 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
2745 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
2746 writing out the definition of dfa_clear_single_insn_cache to the
2747 generated insn-automata.c
2748
2749 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2750
2751 * resource.h (clear_hashed_info_for_insn): Strengthen param from
2752 rtx to rtx_insn *.
2753 (incr_ticks_for_insn): Likewise.
2754 (init_resource_info): Likewise.
2755
2756 * resource.c (init_resource_info): Likewise.
2757 (clear_hashed_info_for_insn): Likewise.
2758 (incr_ticks_for_insn): Likewise.
2759
2760 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
2761 rtx to rtx_insn *.
2762 (steal_delay_list_from_target): Use methods of "seq".
2763 (try_merge_delay_insns): Use methods of "merged_insns".
2764 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
2765 (reorg_redirect_jump): Likewise for param "jump".
2766
2767 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2768
2769 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
2770 rtx to rtx_insn *.
2771 * config/s390/s390.c (s390_split_branches): Eliminate top-level
2772 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
2773 "set_insn".
2774 (s390_mainpool_finish): In three places, split out a local rtx
2775 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
2776 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
2777 and split another local rtx "insn" out into rtx "pat" and
2778 rtx_insn * "insn".
2779 * config/sh/sh.c (output_branchy_insn): Rather than working
2780 directly on operands[9], introduce local rtx_code_label *
2781 variables named "lab" in two places, working on them, and then
2782 assigning them to operands[9], so that the intervening operations
2783 are known by the type system to be on insns.
2784
2785 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2786
2787 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
2788 const rtx_insn *.
2789
2790 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
2791 in invocation of INSN_HAS_LOCATION.
2792
2793 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2794
2795 * config/rs6000/altivec.h (vec_xl): New #define.
2796 (vec_xst): Likewise.
2797 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
2798 (XXSPLTD_V2DI): Likewise.
2799 (DIV_V2DI): Likewise.
2800 (UDIV_V2DI): Likewise.
2801 (MUL_V2DI): Likewise.
2802 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2803 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
2804 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
2805 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
2806 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
2807 (UNSPEC_VSX_DIVSD): Likewise.
2808 (UNSPEC_VSX_DIVUD): Likewise.
2809 (UNSPEC_VSX_MULSD): Likewise.
2810 (vsx_mul_v2di): New insn-and-split.
2811 (vsx_div_v2di): Likewise.
2812 (vsx_udiv_v2di): Likewise.
2813 (vsx_xxspltd_<mode>): New insn.
2814
2815 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2816
2817 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
2818 NEXT_INSN.
2819 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
2820 (NEXT_INSN): Likewise.
2821 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
2822 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
2823 const rtx_insn *.
2824 (no_labels_between_p): Likewise for both params.
2825
2826 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
2827 cast when using NEXT_INSN on operands[2].
2828 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
2829 "insn" from rtx to rtx_insn *, adding a checked cast.
2830 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
2831 rtx_insn *.
2832 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
2833 for third param.
2834 (arc_text_label): Likewise for param "insn".
2835 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
2836 "insn".
2837 (arc_ccfsm_record_condition): Likewise for param "jump".
2838 (arc_text_label): Likewise for local "label".
2839 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
2840 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
2841 a method for typesafety. Add a checked cast.
2842 * config/arc/constraints.md (Clb): Add a checked cast when getting
2843 the CODE_LABEL from a LABEL_REF.
2844 * config/arm/arm.c (require_pic_register): Strengthen locals
2845 "seq", "insn" from rtx to rtx_insn *.
2846 (create_fix_barrier): Likewise for locals "selected", "next".
2847 (thumb1_reorg): Likewise for locals "prev", "insn".
2848 (arm_expand_prologue): Likewise for local "last".
2849 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
2850 operands[0].
2851 (thumb2_output_casesi): Likewise for operands[2].
2852 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
2853 strengthen local "insn" from rtx to rtx_insn *.
2854 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
2855 type and param "insn".
2856 (find_prev_insn_start): Likewise.
2857 (hwloop_optimize): Likewise for locals "insn", "last_insn",
2858 "prev".
2859 (gen_one_bundle): Likewise for loal "t".
2860 (find_load): Likewise for param "insn".
2861 (workaround_speculation): Likewise for locals "insn", "next",
2862 "target", "next_tgt".
2863 * config/c6x/c6x.c (assign_reservations): Likewise for both params
2864 and for locals "insn", "within", "last".
2865 (count_unit_reqs): Likewise for params "head", "tail" and local
2866 "insn".
2867 (try_rename_operands): Likewise for params "head", "tail".
2868 (reshuffle_units): Likewise for locals "head", "tail", "insn".
2869 (struct c6x_sched_context): Likewise for fields
2870 "last_scheduled_insn", "last_scheduled_iter0".
2871 (init_sched_state): Replace NULL_RTX with NULL.
2872 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
2873 to rtx_insn *.
2874 (undo_split_delayed_nonbranch): Likewise for param and for local
2875 "prev".
2876 (conditionalize_after_sched): Likewise for local "insn".
2877 (bb_earliest_end_cycle): Likewise.
2878 (filter_insns_above): Likewise for locals "insn", "next".
2879 (hwloop_optimize): Remove redundant checked cast.
2880 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
2881 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
2882 NULL_RTX with NULL.
2883 (cris_simple_epilogue): Likewise.
2884 (cris_expand_prologue): Likewise.
2885 (cris_expand_epilogue): Likewise.
2886 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
2887 local "insn" from rtx to rtx_insn *.
2888 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
2889 (struct frv_packet_group): Likewise for the elements within array
2890 fields "insns", "sorted", and for field "nop".
2891 (frv_packet): Likewise for the elements within array field
2892 "insns".
2893 (frv_add_insn_to_packet): Likewise for param "insn".
2894 (frv_insert_nop_in_packet): Likewise for param "insn" and local
2895 "last".
2896 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
2897 (frv_sort_insn_group_1): Likewise for local "insn".
2898 (frv_optimize_membar_local): Likewise.
2899 (frv_align_label): Likewise for locals "x", "last", "barrier",
2900 "label".
2901 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
2902 local.
2903 (ia64_sched_init): Likewise for local "insn".
2904 (scheduled_good_insn): Likewise for param "last".
2905 (struct _ia64_sched_context): Likewise for field
2906 "last_scheduled_insn".
2907 (ia64_init_sched_context): Replace NULL_RTX with NULL.
2908 (struct bundle_state): Likewise for field "insn".
2909 (issue_nops_and_insn): Likewise for param "insn".
2910 (get_next_important_insn): Likewise for return type and both
2911 params.
2912 (ia64_add_bundle_selector_before): Likewise for param "insn".
2913 (bundling): Likewise for params "prev_head_insn", "tail" and
2914 locals "insn", "next_insn", "b". Eliminate top-level local rtx
2915 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
2916 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
2917 Strengthen final param from rtx to rtx_insn *.
2918 (iq2000_move_1word): Likewise for second param.
2919 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
2920 param "cur_insn" and local "next_insn".
2921 (iq2000_move_1word): Likewise for param "insn".
2922 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
2923 casts when using NEXT_INSN on operands[1].
2924 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
2925 "insn" from rtx to rtx_insn *.
2926 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
2927 "x", introducing local rtx_insn * "insn" for when working with the
2928 CODE_LABEL of the LABEL_REF.
2929 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
2930 rtx_insn *.
2931 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
2932 param.
2933 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
2934 type.
2935 (conditionalize_block): Likewise for return type and param.
2936 (mcore_is_dead): Likewise for param "first" and local "insn".
2937 (emit_new_cond_insn): Likewise for return type.
2938 (conditionalize_block): Likewise for return type, param, and
2939 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
2940 "newinsn".
2941 (conditionalize_optimization): Likewise for local "insn".
2942 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
2943 using NEXT_INSN.
2944 * config/microblaze/microblaze.md: Add checked casts when using
2945 NEXT_INSN.
2946 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
2947 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
2948 and rtx_insn * "insn".
2949 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
2950 checked cast when using NEXT_INSN on operands[2].
2951 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
2952 local "insn" from rtx to rtx_insn *.
2953 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
2954 Likewise.
2955 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
2956 Add a checked cast when using NEXT_INSN on operands[1].
2957 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
2958 rtx to rtx_insn *.
2959 (pa_output_cbranch): Likewise for final param.
2960 (pa_output_lbranch): Likewise for second param.
2961 (pa_output_bb): Likewise for third param.
2962 (pa_output_bvb): Likewise.
2963 (pa_output_dbra): Likewise for second param.
2964 (pa_output_movb): Likewise.
2965 (pa_output_parallel_movb): Likewise.
2966 (pa_output_parallel_addb): Likewise.
2967 (pa_output_millicode_call): Likewise for first param.
2968 (pa_output_mul_insn): Likewise for second param.
2969 (pa_output_div_insn): Likewise for third param.
2970 (pa_output_mod_insn): Likewise for second param.
2971 (pa_jump_in_call_delay): Likewise for param.
2972 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
2973 (pa_output_div_insn): Likewise.
2974 (pa_output_mod_insn): Likewise.
2975 (pa_output_cbranch): Likewise.
2976 (pa_output_lbranch): Likewise.
2977 (pa_output_bb): Likewise.
2978 (pa_output_bvb): Likewise.
2979 (pa_output_dbra): Likewise.
2980 (pa_output_movb): Likewise.
2981 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
2982 to simplify and for typesafety.
2983 (pa_output_call): Use method of rtx_sequence *.
2984 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
2985 (pa_jump_in_call_delay): Likewise.
2986 (pa_output_parallel_movb): Likewise.
2987 (pa_output_parallel_addb): Likewise.
2988 (pa_following_call): Likewise.
2989 (pa_combine_instructions): Likewise for locals "anchor",
2990 "floater".
2991 (pa_can_combine_p): Likewise for params "anchor", "floater" and
2992 locals "start", "end".
2993 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
2994 param "insn" and local "local_insn".
2995 (picochip_final_prescan_insn): Likewise for local "local_insn".
2996 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
2997 local "insn".
2998 (uses_TOC): Likewise.
2999 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
3000 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
3001 splitting out to more tightly-scoped locals, 3 as rtx and one as
3002 rtx_insn *.
3003 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
3004 to rtx_insn *.
3005 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
3006 where needed.
3007 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
3008 to rtx_insn *.
3009 (fixup_addr_diff_vecs): Likewise.
3010 (reg_unused_after): Likewise for param 2.
3011 (sh_can_redirect_branch): Likewise for both params.
3012 (check_use_sfunc_addr): Likewise for param 1.
3013 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
3014 (find_barrier): Likewise for local "last_got".
3015 (gen_block_redirect): Likewise for return type, param "jump" and
3016 locals "prev", "scan", "next", "insn".
3017 (struct far_branch): Likewise for fields "near_label",
3018 "insert_place", "far_label".
3019 (gen_far_branch): Likewise for local "jump".
3020 (fixup_addr_diff_vecs): Likewise for param "first" and locals
3021 "insn", "prev".
3022 (barrier_align): Likewise for param and for locals "prev", "x".
3023 Introduce local rtx_sequence * "prev_seq" and use insn method for
3024 typesafety and clarity.
3025 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
3026 (get_dest_uid): Likewise for local "dest".
3027 (split_branches): Likewise for locals "next", "beyond", "label",
3028 "block", "far_label". Add checked casts when assigning to
3029 bp->far_label and "far_label".
3030 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
3031 (sequence_insn_p): Likewise.
3032 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
3033 more loop-scoped rtx "insn" when walking LABEL_REFS.
3034 (sh_can_redirect_branch): Strengthen both params from rtx to
3035 rtx_insn *.
3036 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
3037 new local rtx_sequence * "seq" via a dyn_cast, and use a method
3038 for clarity and typesafety.
3039 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
3040 "insn" from rtx to rtx_insn *.
3041 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
3042 when using NEXT_INSN on the CODE_LABEL in operands[2].
3043 (define_insn "casesi_worker_2"): Likewise.
3044 (define_insn "casesi_shift_media"): Likewise.
3045 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
3046 operands[3].
3047 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
3048 Strengthen field "insn" from rtx to rtx_insn *.
3049 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
3050 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
3051 param "start_insn" and local "start_insn".
3052 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
3053 field "insn".
3054 (find_set_of_reg_bb): Likewise for param "insn".
3055 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
3056 (trace_reg_uses): Likewise for param "start_insn".
3057 (sh_treg_combine::cbranch_trace): Likewise for field
3058 "cbranch_insn".
3059 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
3060 param "insn".
3061 (sh_treg_combine::record_set_of_reg): Likewise for param
3062 "start_insn" and local "i".
3063 (sh_treg_combine::can_remove_cstore): Likewise for local
3064 "prev_insn".
3065 (sh_treg_combine::try_optimize_cbranch): Likewise for param
3066 "insn".
3067 (sh_treg_combine::execute): Likewise for local "i".
3068 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
3069 param.
3070 (sparc_check_64): Likewise for second param.
3071 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
3072 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
3073 dyn_cast, using its insn method for typesafety and clarity.
3074 (empty_delay_slot): Strengthen param "insn" from rtx to
3075 rtx_insn *.
3076 (set_extends): Likewise.
3077 (sparc_check_64): Likewise.
3078 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
3079 for locals "seq", "last_insn".
3080 (combine_bnp): Likewise for param "insn".
3081 (xstormy16_reorg): Likewise for local "insn".
3082 * config/v850/v850.c (substitute_ep_register): Likewise for params
3083 "first_insn", "last_insn" and local "insn".
3084 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
3085 elements of "regs" array, and local "insn".
3086 * except.c (emit_note_eh_region_end): Likewise for param "insn".
3087 * final.c (final_sequence): Strengthen this global from rtx to
3088 rtx_sequence *.
3089 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
3090 rtx_insn *.
3091 (final_scan_insn): Update assignment to "final_sequence" to be
3092 from "seq", the cast version of "body", for type-safety.
3093 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
3094 "insns" from rtx to rtx_insn *.
3095 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
3096 * genattr.c (main): When writing out generated insn-attr.h,
3097 strengthen params 1 and 3 of eligible_for_delay,
3098 eligible_for_annul_true, eligible_for_annul_false from rtx to
3099 rtx_insn *.
3100 * genattrtab.c (write_eligible_delay): Likewise when writing out
3101 generated insn-attrtab.c; also local "insn" the generated
3102 functions.
3103 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
3104 to rtx_insn *.
3105 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
3106 "start_label" from rtx to rtx_insn *.
3107 * ira.c (decrease_live_ranges_number): Likewise for local "p".
3108 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
3109 "insns" and local "insn".
3110 (validate_equiv_mem): Likewise for param "start" and local "insn".
3111 (memref_used_between_p): Likewise for params "start", "end" and
3112 local "insn".
3113 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
3114 final param.
3115 * loop-doloop.c (doloop_optimize): Within region guarded by
3116 INSN_P (doloop_pat), introduce a new local rtx_insn *
3117 "doloop_insn" via a checked cast, and use it for typesafety,
3118 eventually writing the value back into doloop_pat.
3119 * output.h (final_sequence): Strengthen this global from rtx to
3120 rtx_sequence *.
3121 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
3122 reintroducing "insn" as an rtx_insn * via a checked cast.
3123 Strengthen param "attempt" and local "new_insn"from rtx to
3124 rtx_insn *.
3125 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
3126 to rtx_insn *.
3127 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
3128 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
3129 "p" in favor of more tightly-scoped replacements, sometimes rtx
3130 and sometimes rtx_insn *, as appropriate.
3131 (delete_output_reload): Eliminate top-level rtx "i1", splitting
3132 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
3133 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
3134 local "trial" from rtx to rtx_insn *.
3135 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
3136 rtx to rtx_insn *. Strenghten local "pat" from rtx to
3137 rtx_sequence * and use methods for clarity and typesafety.
3138 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
3139 rtx to rtx_insn *. Strenghten local "li" from rtx to
3140 rtx_insn_list * and use its methods for clarity and typesafety.
3141 (steal_delay_list_from_target): Strengthen param "insn" from rtx
3142 to rtx_insn *.
3143 (steal_delay_list_from_fallthrough): Likewise.
3144 (try_merge_delay_insns): Likewise for param "thread" and locals
3145 "trial", "next_trial", "delay_insn".
3146 (redundant_insn): Likewise for param "target" and local "trial".
3147 (own_thread_p): Likewise for param "thread" and locals
3148 "active_insn", "insn".
3149 (get_label_before): Likewise for param "insn".
3150 (fill_simple_delay_slots): Likewise for local "new_label"; use
3151 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
3152 (label_before_next_insn): Strengthen return type and local "insn"
3153 from rtx to rtx_insn *.
3154 (relax_delay_slots): Likewise for locals "other", "tmp".
3155 (make_return_insns): Likewise for param "first" and locals "insn",
3156 "jump_insn", "prev". Move declaration of "pat" to its assignment
3157 and strengthen from rtx to rtx_sequence *. Use its methods for
3158 clarity and typesafety.
3159 * rtlanal.c (no_labels_between_p): Strengthen params from
3160 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
3161 rtx_insn *.
3162 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
3163 from const_rtx to const rtx_insn *.
3164 (reg_set_between_p): Rename param "from_insn" to
3165 "uncast_from_insn", and reintroduce "from_insn" as a
3166 const rtx_insn * via a checked cast.
3167 (modified_between_p): Likewise for param "start" as "uncast_start".
3168 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
3169 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
3170 "tmp", head" from rtx to rtx_insn *.
3171 (recompute_rev_top_order): Likewise for local "insn".
3172 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
3173 * store-motion.c (build_store_vectors): Likewise for local "insn".
3174 Strengthen local "st" from rtx to rtx_insn_list * and use methods
3175 for clarity and typesafety.
3176 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
3177 rtx to rtx_insn *.
3178 (computation_cost): Likewise for local "seq".
3179 (get_address_cost): Likewise.
3180
3181 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3182
3183 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
3184 const rtx_insn *.
3185 (label_is_jump_target_p): Likewise for second param.
3186
3187 * rtlanal.c (tablejump_p): Likewise for param "insn".
3188 (label_is_jump_target_p): Likewise for param "jump_insn".
3189
3190 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3191
3192 * rtl.h (find_first_parameter_load): Strengthen return type and
3193 both params from rtx to rtx_insn *.
3194 * rtlanal.c (find_first_parameter_load): Strengthen return type,
3195 both params and locals "before", "first_set" from rtx to
3196 rtx_insn *. Remove now-redundant cast.
3197 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
3198
3199 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3200
3201 * rtl.h (find_last_value): Delete.
3202 * rtlanal.c (find_last_value): Delete.
3203
3204 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3205
3206 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
3207 from rtx to rtx_insn *.
3208 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
3209 rtx "note" with new local rtx_insn * "new_head" when calculating
3210 head insn of new basic block.
3211 * combine.c (combine_split_insns): Strengthen return type and local
3212 "ret" from rtx to rtx_insn *.
3213 (likely_spilled_retval_p): Likewise for locals "use" and "p".
3214 (try_combine): Eliminate local "m_split", splitting into new
3215 locals "m_split_insn" and "m_split_pat".
3216 (find_split_point): Strengthen local "seq" from rtx into
3217 rtx_insn *.
3218 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
3219 locals "label", "branch".
3220 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
3221 for local "insn".
3222 (define_expand "umulsi3_highpart"): Likewise for local "insn".
3223 * dse.c (note_add_store_info): Likewise for fields "first",
3224 "current".
3225 (note_add_store): Likewise for local "insn".
3226 (emit_inc_dec_insn_before): Likewise for locals "insn",
3227 "new_insn", "cur".
3228 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
3229 (replace_read): Likewise for locals "insns", "this_insn".
3230 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
3231 (notice_eh_throw): Likewise for param "insn".
3232 (before_next_cfi_note): Likewise for return type, param, and local
3233 "prev".
3234 (connect_traces): Likewise for local "note".
3235 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
3236 (verify_rtl_sharing): Likewise.
3237 (unshare_all_rtl_in_chain): Likewise for param "insn".
3238 (get_first_nonnote_insn): Likewise for local "insn".
3239 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
3240 "seq" and use its methods to clarify things.
3241 (next_insn): Strengthen return type from rtx to rtx_insn *.
3242 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
3243 local rtx_insn * using a checked cast, dropping a checked cast
3244 made redundant by this change. Use a cast to and method of
3245 rtx_sequence to clarify the code.
3246 (previous_insn): Rename param "insn" to "uncast_insn" and
3247 reintroduce "insn" as a local rtx_insn * using a checked cast,
3248 dropping a checked cast made redundant by this change. Use a cast
3249 to and method of rtx_sequence to clarify the code.
3250 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
3251 reintroduce "insn" as a local rtx_insn * using a checked cast,
3252 dropping a checked cast made redundant by this change.
3253 (next_nonnote_insn_bb): Likewise.
3254 (prev_nonnote_insn): Likewise.
3255 (prev_nonnote_insn_bb): Likewise.
3256 (next_nondebug_insn): Likewise.
3257 (prev_nondebug_insn): Likewise.
3258 (next_nonnote_nondebug_insn): Likewise.
3259 (prev_nonnote_nondebug_insn): Likewise.
3260 (next_real_insn): Likewise.
3261 (prev_real_insn): Likewise.
3262 (next_active_insn): Likewise.
3263 (prev_active_insn): Likewise.
3264 (next_cc0_user): Likewise. Use rtx_sequence and a method for
3265 clarity.
3266 (prev_cc0_setter): Likewise.
3267 (try_split): Rename param "trial" to "uncast_trial" and
3268 reintroduce "insn" as a local rtx_insn * using a checked cast,
3269 dropping checked casts made redundant by this change.
3270 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
3271 rtx to rtx_insn *.
3272 (remove_insn): Rename param "insn" to "uncast_insn" and
3273 reintroduce "insn" as a local rtx_insn * using a checked cast.
3274 (emit_pattern_after_setloc): Likewise for param "after", as
3275 "uncast_after".
3276 (emit_pattern_after): Likewise. Strengthen local "prev" from
3277 rtx to rtx_insn *.
3278 (emit_pattern_before_setloc): Rename param "before" to
3279 "uncast_before" and reintroduce "before" as a local rtx_insn *
3280 using a checked cast. Strengthen locals "first", "last" from
3281 rtx to rtx_insn *.
3282 (emit_pattern_before): Likewise rename/cast param "before" to
3283 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
3284 * except.c (copy_reg_eh_region_note_forward): Strengthen param
3285 "first" and local "insn" from rtx to rtx_insn *.
3286 (copy_reg_eh_region_note_backward): Likewise for param "last"
3287 and local "insn".
3288 * expr.c (fixup_args_size_notes): Rename param "last" to
3289 "uncast_last" and reintroduce "last" as a local rtx_insn *
3290 using a checked cast. Strengthen local "insn" from rtx to
3291 rtx_insn *.
3292 * function.c (set_insn_locations): Strengthen param "insn" from
3293 rtx to rtx_insn *.
3294 (record_insns): Likewise for param "insns" and local "tmp".
3295 (active_insn_between): Rename param "tail" to
3296 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
3297 using a checked cast.
3298 (thread_prologue_and_epilogue_insns): Split out top-level local
3299 rtx "seq" into three different rtx_insn * locals. Strengthen
3300 local "prologue_seq" from rtx to rtx_insn *.
3301 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
3302 from rtx to rtx_insn *.
3303 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
3304 (priority): Likewise for locals "prev_first", "twin".
3305 (setup_insn_max_reg_pressure): Likewise for param "after".
3306 (sched_setup_bb_reg_pressure_info): Likewise.
3307 (no_real_insns_p): Strengthen params from const_rtx to
3308 const rtx_insn *.
3309 (schedule_block): Strengthen local "next_tail" from rtx to
3310 rtx_insn *.
3311 * ifcvt.c (find_active_insn_before): Strengthen return type and
3312 param "insn" from rtx to rtx_insn *.
3313 (find_active_insn_after): Likewise.
3314 (cond_exec_process_insns): Likewise for param "start" and local "insn".
3315 (cond_exec_process_if_block): Likewise for locals "then_start",
3316 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
3317 (noce_process_if_block): Likewise for local "jump".
3318 (merge_if_block): Likewise for two locals named "end".
3319 (cond_exec_find_if_block): Likewise for local "last_insn".
3320 * jump.c (delete_related_insns): Rename param "insn" to
3321 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
3322 checked cast. Strengthen local "p" from rtx to rtx_insn *.
3323 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
3324 NULL.
3325 (split_reg): Likewise.
3326 * lra.c (lra_process_new_insns): Likewise.
3327 * modulo-sched.c (permute_partial_schedule): Strengthen param
3328 "last" from rtx to rtx_insn *.
3329 * optabs.c (add_equal_note): Likewise for param "insns" and local
3330 "last_insn".
3331 (expand_binop_directly): Add checked casts to rtx_insn * within
3332 NEXT_INSN (pat) uses.
3333 (expand_unop_direct): Likewise.
3334 (maybe_emit_unop_insn): Likewise.
3335 * recog.c (peep2_attempt): Strengthen locals "last",
3336 "before_try", "x" from rtx to rtx_insn *.
3337 * reorg.c (optimize_skip): Strengthen return type and local
3338 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
3339 and locals "trial", "next_trial" from rtx to rtx_insn *.
3340 * resource.c (next_insn_no_annul): Strengthen return type and
3341 param "insn" from rtx to rtx_insn *. Use a cast to and method of
3342 rtx_sequence to clarify the code.
3343 (mark_referenced_resources): Add a checked cast to rtx_insn *
3344 within PREV_INSN (x).
3345 (find_dead_or_set_registers): Strengthen return type, param
3346 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
3347 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
3348 to rtx_insn **.
3349 (mark_target_live_regs): Strengthen params "insns" and "target",
3350 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
3351 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
3352 the code.
3353 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
3354 from rtx to rtx_insn *.
3355 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
3356 from rtx to rtx_insn *.
3357 (copy_reg_eh_region_note_backward): Likewise.
3358 (unshare_all_rtl_in_chain): Likewise for sole param.
3359 (dump_rtl_slim): Strengthen second and third params from const_rtx
3360 to const rtx_insn *.
3361 * sched-deps.c (sched_free_deps): Strengthen params "head" and
3362 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
3363 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
3364 "next_tail" from rtx to rtx_insn *.
3365 (begin_move_insn): Likewise for local "next".
3366 * sched-int.h (sched_free_deps): Likewise for first and second
3367 params.
3368 (no_real_insns_p): Strengthen both params from const_rtx to
3369 const rtx_insn *.
3370 (sched_setup_bb_reg_pressure_info): Strengthen second params from
3371 rtx to rtx_insn *.
3372 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
3373 "next_tail".
3374 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
3375 and locals "insn", "tail" from const_rtx to const rtx_insn *.
3376 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
3377 rtx_insn *.
3378 (debug_rtl_slim): Strengthen params "first" and "last" from
3379 const_rtx to const rtx_insn *.
3380 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
3381 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
3382 (convert_to_simple_return): Likewise for param "returnjump".
3383 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
3384 "prologue_seq".
3385 (convert_to_simple_return): Likewise for param "returnjump".
3386 * valtrack.c (propagate_for_debug): Likewise for params
3387 "insn", "last".
3388 * valtrack.h (propagate_for_debug): Likewise for second param.
3389
3390 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3391
3392 * output.h (insn_current_reference_address): Strengthen param
3393 from rtx to rtx_insn *.
3394 * final.c (insn_current_reference_address): Likewise.
3395
3396 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3397
3398 * basic-block.h (inside_basic_block_p): Strengthen param from
3399 const_rtx to const rtx_insn *.
3400 * cfgbuild.c (inside_basic_block_p): Likewise.
3401
3402 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3403
3404 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
3405 rtx_insn *.
3406 (get_trace_info): Likewise for param "insn".
3407 (save_point_p): Likewise.
3408 (maybe_record_trace_start): Likewise for both params.
3409 (maybe_record_trace_start_abnormal): Likewise.
3410 (create_trace_edges): Likewise for sole param and for three of the
3411 locals named "lab".
3412 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
3413 to rtx_insn *, and update a call to pat->element to pat->insn.
3414
3415 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3416
3417 * function.h (struct expr_status): Convert field "x_forced_labels"
3418 from rtx_expr_list * to rtx_insn_list *.
3419
3420 * cfgbuild.c (make_edges): Convert local "x" from an
3421 rtx_expr_list * to an rtx_insn_list *, replacing use of
3422 "element" method with "insn" method.
3423 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3424 * except.c (sjlj_emit_dispatch_table): Replace use of
3425 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
3426 forced_labels.
3427 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
3428 rtx_expr_list * to an rtx_insn_list *, replacing use of
3429 "element" method with "insn" method.
3430 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3431 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
3432 rtx_insn *, adding a checked cast. Replace use of
3433 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
3434 forced_labels.
3435 (expand_label): Likewise for local "label_r".
3436
3437 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3438
3439 * function.h (struct rtl_data): Convert field
3440 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
3441 rtx_insn_list *.
3442 * rtl.h (remove_node_from_insn_list): New prototype.
3443
3444 * builtins.c (expand_builtin): When prepending to
3445 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
3446 gen_rtx_EXPR_LIST.
3447 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
3448 to rtx_insn_list *, and use its "insn" method rather than
3449 "element" method.
3450 * cfgrtl.c (delete_insn): Use new function
3451 remove_node_from_insn_list rather than
3452 remove_node_from_expr_list.
3453 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
3454 to rtx_insn_list *, and use its "insn" method rather than
3455 "element" method.
3456 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3457 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3458 * rtlanal.c (remove_node_from_insn_list): New function, adapted
3459 from remove_node_from_expr_list.
3460 * stmt.c (expand_label): When prepending to
3461 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
3462 gen_rtx_EXPR_LIST.
3463
3464 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3465
3466 * function.h (struct rtl_data): Strengthen fields "x_return_label"
3467 and "x_naked_return_label" from rtx to rtx_code_label *.
3468
3469 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3470
3471 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
3472 (SET_NEXT_INSN): Likewise.
3473 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
3474
3475 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
3476 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
3477 to split out the SEQUENCE from local "bundle", strengthening the
3478 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
3479 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
3480 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
3481 and the type of the elements of the "slot" array from rtx to
3482 rtx_insn *.
3483 (reorg_split_calls): Likewise for locals "insn" and "next", and
3484 the type of the elements of the "slot" array.
3485
3486 * config/frv/frv.c (frv_nops): Likewise for the elements of this
3487 array.
3488 (frv_function_prologue): Likewise for locals "insn", "next",
3489 "last_call".
3490 (frv_register_nop): Introduce a local "nop_insn" to be the
3491 rtx_insn * containing rtx "nop".
3492
3493 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
3494 used as an insn and sometimes as a pattern, so rename it to
3495 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
3496 using it where dealing with the core insn.
3497
3498 * config/picochip/picochip.c (reorder_var_tracking_notes):
3499 Strengthen locals "insn", "next", "last_insn", "queue",
3500 "next_queue", "prev" from rtx to rtx_insn *.
3501
3502 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
3503 the second param is an rtx_insn ** rather than an rtx **.
3504 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
3505 from rtx to rtx_sequence *, and introduce local named "sequence",
3506 using methods of rtx_sequence to clarify the code.
3507 (remove_insn): Introduce local rtx_sequence * named "sequence" and
3508 use its methods.
3509 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
3510 Rename param "after" to "uncast_after", reintroducing "after" as a
3511 local rtx_insn * with a checked cast.
3512 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
3513 reintroducing "after" as a local rtx_insn * with a checked cast.
3514 Strengthen local "last" from rtx to rtx_insn * and remove the
3515 now-redundant checked casts.
3516 (copy_delay_slot_insn): Strengthen return type and param from rtx
3517 to rtx_insn *.
3518
3519 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
3520 "last" from rtx to rtx_insn *.
3521
3522 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3523
3524 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
3525 param from rtx to rtx_insn *.
3526
3527 * emit-rtl.c (copy_delay_slot_insn): Likewise.
3528
3529 * reorg.c (skip_consecutive_labels): Strengthen return type, param
3530 and local "insn" from rtx to rtx_insn *.
3531 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
3532 (unfilled_slots_next): Likewise.
3533 (function_return_label): Strengthen from rtx to rtx_code_label *.
3534 (function_simple_return_label): Likewise.
3535 (first_active_target_insn): Strengthen return type and param from
3536 rtx to rtx_insn *.
3537 (find_end_label): Strengthen return type from rtx to
3538 rtx_code_label *; strengthen locals as appropriate.
3539 (emit_delay_sequence): Strengthen return type, param "insn" and
3540 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
3541 and local "li" from rtx to rtx_insn_list *, using methods of
3542 rtx_insn_list for clarity and typesafety.
3543 (add_to_delay_list): Strengthen return type and param "insn" from
3544 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
3545 rtx_insn_list * and use methods of rtx_insn_list.
3546 (delete_from_delay_slot): Strengthen return type, param "insn",
3547 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
3548 Strengthen local "seq" from rtx to rtx_sequence *, and local
3549 "delay_list" from rtx to rtx_insn_list *, using methods of
3550 rtx_sequence for clarity and type-safety.
3551 (delete_scheduled_jump): Add checked cast when invoking
3552 delete_from_delay_slot. Strengthen local "trial" from rtx to
3553 rtx_insn *.
3554 (optimize_skip): Strengthen return type and local "delay_list"
3555 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
3556 rtx_insn *.
3557 (steal_delay_list_from_target): Strengthen return type, param
3558 "delay_list" and local "new_delay_list" from rtx to
3559 rtx_insn_list *. Strengthen param "seq" from rtx to
3560 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
3561 rtx_insn **.
3562 Split out local "temp" into multiple more-tightly scoped locals:
3563 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
3564 of rtx_insn_list and rtx_sequence for clarity and typesafety.
3565 Strengthen locals named "trial" from rtx to rtx_insn *.
3566 (steal_delay_list_from_fallthrough): Strengthen return type and
3567 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
3568 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
3569 Strengthen local "trial" from rtx to rtx_insn *.
3570 (try_merge_delay_insns): Strength local "merged_insns" from rtx
3571 to rtx_insn_list * and use its methods. Strengthen local "pat"
3572 from rtx to rtx_sequence * and use its methods. Strengthen locals
3573 "dtrial" and "new_rtx" from rtx to rtx_insn *.
3574 (get_label_before): Strengthen return type and local "label" from
3575 rtx to rtx_insn *.
3576 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
3577 "next_trial", "next", prev". Strengthen local "delay_list" from
3578 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
3579 rtx_insn **.
3580 (follow_jumps): Strengthen return type, param "label" and locals
3581 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
3582 (fill_slots_from_thread): Strengthen return type, param
3583 "delay_list" from rtx to rtx_insn_list *. Strengthen params
3584 "insn", "thread", "opposite_thread" and locals "new_thread",
3585 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
3586 "sequence" from a checked cast to rtx_sequence so that we can call
3587 steal_delay_list_from_target and steal_delay_list_from_fallthrough
3588 with an rtx_sequence *.
3589 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
3590 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
3591 Strengthen local "delay_list" from rtx to rtx_insn_list *.
3592 (relax_delay_slots): Strengthen param "first" and locals "insn",
3593 "next", "trial", "delay_insn", "target_label" from rtx to
3594 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
3595 Introduce a local "trial_seq" for PATTERN (trial) of type
3596 rtx_sequence *, in both cases using methods of rtx_sequence.
3597 (dbr_schedule): Strengthen param "first" and locals "insn",
3598 "next", "epilogue_insn" from rtx to rtx_insn *.
3599
3600 2014-08-28 Richard Biener <rguenther@suse.de>
3601
3602 PR tree-optimization/62283
3603 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3604 Do not peel loops for alignment where the vector loop likely
3605 doesn't run at least VF times.
3606
3607 2014-08-28 Bin Cheng <bin.cheng@arm.com>
3608
3609 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
3610 important_candidates. Consider all important candidates if
3611 IVS doesn't give any result. Remove check on ivs->upto.
3612 (try_add_cand_for): Call iv_ca_add_use only once.
3613
3614 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3615 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3616 Anna Tikhonova <anna.tikhonova@intel.com>
3617 Ilya Tocar <ilya.tocar@intel.com>
3618 Andrey Turetskiy <andrey.turetskiy@intel.com>
3619 Ilya Verbin <ilya.verbin@intel.com>
3620 Kirill Yukhin <kirill.yukhin@intel.com>
3621 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3622
3623 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
3624 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
3625 masking.
3626 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
3627 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
3628 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
3629 (define_insn "*mul<mode>3"): Add EVEX version.
3630
3631 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3632 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3633 Anna Tikhonova <anna.tikhonova@intel.com>
3634 Ilya Tocar <ilya.tocar@intel.com>
3635 Andrey Turetskiy <andrey.turetskiy@intel.com>
3636 Ilya Verbin <ilya.verbin@intel.com>
3637 Kirill Yukhin <kirill.yukhin@intel.com>
3638 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3639
3640 * config/i386/sse.md
3641 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
3642 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
3643 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
3644 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
3645 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
3646 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
3647 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
3648 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
3649 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
3650 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
3651 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
3652 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
3653 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
3654 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
3655 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
3656 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
3657
3658 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3659 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3660 Anna Tikhonova <anna.tikhonova@intel.com>
3661 Ilya Tocar <ilya.tocar@intel.com>
3662 Andrey Turetskiy <andrey.turetskiy@intel.com>
3663 Ilya Verbin <ilya.verbin@intel.com>
3664 Kirill Yukhin <kirill.yukhin@intel.com>
3665 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3666
3667 * config/i386/sse.md
3668 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
3669 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
3670 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
3671
3672 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3673 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3674 Anna Tikhonova <anna.tikhonova@intel.com>
3675 Ilya Tocar <ilya.tocar@intel.com>
3676 Andrey Turetskiy <andrey.turetskiy@intel.com>
3677 Ilya Verbin <ilya.verbin@intel.com>
3678 Kirill Yukhin <kirill.yukhin@intel.com>
3679 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3680
3681 * config/i386/sse.md
3682 (define_mode_iterator VI128_256): New.
3683 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
3684
3685 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3686 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3687 Anna Tikhonova <anna.tikhonova@intel.com>
3688 Ilya Tocar <ilya.tocar@intel.com>
3689 Andrey Turetskiy <andrey.turetskiy@intel.com>
3690 Ilya Verbin <ilya.verbin@intel.com>
3691 Kirill Yukhin <kirill.yukhin@intel.com>
3692 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3693
3694 * config/i386/sse.md
3695 (define_mode_iterator VI8_256_512): New.
3696 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
3697 Ditto.
3698 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
3699 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
3700 Ditto.
3701 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
3702
3703 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3704
3705 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
3706 pointer to the cumulative reloc value and return the value for
3707 this reloc instead.
3708 (compute_reloc_for_rtx): Take a const_rtx. Call
3709 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
3710 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
3711 for_each_rtx for the CONST case.
3712
3713 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3714
3715 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
3716 (mark_constants_in_pattern): ...this new function to iterate over
3717 all the subrtxes.
3718 (mark_constants): Update accordingly.
3719
3720 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3721
3722 * varasm.c: Include rtl-iter.h.
3723 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
3724 Remove the pointer to the cumulative hashval_t and just return
3725 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
3726 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3727 Accumulate the hashval_ts here instead of const_rtx_hash_1.
3728
3729 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3730
3731 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
3732 Give real type of data parameter. Remove return value.
3733 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
3734 to iterate over subrtxes.
3735
3736 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3737
3738 * var-tracking.c (use_narrower_mode_test): Turn from being a
3739 for_each_rtx callback to being a function that examines each
3740 subrtx itself.
3741 (adjust_mems): Update accordingly.
3742
3743 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3744
3745 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
3746 callback to being a function that examines each subrtx itself.
3747 Remove handling of null rtxes.
3748 (add_uses): Update accordingly.
3749
3750 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3751
3752 * var-tracking.c: Include rtl-iter.h.
3753 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
3754 to being a function that examines each subrtx itself.
3755 (use_type): Update accordingly.
3756
3757 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3758
3759 * store-motion.c: Include rtl-iter.h.
3760 (extract_mentioned_regs_1): Delete.
3761 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
3762 for_each_rtx to iterate over subrtxes.
3763
3764 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3765
3766 * sel-sched.c: Include rtl-iter.h
3767 (count_occurrences_1): Delete.
3768 (count_occurrences_equiv): Turn rtxes into const_rtxes.
3769 Use FOR_EACH_SUBRTX rather than for_each_rtx.
3770
3771 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3772
3773 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
3774 * rtlanal.c (tls_referenced_p_1): Delete.
3775 (tls_referenced_p): Take a const_rtx rather than an rtx.
3776 Use FOR_EACH_SUBRTX rather than for_each_rtx.
3777
3778 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3779
3780 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
3781 (for_each_inc_dec): Take an rtx rather than an rtx *.
3782 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
3783 (cselib_record_sets): Likewise.
3784 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
3785 (check_for_inc_dec): Likewise.
3786 * rtlanal.c (for_each_inc_dec_ops): Delete.
3787 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
3788 rather than a pointer to the memory address. Replace
3789 for_each_inc_dec_ops argument with separate function and data
3790 arguments. Abort on non-autoinc addresses.
3791 (for_each_inc_dec_find_mem): Delete.
3792 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
3793 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
3794
3795 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3796
3797 * rtl.h (find_all_hard_regs): Declare.
3798 * rtlanal.c (find_all_hard_regs): New function.
3799 (record_hard_reg_uses_1): Delete.
3800 (record_hard_reg_uses): Use find_all_hard_regs.
3801
3802 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3803
3804 * rtl.h (replace_label_data): Delete.
3805 (replace_label): Take the old label, new label and update-nuses flag
3806 as direct arguments. Return void.
3807 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
3808 * rtlanal.c (replace_label): Update interface as above. Handle
3809 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
3810 iterator. Use FOR_EACH_SUBRTX_PTR.
3811
3812 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3813
3814 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
3815 with const_rtx parameters.
3816 * varasm.c (get_pool_constant): Likewise.
3817 * rtlanal.c (rtx_referenced_p_1): Delete.
3818 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3819 Assert that the rtx we're looking for is nonnull. Allow searches
3820 for constant pool SYMBOL_REFs.
3821
3822 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3823
3824 * reload1.c: Include rtl-iter.h.
3825 (note_reg_elim_costly): Turn from being a for_each_rtx callback
3826 to being a function that examines each subrtx itself.
3827 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
3828
3829 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3830
3831 * regcprop.c (cprop_find_used_regs_1): Delete.
3832 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3833
3834 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3835
3836 * regcprop.c: Include rtl-iter.h.
3837 (kill_value): Take a const_rtx.
3838 (kill_autoinc_value): Turn from being a for_each_rtx callback
3839 to being a function that examines each subrtx itself.
3840 (copyprop_hardreg_forward_1): Update accordingly.
3841
3842 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3843
3844 * reg-stack.c: Include rtl-iter.h.
3845 (subst_stack_regs_in_debug_insn): Delete.
3846 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
3847 instead of for_each_rtx.
3848
3849 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3850
3851 * lower-subreg.c (find_decomposable_subregs): Turn from being
3852 a for_each_rtx callback to being a function that examines each
3853 subrtx itself. Remove handling of null rtxes.
3854 (decompose_multiword_subregs): Update accordingly.
3855
3856 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3857
3858 * lower-subreg.c (adjust_decomposed_uses): Delete.
3859 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
3860 Remove handling of null rtxes.
3861
3862 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3863
3864 * lower-subreg.c: Include rtl-iter.h.
3865 (resolve_subreg_use): Turn from being a for_each_rtx callback
3866 to being a function that examines each subrtx itself. Remove
3867 handling of null rtxes.
3868 (resolve_reg_notes, resolve_simple_move): Update accordingly.
3869 (decompose_multiword_subregs): Likewise.
3870
3871 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3872
3873 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
3874 to being a function that examines each subrtx itself.
3875 (simplify_using_condition, simplify_using_initial_values): Update
3876 accordingly.
3877
3878 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3879
3880 * loop-iv.c: Include rtl-iter.h.
3881 (find_single_def_src): New function.
3882 (replace_single_def_regs): Turn from being a for_each_rtx callback
3883 to being a function that examines each subrtx itself.
3884 (replace_in_expr, simplify_using_initial_values): Update accordingly.
3885
3886 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3887
3888 * jump.c (eh_returnjump_p_1): Delete.
3889 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3890 Remove handling of null rtxes.
3891
3892 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3893
3894 * jump.c: Include rtl-iter.h.
3895 (returnjump_p_1): Delete.
3896 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3897 Remove handling of null rtxes.
3898
3899 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3900
3901 * ira.c: Include rtl-iter.h.
3902 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
3903 to being a function that examines each subrtx itself. Remove
3904 handling of null rtxes.
3905 (update_equiv_regs): Update call accordingly.
3906
3907 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3908
3909 * fwprop.c: Include rtl-iter.h.
3910 (varying_mem_p): Turn from being a for_each_rtx callback to being
3911 a function that examines each subrtx itself.
3912 (propagate_rtx): Update accordingly.
3913
3914 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3915
3916 * function.c: Include rtl-iter.h
3917 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
3918 callback to being a function that examines each subrtx itself.
3919 Return the changed flag.
3920 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
3921 (instantiate_virtual_regs): Update calls accordingly.
3922
3923 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3924
3925 * final.c: Include rtl-iter.h.
3926 (mark_symbol_ref_as_used): Delete.
3927 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
3928 for_each_rtx.
3929
3930 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3931
3932 * emit-rtl.c: Include rtl-iter.h.
3933 (find_auto_inc): Turn from being a for_each_rtx callback to being
3934 a function that examines each subrtx itself. Assume the first operand
3935 to an RTX_AUTOINC is the automodified register.
3936 (try_split): Update call accordingly.
3937
3938 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3939
3940 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
3941 Return a bool, inverting the result so that 0/false means "not ok".
3942 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
3943 subrtxes of a CONST.
3944 (mem_loc_descriptor, add_const_value_attribute)
3945 (resolve_addr_in_expr): Update calls accordingly.
3946
3947 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3948
3949 * dwarf2out.c: Include rtl-iter.h.
3950 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
3951 Remove unused data parameter. Return a bool, inverting the result
3952 so that 0/false means "not ok".
3953 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
3954 instead of for_each_rtx.
3955
3956 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3957
3958 * dse.c: Include rtl-iter.h.
3959 (check_mem_read_rtx): Change void * parameter to real type.
3960 Remove return value.
3961 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
3962 for_each_rtx. Don't handle null rtxes.
3963
3964 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3965
3966 * df-problems.c: Include rtl-iter.h.
3967 (find_memory): Turn from being a for_each_rtx callback to being
3968 a function that examines each subrtx itself. Continue to look for
3969 volatile references even after a nonvolatile one has been found.
3970 (can_move_insns_across): Update calls accordingly.
3971
3972 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3973
3974 * ddg.c (walk_mems_2, walk_mems_1): Delete.
3975 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
3976 to iterate over subrtxes. Return a bool rather than an int.
3977
3978 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3979
3980 * ddg.c: Include rtl-iter.h.
3981 (mark_mem_use_1): Rename to...
3982 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
3983 instead of for_each_rtx.
3984 (mem_read_insn_p): Update accordingly.
3985
3986 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3987
3988 * cse.c (change_cc_mode_args): Delete.
3989 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
3990 a function that examines each subrtx itself. Take the fields of
3991 change_cc_mode_args as argument and return void.
3992 (cse_change_cc_mode_insn): Update calls accordingly.
3993
3994 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3995
3996 * cse.c (is_dead_reg): Change argument to const_rtx.
3997 (dead_debug_insn_data): Delete.
3998 (is_dead_debug_insn): Expand commentary. Turn from being a
3999 for_each_rtx callback to being a function that examines
4000 each subrtx itself. Take the fields of dead_debug_insn_data
4001 as argument.
4002 (delete_trivially_dead_insns): Update call accordingly.
4003
4004 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4005
4006 * cse.c (check_for_label_ref): Move earlier in file. Turn from
4007 being a for_each_rtx callback to being a function that examines
4008 each subrtx itself.
4009 (cse_extended_basic_block): Update call accordingly.
4010
4011 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4012
4013 * cse.c (check_dependence_data): Delete.
4014 (check_dependence): Change from being a for_each_rtx callback to being
4015 a function that examines all subrtxes itself. Don't handle null rtxes.
4016 (invalidate): Update call accordingly.
4017
4018 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4019
4020 * cse.c: Include rtl-iter.h.
4021 (approx_reg_cost_1): Delete.
4022 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4023 Don't handle null rtxes.
4024
4025 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4026
4027 * cfgcleanup.c: Include rtl-iter.h.
4028 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
4029 to being a function that examines each subrtx itself.
4030 (thread_jump): Update accordingly.
4031
4032 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4033
4034 * combine-stack-adj.c: Include rtl-iter.h.
4035 (record_stack_refs_data): Delete.
4036 (record_stack_refs): Turn from being a for_each_rtx callback
4037 to being a function that examines each subrtx itself.
4038 Take a pointer to the reflist. Invert sense of return value
4039 so that true means success and false means failure. Don't
4040 handle null rtxes.
4041 (combine_stack_adjustments_for_block): Update accordingly.
4042
4043 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4044
4045 * combine.c (record_truncated_value): Turn from being a for_each_rtx
4046 callback to a function that takes an rtx and returns a bool
4047 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
4048 for_each_rtx.
4049
4050 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4051
4052 * combine.c: Include rtl-iter.h.
4053 (unmentioned_reg_p_1): Delete.
4054 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
4055 Don't handle null rtxes.
4056
4057 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4058
4059 * calls.c: Include rtl-iter.h.
4060 (internal_arg_pointer_based_exp_1): Delete.
4061 (internal_arg_pointer_based_exp): Take a const_rtx.
4062 Use FOR_EACH_SUBRTX to iterate over subrtxes.
4063
4064 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4065
4066 * caller-save.c: Include rtl-iter.h.
4067 (add_used_regs_1): Delete.
4068 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
4069 to iterate over subrtxes. Assert that any remaining pseudos
4070 have been spilled.
4071
4072 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4073
4074 * bt-load.c: Include rtl-iter.h.
4075 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
4076 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
4077 to iterate over subrtxes.
4078 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
4079 find_btr_use rather than btr_referenced_p.
4080
4081 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4082
4083 * alias.c: Include rtl-iter.h.
4084 (refs_newer_value_cb): Delete.
4085 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4086
4087 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4088
4089 * rtl-iter.h: New file.
4090 * rtlanal.c: Include it.
4091 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
4092 (generic_subrtx_iterator <T>::add_single_to_queue)
4093 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
4094 (generic_subrtx_iterator <T>::free_array): New functions.
4095 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
4096 (generic_subrtx_iterator <const_rtx_accessor>)
4097 (generic_subrtx_iterator <rtx_var_accessor>
4098 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
4099 (setup_reg_subrtx_bounds): New function.
4100 (init_rtlanal): Call it.
4101
4102 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
4103
4104 PR target/62261
4105 * config/sh/sh.md (ashlsi3): Handle negative shift count for
4106 TARGET_SHMEDIA.
4107 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
4108
4109 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
4110
4111 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
4112
4113 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4114
4115 * rtl.h (JUMP_LABEL_AS_INSN): New.
4116
4117 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4118
4119 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
4120 rtx_expr_list **.
4121 (alloc_EXPR_LIST): Strengthen return type from rtx to
4122 rtx_expr_list *.
4123 (remove_free_EXPR_LIST_node): Likewise for param.
4124 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
4125 from rtx to rtx_expr_list *.
4126 * sched-int.h (struct deps_desc): Strengthen fields
4127 "pending_read_mems" and "pending_write_mems" from rtx to
4128 rtx_expr_list *.
4129
4130 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
4131 rtx to rtx_expr_list *.
4132 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
4133 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
4134 rtx_expr_list **.
4135 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
4136 from rtx to rtx_expr_list *.
4137 * loop-iv.c (simplify_using_initial_values): Strengthen local
4138 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
4139 "pnote_next" from rtx * to rtx_expr_list **.
4140 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
4141 param "exprp" from rtx * to rtx_expr_list **.
4142 (add_insn_mem_dependence): Strengthen local "mem_list" from
4143 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
4144 to rtx_expr_list *.
4145 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
4146 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
4147 param "old_mems_p" from rtx * to rtx_expr_list **.
4148 * var-tracking.c (struct adjust_mem_data): Strengthen field
4149 "side_effects" from rtx to rtx_expr_list *.
4150 (adjust_insn): Replace NULL_RTX with NULL when assigning to
4151 rtx_expr_list *.
4152 (prepare_call_arguments): Likewise.
4153
4154 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4155
4156 * function.h (struct rtl_data): Strengthen field
4157 "x_stack_slot_list" from rtx to rtx_expr_list *.
4158
4159 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
4160 when assigning to stack_slot_list.
4161
4162 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4163
4164 * function.h (struct rtl_data): Strengthen field
4165 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
4166 * rtl.h (remove_node_from_expr_list): Strengthen second param from
4167 rtx * to rtx_expr_list **.
4168
4169 * cfgbuild.c (make_edges): In loop over
4170 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
4171 rtx_expr_list *, and use methods of the latter class to clarify
4172 the code.
4173 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
4174 rtx_expr_list *, and use methods of the latter class to clarify
4175 the code.
4176 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
4177 * reload1.c (set_initial_label_offsets): Likewise for local "x".
4178 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
4179 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
4180 to rtx_expr_list *. Use methods of the latter class to clarify
4181 the code.
4182
4183 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4184
4185 * function.h (struct expr_status): Strengthen field
4186 "x_forced_labels" from rtx to rtx_expr_list *.
4187
4188 * cfgbuild.c (make_edges): Split local "x" into two locals,
4189 strengthening one from rtx to rtx_expr_list *, and using methods
4190 of said class.
4191 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
4192 loop over forced_labels, introduce strengthen it from rtx to
4193 rtx_expr_list *, using methods to clarify the code.
4194 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
4195 to rtx_expr_list *, using methods of said class to clarify the
4196 code.
4197 * reload1.c (set_initial_label_offsets): Split local "x" into two
4198 per-loop variables, strengthening the first from rtx to
4199 rtx_expr_list * and using methods.
4200
4201 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4202
4203 * coretypes.h (class rtx_expr_list): Add forward declaration.
4204 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
4205 * gengenrtl.c (special_rtx): Add EXPR_LIST.
4206 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
4207 invariant: GET_CODE (X) == EXPR_LIST.
4208 (is_a_helper <rtx_expr_list *>::test): New.
4209 (rtx_expr_list::next): New.
4210 (rtx_expr_list::element): New.
4211 (gen_rtx_EXPR_LIST): New.
4212
4213 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4214
4215 * varasm.c (mark_constants): Convert a GET_CODE check into a
4216 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
4217 Use methods of rtx_sequence to clarify the code.
4218
4219 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4220
4221 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
4222 local "seq" via a checked cast, and use methods of rtx_sequence
4223 to simplify the code.
4224
4225 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4226
4227 * resource.c (mark_referenced_resources): Strengthen local
4228 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
4229 using methods of rtx_sequence to clarify the code.
4230 (find_dead_or_set_registers): Within the switch statement, convert
4231 a GET_CODE check to a dyn_cast, introducing local "seq". Within
4232 the JUMP_P handling, introduce another local "seq", adding a
4233 checked cast to rtx_sequence *. In both cases, use methods of
4234 rtx_sequence to clarify the code.
4235 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
4236 via a checked cast, and use methods of rtx_sequence to simplify
4237 the code.
4238
4239 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4240
4241 * reorg.c (redundant_insn): In two places in the function, replace
4242 a check of GET_CODE with a dyn_cast, introducing local "seq", and
4243 usings methods of rtx_sequence to clarify the code.
4244
4245 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4246
4247 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
4248 local "seq" with a checked cast, and use methods of rtx_sequence
4249 to clarify the code.
4250
4251 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4252
4253 * function.c (contains): Introduce local "seq" for PATTERN (insn),
4254 with a checked cast, in the region for where we know it's a
4255 SEQUENCE. Use methods of rtx_sequence.
4256
4257 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4258
4259 * final.c (get_attr_length_1): Replace GET_CODE check with a
4260 dyn_cast, introducing local "seq" and the use of methods of
4261 rtx_sequence.
4262 (shorten_branches): Likewise, introducing local "body_seq".
4263 Strengthen local "inner_insn" from rtx to rtx_insn *.
4264 (reemit_insn_block_notes): Replace GET_CODE check with a
4265 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
4266 Use methods of rtx_sequence.
4267 (final_scan_insn): Likewise, introducing local "seq" for when
4268 "body" is known to be a SEQUENCE, using its methods.
4269
4270 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4271
4272 * except.c (can_throw_external): Strengthen local "seq" from rtx
4273 to rtx_sequence *. Use methods of rtx_sequence.
4274 (insn_nothrow_p): Likewise.
4275
4276 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4277
4278 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
4279 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
4280 Use methods of rtx_sequence.
4281 (scan_trace): Likewise for local "pat".
4282
4283 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4284
4285 * coretypes.h (class rtx_sequence): Add forward declaration.
4286 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
4287 invariant: GET_CODE (X) == SEQUENCE.
4288 (is_a_helper <rtx_sequence *>::test): New.
4289 (is_a_helper <const rtx_sequence *>::test): New.
4290 (rtx_sequence::len): New.
4291 (rtx_sequence::element): New.
4292 (rtx_sequence::insn): New.
4293
4294 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4295
4296 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
4297 rtx_insn_list **.
4298 (alloc_INSN_LIST): Strengthen return type from rtx to
4299 rtx_insn_list *.
4300 (copy_INSN_LIST): Likewise for return type and param.
4301 (concat_INSN_LIST): Likewise for both params and return type.
4302 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
4303 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
4304 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
4305 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
4306
4307 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
4308 "implicit_sets", "control_uses", "clobbers" from rtx to
4309 rtx_insn_list *.
4310 (struct deps_desc): Likewise for fields "pending_read_insns",
4311 "pending_write_insns", "pending_jump_insns",
4312 "last_pending_memory_flush", "last_function_call",
4313 "last_function_call_may_noreturn", "sched_before_next_call",
4314 "sched_before_next_jump".
4315 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
4316 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
4317
4318 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
4319 from rtx to rtx_insn_list *.
4320 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
4321 rtx_insn_list *.
4322
4323 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
4324 to rtx_insn_list **.
4325 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
4326 rtx_insn_list *.
4327 (queue_insn): Likewise for local "link".
4328 (struct haifa_saved_data): Strengthen field "insn_queue" from
4329 rtx * to rtx_insn_list **.
4330 (save_backtrack_point): Update allocation of save->insn_queue to
4331 reflect the strengthening of elements from rtx to rtx_insn_list *.
4332 (queue_to_ready): Strengthen local "link" from rtx to
4333 rtx_insn_list *; use methods "next" and "insn" when traversing the
4334 list.
4335 (early_queue_to_ready): Likewise for locals "link", "next_link",
4336 "prev_link".
4337 (schedule_block): Update allocation of insn_queue to reflect the
4338 strengthening of elements from rtx to rtx_insn_list *. Strengthen
4339 local "link" from rtx to rtx_insn_list *, and use methods when
4340 working it.
4341 (add_to_speculative_block): Strengthen locals "twins" and
4342 "next_node" from rtx to rtx_insn_list *, and use methods when
4343 working with them. Strengthen local "twin" from rtx to
4344 rtx_insn *, eliminating a checked cast.
4345 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
4346 from rtx to rtx_insn_list *, and use methods when working with
4347 them.
4348
4349 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
4350 from rtx to rtx_insn_list *, adding a checked cast.
4351 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
4352 rtx_insn_list **.
4353 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
4354 "newlink" from rtx to rtx_insn_list *. Strengthen local
4355 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
4356 from rtx to rtx_insn *.
4357 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
4358 from rtx to rtx_insn_list *. Use methods of the latter class.
4359 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
4360 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
4361 (remove_free_INSN_LIST_node): Strengthen return type and local
4362 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
4363 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
4364 rtx_insn_list *, using "insn" method.
4365
4366 * sched-deps.c (add_dependence_list): Strengthen param "list"
4367 from rtx to rtx_insn_list *, and use methods when working with it.
4368 (add_dependence_list_and_free): Strengthen param "listp" from
4369 rtx * to rtx_insn_list **.
4370 (remove_from_dependence_list): Strenghten param "listp" from rtx *
4371 to rtx_insn_list **, and use methods when working with *listp.
4372 (remove_from_both_dependence_lists): Strengthen param "listp" from
4373 rtx * to rtx_insn_list **
4374 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
4375 to rtx_insn_list **. Eliminate local "link", in favor of two new
4376 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
4377 respectively.
4378 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
4379 by introducing local "cond_deps".
4380 (remove_from_deps): Strengthen param "insn" from rtx to
4381 rtx_insn *.
4382
4383 * sched-rgn.c (concat_insn_mem_list): Strengthen param
4384 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
4385 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
4386 Use methods of rtx_insn_list.
4387
4388 * store-motion.c (struct st_expr): Strengthen fields
4389 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
4390 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
4391 rtx_insn_list *.
4392 (find_moveable_store): Split out "tmp" into multiple more-tightly
4393 scoped locals. Use methods of rtx_insn_list *.
4394 (compute_store_table): Strengthen local "tmp" from rtx to
4395 rtx_insn *. Use methods of rtx_insn_list *.
4396
4397 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4398
4399 * coretypes.h (class rtx_insn_list): Add forward declaration.
4400 * rtl.h (class rtx_insn_list): New subclass of rtx_def
4401 (is_a_helper <rtx_insn_list *>::test): New.
4402 (rtx_insn_list::next): New.
4403 (rtx_insn_list::insn): New.
4404 (gen_rtx_INSN_LIST): Add prototype.
4405 * emit-rtl.c (gen_rtx_INSN_LIST): New.
4406 * gengenrtl.c (special_rtx): Add INSN_LIST.
4407
4408 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4409
4410 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
4411 "prev" from rtx to rtx_insn *.
4412
4413 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4414
4415 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
4416 functions. Require merely an rtx for now, not an rtx_insn *.
4417 (BLOCK_FOR_INSN): Likewise.
4418 (INSN_LOCATION): Likewise.
4419 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
4420
4421 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4422
4423 * rtl.h (PATTERN): Convert this macro into a pair of inline
4424 functions, for now, requiring const_rtx and rtx.
4425
4426 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4427
4428 * target.def (unwind_emit): Strengthen param "insn" from rtx to
4429 rtx_insn *.
4430 (final_postscan_insn): Likewise.
4431 (adjust_cost): Likewise.
4432 (adjust_priority): Likewise.
4433 (variable_issue): Likewise.
4434 (macro_fusion_pair_p): Likewise.
4435 (dfa_post_cycle_insn): Likewise.
4436 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
4437 (first_cycle_multipass_issue): Likewise.
4438 (dfa_new_cycle): Likewise.
4439 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
4440 (speculate_insn): Likewise for param "insn".
4441 (gen_spec_check): Likewise for params "insn" and "label".
4442 (get_insn_spec_ds): Likewise for param "insn".
4443 (get_insn_checked_ds): Likewise.
4444 (dispatch_do): Likewise.
4445 (dispatch): Likewise.
4446 (cannot_copy_insn_p): Likewise.
4447 (invalid_within_doloop): Likewise.
4448 (legitimate_combined_insn): Likewise.
4449 (needed): Likewise.
4450 (after): Likewise.
4451
4452 * doc/tm.texi: Automatically updated to reflect changes to
4453 target.def.
4454
4455 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
4456 working with insn.
4457 (schedule_block): Likewise.
4458 (sched_init): Likewise.
4459 (sched_speculate_insn): Strengthen param "insn" from rtx to
4460 rtx_insn *.
4461 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
4462 working with insn.
4463 * hooks.c (hook_bool_rtx_true): Rename to...
4464 hook_bool_rtx_insn_true): ...this, and strengthen first param from
4465 rtx to rtx_insn *.
4466 (hook_constcharptr_const_rtx_null): Rename to...
4467 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
4468 first param from const_rtx to const rtx_insn *.
4469 (hook_bool_rtx_int_false): Rename to...
4470 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
4471 param from rtx to rtx_insn *.
4472 (hook_void_rtx_int): Rename to...
4473 (hook_void_rtx_insn_int): ...this, and strengthen first param from
4474 rtx to rtx_insn *.
4475
4476 * hooks.h (hook_bool_rtx_true): Rename to...
4477 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
4478 rtx to rtx_insn *.
4479 (hook_bool_rtx_int_false): Rename to...
4480 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
4481 param from rtx to rtx_insn *.
4482 (hook_void_rtx_int): Rename to...
4483 (hook_void_rtx_insn_int): ...this, and strengthen first param from
4484 rtx to rtx_insn *.
4485 (hook_constcharptr_const_rtx_null): Rename to...
4486 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
4487 first param from const_rtx to const rtx_insn *.
4488
4489 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
4490 and local "prev" from rtx to rtx_insn *.
4491
4492 * sched-int.h (sched_speculate_insn): Strengthen first param from
4493 rtx to rtx_insn *.
4494
4495 * sel-sched.c (create_speculation_check): Likewise for local "label".
4496 * targhooks.c (default_invalid_within_doloop): Strengthen param
4497 "insn" from const_rtx to const rtx_insn *.
4498 * targhooks.h (default_invalid_within_doloop): Strengthen param
4499 from const_rtx to const rtx_insn *.
4500
4501 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
4502 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
4503
4504 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
4505 "insn".
4506 (arc_invalid_within_doloop): Likewise, with const.
4507
4508 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
4509 (arm_cannot_copy_insn_p): Likewise for param "insn".
4510 (arm_unwind_emit): Likewise.
4511
4512 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
4513 "dep_insn".
4514
4515 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
4516 (c6x_variable_issue): Likewise. Removed now-redundant checked
4517 cast.
4518 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
4519
4520 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
4521 Likewise for param "insn".
4522 (epiphany_mode_after): Likewise.
4523 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
4524 params "insn", "dep_insn".
4525 (epiphany_mode_needed): Likewise for param "insn".
4526 (epiphany_mode_after): Likewise.
4527
4528 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
4529 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
4530 (ix86_avx_u128_mode_needed): Likewise.
4531 (ix86_i387_mode_needed): Likewise.
4532 (ix86_mode_needed): Likewise.
4533 (ix86_avx_u128_mode_after): Likewise.
4534 (ix86_mode_after): Likewise.
4535 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
4536 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
4537 (ix86_adjust_priority): Likewise for param "insn".
4538 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
4539 (do_dispatch): Likewise.
4540 (has_dispatch): Likewise.
4541 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
4542
4543 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
4544 reflect renaming of default hook implementation from
4545 hook_constcharptr_const_rtx_null to
4546 hook_constcharptr_const_rtx_insn_null.
4547 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
4548 rtx to rtx_insn *.
4549 (ia64_variable_issue): Likewise for param "insn".
4550 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
4551 (ia64_dfa_new_cycle): Likewise.
4552 (ia64_get_insn_spec_ds): Likewise.
4553 (ia64_get_insn_checked_ds): Likewise.
4554 (ia64_speculate_insn): Likewise.
4555 (ia64_gen_spec_check): Likewise for params "insn", "label".
4556 (ia64_asm_unwind_emit): Likewise for param "insn".
4557
4558 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
4559
4560 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
4561 "insn", "def_insn".
4562 (m68k_sched_variable_issue): Likewise for param "insn".
4563
4564 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
4565 "def_insn".
4566
4567 * config/microblaze/microblaze.c (microblaze_adjust_cost):
4568 Likewise for params "insn", "dep".
4569
4570 * config/mips/mips.c (mips_adjust_cost): Likewise.
4571 (mips_variable_issue): Likewise for param "insn".
4572 (mips_final_postscan_insn): Likewise.
4573
4574 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
4575 for params "insn", "dep".
4576
4577 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
4578 "dep_insn".
4579 (pa_adjust_priority): Likewise for param "insn".
4580
4581 * config/picochip/picochip.c (picochip_sched_adjust_cost):
4582 Likewise for params "insn", "dep_insn".
4583
4584 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
4585 param "insn".
4586 (rs6000_variable_issue): Likewise.
4587 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
4588 (rs6000_debug_adjust_cost): Likewise.
4589 (rs6000_adjust_priority): Likewise for param "insn".
4590 (rs6000_use_sched_lookahead_guard): Likewise.
4591 (get_next_active_insn): Likewise for return type and both params.
4592 (redefine_groups): Likewise for params "prev_head_insn", "tail"
4593 and locals "insn", "next_insn".
4594 (pad_groups): Likewise.
4595
4596 * config/s390/s390.c (s390_adjust_priority): Likewise for param
4597 "insn".
4598 (s390_cannot_copy_insn_p): Likewise.
4599 (s390_sched_variable_issue): Likewise for third param, eliminating
4600 checked cast.
4601 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
4602 default hook implementation from hook_constcharptr_const_rtx_null
4603 to hook_constcharptr_const_rtx_insn_null.
4604
4605 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
4606 from rtx to rtx_insn *.
4607 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
4608 (sh_variable_issue): Likewise for param "insn".
4609 (sh_dfa_new_cycle): Likewise.
4610 (sh_mode_needed): Likewise.
4611 (sh_mode_after): Likewise.
4612
4613 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
4614 params "insn", "dep_insn".
4615 (hypersparc_adjust_cost): Likewise.
4616 (sparc_adjust_cost): Likewise.
4617
4618 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
4619 param, eliminated checked cast.
4620 (spu_sched_adjust_cost): Likewise for first and third params.
4621
4622 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
4623 params "insn" and "dep_insn" from rtx to rtx_insn *.
4624
4625 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
4626
4627 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4628
4629 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
4630 (set_is_load_p): ...this, updating to work on a SET pattern rather
4631 than an insn.
4632 (is_store_insn): Rename to...
4633 (set_is_store_p): ...this, updating to work on a SET pattern
4634 rather than an insn.
4635 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
4636 top of function to where it is needed. Rewrite the bogus
4637 condition that checks for "insn" and "dep" being PARALLEL to
4638 instead use single_set, introducing locals "insn_set" and
4639 "dep_set". Given that we only ever returned "cost" for a non-pair
4640 of SETs, bail out early if we don't have a pair of SET.
4641 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
4642 use the new locals "insn_set" and "dep_set", and update calls to
4643 is_load_insn and is_store_insn to be calls to set_is_load_p and
4644 set_is_store_p.
4645
4646 2014-08-27 Guozhi Wei <carrot@google.com>
4647
4648 PR target/62262
4649 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
4650 amount before using it.
4651
4652 2014-08-27 Richard Biener <rguenther@suse.de>
4653
4654 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
4655 get_maxval_strlen inside a more useful API.
4656 (gimple_fold_builtin_with_strlen): Remove and fold into ...
4657 (gimple_fold_builtin): ... caller.
4658 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
4659 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
4660 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
4661 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
4662 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
4663 gimple_fold_builtin_sprintf): Adjust to compute maxval
4664 themselves.
4665
4666 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
4667
4668 PR other/62248
4669 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
4670
4671 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4672 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4673 Anna Tikhonova <anna.tikhonova@intel.com>
4674 Ilya Tocar <ilya.tocar@intel.com>
4675 Andrey Turetskiy <andrey.turetskiy@intel.com>
4676 Ilya Verbin <ilya.verbin@intel.com>
4677 Kirill Yukhin <kirill.yukhin@intel.com>
4678 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4679
4680 * config/i386/sse.md
4681 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
4682 Use `concat_tg_mode' attribute to determine asm register size.
4683
4684 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4685 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4686 Anna Tikhonova <anna.tikhonova@intel.com>
4687 Ilya Tocar <ilya.tocar@intel.com>
4688 Andrey Turetskiy <andrey.turetskiy@intel.com>
4689 Ilya Verbin <ilya.verbin@intel.com>
4690 Kirill Yukhin <kirill.yukhin@intel.com>
4691 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4692
4693 * config/i386/sse.md
4694 (define_mode_iterator VI48_AVX512VL): New.
4695 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
4696 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
4697 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
4698 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4699 with VI1): Change mode iterator.
4700 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4701 with VI_ULOADSTORE_BW_AVX512VL): New.
4702 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4703 with VI_ULOADSTORE_F_AVX512VL): Ditto.
4704 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4705 with VI1): Change mode iterator.
4706 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4707 with VI_ULOADSTORE_BW_AVX512VL): New.
4708 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4709 with VI_ULOADSTORE_F_AVX512VL): Ditto.
4710 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4711 with VI1): Change mode iterator.
4712 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4713 with VI_ULOADSTORE_BW_AVX512VL): New.
4714 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4715 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
4716 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
4717 (define_insn "<avx512>_storedqu<mode>_mask" with
4718 VI48_AVX512VL): New.
4719 (define_insn "<avx512>_storedqu<mode>_mask" with
4720 VI12_AVX512VL): Ditto.
4721
4722 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4723 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4724 Anna Tikhonova <anna.tikhonova@intel.com>
4725 Ilya Tocar <ilya.tocar@intel.com>
4726 Andrey Turetskiy <andrey.turetskiy@intel.com>
4727 Ilya Verbin <ilya.verbin@intel.com>
4728 Kirill Yukhin <kirill.yukhin@intel.com>
4729 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4730
4731 * config/i386/sse.md
4732 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
4733 (define_mode_iterator VI48_AVX512BW): New.
4734 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
4735 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4736 with VI48_AVX2_48_AVX512F): New.
4737 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4738 with VI2_AVX512VL): Ditto.
4739
4740 2014-08-27 Richard Biener <rguenther@suse.de>
4741
4742 PR middle-end/62239
4743 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
4744 (fold_builtin_3): Do not fold strcat_chk here.
4745 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
4746 from builtins.c.
4747 (gimple_fold_builtin): Fold strcat_chk here.
4748
4749 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
4750
4751 * dwarf2out.h (dwarf2out_decl): Remove prototype.
4752 * dwarf2out.c (dwarf2out_decl): Make static.
4753
4754 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
4755
4756 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
4757
4758 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4759
4760 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
4761 from rtx to rtx_insn *.
4762 (cselib_lookup_from_insn): Likewise for final param.
4763 (cselib_subst_to_values_from_insn): Likewise.
4764 (cselib_add_permanent_equiv): Likewise.
4765
4766 * cselib.c (cselib_current_insn): Likewise for this variable.
4767 (cselib_subst_to_values_from_insn): Likewise for param "insn".
4768 (cselib_lookup_from_insn): Likewise.
4769 (cselib_add_permanent_equiv): Likewise for param "insn" and local
4770 "save_cselib_current_insn".
4771 (cselib_process_insn): Replace use of NULL_RTX with NULL.
4772
4773 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
4774 from rtx to rtx_insn *.
4775
4776 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4777
4778 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
4779 rtx_insn *.
4780
4781 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4782
4783 * df.h (df_dump_insn_problem_function): Strengthen first param of
4784 this callback from const_rtx to const rtx_insn *.
4785 (struct df_insn_info): Strengthen field "insn" from rtx to
4786 rtx_insn *.
4787 (DF_REF_INSN): Eliminate this function, reinstating the older
4788 macro definition.
4789 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
4790 (df_reg_defined): Likewise.
4791 (df_find_use): Likewise.
4792 (df_reg_used): Likewise.
4793 (df_dump_insn_top): Strengthen param 1 from const_rtx to
4794 const rtx_insn *.
4795 (df_dump_insn_bottom): Likewise.
4796 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
4797 (df_insn_debug_regno): Likewise.
4798 (debug_df_insn): Likewise.
4799 (df_rd_simulate_one_insn): Likewise for param 2.
4800 (df_word_lr_simulate_defs): Likewise for param 1.
4801 (df_word_lr_simulate_uses): Likewise.
4802 (df_md_simulate_one_insn): Likewise for param 2.
4803 (df_simulate_find_noclobber_defs): Likewise for param 1.
4804 (df_simulate_find_defs): Likewise.
4805 (df_simulate_defs): Likewise.
4806 (df_simulate_uses): Likewise.
4807 (df_simulate_one_insn_backwards): Likewise for param 2.
4808 (df_simulate_one_insn_forwards): Likewise.
4809 (df_uses_create): Likewise for param 2.
4810 (df_insn_create_insn_record): Likewise for param 1.
4811 (df_insn_delete): Likewise.
4812 (df_insn_rescan): Likewise.
4813 (df_insn_rescan_debug_internal): Likewise.
4814 (df_insn_change_bb): Likewise.
4815 (df_notes_rescan): Likewise.
4816 * rtl.h (remove_death): Likewise for param 2.
4817 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
4818 const rtx_insn *.
4819 * sched-int.h (reemit_notes): Strengthen param from rtx to
4820 rtx_insn *.
4821 * valtrack.h (propagate_for_debug): Likewise for param 1.
4822
4823 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
4824 local "tmp_rtx" from const_rtx to const rtx_insn *.
4825 * combine.c (remove_death): Strengthen param "insn" from rtx to
4826 rtx_insn *.
4827 (move_deaths): Likewise for local "where_dead".
4828 * cse.c (delete_trivially_dead_insns): Introduce local
4829 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
4830 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
4831 rtx_insn *.
4832 (df_reg_defined): Likewise.
4833 (df_find_use): Likewise.
4834 (df_reg_used): Likewise.
4835 (df_dump_insn_problem_data): Strengthen param "insn" from
4836 const_rtx to const rtx_insn *.
4837 (df_dump_insn_top): Likewise.
4838 (df_dump_insn_bottom): Likewise.
4839 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
4840 (df_insn_debug_regno): Likewise.
4841 (debug_df_insn): Likewise.
4842 (DF_REF_INSN): Delete.
4843 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
4844 from rtx to rtx_insn *.
4845 (df_chain_insn_top_dump): Strengthen param "insn" from
4846 const_rtx to const rtx_insn *.
4847 (df_chain_insn_bottom_dump): Likewise.
4848 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
4849 rtx_insn *.
4850 (df_word_lr_simulate_uses): Likewise.
4851 (df_print_note): Likewise.
4852 (df_remove_dead_and_unused_notes): Likewise.
4853 (df_set_unused_notes_for_mw): Likewise.
4854 (df_set_dead_notes_for_mw): Likewise.
4855 (df_create_unused_note): Likewise.
4856 (df_simulate_find_defs): Likewise.
4857 (df_simulate_find_uses): Likewise.
4858 (df_simulate_find_noclobber_defs): Likewise.
4859 (df_simulate_defs): Likewise.
4860 (df_simulate_uses): Likewise.
4861 (df_simulate_one_insn_backwards): Likewise.
4862 (df_simulate_one_insn_forwards): Likewise.
4863 (df_md_simulate_one_insn): Likewise.
4864 * df-scan.c (df_uses_create): Likewise.
4865 (df_insn_create_insn_record): Likewise.
4866 (df_insn_delete): Likewise.
4867 (df_insn_rescan): Likewise.
4868 (df_insn_rescan_debug_internal): Likewise.
4869 (df_insn_change_bb): Likewise.
4870 (df_notes_rescan): Likewise.
4871 (df_refs_add_to_chains): Likewise.
4872 (df_insn_refs_verify): Likewise.
4873 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
4874 when invoking df_insn_delete.
4875 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
4876 (set_unique_reg_note): Add checked cast.
4877 * final.c (cleanup_subreg_operands): Likewise.
4878 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
4879 "insn" from rtx to rtx_insn *.
4880 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
4881 "last" from rtx to rtx_insn *.
4882 * ira-emit.c (change_regs_in_insn): New function.
4883 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
4884 Invoke change_regs_in_insn rather than change_regs.
4885 * ira.c (update_equiv_regs): Strengthen locals "insn",
4886 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
4887 for_each_rtx_in_insn rather than for_each_rtx.
4888 * recog.c (confirm_change_group): Add checked casts.
4889 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
4890 Add checked cast.
4891 (peep2_fill_buffer): Add checked cast.
4892 * rtlanal.c (remove_note): Likewise.
4893 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
4894 locals "next" "end" from rtx to rtx_insn *.
4895
4896 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4897
4898 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
4899 to rtx_insn *.
4900 (struct reg_use_data): Likewise for field "insn".
4901 (insn_cost): Likewise for param.
4902 (real_insn_for_shadow): Likewise for return type and param.
4903 (increase_insn_priority): Likewise for param 1.
4904 (debug_dependencies): Likewise for both params.
4905
4906 * haifa-sched.c (insn_delay): Likewise for param "insn".
4907 (real_insn_for_shadow): Likewise for return type and param "insn".
4908 (update_insn_after_change): Likewise for param "insn".
4909 (recompute_todo_spec): Likewise for param "next" and locals "pro",
4910 "other".
4911 (insn_cost): Likewise for param "insn".
4912 (increase_insn_priority): Likewise.
4913 (calculate_reg_deaths): Likewise.
4914 (setup_insn_reg_pressure_info): Likewise.
4915 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
4916 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
4917 (model_recompute): Likewise.
4918 (must_restore_pattern_p): Likewise for param "next".
4919 (model_excess_cost): Likewise for param "insn".
4920 (queue_remove): Likewise.
4921 (adjust_priority): Likewise for param "prev".
4922 (update_register_pressure): Likewise for param "insn".
4923 (setup_insn_max_reg_pressure): Likewise for local "insn".
4924 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
4925 (model_add_to_schedule): Likewise.
4926 (model_reset_queue_indices): Likewise for local "insn".
4927 (unschedule_insns_until): Strengthen local "recompute_vec" from
4928 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
4929 "con" from rtx to rtx_insn *.
4930 (restore_last_backtrack_point): Likewise for both locals "x". Add
4931 checked casts.
4932 (estimate_insn_tick): Likewise for param "insn".
4933 (commit_schedule): Likewise for params "prev_head", "tail" and
4934 local "x".
4935 (verify_shadows): Likewise for locals "i1", "i2".
4936 (dump_insn_stream): Likewise for params "head", "tail" and locals
4937 "next_tail", "insn".
4938 (schedule_block): Likewise for locals "insn", "x". Add a checked
4939 cast.
4940 (fix_inter_tick): Likewise for params "head", "tail".
4941 (create_check_block_twin): Likewise for local "jump".
4942 (haifa_change_pattern): Likewise for param "insn".
4943 (haifa_speculate_insn): Likewise.
4944 (dump_new_block_header): Likewise for params "head", "tail".
4945 (fix_jump_move): Likewise for param "jump".
4946 (move_block_after_check): Likewise.
4947 (sched_init_insn_luid): Likewise for param "insn".
4948 (sched_init_luids): Likewise for local "insn".
4949 (insn_luid): Likewise for param "insn".
4950 (init_h_i_d): Likewise.
4951 (haifa_init_h_i_d): Likewise for local "insn".
4952 (haifa_init_insn): Likewise for param "insn".
4953 * sched-deps.c (add_dependence): Likewise for local "real_pro",
4954 "other".
4955 (create_insn_reg_use): Likewise for param "insn".
4956 (setup_insn_reg_uses): Likewise. Add a checked cast.
4957 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
4958 "tail" from rtx to rtx_insn *.
4959 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
4960 "insn", "next_tail".
4961
4962 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4963
4964 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
4965 from rtx to rtx_insn *.
4966 (model_add_to_schedule): Likewise for locals "start", "end",
4967 "iter".
4968
4969 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4970
4971 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
4972 rtx_insn *.
4973 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
4974 "to" and locals "insn", "next", "copy". Remove now-redundant
4975 checked cast.
4976
4977 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4978
4979 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
4980 rtx_insn * and param 4 from rtx * to rtx_insn **.
4981 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
4982 param 2 from rtx * to rtx_insn **.
4983
4984 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
4985 rtx_insn * and final param from rtx * to rtx_insn **.
4986
4987 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
4988 from rtx to rtx_insn *.
4989 (try_head_merge_bb): Likewise for both locals named "move_upto".
4990 * df-problems.c (can_move_insns_across): Likewise for params
4991 "from", "to", "across_from", "across_to" and locals "insn",
4992 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
4993 rtx_insn **.
4994 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
4995 from rtx to rtx_insn *.
4996 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
4997 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
4998 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
4999 rtx_insn *.
5000 (noce_try_abs): Likewise.
5001 (noce_get_condition): Likewise for param "jump". Strengthen param
5002 "earliest" from rtx * to rtx_insn **.
5003 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
5004 rtx_insn *.
5005 (find_cond_trap): Likewise.
5006 (dead_or_predicable): Likewise for local "earliest".
5007 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
5008 checked cast.
5009 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
5010 and local "prev". Strengthen param "earliest" from rtx * to
5011 rtx_insn **.
5012 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
5013 Strengthen param "earliest" from rtx * to rtx_insn **.
5014
5015 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5016
5017 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
5018 "to" and local "insn" from rtx to rtx_insn *.
5019
5020 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5021
5022 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
5023 from rtx to rtx_insn *.
5024 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
5025 (code_motion_path_driver): Likewise for local "last_insn".
5026 (simplify_changed_insns): Likewise for local "insn".
5027
5028 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5029
5030 * rtl.h (push_to_sequence): Strengthen param from rtx to
5031 rtx_insn *.
5032 (push_to_sequence2): Likewise for both params.
5033 (delete_insns_since): Likewise for param.
5034 (reorder_insns_nobb): Likewise for all three params.
5035 (set_new_first_and_last_insn): Likewise for both params.
5036
5037 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
5038 rtx_insn *. Remove now-redundant cast.
5039 (set_last_insn): Likewise.
5040
5041 * builtins.c (expand_builtin_return): Strengthen local
5042 "call_fusage" from rtx to rtx_insn *.
5043 * cfgrtl.c (create_basic_block_structure): Likewise for local
5044 "after".
5045 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
5046 "first", "last" and local "insn".
5047 (delete_insns_since): Likewise for param "from".
5048 (reorder_insns_nobb): Likewise for params "from", "to", "after"
5049 and local "x".
5050 (push_to_sequence): Likewise for param "first" and local "last".
5051 (push_to_sequence2): Likewise for params "first" and "last".
5052 * lra.c (emit_add3_insn): Likewise for local "last".
5053 (lra_emit_add): Likewise.
5054 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
5055 "last_insn".
5056 (process_address_1): Likewise for locals "insn", last".
5057 * modulo-sched.c (ps_first_note): Likewise for return type.
5058 * optabs.c (expand_binop_directly): Likewise for param "last".
5059
5060 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5061
5062 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
5063 to rtx_insn*.
5064 * emit-rtl.c (get_last_insn_anywhere): Likewise.
5065
5066 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5067
5068 * function.h (struct sequence_stack): Strengthen fields "first"
5069 and "last" from rtx to rtx_insn *.
5070 (struct emit_status): Likewise for fields "x_first_insn" and
5071 "x_last_insn".
5072
5073 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
5074 (set_first_insn): Add checked cast.
5075 (get_last_insn): Remove now-redundant checked cast.
5076 (set_last_insn): Add checked cast.
5077
5078 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
5079 "saved_first" and "saved_last" from rtx to rtx_insn *.
5080
5081 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5082
5083 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
5084 (unlink_insn_chain): Strengthen both params from rtx to
5085 rtx_insn *.
5086
5087 * cfgrtl.c (cfg_layout_function_header): Likewise for this
5088 variable.
5089 (unlink_insn_chain): Likewise for params "first" and "last".
5090 Remove now-redundant checked cast.
5091 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
5092 (fixup_reorder_chain): Strengthen local "insn" from rtx to
5093 rtx_insn *.
5094 * emit-rtl.c (link_insn_into_chain): Likewise for all three
5095 params.
5096 (add_insn): Likewise for param "insn" and local "prev".
5097 (add_insn_after_nobb): Likewise for both params and local "next".
5098 (add_insn_before_nobb): Likewise for both params and local "prev".
5099 (add_insn_after): Rename param "after" to "uncast_after",
5100 introducing local "after" with another checked cast.
5101 (add_insn_before): Rename params "insn" and "before", giving them
5102 "uncast_" prefixes, adding the old names back using checked casts.
5103 (emit_note_after): Likewise for param "after".
5104 (emit_note_before): Likewise for param "before".
5105 (emit_label): Add a checked cast.
5106
5107 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5108
5109 * cselib.h (cselib_record_sets_hook): Strengthen initial param
5110 "insn" from rtx to rtx_insn *.
5111
5112 * cselib.c (cselib_record_sets_hook): Likewise.
5113
5114 * var-tracking.c (add_with_sets): Likewise, renaming back from
5115 "uncast_insn" to "insn" and eliminating the checked cast from rtx
5116 to rtx_insn *.
5117
5118 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5119
5120 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
5121 and "header_" from rtx to rtx_insn *.
5122 (struct basic_block_d): Likewise for field "head_" within "x"
5123 field of union basic_block_il_dependent.
5124 (BB_HEAD): Drop function...
5125 (SET_BB_HEAD): ...and this function in favor of...
5126 (BB_HEAD): ...reinstate macro.
5127 (BB_END): Drop function...
5128 (SET_BB_END): ...and this function in favor of...
5129 (BB_END): ...reinstate macro.
5130 (BB_HEADER): Drop function...
5131 (SET_BB_HEADER): ...and this function in favor of...
5132 (BB_HEADER): ...reinstate macro.
5133
5134 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
5135 (fix_crossing_unconditional_branches): Likewise.
5136 * caller-save.c (save_call_clobbered_regs): Likewise.
5137 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
5138 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
5139 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5140 (merge_blocks_move_successor_nojumps): Likewise.
5141 (outgoing_edges_match): Update use of for_each_rtx to
5142 for_each_rtx_in_insn.
5143 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
5144 (expand_gimple_cond): Likewise.
5145 (expand_gimple_tailcall): Likewise.
5146 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
5147 SET_BB_END.
5148 (construct_exit_block): Drop use of SET_BB_END.
5149 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
5150 rtx_insn *.
5151 (delete_insn): Rename param "insn" to "uncast_insn", introducing
5152 a new local "insn" with a checked cast to rtx_insn *. Drop use of
5153 SET_BB_HEAD and SET_BB_END.
5154 (create_basic_block_structure): Drop use of SET_BB_HEAD and
5155 SET_BB_END.
5156 (rtl_delete_block): Drop use of SET_BB_HEAD.
5157 (rtl_split_block): Drop use of SET_BB_END.
5158 (emit_nop_for_unique_locus_between): Likewise.
5159 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
5160 (block_label): Drop use of SET_BB_HEAD.
5161 (fixup_abnormal_edges): Drop use of SET_BB_END.
5162 (record_effective_endpoints): Drop use of SET_BB_HEADER.
5163 (relink_block_chain): Likewise.
5164 (fixup_reorder_chain): Drop use of SET_BB_END.
5165 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
5166 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
5167 rtx_insn **. Drop use of SET_BB_HEADER.
5168 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
5169 SET_BB_HEAD.
5170 (BB_HEAD): Delete this function.
5171 (SET_BB_HEAD): Likewise.
5172 (BB_END): Likewise.
5173 (SET_BB_END): Likewise.
5174 (BB_HEADER): Likewise.
5175 (SET_BB_HEADER): Likewise.
5176 * emit-rtl.c (add_insn_after): Rename param "insn" to
5177 "uncast_insn", adding a new local "insn" and a checked cast to
5178 rtx_insn *. Drop use of SET_BB_END.
5179 (remove_insn): Strengthen locals "next" and "prev" from rtx to
5180 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
5181 (reorder_insns): Drop use of SET_BB_END.
5182 (emit_insn_after_1): Strengthen param "first" and locals "last",
5183 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
5184 (emit_pattern_after_noloc): Add checked cast.
5185 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
5186 (restore_other_notes): Likewise.
5187 (move_insn): Likewise.
5188 (sched_extend_bb): Likewise.
5189 (fix_jump_move): Likewise.
5190 * ifcvt.c (noce_process_if_block): Likewise.
5191 (dead_or_predicable): Likewise.
5192 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
5193 * reg-stack.c (change_stack): Drop use of SET_BB_END.
5194 * sel-sched-ir.c (sel_move_insn): Likewise.
5195 * sel-sched.c (move_nop_to_previous_block): Likewise.
5196
5197 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
5198 SET_BB_END.
5199 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
5200
5201 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5202
5203 * basic-block.h (create_basic_block_structure): Strengthen params
5204 1 "head" and 2 "end" from rtx to rtx_insn *.
5205 * cfgrtl.c (create_basic_block_structure): Likewise.
5206 (rtl_create_basic_block): Update casts from void * to rtx to
5207 rtx_insn *, so that we can pass them as rtx_insn * to
5208 create_basic_block_structure.
5209 * sel-sched-ir.c (sel_create_basic_block): Likewise.
5210
5211 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5212
5213 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
5214 rtx_insn **.
5215 (check_for_inc_dec): Strengthen param "insn" from rtx to
5216 rtx_insn *.
5217
5218 * cselib.h (cselib_process_insn): Likewise.
5219
5220 * cselib.c (cselib_record_sets): Likewise.
5221 (cselib_process_insn): Likewise.
5222
5223 * dse.c (struct insn_info): Likewise for field "insn".
5224 (check_for_inc_dec_1): Likewise for local "insn".
5225 (check_for_inc_dec): Likewise for param "insn".
5226 (scan_insn): Likewise.
5227 (dse_step1): Likewise for local "insn".
5228
5229 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
5230 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
5231
5232 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5233
5234 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
5235 from rtx to rtx_insn *.
5236 (DEP_PRO): Delete this function and...
5237 (SET_DEP_PRO): ...this function in favor of...
5238 (DEP_PRO): ...reinstate this macro.
5239 (DEP_CON): Delete this function and...
5240 (SET_DEP_CON): ...this function in favor of...
5241 (DEP_CON): ...reinstate this old macro.
5242 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
5243 (init_dep): Likewise.
5244 (set_priorities): Likewise for both params.
5245 (sd_copy_back_deps): Likewise for params 1 and 2.
5246
5247 * haifa-sched.c (priority): Likewise for param "insn" and local
5248 "next".
5249 (set_priorities): Likewise for params "head" and "tail" and local
5250 "insn".
5251 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
5252 local "consumer".
5253 (add_to_speculative_block): Add a checked cast.
5254 (create_check_block_twin): Drop use of SET_DEP_CON.
5255 (add_jump_dependencies): Strengthen params "insn" and "jump" from
5256 rtx to rtx_insn *.
5257
5258 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
5259 Drop use of SET_DEP_PRO
5260 (init_dep): Strengthen params "pro" and "con" from rtx to
5261 rtx_insn *.
5262 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
5263 use of SET_DEP_CON.
5264 (DEP_PRO): Delete.
5265 (DEP_CON): Delete.
5266 (SET_DEP_PRO): Delete.
5267 (SET_DEP_CON): Delete.
5268
5269 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5270
5271 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
5272 from rtx to rtx_insn *.
5273 (VINSN_INSN_RTX): Eliminate rvalue function and...
5274 (SET_VINSN_INSN): ...lvalue function in favor of...
5275 (VINSN_INSN_RTX): reinstate this old macro.
5276
5277 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
5278 in favor of VINSN_INSN_RTX.
5279 (VINSN_INSN_RTX): Delete this function.
5280 (SET_VINSN_INSN_RTX): Likewise.
5281
5282 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5283
5284 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
5285 (BND_TO): Delete this function and...
5286 (SET_BND_TO): ...this functions in favor of...
5287 (BND_TO): ...reinstating this macro.
5288 (struct _fence): Strengthen field "executing_insns" from
5289 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
5290 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
5291 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
5292 and param "insn" from rtx to insn_t.
5293 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
5294 rtx_insn *.
5295
5296 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
5297 vec<rtx_insn *> .
5298 (rtx_vec_t): Likewise.
5299 (struct sched_deps_info_def): Strengthen param of "start_insn"
5300 callback from rtx to rtx_insn *. Likewise for param "insn2" of
5301 "note_mem_dep" callback and first param of "note_dep" callback.
5302
5303 * haifa-sched.c (add_to_speculative_block): Strengthen param
5304 "insn" from rtx to rtx_insn *.
5305 (clear_priorities): Likewise.
5306 (calc_priorities): Likewise for local "insn".
5307
5308 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
5309 Remove redundant checked cast.
5310 (haifa_note_mem_dep): Likewise for param "pending_insn".
5311 (haifa_note_dep): Likewise for param "elem".
5312 (note_mem_dep): Likewise for param "e".
5313 (sched_analyze_1): Add checked casts.
5314 (sched_analyze_2): Likewise.
5315
5316 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
5317 from rtx to rtx_insn *.
5318 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
5319 from vec<rtx> * to vec<rtx_insn *> *.
5320
5321 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
5322 scaffolding.
5323 (flist_add): Strengthen param "executing_insns" from
5324 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
5325 (advance_deps_context): Remove now-redundant checked cast.
5326 (init_fences): Replace uses of NULL_RTX with NULL.
5327 (merge_fences): Strengthen params "last_scheduled_insn" and
5328 "sched_next" from rtx to rtx_insn * and "executing_insns" from
5329 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
5330 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
5331 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
5332 an instruction, rather than doing double-duty as a pattern.
5333 (return_nop_to_pool): Update for change of insn_t.
5334 (deps_init_id): Remove now-redundant checked cast.
5335 (struct sched_scan_info_def): Strengthen param of "init_insn"
5336 callback from rtx to insn_t.
5337 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
5338 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
5339 NULL.
5340 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
5341 "end" from rtx to rtx_insn *.
5342 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
5343 (rtx insn_rtx, bool force_unique_p)
5344 (BND_TO): Delete function.
5345 (SET_BND_TO): Delete function.
5346
5347 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
5348 rtx to rtx_insn *.
5349 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
5350 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
5351 rtx to rtx_insn *.
5352 (undo_transformations): Likewise for param "insn".
5353 (update_liveness_on_insn): Likewise.
5354 (compute_live_below_insn): Likewise for param "insn" and local
5355 "succ".
5356 (update_data_sets): Likewise for param "insn".
5357 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
5358 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
5359 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
5360 rtx_insn *.
5361 (move_cond_jump): Likewise for param "insn".
5362 (move_cond_jump): Drop use of SET_BND_TO.
5363 (compute_av_set_on_boundaries): Likewise.
5364 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
5365 (update_and_record_unavailable_insns): Strengthen local "bb_end"
5366 from rtx to rtx_insn *.
5367 (maybe_emit_renaming_copy): Likewise for param "insn".
5368 (maybe_emit_speculative_check): Likewise.
5369 (handle_emitting_transformations): Likewise.
5370 (remove_insn_from_stream): Likewise.
5371 (code_motion_process_successors): Strengthen local "succ" from rtx
5372 to insn_t.
5373
5374 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5375
5376 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
5377 ilist_t, not _xlist_t;
5378 (ILIST_INSN): Define in terms of new union field "insn".
5379 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
5380 _XLIST_NEXT.
5381 (struct _list_node): Add new field "insn" to the union, of type
5382 insn_t.
5383 (ilist_add): Replace macro with an inline function, requiring an
5384 insn_t.
5385 (ilist_remove): Define this macro directly in terms of
5386 _list_remove, rather than indirectly via _xlist_remove.
5387 (ilist_clear): Likewise, in terms of _list_clear rather than
5388 _xlist_clear.
5389 (ilist_is_in_p): Replace macro with an inline function, requiring
5390 an insn_t.
5391 (_list_iter_cond_insn): New function.
5392 (ilist_iter_remove): Define this macro directly in terms of
5393 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
5394 (ilist_iterator): Define directly in terms of _list_iterator
5395 rather than indirectly through _xlist_iterator.
5396 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
5397 than in terms of _FOR_EACH_X.
5398 (FOR_EACH_INSN_1): Likewise.
5399
5400 2014-08-26 Joseph Myers <joseph@codesourcery.com>
5401
5402 PR target/60606
5403 PR target/61330
5404 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
5405 DECL_HARD_REGISTER and return for invalid register specifications.
5406 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
5407 DECL_HARD_REGISTER, call expand_one_error_var.
5408 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
5409 CC_REGNUM with non-MODE_CC modes.
5410 (arm_regno_class): Return NO_REGS for PC_REGNUM.
5411
5412 2014-08-26 Marek Polacek <polacek@redhat.com>
5413
5414 PR c/61271
5415 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
5416
5417 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
5418
5419 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
5420 qi cost; add di cost.
5421 (cortexa57_addrcost_table): Likewise.
5422
5423 2014-08-26 Marek Polacek <polacek@redhat.com>
5424
5425 PR c/61271
5426 * expr.c (is_aligning_offset): Remove logical not.
5427
5428 2014-08-26 Marek Polacek <polacek@redhat.com>
5429
5430 PR c/61271
5431 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
5432 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
5433
5434 2014-08-26 Richard Biener <rguenther@suse.de>
5435
5436 PR tree-optimization/62175
5437 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
5438 expand possibly trapping operations.
5439
5440 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5441
5442 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
5443 "insn" from rtx to rtx_insn *.
5444 (permute_load): Likewise for param "insn".
5445 (permute_store): Likewise.
5446 (handle_special_swappables): Likewise for local "insn".
5447 (replace_swap_with_copy): Likewise for locals "insn" and
5448 "new_insn".
5449 (rs6000_analyze_swaps): Likewise for local "insn".
5450
5451 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5452
5453 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
5454 to rtx_insn *.
5455
5456 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5457
5458 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
5459 "note_list" from rtx to rtx_insn *.
5460 (BB_NOTE_LIST): Replace this function and...
5461 (SET_BB_NOTE_LIST): ...this function with...
5462 (BB_NOTE_LIST): ...the former macro implementation.
5463
5464 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
5465 local "from_start" from rtx to rtx_insn *. Strengthen param
5466 "to_endp" from rtx * to rtx_insn **.
5467
5468 * haifa-sched.c (concat_note_lists): Likewise.
5469 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
5470 BB_NOTE_LIST.
5471 (sel_restore_notes): Likewise.
5472 (move_bb_info): Likewise.
5473 (BB_NOTE_LIST): Delete this function.
5474 (SET_BB_NOTE_LIST): Delete this function.
5475 * sel-sched.c (create_block_for_bookkeeping): Eliminate
5476 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
5477
5478 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5479
5480 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
5481 from rtx * to rtx_insn **.
5482 (reorder2): Likewise.
5483 (dependencies_evaluation_hook): Strengthen params "head", "tail"
5484 from rtx to rtx_insn *.
5485
5486 * doc/tm.texi: Update mechanically for above change to target.def.
5487
5488 * sched-int.h (note_list): Strengthen this variable from rtx to
5489 rtx_insn *.
5490 (remove_notes): Likewise for both params.
5491 (restore_other_notes): Likewise for return type and first param.
5492 (struct ready_list): Strengthen field "vec" from rtx * to
5493 rtx_insn **.
5494 (struct dep_replacement): Strenghten field "insn" from rtx to
5495 rtx_insn *.
5496 (struct deps_desc): Likewise for fields "last_debug_insn",
5497 "last_args_size".
5498 (struct haifa_sched_info): Likewise for callback field
5499 "can_schedule_ready_p"'s param, for first param of "new_ready"
5500 callback field, for both params of "rank" callback field, for
5501 first field of "print_insn" callback field (with a const), for
5502 both params of "contributes_to_priority" callback, for param
5503 of "insn_finishes_block_p" callback, for fields "prev_head",
5504 "next_tail", "head", "tail", for first param of "add_remove_insn"
5505 callback, for first param of "begin_schedule_ready" callback, for
5506 both params of "begin_move_insn" callback, and for second param
5507 of "advance_target_bb" callback.
5508 (add_dependence): Likewise for params 1 and 2.
5509 (sched_analyze): Likewise for params 2 and 3.
5510 (deps_analyze_insn): Likewise for param 2.
5511 (ready_element): Likewise for return type.
5512 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
5513 (try_ready): Strenghten param from rtx to rtx_insn *.
5514 (sched_emit_insn): Likewise for return type.
5515 (record_delay_slot_pair): Likewise for params 1 and 2.
5516 (add_delay_dependencies): Likewise for param.
5517 (contributes_to_priority): Likewise for both params.
5518 (find_modifiable_mems): Likewise.
5519
5520 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
5521 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
5522 "first_older_only_insn" from rtx to rtx_insn *.
5523 (arm_sched_reorder): Strengthen param "ready" from rtx * to
5524 rtx_insn **.
5525
5526 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
5527 "last_scheduled_iter0" from rtx to rtx_insn *.
5528 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
5529 (c6x_sched_reorder_1): Strengthen param "ready" and locals
5530 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
5531 "insn" from rtx to rtx_insn *.
5532 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
5533 rtx_insn **.
5534 (c6x_sched_reorder2): Strengthen param "ready" and locals
5535 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
5536 "insn" from rtx to rtx_insn *.
5537 (c6x_variable_issue): Add a checked cast when assigning from insn
5538 to ss.last_scheduled_iter0.
5539 (split_delayed_branch): Strengthen param "insn" and local "i1"
5540 from rtx to rtx_insn *.
5541 (split_delayed_nonbranch): Likewise.
5542 (undo_split_delayed_nonbranch): Likewise for local "insn".
5543 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
5544 "entry_after", "end_packet", "head_insn", "tail_insn",
5545 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
5546 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
5547 to rtx_insn **. Remove now-redundant checked cast on last_insn,
5548 but add a checked cast on loop->start_label. Consolidate calls to
5549 avoid assigning result of gen_spkernel to "insn", now an
5550 rtx_insn *.
5551
5552 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
5553 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
5554 rtx to rtx_insn *.
5555 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
5556 rtx_insn **. Strengthen locals "top", "next" from rtx to
5557 rtx_insn *.
5558 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
5559 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
5560 (add_parameter_dependencies): Strengthen params "call", "head" and
5561 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
5562 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
5563 (add_dependee_for_func_arg): Likewise for param "arg" and local
5564 "insn".
5565 (ix86_dependencies_evaluation_hook): Likewise for params "head",
5566 "tail" and locals "insn", "first_arg".
5567
5568 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
5569 for params "head", "tail" and locals "insn", "next", "next_tail".
5570 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
5571 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
5572 "insn", "lowest", "highest" from rtx to rtx_insn *.
5573 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
5574 rtx_insn **.
5575 (ia64_sched_reorder2): Likewise.
5576
5577 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
5578 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
5579 from rtx * to rtx_insn **.
5580 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
5581 rtx_insn **.
5582 (mep_print_sched_insn): Strengthen param "insn" from rtx to
5583 rtx_insn *.
5584 (mep_sched_reorder): Strengthen param "ready" from rtx * to
5585 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
5586 to rtx_insn *.
5587
5588 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
5589 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
5590 to rtx_insn *.
5591 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
5592 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
5593 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
5594 rtx_insn **.
5595 (vr4130_reorder): Likewise.
5596 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
5597 rtx to rtx_insn *.
5598 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
5599 rtx_insn **.
5600 (mips_sched_reorder): Likewise.
5601 (mips_sched_reorder2): Likewise.
5602
5603 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
5604
5605 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
5606 Strengthen local "tmp" from rtx to rtx_insn *.
5607 (rs6000_sched_reorder2): Likewise.
5608
5609 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
5610 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
5611 (s390_sched_reorder): Strengthen param "ready" from rtx * to
5612 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
5613
5614 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
5615 "tmp2" from rtx to rtx_insn *.
5616 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
5617 Strengthen local "insn" from rtx to rtx_insn *.
5618 (ready_reorder): Strengthen param "ready" from rtx * to
5619 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
5620 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
5621 (sh_reorder2): Likewise.
5622
5623 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
5624 local "insn" from rtx to rtx_insn *.
5625
5626 * haifa-sched.c (note_list): Strengthen this variable from rtx to
5627 rtx_insn *.
5628 (scheduled_insns): Strengthen this variable from vec<rtx> to
5629 vec<rtx_insn *>.
5630 (set_modulo_params): Likewise for locals "i1", "i2".
5631 (record_delay_slot_pair): Likewise for params "i1", "i2".
5632 (add_delay_dependencies): Likewise for param "insn".
5633 (cond_clobbered_p): Likewise.
5634 (recompute_todo_spec): Likewise for local "prev".
5635 (last_scheduled_insn): Likewise for this variable.
5636 (nonscheduled_insns_begin): Likewise.
5637 (model_set_excess_costs): Strengthen param "insns" from rtx * to
5638 rtx_insn **.
5639 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
5640 rtx_insn *.
5641 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
5642 Strengthen local "insn" from rtx to rtx_insn *.
5643 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
5644 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
5645 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
5646 (ready_remove_first): Likewise for return type and local "t".
5647 (ready_element): Likewise for return type.
5648 (ready_remove): Likewise for return type and local "t".
5649 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
5650 (check_clobbered_conditions): Strengthen local "x" from rtx to
5651 rtx_insn *, adding a checked cast.
5652 (schedule_insn): Likewise for param "insn".
5653 (remove_notes): Likewise for params "head", "tail" and locals
5654 "next_tail", "insn", "next".
5655 (struct haifa_saved_data): Likewise for fields
5656 "last_scheduled_insn", "nonscheduled_insns_begin".
5657 (save_backtrack_point): Update for change to field "vec" of
5658 struct ready_list.
5659 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
5660 rtx_insn **.
5661 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
5662 from rtx to rtx_insn *
5663 (resolve_dependencies): Strengthen param "insn" from rtx to
5664 rtx_insn *
5665 (restore_other_notes): Likewise for return type, for param "head"
5666 and local "note_head".
5667 (undo_all_replacements): Likewise for local "insn".
5668 (first_nonscheduled_insn): Likewise for return type and local "insn".
5669 (queue_to_ready): Likewise for local "insn", adding checked casts.
5670 (early_queue_to_ready): Likewise for local "insn".
5671 (debug_ready_list_1): Strengthen local "p" from rtx * to
5672 rtx_insn **.
5673 (move_insn): Strengthen param "insn" and local "note" from rtx to
5674 rtx_insn *
5675 (insn_finishes_cycle_p): Likewise for param "insn".
5676 (max_issue): Likewise for local "insn".
5677 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
5678 to rtx_insn **.
5679 (commit_schedule): Strengthen param "prev_head" and local "insn"
5680 from rtx to rtx_insn *
5681 (prune_ready_list): Likewise for local "insn".
5682 (schedule_block): Likewise for locals "prev_head", "head", "tail",
5683 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
5684 (set_priorities): Likewise for local "prev_head".
5685 (try_ready): Likewise for param "next".
5686 (fix_tick_ready): Likewise.
5687 (change_queue_index): Likewise.
5688 (sched_extend_ready_list): Update for change to field "vec" of
5689 struct ready_list.
5690 (generate_recovery_code): Strengthen param "insn" from rtx to
5691 rtx_insn *.
5692 (begin_speculative_block): Likewise.
5693 (create_check_block_twin): Likewise for param "insn" and locals
5694 "label", "check", "twin". Introduce local "check_pat" to avoid
5695 "check" being used as a plain rtx before being used as an insn.
5696 (fix_recovery_deps): Add a checked cast to rtx_insn * when
5697 extracting elements from ready_list.
5698 (sched_remove_insn): Strengthen param "insn" from rtx to
5699 rtx_insn *.
5700 (sched_emit_insn): Likewise for return type.
5701 (ready_remove_first_dispatch): Likewise for return type and local
5702 "insn".
5703
5704 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
5705
5706 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
5707 const rtx_insn *.
5708
5709 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
5710 from rtx to rtx_insn *.
5711 (add_dependence_list): Likewise for param "insn". Add a checked
5712 cast.
5713 (add_dependence_list_and_free): Strengthen param "insn" from rtx
5714 to rtx_insn *. Strengthen param "list_p" from rtx * to
5715 rtx_insn **.
5716 (chain_to_prev_insn): Strengthen param "insn" and locals
5717 "prec_nonnote", "i" from rtx to rtx_insn *.
5718 (flush_pending_lists): Likewise for param "insn".
5719 (cur_insn): Likewise for this variable.
5720 (haifa_start_insn): Add a checked cast.
5721 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
5722 (sched_analyze_reg): Likewise for param "insn".
5723 (sched_analyze_1): Likewise.
5724 (sched_analyze_2): Likewise. Add checked casts.
5725 (sched_analyze_insn): Likewise. Also for local "prev".
5726 (deps_analyze_insn): Likewise for param "insn".
5727 (sched_analyze): Likewise for params "head", "tail" and local "insn".
5728 (add_dependence_1): Likewise for params "insn", "elem".
5729 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
5730 (parse_add_or_inc): Likewise for param "insn".
5731 (find_inc): Likewise for local "inc_cand".
5732 (find_modifiable_mems): Likewise for params "head", "tail" and
5733 locals "insn", "next_tail".
5734
5735 * sched-ebb.c (init_ready_list): Likewise for local "insn".
5736 (begin_schedule_ready): Likewise for param "insn".
5737 (begin_move_insn): Likewise for params "insn" and "last".
5738 (ebb_print_insn): Strengthen param "insn" from const_rtx to
5739 const rtx_insn *.
5740 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
5741 (ebb_contributes_to_priority): Likewise for params "next", "insn".
5742 (ebb_add_remove_insn): Likewise for param "insn".
5743 (advance_target_bb): Likewise.
5744
5745 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
5746 "insn".
5747 (check_live): Likewise for param "insn".
5748 (init_ready_list): Likewise for local "insn".
5749 (can_schedule_ready_p): Likewise for param "insn".
5750 (begin_schedule_ready): Likewise.
5751 (new_ready): Likewise for param "next".
5752 (rgn_print_insn): Likewise for param "insn".
5753 (rgn_rank): Likewise for params "insn1", "insn2".
5754 (contributes_to_priority): Likewise for params "next", "insn".
5755 (rgn_insn_finishes_block_p): Likewise for param "insn".
5756 (add_branch_dependences): Likewise for params "head", "tail" and
5757 locals "insn", "last".
5758 (rgn_add_remove_insn): Likewise for param "insn".
5759 (advance_target_bb): Likewise.
5760
5761 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
5762 const_rtx to const rtx_insn *.
5763
5764 * sel-sched-dump.h (sel_print_insn): Likewise.
5765
5766 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
5767 (deps_init_id): Likewise.
5768
5769 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
5770 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
5771 rtx_insn **.
5772
5773 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5774
5775 * output.h (final_start_function): Strengthen param 1 from rtx to
5776 rtx_insn *.
5777
5778 * final.c (final_start_function): Likewise, renaming back from
5779 "uncast_first" to "first", and dropping the checked cast from rtx
5780 to rtx_insn *.
5781
5782 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5783
5784 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
5785 * final.c (final): Likewise. Rename param back from
5786 "uncast_first" to "first" and eliminate the checked cast from rtx
5787 to rtx_insn *.
5788
5789 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5790
5791 * output.h (shorten_branches): Strengthen param from rtx to
5792 rtx_insn *.
5793
5794 * final.c (shorten_branches): Likewise, renaming param back from
5795 "uncast_first" to "first", and dropping the checked cast from rtx
5796 to rtx_insn *.
5797
5798 * genattr.c (gen_attr): Likewise when writing out the prototype of
5799 shorten_branches.
5800
5801 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5802
5803 * sched-int.h (struct haifa_sched_info): Strengthen fields
5804 "prev_head" and "next_tail" from rtx to rtx_insn *.
5805
5806 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5807
5808 * rtl.h (rtx_jump_table_data::get_labels): New method.
5809 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
5810 with use of the new rtx_jump_table_data::get_labels method.
5811 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
5812 to rtx_jump_table_data *. Simplify by using get_labels method.
5813 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
5814 a dyn_cast, introducing local "table", using it to replace
5815 label-lookup logic with a get_labels method call.
5816 (patch_jump_insn): Simplify using get_labels method.
5817 * dwarf2cfi.c (create_trace_edges): Likewise.
5818 * rtlanal.c (label_is_jump_target_p): Likewise.
5819
5820 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5821
5822 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
5823 to rtx_insn *.
5824
5825 * emit-rtl.c (unshare_all_rtl_1): Likewise.
5826 (unshare_all_rtl_again): Likewise, also for local "p".
5827
5828 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5829
5830 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
5831 to rtx_insn *.
5832 * cfgrtl.c (delete_insn_and_edges): Likewise.
5833
5834 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5835
5836 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
5837 from rtx to rtx_insn *.
5838
5839 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
5840
5841 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5842
5843 * function.c (thread_prologue_and_epilogue_insns): Likewise for
5844 locals "returnjump", "epilogue_end", "insn", "next".
5845
5846 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
5847 "returnjump" from rtx * to rtx_insn **.
5848 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
5849
5850 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5851
5852 * basic-block.h (struct edge_def). Strengthen "r" within
5853 union edge_def_insns from rtx to rtx_insn *.
5854
5855 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
5856 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
5857 rtx_insn *.
5858 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
5859 from rtx to rtx_insn *.
5860 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
5861 rtx_insn *.
5862 * postreload-gcse.c (reg_killed_on_edge): Likewise.
5863 (reg_used_on_edge): Likewise.
5864 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
5865 (gt_pch_nx): New overload for rtx_insn *&.
5866 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
5867 from rtx to rtx_insn *.
5868
5869 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5870
5871 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
5872 from rtx to rtx_insn *.
5873 (BB_FOOTER): Replace function with access macro.
5874 (SET_BB_FOOTER): Delete.
5875
5876 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
5877 with BB_FOOTER.
5878 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5879 (emit_barrier_after_bb): Likewise.
5880 (record_effective_endpoints): Likewise.
5881 (relink_block_chain): Likewise.
5882 (fixup_fallthru_exit_predecessor): Likewise.
5883 (cfg_layout_duplicate_bb): Likewise.
5884 (cfg_layout_split_block): Likewise.
5885 (cfg_layout_delete_block): Likewise.
5886 (cfg_layout_merge_blocks): Likewise.
5887 (BB_FOOTER): Delete function.
5888 (SET_BB_FOOTER): Delete function.
5889 * combine.c (update_cfg_for_uncondjump): Replace uses of
5890 SET_BB_FOOTER with BB_FOOTER.
5891
5892 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5893
5894 * except.h (struct eh_landing_pad_d): Strengthen field
5895 "landing_pad" from rtx to rtx_code_label *.
5896
5897 * except.c (sjlj_emit_dispatch_table): Likewise for param
5898 "dispatch_label"
5899 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
5900
5901 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5902
5903 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
5904 first param from rtx to rtx_insn *.
5905 * config/xtensa/xtensa.c (struct machine_function): Likewise for
5906 field "set_frame_ptr_insn".
5907 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
5908 "csend" from rtx to rtx_code_label *.
5909 (xtensa_expand_atomic): Likewise for local "csloop".
5910 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
5911 rtx_insn *.
5912 (xtensa_call_tls_desc): Likewise for return type and locals
5913 "call_insn", "insns".
5914 (xtensa_legitimize_tls_address): Likewise for local "insns".
5915 (xtensa_expand_prologue): Likewise for locals "insn", "first".
5916
5917 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5918
5919 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
5920 first param from rtx to rtx_insn *.
5921 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
5922 "insn".
5923
5924 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5925
5926 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
5927 Strengthen param 1 from rtx to rtx_insn *.
5928 (tilepro_output_cbranch): Likewise.
5929 (tilepro_adjust_insn_length): Likewise.
5930 (tilepro_final_prescan_insn): Likewise for sole param.
5931
5932 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
5933 Likewise for local "last".
5934 (cbranch_predicted_p): Likewise for param "insn".
5935 (tilepro_output_simple_cbranch_with_opcode): Likewise.
5936 (tilepro_output_cbranch_with_opcode): Likewise.
5937 (tilepro_output_cbranch): Likewise.
5938 (frame_emit_load): Likewise for return type and locals "seq",
5939 "insn".
5940 (emit_sp_adjust): Likewise for return type and local "insn".
5941 (tilepro_expand_epilogue): Likewise for locals "last_insn",
5942 "insn".
5943 (tilepro_adjust_insn_length): Likewise for param "insn".
5944 (next_insn_to_bundle): Likewise for return type and params
5945 "r", "end".
5946 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
5947 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
5948 local "new_insns".
5949 (match_addli_pcrel): Likewise for param "insn".
5950 (replace_addli_pcrel): Likewise.
5951 (match_auli_pcrel): Likewise.
5952 (replace_auli_pcrel): Likewise.
5953 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
5954 "next_insn".
5955 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
5956 "queue", "next_queue", "prev".
5957 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
5958 (tilepro_final_prescan_insn): Likewise for param "insn".
5959
5960 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5961
5962 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
5963 Strengthen param 1 from rtx to rtx_insn *.
5964 (tilegx_output_cbranch): Likewise.
5965 (tilegx_adjust_insn_length): Likewise.
5966 (tilegx_final_prescan_insn): Likewise for sole param.
5967
5968 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
5969 or local "last".
5970 (cbranch_predicted_p): Likewise for param "insn".
5971 (tilegx_output_simple_cbranch_with_opcode): Likewise.
5972 (tilegx_output_cbranch_with_opcode): Likewise.
5973 (tilegx_output_cbranch): Likewise.
5974 (frame_emit_load): Likewise for return type.
5975 (set_frame_related_p): Likewise for locals "seq", "insn".
5976 (emit_sp_adjust): Likewise for return type, and for local "insn".
5977 Introduce local "pat" for use in place of "insn" where the latter
5978 isn't an instruction.
5979 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
5980 from rtx to rtx_insn *.
5981 (tilegx_adjust_insn_length): Likewise for param "insn".
5982 (next_insn_to_bundle): Likewise for return type and params "r" and
5983 "end".
5984 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
5985 "end".
5986 (replace_insns): Likewise for params "old_insn", "new_insns".
5987 (replace_mov_pcrel_step1): Likewise for param "insn" and local
5988 "new_insns".
5989 (replace_mov_pcrel_step2): Likewise.
5990 (replace_mov_pcrel_step3): Likewise.
5991 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
5992 "next_insn".
5993 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
5994 "queue", "next_queue", "prev".
5995 (tilegx_output_mi_thunk): Likewise for local "insn".
5996 (tilegx_final_prescan_insn): Likewise for param "insn".
5997
5998 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5999
6000 * config/spu/spu.c (frame_emit_store): Strengthen return type from
6001 rtx to rtx_insn *.
6002 (frame_emit_load): Likewise.
6003 (frame_emit_add_imm): Likewise, also for local "insn".
6004 (spu_expand_prologue): Likewise for local "insn".
6005 (struct spu_bb_info): Likewise for field "prop_jump".
6006 (emit_nop_for_insn): Likewise for param "insn" and local
6007 "new_insn".
6008 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
6009 "hbr_insn".
6010 (spu_emit_branch_hint): Likewise for params "before", "branch" and
6011 locals "hint", "insn".
6012 (get_branch_target): Likewise for param "branch".
6013 (insn_clobbers_hbr): Likewise for param "insn".
6014 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
6015 locals "insn", "before_4", "before_16".
6016 (insert_hbrp): Likewise for local "insn".
6017 (spu_machine_dependent_reorg): Likewise for locals "branch",
6018 "insn", "next", "bbend".
6019 (uses_ls_unit): Likewise for param "insn".
6020 (get_pipe): Likewise.
6021 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
6022 introducing a checked cast.
6023 (spu_sched_adjust_cost): Likewise for params "insn" and
6024 "dep_insn".
6025 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
6026 (spu_sms_res_mii): Likewise.
6027
6028 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6029
6030 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
6031 from rtx to rtx_insn *.
6032 (output_cbranch): Likewise for param 6.
6033 (output_return): Likewise for param 1.
6034 (output_sibcall): Likewise.
6035 (output_v8plus_shift): Likewise.
6036 (output_v8plus_mult): Likewise.
6037 (output_v9branch): Likewise for param 7.
6038 (output_cbcond): Likewise for param 3.
6039
6040 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
6041 for local "insn".
6042 (sparc_legitimize_pic_address): Likewise.
6043 (sparc_emit_call_insn): Likewise.
6044 (emit_save_or_restore_regs): Likewise.
6045 (emit_window_save): Likewise for return type and local "insn".
6046 (sparc_expand_prologue): Likewise for local "insn".
6047 (sparc_flat_expand_prologue): Likewise.
6048 (output_return): Likewise for param "insn".
6049 (output_sibcall): Likewise for param "insn" and local "delay".
6050 (output_ubranch): Likewise for param "insn".
6051 (output_cbranch): Likewise.
6052 (output_cbcond): Likewise.
6053 (output_v9branch): Likewise.
6054 (output_v8plus_shift): Likewise.
6055 (sparc_output_mi_thunk): Likewise for local "insn".
6056 (get_some_local_dynamic_name): Likewise.
6057 (output_v8plus_mult): Likewise for param "insn".
6058
6059 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6060
6061 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
6062 from rtx to rtx_insn *.
6063 (output_branchy_insn): Likewise for param 3.
6064 (output_far_jump): Likewise for param 1.
6065 (final_prescan_insn): Likewise.
6066 (sh_insn_length_adjustment): Likewise for sole param.
6067
6068 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
6069 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
6070 rtx_code_label *.
6071 (sh_emit_compare_and_set): Likewise for local "lab".
6072 (output_far_jump): Strengthen param "insn" and local "prev" from
6073 rtx to rtx_insn *.
6074 (output_branchy_insn): Likewise for param "insn" and local
6075 "next_insn".
6076 (output_ieee_ccmpeq): Likewise for param "insn".
6077 (struct label_ref_list_d): Strengthen field "label" from rtx to
6078 rtx_code_label *.
6079 (pool_node): Likewise.
6080 (pool_window_label): Likewise for this global.
6081 (add_constant): Likewise for return type and locals "lab", "new_rtx".
6082 (dump_table): Strengthen params "start", "barrier" and local
6083 "scan" from rtx to rtx_insn *.
6084 (broken_move): Likewise for param "insn".
6085 (untangle_mova): Likewise for params "first_mova" and "new_mova".
6086 Strengthen param "first_mova" from rtx * to rtx_insn **.
6087 (mova_p): Likewise for param "insn".
6088 (fixup_mova): Likewise for param "mova".
6089 (find_barrier): Likewise for return type, params "mova" and
6090 "from", and locals "barrier_before_mova", "found_barrier",
6091 "good_barrier", "orig", "last_symoff", "next". Strengthen local
6092 "label" from rtx to rtx_code_label *.
6093 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
6094 rtx to rtx_insn *.
6095 (sh_reorg): Likewise for locals "link", "scan", "barrier".
6096 (split_branches): Likewise for param "first" and local "insn".
6097 (final_prescan_insn): Likewise for param "insn".
6098 (sequence_insn_p): Likewise for locals "prev", "next".
6099 (sh_insn_length_adjustment): Likewise for param "insn".
6100 (sh_can_redirect_branch): Likewise for local "insn".
6101 (find_r0_life_regions): Likewise for locals "end", "insn".
6102 (sh_output_mi_thunk): Likewise for local "insns".
6103
6104 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6105
6106 * config/score/score.c (score_output_mi_thunk): Strengthen local
6107 "insn" from rtx to rtx_insn *.
6108 (score_prologue): Likewise.
6109
6110 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6111
6112 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
6113 1 from rtx to rtx_insn *.
6114 (s390_emit_jump): Likewise for return type.
6115 (s390_emit_call): Likewise.
6116 (s390_load_got): Likewise.
6117
6118 * config/s390/s390.c (last_scheduled_insn): Likewise for this
6119 variable.
6120 (s390_match_ccmode): Likewise for param "insn".
6121 (s390_emit_jump): Likewise for return type.
6122 (s390_split_branches): Likewise for local "label".
6123 (struct constant): Strengthen field "label" from rtx to
6124 rtx_code_label *.
6125 (struct constant_pool): Likewise for field "label". Strengthen
6126 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
6127 rtx_insn *.
6128 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
6129 insns.
6130 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
6131 (s390_end_pool): Likewise.
6132 (s390_dump_pool): Likewise for local "insn".
6133 (s390_mainpool_start): Likewise.
6134 (s390_chunkify_start): Likewise.
6135 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
6136 with insns. Strengthen locals "label", "jump", "barrier", "next",
6137 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
6138 (s390_chunkify_finish): Strengthen local "insn" from rtx to
6139 rtx_insn *.
6140 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
6141 "jump", "label", "next_insn".
6142 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
6143 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
6144 "tbegin_insn".
6145 (s390_load_got): Likewise for return type and local "insns".
6146 (s390_save_gprs_to_fprs): Likewise for local "insn".
6147 (s390_restore_gprs_from_fprs): Likewise.
6148 (pass_s390_early_mach::execute): Likewise.
6149 (s390_emit_prologue): Likewise for local "insns".
6150 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
6151 rtx_code_label *.
6152 (s390_emit_call): Strengthen return type and local "insn" from
6153 rtx to rtx_insn *.
6154 (s390_emit_tpf_eh_return): Likewise for local "insn".
6155 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
6156 "next_insn", introducing locals "s_pat", "rpat" to allow this.
6157 (s390_fix_long_loop_prediction): Likewise for param "insn" and
6158 local "cur_insn".
6159 (s390_non_addr_reg_read_p): Likewise for param "insn".
6160 (find_cond_jump): Likewise for return type and param "insn".
6161 (s390_swap_cmp): Likewise for param "insn".
6162 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
6163 "prev_insn", "next_insn".
6164 (s390_reorg): Likewise for locals "insn", "target".
6165 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
6166 (s390_sched_variable_issue): For now, rename param "insn" to
6167 "uncast_insn", introducing a checked cast.
6168 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
6169 insn.
6170 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
6171 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
6172
6173 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6174
6175 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
6176 param from rtx to rtx_insn *.
6177 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
6178
6179 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6180
6181 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
6182 4 from rtx to rtx_insn *.
6183 (rs6000_final_prescan_insn): Likewise for first param.
6184 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
6185 local "insn".
6186 (rs6000_get_some_local_dynamic_name): Likewise.
6187 (output_cbranch): Likewise for param "insn".
6188 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
6189 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
6190 (rs6000_emit_allocate_stack): Likewise for local "insn".
6191 (load_cr_save): Likewise.
6192 (restore_saved_cr): Likewise.
6193 (restore_saved_lr): Likewise.
6194 (emit_cfa_restores): Likewise.
6195 (rs6000_output_function_epilogue): Likewise for locals "insn" and
6196 "deleted_debug_label".
6197 (rs6000_output_mi_thunk): Likewise for local "insn".
6198 (rs6000_final_prescan_insn): Likewise for param "insn".
6199
6200 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6201
6202 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
6203 Strengthen param "insn" from rtx to rtx_insn *.
6204 * config/picochip/picochip.c (picochip_current_prescan_insn):
6205 Likewise for this variable.
6206 (picochip_final_prescan_insn): Likewise for param "insn".
6207
6208 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6209
6210 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
6211 from rtx to rtx_insn *.
6212 (pa_output_indirect_call): Likewise.
6213 (pa_adjust_insn_length): Likewise.
6214 (pa_attr_length_millicode_call): Likewise.
6215 (pa_attr_length_call): Likewise.
6216 (pa_attr_length_indirect_call): Likewise.
6217
6218 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
6219 "insn".
6220 (pa_attr_length_millicode_call): Likewise.
6221 (pa_attr_length_call): Likewise.
6222 (pa_output_call): Likewise.
6223 (pa_attr_length_indirect_call): Likewise.
6224 (pa_output_indirect_call): Likewise.
6225
6226 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6227
6228 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
6229 Strengthen first param from rtx to rtx_insn *.
6230 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
6231 param "insn".
6232
6233 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6234
6235 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
6236 type from rtx to rtx_insn *.
6237 (mips_expand_call): Likewise.
6238 (mips_adjust_insn_length): Likewise for first param.
6239 (mips_output_conditional_branch): Likewise.
6240 (mips_output_order_conditional_branch): Likewise.
6241 (mips_final_prescan_insn): Likewise.
6242
6243 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
6244 rtx_insn * for the SEQUENCE case.
6245 (SEQ_END): Likewise.
6246 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
6247 (mips_emit_call_insn): Likewise, also for local "insn".
6248 (mips16_gp_pseudo_reg): Likewise for local "scan".
6249 (mips16_build_call_stub): Likewise for return type and for local
6250 "insn". Introduce a new local "pattern" so that "insn" can indeed
6251 be an insn.
6252 (mips_expand_call): Strengthen return type and local "insn" from
6253 rtx to rtx_insn *.
6254 (mips_block_move_loop): Strengthen local "label" from rtx to
6255 rtx_code_label *.
6256 (mips_expand_synci_loop): Likewise for locals "label",
6257 "end_label".
6258 (mips_set_frame_expr): Strengthen local "insn" from rtx to
6259 rtx_insn *.
6260 (mips16e_collect_argument_saves): Likewise for locals "insn",
6261 "next".
6262 (mips_find_gp_ref): Likewise for param of callback for "pred"
6263 param, and for local "insn".
6264 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
6265 (mips_insn_has_flexible_gp_ref_p): Likewise.
6266 (mips_epilogue_emit_cfa_restores): Likewise for return type and
6267 local "insn".
6268 (mips_epilogue_set_cfa): Likewise for local "insn".
6269 (mips_expand_epilogue): Likewise.
6270 (mips_adjust_insn_length): Likewise for param "insn".
6271 (mips_output_conditional_branch): Likewise.
6272 (mips_output_order_conditional_branch): Likewise.
6273 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
6274 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
6275 "falu2_turn_enabled_insn".
6276 (mips_builtin_branch_and_move): Strengthen locals "true_label",
6277 "done_label" from rtx to rtx_code_label *.
6278 (struct mips16_constant): Likewise for field "label".
6279 (mips16_add_constant): Likewise for return type.
6280 (mips16_emit_constants_1): Strengthen return type and param "insn"
6281 from rtx to rtx_insn *.
6282 (mips16_emit_constants): Likewise for param "insn".
6283 (mips16_insn_length): Likewise.
6284 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
6285 to rtx_code_label *.
6286 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
6287 from rtx to rtx_insn *.
6288 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
6289 "jump". Strengthen local "label" from rtx to rtx_code_label *.
6290 (r10k_simplify_address): Strengthen param "insn" and local
6291 "def_insn" from rtx to rtx_insn *.
6292 (r10k_safe_address_p): Strengthen param "insn" from rtx to
6293 rtx_insn *.
6294 (r10k_needs_protection_p_1): Update target type of cast of data
6295 from to rtx to rtx_insn *.
6296 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
6297 rtx * to rtx_insn **.
6298 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
6299 rtx_insn *.
6300 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
6301 (mips_call_expr_from_insn): Likewise for param "insn".
6302 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
6303 (mips_find_pic_call_symbol): Likewise for param "insn".
6304 (mips_annotate_pic_calls): Likewise for local "insn".
6305 (mips_sim_insn): Likewise for this variable.
6306 (struct mips_sim): Likewise for field "insn" within elements of
6307 last_set array.
6308 (mips_sim_wait_reg): Likewise for param "insn".
6309 (mips_sim_wait_regs): Likewise.
6310 (mips_sim_wait_units): Likewise.
6311 (mips_sim_wait_insn): Likewise.
6312 (mips_sim_issue_insn): Likewise.
6313 (mips_sim_finish_insn): Likewise.
6314 (mips_seq_time): Likewise for param "seq" and local "insn".
6315 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
6316 locals "first", "second".
6317 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
6318 "last", "last2", "next".
6319 (mips_avoid_hazard): Likewise for params "after", "insn".
6320 (mips_reorg_process_insns): Likewise for locals "insn",
6321 "last_insn", "subinsn", "next_insn".
6322 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
6323 (mips16_split_long_branches): Likewise for locals "insn" "jump",
6324 "jump_sequence".
6325 (mips_output_mi_thunk): Likewise for local "insn".
6326 (mips_final_prescan_insn): Likewise for param "insn".
6327
6328 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6329
6330 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
6331 Strengthen return type and local "insns" from rtx to rtx_insn *.
6332 (microblaze_legitimize_tls_address): Likewise for local "insns".
6333 (microblaze_block_move_loop): Strengthen local "label" from rtx
6334 to rtx_code_label *.
6335 (microblaze_expand_prologue): Strengthen two locals named "insn"
6336 from rtx to rtx_insn *.
6337 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
6338 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
6339 "insn". Strengthen locals "div_label", "div_end_label" from rtx
6340 to rtx_code_label *.
6341
6342 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6343
6344 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
6345 param from rtx to rtx_insn *.
6346 (mep_reuse_lo): Likewise for third param.
6347 (mep_use_post_modify_p): Likewise for first param.
6348 (mep_core_address_length): Likewise.
6349 (mep_cop_address_length): Likewise.
6350 (mep_final_prescan_insn): Likewise.
6351 (mep_store_data_bypass_p): Likewise for both params.
6352 (mep_mul_hilo_bypass_p): Likewise.
6353 (mep_ipipe_ldc_p): Likewise for param.
6354
6355 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
6356 (mep_rewrite_mult): Likewise.
6357 (mep_rewrite_mulsi3): Likewise.
6358 (mep_rewrite_maddsi3): Likewise.
6359 (mep_reuse_lo_p_1): Likewise.
6360 (mep_reuse_lo_p): Likewise.
6361 (mep_frame_expr): Likewise.
6362 (mep_make_parallel): Likewise for both params.
6363 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
6364 local "insn".
6365 (mep_use_post_modify_p): Likewise for param "insn".
6366 (mep_core_address_length): Likewise.
6367 (mep_cop_address_length): Likewise.
6368 (mep_reg_set_in_function): Likewise for local "insn".
6369 (mep_asm_without_operands_p): Likewise.
6370 (F): Likewise for return type and param "x".
6371 (add_constant): Likewise for local "insn".
6372 (maybe_dead_move): Likewise for return type and local "insn".
6373 (mep_expand_prologue): Likewise for local "insn".
6374 (mep_final_prescan_insn): Likewise for param "insn".
6375 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
6376 "next", "follow", "x".
6377 (mep_insert_repeat_label_last): Likewise for return type, param
6378 "last_insn", and locals "next", "prev". Strengthen param "label"
6379 from rtx to rtx_code_label *.
6380 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
6381 rtx_insn *.
6382 (struct mep_doloop_end): Likewise for fields "insn" and
6383 "fallthrough".
6384 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
6385 Strengthen local "repeat_label" from rtx to rtx_code_label *.
6386 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
6387 rtx_insn *.
6388 (mep_invert_branch): Likewise for params "insn" and "after".
6389 (mep_reorg_erepeat): Likewise for param "insns" and locals
6390 "insn", "prev", "new_last", "barrier", "user". Strengthen local
6391 "l" from rtx to rtx_code_label *.
6392 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
6393 from rtx to rtx_insn *.
6394 (mep_reorg_addcombine): Likewise for param "insns" and locals
6395 "i", "n".
6396 (add_sp_insn_p): Likewise for param "insn".
6397 (mep_reorg_noframe): Likewise for param "insns" and locals
6398 "start_frame_insn", "end_frame_insn", "next".
6399 (mep_reorg): Likewise for local "insns".
6400 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
6401 cast.
6402 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
6403 (mep_mul_hilo_bypass_p): Likewise.
6404 (mep_ipipe_ldc_p): Likewise for param "insn".
6405 (mep_make_bundle): Likewise for return type, param "cop" and local
6406 "insn", splitting out the latter into a new local "seq" for when it
6407 is a SEQUENCE rather than an insn.
6408 (core_insn_p): Likewise for param "insn".
6409 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
6410 "last", "first", "note", "prev", "core_insn".
6411
6412 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6413
6414 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
6415 rtx to rtx_insn *.
6416 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
6417 (m68k_final_prescan_insn): Likewise for first param.
6418
6419 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
6420 (m68k_set_frame_related): Likewise for param "insn".
6421 (output_btst): Likewise for param "insn".
6422 (m68k_final_prescan_insn): Likewise.
6423 (m68k_move_to_reg): Likewise for local "insn".
6424 (m68k_call_tls_get_addr): Likewise for local "insns".
6425 (m68k_call_m68k_read_tp): Likewise.
6426 (strict_low_part_peephole_ok): Likewise for param "first_insn".
6427 (m68k_output_mi_thunk): Likewise for local "insn".
6428
6429 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6430
6431 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
6432 first param from rtx to rtx_insn *.
6433 (iq2000_adjust_insn_length): Likewise.
6434 (iq2000_output_conditional_branch): Likewise.
6435 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
6436 "insn" and local "nop_insn".
6437 (iq2000_annotate_frame_insn): Likewise for param "insn".
6438 (iq2000_expand_prologue): Likewise for both locals "insn".
6439 (iq2000_adjust_insn_length): Likewise for param "insn".
6440 (iq2000_output_conditional_branch): Likewise.
6441
6442 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6443
6444 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
6445 "insns" from rtx to rtx_insn *.
6446 (ia64_emit_cond_move): Likewise for locals "insn", "first".
6447 (struct spill_fill_data): Likewise for field "init_after" and for
6448 elements of array field "prev_insn".
6449 (spill_restore_mem): Likewise for locals "insn", "first".
6450 (do_spill): Likewise for local "insn".
6451 (do_restore): Likewise.
6452 (ia64_expand_prologue): Likewise.
6453 (ia64_expand_epilogue): Likewise.
6454 (emit_insn_group_barriers): Likewise for locals "insn",
6455 "last_label".
6456 (emit_all_insn_group_barriers): Likewise for locals "insn",
6457 "last".
6458 (dfa_stop_insn): Likewise for this global.
6459 (dfa_pre_cycle_insn): Likewise.
6460 (ia64_nop): Likewise.
6461 (final_emit_insn_group_barriers): Likewise for locals "insn",
6462 "last".
6463 (emit_predicate_relation_info): Likewise for locals "head", "n",
6464 "insn", "b", "a".
6465 (ia64_reorg): Likewise for local "insn".
6466 (ia64_output_mi_thunk): Likewise.
6467 (expand_vec_perm_interleave_2): Likewise for local "seq".
6468
6469 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6470
6471 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
6472 param 1 "insn" from rtx to rtx_insn *.
6473 (ix86_use_lea_for_mov): Likewise.
6474 (ix86_avoid_lea_for_addr): Likewise.
6475 (ix86_split_lea_for_addr): Likewise.
6476 (ix86_lea_for_add_ok): Likewise.
6477 (ix86_output_call_insn): Likewise.
6478
6479 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
6480 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
6481 (ix86_output_function_epilogue): Likewise for locals "insn",
6482 "deleted_debug_label".
6483 (legitimize_tls_address): Likewise for local "insn".
6484 (get_some_local_dynamic_name): Likewise.
6485 (increase_distance): Likewise for params "prev", "next".
6486 (distance_non_agu_define_in_bb): Likewise for params "insn",
6487 "start" and locals "prev", "next".
6488 (distance_non_agu_define): Likewise for param "insn".
6489 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
6490 locals "next", "prev".
6491 (distance_agu_use): Likewise for param "insn".
6492 (ix86_lea_outperforms): Likewise.
6493 (ix86_ok_to_clobber_flags): Likewise.
6494 (ix86_avoid_lea_for_add): Likewise.
6495 (ix86_use_lea_for_mov): Likewise.
6496 (ix86_avoid_lea_for_addr): Likewise.
6497 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
6498 (ix86_split_lea_for_addr): Likewise for param "insn".
6499 (ix86_lea_for_add_ok): Likewise for param "insn".
6500 (ix86_expand_carry_flag_compare): Likewise for local
6501 "compare_seq".
6502 (ix86_expand_int_movcc): Likewise.
6503 (ix86_output_call_insn): Likewise for param "insn".
6504 (ix86_output_call_insn): Likewise for local "i".
6505 (x86_output_mi_thunk): Introduce local "insn", using it in place
6506 of "tmp" when dealing with insns.
6507 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
6508 "start".
6509 (ix86_pad_returns): Likewise for locals "ret", "prev".
6510 (ix86_count_insn_bb): Likewise for local "insn".
6511 (ix86_pad_short_function): Likewise for locals "ret", "insn".
6512 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
6513 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
6514 (expand_vec_perm_interleave2): Likewise for local "seq".
6515 (expand_vec_perm_vperm2f128_vblend): Likewise.
6516 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
6517 call to for_each_rtx with for_each_rtx_in_insn.
6518
6519 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6520
6521 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
6522 "label" from rtx to rtx_code_label *.
6523 (ix86_expand_prologue): Likewise.
6524 (ix86_expand_split_stack_prologue): Likewise for locals "label",
6525 "varargs_label".
6526 (ix86_split_idivmod): Likewise for locals "end_label" and
6527 "qimode_label".
6528 (ix86_expand_branch): Likewise for local "label2".
6529 (ix86_expand_aligntest): Likewise for return type and local "label".
6530 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
6531 "top_label".
6532 (expand_movmem_epilogue): Likewise for the various locals named
6533 "label".
6534 (expand_setmem_epilogue): Likewise.
6535 (expand_small_movmem_or_setmem): Likewise for local "label".
6536 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
6537 Strengthen param "done_label" from rtx * to rtx_code_label **.
6538 Strengthen locals "loop_label" and "label" from rtx to
6539 rtx_code_label *.
6540 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
6541 Likewise for locals "loop_label", "label".
6542 (ix86_expand_set_or_movmem): Likewise for locals "label",
6543 "jump_around_label", "hot_label".
6544 (ix86_expand_strlensi_unroll_1): Likewise for locals
6545 "align_2_label", align_3_label", "align_4_label", "end_0_label",
6546 "end_2_label".
6547 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
6548 (void ix86_emit_i387_log1p): Likewise for locals "label1",
6549 "label2", "jump_label".
6550 (ix86_expand_sse_compare_and_jump): Likewise for return type and
6551 local "label".
6552 (ix86_expand_lfloorceil): Likewise for local "label".
6553 (ix86_expand_rint): Likewise.
6554 (ix86_expand_floorceildf_32): Likewise.
6555 (ix86_expand_floorceil): Likewise.
6556 (ix86_expand_rounddf_32): Likewise.
6557 (ix86_expand_trunc): Likewise.
6558 (ix86_expand_truncdf_32): Likewise.
6559 (ix86_expand_round): Likewise.
6560
6561 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6562
6563 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
6564 first param from rtx to rtx_insn *.
6565 (h8300_insn_length_from_table): Likewise.
6566 * config/h8300/h8300.c (F): Likewise for return type and param
6567 "x".
6568 (Fpa): Add a checked cast to rtx_insn *.
6569 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
6570 rtx_insn *.
6571 (final_prescan_insn): Likewise for param "insn".
6572 (h8300_binary_length): Likewise.
6573 (h8300_insn_length_from_table): Likewise.
6574
6575 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6576
6577 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
6578 Strengthen first param "insn" from rtx to rtx_insn *.
6579
6580 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
6581 Likewise.
6582 (frame_insn): Likewise for return type. Introduce local "insn"
6583 for use in place of local "x" for use as an rtx_insn *.
6584 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
6585 (epiphany_expand_prologue): Likewise for local "insn".
6586 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
6587 * config/epiphany/resolve-sw-modes.c
6588 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
6589 "seq".
6590
6591 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6592
6593 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
6594 param from rtx to rtx_insn *.
6595 (c6x_final_prescan_insn): Likewise for first param.
6596
6597 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
6598 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
6599 (c6x_expand_compare): Strengthen local "insns" from rtx to
6600 rtx_insn *.
6601 (c6x_get_unit_specifier): Likewise for param "insn".
6602 (c6x_print_unit_specifier_field): Likewise.
6603 (c6x_final_prescan_insn): Likewise.
6604 (emit_add_sp_const): Likewise for local "insn".
6605 (c6x_expand_prologue): Likewise.
6606
6607 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6608
6609 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
6610 param 1 from rtx to rtx_insn *.
6611 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
6612 the various locals named "insn".
6613 (expand_epilogue_reg_restore): Likewise.
6614 (frame_related_constant_load): Likewise.
6615 (add_to_reg): Likewise.
6616 (emit_link_insn): Likewise.
6617 (do_link): Likewise.
6618 (expand_interrupt_handler_prologue): Likewise.
6619 (branch_dest): Likewise for param "branch".
6620 (asm_conditional_branch): Likewise for param "insn".
6621 (gen_one_bundle): Likewise for elements of param "slot" and local
6622 "t".
6623 (bfin_gen_bundles): Likewise for locals "insn", "next" and
6624 elements of local "slot".
6625 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6626 "queue", "next_queue", "prev".
6627 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
6628 (add_sched_insns_for_speculation): Likewise for local "insn".
6629
6630 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6631
6632 * config/avr/avr-protos.h (output_movqi): Strengthen first param
6633 from rtx to rtx_insn *.
6634 (output_movhi): Likewise.
6635 (output_movsisf): Likewise.
6636 (avr_out_tstsi): Likewise.
6637 (avr_out_tsthi): Likewise.
6638 (avr_out_tstpsi): Likewise.
6639 (avr_out_compare): Likewise.
6640 (avr_out_compare64): Likewise.
6641 (avr_out_movpsi): Likewise.
6642 (ashlqi3_out): Likewise.
6643 (ashlhi3_out): Likewise.
6644 (ashlsi3_out): Likewise.
6645 (ashrqi3_out): Likewise.
6646 (ashrhi3_out): Likewise.
6647 (ashrsi3_out): Likewise.
6648 (lshrqi3_out): Likewise.
6649 (lshrhi3_out): Likewise.
6650 (lshrsi3_out): Likewise.
6651 (avr_out_ashlpsi3): Likewise.
6652 (avr_out_ashrpsi3): Likewise.
6653 (avr_out_lshrpsi3): Likewise.
6654 (avr_out_fract): Likewise.
6655 (avr_out_sbxx_branch): Likewise.
6656 (avr_out_round): Likewise.
6657 (avr_out_xload): Likewise.
6658 (avr_out_movmem): Likewise.
6659 (adjust_insn_length): Likewise.
6660 (avr_out_lpm): Likewise.
6661 (reg_unused_after): Likewise.
6662 (_reg_unused_after): Likewise.
6663 (avr_jump_mode): Likewise for second param.
6664 (jump_over_one_insn): Likewise for first param.
6665 (avr_final_prescan_insn): Likewise.
6666 (out_shift_with_cnt): Likewise for second param.
6667
6668 * config/avr/avr.c (get_sequence_length): Likewise for param
6669 "insns" and local "insn".
6670 (emit_push_byte): Likewise for local "insn".
6671 (emit_push_sfr): Likewise.
6672 (avr_prologue_setup_frame): Likewise for locals "insn",
6673 "fp_plus_insns", "sp_plus_insns".
6674 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
6675 "sp_plus_insns".
6676 (avr_jump_mode): Likewise for param "insn".
6677 (avr_final_prescan_insn): Likewise.
6678 (avr_find_unused_d_reg): Likewise.
6679 (avr_out_lpm_no_lpmx): Likewise.
6680 (avr_out_lpm): Likewise.
6681 (avr_out_xload): Likewise.
6682 (output_movqi): Likewise.
6683 (output_movhi): Likewise.
6684 (out_movqi_r_mr): Likewise.
6685 (out_movhi_r_mr): Likewise.
6686 (out_movsi_r_mr): Likewise.
6687 (out_movsi_mr_r): Likewise.
6688 (output_movsisf): Likewise.
6689 (avr_out_load_psi): Likewise.
6690 (avr_out_store_psi): Likewise.
6691 (avr_out_movpsi): Likewise.
6692 (out_movqi_mr_r): Likewise.
6693 (avr_out_movhi_mr_r_xmega): Likewise.
6694 (out_movhi_mr_r): Likewise.
6695 (compare_condition): Likewise for param "insn" and local "next".
6696 (compare_sign_p): Likewise for param "insn".
6697 (compare_diff_p): Likewise.
6698 (compare_eq_p): Likewise.
6699 (avr_out_compare): Likewise.
6700 (avr_out_compare64): Likewise.
6701 (avr_out_tsthi): Likewise.
6702 (avr_out_tstpsi): Likewise.
6703 (avr_out_tstsi): Likewise.
6704 (out_shift_with_cnt): Likewise.
6705 (ashlqi3_out): Likewise.
6706 (ashlhi3_out): Likewise.
6707 (avr_out_ashlpsi3): Likewise.
6708 (ashlsi3_out): Likewise.
6709 (ashrqi3_out): Likewise.
6710 (ashrhi3_out): Likewise.
6711 (avr_out_ashrpsi3): Likewise.
6712 (ashrsi3_out): Likewise.
6713 (lshrqi3_out): Likewise.
6714 (lshrhi3_out): Likewise.
6715 (avr_out_lshrpsi3): Likewise.
6716 (lshrsi3_out): Likewise.
6717 (avr_out_fract): Likewise.
6718 (avr_out_round): Likewise.
6719 (avr_adjust_insn_length): Likewise.
6720 (reg_unused_after): Likewise.
6721 (_reg_unused_after): Likewise.
6722 (avr_compare_pattern): Likewise.
6723 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
6724 and locals "branch1", "branch2", "insn2", "jump".
6725 (avr_reorg): Likewise for local "insn".
6726 (avr_2word_insn_p): Likewise for param "insn".
6727 (jump_over_one_insn_p): Likewise.
6728 (avr_out_sbxx_branch): Likewise.
6729 (avr_out_movmem): Likewise.
6730
6731 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6732
6733 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
6734 param from rtx to rtx_insn *.
6735 (thumb1_final_prescan_insn): Likewise.
6736 (thumb2_final_prescan_insn): Likewise.
6737
6738 * config/arm/arm.c (emit_set_insn): Strengthen return type from
6739 rtx to rtx_insn *.
6740 (struct minipool_node): Likewise for field "insn".
6741 (dump_minipool): Likewise for param "scan".
6742 (create_fix_barrier): Likewise for local "from". Strengthen local
6743 "label" from rtx to rtx_code_label *.
6744 (push_minipool_barrier): Strengthen param "insn" from rtx to
6745 rtx_insn *.
6746 (push_minipool_fix): Likewise.
6747 (note_invalid_constants): Likewise.
6748 (thumb2_reorg): Likewise for local "insn".
6749 (arm_reorg): Likewise.
6750 (thumb2_final_prescan_insn): Likewise for param
6751 "insn" and local "first_insn".
6752 (arm_final_prescan_insn): Likewise for param "insn" and locals
6753 "start_insn", "this_insn".
6754 (arm_debugger_arg_offset): Likewise for param "insn".
6755 (thumb1_emit_multi_reg_push): Likewise for return type and local
6756 "insn".
6757 (thumb1_final_prescan_insn): Likewise for param "insn".
6758 (thumb_far_jump_used_p): Likewise for local "insn".
6759 (thumb1_expand_prologue): Likewise.
6760 (arm_expand_epilogue_apcs_frame): Likewise.
6761 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
6762 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
6763 from rtx to rtx_code_label *.
6764 (arm_split_atomic_op): Likewise for local "label".
6765 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
6766
6767 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6768
6769 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
6770 first param from rtx to rtx_insn *.
6771 (arc_verify_short): Likewise.
6772 (arc_short_long): Likewise.
6773 (arc_need_delay): Likewise.
6774
6775 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
6776 "target_insn".
6777 (arc_ccfsm_advance): Likewise for param "insn" and locals
6778 "start_insn", "this_insn".
6779 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
6780 (arc_ccfsm_post_advance): Likewise for param "insn".
6781 (arc_next_active_insn): Likewise for return type and param "insn".
6782 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
6783 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
6784 (output_short_suffix): Likewise for local "insn".
6785 (arc_final_prescan_insn): Likewise for param "insn". Remove
6786 now-redundant checked cast.
6787 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
6788 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
6789 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
6790 for use where lc_set became an insn.
6791 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
6792 rtx to rtx_insn *.
6793 (arc_get_insn_variants): Likewise for local "prev".
6794 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
6795 "next".
6796 (arc_predicate_delay_insns): Likewise for local "insn".
6797 (arc_pad_return): Likewise for local "prev". For now, add a
6798 checked cast when extracting the insn from "final_sequence".
6799 (arc_short_long): Likewise for param "insn".
6800 (arc_need_delay): Likewise for param "insn" and local "next".
6801 (arc_label_align): Likewise for locals "prev", "next".
6802
6803 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6804
6805 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
6806 "insn" from rtx to rtx_insn *.
6807 (alpha_gp_save_rtx): Likewise for local "seq".
6808 (alpha_instantiate_decls): Likewise for local "top".
6809 (get_some_local_dynamic_name): Likewise for local "insn".
6810 (alpha_does_function_need_gp): Likewise.
6811 (set_frame_related_p): Likewise for return type and for locals
6812 "seq" and "insn".
6813 (emit_frame_store_1): Likewise for local "insn".
6814 (alpha_expand_prologue): Likewise for locals "insn", "seq".
6815 (alpha_end_function): Likewise for local "insn".
6816 (alpha_output_mi_thunk_osf): Likewise.
6817 (alphaev4_insn_pipe): Likewise for param "insn".
6818 (alphaev5_insn_pipe): Likewise.
6819 (alphaev4_next_group): Likewise for return type and param 1
6820 "insn".
6821 (alphaev5_next_group): Likewise.
6822 (alpha_align_insns_1): Likewise for return type and param 1 of
6823 callback param "next_group", and for locals "i", "next", "prev",
6824 "where", "where2", "insn".
6825
6826 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
6827
6828 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
6829 rather than modifying the stmt.
6830
6831 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6832
6833 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
6834 cgraph_state conversion.
6835
6836 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6837
6838 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6839 Strengthen local "insns" from rtx to rtx_insn *.
6840 (aarch64_set_frame_expr): Likewise for local "insn".
6841 (aarch64_save_or_restore_fprs): Likewise.
6842 (aarch64_save_or_restore_callee_save_registers): Likewise.
6843 (aarch64_expand_prologue): Likewise.
6844 (aarch64_expand_epilogue): Likewise.
6845 (aarch64_output_mi_thunk): Likewise.
6846 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
6847 "label2" from rtx to rtx_code_label *.
6848 (aarch64_split_atomic_op): Likewise for local "label".
6849
6850 2014-08-25 Martin Liska <mliska@suse.cz>
6851
6852 * cgraph.h (symtab_node):
6853 (bool needed_p (void)): created from decide_is_symbol_needed
6854 (bool referred_to_p (void)): created from referred_to_p
6855 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
6856 * cgraph.h (cgraph_node):
6857 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
6858 (void expand (void)): created from expand_function
6859 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
6860 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
6861 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
6862 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
6863 * cgraph.h (varpool_node):
6864 (static void add (tree decl): created from varpool_add_new_variable
6865 * cgraph.h (cgraph_edge):
6866 void remove (void);
6867 (void remove_caller (void)): created from cgraph_edge_remove_caller
6868 (void remove_callee (void)): created from cgraph_edge_remove_callee
6869 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
6870 created from cgraph_set_call_stmt
6871 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
6872 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
6873 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
6874 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
6875 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
6876 created from cgraph_speculative_call_info
6877 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
6878 int freq_scale, bool update_original)): created from cgraph_clone_edge
6879 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
6880 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
6881 (bool recursive_p (void)): created from cgraph_edge_recursive_p
6882 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
6883 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
6884 (static void rebuild_references (void)): created from cgraph_rebuild_references
6885 * cgraph.h (symbol_table):
6886 (create_reference): renamed from add_reference
6887 (maybe_create_reference): renamed from maybe_add_reference
6888 (void register_symbol (symtab_node *node)): new function
6889 (void clear_asm_symbols (void)): new function
6890 (void unregister (symtab_node *node)): new function
6891 (void release_symbol (cgraph_node *node, int uid)): new function
6892 (cgraph_node * allocate_cgraph_symbol (void)): new function
6893 (void initialize (void)): created from cgraph_init
6894 (symtab_node *first_symbol (void)):new function
6895 (asm_node *first_asm_symbol (void)):new function
6896 (symtab_node *first_defined_symbol (void)):new function
6897 (varpool_node *first_variable (void)):new function
6898 (varpool_node *next_variable (varpool_node *node)):new function
6899 (varpool_node *first_static_initializer (void)):new function
6900 (varpool_node *next_static_initializer (varpool_node *node)):new function
6901 (varpool_node *first_defined_variable (void)):new function
6902 (varpool_node *next_defined_variable (varpool_node *node)):new function
6903 (cgraph_node *first_defined_function (void)):new function
6904 (cgraph_node *next_defined_function (cgraph_node *node)):new function
6905 (cgraph_node *first_function (void)):new function
6906 (cgraph_node *next_function (cgraph_node *node)):new function
6907 (cgraph_node *first_function_with_gimple_body (void)):new function
6908 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
6909 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
6910 created from symtab_remove_unreachable_nodes
6911 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
6912 (void process_new_functions (void)): created from cgraph_process_new_functions
6913 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
6914 (bool output_variables (void)): created from varpool_node::output_variables
6915 (void output_asm_statements (void)): created from output_asm_statements
6916 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
6917 (void compile (void)): created from compile
6918 (void output_weakrefs (void)): created from output_weakrefs
6919 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
6920 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
6921 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
6922 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
6923 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
6924 created from cgraph_next_function_with_gimple_body
6925 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
6926 created from cgraph_remove_edge_removal_hook
6927 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
6928 created from cgraph_add_node_removal_hook
6929 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
6930 created from cgraph_remove_node_removal_hook
6931 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
6932 created from varpool_add_node_removal_hook
6933 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
6934 created from varpool_remove_node_removal_hook
6935 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
6936 created from cgraph_add_function_insertion_hook
6937 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
6938 created from cgraph_remove_function_insertion_hook
6939 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
6940 created from varpool_add_variable_insertion_hook
6941 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
6942 created from varpool_remove_variable_insertion_hook
6943 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
6944 created from cgraph_add_edge_duplication_hook
6945 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
6946 created from cgraph_remove_edge_duplication_hook
6947 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
6948 created from cgraph_add_node_duplication_hook
6949 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
6950 created from cgraph_remove_node_duplication_hook
6951 (void call_edge_removal_hooks (cgraph_edge *e)):
6952 created from cgraph_call_edge_removal_hooks
6953 (void call_cgraph_insertion_hooks (cgraph_node *node)):
6954 created from call_function_insertion_hooks
6955 (void call_cgraph_removal_hooks (cgraph_node *node)):
6956 created from cgraph_call_node_removal_hooks
6957 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
6958 created from cgraph_node::call_duplication_hooks
6959 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
6960 created from cgraph_call_edge_duplication_hooks
6961 (void call_varpool_removal_hooks (varpool_node *node)):
6962 created from varpool_call_node_removal_hooks
6963 (void call_varpool_insertion_hooks (varpool_node *node)):
6964 created from varpool_call_variable_insertion_hooks
6965 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
6966 created from insert_to_assembler_name_hash
6967 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
6968 created from unlink_from_assembler_name_hash
6969 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
6970 created from symtab_prevail_in_asm_name_hash
6971 (void symtab_initialize_asm_name_hash (void)):
6972 created from symtab_initialize_asm_name_hash
6973 (void change_decl_assembler_name (tree decl, tree name)):
6974 created from change_decl_assembler_name
6975 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
6976 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
6977 created from decl_assembler_name_hash
6978 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
6979 created from decl_assembler_name_equal
6980 (static hashval_t hash_node_by_assembler_name (const void *p)):
6981 created from hash_node_by_assembler_name
6982 (static int eq_assembler_name (const void *p1, const void *p2)):
6983 created from eq_assembler_name
6984
6985 2014-08-25 Marek Polacek <polacek@redhat.com>
6986
6987 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
6988
6989 2014-08-25 Petr Murzin <petr.murzin@intel.com>
6990
6991 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
6992 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
6993 SWI1248_AVX512BW mode iterator.
6994
6995 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
6996
6997 PR target/62111
6998 * config/sh/predicates.md (general_extend_operand): Disable
6999 TRUNCATE before reload completes.
7000
7001 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
7002
7003 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
7004
7005 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
7006
7007 PR target/61996
7008 * config/sh/sh.opt (musermode): Allow negative form.
7009 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
7010 targets that don't support it.
7011 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
7012 Document -mno-usermode option.
7013
7014 2014-08-24 Kito Cheng <kito@0xlab.org>
7015
7016 * system.h (CALLER_SAVE_PROFITABLE): Poison.
7017 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
7018 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
7019 * doc/tm.texi: Regenerate.
7020
7021 2014-08-24 Kito Cheng <kito@0xlab.org>
7022
7023 * ira.c: Fix typo in comment.
7024
7025 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
7026
7027 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
7028 Deprecate c++1y. Change language to reflect greater confidence in C++14.
7029
7030 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
7031
7032 PR target/62038
7033 * config/pa/pa.c (pa_output_function_epilogue): Don't set
7034 last_address when the current function is a thunk.
7035 (pa_asm_output_mi_thunk): When we don't have named sections or they
7036 are not being used, check that thunk can reach the stub table with a
7037 short branch.
7038
7039 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7040
7041 * web.c (union_match_dups): Strengthen param "insn" from rtx to
7042 rtx_insn *.
7043 (pass_web::execute): Likewise for local "insn".
7044
7045 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7046
7047 * var-tracking.c (struct micro_operation_def): Strengthen field
7048 "insn" from rtx to rtx_insn *.
7049 (struct emit_note_data_def): Likewise.
7050 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
7051 (vt_stack_adjustments): Likewise for local "insn".
7052 (adjust_insn): Likewise for param "insn".
7053 (val_store): Likewise.
7054 (val_resolve): Likewise.
7055 (struct count_use_info): Likewise for field "insn".
7056 (log_op_type): Likewise for param "insn".
7057 (reverse_op): Likewise.
7058 (prepare_call_arguments): Likewise.
7059 (add_with_sets): The initial param takes an insn, but we can't
7060 yet strengthen it from rtx to rtx_insn * since it's used as a
7061 cselib_record_sets_hook callback. For now rename initial param
7062 from "insn" to "uncast_insn", and introduce a local "insn" of
7063 the stronger rtx_insn * type, with a checked cast.
7064 (compute_bb_dataflow): Strengthen local "insn" from rtx to
7065 rtx_insn *.
7066 (emit_note_insn_var_location): Likewise.
7067 (emit_notes_for_changes): Likewise.
7068 (emit_notes_for_differences): Likewise.
7069 (next_non_note_insn_var_location): Likewise for return type and
7070 for param "insn".
7071 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
7072 (vt_initialize): Likewise for local "insn".
7073 (delete_debug_insns): Likewise for locals "insn" and "next".
7074
7075 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7076
7077 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
7078 rtx_insn *.
7079 (mark_constant_pool): Likewise for local "insn".
7080
7081 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7082
7083 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
7084 rtx to rtx_insn *.
7085 (dead_debug_promote_uses): Likewise.
7086 (dead_debug_insert_temp): Likewise.
7087
7088 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7089
7090 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
7091 from const_rtx to const rtx_insn *.
7092 (store_killed_after): Likewise. Strengthen locals "last", "act"
7093 from rtx to rtx_insn *.
7094 (store_killed_before): Strengthen param "insn" from const_rtx to
7095 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
7096 (find_moveable_store): Strengthen param "insn" from rtx to
7097 rtx_insn *.
7098 (compute_store_table): Likewise for local "insn".
7099 (insert_insn_start_basic_block): Likewise for param "insn" and
7100 locals "prev", "before", "insn".
7101 (insert_store): For now, add a checked cast to rtx_insn * on the
7102 result of gen_move_insn.
7103 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
7104 to rtx_insn *.
7105 (replace_store_insn): Likewise. For now, add a checked cast to
7106 rtx_insn * on the result of gen_move_insn.
7107
7108 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7109
7110 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
7111 rtx_insn *.
7112 (expand_sjlj_dispatch_table): Likewise.
7113
7114 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7115
7116 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
7117 "insn" from rtx to rtx_insn *.
7118
7119 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7120
7121 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
7122 "insn" from rtx to rtx_insn *.
7123 (dup_block_and_redirect): Likewise for param 3 "before".
7124
7125 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
7126 from rtx to rtx_insn *.
7127 (move_insn_for_shrink_wrap): Likewise.
7128 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
7129 (dup_block_and_redirect): Likewise for param "before" and local
7130 "insn".
7131 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
7132 "end".
7133 (convert_to_simple_return): Likewise for local "start".
7134
7135 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
7136 Strengthen local "insn" from rtx to rtx_insn *, for use when
7137 invoking requires_stack_frame_p.
7138
7139 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7140
7141 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
7142 rtx_insn *.
7143 (speculate_expr): Likewise for locals "orig_insn_rtx",
7144 "spec_insn_rtx".
7145 (eq_transformed_insns): Likewise for locals "i1", "i2".
7146 (check_for_new_jump): Likewise for return type and local "end".
7147 (find_new_jump): Likewise for return type and local "jump".
7148 (sel_split_edge): Likewise for local "jump".
7149 (sel_create_recovery_block): Likewise.
7150 (sel_redirect_edge_and_branch_force): Likewise.
7151 (sel_redirect_edge_and_branch): Likewise.
7152
7153 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7154
7155 * sel-sched.c (substitute_reg_in_expr): Strengthen local
7156 "new_insn" from rtx to rtx_insn *.
7157 (create_insn_rtx_with_rhs): Likewise for return type and for local
7158 "insn_rtx".
7159 (create_insn_rtx_with_lhs): Likewise.
7160 (create_speculation_check): Likewise for local "insn_rtx".
7161 (implicit_clobber_conflict_p): Likewise for local "insn".
7162 (get_expr_cost): Likewise.
7163 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
7164 (move_cond_jump): Likewise for locals "next", "prev", "link",
7165 "head", "from", "to".
7166
7167 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7168
7169 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
7170 "next" from rtx to rtx_insn *.
7171 (find_conditional_protection): Likewise for local "next".
7172 (is_conditionally_protected): Likewise for local "insn1".
7173 (is_pfree): Likewise for locals "insn1", "insn2".
7174
7175 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7176
7177 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
7178 from rtx to rtx_insn *.
7179
7180 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
7181 locals "insn1", "insn2" from rtx to rtx_insn *.
7182 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
7183 locals "insn", "prev", "last_jump", "next_tail".
7184 (schedule_ebb): Likewise for params "head", "tail".
7185 (schedule_ebbs): Likewise for locals "tail", "head".
7186
7187 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
7188 to rtx_insn on "last_insn" in one of the invocations of
7189 schedule_ebb.
7190
7191 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7192
7193 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
7194 "elem", "insn" from rtx to rtx_insn *.
7195 (change_spec_dep_to_hard): Likewise.
7196 (get_back_and_forw_lists): Likewise for local "con".
7197 (sd_add_dep): Likewise for locals "elem", "insn".
7198 (sd_resolve_dep): Likewise for locals "pro", "con".
7199 (sd_unresolve_dep): Likewise.
7200 (sd_delete_dep): Likewise.
7201 (chain_to_prev_insn): Likewise for local "pro".
7202 (find_inc): Likewise for locals "pro", "con".
7203
7204 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7205
7206 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
7207 to rtx_insn *.
7208 (reg_set_between_p): Strengthen local "insn" from const_rtx to
7209 const rtx_insn *.
7210 (modified_between_p): Strengthen local "insn" from rtx to
7211 rtx_insn *.
7212 (remove_reg_equal_equiv_notes_for_regno): Likewise.
7213 (keep_with_call_p): Strengthen local "i2" from const_rtx to
7214 const rtx_insn *.
7215
7216 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7217
7218 * resource.c (next_insn_no_annul): Strengthen local "next" from
7219 rtx to rtx_insn *.
7220 (mark_referenced_resources): Likewise for local "insn".
7221
7222 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7223
7224 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
7225 to rtx_insn *.
7226 (find_reloads): Likewise for param 1.
7227 (subst_reloads): Likewise for sole param.
7228 (find_equiv_reg): Likwise for param 2.
7229 (regno_clobbered_p): Likwise for param 2.
7230 (reload): Likewise for param 1.
7231
7232 * caller-save.c (save_call_clobbered_regs): Strengthen local
7233 "insn" from rtx to rtx_insn *.
7234 (insert_one_insn): Likewise for local "insn".
7235
7236 * reload.c (this_insn): Likewise for this global.
7237 (find_reloads): Likewise for param "insn".
7238 (find_reloads_toplev): Likewise.
7239 (find_reloads_address): Likewise.
7240 (subst_reg_equivs): Likewise.
7241 (update_auto_inc_notes): Likewise.
7242 (find_reloads_address_1): Likewise.
7243 (find_reloads_subreg_address): Likewise.
7244 (subst_reloads): Likewise.
7245 (find_equiv_reg): Likewise, also for local "p".
7246 (regno_clobbered_p): Likewise for param "insn".
7247
7248 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
7249 array.
7250 (spill_reg_store): Likewise for the elements of this array.
7251 (remove_init_insns): Likewise for local "equiv_insn".
7252 (will_delete_init_insn_p): Likewise for param "insn".
7253 (reload): Likewise for param ""first" and local "insn".
7254 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
7255 rtx_insn *.
7256 (calculate_elim_costs_all_insns): Likewise.
7257 (delete_caller_save_insns): Likewise.
7258 (spill_failure): Likewise for param "insn".
7259 (delete_dead_insn): Likewise.
7260 (set_label_offsets): Likewise.
7261 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
7262 "prev_insn".
7263 (elimination_costs_in_insn): Likewise for param "insn".
7264 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
7265 when referring to an insn.
7266 (set_initial_label_offsets): Likewise.
7267 (set_offsets_for_label): Strengthen param "insn" from rtx to
7268 rtx_insn *.
7269 (init_eliminable_invariants): Likewise for param "first" and local
7270 "insn".
7271 (fixup_eh_region_note): Likewise for param "insn".
7272 (reload_as_needed): Likewise for locals "prev", "insn",
7273 "old_next", "old_prev", "next".
7274 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
7275 "last".
7276 (reload_inheritance_insn): Strengthen elements of this array from
7277 rtx to rtx_insn *.
7278 (failed_reload): Likewise for param "insn".
7279 (choose_reload_regs): Likewise for local "insn". Replace use of
7280 NULL_RTX with NULL when referring to an insn.
7281 (input_reload_insns): Strengthen elements of this array from rtx
7282 to rtx_insn *.
7283 (other_input_address_reload_insns): Likewise for this global.
7284 (other_input_reload_insns): Likewise for this global.
7285 (input_address_reload_insns): Likwise for the elements of this
7286 array.
7287 (inpaddr_address_reload_insns): Likwise for the elements of this
7288 array.
7289 (output_reload_insns): Likewise for the elements of this array.
7290 (output_address_reload_insns): Likewise for the elements of this
7291 array.
7292 (outaddr_address_reload_insns): Likewise for the elements of this
7293 array.
7294 (operand_reload_insns): Likewise for this global.
7295 (other_operand_reload_insns): Likewise for this global.
7296 (other_output_reload_insns): Likewise for the elements of this
7297 array.
7298 (new_spill_reg_store): Likewise for the elements of this
7299 array.
7300 (emit_input_reload_insns): Likewise for locals "insn", "temp".
7301 Strengthen local "where" from rtx * to rtx_insn **.
7302 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
7303 from rtx to rtx_insn *.
7304 (do_input_reload): Likewise for local "insn".
7305 (do_output_reload): Likewise for local "insn".
7306 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
7307 (emit_insn_if_valid_for_reload): Likewise for return type and local
7308 "last". Add checked cast to rtx_insn when returning "insn" since
7309 this has been through emit_insn.
7310 (gen_reload): Strengthen return type and locals "last", "insn", "set"
7311 from rtx to rtx_insn *. Add checked cast to rtx_insn when
7312 returning "insn" since it's been through
7313 emit_insn_if_valid_for_reload at this point.
7314 (delete_output_reload): Strengthen param "insn" and locals
7315 "output_reload_insn", "i2" from rtx to rtx_insn *.
7316 (delete_address_reloads): Likewise for params "dead_insn",
7317 "current_insn" and locals "prev", "next".
7318 (delete_address_reloads_1): Likewise for params "dead_insn",
7319 "current_insn" and locals "prev", "i2".
7320 (inc_for_reload): Likewise for locals "last", "add_insn".
7321 (add_auto_inc_notes): Strengthen param "insn" from rtx to
7322 rtx_insn *.
7323
7324 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
7325 param of this duplicate of the prototype from reload.h
7326
7327 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7328
7329 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
7330 rtx to rtx_insn *.
7331 (regstat_bb_compute_calls_crossed): Likewise.
7332
7333 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7334
7335 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
7336 to rtx_insn *.
7337 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
7338 with an insn.
7339 (regrename_analyze): Strengthen local "insn" from rtx to
7340 rtx_insn *.
7341 (scan_rtx_reg): Likewise for param "insn".
7342 (scan_rtx_address): Likewise.
7343 (scan_rtx): Likewise.
7344 (restore_operands): Likewise.
7345 (record_out_operands): Likewise.
7346 (build_def_use): Likewise for local "insn". Replace use of
7347 NULL_RTX with NULL when dealing with an insn.
7348
7349 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7350
7351 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
7352 * reginfo.c (reg_scan): Likewise, also for local "insn".
7353 (reg_scan_mark_refs): Likewise for param "insn".
7354 (init_subregs_of_mode): Likewise for local "insn".
7355
7356 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7357
7358 * regcprop.c (struct queued_debug_insn_change): Strengthen field
7359 "insn" from rtx to rtx_insn *.
7360 (replace_oldest_value_reg): Likewise for param "insn".
7361 (replace_oldest_value_addr): Likewise.
7362 (replace_oldest_value_mem): Likewise.
7363 (apply_debug_insn_changes): Likewise for local "last_insn".
7364 (copyprop_hardreg_forward_1): Likewise for local "insn".
7365
7366 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7367
7368 * reg-stack.c (next_flags_user): Strengthen return type and param
7369 "insn" from rtx to rtx_insn *.
7370 (straighten_stack): Likewise for param "insn".
7371 (check_asm_stack_operands): Likewise.
7372 (remove_regno_note): Likewise.
7373 (emit_pop_insn): Likewise for return type, param "insn", local
7374 "pop_insn".
7375 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
7376 "limit" from rtx to rtx_insn *.
7377 (swap_to_top): Likewise for param "insn".
7378 (move_for_stack_reg): Likewise.
7379 (move_nan_for_stack_reg): Likewise.
7380 (swap_rtx_condition): Likewise.
7381 (compare_for_stack_reg): Likewise.
7382 (subst_all_stack_regs_in_debug_insn): Likewise.
7383 (subst_stack_regs_pat): Likewise, and local "insn2".
7384 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
7385 rtx_insn *.
7386 (subst_stack_regs): Likewise.
7387 (change_stack): Likewise.
7388 (convert_regs_1): Likewise for locals "insn", "next".
7389
7390 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7391
7392 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
7393 rtx_insn *.
7394 (combine_set_extension): Likewise for param "curr_insn".
7395 (transform_ifelse): Likewise for param "def_insn".
7396 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
7397 from vec<rtx> * to vec<rtx_insn *> *.
7398 (is_cond_copy_insn): Likewise for param "insn".
7399 (struct ext_state): Strengthen the four vec fields from vec<rtx>
7400 to vec<rtx_insn *>.
7401 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
7402 local "def_insn" from rtx to rtx_insn *.
7403 (get_sub_rtx): Likewise for param "def_insn".
7404 (merge_def_and_ext): Likewise.
7405 (combine_reaching_defs): Likewise.
7406 (add_removable_extension): Likewise for param "insn".
7407 (find_removable_extensions): Likewise for local "insn".
7408 (find_and_remove_re): Likewise for locals "curr_insn" and
7409 "def_insn". Strengthen locals "reinsn_del_list" and
7410 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
7411
7412 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7413
7414 * recog.c (split_insn): Strengthen param "insn" and locals
7415 "first", "last" from rtx to rtx_insn *.
7416 (split_all_insns): Likewise for locals "insn", "next".
7417 (split_all_insns_noflow): Likewise.
7418
7419 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7420
7421 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
7422 const rtx_insn *.
7423 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
7424 (debug_rtx_find): Likewise for param 1 "x".
7425
7426 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
7427 const_rtx to const rtx_insn *. Likewise for local "insn".
7428 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
7429 (debug_rtx_find): Likewise for param 1 "x".
7430 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
7431 from const_rtx to const rtx_insn * within the appropriate cases of
7432 the switch statement.
7433
7434 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
7435 Strengthen local "insns" from rtx to rtx_insn * since this is
7436 passed to a call to debug_rtx_list.
7437
7438 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7439
7440 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
7441 to rtx_insn *.
7442
7443 * function.c (stack_protect_epilogue): Add checked cast to
7444 rtx_insn for now when invoking predict_insn_def.
7445
7446 * predict.c (predict_insn): Strengthen param "insn" from rtx to
7447 rtx_insn *.
7448 (predict_insn_def): Likewise.
7449 (rtl_predict_edge): Likewise for local "last_insn".
7450 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
7451 const rtx_insn *.
7452 (combine_predictions_for_insn): Strengthen param "insn" from rtx
7453 to rtx_insn *.
7454 (bb_estimate_probability_locally): Likewise for local "last_insn".
7455 (expensive_function_p): Likewise for local "insn".
7456
7457 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
7458 local "jmp", since this is used when invoking predict_insn_def.
7459
7460 2014-08-22 Marek Polacek <polacek@redhat.com>
7461
7462 PR c++/62199
7463 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
7464
7465 2014-08-22 Marek Polacek <polacek@redhat.com>
7466
7467 PR c/61271
7468 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
7469 a comparison in parens.
7470 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
7471 in parens.
7472
7473 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7474
7475 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
7476 rtx_insn *.
7477
7478 * cprop.c (fis_get_condition): Likewise.
7479
7480 * postreload.c (reload_cse_regs): Likewise for param "first".
7481 (reload_cse_simplify): Likewise for param "insn".
7482 (reload_cse_regs_1): Likewise for local "insn".
7483 (reload_cse_simplify_set): Likewise for param "insn".
7484 (reload_cse_simplify_operands): Likewise.
7485 (struct reg_use): Likewise for field "insn".
7486 (reload_combine_purge_insn_uses): Likewise for param "insn".
7487 (fixup_debug_insns): Likewise for params "from", "to" and local
7488 "insn".
7489 (try_replace_in_use): Likewise for local "use_insn".
7490 (reload_combine_recognize_const_pattern): Likewise for param
7491 "insn" and locals "add_moved_after_insn", "use_insn".
7492 (reload_combine_recognize_pattern): Likewise for param "insn" and
7493 local "prev".
7494 (reload_combine): Likewise for locals "insn", "prev".
7495 (reload_combine_note_use): Likewise for param "insn".
7496 (move2add_use_add2_insn): Likewise.
7497 (move2add_use_add3_insn): Likewise.
7498 (reload_cse_move2add): Likewise, also for local "next".
7499 (move2add_note_store): Likewise for local "insn".
7500
7501 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7502
7503 * postreload-gcse.c (struct occr): Strengthen field "insn" from
7504 rtx to rtx_insn *.
7505 (struct unoccr): Likewise.
7506 (struct modifies_mem): Likewise.
7507 (alloc_mem): Likewise for local "insn".
7508 (insert_expr_in_table): Likewise for param "insn".
7509 (dump_expr_hash_table_entry): Likewise for local "insn".
7510 (oprs_unchanged_p): Likewise for param "insn".
7511 (load_killed_in_block_p): Likewise for local "setter".
7512 (record_last_reg_set_info): Likewise for param "insn".
7513 (record_last_reg_set_info_regno): Likewise.
7514 (record_last_mem_set_info): Likewise.
7515 (record_last_set_info): Likewise for local "last_set_insn".
7516 (record_opr_changes): Likewise for param "insn".
7517 (hash_scan_set): Likewise.
7518 (compute_hash_table): Likewise for local "insn".
7519 (get_avail_load_store_reg): Likewise for param "insn".
7520 (eliminate_partially_redundant_load): Likewise, also for locals
7521 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
7522 RTX for insns.
7523 (eliminate_partially_redundant_loads): Likewise for local "insn".
7524
7525 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7526
7527 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
7528 rtx to rtx_insn *.
7529 (expand_binop): Likewise for locals "entry_last", "last", "insns"
7530 (expand_twoval_unop): Likewise for locals entry_last", "last".
7531 (expand_twoval_binop): Likewise.
7532 (expand_twoval_binop_libfunc): Likewise for local "insns".
7533 (widen_leading): Likewise for local "last".
7534 (expand_doubleword_clz): Likewise for local "seq". Strengthen
7535 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
7536 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
7537 (expand_parity): Likewise for locals "last" and "seq".
7538 (expand_ffs): Likewise for local "seq". Strengthen local
7539 "nonzero_label" from rtx to rtx_code_label *.
7540 (expand_absneg_bit): Strengthen local "insns" from rtx to
7541 rtx_insn *.
7542 (expand_unop_direct): Likewise for local "last".
7543 (expand_unop): Likewise for locals "last", "insns".
7544 (expand_abs_nojump): Likewise for local "last".
7545 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
7546 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
7547 rtx_insn *.
7548 (expand_copysign_absneg): Strengthen local "label" from rtx to
7549 rtx_code_label *.
7550 (expand_copysign_bit): Strengthen local "insns" from rtx to
7551 rtx_insn *.
7552 (struct no_conflict_data): Likewise for fields "first", "insn".
7553 (emit_libcall_block_1): Likewise for param "insns" and locals
7554 "next", "last", "insn".
7555 (emit_libcall_block): For now, add a checked cast to rtx_insn *
7556 on "insns" when invoking emit_libcall_block_1. Ultimately we
7557 want to strengthen insns itself.
7558 (prepare_cmp_insn): Strengthen local "last" from rtx to
7559 rtx_insn *.
7560 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
7561 (prepare_float_lib_cmp): Likewise for local "insns".
7562 (emit_conditional_move): Likewise for local "last".
7563 (emit_conditional_add): Likewise.
7564 (have_sub2_insn): Likewise for local "seq".
7565 (expand_float): Likewise for local "insns". Strengthen locals
7566 "label", "neglabel" from rtx to rtx_code_label *.
7567 (expand_fix): Likewise for locals "last", "insn", "insns" (to
7568 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
7569 (expand_fixed_convert): Likewise for local "insns" (to
7570 rtx_insn *).
7571 (expand_sfix_optab): Likewise for local "last".
7572 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
7573 to rtx_code_label *.
7574 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
7575 from rtx to rtx_insn *.
7576 (expand_atomic_fetch_op): Likewise for local "insn".
7577 (maybe_legitimize_operand_same_code): Likewise for local "last".
7578 (maybe_legitimize_operands): Likewise.
7579
7580 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7581
7582 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
7583 "insn" from rtx to rtx_insn *.
7584 (ps_rtl_insn): Likewise for return type.
7585 (doloop_register_get): Likewise for params "head", "tail" and
7586 locals "insn", "first_insn_not_to_check".
7587 (schedule_reg_move): Likewise for local "this_insn".
7588 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
7589 of gen_move_insn for now.
7590 (reset_sched_times): Strengthen local "insn" from rtx to
7591 rtx_insn *.
7592 (permute_partial_schedule): Likewise.
7593 (duplicate_insns_of_cycles): Likewise for local "u_insn".
7594 (dump_insn_location): Likewise for param "insn".
7595 (loop_canon_p): Likewise for local "insn".
7596 (sms_schedule): Likewise.
7597 (print_partial_schedule): Likewise.
7598 (ps_has_conflicts): Likewise.
7599
7600 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7601
7602 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
7603 "tailp" from rtx * to rtx_insn **.
7604
7605 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
7606 from rtx to rtx_insn *.
7607 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
7608 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
7609 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
7610 rtx to rtx_insn *.
7611 * modulo-sched.c (const_iteration_count): Strengthen return type
7612 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
7613 use of NULL_RTX with NULL when working with insns.
7614 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
7615 to rtx_insn *.
7616 (sms_schedule): Likewise.
7617 * sched-rgn.c (init_ready_list): Likewise, also for locals
7618 "src_head" and "src_next_tail".
7619 (compute_block_dependences): Likewise.
7620 (free_block_dependencies): Likewise.
7621 (debug_rgn_dependencies): Likewise.
7622 (free_rgn_deps): Likewise.
7623 (compute_priorities): Likewise.
7624 (schedule_region): Likewise.
7625 * sel-sched.c (find_ebb_boundaries): Likewise.
7626
7627 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
7628 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
7629
7630 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7631
7632 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
7633 from rtx to rtx_insn *.
7634 (new_seginfo): Likewise for param "insn".
7635 (create_pre_exit): Likewise for locals "last_insn",
7636 "before_return_copy", "return_copy".
7637 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
7638 "mode_set".
7639
7640 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7641
7642 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
7643 from rtx to rtx_insn *.
7644 (lra_push_insn): Likewise for 1st param.
7645 (lra_push_insn_and_update_insn_regno_info): Likewise.
7646 (lra_pop_insn): Likewise for return type.
7647 (lra_invalidate_insn_data): Likewise for 1st param.
7648 (lra_set_insn_deleted): Likewise.
7649 (lra_delete_dead_insn): Likewise.
7650 (lra_process_new_insns): Likewise for first 3 params.
7651 (lra_set_insn_recog_data): Likewise for 1st param.
7652 (lra_update_insn_recog_data): Likewise.
7653 (lra_set_used_insn_alternative): Likewise.
7654 (lra_invalidate_insn_regno_info): Likewise.
7655 (lra_update_insn_regno_info): Likewise.
7656 (lra_former_scratch_operand_p): Likewise.
7657 (lra_eliminate_regs_1): Likewise.
7658 (lra_get_insn_recog_data): Likewise.
7659
7660 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
7661 rtx to rtx_insn *.
7662
7663 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
7664 "mv1" and "mv2".
7665 (substitute_within_insn): New.
7666 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
7667 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
7668 Replace call to "substitute" with call to substitute_within_insn.
7669
7670 * lra-constraints.c (curr_insn): Strengthen from rtx to
7671 rtx_insn *.
7672 (get_equiv_with_elimination): Likewise for param "insn".
7673 (match_reload): Strengthen params "before" and "after" from rtx *
7674 to rtx_insn **.
7675 (emit_spill_move): Likewise for return type. Add a checked cast
7676 to rtx_insn * on result of gen_move_insn for now.
7677 (check_and_process_move): Likewise for local "before". Replace
7678 NULL_RTX with NULL when referring to insns.
7679 (process_addr_reg): Strengthen params "before" and "after" from
7680 rtx * to rtx_insn **.
7681 (insert_move_for_subreg): Likewise.
7682 (simplify_operand_subreg): Strengthen locals "before" and "after"
7683 from rtx to rtx_insn *.
7684 (process_address_1): Strengthen params "before" and "after" from
7685 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
7686 rtx to rtx_insn *.
7687 (process_address): Strengthen params "before" and "after" from
7688 rtx * to rtx_insn **.
7689 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
7690 (curr_insn_transform): Strengthen locals "before" and "after"
7691 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
7692 to insns.
7693 (loc_equivalence_callback): Update cast of "data", changing
7694 resulting type from rtx to rtx_insn *.
7695 (substitute_pseudo_within_insn): New.
7696 (inherit_reload_reg): Strengthen param "insn" from rtx to
7697 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
7698 NULL when referring to insns. Add a checked cast to rtx_insn *
7699 when using usage_insn to invoke lra_update_insn_regno_info.
7700 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
7701 likewise for locals "restore", "save". Add checked casts to
7702 rtx_insn * when using usage_insn to invoke
7703 lra_update_insn_regno_info and lra_process_new_insns. Replace
7704 NULL_RTX with NULL when referring to insns.
7705 (split_if_necessary): Strengthen param "insn" from rtx to
7706 rtx_insn *.
7707 (update_ebb_live_info): Likewise for params "head", "tail" and local
7708 "prev_insn".
7709 (get_last_insertion_point): Likewise for return type and local "insn".
7710 (get_live_on_other_edges): Likewise for local "last".
7711 (inherit_in_ebb): Likewise for params "head", "tail" and locals
7712 "prev_insn", "next_insn", "restore".
7713 (remove_inheritance_pseudos): Likewise for local "prev_insn".
7714 (undo_optional_reloads): Likewise for local "insn".
7715
7716 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
7717 "insn".
7718 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
7719 insns.
7720 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
7721 rtx_insn *.
7722 (spill_pseudos): Likewise for local "insn".
7723 (init_elimination): Likewise.
7724 (process_insn_for_elimination): Likewise for param "insn".
7725
7726 * lra-lives.c (curr_insn): Likewise.;
7727
7728 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
7729 (remove_pseudos): Likewise for param "insn".
7730 (spill_pseudos): Likewise for local "insn".
7731 (lra_final_code_change): Likewise for locals "insn", "curr".
7732
7733 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
7734 (lra_set_insn_deleted): Likewise.
7735 (lra_delete_dead_insn): Likewise, and for local "prev".
7736 (new_insn_reg): Likewise for param "insn".
7737 (lra_set_insn_recog_data): Likewise.
7738 (lra_update_insn_recog_data): Likewise.
7739 (lra_set_used_insn_alternative): Likewise.
7740 (get_insn_freq): Likewise.
7741 (invalidate_insn_data_regno_info): Likewise.
7742 (lra_invalidate_insn_regno_info): Likewise.
7743 (lra_update_insn_regno_info): Likewise.
7744 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
7745 vec<rtx_insn *>.
7746 (lra_push_insn_1): Strengthen param "insn" from rtx to
7747 rtx_insn *.
7748 (lra_push_insn): Likewise.
7749 (lra_push_insn_and_update_insn_regno_info): Likewise.
7750 (lra_pop_insn): Likewise for return type and local "insn".
7751 (push_insns): Likewise for params "from", "to", and local "insn".
7752 (setup_sp_offset): Likewise for params "from", "last" and locals
7753 "before", "insn".
7754 (lra_process_new_insns): Likewise for params "insn", "before",
7755 "after" and local "last".
7756 (struct sloc): Likewise for field "insn".
7757 (lra_former_scratch_operand_p): Likewise for param "insn".
7758 (remove_scratches): Likewise for locals "insn", "last".
7759 (check_rtl): Likewise for local "insn".
7760 (add_auto_inc_notes): Likewise for param "insn".
7761 (update_inc_notes): Likewise for local "insn".
7762 (lra): Replace NULL_RTX with NULL when referring to insn.
7763
7764 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7765
7766 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
7767 to rtx_insn *.
7768 (resolve_reg_notes): Likewise.
7769 (resolve_simple_move): Likewise for return type, param "insn", and
7770 locals "insns", "minsn".
7771 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
7772 (resolve_use): Likewise.
7773 (resolve_debug): Likewise.
7774 (find_decomposable_shift_zext): Likewise.
7775 (resolve_shift_zext): Likewise for return type, param "insn", and
7776 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
7777 (decompose_multiword_subregs): Likewise for local "insn",
7778 "orig_insn", "decomposed_shift", "end".
7779
7780 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7781
7782 * basic-block.h (basic_block split_edge_and_insert): Strengthen
7783 param "insns" from rtx to rtx_insn *.
7784
7785 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
7786 rtx to rtx_insn *.
7787 (struct iv_to_split): Likewise.
7788 (loop_exit_at_end_p): Likewise for local "insn".
7789 (split_edge_and_insert): Likewise for param "insns".
7790 (compare_and_jump_seq): Likewise for return type, param "cinsn",
7791 and locals "seq", "jump".
7792 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
7793 "branch_code"; update invocations of compare_and_jump_seq to
7794 eliminate NULL_RTX in favor of NULL.
7795 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
7796 rtx to rtx_insn *.
7797 (reset_debug_uses_in_loop): Likewise.
7798 (analyze_insn_to_expand_var): Likewise for param "insn".
7799 (analyze_iv_to_split_insn): Likewise.
7800 (analyze_insns_in_loop): Likewise for local "insn".
7801 (insert_base_initialization): Likewise for param
7802 "insn" and local "seq".
7803 (split_iv): Likewise for param "insn" and local "seq".
7804 (expand_var_during_unrolling): Likewise for param "insn".
7805 (insert_var_expansion_initialization): Likewise for local "seq".
7806 (combine_var_copies_in_loop_exit): Likewise.
7807 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
7808 "insn".
7809 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
7810 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
7811 "next".
7812
7813 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7814
7815 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
7816 rtx_insn *.
7817 (iv_analyze_result): Likewise.
7818 (iv_analyze_expr): Likewise.
7819 (biv_p): Likewise.
7820
7821 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
7822 local "def_insn" from rtx to rtx_insn *.
7823 (get_biv_step_1): Likewise for local "insn".
7824 (iv_analyze_expr): Likewise for param "insn".
7825 (iv_analyze_def): Likewise for local "insn".
7826 (iv_analyze_op): Likewise for param "insn".
7827 (iv_analyze): Likewise.
7828 (iv_analyze_result): Likewise.
7829 (biv_p): Likewise.
7830 (suitable_set_for_replacement): Likewise.
7831 (simplify_using_initial_values): Likewise for local "insn".
7832 (iv_number_of_iterations): Likewise for param "insn".
7833 (check_simple_exit): Add checked cast to rtx_insn when invoking
7834 iv_number_of_iterations for now (until get_condition is
7835 strengthened).
7836
7837 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
7838 "insn" from rtx to rtx_insn *.
7839 (analyze_insns_in_loop): Likewise for local "insn".
7840
7841 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7842
7843 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
7844 to rtx_insn *.
7845 (struct invariant): Likewise.
7846 (hash_invariant_expr_1): Likewise for param "insn".
7847 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
7848 (find_exits): Likewise for local "insn".
7849 (create_new_invariant): Likewise for param "insn".
7850 (check_dependencies): Likewise.
7851 (find_invariant_insn): Likewise.
7852 (record_uses): Likewise.
7853 (find_invariants_insn): Likewise.
7854 (find_invariants_bb): Likewise for local "insn".
7855 (get_pressure_class_and_nregs): Likewise for param "insn".
7856 (calculate_loop_reg_pressure): Likewise for local "insn".
7857
7858 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7859
7860 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
7861 to rtx_insn *.
7862 (add_test): Likewise for locals "seq", "jump".
7863 (doloop_modify): Likewise for locals "sequence", "jump_insn".
7864
7865 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7866
7867 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
7868 rtx_insn *.
7869 (rebuild_jump_labels_chain): Likewise for param "chain".
7870
7871 * cfgexpand.c (pass_expand::execute): Add checked cast to
7872 rtx_insn * when calling rebuild_jump_labels_chain in region where
7873 we know e->insns.r is non-NULL.
7874
7875 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
7876 rtx_insn *.
7877 (rebuild_jump_labels): Likewise.
7878 (rebuild_jump_labels_chain): Likewise for param "chain".
7879 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
7880 (init_label_info): Likewise for param "f".
7881 (maybe_propagate_label_ref): Likewise for params "jump_insn",
7882 "prev_nonjump_insn".
7883 (mark_all_labels): Likewise for param "f" and locals "insn",
7884 "prev_nonjump_insn".
7885
7886 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7887
7888 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
7889 from rtx to rtx_insn *insn.
7890 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
7891 (ira_add_allocno_copy): Likewise.
7892 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
7893 rtx to rtx_insn *.
7894 (ira_create_copy): Likewise.
7895 (ira_add_allocno_copy): Likewise.
7896 (create_bb_allocnos): Likewise for local "insn".
7897 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
7898 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
7899 process_regs_for_copy for rtx_insn * param.
7900 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
7901 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
7902 process_regs_for_copy for rtx_insn * param.
7903 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
7904 * ira-costs.c (record_reg_classes): Likewise for param "insn".
7905 (record_operand_costs): Likewise.
7906 (scan_one_insn): Likewise for return type, and for param "insn".
7907 (process_bb_for_costs): Likewise for local "insn".
7908 (process_bb_node_for_hard_reg_moves): Likewise.
7909 * ira-emit.c (struct move): Likewise for field "insn".
7910 (create_move): Eliminate use of NULL_RTX when dealing with an
7911 rtx_insn *.
7912 (emit_move_list): Strengthen return type and locals "result",
7913 "insn" from rtx to rtx_insn *insn.
7914 (emit_moves): Likewise for locals "insns", "tmp".
7915 (ira_emit): Likewise for local "insn".
7916 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
7917 "insn".
7918 (find_call_crossed_cheap_reg): Likewise.
7919 (process_bb_node_lives): Likewise for local "insn".
7920 * ira.c (decrease_live_ranges_number): Likewise.
7921 (compute_regs_asm_clobbered): Likewise.
7922 (build_insn_chain): Likewise.
7923 (find_moveable_pseudos): Likewise, also locals "def_insn",
7924 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
7925 to rtx_insn **. Add a checked cast when assigning from
7926 "closest_use" into closest_uses array in a region where we know
7927 it's a non-NULL insn.
7928 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
7929 to rtx_insn *.
7930 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
7931 "last_interesting_insn", "uin".
7932 (move_unallocated_pseudos): Likewise for locals "def_insn",
7933 "move_insn", "newinsn".
7934
7935 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7936
7937 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
7938 Strengthen locals "done_label", "do_error" from rtx to
7939 rtx_code_label *.
7940 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
7941 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
7942 rtx_code_label *.
7943 (ubsan_expand_si_overflow_neg_check): Likewise for locals
7944 "done_label", "do_error" to rtx_code_label * and local "last" to
7945 rtx_insn *.
7946 (ubsan_expand_si_overflow_mul_check): Likewise for locals
7947 "done_label", "do_error", "large_op0", "small_op0_large_op1",
7948 "one_small_one_large", "both_ops_large", "after_hipart_neg",
7949 "after_lopart_neg", "do_overflow", "hipart_different" to
7950 rtx_code_label * and local "last" to rtx_insn *.
7951
7952 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7953
7954 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
7955 "insn" and "move_insn" from rtx to rtx_insn *.
7956
7957 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7958
7959 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
7960 rtx_insn *.
7961 (cheap_bb_rtx_cost_p): Likewise.
7962 (first_active_insn): Likewise for return type and local "insn".
7963 (last_active_insn): Likewise for return type and locals "insn",
7964 "head".
7965 (struct noce_if_info): Likewise for fields "jump", "insn_a",
7966 "insn_b".
7967 (end_ifcvt_sequence): Likewise for return type and locals "insn",
7968 "seq".
7969 (noce_try_move): Likewise for local "seq".
7970 (noce_try_store_flag): Likewise.
7971 (noce_try_store_flag_constants): Likewise.
7972 (noce_try_addcc): Likewise.
7973 (noce_try_store_flag_mask): Likewise.
7974 (noce_try_cmove): Likewise.
7975 (noce_try_minmax): Likewise.
7976 (noce_try_abs): Likewise.
7977 (noce_try_sign_mask): Likewise.
7978 (noce_try_bitop): Likewise.
7979 (noce_can_store_speculate_p): Likewise for local "insn".
7980 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
7981 seq".
7982 (check_cond_move_block): Likewise for local "insn".
7983 (cond_move_convert_if_block): Likewise.
7984 (cond_move_process_if_block): Likewise for locals "seq",
7985 "loc_insn".
7986 (noce_find_if_block): Likewise for local "jump".
7987 (merge_if_block): Likewise for local "last".
7988 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
7989 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
7990 (block_has_only_trap): Likewise for return type and local "trap".
7991 (find_if_case_1): Likewise for local "jump".
7992 (dead_or_predicable): Likewise for locals "head", "end", "jump",
7993 "insn".
7994
7995 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7996
7997 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
7998 "last_insn", "loop_end" from rtx to rtx_insn *.
7999
8000 * hw-doloop.c (scan_loop): Likewise for local "insn".
8001 (discover_loop): Likewise for param "tail_insn".
8002 (discover_loops): Likewise for local "tail".
8003
8004 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
8005 cast to rtx_insn * when assigning from an rtx local to a
8006 hwloop_info's "last_insn" field.
8007
8008 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8009
8010 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
8011 (add_delay_dependencies): Strengthen local "pro" from rtx to
8012 rtx_insn *.
8013 (recompute_todo_spec): Likewise.
8014 (dep_cost_1): Likewise for locals "insn", "used".
8015 (schedule_insn): Likewise for local "dbg".
8016 (schedule_insn): Likewise for locals "pro", "next".
8017 (unschedule_insns_until): Likewise for local "con".
8018 (restore_pattern): Likewise for local "next".
8019 (estimate_insn_tick): Likewise for local "pro".
8020 (resolve_dependencies): Likewise for local "next".
8021 (fix_inter_tick): Likewise.
8022 (fix_tick_ready): Likewise for local "pro".
8023 (add_to_speculative_block): Likewise for locals "check", "twin",
8024 "pro".
8025 (sched_extend_bb): Likewise for locals "end", "insn".
8026 (init_before_recovery): Likewise for local "x".
8027 (sched_create_recovery_block): Likewise for local "barrier".
8028 (create_check_block_twin): Likewise for local "pro".
8029 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
8030 "consumer".
8031 (unlink_bb_notes): Update for change to type of bb_header.
8032 Strengthen locals "prev", "label", "note", "next" from rtx to
8033 rtx_insn *.
8034 (clear_priorities): Likewise for local "pro".
8035
8036 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8037
8038 * gcse.c (struct occr): Strengthen field "insn" from rtx to
8039 rtx_insn *.
8040 (test_insn): Likewise for this global.
8041 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
8042 const rtx_insn *.
8043 (oprs_anticipatable_p): Likewise.
8044 (oprs_available_p): Likewise.
8045 (insert_expr_in_table): Strengthen param "insn" from rtx to
8046 rtx_insn *.
8047 (hash_scan_set): Likewise.
8048 (hash_scan_clobber): Likewise.
8049 (hash_scan_call): Likewise.
8050 (hash_scan_insn): Likewise.
8051 (compute_hash_table_work): Likewise for local "insn".
8052 (process_insert_insn): Likewise for return type and local "pat".
8053 (insert_insn_end_basic_block): Likewise for locals "new_insn",
8054 "pat", "pat_end", "maybe_cc0_setter".
8055 (pre_edge_insert): Likewise for local "insn".
8056 (pre_insert_copy_insn): Likewise for param "insn".
8057 (pre_insert_copies): Likewise for local "insn".
8058 (struct set_data): Likewise for field "insn".
8059 (single_set_gcse): Likewise for param "insn".
8060 (gcse_emit_move_after): Likewise.
8061 (pre_delete): Likewise for local "insn".
8062 (update_bb_reg_pressure): Likewise for param "from" and local
8063 "insn".
8064 (should_hoist_expr_to_dom): Likewise for param "from".
8065 (hoist_code): Likewise for local "insn".
8066 (get_pressure_class_and_nregs): Likewise for param "insn".
8067 (calculate_bb_reg_pressure): Likewise for local "insn".
8068 (compute_ld_motion_mems): Likewise.
8069
8070 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8071
8072 * genpeep.c (main): Rename param back from "uncast_ins1" to
8073 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
8074 checked cast.
8075
8076 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
8077
8078 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
8079
8080 PR target/62195
8081 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
8082 documentation to state it is only for VSX operations.
8083
8084 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
8085 constraint only active if VSX.
8086
8087 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
8088 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
8089 (lfiwzx): Likewise.
8090
8091 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8092
8093 * fwprop.c (single_def_use_dom_walker::before_dom_children):
8094 Strengthen local "insn" from rtx to rtx_insn *.
8095 (use_killed_between): Likewise for param "target_insn".
8096 (all_uses_available_at): Likewise for param "target_insn" and
8097 local "next".
8098 (update_df_init): Likewise for params "def_insn", "insn".
8099 (update_df): Likewise for param "insn".
8100 (try_fwprop_subst): Likewise for param "def_insn" and local
8101 "insn".
8102 (free_load_extend): Likewise for param "insn".
8103 (forward_propagate_subreg): Likewise for param "def_insn" and
8104 local "use_insn".
8105 (forward_propagate_asm): Likewise for param "def_insn" and local
8106 "use_insn".
8107 (forward_propagate_and_simplify): Likewise for param "def_insn"
8108 and local "use_insn".
8109 (forward_propagate_into): Likewise for locals "def_insn" and
8110 "use_insn".
8111
8112 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8113
8114 * function.c (emit_initial_value_sets): Strengthen local "seq"
8115 from rtx to rtx_insn *.
8116 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
8117 local "seq".
8118 (instantiate_virtual_regs): Likewise for local "insn".
8119 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
8120 (reorder_blocks_1): Likewise for param "insns" and local "insn".
8121 (expand_function_end): Likewise for locals "insn" and "seq".
8122 (epilogue_done): Likewise for local "insn".
8123 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
8124 "last", "trial".
8125 (reposition_prologue_and_epilogue_notes): Likewise for locals
8126 "insn", "last", "note", "first".
8127 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
8128 (pass_match_asm_constraints::execute): Likewise for local "insn".
8129
8130 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8131
8132 * output.h (final_scan_insn): Strengthen return type from rtx to
8133 rtx_insn *.
8134 (final_forward_branch_p): Likewise for param.
8135 (current_output_insn): Likewise for this global.
8136
8137 * final.c (rtx debug_insn): Likewise for this variable.
8138 (current_output_insn): Likewise.
8139 (get_attr_length_1): Rename param "insn" to "uncast_insn",
8140 adding "insn" back in as an rtx_insn * with a checked cast, so
8141 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
8142 first param.
8143 (compute_alignments): Strengthen local "label" from rtx to
8144 rtx_insn *.
8145 (shorten_branches): Rename param from "first" to "uncast_first",
8146 introducing a new local rtx_insn * "first" using a checked cast to
8147 effectively strengthen "first" from rtx to rtx_insn * without
8148 affecting the type signature. Strengthen locals "insn", "seq",
8149 "next", "label" from rtx to rtx_insn *.
8150 (change_scope): Strengthen param "orig_insn" and local "insn" from
8151 rtx to rtx_insn *.
8152 (final_start_function): Rename param from "first" to "uncast_first",
8153 introducing a new local rtx_insn * "first" using a checked cast to
8154 effectively strengthen "first" from rtx to rtx_insn * without
8155 affecting the type signature. Strengthen local "insn" from rtx to
8156 rtx_insn *.
8157 (dump_basic_block_info): Strengthen param "insn" from rtx to
8158 rtx_insn *.
8159 (final): Rename param from "first" to "uncast_first",
8160 introducing a new local rtx_insn * "first" using a checked cast to
8161 effectively strengthen "first" from rtx to rtx_insn * without
8162 affecting the type signature. Strengthen locals "insn", "next"
8163 from rtx to rtx_insn *.
8164 (output_alternate_entry_point): Strengthen param "insn" from rtx to
8165 rtx_insn *.
8166 (call_from_call_insn): Strengthen param "insn" from rtx to
8167 rtx_call_insn *.
8168 (final_scan_insn): Rename param from "insn" to "uncast_insn",
8169 introducing a new local rtx_insn * "insn" using a checked cast to
8170 effectively strengthen "insn" from rtx to rtx_insn * without
8171 affecting the type signature. Strengthen return type and locals
8172 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
8173 now-redundant checked cast to rtx_insn * from both invocations of
8174 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
8175 introducing a local "call_insn" for use when invoking
8176 call_from_call_insn.
8177 (notice_source_line): Strengthen param "insn" from rtx to
8178 rtx_insn *.
8179 (leaf_function_p): Likewise for local "insn".
8180 (final_forward_branch_p): Likewise.
8181 (leaf_renumber_regs): Likewise for param "first".
8182 (rest_of_clean_state): Likewise for locals "insn" and "next".
8183 (self_recursive_call_p): Likewise for param "insn".
8184 (collect_fn_hard_reg_usage): Likewise for local "insn".
8185 (get_call_fndecl): Likewise for param "insn".
8186 (get_call_cgraph_rtl_info): Likewise.
8187 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
8188 introducing a new local rtx_insn * "insn" using a checked cast to
8189 effectively strengthen "insn" from rtx to rtx_insn * without
8190 affecting the type signature.
8191
8192 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
8193 cast when assigning from param "insn" to current_output_insn.
8194 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
8195 so that we can assign it back to current_output_insn.
8196
8197 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8198
8199 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
8200 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
8201 atmxt540s and atmxt540sreva devices.
8202 * config/avr/avr-tables.opt: Regenerate.
8203 * config/avr/t-multilib: Regenerate.
8204 * doc/avr-mmcu.texi: Regenerate.
8205
8206 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8207
8208 * expr.c (convert_move): Strengthen local "insns" from rtx to
8209 rtx_insn *.
8210 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
8211 "top_label" from rtx to rtx_code_label *.
8212 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
8213 rtx_insn *.
8214 (emit_single_push_insn): Likewise for locals "prev", "last".
8215 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
8216 to rtx_code_label *.
8217 (store_constructor): Likewise for locals "loop_start", "loop_end".
8218 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
8219 rtx_insn *.
8220 (expand_expr_real_2): Likewise.
8221 (expand_expr_real_1): Strengthen local "label" from rtx to
8222 rtx_code_label *.
8223
8224 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8225
8226 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
8227 from rtx to rtx_insn *.
8228 (store_bit_field_1): Likewise.
8229 (extract_bit_field_1): Likewise.
8230 (expand_mult_const): Likewise for local "insns".
8231 (expmed_mult_highpart): Strengthen local "label" from rtx to
8232 rtx_code_label *.
8233 (expand_smod_pow2): Likewise.
8234 (expand_sdiv_pow2): Likewise.
8235 (expand_divmod): Strengthen locals "last", "insn" from rtx to
8236 rtx_insn *. Strengthen locals "label", "label1", "label2",
8237 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
8238 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
8239 (emit_store_flag): Likewise.
8240 (emit_store_flag_force): Strengthen local "label" from rtx to
8241 rtx_code_label *.
8242 (do_cmp_and_jump): Likewise for param "label".
8243
8244 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8245
8246 * explow.c (force_reg): Strengthen local "insn" from rtx to
8247 rtx_insn *.
8248 (adjust_stack_1): Likewise.
8249 (allocate_dynamic_stack_space): Likewise. Strengthen locals
8250 "final_label", "available_label", "space_available" from rtx to
8251 rtx_code_label *.
8252 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
8253 (anti_adjust_stack_and_probe): Likewise.
8254
8255 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8256
8257 * except.h (sjlj_emit_function_exit_after): Strengthen param
8258 "after" from rtx to rtx_insn *. This is only called with
8259 result of get_last_insn (in function.c) so type-change should be
8260 self-contained.
8261
8262 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
8263 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
8264 to rtx_insn *. These fields are only used from except.c so this
8265 type-change should be self-contained to this patch.
8266
8267 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
8268 local "last" from rtx to rtx_insn *.
8269 (dw2_build_landing_pads): Likewise for local "seq".
8270 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
8271 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
8272 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
8273 rtx to rtx_insn *.
8274 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
8275 to rtx_insn *.
8276 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
8277 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
8278 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
8279 referring to an insn. Strengthen local "dispatch_label" from
8280 rtx to rtx_code_label *.
8281 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
8282 rtx_insn *.
8283 (expand_eh_return): Strengthen local "around_label" from
8284 rtx to rtx_code_label *.
8285 (convert_to_eh_region_ranges): Strengthen locals "iter",
8286 "last_action_insn", "first_no_action_insn",
8287 "first_no_action_insn_before_switch",
8288 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
8289
8290 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8291
8292 * dwarf2out.c (last_var_location_insn): Strengthen this variable
8293 from rtx to rtx_insn *.
8294 (cached_next_real_insn): Likewise.
8295 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
8296 working with insns.
8297 (dwarf2out_var_location): Strengthen locals "next_real",
8298 "next_note", "expected_next_loc_note", "last_start", "insn" from
8299 rtx to rtx_insn *.
8300
8301 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8302
8303 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
8304 from rtx to rtx_insn *.
8305 (create_pseudo_cfg): Likewise for local "insn".
8306
8307 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8308
8309 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
8310 from rtx to rtx_insn *.
8311 (df_bb_regno_last_def_find): Likewise.
8312
8313 * df-problems.c (df_rd_bb_local_compute): Likewise.
8314 (df_lr_bb_local_compute): Likewise.
8315 (df_live_bb_local_compute): Likewise.
8316 (df_chain_remove_problem): Likewise.
8317 (df_chain_create_bb): Likewise.
8318 (df_word_lr_bb_local_compute): Likewise.
8319 (df_remove_dead_eq_notes): Likewise for param "insn".
8320 (df_note_bb_compute): Likewise for local "insn".
8321 (simulate_backwards_to_point): Likewise.
8322 (df_md_bb_local_compute): Likewise.
8323
8324 * df-scan.c (df_scan_free_bb_info): Likewise.
8325 (df_scan_start_dump): Likewise.
8326 (df_scan_start_block): Likewise.
8327 (df_install_ref_incremental): Likewise for local "insn".
8328 (df_insn_rescan_all): Likewise.
8329 (df_reorganize_refs_by_reg_by_insn): Likewise.
8330 (df_reorganize_refs_by_insn_bb): Likewise.
8331 (df_recompute_luids): Likewise.
8332 (df_bb_refs_record): Likewise.
8333 (df_update_entry_exit_and_calls): Likewise.
8334 (df_bb_verify): Likewise.
8335
8336 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8337
8338 * ddg.h (struct ddg_node): Strengthen fields "insn" and
8339 "first_note" from rtx to rtx_insn *.
8340 (get_node_of_insn): Likewise for param 2 "insn".
8341 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
8342
8343 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
8344 rtx_insn *.
8345 (mem_write_insn_p): Likewise.
8346 (mem_access_insn_p): Likewise.
8347 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
8348 (def_has_ccmode_p): Likewise for param "insn".
8349 (add_cross_iteration_register_deps): Likewise for locals
8350 "def_insn" and "use_insn".
8351 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
8352 (build_intra_loop_deps): Likewise for local "src_insn".
8353 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
8354 to rtx_insn *.
8355 (get_node_of_insn): Likewise for param "insn".
8356
8357 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8358
8359 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
8360 (deletable_insn_p): Strengthen param "insn" from rtx to
8361 rtx_insn *. Add checked cast to rtx_call_insn when invoking
8362 find_call_stack_args, since this is guarded by CALL_P (insn).
8363 (marked_insn_p): Strengthen param "insn" from rtx to
8364 rtx_insn *.
8365 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
8366 invoking find_call_stack_args, since this is guarded by
8367 CALL_P (insn).
8368 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
8369 rtx_insn *; we know this is an insn since this was called by
8370 mark_nonreg_stores.
8371 (mark_nonreg_stores_2): Likewise.
8372 (mark_nonreg_stores): Strengthen param "insn" from rtx to
8373 rtx_insn *.
8374 (find_call_stack_args): Strengthen param "call_insn" from rtx to
8375 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
8376 to rtx_insn *.
8377 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
8378 from rtx to rtx_insn *.
8379 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
8380 "next", "ref_insn".
8381 (delete_unmarked_insns): Likewise for locals "insn", "next".
8382 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
8383 (mark_reg_dependencies): Likewise for param "insn".
8384 (rest_of_handle_ud_dce): Likewise for local "insn".
8385 (word_dce_process_block): Likewise.
8386 (dce_process_block): Likewise.
8387
8388 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8389
8390 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
8391 from rtx to rtx_insn *.
8392 (struct change_cc_mode_args): Likewise for field "insn".
8393 (this_insn): Strengthen from rtx to rtx_insn *.
8394 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
8395 with insn.
8396 (validate_canon_reg): Strengthen param "insn" from rtx to
8397 rtx_insn *.
8398 (canon_reg): Likewise.
8399 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
8400 dealing with insn.
8401 (record_jump_equiv): Strengthen param "insn" from rtx to
8402 rtx_insn *.
8403 (try_back_substitute_reg): Likewise, also for locals "prev",
8404 "bb_head".
8405 (find_sets_in_insn): Likewise for param "insn".
8406 (canonicalize_insn): Likewise.
8407 (cse_insn): Likewise. Add a checked cast.
8408 (invalidate_from_clobbers): Likewise for param "insn".
8409 (invalidate_from_sets_and_clobbers): Likewise.
8410 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
8411 dealing with insn.
8412 (cse_prescan_path): Strengthen local "insn" from rtx to
8413 rtx_insn *.
8414 (cse_extended_basic_block): Likewise for locals "insn" and
8415 "prev_insn".
8416 (cse_main): Likewise for param "f".
8417 (check_for_label_ref): Likewise for local "insn".
8418 (set_live_p): Likewise for second param ("insn").
8419 (insn_live_p): Likewise for first param ("insn") and for local
8420 "next".
8421 (cse_change_cc_mode_insn): Likewise for first param "insn".
8422 (cse_change_cc_mode_insns): Likewise for first and second params
8423 "start" and "end".
8424 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
8425 and "end".
8426 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
8427 "cc_src_insn".
8428
8429 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8430 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8431 Anna Tikhonova <anna.tikhonova@intel.com>
8432 Ilya Tocar <ilya.tocar@intel.com>
8433 Andrey Turetskiy <andrey.turetskiy@intel.com>
8434 Ilya Verbin <ilya.verbin@intel.com>
8435 Kirill Yukhin <kirill.yukhin@intel.com>
8436 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8437
8438 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
8439 New.
8440 * config/i386/sse.md
8441 (define_mode_iterator VI248_AVX2): Delete.
8442 (define_mode_iterator VI2_AVX2_AVX512BW): New.
8443 (define_mode_iterator VI48_AVX2): Ditto.
8444 (define_insn <shift_insn><mode>3): Delete.
8445 (define_insn "<shift_insn><mode>3<mask_name>" with
8446 VI2_AVX2_AVX512BW): New.
8447 (define_insn "<shift_insn><mode>3<mask_name>" with
8448 VI48_AVX2): Ditto.
8449
8450 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8451 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8452 Anna Tikhonova <anna.tikhonova@intel.com>
8453 Ilya Tocar <ilya.tocar@intel.com>
8454 Andrey Turetskiy <andrey.turetskiy@intel.com>
8455 Ilya Verbin <ilya.verbin@intel.com>
8456 Kirill Yukhin <kirill.yukhin@intel.com>
8457 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8458
8459 * config/i386/sse.md
8460 (define_mode_iterator VI4F_BRCST32x2): New.
8461 (define_mode_attr 64x2_mode): Ditto.
8462 (define_mode_attr 32x2mode): Ditto.
8463 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
8464 with VI4F_BRCST32x2): Ditto.
8465 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
8466 with V16FI mode iterator): Ditto.
8467 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
8468 with V16FI): Ditto.
8469 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
8470 with VI8F_BRCST64x2): Ditto.
8471
8472 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8473 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8474 Anna Tikhonova <anna.tikhonova@intel.com>
8475 Ilya Tocar <ilya.tocar@intel.com>
8476 Andrey Turetskiy <andrey.turetskiy@intel.com>
8477 Ilya Verbin <ilya.verbin@intel.com>
8478 Kirill Yukhin <kirill.yukhin@intel.com>
8479 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8480
8481 * config/i386/sse.md
8482 (define_mode_iterator VI8_AVX512VL): New.
8483 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
8484
8485 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
8486
8487 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
8488 (define_mode_iterator V48_AVX512VL): New.
8489 (define_mode_iterator V12_AVX512VL): Ditto.
8490 (define_insn <avx512>_load<mode>_mask): Split into two similar
8491 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
8492 Refactor output template.
8493 (define_insn "<avx512>_store<mode>_mask"): Ditto.
8494
8495 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8496
8497 * cprop.c (struct occr): Strengthen field "insn" from rtx to
8498 rtx_insn *.
8499 (reg_available_p): Likewise for param "insn".
8500 (insert_set_in_table): Likewise.
8501 (hash_scan_set): Likewise.
8502 (hash_scan_insn): Likewise.
8503 (make_set_regs_unavailable): Likewise.
8504 (compute_hash_table_work): Likewise for local "insn".
8505 (reg_not_set_p): Strengthen param "insn" from const_rtx to
8506 const rtx_insn *.
8507 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
8508 (try_replace_reg): Likewise.
8509 (find_avail_set): Likewise.
8510 (cprop_jump): Likewise for params "setcc", "jump".
8511 (constprop_register): Likewise for param "insn".
8512 (cprop_insn): Likewise.
8513 (do_local_cprop): Likewise.
8514 (local_cprop_pass): Likewise for local "insn".
8515 (bypass_block): Likewise for params "setcc" and "jump".
8516 (bypass_conditional_jumps): Likewise for locals "setcc" and
8517 "insn".
8518 (one_cprop_pass): Likewise for local "insn".
8519
8520 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8521
8522 * compare-elim.c (struct comparison_use): Strengthen field "insn"
8523 from rtx to rtx_insn *.
8524 (struct comparison): Likewise, also for field "prev_clobber".
8525 (conforming_compare): Likewise for param "insn".
8526 (arithmetic_flags_clobber_p): Likewise.
8527 (find_flags_uses_in_insn): Likewise.
8528 (find_comparison_dom_walker::before_dom_children): Likewise for
8529 locals "insn", "next", "last_clobber".
8530 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
8531
8532 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8533
8534 * combine-stack-adj.c (struct csa_reflist): Strengthen field
8535 "insn" from rtx to rtx_insn *.
8536 (single_set_for_csa): Likewise for param "insn".
8537 (record_one_stack_ref): Likewise.
8538 (try_apply_stack_adjustment): Likewise.
8539 (struct record_stack_refs_data): Likewise for field "insn".
8540 (maybe_move_args_size_note): Likewise for params "last" and "insn".
8541 (prev_active_insn_bb): Likewise for return type and param "insn".
8542 (next_active_insn_bb): Likewise.
8543 (force_move_args_size_note): Likewise for params "prev" and "last"
8544 and locals "test", "next_candidate", "prev_candidate".
8545 (combine_stack_adjustments_for_block): Strengthen locals
8546 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
8547 rtx_insn *.
8548
8549 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8550
8551 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
8552 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
8553 (subst_insn): Likewise for this variable.
8554 (added_links_insn): Likewise.
8555 (struct insn_link): Likewise for field "insn".
8556 (alloc_insn_link): Likewise for param "insn".
8557 (struct undobuf): Likewise for field "other_insn".
8558 (find_single_use): Likewise for param "insn" and local "next".
8559 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
8560 (delete_noop_moves): Likewise for locals "insn", "next".
8561 (create_log_links): Likewise for locals "insn", "use_insn".
8562 Strengthen local "next_use" from rtx * to rtx_insn **.
8563 (insn_a_feeds_b): Likewise for params "a", "b".
8564 (combine_instructions): Likewise for param "f" and locals "insn",
8565 "next", "prev", "first", "last_combined_insn", "link", "link1",
8566 "temp". Replace use of NULL_RTX with NULL when referring to
8567 insns.
8568 (setup_incoming_promotions): Likewise for param "first"
8569 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
8570 (can_combine_p): Likewise for params "insn", "i3", "pred",
8571 "pred2", "succ", "succ2" and for local "p".
8572 (combinable_i3pat): Likewise for param "i3".
8573 (cant_combine_insn_p): Likewise for param "insn".
8574 (likely_spilled_retval_p): Likewise.
8575 (adjust_for_new_dest): Likewise.
8576 (update_cfg_for_uncondjump): Likewise, also for local "insn".
8577 (try_combine): Likewise for return type and for params "i3", "i2",
8578 "i1", "i0", "last_combined_insn", and for locals "insn",
8579 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
8580 "i0_insn". Eliminate local "tem" in favor of new locals
8581 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
8582 checked cast for now to rtx_insn * on the return type of
8583 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
8584 insns.
8585 (find_split_point): Strengthen param "insn" from rtx to
8586 rtx_insn *.
8587 (simplify_set): Likewise for local "other_insn".
8588 (recog_for_combine): Likewise for param "insn".
8589 (record_value_for_reg): Likewise.
8590 (record_dead_and_set_regs_1): Likewise for local
8591 "record_dead_insn".
8592 (record_dead_and_set_regs): Likewise for param "insn".
8593 (record_promoted_value): Likewise.
8594 (check_promoted_subreg): Likewise.
8595 (get_last_value_validate): Likewise.
8596 (reg_dead_at_p): Likewise.
8597 (move_deaths): Likewise for param "to_insn".
8598 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
8599 and locals "place", "place2", "cc0_setter". Eliminate local "tem
8600 in favor of new locals "tem_note" and "tem_insn", the latter being
8601 an rtx_insn *.
8602 (distribute_links): Strengthen locals "place", "insn" from rtx to
8603 rtx_insn *.
8604
8605 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8606
8607 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
8608 than a const_rtx.
8609 (can_delete_label_p): Require a const rtx_code_label * rather than
8610 a const_rtx.
8611 (delete_insn): Add checked cast to rtx_code_label * when we know
8612 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
8613 rtx to rtx_insn *.
8614 (delete_insn_chain): Strengthen locals "prev" and "current" from
8615 rtx to rtx_insn *. Add a checked cast when assigning from
8616 "finish" (strengthening the params will come later). Add a
8617 checked cast to rtx_note * in region where we know
8618 NOTE_P (current).
8619 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
8620 rtx_insn *.
8621 (compute_bb_for_insn): Likewise.
8622 (free_bb_for_insn): Likewise for local "insn".
8623 (compute_bb_for_insn): Likewise.
8624 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
8625 local "insn" from rtx to rtx_insn *
8626 (flow_active_insn_p): Require a const rtx_insn * rather than a
8627 const_rtx.
8628 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
8629 rtx_insn *.
8630 (can_fallthru): Likewise for locals "insn" and "insn2".
8631 (bb_note): Likewise for local "note".
8632 (first_insn_after_basic_block_note): Likewise for local "note" and
8633 for return type.
8634 (rtl_split_block): Likewise for locals "insn" and "next".
8635 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
8636 "end".
8637 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
8638 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
8639 "prev", "tmp".
8640 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
8641 them), "kill_from", "barrier", "new_insn".
8642 (patch_jump_insn): Likewise for params "insn", "old_label".
8643 (redirect_branch_edge): Likewise for locals "old_label", "insn".
8644 (force_nonfallthru_and_redirect): Likewise for locals "insn",
8645 "old_label", "new_label".
8646 (rtl_tidy_fallthru_edge): Likewise for local "q".
8647 (rtl_split_edge): Likewise for locals "before", "last".
8648 (commit_one_edge_insertion): Likewise for locals "before",
8649 "after", "insns", "tmp", "last", adding a checked cast where
8650 currently necessary.
8651 (commit_edge_insertions): Likewise.
8652 (rtl_dump_bb): Likewise for locals "insn", "last".
8653 (print_rtl_with_bb): Likewise for local "x".
8654 (rtl_verify_bb_insns): Likewise for local "x".
8655 (rtl_verify_bb_pointers): Likewise for local "insn".
8656 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
8657 "head", "end".
8658 (rtl_verify_fallthru): Likewise for local "insn".
8659 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
8660 (purge_dead_edges): Likewise for local "insn".
8661 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
8662 (skip_insns_after_block): Likewise for return type and for locals
8663 "insn", "last_insn", "next_head", "prev".
8664 (record_effective_endpoints): Likewise for locals "next_insn",
8665 "insn", "end".
8666 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
8667 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
8668 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
8669 (duplicate_insn_chain): For now, add checked cast from rtx to
8670 rtx_insn * when returning insn.
8671 (cfg_layout_duplicate_bb): Likewise for local "insn".
8672 (cfg_layout_delete_block): Likewise for locals "insn", "next",
8673 "prev", "remaints".
8674 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
8675 (rtl_block_empty_p): Likewise.
8676 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
8677 "split_point", "last".
8678 (rtl_block_ends_with_call_p): Likewise for local "insn".
8679 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
8680 const rtx_insn *.
8681 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
8682 "split_at_insn" from rtx to rtx_insn *.
8683 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
8684 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
8685 to const rtx_insn *.
8686 (rtl_account_profile_record): Likewise.
8687
8688 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8689
8690 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
8691 rtx to rtx_insn *.
8692 (average_num_loop_insns): Likewise.
8693 (init_set_costs): Likewise for local "seq".
8694 (seq_cost): Likewise for param "seq", from const_rtx to const
8695 rtx_insn *.
8696
8697 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8698
8699 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
8700 rtx to rtx_insn *.
8701
8702 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8703
8704 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
8705 "f1" and "f2" from rtx * to rtx_insn **.
8706 (flow_find_head_matching_sequence): Likewise.
8707
8708 * cfgcleanup.c (try_simplify_condjump): Strengthen local
8709 "cbranch_insn" from rtx to rtx_insn *.
8710 (thread_jump): Likewise for local "insn".
8711 (try_forward_edges): Likewise for local "last".
8712 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
8713 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
8714 "real_b_end".
8715 (can_replace_by): Likewise for params "i1", "i2".
8716 (old_insns_match_p): Likewise.
8717 (merge_notes): Likewise.
8718 (walk_to_nondebug_insn): Likewise for param "i1".
8719 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
8720 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
8721 "afterlast1", "afterlast2" from rtx to rtx_insn *.
8722 (flow_find_head_matching_sequence): Strengthen params "f1" and
8723 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
8724 "last1", "last2", "beforelast1", "beforelast2" from rtx to
8725 rtx_insn *.
8726 (outgoing_edges_match): Likewise for locals "last1", "last2".
8727 (try_crossjump_to_edge): Likewise for local "insn".
8728 Replace call to for_each_rtx with for_each_rtx_in_insn.
8729
8730 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
8731 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
8732 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
8733 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
8734 (try_optimize_cfg): Strengthen local "last" from rtx to
8735 rtx_insn *.
8736 (delete_dead_jumptables): Likewise for locals "insn", "next",
8737 "label".
8738
8739 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
8740 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
8741 "rtx else_first_tail", to reflect the basic-block.h changes above.
8742
8743 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8744
8745 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
8746 rtx_insn *.
8747 (purge_dead_tablejump_edges): Likewise.
8748 (find_bb_boundaries): Likewise for locals "insn", "end",
8749 "flow_transfer_insn".
8750
8751 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8752
8753 * caller-save.c (save_call_clobbered_regs): Strengthen locals
8754 "ins" and "prev" from rtx to rtx_insn *.
8755
8756 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8757
8758 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
8759 rtx_insn *.
8760 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
8761 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
8762 "scan_start".
8763 (load_register_parameters): Likewise for local "before_arg".
8764 (check_sibcall_argument_overlap): Likewise for param "insn".
8765 (expand_call): Likewise for locals "normal_call_insns",
8766 "tail_call_insns", "insns", "before_call", "after_args",
8767 "before_arg", "last", "prev". Strengthen one of the "last" from
8768 rtx to rtx_call_insn *.
8769 (fixup_tail_calls): Strengthen local "insn" from rtx to
8770 rtx_insn *.
8771 (emit_library_call_value_1): Likewise for locals "before_call" and
8772 "last".
8773
8774 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8775
8776 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
8777 and "last" from rtx to rtx_insn *.
8778 (expand_builtin_nonlocal_goto): Likewise for local "insn".
8779 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
8780 rtx_call_insn *.
8781 (expand_errno_check): Strengthen local "lab" from rtx to
8782 rtx_code_label *.
8783 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
8784 rtx_insn *.
8785 (expand_builtin_mathfn_2): Likewise.
8786 (expand_builtin_mathfn_ternary): Likewise.
8787 (expand_builtin_mathfn_3): Likewise.
8788 (expand_builtin_interclass_mathfn): Likewise for local "last".
8789 (expand_builtin_int_roundingfn): Likewise for local "insns".
8790 (expand_builtin_int_roundingfn_2): Likewise.
8791 (expand_builtin_strlen): Likewise for local "before_strlen".
8792 (expand_builtin_strncmp): Likewise for local "seq".
8793 (expand_builtin_signbit): Likewise for local "last".
8794 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
8795 from rtx to rtx_code_label *.
8796 (expand_stack_restore): Strengthen local "prev" from rtx to
8797 rtx_insn *.
8798
8799 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8800
8801 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
8802 to rtx_insn *.
8803 (struct btr_def_s): Likewise.
8804 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
8805 const rtx_insn *.
8806 (add_btr_def): Likewise.
8807 (new_btr_user): Likewise.
8808 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
8809 rtx to rtx_insn *.
8810 (link_btr_uses): Likewise.
8811 (move_btr_def): Likewise for locals "insp", "old_insn",
8812 "new_insn". Add checked cast to rtx_insn * for now on result of
8813 gen_move_insn.
8814 (can_move_up): Strengthen param "insn" from const_rtx to
8815 const rtx_insn *.
8816
8817 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8818
8819 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
8820 rtx_insn *.
8821 (get_uncond_jump_length): Likewise for locals "label", "jump".
8822 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
8823 "jump", "insn".
8824 (add_labels_and_missing_jumps): Likewise for local "new_jump".
8825 (fix_up_fall_thru_edges): Likewise for local "old_jump".
8826 (find_jump_block): Likewise for local "insn".
8827 (fix_crossing_conditional_branches): Likewise for locals
8828 "old_jump", "new_jump".
8829 (fix_crossing_unconditional_branches): Likewise for locals
8830 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
8831 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
8832
8833 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8834
8835 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
8836 rtx to rtx_insn *.
8837 (struct mem_insn): Likewise for field "insn".
8838 (reg_next_use): Strengthen from rtx * to rtx_insn **.
8839 (reg_next_inc_use): Likewise.
8840 (reg_next_def): Likewise.
8841 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
8842 from rtx to rtx_insn *.
8843 (move_insn_before): Likewise for param "next_insn" and local "insns".
8844 (attempt_change): Likewise for local "mov_insn".
8845 (try_merge): Likewise for param "last_insn".
8846 (get_next_ref): Likewise for return type and local "insn".
8847 Strengthen param "next_array" from rtx * to rtx_insn **.
8848 (parse_add_or_inc): Strengthen param "insn" from rtx to
8849 rtx_insn *.
8850 (find_inc): Likewise for locals "insn" and "other_insn" (three of
8851 the latter).
8852 (merge_in_block): Likewise for locals "insn", "curr",
8853 "other_insn".
8854 (pass_inc_dec::execute): Update allocations of the arrays to
8855 reflect the stronger types.
8856
8857 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8858
8859 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
8860 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
8861 from rtx to rtx_code_label *.
8862
8863 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8864
8865 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
8866 to rtx_insn *.
8867
8868 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8869
8870 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
8871 generated a warning and prevented bootstrapping the compiler.
8872
8873 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8874
8875 * rtl.h (delete_related_insns): Strengthen return type from rtx to
8876 rtx_insn *.
8877
8878 * jump.c (delete_related_insns): Likewise, also for locals "next"
8879 and "prev".
8880
8881 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8882
8883 * genautomata.c (output_internal_insn_latency_func): When writing
8884 the function "internal_insn_latency" to insn-automata.c,
8885 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
8886 allowing the optional guard function of (define_bypass) clauses to
8887 expect a pair of rtx_insn *, rather than a pair of rtx.
8888 (output_insn_latency_func): When writing the function
8889 "insn_latency", add an "uncast_" prefix to params "insn" and
8890 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
8891 using checked casts from the params, thus enabling the above
8892 change to the generated "internal_insn_latency" function.
8893
8894 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
8895
8896 PR tree-optimization/62091
8897 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
8898 handle correctly arrays.
8899 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
8900 inheritance binfos.
8901 (record_known_type): Walk into inner type.
8902 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
8903 condition on no type changes.
8904
8905 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8906
8907 * genattrtab.c (write_attr_get): Within the generated get_attr_
8908 functions, rename param "insn" to "uncast_insn" and reintroduce
8909 "insn" as an local rtx_insn * using a checked cast, so that "insn"
8910 is an rtx_insn * within insn-attrtab.c
8911
8912 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8913
8914 * output.h (peephole): Strengthen return type from rtx to
8915 rtx_insn *.
8916 * rtl.h (delete_for_peephole): Likewise for both params.
8917 * genpeep.c (main): In generated "peephole" function, strengthen
8918 return type and local "insn" from rtx to rtx_insn *. For now,
8919 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
8920 rtx_insn *, with a checked cast.
8921 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
8922 locals "insn", "next", "prev" from rtx to rtx_insn *.
8923
8924 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
8925
8926 PR tree-optimization/62112
8927 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
8928 * gimple-iterator.h (gsi_replace): Return bool.
8929 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
8930 moved from ref_may_alias_global_p.
8931 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
8932 New overloads.
8933 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
8934 (stmt_kills_ref_p_1): Rename...
8935 (stmt_kills_ref_p): ... to this.
8936 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
8937 stmt_kills_ref_p): Declare.
8938 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
8939 Move the self-assignment case...
8940 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
8941
8942 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8943
8944 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
8945
8946 * emit-rtl.c (try_split): Likewise, also for locals "before" and
8947 "after". For now, don't strengthen param "trial", which requires
8948 adding checked casts when returning it.
8949
8950 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8951
8952 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
8953 "label" from rtx to rtx_code_label *. Strengthen param 1 of
8954 "var_location" hook from rtx to rtx_insn *.
8955 (debug_nothing_rtx): Delete in favor of...
8956 (debug_nothing_rtx_code_label): New prototype.
8957 (debug_nothing_rtx_rtx): Delete unused prototype.
8958 (debug_nothing_rtx_insn): New prototype.
8959
8960 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
8961 invoking debug_hooks->var_location (in two places, one in a NOTE
8962 case of a switch statement, the other guarded by a CALL_P
8963 conditional. Add checked cast to rtx_code_label * when invoking
8964 debug_hooks->label (within CODE_LABEL case of switch statement).
8965
8966 * dbxout.c (dbx_debug_hooks): Update "label" hook from
8967 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
8968 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
8969 (xcoff_debug_hooks): Likewise.
8970 * debug.c (do_nothing_debug_hooks): Likewise.
8971 (debug_nothing_rtx): Delete in favor of...
8972 (debug_nothing_rtx_insn): New function.
8973 (debug_nothing_rtx_rtx): Delete unused function.
8974 (debug_nothing_rtx_code_label): New function.
8975 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
8976 debug_nothing_rtx to debug_nothing_rtx_code_label.
8977 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
8978 to rtx_insn *.
8979 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
8980 debug_nothing_rtx to debug_nothing_rtx_insn.
8981 (sdbout_label): Strengthen param "insn" from rtx to
8982 rtx_code_label *.
8983 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
8984 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
8985 "var_location" hook from debug_nothing_rtx to
8986 debug_nothing_rtx_insn.
8987
8988 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8989
8990 * recog.h (insn_output_fn): Update this function typedef to match
8991 the changes below to the generated output functions, strengthening
8992 the 2nd param from rtx to rtx_insn *.
8993
8994 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
8995 insn when invoking an output function, to match the new signature
8996 of insn_output_fn with a stronger second param.
8997
8998 * genconditions.c (write_header): In the generated code for
8999 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
9000 to match the other changes in this patch.
9001
9002 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
9003 the generated "gen_" functions from rtx to rtx_insn * within their
9004 implementations.
9005
9006 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
9007 the subfunctions within the generated "recog_", "split", "peephole2"
9008 function trees from rtx to rtx_insn *. For now, the top-level
9009 generated functions ("recog", "split", "peephole2") continue to
9010 take a plain rtx for "insn", to avoid introducing dependencies on
9011 other patches. Rename this 2nd param from "insn" to
9012 "uncast_insn", and reintroduce "insn" as a local variable of type
9013 rtx_insn *, initialized at the top of the generated function with
9014 a checked cast on "uncast_insn".
9015 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
9016 the generated "gen_" functions from rtx to rtx_insn * within their
9017 prototypes.
9018
9019 * genoutput.c (process_template): Strengthen the 2nd param within
9020 the generated "output_" functions "insn" from rtx to rtx_insn *.
9021
9022 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
9023
9024 * tree-profile.c (tree_profiling): Skip external functions
9025 when doing coverage instrumentation.
9026 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
9027
9028 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9029
9030 * config/rs6000/altivec.h (vec_cpsgn): New #define.
9031 (vec_mergee): Likewise.
9032 (vec_mergeo): Likewise.
9033 (vec_cntlz): Likewise.
9034 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
9035 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
9036 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
9037 VMRGEW, and VMRGOW.
9038 * doc/extend.texi: Document various forms of vec_cpsgn,
9039 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
9040 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
9041 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
9042 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
9043 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
9044
9045 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9046
9047 * config/rs6000/rs6000.c (context.h): New include.
9048 (tree-pass.h): Likewise.
9049 (make_pass_analyze_swaps): New decl.
9050 (rs6000_option_override): Register pass_analyze_swaps.
9051 (swap_web_entry): New subsclass of web_entry_base (df.h).
9052 (special_handling_values): New enum.
9053 (union_defs): New function.
9054 (union_uses): Likewise.
9055 (insn_is_load_p): Likewise.
9056 (insn_is_store_p): Likewise.
9057 (insn_is_swap_p): Likewise.
9058 (rtx_is_swappable_p): Likewise.
9059 (insn_is_swappable_p): Likewise.
9060 (chain_purpose): New enum.
9061 (chain_contains_only_swaps): New function.
9062 (mark_swaps_for_removal): Likewise.
9063 (swap_const_vector_halves): Likewise.
9064 (adjust_subreg_index): Likewise.
9065 (permute_load): Likewise.
9066 (permute_store): Likewise.
9067 (handle_special_swappables): Likewise.
9068 (replace_swap_with_copy): Likewise.
9069 (dump_swap_insn_table): Likewise.
9070 (rs6000_analyze_swaps): Likewise.
9071 (pass_data_analyze_swaps): New pass_data.
9072 (pass_analyze_swaps): New rtl_opt_pass.
9073 (make_pass_analyze_swaps): New function.
9074 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
9075
9076 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9077
9078 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
9079 type from rtx to rtx_insn *.
9080 (create_copy_of_insn_rtx): Likewise.
9081 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
9082 (create_copy_of_insn_rtx): Likewise, also for local "res".
9083
9084 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9085
9086 * rtl.h (find_first_parameter_load): Strengthen return type from
9087 rtx to rtx_insn *.
9088 * rtlanal.c (find_first_parameter_load): Strengthen return type
9089 from rtx to rtx_insn *. Add checked cast for now, to postpone
9090 strengthening the params.
9091
9092 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
9093
9094 PR fortran/44054
9095 * diagnostic.c: Set default caret.
9096 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
9097 line is needed.
9098 * diagnostic.h (struct diagnostic_context):
9099
9100 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9101
9102 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
9103 (sel_bb_head): Strengthen return type insn_t (currently just an
9104 rtx) to rtx_insn *.
9105 (sel_bb_end): Likewise.
9106
9107 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
9108 (sel_bb_head): Strengthen return type and local "head" from
9109 insn_t (currently just an rtx) to rtx_insn *.
9110 (sel_bb_end): Likewise for return type.
9111 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
9112 working with insn.
9113
9114 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9115
9116 * basic-block.h (get_last_bb_insn): Strengthen return type from
9117 rtx to rtx_insn *.
9118 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
9119 end".
9120
9121 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
9122
9123 PR fortran/44054
9124 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
9125 to here ...
9126 (diagnostic_report_diagnostic): ... from here.
9127 * toplev.c (general_init): Move code to c-family.
9128
9129 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9130
9131 * df.h (web_entry_base): Replace existing struct web_entry with a
9132 new class web_entry_base with only the predecessor member.
9133 (unionfind_root): Remove declaration and move to class member.
9134 (unionfind_union): Remove declaration and move to friend
9135 function.
9136 (union_defs): Remove declaration.
9137 * web.c (web_entry_base::unionfind_root): Modify to be member
9138 function and adjust accessors.
9139 (unionfind_union): Modify to be friend function and adjust
9140 accessors.
9141 (web_entry): New subclass of web_entry_base containing the reg
9142 member.
9143 (union_match_dups): Modify for struct -> class changes.
9144 (union_defs): Likewise.
9145 (entry_register): Likewise.
9146 (pass_web::execute): Likewise.
9147
9148 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
9149
9150 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
9151 builtin define __VEC_ELEMENT_REG_ORDER__.
9152
9153 2014-08-20 Martin Jambor <mjambor@suse.cz>
9154 Wei Mi <wmi@google.com>
9155
9156 PR ipa/60449
9157 PR middle-end/61776
9158 * tree-ssa-operands.c (update_stmt_operands): Remove
9159 MODIFIED_NORETURN_CALLS.
9160 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
9161 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
9162 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
9163 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
9164 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
9165 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
9166 (gimple_call_set_ctrl_altering): New func.
9167 (gimple_call_ctrl_altering_p): Ditto.
9168 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
9169 (make_blocks): Use gimple_call_initialize_ctrl_altering.
9170 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
9171 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
9172 remove MODIFIED_NORETURN_CALLS.
9173
9174 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
9175
9176 * coverage.c (coverage_compute_profile_id): Return non-0;
9177 also handle symbols with unique name.
9178 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
9179
9180 2014-08-20 Steve Ellcey <sellcey@mips.com>
9181
9182 PR middle-end/49191
9183 * doc/sourcebuild.texi (non_strict_align): New.
9184
9185 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
9186
9187 * cgraphunit.c (ipa_passes, compile): Reshedule
9188 symtab_remove_unreachable_nodes passes; update comments.
9189 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
9190 TODO_remove_functions before the pass; the functions ought to be
9191 already removed.
9192 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
9193 TODO_remove_functions.
9194 * passes.c (pass_data_early_local_passes): Do not schedule function
9195 removal.
9196 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
9197
9198 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9199
9200 PR c/59304
9201 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
9202 before setting the option.
9203 * diagnostic.c (diagnostic_classify_diagnostic): Record
9204 command-line status.
9205
9206 2014-08-20 Richard Biener <rguenther@suse.de>
9207
9208 PR lto/62190
9209 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
9210 to build uint{16,32,64}_type_node.
9211
9212 2014-08-20 Terry Guo <terry.guo@arm.com>
9213
9214 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
9215 with immediate_operand.
9216
9217 2014-08-20 David Malcolm <dmalcolm@redhat.com>
9218
9219 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
9220 "insn" from an as_a to a safe_as_a, for the case when "insn" is
9221 NULL.
9222
9223 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9224
9225 PR preprocessor/51303
9226 * incpath.c (remove_duplicates): Use cpp_warning.
9227
9228 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9229
9230 PR c/60975
9231 PR c/53063
9232 * doc/options.texi (CPP): Document it.
9233 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
9234 * optc-gen.awk: Handle CPP.
9235 * opth-gen.awk: Likewise.
9236
9237 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9238
9239 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
9240 rtx_insn *.
9241 (duplicate_insn_chain): Likewise.
9242 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
9243 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
9244 checked cast for now (until we can strengthen the params in the
9245 same way).
9246 (duplicate_insn_chain): Likewise.
9247
9248 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9249
9250 * rtl.h (next_cc0_user): Strengthen return type from rtx to
9251 rtx_insn *.
9252 (prev_cc0_setter): Likewise.
9253
9254 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
9255 rtx_insn *, adding checked casts for now as necessary.
9256 (prev_cc0_setter): Likewise.
9257
9258 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9259
9260 * expr.h (emit_move_insn): Strengthen return type from rtx to
9261 rtx_insn *.
9262 (emit_move_insn_1): Likewise.
9263 (emit_move_complex_push): Likewise.
9264 (emit_move_complex_parts): Likewise.
9265
9266 * expr.c (emit_move_via_integer): Strengthen return type from rtx
9267 to rtx_insn *. Replace use of NULL_RTX with NULL when working
9268 with insns.
9269 (emit_move_complex_push): Strengthen return type from rtx to
9270 rtx_insn *.
9271 (emit_move_complex): Likewise, also for local "ret".
9272 (emit_move_ccmode): Likewise.
9273 (emit_move_multi_word): Likewise for return type and locals
9274 "last_insn", "seq".
9275 (emit_move_insn_1): Likewise for return type and locals "result",
9276 "ret".
9277 (emit_move_insn): Likewise for return type and local "last_insn".
9278 (compress_float_constant): Likewise.
9279
9280 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9281
9282 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
9283 from rtx to rtx_insn *.
9284
9285 * rtl.h (emit_insn_before): Likewise.
9286 (emit_insn_before_noloc): Likewise.
9287 (emit_insn_before_setloc): Likewise.
9288 (emit_jump_insn_before): Likewise.
9289 (emit_jump_insn_before_noloc): Likewise.
9290 (emit_jump_insn_before_setloc): Likewise.
9291 (emit_call_insn_before): Likewise.
9292 (emit_call_insn_before_noloc): Likewise.
9293 (emit_call_insn_before_setloc): Likewise.
9294 (emit_debug_insn_before): Likewise.
9295 (emit_debug_insn_before_noloc): Likewise.
9296 (emit_debug_insn_before_setloc): Likewise.
9297 (emit_label_before): Likewise.
9298 (emit_insn_after): Likewise.
9299 (emit_insn_after_noloc): Likewise.
9300 (emit_insn_after_setloc): Likewise.
9301 (emit_jump_insn_after): Likewise.
9302 (emit_jump_insn_after_noloc): Likewise.
9303 (emit_jump_insn_after_setloc): Likewise.
9304 (emit_call_insn_after): Likewise.
9305 (emit_call_insn_after_noloc): Likewise.
9306 (emit_call_insn_after_setloc): Likewise.
9307 (emit_debug_insn_after): Likewise.
9308 (emit_debug_insn_after_noloc): Likewise.
9309 (emit_debug_insn_after_setloc): Likewise.
9310 (emit_label_after): Likewise.
9311 (emit_insn): Likewise.
9312 (emit_debug_insn): Likewise.
9313 (emit_jump_insn): Likewise.
9314 (emit_call_insn): Likewise.
9315 (emit_label): Likewise.
9316 (gen_clobber): Likewise.
9317 (emit_clobber): Likewise.
9318 (gen_use): Likewise.
9319 (emit_use): Likewise.
9320 (emit): Likewise.
9321
9322 (emit_barrier_before): Strengthen return type from rtx to
9323 rtx_barrier *.
9324 (emit_barrier_after): Likewise.
9325 (emit_barrier): Likewise.
9326
9327 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
9328 from rtx to rtx_insn *. Add checked casts for now when converting
9329 "last" from rtx to rtx_insn *.
9330 (emit_insn_before_noloc): Likewise for return type.
9331 (emit_jump_insn_before_noloc): Likewise.
9332 (emit_call_insn_before_noloc): Likewise.
9333 (emit_debug_insn_before_noloc): Likewise.
9334 (emit_barrier_before): Strengthen return type and local "insn"
9335 from rtx to rtx_barrier *.
9336 (emit_label_before): Strengthen return type from rtx to
9337 rtx_insn *. Add checked cast for now when returning param
9338 (emit_pattern_after_noloc): Strengthen return type from rtx to
9339 rtx_insn *. Add checked casts for now when converting "last" from
9340 rtx to rtx_insn *.
9341 (emit_insn_after_noloc): Strengthen return type from rtx to
9342 rtx_insn *.
9343 (emit_jump_insn_after_noloc): Likewise.
9344 (emit_call_insn_after_noloc): Likewise.
9345 (emit_debug_insn_after_noloc): Likewise.
9346 (emit_barrier_after): Strengthen return type from rtx to
9347 rtx_barrier *.
9348 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
9349 Add checked cast for now when converting "label" from rtx to
9350 rtx_insn *.
9351 (emit_pattern_after_setloc): Strengthen return type from rtx to
9352 rtx_insn *. Add checked casts for now when converting "last" from
9353 rtx to rtx_insn *.
9354 (emit_pattern_after): Strengthen return type from rtx to
9355 rtx_insn *.
9356 (emit_insn_after_setloc): Likewise.
9357 (emit_insn_after): Likewise.
9358 (emit_jump_insn_after_setloc): Likewise.
9359 (emit_jump_insn_after): Likewise.
9360 (emit_call_insn_after_setloc): Likewise.
9361 (emit_call_insn_after): Likewise.
9362 (emit_debug_insn_after_setloc): Likewise.
9363 (emit_debug_insn_after): Likewise.
9364 (emit_pattern_before_setloc): Likewise. Add checked casts for now
9365 when converting "last" from rtx to rtx_insn *.
9366 (emit_pattern_before): Strengthen return type from rtx to
9367 rtx_insn *.
9368 (emit_insn_before_setloc): Likewise.
9369 (emit_insn_before): Likewise.
9370 (emit_jump_insn_before_setloc): Likewise.
9371 (emit_jump_insn_before): Likewise.
9372 (emit_call_insn_before_setloc): Likewise.
9373 (emit_call_insn_before): Likewise.
9374 (emit_debug_insn_before_setloc): Likewise.
9375 (emit_debug_insn_before): Likewise.
9376 (emit_insn): Strengthen return type and locals "last", "insn",
9377 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
9378 within cases where we know we have an insn.
9379 (emit_debug_insn): Likewise.
9380 (emit_jump_insn): Likewise.
9381 (emit_call_insn): Strengthen return type and local "insn" from rtx
9382 to rtx_insn *.
9383 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
9384 a checked cast to rtx_insn * for now on "label".
9385 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
9386 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
9387 (emit_use): Likewise.
9388 (gen_use): Likewise, also for local "seq".
9389 (emit): Likewise for return type and local "insn".
9390 (rtx_insn): Likewise for return type and local "new_rtx".
9391
9392 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
9393 from rtx to rtx_barrier *.
9394
9395 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
9396 changed return type from rtx to rtx_insn *, we must update
9397 "emit_fn" type, and this in turn means updating...
9398 (frame_insn): ...this. Strengthen return type from rtx to
9399 rtx_insn *. Introduce a new local "insn" of the appropriate type.
9400
9401 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9402
9403 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
9404 rtx to rtx_jump_table_data *. Also for local.
9405 * rtl.h (emit_jump_table_data): Likewise.
9406
9407 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9408
9409 * basic-block.h (create_basic_block_structure): Strengthen third
9410 param "bb_note" from rtx to rtx_note *.
9411 * rtl.h (emit_note_before): Strengthen return type from rtx to
9412 rtx_note *.
9413 (emit_note_after): Likewise.
9414 (emit_note): Likewise.
9415 (emit_note_copy): Likewise. Also, strengthen param similarly.
9416 * function.h (struct rtl_data): Strengthen field
9417 "x_stack_check_probe_note" from rtx to rtx_note *.
9418
9419 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
9420 from rtx to rtx_note *.
9421 * cfgrtl.c (create_basic_block_structure): Strengthen third param
9422 "bb_note" from rtx to rtx_note *.
9423 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
9424 when calling emit_note_copy.
9425 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
9426 rtx_note *.
9427 (emit_note_after): Likewise.
9428 (emit_note_before): Likewise.
9429 (emit_note_copy): Likewise. Also, strengthen param similarly.
9430 (emit_note): Likewise.
9431 * except.c (emit_note_eh_region_end): Likewise for return type.
9432 Strengthen local "next" from rtx to rtx_insn *.
9433 (convert_to_eh_region_ranges): Strengthen local "note"
9434 from rtx to rtx_note *.
9435 * final.c (change_scope): Likewise.
9436 (reemit_insn_block_notes): Likewise, for both locals named "note".
9437 Also, strengthen local "insn" from rtx to rtx_insn *.
9438 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
9439 rtx to rtx_note *.
9440 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
9441 strengthen local "seq" from rtx to rtx_insn *.
9442 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
9443 to rtx_note *.
9444 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
9445 vec<rtx_note *>.
9446 (get_bb_note_from_pool): Strengthen return type from rtx to
9447 rtx_note *.
9448 (sel_create_basic_block): Strengthen local "new_bb_note" from
9449 insn_t to rtx_note *.
9450 * var-tracking.c (emit_note_insn_var_location): Strengthen local
9451 "note" from rtx to rtx_note *.
9452 (emit_notes_in_bb): Likewise.
9453
9454 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9455
9456 * function.h (struct rtl_data): Strengthen field
9457 "x_parm_birth_insn" from rtx to rtx_insn *.
9458 * function.c (struct assign_parm_data_all): Strengthen fields
9459 "first_conversion_insn" and "last_conversion_insn" from rtx to
9460 rtx_insn *.
9461
9462 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9463
9464 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
9465 to rtx_insn *; also for local "var_end_seq".
9466 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
9467 (maybe_cleanup_end_of_block): Likewise for param "last" and local
9468 "insn".
9469 (expand_gimple_cond): Likewise for locals "last2" and "last".
9470 (mark_transaction_restart_calls): Likewise for local "insn".
9471 (expand_gimple_stmt): Likewise for return type and locals "last"
9472 and "insn".
9473 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
9474 (avoid_complex_debug_insns): Likewise for param "insn".
9475 (expand_debug_locations): Likewise for locals "insn", "last",
9476 "prev_insn" and "insn2".
9477 (expand_gimple_basic_block): Likewise for local "last".
9478 (construct_exit_block): Likewise for locals "head", "end",
9479 "orig_end".
9480 (pass_expand::execute): Likewise for locals "var_seq",
9481 "var_ret_seq", "next".
9482
9483 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9484
9485 * asan.h (asan_emit_stack_protection): Strengthen return type from
9486 rtx to rtx_insn *.
9487 * asan.c (asan_emit_stack_protection): Likewise. Add local
9488 "insns" to hold the return value.
9489
9490 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9491
9492 * basic-block.h (bb_note): Strengthen return type from rtx to
9493 rtx_note *.
9494 * sched-int.h (bb_note): Likewise.
9495 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
9496
9497 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9498
9499 * rtl.h (make_insn_raw): Strengthen return type from rtx to
9500 rtx_insn *.
9501
9502 * emit-rtl.c (make_insn_raw): Strengthen return type and local
9503 "insn" from rtx to rtx_insn *.
9504 (make_debug_insn_raw): Strengthen return type from rtx to
9505 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
9506 (make_jump_insn_raw): Strengthen return type from rtx to
9507 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
9508 (make_call_insn_raw): Strengthen return type from rtx to
9509 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
9510 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
9511 callback from rtx to rtx_insn *; likewise for local "insn" and
9512 "next", adding a checked cast to rtx_insn in the relevant cases of
9513 the switch statement.
9514 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
9515 callback from rtx to rtx_insn *.
9516 (emit_pattern_after_setloc): Likewise.
9517 (emit_pattern_after): Likewise.
9518 (emit_pattern_before_setloc): Likewise.
9519 (emit_pattern_before): Likewise.
9520
9521 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9522
9523 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
9524 rtx_call_insn *.
9525 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
9526 accepting an rtx_insn *.
9527 (last_call_insn): Strengthen return type from rtx to
9528 rtx_call_insn *.
9529
9530 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9531
9532 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
9533 "insns" from rtx to rtx_insn *.
9534 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
9535 locals "insn" and "prev".
9536
9537 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9538
9539 * rtl.h (tablejump_p): Strengthen third param from rtx * to
9540 rtx_jump_table_data **.
9541
9542 * cfgbuild.c (make_edges): Introduce local "table", using it in
9543 place of "tmp" for jump table data.
9544 (find_bb_boundaries): Strengthen local "table" from rtx to
9545 rtx_jump_table_data *.
9546 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9547 (outgoing_edges_match): Likewise for locals "table1" and "table2".
9548 (try_crossjump_to_edge): Likewise.
9549 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
9550 "table".
9551 (patch_jump_insn): Introduce local "table", using it in place of
9552 "tmp" for jump table data.
9553 (force_nonfallthru_and_redirect): Introduce local "table", so that
9554 call to tablejump_p can receive an rtx_jump_table_data **. Update
9555 logic around the call to overwrite "note" appropriately if
9556 tablejump_p returns non-zero.
9557 (get_last_bb_insn): Introduce local "table", using it in place of
9558 "tmp" for jump table data.
9559 * dwarf2cfi.c (create_trace_edges): Likewise.
9560
9561 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
9562 from rtx to rtx_jump_table_data *.
9563 (create_fix_barrier): Strengthen local "tmp" from rtx to
9564 rtx_jump_table_data *.
9565 (arm_reorg): Likewise for local "table".
9566
9567 * config/s390/s390.c (s390_chunkify_start): Likewise.
9568
9569 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
9570
9571 * jump.c (delete_related_insns): Strengthen local "lab_next" from
9572 rtx to rtx_jump_table_data *.
9573
9574 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
9575 rtx_jump_table_data **. Add a checked cast when writing through
9576 the pointer: we know there that local "table" is non-NULL and that
9577 JUMP_TABLE_DATA_P (table) holds.
9578 (label_is_jump_target_p): Introduce local "table", using it in
9579 place of "tmp" for jump table data.
9580
9581 2014-08-19 Marek Polacek <polacek@redhat.com>
9582
9583 PR c++/62153
9584 * doc/invoke.texi: Document -Wbool-compare.
9585
9586 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9587
9588 * rtl.h (entry_of_function): Strengthen return type from rtx to
9589 rtx_insn *.
9590 * cfgrtl.c (entry_of_function): Likewise.
9591
9592 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9593
9594 * emit-rtl.h (get_insns): Strengthen return type from rtx to
9595 rtx_insn *, adding a checked cast for now.
9596 (get_last_insn): Likewise.
9597
9598 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9599
9600 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
9601 rtx_code_label *.
9602
9603 * emit-rtl.c (gen_label_rtx): Likewise.
9604
9605 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9606
9607 * rtl.h (previous_insn): Strengthen return type from rtx to
9608 rtx_insn *.
9609 (next_insn): Likewise.
9610 (prev_nonnote_insn): Likewise.
9611 (prev_nonnote_insn_bb): Likewise.
9612 (next_nonnote_insn): Likewise.
9613 (next_nonnote_insn_bb): Likewise.
9614 (prev_nondebug_insn): Likewise.
9615 (next_nondebug_insn): Likewise.
9616 (prev_nonnote_nondebug_insn): Likewise.
9617 (next_nonnote_nondebug_insn): Likewise.
9618 (prev_real_insn): Likewise.
9619 (next_real_insn): Likewise.
9620 (prev_active_insn): Likewise.
9621 (next_active_insn): Likewise.
9622
9623 * emit-rtl.c (next_insn): Strengthen return type from rtx to
9624 rtx_insn *, adding a checked cast.
9625 (previous_insn): Likewise.
9626 (next_nonnote_insn): Likewise.
9627 (next_nonnote_insn_bb): Likewise.
9628 (prev_nonnote_insn): Likewise.
9629 (prev_nonnote_insn_bb): Likewise.
9630 (next_nondebug_insn): Likewise.
9631 (prev_nondebug_insn): Likewise.
9632 (next_nonnote_nondebug_insn): Likewise.
9633 (prev_nonnote_nondebug_insn): Likewise.
9634 (next_real_insn): Likewise.
9635 (prev_real_insn): Likewise.
9636 (next_active_insn): Likewise.
9637 (prev_active_insn): Likewise.
9638
9639 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
9640 param "stepfunc" so that it returns an rtx_insn * rather than an
9641 rtx, to track the change to prev_nonnote_insn_bb, which is the
9642 only function this is called with.
9643 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
9644
9645 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
9646
9647 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
9648 assert.
9649
9650 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9651
9652 * coretypes.h (class rtx_debug_insn): Add forward declaration.
9653 (class rtx_nonjump_insn): Likewise.
9654 (class rtx_jump_insn): Likewise.
9655 (class rtx_call_insn): Likewise.
9656 (class rtx_jump_table_data): Likewise.
9657 (class rtx_barrier): Likewise.
9658 (class rtx_code_label): Likewise.
9659 (class rtx_note): Likewise.
9660
9661 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
9662 adding the invariant DEBUG_INSN_P (X).
9663 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
9664 the invariant NONJUMP_INSN_P (X).
9665 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
9666 the invariant JUMP_P (X).
9667 (class rtx_call_insn): New, a subclass of rtx_insn, adding
9668 the invariant CALL_P (X).
9669 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
9670 invariant JUMP_TABLE_DATA_P (X).
9671 (class rtx_barrier): New, a subclass of rtx_insn, adding the
9672 invariant BARRIER_P (X).
9673 (class rtx_code_label): New, a subclass of rtx_insn, adding
9674 the invariant LABEL_P (X).
9675 (class rtx_note): New, a subclass of rtx_insn, adding
9676 the invariant NOTE_P(X).
9677 (is_a_helper <rtx_debug_insn *>::test): New.
9678 (is_a_helper <rtx_nonjump_insn *>::test): New.
9679 (is_a_helper <rtx_jump_insn *>::test): New.
9680 (is_a_helper <rtx_call_insn *>::test): New.
9681 (is_a_helper <rtx_jump_table_data *>::test): New functions,
9682 overloaded for both rtx and rtx_insn *.
9683 (is_a_helper <rtx_barrier *>::test): New.
9684 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
9685 for both rtx and rtx_insn *.
9686 (is_a_helper <rtx_note *>::test): New.
9687
9688 2014-08-19 Marek Polacek <polacek@redhat.com>
9689
9690 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
9691 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9692 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
9693 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9694
9695 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9696
9697 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
9698 rtx_insn *. To help with transition, for now, convert from an
9699 access macro into a pair of functions: BND_TO, returning an
9700 rtx_insn *, and...
9701 (SET_BND_TO): New function, for use where BND_TO is used as an
9702 lvalue.
9703
9704 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
9705 SET_BND_TO.
9706 (BND_TO): New function, adding a checked cast.
9707 (SET_BND_TO): New function.
9708
9709 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
9710 SET_BND_TO.
9711 (compute_av_set_on_boundaries): Likewise.
9712
9713 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
9714
9715 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
9716 destination if it is used in source.
9717 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
9718 (*popcount<mode>2_falsedep_1): Likewise.
9719
9720 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
9721
9722 PR other/62168
9723 * configure.ac: Set install_gold_as_default to no first.
9724 * configure: Regenerated.
9725
9726 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9727
9728 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
9729 "note_list" field will eventually be an rtx_insn *. To help with
9730 transition, for now, convert from an access macro into a pair of
9731 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
9732 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
9733 used as an lvalue.
9734
9735 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
9736 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
9737
9738 * sel-sched-ir.c (init_bb): Likewise.
9739 (sel_restore_notes): Likewise.
9740 (move_bb_info): Likewise.
9741 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
9742 (SET_BB_NOTE_LIST): New function.
9743
9744 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9745
9746 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
9747 field will eventually be an rtx_insn *. To help with transition,
9748 for now, convert from an access macro into a pair of functions:
9749 VINSN_INSN_RTX, returning an rtx_insn *, and...
9750 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
9751 is used as an lvalue.
9752
9753 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
9754 SET_VINSN_INSN_RTX where it's used as an lvalue.
9755 (VINSN_INSN_RTX): New function.
9756 (SET_VINSN_INSN_RTX): New function.
9757
9758 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9759
9760 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
9761 eventually be rtx_insn *, but to help with transition, for now,
9762 convert from an access macro into a pair of functions: DEP_PRO
9763 returning an rtx_insn * and...
9764 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
9765 lvalue, returning an rtx&.
9766 (DEP_CON): Analogous changes to DEP_PRO above.
9767 (SET_DEP_CON): Likewise.
9768
9769 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
9770 an lvalue to SET_DEP_CON.
9771 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
9772 (sd_copy_back_deps): Likewise for DEP_CON.
9773 (DEP_PRO): New function, adding a checked cast for now.
9774 (DEP_CON): Likewise.
9775 (SET_DEP_PRO): New function.
9776 (SET_DEP_CON): Likewise.
9777
9778 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
9779
9780 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
9781 (extra_options): Add i386/cygwin.opt.
9782 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
9783 (CPP_SPEC): Accept -pthread.
9784 (LINK_SPEC): Ditto.
9785 (GOMP_SELF_SPECS): Update comment.
9786 * config/i386/cygwin.opt: New file for -pthread flag.
9787
9788 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9789
9790 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
9791 * df.h (DF_REF_INSN): Convert from a macro to a function, so
9792 that we can return an rtx_insn *.
9793
9794 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
9795
9796 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
9797 when building executables, not DLLs. Add --large-address-aware
9798 under the same conditions.
9799 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
9800 when building executables, not DLLs. Add --large-address-aware
9801 under the same conditions when using -m32.
9802
9803 * config/i386/cygwin-stdint.h: Throughout, make type
9804 definitions dependent on target architecture, not host.
9805
9806 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9807
9808 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
9809 the return type from rtx to rtx_insn *, which will enable various
9810 conversions in followup patches. For now this is is done by a
9811 checked cast.
9812 (NEXT_INSN): Likewise.
9813 (SET_PREV_INSN): Convert to an inline function. This is intended
9814 for use as an lvalue, and so returns an rtx& to allow in-place
9815 modification.
9816 (SET_NEXT_INSN): Likewise.
9817
9818 2014-07-08 Mark Wielaard <mjw@redhat.com>
9819
9820 PR debug/59051
9821 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
9822
9823 2014-08-19 Marek Polacek <polacek@redhat.com>
9824
9825 PR c/61271
9826 * cgraphunit.c (handle_alias_pairs): Fix condition.
9827
9828 2014-08-19 Richard Biener <rguenther@suse.de>
9829
9830 * gimple-fold.c (fold_gimple_assign): Properly build a
9831 null-pointer constant when devirtualizing addresses.
9832
9833 2014-07-07 Mark Wielaard <mjw@redhat.com>
9834
9835 * dwarf2out.c (decl_quals): New function.
9836 (modified_type_die): Take one cv_quals argument instead of two,
9837 one for const and one for volatile.
9838 (add_type_attribute): Likewise.
9839 (generic_parameter_die): Call add_type_attribute with one modifier
9840 argument.
9841 (base_type_for_mode): Likewise.
9842 (add_bounds_info): Likewise.
9843 (add_subscript_info): Likewise.
9844 (gen_array_type_die): Likewise.
9845 (gen_descr_array_type_die): Likewise.
9846 (gen_entry_point_die): Likewise.
9847 (gen_enumeration_type_die): Likewise.
9848 (gen_formal_parameter_die): Likewise.
9849 (gen_subprogram_die): Likewise.
9850 (gen_variable_die): Likewise.
9851 (gen_const_die): Likewise.
9852 (gen_field_die): Likewise.
9853 (gen_pointer_type_die): Likewise.
9854 (gen_reference_type_die): Likewise.
9855 (gen_ptr_to_mbr_type_die): Likewise.
9856 (gen_inheritance_die): Likewise.
9857 (gen_subroutine_type_die): Likewise.
9858 (gen_typedef_die): Likewise.
9859 (force_type_die): Likewise.
9860
9861 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9862
9863 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
9864 if unset.
9865 * configure: Regenerate.
9866
9867 2014-08-19 Richard Biener <rguenther@suse.de>
9868
9869 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
9870 DECL_EXTERNALs in BLOCKs as non-references.
9871 * tree-streamer-out.c (streamer_write_chain): Likewise.
9872
9873 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
9874 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9875 Anna Tikhonova <anna.tikhonova@intel.com>
9876 Ilya Tocar <ilya.tocar@intel.com>
9877 Andrey Turetskiy <andrey.turetskiy@intel.com>
9878 Ilya Verbin <ilya.verbin@intel.com>
9879 Kirill Yukhin <kirill.yukhin@intel.com>
9880 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9881
9882 * config/i386/sse.md
9883 (define_mode_iterator VI48_AVX512F): Delete.
9884 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
9885 (define_mode_iterator VI2_AVX512VL): Ditto.
9886 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
9887 Delete.
9888 (define_insn
9889 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
9890 New.
9891 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
9892 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
9893 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
9894 with VI48_AVX512F_AVX512VL): New.
9895 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
9896 with VI2_AVX512VL): Ditto.
9897
9898 2014-08-19 Marek Polacek <polacek@redhat.com>
9899
9900 * doc/invoke.texi: Document -Wc99-c11-compat.
9901
9902 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9903
9904 * rtl.h (PREV_INSN): Split macro in two: the existing one,
9905 for rvalues, and...
9906 (SET_PREV_INSN): New macro, for use as an lvalue.
9907 (NEXT_INSN, SET_NEXT_INSN): Likewise.
9908
9909 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
9910 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
9911 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
9912 (fixup_abnormal_edges): Likewise.
9913 (unlink_insn_chain): Likewise.
9914 (fixup_reorder_chain): Likewise.
9915 (cfg_layout_delete_block): Likewise.
9916 (cfg_layout_merge_blocks): Likewise.
9917 * combine.c (update_cfg_for_uncondjump): Likewise.
9918 * emit-rtl.c (link_insn_into_chain): Likewise.
9919 (remove_insn): Likewise.
9920 (delete_insns_since): Likewise.
9921 (reorder_insns_nobb): Likewise.
9922 (emit_insn_after_1): Likewise.
9923 * final.c (rest_of_clean_state): Likewise.
9924 (final_scan_insn): Likewise.
9925 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
9926 * haifa-sched.c (concat_note_lists): Likewise.
9927 (remove_notes): Likewise.
9928 (restore_other_notes): Likewise.
9929 (move_insn): Likewise.
9930 (unlink_bb_notes): Likewise.
9931 (restore_bb_notes): Likewise.
9932 * jump.c (delete_for_peephole): Likewise.
9933 * optabs.c (emit_libcall_block_1): Likewise.
9934 * reorg.c (emit_delay_sequence): Likewise.
9935 (fill_simple_delay_slots): Likewise.
9936 * sel-sched-ir.c (sel_move_insn): Likewise.
9937 (sel_remove_insn): Likewise.
9938 (get_bb_note_from_pool): Likewise.
9939 * sel-sched.c (move_nop_to_previous_block): Likewise.
9940
9941 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
9942 * config/c6x/c6x.c (gen_one_bundle): Likewise.
9943 (c6x_gen_bundles): Likewise.
9944 (hwloop_optimize): Likewise.
9945 * config/frv/frv.c (frv_function_prologue): Likewise.
9946 (frv_register_nop): Likewise.
9947 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
9948 (ia64_reorg): Likewise.
9949 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
9950 (mep_make_bundle): Likewise.
9951 (mep_bundle_insns): Likewise.
9952 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
9953 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
9954 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
9955
9956 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9957
9958 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
9959 return type from rtx to rtx_insn *.
9960 (BB_END): Likewise.
9961 (BB_HEADER): Likewise.
9962 (BB_FOOTER): Likewise.
9963 (SET_BB_HEAD): Convert to a function.
9964 (SET_BB_END): Likewise.
9965 (SET_BB_HEADER): Likewise.
9966 (SET_BB_FOOTER): Likewise.
9967
9968 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
9969 Strengthen the return type from rtx to rtx_insn *. For now, this
9970 is done by adding a checked cast, but this will eventually
9971 become a field lookup.
9972 (BB_END): Likewise.
9973 (BB_HEADER): Likewise.
9974 (BB_FOOTER): Likewise.
9975 (SET_BB_HEAD): New function, from macro of same name. This is
9976 intended for use as an lvalue, and so returns an rtx& to allow
9977 in-place modification.
9978 (SET_BB_END): Likewise.
9979 (SET_BB_HEADER): Likewise.
9980 (SET_BB_FOOTER): Likewise.
9981
9982 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9983
9984 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
9985 for rvalues, and...
9986 (SET_BB_HEAD): New macro, for use as a lvalue.
9987 (BB_END, SET_BB_END): Likewise.
9988 (BB_HEADER, SET_BB_HEADER): Likewise.
9989 (BB_FOOTER, SET_BB_FOOTER): Likewise.
9990
9991 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
9992 of BB_* macros into SET_BB_* macros.
9993 (fix_crossing_unconditional_branches): Likewise.
9994 * caller-save.c (save_call_clobbered_regs): Likewise.
9995 (insert_one_insn): Likewise.
9996 * cfgbuild.c (find_bb_boundaries): Likewise.
9997 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9998 (outgoing_edges_match): Likewise.
9999 (try_optimize_cfg): Likewise.
10000 * cfgexpand.c (expand_gimple_cond): Likewise.
10001 (expand_gimple_tailcall): Likewise.
10002 (expand_gimple_basic_block): Likewise.
10003 (construct_exit_block): Likewise.
10004 * cfgrtl.c (delete_insn): Likewise.
10005 (create_basic_block_structure): Likewise.
10006 (rtl_delete_block): Likewise.
10007 (rtl_split_block): Likewise.
10008 (emit_nop_for_unique_locus_between): Likewise.
10009 (rtl_merge_blocks): Likewise.
10010 (block_label): Likewise.
10011 (try_redirect_by_replacing_jump): Likewise.
10012 (emit_barrier_after_bb): Likewise.
10013 (fixup_abnormal_edges): Likewise.
10014 (record_effective_endpoints): Likewise.
10015 (relink_block_chain): Likewise.
10016 (fixup_reorder_chain): Likewise.
10017 (fixup_fallthru_exit_predecessor): Likewise.
10018 (cfg_layout_duplicate_bb): Likewise.
10019 (cfg_layout_split_block): Likewise.
10020 (cfg_layout_delete_block): Likewise.
10021 (cfg_layout_merge_blocks): Likewise.
10022 * combine.c (update_cfg_for_uncondjump): Likewise.
10023 * emit-rtl.c (add_insn_after): Likewise.
10024 (remove_insn): Likewise.
10025 (reorder_insns): Likewise.
10026 (emit_insn_after_1): Likewise.
10027 * haifa-sched.c (get_ebb_head_tail): Likewise.
10028 (restore_other_notes): Likewise.
10029 (move_insn): Likewise.
10030 (sched_extend_bb): Likewise.
10031 (fix_jump_move): Likewise.
10032 * ifcvt.c (noce_process_if_block): Likewise.
10033 (dead_or_predicable): Likewise.
10034 * ira.c (update_equiv_regs): Likewise.
10035 * reg-stack.c (change_stack): Likewise.
10036 * sel-sched-ir.c (sel_move_insn): Likewise.
10037 * sel-sched.c (move_nop_to_previous_block): Likewise.
10038
10039 * config/c6x/c6x.c (hwloop_optimize): Likewise.
10040 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
10041
10042 2014-08-18 David Malcolm <dmalcolm@redhat.com>
10043
10044 * rtl.h (for_each_rtx_in_insn): New function.
10045 * rtlanal.c (for_each_rtx_in_insn): Likewise.
10046
10047 2014-08-18 David Malcolm <dmalcolm@redhat.com>
10048
10049 * coretypes.h (class rtx_insn): Add forward declaration.
10050
10051 * rtl.h: Include is-a.h.
10052 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
10053 workaround to ensure gengtype knows inheritance is occurring,
10054 whilst continuing to use the pre-existing special-casing for
10055 rtx_def.
10056 (class rtx_insn): New subclass of rtx_def, adding the
10057 invariant that we're dealing with something we can sanely use
10058 INSN_UID, NEXT_INSN, PREV_INSN on.
10059 (is_a_helper <rtx_insn *>::test): New.
10060 (is_a_helper <const rtx_insn *>::test): New.
10061
10062 2014-08-18 David Malcolm <dmalcolm@redhat.com>
10063
10064 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
10065
10066 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
10067
10068 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
10069 comdats as extern.
10070
10071 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
10072
10073 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
10074 to BUILT_IN_UNREACHABLE.
10075
10076 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
10077
10078 PR target/62011
10079 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
10080 New tune flag.
10081 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
10082 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
10083 (ffs<mode>2): Do not expand with tzcnt for
10084 TARGET_AVOID_FALSE_DEP_FOR_BMI.
10085 (ffssi2_no_cmove): Ditto.
10086 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
10087 (ctz<mode>2): New expander.
10088 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
10089 (*ctz<mode>2_falsedep): New insn.
10090 (*ctz<mode>2): Rename from ctz<mode>2.
10091 (clz<mode>2_lzcnt): New expander.
10092 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
10093 (*clz<mode>2_lzcnt_falsedep): New insn.
10094 (*clz<mode>2): Rename from ctz<mode>2.
10095 (popcount<mode>2): New expander.
10096 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
10097 (*popcount<mode>2_falsedep): New insn.
10098 (*popcount<mode>2): Rename from ctz<mode>2.
10099 (*popcount<mode>2_cmp): Remove.
10100 (*popcountsi2_cmp_zext): Ditto.
10101
10102 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
10103
10104 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
10105 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
10106 * config/microblaze/microblaze.h
10107 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
10108
10109 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
10110
10111 PR other/62168
10112 * configure.ac: Set install_gold_as_default to no for
10113 --enable-gold=no.
10114 * configure: Regenerated.
10115
10116 2014-08-18 Roman Gareev <gareevroman@gmail.com>
10117
10118 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
10119 * config.in: Add undef of HAVE_isl.
10120 * configure: Regenerate.
10121 * configure.ac: Add definition of HAVE_isl.
10122 * graphite-blocking.c: Add checking of HAVE_isl.
10123 * graphite-dependences.c: Likewise.
10124 * graphite-interchange.c: Likewise.
10125 * graphite-isl-ast-to-gimple.c: Likewise.
10126 * graphite-optimize-isl.c: Likewise.
10127 * graphite-poly.c: Likewise.
10128 * graphite-scop-detection.c: Likewise.
10129 * graphite-sese-to-poly.c: Likewise.
10130 * graphite.c: Likewise.
10131 * toplev.c: Replace the checking of HAVE_cloog with the checking
10132 of HAVE_isl.
10133
10134 2014-08-18 Richard Biener <rguenther@suse.de>
10135
10136 PR tree-optimization/62090
10137 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
10138 (fold_builtin_3): Do not fold snprintf.
10139 (fold_builtin_4): Likewise.
10140 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
10141 moved from builtins.c.
10142 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
10143 (gimple_fold_builtin): Do not fold sprintf here.
10144
10145 2014-08-18 Richard Biener <rguenther@suse.de>
10146
10147 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
10148 code to ...
10149 (maybe_canonicalize_mem_ref_addr): ... this function.
10150 (fold_stmt_1): Apply it here before all simplification.
10151
10152 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
10153
10154 PR ipa/61800
10155 * cgraph.h (cgraph_node::create_indirect_edge): Add
10156 compute_indirect_info param.
10157 * cgraph.c (cgraph_node::create_indirect_edge): Compute
10158 indirect_info only when it is required.
10159 * cgraphclones.c (cgraph_clone_edge): Do not recompute
10160 indirect_info fore cloned indirect edge.
10161
10162 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10163 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10164 Anna Tikhonova <anna.tikhonova@intel.com>
10165 Ilya Tocar <ilya.tocar@intel.com>
10166 Andrey Turetskiy <andrey.turetskiy@intel.com>
10167 Ilya Verbin <ilya.verbin@intel.com>
10168 Kirill Yukhin <kirill.yukhin@intel.com>
10169 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10170
10171 * config/i386/sse.md
10172 (define_mode_iterator VI8_AVX2_AVX512BW): New.
10173 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
10174
10175 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10176 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10177 Anna Tikhonova <anna.tikhonova@intel.com>
10178 Ilya Tocar <ilya.tocar@intel.com>
10179 Andrey Turetskiy <andrey.turetskiy@intel.com>
10180 Ilya Verbin <ilya.verbin@intel.com>
10181 Kirill Yukhin <kirill.yukhin@intel.com>
10182 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10183
10184 * config/i386/sse.md
10185 (define_mode_iterator VF1_AVX512VL): New.
10186 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
10187 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
10188 New.
10189
10190 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10191 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10192 Anna Tikhonova <anna.tikhonova@intel.com>
10193 Ilya Tocar <ilya.tocar@intel.com>
10194 Andrey Turetskiy <andrey.turetskiy@intel.com>
10195 Ilya Verbin <ilya.verbin@intel.com>
10196 Kirill Yukhin <kirill.yukhin@intel.com>
10197 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10198
10199 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
10200 * config/i386/i386.md
10201 (define_code_iterator any_float): New.
10202 (define_code_attr floatsuffix): New.
10203 * config/i386/sse.md
10204 (define_mode_iterator VF1_128_256VL): New.
10205 (define_mode_iterator VF2_512_256VL): New.
10206 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
10207 TARGET check.
10208 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
10209 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
10210 New.
10211 (define_mode_attr qq2pssuff): New.
10212 (define_mode_attr sselongvecmode): New.
10213 (define_mode_attr sselongvecmodelower): New.
10214 (define_mode_attr sseintvecmode3): New.
10215 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
10216 New.
10217 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
10218 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
10219 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
10220 (define_insn "ufloatv2siv2df2<mask_name>"): New.
10221
10222 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10223 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10224 Anna Tikhonova <anna.tikhonova@intel.com>
10225 Ilya Tocar <ilya.tocar@intel.com>
10226 Andrey Turetskiy <andrey.turetskiy@intel.com>
10227 Ilya Verbin <ilya.verbin@intel.com>
10228 Kirill Yukhin <kirill.yukhin@intel.com>
10229 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10230
10231 * config/i386/sse.md
10232 (define_mode_iterator VF2_AVX512VL): New.
10233 (define_mode_attr sseintvecmode2): New.
10234 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
10235 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
10236 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
10237 (define_insn
10238 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
10239 Ditto.
10240 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
10241 Ditto.
10242 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
10243 Ditto.
10244
10245 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10246 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10247 Anna Tikhonova <anna.tikhonova@intel.com>
10248 Ilya Tocar <ilya.tocar@intel.com>
10249 Andrey Turetskiy <andrey.turetskiy@intel.com>
10250 Ilya Verbin <ilya.verbin@intel.com>
10251 Kirill Yukhin <kirill.yukhin@intel.com>
10252 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10253
10254 * config/i386/i386.md
10255 (define_insn "*movoi_internal_avx"): Add evex version.
10256 (define_insn "*movti_internal"): Ditto.
10257
10258 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10259 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10260 Anna Tikhonova <anna.tikhonova@intel.com>
10261 Ilya Tocar <ilya.tocar@intel.com>
10262 Andrey Turetskiy <andrey.turetskiy@intel.com>
10263 Ilya Verbin <ilya.verbin@intel.com>
10264 Kirill Yukhin <kirill.yukhin@intel.com>
10265 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10266
10267 * config/i386/i386.md
10268 (define_attr "isa"): Add avx512dq, noavx512dq.
10269 (define_attr "enabled"): Ditto.
10270 * config/i386/sse.md
10271 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
10272
10273 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10274 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10275 Anna Tikhonova <anna.tikhonova@intel.com>
10276 Ilya Tocar <ilya.tocar@intel.com>
10277 Andrey Turetskiy <andrey.turetskiy@intel.com>
10278 Ilya Verbin <ilya.verbin@intel.com>
10279 Kirill Yukhin <kirill.yukhin@intel.com>
10280 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10281
10282 * config/i386/i386.c
10283 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
10284 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
10285 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
10286 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
10287 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
10288 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
10289 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
10290 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
10291 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
10292 * config/i386/sse.md
10293 (define_mode_iterator VMOVE): Allow V4TI mode.
10294 (define_mode_iterator V_AVX512VL): New.
10295 (define_mode_iterator V): New handling for AVX512VL.
10296 (define_insn "avx512f_load<mode>_mask"): Delete.
10297 (define_insn "<avx512>_load<mode>_mask"): New.
10298 (define_insn "avx512f_store<mode>_mask"): Delete.
10299 (define_insn "<avx512>_store<mode>_mask"): New.
10300
10301
10302 2014-08-18 Yury Gribov <y.gribov@samsung.com>
10303
10304 PR sanitizer/62089
10305 * asan.c (instrument_derefs): Fix bitfield check.
10306
10307 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10308
10309 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
10310 * config/rs6000/htm.md (ttest): Remove clobber.
10311 * config/rs6000/predicates.md (any_mask_operand): New predicate.
10312 (and_operand): Reformat.
10313 (and_2rld_operand): New predicate.
10314 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
10315 parameter.
10316 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
10317 parameter. Handle AND directly.
10318 (rs6000_split_logical_di): Remove last parameter.
10319 (rs6000_split_logical): Remove last parameter. Remove obsolete
10320 comment.
10321 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
10322 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
10323 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
10324 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
10325 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
10326 and 5 anonymous splitters): Delete.
10327 (and<mode>3): New expander.
10328 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
10329 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
10330 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
10331 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
10332 (floatdisf2_internal1): Remove clobbers.
10333 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
10334 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
10335 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
10336 (and<mode>3 for BOOL_128): Remove clobber.
10337 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
10338 rs6000_split_logical.
10339 (*bool<mode>3_internal for BOOL_128): Adjust call of
10340 rs6000_split_logical.
10341 (*boolc<mode>3_internal1 for BOOL_128,
10342 *boolc<mode>3_internal2 for BOOL_128,
10343 *boolcc<mode>3_internal1 for BOOL_128,
10344 *boolcc<mode>3_internal2 for BOOL_128,
10345 *eqv<mode>3_internal1 for BOOL_128,
10346 *eqv<mode>3_internal2 for BOOL_128,
10347 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
10348 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
10349 clobber.
10350 (*vec_reload_and_reg_<mptrsize>): Delete.
10351
10352 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10353
10354 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
10355 and split, *boolccsi3_internal3 and split): Delete.
10356 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
10357 *boolccdi3_internal3 and split): Delete.
10358 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
10359 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
10360
10361 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10362
10363 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
10364 and split, *boolcsi3_internal3 and split): Delete.
10365 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
10366 *boolcdi3_internal3 and split): Delete.
10367 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
10368
10369 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10370
10371 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
10372 <'u'>: Also support printing the low-order 16 bits.
10373 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
10374 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
10375 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
10376 *booldi3_internal3 and split): Delete.
10377 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
10378 *bool<mode>3_dot2): New.
10379 (two anonymous define_splits for non_logical_cint_operand): Merge.
10380
10381 2014-08-17 Marek Polacek <polacek@redhat.com>
10382 Manuel López-Ibáñez <manu@gcc.gnu.org>
10383
10384 PR c/62059
10385 * diagnostic.c (adjust_line): Add gcc_checking_assert.
10386 (diagnostic_show_locus): Don't print caret diagnostic
10387 if a column is larger than the line_width.
10388
10389 2014-08-17 Roman Gareev <gareevroman@gmail.com>
10390
10391 * common.opt: Make the ISL AST generator to be the main code generator
10392 of Graphite.
10393
10394 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
10395
10396 * wide-int.h (generic_wide_int): Declare as class instead of struct.
10397
10398 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
10399
10400 PR target/61641
10401 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
10402 Declare.
10403 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
10404 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
10405 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
10406 Define.
10407 * config/pa/pa.md (begin_brtab): Delete insn.
10408 (end_brtab): Likewise.
10409
10410 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
10411
10412 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
10413
10414 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
10415
10416 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
10417 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
10418 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
10419 (get_dynamic_type): Remove.
10420 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
10421 (clear_speculation): Bring to ipa-deivrt.h
10422 (get_class_context): Rename to ...
10423 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
10424 (contains_type_p): Update.
10425 (get_dynamic_type): Rename to ...
10426 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
10427 (possible_polymorphic_call_targets): UPdate.
10428 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
10429 * ipa-prop.c (ipa_analyze_call_uses): Update.
10430
10431 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
10432
10433 * doc/invoke.texi (SH options): Document missing processor variant
10434 options. Remove references to Hitachi. Undocument deprecated mspace
10435 option.
10436
10437 2014-08-15 Jason Merrill <jason@redhat.com>
10438
10439 * tree.c (type_hash_canon): Uncomment assert.
10440
10441 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10442
10443 * input.h (in_system_header_at): Add comment.
10444
10445 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10446
10447 PR fortran/44054
10448 * diagnostic.c (build_message_string): Make it extern.
10449 * diagnostic.h (build_message_string): Make it extern.
10450
10451 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
10452
10453 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
10454 load/store from/to non-floating class pseudo.
10455
10456 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10457
10458 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
10459
10460 2014-08-15 Richard Biener <rguenther@suse.de>
10461
10462 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
10463 (get_constraint_for_ssa_var): Remove dead code.
10464 (get_constraint_for_1): Adjust.
10465 (find_what_var_points_to): Likewise.
10466 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
10467
10468 2014-08-15 Ilya Tocar <tocarip@gmail.com>
10469
10470 PR target/61878
10471 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
10472 (_mm512_mask_cmpge_epu32_mask): Ditto.
10473 (_mm512_cmpge_epu32_mask): Ditto.
10474 (_mm512_mask_cmpge_epi64_mask): Ditto.
10475 (_mm512_cmpge_epi64_mask): Ditto.
10476 (_mm512_mask_cmpge_epu64_mask): Ditto.
10477 (_mm512_cmpge_epu64_mask): Ditto.
10478 (_mm512_mask_cmple_epi32_mask): Ditto.
10479 (_mm512_cmple_epi32_mask): Ditto.
10480 (_mm512_mask_cmple_epu32_mask): Ditto.
10481 (_mm512_cmple_epu32_mask): Ditto.
10482 (_mm512_mask_cmple_epi64_mask): Ditto.
10483 (_mm512_cmple_epi64_mask): Ditto.
10484 (_mm512_mask_cmple_epu64_mask): Ditto.
10485 (_mm512_cmple_epu64_mask): Ditto.
10486 (_mm512_mask_cmplt_epi32_mask): Ditto.
10487 (_mm512_cmplt_epi32_mask): Ditto.
10488 (_mm512_mask_cmplt_epu32_mask): Ditto.
10489 (_mm512_cmplt_epu32_mask): Ditto.
10490 (_mm512_mask_cmplt_epi64_mask): Ditto.
10491 (_mm512_cmplt_epi64_mask): Ditto.
10492 (_mm512_mask_cmplt_epu64_mask): Ditto.
10493 (_mm512_cmplt_epu64_mask): Ditto.
10494 (_mm512_mask_cmpneq_epi32_mask): Ditto.
10495 (_mm512_mask_cmpneq_epu32_mask): Ditto.
10496 (_mm512_cmpneq_epu32_mask): Ditto.
10497 (_mm512_mask_cmpneq_epi64_mask): Ditto.
10498 (_mm512_cmpneq_epi64_mask): Ditto.
10499 (_mm512_mask_cmpneq_epu64_mask): Ditto.
10500 (_mm512_cmpneq_epu64_mask): Ditto.
10501 (_mm512_castpd_ps): Ditto.
10502 (_mm512_castpd_si512): Ditto.
10503 (_mm512_castps_pd): Ditto.
10504 (_mm512_castps_si512): Ditto.
10505 (_mm512_castsi512_ps): Ditto.
10506 (_mm512_castsi512_pd): Ditto.
10507 (_mm512_castpd512_pd128): Ditto.
10508 (_mm512_castps512_ps128): Ditto.
10509 (_mm512_castsi512_si128): Ditto.
10510 (_mm512_castpd512_pd256): Ditto.
10511 (_mm512_castps512_ps256): Ditto.
10512 (_mm512_castsi512_si256): Ditto.
10513 (_mm512_castpd128_pd512): Ditto.
10514 (_mm512_castps128_ps512): Ditto.
10515 (_mm512_castsi128_si512): Ditto.
10516 (_mm512_castpd256_pd512): Ditto.
10517 (_mm512_castps256_ps512): Ditto.
10518 (_mm512_castsi256_si512): Ditto.
10519 (_mm512_cmpeq_epu32_mask): Ditto.
10520 (_mm512_mask_cmpeq_epu32_mask): Ditto.
10521 (_mm512_mask_cmpeq_epu64_mask): Ditto.
10522 (_mm512_cmpeq_epu64_mask): Ditto.
10523 (_mm512_cmpgt_epu32_mask): Ditto.
10524 (_mm512_mask_cmpgt_epu32_mask): Ditto.
10525 (_mm512_mask_cmpgt_epu64_mask): Ditto.
10526 (_mm512_cmpgt_epu64_mask): Ditto.
10527 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
10528 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
10529 * config/i386/i386.c (enum ix86_builtins): Add
10530 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
10531 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
10532 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
10533 (bdesc_args): Add __builtin_ia32_si512_256si,
10534 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
10535 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
10536 __builtin_ia32_pd512_pd.
10537 (ix86_expand_args_builtin): Handle new FTYPEs.
10538 * config/i386/sse.md (castmode): Add 512-bit modes.
10539 (AVX512MODE2P): New.
10540 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
10541 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
10542
10543 2014-08-15 Richard Biener <rguenther@suse.de>
10544
10545 * fold-const.c (tree_swap_operands_p): Put all constants
10546 last, also strip sign-changing NOPs when considering further
10547 canonicalization. Canonicalize also when optimizing for size.
10548
10549 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10550
10551 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
10552 one_match > zero_match case to just before simple_sequence.
10553
10554 2014-08-15 Richard Biener <rguenther@suse.de>
10555
10556 * data-streamer.h (streamer_string_index, string_for_index):
10557 Remove.
10558 * data-streamer-out.c (streamer_string_index): Make static.
10559 * data-streamer-in.c (string_for_index): Likewise.
10560 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
10561 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
10562
10563 2014-08-15 Richard Biener <rguenther@suse.de>
10564
10565 PR tree-optimization/62031
10566 * tree-data-ref.c (dr_analyze_indices): Do not set
10567 DR_UNCONSTRAINED_BASE.
10568 (dr_may_alias_p): All indirect accesses have to go the
10569 formerly DR_UNCONSTRAINED_BASE path.
10570 * tree-data-ref.h (struct indices): Remove
10571 unconstrained_base member.
10572 (DR_UNCONSTRAINED_BASE): Remove.
10573
10574 2014-08-15 Jakub Jelinek <jakub@redhat.com>
10575
10576 PR middle-end/62092
10577 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
10578 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
10579 in OMP_CLAUSE_MAP in some outer target region.
10580
10581 2014-08-15 Bin Cheng <bin.cheng@arm.com>
10582
10583 * tree-ssa-loop-ivopts.c (ivopts_data): New field
10584 name_expansion_cache.
10585 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
10586 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
10587 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
10588 (difference_cannot_overflow_p): New parameter. Use affine
10589 expansion for equality check.
10590 (iv_elimination_compare_lt): Pass new argument.
10591
10592 2014-08-14 DJ Delorie <dj@redhat.com>
10593
10594 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
10595 variables to the accumulator.
10596
10597 * config/rl78/predicates.md (rl78_near_mem_operand): New.
10598 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
10599 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
10600 with far-far moves.
10601
10602 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
10603 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
10604 (umulqihi3_virt): Likewise.
10605 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
10606 (umulqihi3_real): Likewise.
10607
10608 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
10609
10610 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
10611
10612 PR tree-optimization/62091
10613 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
10614 function_entry_reached.
10615 (walk_aliased_vdefs): Clear it here.
10616 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
10617
10618 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
10619
10620 * ipa-utils.h (compare_virtual_tables): Declare.
10621 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
10622
10623 2014-08-14 Marek Polacek <polacek@redhat.com>
10624
10625 DR 458
10626 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
10627 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
10628
10629 2014-08-14 Tom de Vries <tom@codesourcery.com>
10630
10631 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
10632
10633 2014-08-14 Tom de Vries <tom@codesourcery.com>
10634
10635 PR rtl-optimization/62004
10636 PR rtl-optimization/62030
10637 * ifcvt.c (rtx_interchangeable_p): New function.
10638 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
10639 * emit-rtl.h (mem_attrs_eq_p): Declare.
10640
10641 2014-08-14 Roman Gareev <gareevroman@gmail.com>
10642
10643 * graphite-scop-detection.c:
10644 Add inclusion of cp-tree.h.
10645 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
10646 in case they are pointers to object types
10647
10648 2014-08-14 Richard Biener <rguenther@suse.de>
10649
10650 * BASE-VER: Change to 5.0.0
10651
10652 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10653 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10654 Anna Tikhonova <anna.tikhonova@intel.com>
10655 Ilya Tocar <ilya.tocar@intel.com>
10656 Andrey Turetskiy <andrey.turetskiy@intel.com>
10657 Ilya Verbin <ilya.verbin@intel.com>
10658 Kirill Yukhin <kirill.yukhin@intel.com>
10659 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10660
10661 * config/i386/sse.md (define_mode_attr avx512): New.
10662 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
10663 V4DI modes.
10664 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
10665 (define_mode_attr ssse3_avx2): Ditto.
10666 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
10667 (define_mode_attr avx2_avx512bw): New.
10668 (define_mode_attr ssedoublemodelower): New.
10669 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
10670 V32HI, V64QI modes.
10671 (define_mode_attr ssebytemode): Allow V8DI modes.
10672 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
10673 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
10674 (define_mode_attr ssePSmode2): New.
10675 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
10676 V16HI, V32HI modes.
10677 (define_mode_attr dbpsadbwmode): New.
10678 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
10679 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
10680 (vi8_sse4_1_avx2_avx512): New.
10681 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
10682 mode attribute.
10683 (define_mode_attr blendbits): Move before its immediate use.
10684
10685 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10686 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10687 Anna Tikhonova <anna.tikhonova@intel.com>
10688 Ilya Tocar <ilya.tocar@intel.com>
10689 Andrey Turetskiy <andrey.turetskiy@intel.com>
10690 Ilya Verbin <ilya.verbin@intel.com>
10691 Kirill Yukhin <kirill.yukhin@intel.com>
10692 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10693
10694 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
10695 * config/i386/subst.md
10696 (define_mode_iterator SUBST_V): Update.
10697 (define_mode_iterator SUBST_A): Ditto.
10698 (define_subst_attr "mask_operand7"): New.
10699 (define_subst_attr "mask_operand10"): New.
10700 (define_subst_attr "mask_operand_arg34") : New.
10701 (define_subst_attr "mask_expand_op3"): New.
10702 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
10703 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
10704 (define_subst_attr "mask_avx512vl_condition"): New.
10705 (define_subst_attr "round_mask_operand4"): Ditto.
10706 (define_subst_attr "round_mask_scalar_op3"): Delete.
10707 (define_subst_attr "round_mask_op4"): New.
10708 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
10709 V16SImode.
10710 (define_subst_attr "round_modev8sf_condition"): New.
10711 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
10712 <MODE>mode.
10713 (define_subst_attr "round_saeonly_mask_operand4"): New.
10714 (define_subst_attr "round_saeonly_mask_op4"): New.
10715 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
10716 V8DImode, V16SImode.
10717 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
10718 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
10719 (define_subst_attr "mask_expand4_args"): New.
10720 (define_subst "mask_expand4"): New.
10721
10722 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10723 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10724 Anna Tikhonova <anna.tikhonova@intel.com>
10725 Ilya Tocar <ilya.tocar@intel.com>
10726 Andrey Turetskiy <andrey.turetskiy@intel.com>
10727 Ilya Verbin <ilya.verbin@intel.com>
10728 Kirill Yukhin <kirill.yukhin@intel.com>
10729 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10730
10731 * config/i386/i386.md
10732 (define_attr "isa"): Add avx512bw,noavx512bw.
10733 (define_attr "enabled"): Ditto.
10734 (define_split): Add 32/64-bit mask logic.
10735 (define_insn "*k<logic>qi"): New.
10736 (define_insn "*k<logic>hi"): New.
10737 (define_insn "*anddi_1"): Add mask version.
10738 (define_insn "*andsi_1"): Ditto.
10739 (define_insn "*<code><mode>_1"): Ditto.
10740 (define_insn "*<code>hi_1"): Ditto.
10741 (define_insn "kxnor<mode>"): New.
10742 (define_insn "kunpcksi"): New.
10743 (define_insn "kunpckdi"): New.
10744 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
10745 (define_insn "*one_cmplhi2_1"): Ditto.
10746
10747 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10748 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10749 Anna Tikhonova <anna.tikhonova@intel.com>
10750 Ilya Tocar <ilya.tocar@intel.com>
10751 Andrey Turetskiy <andrey.turetskiy@intel.com>
10752 Ilya Verbin <ilya.verbin@intel.com>
10753 Kirill Yukhin <kirill.yukhin@intel.com>
10754 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10755
10756 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
10757 V32HImode.
10758
10759 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10760 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10761 Anna Tikhonova <anna.tikhonova@intel.com>
10762 Ilya Tocar <ilya.tocar@intel.com>
10763 Andrey Turetskiy <andrey.turetskiy@intel.com>
10764 Ilya Verbin <ilya.verbin@intel.com>
10765 Kirill Yukhin <kirill.yukhin@intel.com>
10766 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10767
10768 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
10769 registers.
10770 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
10771 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
10772 xmm/ymm16+ when availble.
10773 * config/i386/i386.h
10774 (HARD_REGNO_NREGS): Add mask regs.
10775 (VALID_AVX512F_REG_MODE): Ditto.
10776 (VALID_AVX512F_REG_MODE) : Define.
10777 (VALID_MASK_AVX512BW_MODE): Ditto.
10778 (reg_class) (MASK_REG_P(X)): Define.
10779 * config/i386/i386.md: Do not split long moves with mask register,
10780 use kmovb if avx512bw is availible.
10781 (movdi_internal): Handle mask registers.
10782
10783 2014-08-14 Richard Biener <rguenther@suse.de>
10784
10785 PR tree-optimization/62081
10786 * tree-ssa-loop.c (pass_fix_loops): New pass.
10787 (pass_tree_loop::gate): Do not fixup loops here.
10788 * tree-pass.h (make_pass_fix_loops): Declare.
10789 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
10790
10791 2014-08-14 Richard Biener <rguenther@suse.de>
10792
10793 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
10794 (type_hash_canon): ... this and avoid 2nd lookup for the add.
10795
10796 2014-08-14 Richard Biener <rguenther@suse.de>
10797
10798 PR tree-optimization/62090
10799 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
10800 (fold_builtin_2): Do not fold sprintf.
10801 (fold_builtin_3): Likewise.
10802 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
10803 moved from builtins.c.
10804 (gimple_fold_builtin): Fold sprintf.
10805
10806 2014-08-14 Richard Biener <rguenther@suse.de>
10807
10808 PR rtl-optimization/62079
10809 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
10810 run cleanup_cfg.
10811
10812 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
10813
10814 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
10815 current_function_decl.
10816
10817 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
10818
10819 * cgraph.c (cgraph_node::function_symbol): Fix wrong
10820 cgraph_function_node to cgraph_node::function_symbol
10821 refactoring.
10822
10823 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
10824
10825 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
10826 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
10827
10828 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
10829
10830 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
10831 warning.
10832
10833 2014-08-13 Roman Gareev <gareevroman@gmail.com>
10834
10835 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
10836 generator.
10837
10838 2014-08-12 Jakub Jelinek <jakub@redhat.com>
10839
10840 PR target/62025
10841 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
10842 any registers that are used in mem_insn.
10843
10844 2014-08-12 Steve Ellcey <sellcey@mips.com>
10845
10846 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
10847
10848 2014-08-12 Steve Ellcey <sellcey@mips.com>
10849
10850 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
10851 (MULTILIB_DIRNAMES): Ditto.
10852 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
10853 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
10854 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
10855 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
10856 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
10857 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
10858
10859 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10860
10861 PR target/61413
10862 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
10863 of __ARM_SIZEOF_WCHAR_T.
10864
10865 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10866
10867 PR target/62098
10868 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
10869 Remove unnecessary attributes.
10870
10871 2014-08-12 Yury Gribov <y.gribov@samsung.com>
10872
10873 * internal-fn.c (init_internal_fns): Fix off-by-one.
10874
10875 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
10876 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10877 Anna Tikhonova <anna.tikhonova@intel.com>
10878 Ilya Tocar <ilya.tocar@intel.com>
10879 Andrey Turetskiy <andrey.turetskiy@intel.com>
10880 Ilya Verbin <ilya.verbin@intel.com>
10881 Kirill Yukhin <kirill.yukhin@intel.com>
10882 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10883
10884 * config/i386/i386.c (standard_sse_constant_opcode): Use
10885 vpxord/vpternlog if avx512 is availible.
10886
10887 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
10888
10889 PR middle-end/62103
10890 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
10891 bitfields, that is when size doesn't match the size of type or the
10892 size of the constructor.
10893
10894 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10895
10896 * config/rs6000/constraints.md (wh constraint): New constraint,
10897 for FP registers if direct move is available.
10898 (wi constraint): New constraint, for VSX/FP registers that can
10899 handle 64-bit integers.
10900 (wj constraint): New constraint for VSX/FP registers that can
10901 handle 64-bit integers for direct moves.
10902 (wk constraint): New constraint for VSX/FP registers that can
10903 handle 64-bit doubles for direct moves.
10904 (wy constraint): Make documentation match implementation.
10905
10906 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
10907 scalar_in_vmx_p field to simplify tests of whether SFmode or
10908 DFmode can go in the Altivec registers.
10909 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
10910 (rs6000_setup_reg_addr_masks): Likewise.
10911 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
10912 field, and wh/wi/wj/wk constraints.
10913 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
10914 the wh/wi/wj/wk constraints.
10915 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
10916 upper registers, prefer VSX registers unless the operation is a
10917 memory operation with REG+OFFSET addressing.
10918
10919 * config/rs6000/vsx.md (VSr mode attribute): Add support for
10920 DImode. Change SFmode to use ww constraint instead of d to allow
10921 SF registers in the upper registers.
10922 (VSr2): Likewise.
10923 (VSr3): Likewise.
10924 (VSr5): Fix thinko in comment.
10925 (VSa): New mode attribute that is an alternative to wa, that
10926 returns the VSX register class that a mode can go in, but may not
10927 be the preferred register class.
10928 (VS_64dm): New mode attribute for appropriate register classes for
10929 referencing 64-bit elements of vectors for direct moves and normal
10930 moves.
10931 (VS_64reg): Likewise.
10932 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
10933 register allocator to only registers the data type can handle.
10934 (vsx_le_perm_load_<mode>): Likewise.
10935 (vsx_le_perm_store_<mode>): Likewise.
10936 (vsx_xxpermdi2_le_<mode>): Likewise.
10937 (vsx_xxpermdi4_le_<mode>): Likewise.
10938 (vsx_lxvd2x2_le_<mode>): Likewise.
10939 (vsx_lxvd2x4_le_<mode>): Likewise.
10940 (vsx_stxvd2x2_le_<mode>): Likewise.
10941 (vsx_add<mode>3): Likewise.
10942 (vsx_sub<mode>3): Likewise.
10943 (vsx_mul<mode>3): Likewise.
10944 (vsx_div<mode>3): Likewise.
10945 (vsx_tdiv<mode>3_internal): Likewise.
10946 (vsx_fre<mode>2): Likewise.
10947 (vsx_neg<mode>2): Likewise.
10948 (vsx_abs<mode>2): Likewise.
10949 (vsx_nabs<mode>2): Likewise.
10950 (vsx_smax<mode>3): Likewise.
10951 (vsx_smin<mode>3): Likewise.
10952 (vsx_sqrt<mode>2): Likewise.
10953 (vsx_rsqrte<mode>2): Likewise.
10954 (vsx_tsqrt<mode>2_internal): Likewise.
10955 (vsx_fms<mode>4): Likewise.
10956 (vsx_nfma<mode>4): Likewise.
10957 (vsx_eq<mode>): Likewise.
10958 (vsx_gt<mode>): Likewise.
10959 (vsx_ge<mode>): Likewise.
10960 (vsx_eq<mode>_p): Likewise.
10961 (vsx_gt<mode>_p): Likewise.
10962 (vsx_ge<mode>_p): Likewise.
10963 (vsx_xxsel<mode>): Likewise.
10964 (vsx_xxsel<mode>_uns): Likewise.
10965 (vsx_copysign<mode>3): Likewise.
10966 (vsx_float<VSi><mode>2): Likewise.
10967 (vsx_floatuns<VSi><mode>2): Likewise.
10968 (vsx_fix_trunc<mode><VSi>2): Likewise.
10969 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
10970 (vsx_x<VSv>r<VSs>i): Likewise.
10971 (vsx_x<VSv>r<VSs>ic): Likewise.
10972 (vsx_btrunc<mode>2): Likewise.
10973 (vsx_b2trunc<mode>2): Likewise.
10974 (vsx_floor<mode>2): Likewise.
10975 (vsx_ceil<mode>2): Likewise.
10976 (vsx_<VS_spdp_insn>): Likewise.
10977 (vsx_xscvspdp): Likewise.
10978 (vsx_xvcvspuxds): Likewise.
10979 (vsx_float_fix_<mode>2): Likewise.
10980 (vsx_set_<mode>): Likewise.
10981 (vsx_extract_<mode>_internal1): Likewise.
10982 (vsx_extract_<mode>_internal2): Likewise.
10983 (vsx_extract_<mode>_load): Likewise.
10984 (vsx_extract_<mode>_store): Likewise.
10985 (vsx_splat_<mode>): Likewise.
10986 (vsx_xxspltw_<mode>): Likewise.
10987 (vsx_xxspltw_<mode>_direct): Likewise.
10988 (vsx_xxmrghw_<mode>): Likewise.
10989 (vsx_xxmrglw_<mode>): Likewise.
10990 (vsx_xxsldwi_<mode>): Likewise.
10991 (vsx_xscvdpspn): Tighten constraints to only use register classes
10992 the types use.
10993 (vsx_xscvspdpn): Likewise.
10994 (vsx_xscvdpspn_scalar): Likewise.
10995
10996 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
10997 wj, and wk constraints.
10998 (GPR_REG_CLASS_P): New helper macro for register classes targeting
10999 general purpose registers.
11000
11001 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
11002 direct moves.
11003 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
11004 DImode instead of wm. Use wk constraint for direct move of DFmode
11005 instead of wm.
11006 (extendsidi2_lfiwax): Likewise.
11007 (lfiwax): Likewise.
11008 (lfiwzx): Likewise.
11009 (movdi_internal64): Likewise.
11010
11011 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
11012 wk constraints. Make the wy constraint documentation match them
11013 implementation.
11014
11015 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
11016
11017 Replacement of isl_int by isl_val
11018 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
11019 (compute_bounds_for_param): use isl_val instead of isl_int
11020 (compute_bounds_for_loop): likewise
11021 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
11022 (build_linearized_memory_access): use isl_val instead of isl_int
11023 (pdr_stride_in_loop): likewise
11024 * graphite-optimize-isl.c:
11025 (getPrevectorMap): use isl_val instead of isl_int
11026 * graphite-poly.c:
11027 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
11028 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
11029 (extern the_isl_ctx): declare
11030 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
11031 (extract_affine_gmp): likewise
11032 (wrap): likewise
11033 (build_loop_iteration_domains): likewise
11034 (add_param_constraints): likewise
11035
11036 2014-08-11 Richard Biener <rguenther@suse.de>
11037
11038 PR tree-optimization/62075
11039 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
11040 handle uses in patterns.
11041
11042 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11043 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11044 Anna Tikhonova <anna.tikhonova@intel.com>
11045 Ilya Tocar <ilya.tocar@intel.com>
11046 Andrey Turetskiy <andrey.turetskiy@intel.com>
11047 Ilya Verbin <ilya.verbin@intel.com>
11048 Kirill Yukhin <kirill.yukhin@intel.com>
11049 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11050
11051 * common/config/i386/i386-common.c
11052 (OPTION_MASK_ISA_AVX512VL_SET): Define.
11053 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
11054 (ix86_handle_option): Handle OPT_mavx512vl.
11055 * config/i386/cpuid.h (bit_AVX512VL): Define.
11056 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
11057 set -mavx512vl accordingly.
11058 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11059 OPTION_MASK_ISA_AVX512VL.
11060 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
11061 (ix86_option_override_internal): Define PTA_AVX512VL, handle
11062 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
11063 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
11064 * config/i386/i386.h (TARGET_AVX512VL): Define.
11065 (TARGET_AVX512VL_P(x)): Ditto.
11066 * config/i386/i386.opt: Add mavx512vl.
11067
11068 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
11069
11070 PR tree-optimization/62073
11071 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
11072 a basic block.
11073
11074 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11075 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11076 Anna Tikhonova <anna.tikhonova@intel.com>
11077 Ilya Tocar <ilya.tocar@intel.com>
11078 Andrey Turetskiy <andrey.turetskiy@intel.com>
11079 Ilya Verbin <ilya.verbin@intel.com>
11080 Kirill Yukhin <kirill.yukhin@intel.com>
11081 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11082
11083 * common/config/i386/i386-common.c
11084 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
11085 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
11086 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
11087 (ix86_handle_option): Handle OPT_mavx512bw.
11088 * config/i386/cpuid.h (bit_AVX512BW): Define.
11089 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
11090 set -mavx512bw accordingly.
11091 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11092 OPTION_MASK_ISA_AVX512BW.
11093 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
11094 (ix86_option_override_internal): Define PTA_AVX512BW, handle
11095 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
11096 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
11097 * config/i386/i386.h (TARGET_AVX512BW): Define.
11098 (TARGET_AVX512BW_P(x)): Ditto.
11099 * config/i386/i386.opt: Add mavx512bw.
11100
11101 2014-08-11 Richard Biener <rguenther@suse.de>
11102
11103 PR tree-optimization/62070
11104 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
11105 Remove SSA checking.
11106
11107 2014-08-11 Yury Gribov <y.gribov@samsung.com>
11108
11109 * asan.c (asan_check_flags): New enum.
11110 (build_check_stmt_with_calls): Removed function.
11111 (build_check_stmt): Split inlining logic to
11112 asan_expand_check_ifn.
11113 (instrument_derefs): Rename parameter.
11114 (instrument_mem_region_access): Rename parameter.
11115 (instrument_strlen_call): Likewise.
11116 (asan_expand_check_ifn): New function.
11117 (asan_instrument): Remove old code.
11118 (pass_sanopt::execute): Change handling of
11119 asan-instrumentation-with-call-threshold.
11120 (asan_clear_shadow): Fix formatting.
11121 (asan_function_start): Likewise.
11122 (asan_emit_stack_protection): Likewise.
11123 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
11124 Update description.
11125 * internal-fn.c (expand_ASAN_CHECK): New function.
11126 * internal-fn.def (ASAN_CHECK): New internal function.
11127 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
11128 Update description.
11129 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
11130 * tree.c: Small comment fix.
11131
11132 2014-08-11 Yury Gribov <y.gribov@samsung.com>
11133
11134 * gimple.c (gimple_call_fnspec): Support internal functions.
11135 (gimple_call_return_flags): Use const.
11136 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
11137 * internal-fn.def: Add fnspec information.
11138 * internal-fn.h (internal_fn_fnspec): New function.
11139 (init_internal_fns): Declare new function.
11140 * internal-fn.c (internal_fn_fnspec_array): New global variable.
11141 (init_internal_fns): New function.
11142 * tree-core.h: Update macro call.
11143 * tree.c (build_common_builtin_nodes): Initialize internal fns.
11144
11145 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
11146
11147 * lto-streamer.h (struct output_block::symbol): Change from
11148 struct symtab_node to plain symtab_node.
11149 (referenced_from_this_partition_p): Change first parameter
11150 from struct symtab_node to plain symtab_node.
11151
11152 2014-08-10 Marek Polacek <polacek@redhat.com>
11153
11154 PR c/51849
11155 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
11156
11157 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
11158
11159 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
11160 DECL correctly; do not give up on types in static storage.
11161
11162 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
11163
11164 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
11165
11166 2014-08-09 Roman Gareev <gareevroman@gmail.com>
11167
11168 * graphite-isl-ast-to-gimple.c:
11169 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
11170
11171 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
11172
11173 2014-08-08 Guozhi Wei <carrot@google.com>
11174
11175 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
11176
11177 2014-08-08 Cary Coutant <ccoutant@google.com>
11178
11179 * dwarf2out.c (get_skeleton_type_unit): Remove.
11180 (output_skeleton_debug_sections): Remove skeleton type units.
11181 (output_comdat_type_unit): Likewise.
11182 (dwarf2out_finish): Likewise.
11183
11184 2014-08-07 Yi Yang <ahyangyi@google.com>
11185
11186 * predict.c (expr_expected_value_1): Remove the redundant assignment.
11187
11188 2014-08-08 Richard Biener <rguenther@suse.de>
11189
11190 * lto-streamer.h (struct lto_input_block): Make it a class
11191 with a constructor.
11192 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
11193 (struct lto_function_header, struct lto_simple_header,
11194 struct lto_simple_header_with_strings,
11195 struct lto_decl_header, struct lto_function_header): Make
11196 a simple inheritance hieararchy. Remove unused fields.
11197 (struct lto_asm_header): Remove.
11198 * lto-streamer-out.c (produce_asm): Adjust.
11199 (lto_output_toplevel_asms): Likewise.
11200 (produce_asm_for_decls): Likewise.
11201 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
11202 * data-streamer-in.c (string_for_index): Likewise.
11203 * ipa-inline-analysis.c (inline_read_section): Likewise.
11204 * ipa-prop.c (ipa_prop_read_section): Likewise.
11205 (read_replacements_section): Likewise.
11206 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
11207 * lto-section-in.c (lto_create_simple_input_block): Likewise.
11208 (lto_destroy_simple_input_block): Likewise.
11209 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
11210 (lto_input_toplevel_asms): Likewise.
11211
11212 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
11213 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11214 Anna Tikhonova <anna.tikhonova@intel.com>
11215 Ilya Tocar <ilya.tocar@intel.com>
11216 Andrey Turetskiy <andrey.turetskiy@intel.com>
11217 Ilya Verbin <ilya.verbin@intel.com>
11218 Kirill Yukhin <kirill.yukhin@intel.com>
11219 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11220
11221 * common/config/i386/i386-common.c
11222 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
11223 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
11224 (ix86_handle_option): Handle OPT_mavx512dq.
11225 * config/i386/cpuid.h (bit_AVX512DQ): Define.
11226 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
11227 set -mavx512dq accordingly.
11228 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11229 OPTION_MASK_ISA_AVX512DQ.
11230 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
11231 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
11232 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
11233 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
11234 * config/i386/i386.h (TARGET_AVX512DQ): Define.
11235 (TARGET_AVX512DQ_P(x)): Ditto.
11236 * config/i386/i386.opt: Add mavx512dq.
11237
11238 2014-08-08 Richard Biener <rguenther@suse.de>
11239
11240 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
11241 target_percent, target_percent_s): Export.
11242 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
11243 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
11244 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
11245 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
11246 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
11247 Move to gimple-fold.c.
11248 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
11249 strcat and strcpy.
11250 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
11251 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
11252 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
11253 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
11254 (rewrite_call_expr_array): Remove.
11255 (fold_builtin_sprintf_chk): Likewise.
11256 (fold_builtin_snprintf_chk): Likewise.
11257 (fold_builtin_varargs): Remove handling of sprintf_chk,
11258 vsprintf_chk, snprintf_chk and vsnprintf_chk.
11259 (gimple_fold_builtin_sprintf_chk): Remove.
11260 (gimple_fold_builtin_snprintf_chk): Likewise.
11261 (gimple_fold_builtin_varargs): Likewise.
11262 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
11263 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
11264 * gimple.c (gimple_seq_add_seq_without_update): New function.
11265 * gimple.h (gimple_seq_add_seq_without_update): Declare.
11266 * gimple-fold.c: Include output.h.
11267 (gsi_replace_with_seq_vops): New function, split out from ...
11268 (gimplify_and_update_call_from_tree): ... here.
11269 (replace_call_with_value): New function.
11270 (replace_call_with_call_and_fold): Likewise.
11271 (var_decl_component_p): Moved from builtins.c.
11272 (gimple_fold_builtin_memory_op): Moved from builtins.c
11273 fold_builtin_memory_op and rewritten to GIMPLE.
11274 (gimple_fold_builtin_memset): Likewise.
11275 (gimple_fold_builtin_strcpy): Likewise.
11276 (gimple_fold_builtin_strncpy): Likewise.
11277 (gimple_fold_builtin_strcat): Likewise.
11278 (gimple_fold_builtin_fputs): Likewise.
11279 (gimple_fold_builtin_memory_chk): Likewise.
11280 (gimple_fold_builtin_stxcpy_chk): Likewise.
11281 (gimple_fold_builtin_stxncpy_chk): Likewise.
11282 (gimple_fold_builtin_snprintf_chk): Likewise.
11283 (gimple_fold_builtin_sprintf_chk): Likewise.
11284 (gimple_fold_builtin_strlen): New function.
11285 (gimple_fold_builtin_with_strlen): New function split out from
11286 gimple_fold_builtin.
11287 (gimple_fold_builtin): Change signature and handle
11288 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
11289 here. Call gimple_fold_builtin_with_strlen.
11290 (gimple_fold_call): Adjust.
11291
11292 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
11293
11294 * calls.c (precompute_arguments): Check
11295 promoted_for_signed_and_unsigned_p and set the promoted mode.
11296 (promoted_for_signed_and_unsigned_p): New function.
11297 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
11298 and set the promoted mode.
11299 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
11300 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
11301 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
11302
11303
11304 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
11305
11306 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
11307 instead of SUBREG_PROMOTED_UNSIGNED_SET.
11308 (expand_call): Likewise.
11309 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
11310 to get promoted mode.
11311 * combine.c (record_promoted_value): Skip > 0 comparison with
11312 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
11313 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
11314 of SUBREG_PROMOTED_UNSIGNED_P.
11315 (convert_modes): Likewise.
11316 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
11317 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
11318 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
11319 SUBREG_PROMOTED_UNSIGNED_SET.
11320 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
11321 instead of SUBREG_PROMOTED_UNSIGNED_SET.
11322 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
11323 SUBREG_PROMOTED_SET.
11324 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
11325 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
11326 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
11327 of SUBREG_PROMOTED_UNSIGNED_P.
11328 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
11329 (SUBREG_PROMOTED_SET): New define.
11330 (SUBREG_PROMOTED_GET): Likewise.
11331 (SUBREG_PROMOTED_SIGN): Likewise.
11332 (SUBREG_PROMOTED_SIGNED_P): Likewise.
11333 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
11334 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
11335 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
11336 instead of SUBREG_PROMOTED_UNSIGNED_GET.
11337 (nonzero_bits1): Skip > 0 comparison with the results as
11338 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
11339 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
11340 of !SUBREG_PROMOTED_UNSIGNED_P.
11341 * simplify-rtx.c (simplify_unary_operation_1): Use new
11342 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
11343 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
11344 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
11345 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
11346
11347 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
11348
11349 * ipa-devirt.c: Include gimple-pretty-print.h
11350 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
11351 further tests.
11352 (decl_maybe_in_construction_p): Fix conditional on cdtor check
11353 (get_polymorphic_call_info): Fix return value
11354 (type_change_info): New sturcture based on ipa-prop
11355 variant.
11356 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
11357 based on ipa-prop variant.
11358 (extr_type_from_vtbl_ptr_store): New function
11359 based on ipa-prop variant.
11360 (record_known_type): New function.
11361 (check_stmt_for_type_change): New function.
11362 (get_dynamic_type): New function.
11363 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
11364 * tree-ssa-pre.c: ipa-utils.h
11365 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
11366 machinery; sanity check with ipa-prop devirtualization.
11367 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
11368 polymorphic flag.
11369
11370 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
11371
11372 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
11373 * alias.c, cfgexpand.c, cgraphbuild.c,
11374 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
11375 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
11376 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
11377 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
11378 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
11379 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11380 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
11381 dse.c, except.c, gengtype.c, gimple-expr.c,
11382 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
11383 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
11384 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
11385 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
11386 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
11387 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
11388 pointer-set.h.
11389 * pointer-set.c: Remove file.
11390 * pointer-set.h: Remove file.
11391
11392 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11393
11394 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
11395 * config/arm/types.md (f_sels, f_seld): Delete.
11396
11397 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11398
11399 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
11400 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
11401 (aarch64_movdi_<mode>high): Likewise.
11402 (aarch64_mov<mode>high_di): Likewise.
11403 (aarch64_movdi_<mode>low): Likewise.
11404 (aarch64_mov<mode>low_di): Likewise.
11405 (aarch64_movtilow_tilow): Likewise.
11406 Add comment explaining usage of fp,simd attributes and of
11407 TARGET_FLOAT and TARGET_SIMD.
11408
11409 2014-08-07 Ian Bolton <ian.bolton@arm.com>
11410 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11411
11412 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
11413 Use MOVN when one of the half-words is 0xffff.
11414
11415 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
11416
11417 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
11418
11419 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11420
11421 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
11422 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
11423 (rfs_str): String corresponding to RFS_* constants.
11424 (rank_for_schedule_stats_t): New typedef.
11425 (rank_for_schedule_stats): New static variable.
11426 (rfs_result): New static function.
11427 (rank_for_schedule): Track statistics for deciding heuristics.
11428 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
11429 static functions.
11430 (ready_sort): Use them for debug printouts.
11431 (schedule_block): Init statistics state. Print statistics on
11432 rank_for_schedule decisions.
11433
11434 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11435
11436 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
11437
11438 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
11439
11440 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
11441 constraint.
11442
11443 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
11444
11445 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
11446 function to not conflict.
11447 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
11448 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
11449 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
11450 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
11451 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
11452 of pointer_map.
11453
11454 2014-08-07 Marek Polacek <polacek@redhat.com>
11455
11456 * fold-const.c (fold_binary_loc): Add folding of
11457 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
11458
11459 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
11460
11461 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
11462 instead of type size.
11463 (ASM_FINISH_DECLARE_OBJECT): Likewise.
11464
11465 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
11466
11467 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
11468 (*thumb1_movqi_insn): Likewise.
11469 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
11470
11471 2014-08-07 Tom de Vries <tom@codesourcery.com>
11472
11473 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
11474 (glibc_2_11_or_earlier): Remove effective-target keywords.
11475
11476 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
11477
11478 * config/arm/arm.c (bdesc_2arg): Fix typo.
11479 (arm_atomic_assign_expand_fenv): Remove The default implementation.
11480
11481 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
11482
11483 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
11484
11485 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
11486
11487 PR debug/61923
11488 * haifa-sched.c (advance_one_cycle): Fix dump.
11489 (schedule_block): Don't advance cycle if we are already at the
11490 beginning of the cycle.
11491
11492 2014-08-06 Martin Jambor <mjambor@suse.cz>
11493
11494 PR ipa/61393
11495 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
11496
11497 2014-08-06 Richard Biener <rguenther@suse.de>
11498
11499 PR lto/62034
11500 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
11501 SCCs here.
11502 (lto_input_tree): Pop SCCs here.
11503
11504 2014-08-06 Richard Biener <rguenther@suse.de>
11505
11506 PR tree-optimization/61320
11507 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
11508 handle misaligned loads.
11509
11510 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
11511
11512 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
11513 (aarch64_expand_vec_perm_const): Check for dup before zip.
11514
11515 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11516
11517 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
11518 CONST_INT_P instead of GET_CODE and compare.
11519 (aarch64_select_cc_mode): Likewise.
11520 (aarch64_print_operand): Likewise.
11521 (aarch64_rtx_costs): Likewise.
11522 (aarch64_simd_valid_immediate): Likewise.
11523 (aarch64_simd_check_vect_par_cnst_half): Likewise.
11524 (aarch64_simd_emit_pair_result_insn): Likewise.
11525
11526 2014-08-05 David Malcolm <dmalcolm@redhat.com>
11527
11528 * gdbhooks.py (find_gcc_source_dir): New helper function.
11529 (class PassNames): New class, locating and parsing passes.def.
11530 (class BreakOnPass): New command "break-on-pass".
11531
11532 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
11533
11534 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
11535 getting olde.
11536
11537 2014-08-05 Richard Biener <rguenther@suse.de>
11538
11539 PR rtl-optimization/61672
11540 * emit-rtl.h (mem_attrs_eq_p): Declare.
11541 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
11542 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
11543 * cfgcleanup.c (merge_memattrs): Likewise.
11544 Include emit-rtl.h.
11545
11546 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11547
11548 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
11549 rather than singleton vectors.
11550 (vqdmlsls_lane_s32): Likewise.
11551
11552 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11553
11554 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
11555 Use VSDQ_HSI mode iterator.
11556 (aarch64_sqrdmulh_laneq<mode>): Likewise.
11557 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
11558 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
11559 Use BUILTIN_VDQHS macro.
11560 (sqrdmulh_laneq): Likewise.
11561 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
11562 (vqdmlals_laneq_s32): Likewise.
11563 (vqdmlslh_laneq_s16): Likewise.
11564 (vqdmlsls_laneq_s32): Likewise.
11565 (vqdmulhh_laneq_s16): Likewise.
11566 (vqdmulhs_laneq_s32): Likewise.
11567 (vqrdmulhh_laneq_s16): Likewise.
11568 (vqrdmulhs_laneq_s32): Likewise.
11569
11570 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11571
11572 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
11573 (vmuld_laneq_f64): Likewise.
11574 (vmuls_laneq_f32): Likewise.
11575 (vmul_n_f64): Likewise.
11576 (vmuld_lane_f64): Reimplement in C.
11577 (vmuls_lane_f32): Likewise.
11578
11579 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11580
11581 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
11582 to reservation.
11583 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
11584
11585 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11586
11587 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
11588 (rbitsi2): Likewise.
11589 (*arm_rev): Set predicable and predicable_short_it attributes.
11590
11591 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11592
11593 * convert.c (convert_to_integer): Guard transformation to lrint by
11594 -fno-math-errno.
11595
11596 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
11597
11598 * config/aarch64/aarch64-builtins.c
11599 (aarch64_simd_builtin_type_mode): Delete.
11600 (v8qi_UP): Remap to V8QImode.
11601 (v4hi_UP): Remap to V4HImode.
11602 (v2si_UP): Remap to V2SImode.
11603 (v2sf_UP): Remap to V2SFmode.
11604 (v1df_UP): Remap to V1DFmode.
11605 (di_UP): Remap to DImode.
11606 (df_UP): Remap to DFmode.
11607 (v16qi_UP):V16QImode.
11608 (v8hi_UP): Remap to V8HImode.
11609 (v4si_UP): Remap to V4SImode.
11610 (v4sf_UP): Remap to V4SFmode.
11611 (v2di_UP): Remap to V2DImode.
11612 (v2df_UP): Remap to V2DFmode.
11613 (ti_UP): Remap to TImode.
11614 (ei_UP): Remap to EImode.
11615 (oi_UP): Remap to OImode.
11616 (ci_UP): Map to CImode.
11617 (xi_UP): Remap to XImode.
11618 (si_UP): Remap to SImode.
11619 (sf_UP): Remap to SFmode.
11620 (hi_UP): Remap to HImode.
11621 (qi_UP): Remap to QImode.
11622 (aarch64_simd_builtin_datum): Make mode a machine_mode.
11623 (VAR1): Build builtin name.
11624 (aarch64_init_simd_builtins): Remove dead code.
11625
11626 2014-08-05 Roman Gareev <gareevroman@gmail.com>
11627
11628 * graphite-isl-ast-to-gimple.c:
11629 (set_options): New function.
11630 (scop_to_isl_ast): Add calling of set_options.
11631
11632 2014-08-05 Jakub Jelinek <jakub@redhat.com>
11633
11634 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
11635 (analyze_iv_to_split_insn): Don't initialize them.
11636 (get_ivts_expr): Removed.
11637 (allocate_basic_variable, insert_base_initialization): Use
11638 SET_SRC instead of *get_ivts_expr.
11639 (split_iv): Use &SET_SRC instead of get_ivts_expr.
11640
11641 2014-08-05 Roman Gareev <gareevroman@gmail.com>
11642
11643 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
11644 (translate_isl_ast_for_loop): Add checking of the
11645 flag_loop_parallelize_all.
11646 (ast_build_before_for): New function.
11647 (scop_to_isl_ast): Add checking of the
11648 flag_loop_parallelize_all.
11649 * graphite-dependences.c: Move the defenition of the
11650 scop_get_dependences from graphite-optimize-isl.c to this file.
11651 (apply_schedule_on_deps): Add checking of the ux's emptiness.
11652 (carries_deps): Add checking of the x's value.
11653 * graphite-optimize-isl.c: Move the defenition of the
11654 scop_get_dependences to graphite-dependences.c.
11655 * graphite-poly.h: Add declarations of scop_get_dependences
11656 and carries_deps.
11657
11658 2014-08-04 Rohit <rohitarulraj@freescale.com>
11659
11660 PR target/60102
11661 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
11662 names.
11663 (alt_reg_names): Likewise.
11664 (rs6000_dwarf_register_span): For SPE high registers, replace
11665 dwarf register numbers with GCC hard register numbers.
11666 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
11667 (rs6000_dbx_register_number): For SPE high registers, return dwarf
11668 register number for the corresponding GCC hard register number.
11669 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
11670 newly added GCC hard register numbers for SPE high registers.
11671 (DWARF_FRAME_REGISTERS): Likewise.
11672 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
11673 (DWARF_FRAME_REGNUM): Likewise.
11674 (FIXED_REGISTERS): Likewise.
11675 (CALL_USED_REGISTERS): Likewise.
11676 (CALL_REALLY_USED_REGISTERS): Likewise.
11677 (REG_ALLOC_ORDER): Likewise.
11678 (enum reg_class): Likewise.
11679 (REG_CLASS_NAMES): Likewise.
11680 (REG_CLASS_CONTENTS): Likewise.
11681 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
11682
11683 2014-08-04 Richard Biener <rguenther@suse.de>
11684
11685 * gimple-fold.h (gimple_fold_builtin): Remove.
11686 * gimple-fold.c (gimple_fold_builtin): Make static.
11687 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
11688 fold_stmt, not gimple_fold_builtin.
11689
11690 2014-08-04 Martin Liska <mliska@suse.cz>
11691
11692 * cgraph.h (csi_end_p): Removed.
11693 (csi_next): Likewise.
11694 (csi_node): Likewise.
11695 (csi_start): Likewise.
11696 (cgraph_node_in_set_p): Likewise.
11697 (cgraph_node_set_size): Likewise.
11698 (vsi_end_p): Likewise.
11699 (vsi_next): Likewise.
11700 (vsi_node): Likewise.
11701 (vsi_start): Likewise.
11702 (varpool_node_set_size): Likewise.
11703 (cgraph_node_set_nonempty_p): Likewise.
11704 (varpool_node_set_nonempty_p): Likewise.
11705 * cgraphunit.c (cgraph_process_new_functions): vec replaces
11706 cgraph_node_set.
11707 * ipa-inline-transform.c: Likewise.
11708 * ipa-utils.c (cgraph_node_set_new): Removed.
11709 (cgraph_node_set_add): Likewise.
11710 (cgraph_node_set_remove): Likewise.
11711 (cgraph_node_set_find): Likewise.
11712 (dump_cgraph_node_set): Likewise.
11713 (debug_cgraph_node_set): Likewise.
11714 (free_cgraph_node_set): Likewise.
11715 (varpool_node_set_new): Likewise.
11716 (varpool_node_set_add): Likewise.
11717 (varpool_node_set_remove): Likewise.
11718 (varpool_node_set_find): Likewise.
11719 (dump_varpool_node_set): Likewise.
11720 (free_varpool_node_set): Likewise.
11721 (debug_varpool_node_set): Likewise.
11722 * tree-emutls.c (struct tls_var_data):
11723 (emutls_index): Removed.
11724 (emutls_decl): Likewise.
11725 (gen_emutls_addr): Function implementation uses newly added
11726 hash_map<varpool_node *, tls_var_data>.
11727 (clear_access_vars): Likewise.
11728 (create_emultls_var): Likewise.
11729 (ipa_lower_emutls): Likewise.
11730 (reset_access): New function.
11731
11732 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11733
11734 * config/i386/i386.c (ix86_option_override_internal): Add
11735 PTA_RDRND and PTA_MOVBE for bdver4.
11736
11737 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11738 James Greenhalgh <james.greenhalgh@arm.com>
11739
11740 * doc/md.texi (clrsb): Document.
11741 (clz): Change reference to x into operand 1.
11742 (ctz): Likewise.
11743 (popcount): Likewise.
11744
11745 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11746
11747 PR target/61713
11748 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
11749 move to subtarget in serial version if result is ignored.
11750
11751 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11752 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11753
11754 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
11755 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
11756 (sched_analyze_insn): Update use of try_group_insn to
11757 sched_macro_fuse_insns.
11758 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
11759 arguments that are not conditional jumps.
11760
11761 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11762
11763 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
11764 family information. Handle BTVER2 cpu with cpuid family value.
11765
11766 2014-08-04 Tom de Vries <tom@codesourcery.com>
11767
11768 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
11769 (glibc_2_11_or_earlier): Document effective-target keywords.
11770
11771 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
11772
11773 * ipa-devirt.c (odr_type_warn_count): Add type.
11774 (possible_polymorphic_call_targets): Set it.
11775 (ipa_devirt): Use it.
11776
11777 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
11778
11779 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
11780 Document.
11781 * ipa-devirt.c: Include hash-map.h
11782 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
11783 (clear_speculation): Break out of ...
11784 (get_class_context): ... here; speed up handling obviously useless
11785 speculations.
11786 (odr_type_warn_count, decl_warn_count): New structures.
11787 (final_warning_record): New structure.
11788 (final_warning_records): New static variable.
11789 (possible_polymorphic_call_targets): Cleanup handling of
11790 speculative info; do not build speculation when user do not care;
11791 record info about warnings when asked for.
11792 (add_decl_warning): New function.
11793 (type_warning_cmp): New function.
11794 (decl_warning_cmp): New function.
11795 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
11796 (gate): Enable pass when warnings are requested.
11797 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
11798 options.
11799
11800 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
11801
11802 * hash-map.h (default_hashmap_traits::mark_key_deleted):
11803 Fix cast.
11804 (hash_map::remove): New method.
11805 (hash_map::traverse): New method.
11806 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
11807 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
11808 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
11809 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
11810 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
11811 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
11812 pointer_map.
11813
11814 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
11815
11816 * hash-set.h: new File.
11817 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
11818 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
11819 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
11820 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
11821 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
11822 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
11823 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
11824 varpool.c: Use hash_set instead of pointer_set.
11825
11826 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
11827
11828 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
11829
11830 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11831
11832 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
11833 for frame access when strict_p is false.
11834
11835 2014-08-01 Renlin Li <renlin.li@arm.com>
11836 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11837
11838 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
11839 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
11840 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
11841 Declaration.
11842 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
11843 predicate.
11844 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
11845 aarch64_mem_pair_offset.
11846
11847 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11848
11849 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
11850 offset.
11851 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
11852 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
11853
11854 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
11855
11856 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
11857
11858 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
11859
11860 PR regression/61510
11861 * cgraphunit.c (analyze_functions): Use get_create rather than get
11862 for decls which are clones of abstract functions.
11863
11864 2014-08-01 Martin Liska <mliska@suse.cz>
11865
11866 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
11867 * ipa-prop.h (count_formal_params): Global function created from static.
11868 * ipa-prop.c (count_formal_params): Likewise.
11869 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
11870 profiles for semantically equivalent functions.
11871 * passes.c (do_per_function): If we load body of a function
11872 during WPA, this condition should behave same.
11873 * varpool.c (ctor_for_folding): More tolerant assert for variable
11874 aliases created during WPA.
11875
11876 2014-08-01 Martin Liska <mliska@suse.cz>
11877
11878 * doc/invoke.texi (Options That Control Optimization): Documentation
11879 for -foptimize-strlen introduced. Optimization levels default options
11880 fixed.
11881
11882 2014-08-01 Jakub Jelinek <jakub@redhat.com>
11883
11884 * opts.c (common_handle_option): Handle -fsanitize=alignment.
11885 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
11886 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
11887 type to bool.
11888 * stor-layout.h (min_align_of_type): New prototype.
11889 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
11890 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
11891 check.
11892 * ubsan.c: Include builtins.h.
11893 (ubsan_expand_bounds_ifn): Change return type to bool,
11894 always return true.
11895 (ubsan_expand_null_ifn): Change return type to bool, change
11896 argument to gimple_stmt_iterator *. Handle both null and alignment
11897 sanitization, take type from ckind argument's type rather than
11898 first argument.
11899 (instrument_member_call): Removed.
11900 (instrument_mem_ref): Remove t argument, add mem and base arguments.
11901 Handle both null and alignment sanitization, don't say whole
11902 struct access is member access. Build 3 argument IFN_UBSAN_NULL
11903 call instead of 2 argument.
11904 (instrument_null): Adjust instrument_mem_ref caller. Don't
11905 instrument calls here.
11906 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
11907 like SANITIZE_NULL.
11908 * stor-layout.c (min_align_of_type): New function.
11909 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
11910 Or it into SANITIZE_UNDEFINED.
11911 * doc/invoke.texi (-fsanitize=alignment): Document.
11912
11913 2014-07-31 Andi Kleen <ak@linux.intel.com>
11914
11915 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
11916
11917 2014-07-31 Andi Kleen <ak@linux.intel.com>
11918
11919 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
11920 inchash.
11921 (vn_reference_compute_hash): Dito.
11922 (vn_nary_op_compute_hash): Dito.
11923 (vn_phi_compute_hash): Dito.
11924 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
11925
11926 2014-07-31 Andi Kleen <ak@linux.intel.com>
11927
11928 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
11929 Rename to inchash:add_expr_commutative. Convert to inchash.
11930 (iterative_hash_hashable_expr): Rename to
11931 inchash:add_hashable_expr. Convert to inchash.
11932 (avail_expr_hash): Dito.
11933
11934 2014-07-31 Andi Kleen <ak@linux.intel.com>
11935
11936 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
11937 Convert to inchash.
11938
11939 2014-07-31 Andi Kleen <ak@linux.intel.com>
11940
11941 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
11942
11943 2014-07-31 Andi Kleen <ak@linux.intel.com>
11944
11945 * Makefile.in (OBJS): Add rtlhash.o
11946 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
11947 (loc_checksum): Dito.
11948 (loc_checksum_ordered): Dito.
11949 (hash_loc_operands): Dito.
11950 (hash_locs): Dito.
11951 (hash_loc_list): Dito.
11952 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
11953 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
11954 * rtlhash.c: New file.
11955 * rtlhash.h: New file.
11956
11957 2014-07-31 Andi Kleen <ak@linux.intel.com>
11958
11959 * inchash.h (inchash): Change inchash class to namespace.
11960 (class hash): ... Rename from inchash.
11961 (add_object): Move from macro to class template.
11962 * lto-streamer-out.c (hash_tree): Change inchash
11963 to inchash::hash.
11964 * tree.c (build_type_attribute_qual_variant): Dito.
11965 (type_hash_list): Dito.
11966 (attribute_hash_list): Dito.
11967 (iterative_hstate_expr): Rename to inchash::add_expr
11968 (build_range_type_1): Change inchash to inchash::hash
11969 and use hash::add_expr.
11970 (build_array_type_1): Dito.
11971 (build_function_type): Dito
11972 (build_method_type_directly): Dito.
11973 (build_offset_type): Dito.
11974 (build_complex_type): Dito.
11975 (make_vector_type): Dito.
11976 * tree.h (iterative_hash_expr): Dito.
11977
11978 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
11979
11980 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
11981
11982 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
11983
11984 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
11985 correct alphabetical position.
11986 (vpaddd_f64): Rewrite using builtins.
11987 (vpaddd_s64): Move to correct alphabetical position.
11988 (vpaddd_u64): New.
11989
11990 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
11991
11992 PR target/61844
11993 * config/sh/sh.c (sh_legitimate_address_p,
11994 sh_legitimize_reload_address): Handle reg+reg address modes when
11995 ALLOW_INDEXED_ADDRESS is false.
11996 * config/sh/predicates.md (general_movsrc_operand,
11997 general_movdst_operand): Likewise.
11998
11999 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
12000
12001 * config/aarch64/aarch64-builtins.c
12002 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
12003 BYTES_BIG_ENDIAN.
12004
12005 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
12006
12007 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
12008 the generated mask based on BYTES_BIG_ENDIAN.
12009 (aarch64_simd_check_vect_par_cnst_half): New.
12010 * config/aarch64/aarch64-protos.h
12011 (aarch64_simd_check_vect_par_cnst_half): New.
12012 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
12013 the check out to aarch64_simd_check_vect_par_cnst_half.
12014 (vect_par_cnst_lo_half): Likewise.
12015 * config/aarch64/aarch64-simd.md
12016 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
12017 (move_hi_quad_<mode>): Always generate a low mask.
12018
12019 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12020
12021 * doc/invoke.texi (AVR Options): Add documentation about
12022 __AVR_DEVICE_NAME__ built-in macro.
12023
12024 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
12025
12026 PR target/61948
12027 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
12028 constraints are satisfied.
12029 (<shift>di3_neon): Likewise.
12030
12031 2014-07-31 Richard Biener <rguenther@suse.de>
12032
12033 PR tree-optimization/61964
12034 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
12035 by structural equality.
12036
12037 2014-07-31 Yury Gribov <y.gribov@samsung.com>
12038
12039 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
12040 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
12041 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
12042 New enums.
12043 * gcc.c (sanitize_spec_function): Support new option.
12044 (SANITIZER_SPEC): Remove now redundant check.
12045 * opts.c (common_handle_option): Support new option.
12046 (finish_options): Check for incompatibilities.
12047 * toplev.c (process_options): Split userspace-specific checks.
12048
12049 2014-07-31 Richard Biener <rguenther@suse.de>
12050
12051 * lto-streamer.h (struct output_block): Remove global.
12052 (struct data_in): Remove labels, num_named_labels and
12053 num_unnamed_labels.
12054 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
12055 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
12056
12057 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
12058
12059 PR c++/60517
12060 * common.opt (-Wreturn-local-addr): Moved from c.opt.
12061 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
12062 (isolate_path): New argument to avoid inserting a trap.
12063 (find_implicit_erroneous_behaviour): Handle returning the address
12064 of a local variable.
12065 (find_explicit_erroneous_behaviour): Likewise.
12066
12067 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
12068
12069 PR lto/61868
12070 * toplev.c (init_random_seed): Move piece of code never called to
12071 set_random_seed.
12072 (set_random_seed): see above.
12073
12074 2014-07-31 Tom de Vries <tom@codesourcery.com>
12075
12076 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
12077
12078 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
12079
12080 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
12081 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
12082
12083 2014-07-31 Richard Biener <rguenther@suse.de>
12084
12085 * data-streamer.h (streamer_write_data_stream): Declare here,
12086 renamed from ...
12087 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
12088 * lto-cgraph.c (lto_output_node): Adjust.
12089 (lto_output_varpool_node): Likewise.
12090 * data-streamer-out.c (streamer_string_index): Likewise.
12091 (streamer_write_data_stream, lto_append_block): Move from ...
12092 * lto-section-out.c (lto_output_data_stream,
12093 lto_append_block): ... here.
12094
12095 2014-07-30 Mike Stump <mikestump@comcast.net>
12096
12097 * configure.ac: Also check for popen.
12098 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
12099 * configure: Regenerate.
12100 * config.in: Regenerate.
12101
12102 2014-07-30 Martin Jambor <mjambor@suse.cz>
12103
12104 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
12105 parameter to gimple.
12106
12107 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12108
12109 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
12110 address as second parameter to __tpf_eh_return routine.
12111
12112 2014-07-30 Jiong Wang <jiong.wang@arm.com>
12113
12114 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
12115 Thumb2.
12116
12117 2014-07-30 Tom Tromey <tromey@redhat.com>
12118
12119 PR c/59855
12120 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
12121 * doc/extend.texi (Type Attributes): Document designated_init
12122 attribute.
12123
12124 2014-07-30 Roman Gareev <gareevroman@gmail.com>
12125
12126 * graphite-isl-ast-to-gimple.c:
12127 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
12128 (gcc_expression_from_isl_expression): Pass type to
12129 gcc_expression_from_isl_ast_expr_id.
12130
12131 2014-07-30 Richard Biener <rguenther@suse.de>
12132
12133 * lto-streamer.h (lto_write_data): New function.
12134 * langhooks.c (lhd_append_data): Do not free block.
12135 * lto-section-out.c (lto_write_data): New function writing
12136 raw data to the current section.
12137 (lto_write_stream): Adjust for langhook semantic change.
12138 (lto_destroy_simple_output_block): Write header directly.
12139 * lto-opts.c (lto_write_options): Write options directly.
12140 * lto-streamer-out.c (produce_asm): Write heaeder directly.
12141 (lto_output_toplevel_asms): Likewise.
12142 (copy_function_or_variable): Copy data directly.
12143 (write_global_references): Output index table directly.
12144 (lto_output_decl_state_refs): Likewise.
12145 (write_symbol): Write data directly.
12146 (produce_symtab): Adjust.
12147 (produce_asm_for_decls): Output header and refs directly.
12148
12149 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
12150
12151 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
12152 to speculative_targets
12153 (get_class_context): Fix handling of contextes without outer type;
12154 avoid matching non-polymorphic types in LTO.
12155 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
12156 parameter to speculative_targetsp; handle speculation.
12157 (dump_possible_polymorphic_call_targets): Update dumping.
12158
12159 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
12160
12161 * common.opt (Wodr): Enable by default.
12162
12163 2014-07-29 Olivier Hainque <hainque@adacore.com>
12164
12165 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
12166
12167 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
12168
12169 PR bootstrap/61914
12170 * gengtype.c (strtoken): New function.
12171 (create_user_defined_type): Replace strtok with strtoken.
12172
12173 2014-07-29 Nathan Sidwell <nathan@acm.org>
12174
12175 * gcov-io.c (gcov_var): Make hidden.
12176 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
12177 (gcov_do_dump): Declare.
12178 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
12179
12180 2014-07-29 Martin Jambor <mjambor@suse.cz>
12181
12182 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
12183 parameter to gimple.
12184 (sra_modify_assign): Likewise.
12185
12186 2014-07-29 Richard Biener <rguenther@suse.de>
12187
12188 PR middle-end/52478
12189 * expr.c (expand_expr_real_2): Revert last change.
12190
12191 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
12192
12193 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
12194 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
12195 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
12196 call.
12197 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
12198 (contains_type_p): Forward declare.
12199 (polymorphic_call_target_hasher::hash): Hash speculative info.
12200 (polymorphic_call_target_hasher::equal): Compare speculative info.
12201 (get_class_context): Handle speuclation.
12202 (contains_type_p): Update.
12203 (get_polymorphic_call_info_for_decl): Update.
12204 (walk_ssa_copies): Break out from ...
12205 (get_polymorphic_call_info): ... here; set speculative context
12206 before giving up.
12207 * ipa-prop.c (ipa_write_indirect_edge_info,
12208 ipa_read_indirect_edge_info): Stream speculative context.
12209 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
12210 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
12211 SPECULATIVE_MAYBE_DERIVED_TYPE).
12212 (possible_polymorphic_call_targets overriders): Update.
12213 (dump_possible_polymorphic_call_targets overriders): Update.
12214 (dump_possible_polymorphic_call_target_p overriders): Update.
12215
12216 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
12217
12218 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
12219 ipa-devirt path; fix thinko there.
12220
12221 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
12222
12223 * config/i386/i386.c (ix86_return_in_memory): Replace one
12224 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
12225
12226 2014-07-28 Marek Polacek <polacek@redhat.com>
12227
12228 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
12229
12230 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
12231
12232 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
12233 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
12234 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
12235 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12236 (USE_LD_AS_NEEDED): Likewise.
12237 (ASM_APP_ON): Likewise.
12238 (ASM_APP_OFF): Likewise.
12239 (TARGET_POSIX_IO): Likewise.
12240 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
12241 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12242 (USE_LD_AS_NEEDED): Likewise.
12243 (ASM_APP_ON): Likewise.
12244 (ASM_APP_OFF): Likewise.
12245 (TARGET_POSIX_IO): Likewise.
12246
12247 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
12248
12249 PR middle-end/61734
12250 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
12251 operators other than the equality operators.
12252
12253 2014-07-28 Richard Biener <rguenther@suse.de>
12254
12255 PR middle-end/52478
12256 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
12257 sure to register SImode ones, not only >= word_mode ones.
12258 * expr.c (expand_expr_real_2): When expanding -ftrapv
12259 binops do not use OPTAB_LIB_WIDEN.
12260
12261 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
12262
12263 PR middle-end/61919
12264 * tree-outof-ssa.c (insert_partition_copy_on_edge)
12265 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
12266 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
12267 inserting them in the insn stream.
12268
12269 2014-07-28 Marek Polacek <polacek@redhat.com>
12270
12271 PR middle-end/61913
12272 * common.opt (Wodr): Add Var.
12273
12274 2014-07-28 Richard Biener <rguenther@suse.de>
12275
12276 PR tree-optimization/61921
12277 * tree-ssa-structalias.c (create_variable_info_for_1): Check
12278 if there is a varpool node before dereferencing it.
12279
12280 2014-07-28 Roman Gareev <gareevroman@gmail.com>
12281
12282 * graphite-sese-to-poly.c:
12283 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
12284 id of the pbb), which contains pointer to the pbb1.
12285
12286 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
12287
12288 2014-07-28 Roman Gareev <gareevroman@gmail.com>
12289
12290 * graphite-isl-ast-to-gimple.c:
12291 (graphite_create_new_guard): New function.
12292 (translate_isl_ast_node_if): New function.
12293 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
12294
12295 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
12296
12297 2014-07-27 Anthony Green <green@moxielogic.com>
12298
12299 * config.gcc: Add moxie-*-moxiebox* configuration.
12300 * config/moxie/moxiebox.h: New file.
12301
12302 2014-07-26 Andrew Pinski <apinski@cavium.com>
12303
12304 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
12305 from the read only register.
12306
12307 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
12308
12309 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
12310 as the allocation class if it isn't likely to be spilled.
12311
12312 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
12313
12314 * rtl.h (tls_referenced_p): Declare.
12315 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
12316 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
12317 (mips_cannot_force_const_mem): Use tls_referenced_p.
12318 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
12319 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
12320 instead of pa_tls_referenced_p.
12321 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
12322 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
12323 (pa_legitimate_constant_p): Likewise.
12324 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
12325 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
12326 (rs6000_cannot_force_const_mem, rs6000_emit_move)
12327 (rs6000_address_for_altivec): Use tls_referenced_p instead of
12328 rs6000_tls_referenced_p.
12329 (rs6000_tls_symbol_ref_1): Delete.
12330
12331 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
12332
12333 PR target/44551
12334 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
12335 Optimize inverse of a VEC_CONCAT.
12336
12337 2014-07-25 Xinliang David Li <davidxl@google.com>
12338
12339 * params.def: New parameter.
12340 * coverage.c (get_coverage_counts): Check new flag.
12341 (coverage_compute_profile_id): Check new flag.
12342 (coverage_begin_function): Check new flag.
12343 (coverage_end_function): Check new flag.
12344 * value-prof.c (coverage_node_map_initialized_p): New function.
12345 (init_node_map): Populate map with all functions.
12346 * doc/invoke.texi: Document new parameter.
12347
12348 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
12349 Richard Biener <rguenther@suse.de>
12350
12351 * lto-streamer-out.c (struct sccs): Turn to ...
12352 (class DFS): ... this one; refactor the DFS walk so it can
12353 be re-done on per-SCC basis.
12354 (DFS::DFS): New constructor.
12355 (DFS::~DFS): New destructor.
12356 (hash_tree): Add new MAP argument holding in-SCC hash values;
12357 remove POINTER_TYPE hashing hack.
12358 (scc_entry_compare): Rename to ...
12359 (DFS::scc_entry_compare): ... this one.
12360 (hash_scc): Rename to ...
12361 (DFS::hash_scc): ... this one; pass output_block instead
12362 of streamer_cache; work harder to get unique and stable SCC
12363 hashes.
12364 (DFS_write_tree): Rename to ...
12365 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
12366 (lto_output_tree): Update.
12367
12368 2014-07-25 Andi Kleen <ak@linux.intel.com>
12369
12370 * lto-streamer-out.c (hash_tree): Convert to inchash.
12371
12372 2014-07-25 Andi Kleen <ak@linux.intel.com>
12373
12374 * tree.c (build_type_attribute_qual_variant): Use inchash.
12375 (type_hash_list): Dito.
12376 (attribute_hash_list): Dito
12377 (iterative_hstate_expr): Dito.
12378 (iterative_hash_expr): Dito.
12379 (build_range_type_1): Dito.
12380 (build_array_type_1): Dito.
12381 (build_function_type): Dito.
12382 (build_method_type_directly): Dito.
12383 (build_offset_type): Dito.
12384 (build_complex_type): Dito.
12385 (make_vector_type): Dito.
12386 * tree.h (iterative_hash_expr): Add compat wrapper.
12387 (iterative_hstate_expr): Add.
12388
12389 2014-07-25 Andi Kleen <ak@linux.intel.com>
12390
12391 * Makefile.in (OBJS): Add inchash.o.
12392 (PLUGIN_HEADERS): Add inchash.h.
12393 * ipa-devirt.c: Include inchash.h.
12394 * lto-streamer-out.c: Dito.
12395 * tree-ssa-dom.c: Dito.
12396 * tree-ssa-pre.c: Dito.
12397 * tree-ssa-sccvn.c: Dito.
12398 * tree-ssa-tail-merge.c: Dito.
12399 * asan.c: Dito.
12400 * tree.c (iterative_hash_hashval_t): Move to ...
12401 (iterative_hash_host_wide_int): Move to ...
12402 * inchash.c: Here. New file.
12403 * tree.h (iterative_hash_hashval_t): Move to ...
12404 (iterative_hash_host_wide_int): Move to ...
12405 * inchash.h: Here. New file.
12406
12407 2014-07-25 Richard Biener <rguenther@suse.de>
12408
12409 PR middle-end/61762
12410 PR middle-end/61894
12411 * fold-const.c (native_encode_int): Add and handle offset
12412 parameter to do partial encodings of expr.
12413 (native_encode_fixed): Likewise.
12414 (native_encode_real): Likewise.
12415 (native_encode_complex): Likewise.
12416 (native_encode_vector): Likewise.
12417 (native_encode_string): Likewise.
12418 (native_encode_expr): Likewise.
12419 * fold-const.c (native_encode_expr): Add offset parameter
12420 defaulting to -1.
12421 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
12422 (fold_ctor_reference): Handle all reads from tcc_constant
12423 ctors.
12424
12425 2014-07-25 Richard Biener <rguenther@suse.de>
12426
12427 * tree-inline.c (estimate_move_cost): Mark speed_p argument
12428 as possibly unused.
12429
12430 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12431
12432 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
12433
12434 2014-07-24 Kyle McMartin <kyle@redhat.com>
12435
12436 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
12437
12438 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12439
12440 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
12441 Add prototype.
12442 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
12443 function.
12444 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
12445 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
12446 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
12447
12448 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12449
12450 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
12451 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
12452 aggregate types. Instead, *all* aggregate types, except for single-
12453 element or homogeneous float/vector aggregates, are quadword-aligned
12454 if required by their type alignment. Issue -Wpsabi note when a type
12455 is now treated differently than before.
12456
12457 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12458
12459 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
12460 does not fit fully into floating-point registers, and there is still
12461 space in the register parameter area, use GPRs to pass those parts
12462 of the argument. Issue -Wpsabi note if any parameter is now treated
12463 differently than before.
12464 (rs6000_arg_partial_bytes): Update.
12465
12466 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
12467
12468 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
12469
12470 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12471
12472 * rtl.h (target_rtl): Remove lang_dependent_initialized.
12473 * toplev.c (initialize_rtl): Don't use it. Move previously
12474 "language-dependent" calls to...
12475 (backend_init): ...here.
12476 (lang_dependent_init_target): Don't set lang_dependent_initialized.
12477 Assert that RTL initialization hasn't happend yet.
12478
12479 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12480
12481 PR rtl-optimization/61629
12482 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
12483 they have already been initialized.
12484
12485 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12486
12487 PR middle-end/61268
12488 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
12489 DECL_INCOMING_RTL and entry_parm.
12490 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
12491 * calls.c (load_register_parameters): Likewise argument values.
12492 (emit_library_call_value_1, store_one_arg): Likewise argument
12493 save areas.
12494 * config/i386/i386.c (assign_386_stack_local): Likewise the local
12495 stack slot.
12496 * explow.c (validize_mem): Modify the argument in-place.
12497
12498 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12499
12500 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
12501 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
12502
12503 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12504
12505 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
12506 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
12507
12508 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12509
12510 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
12511 (aarch64_save_callee_saves): New parameter "skip_wb".
12512 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
12513
12514 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12515
12516 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
12517 "wb_candidate2".
12518 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
12519
12520 2014-07-24 Roman Gareev <gareevroman@gmail.com>
12521
12522 * graphite-isl-ast-to-gimple.c:
12523 (graphite_create_new_loop): Add calling of isl_id_free to properly
12524 decrement reference counts.
12525
12526 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
12527
12528 2014-07-24 Martin Liska <mliska@suse.cz>
12529 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
12530 function used.
12531 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
12532 (rs6000_code_end): Likewise.
12533
12534 2014-07-24 Martin Liska <mliska@suse.cz>
12535
12536 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
12537 symtab_node funtion used.
12538 (rs6000_xcoff_declare_object_name): Likewise.
12539
12540 2014-07-24 Martin Liska <mliska@suse.cz>
12541
12542 * cgraphunit.c (compile): Correct function used.
12543
12544 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
12545
12546 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
12547 as non-indexable.
12548
12549 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
12550
12551 PR lto/61802
12552 * varasm.c (bss_initializer_p): Handle offlined ctors.
12553 (align_variable, get_variable_align): Likewise.
12554 (make_decl_one_only): Likewise.
12555 (default_binds_local_p_1): Likewise.
12556 (decl_binds_to_current_def_p): Likewise.
12557 (get_variable_section): Get constructor if it is offlined.
12558 (assemble_variable_contents): Sanity check that the caller
12559 streamed in the ctor in LTO.
12560
12561 2014-07-24 Roman Gareev <gareevroman@gmail.com>
12562
12563 * graphite-isl-ast-to-gimple.c:
12564 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
12565 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
12566 isl_ast_op_pdiv_r to the different case.
12567
12568 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
12569
12570 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12571
12572 PR middle-end/61876
12573 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
12574 when flag_errno_math is on.
12575
12576 2014-07-24 Martin Liska <mliska@suse.cz>
12577
12578 * cgraph.h (varpool_node):
12579 (availability get_availability (void)):
12580 created from cgraph_variable_initializer_availability
12581 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
12582 created from: cgraph_variable_initializer_availability
12583 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
12584 (void finalize_named_section_flags (void)):
12585 created from varpool_finalize_named_section_flags
12586 (bool assemble_decl (void)): created from varpool_assemble_decl
12587 (void analyze (void)): created from varpool_analyze_node
12588 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
12589 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
12590 (void remove_initializer (void)): created from varpool_remove_initializer
12591 (tree get_constructor (void)): created from varpool_get_constructor
12592 (bool externally_visible_p (void)): created from varpool_externally_visible_p
12593 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
12594 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
12595 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
12596 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
12597 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
12598 (static bool output_variables (void)): created from varpool_output_variables
12599 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
12600 created from varpool_extra_name_alias
12601 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
12602 (static void dump_varpool (FILE *f)): created from dump_varpool
12603 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
12604 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
12605 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
12606 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
12607 (void assemble_aliases (void)): created from assemble_aliases
12608
12609 2014-07-24 Martin Liska <mliska@suse.cz>
12610
12611 * cgraph.h (symtab_node):
12612 (void register_symbol (void)): created from symtab_register_node
12613 (void remove (void)): created from symtab_remove_node
12614 (void dump (FILE *f)): created from dump_symtab_node
12615 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
12616 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
12617 (struct ipa_ref *add_reference (symtab_node *referred_node,
12618 enum ipa_ref_use use_type)): created from add_reference
12619 (struct ipa_ref *add_reference (symtab_node *referred_node,
12620 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
12621 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
12622 gimple stmt)): created from maybe_add_reference
12623 (bool semantically_equivalent_p (symtab_node *target)): created from
12624 symtab_semantically_equivalent_p
12625 (void remove_from_same_comdat_group (void)): created from
12626 remove_from_same_comdat_group
12627 (void add_to_same_comdat_group (symtab_node *old_node)): created from
12628 symtab_add_to_same_comdat_group
12629 (void dissolve_same_comdat_group_list (void)): created from
12630 symtab_dissolve_same_comdat_group_list
12631 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
12632 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
12633 created from symtab_alias_ultimate_target
12634 (inline symtab_node *next_defined_symbol (void)): created from
12635 symtab_next_defined_symbol
12636 (bool resolve_alias (symtab_node *target)): created from
12637 symtab_resolve_alias
12638 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
12639 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
12640 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
12641 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
12642 (void set_section (const char *section)): created from set_section_1
12643 (enum availability get_availability (void)): created from symtab_node_availability
12644 (void make_decl_local (void)): created from symtab_make_decl_local
12645 (bool real_symbol_p (void)): created from symtab_read_node
12646 (can_be_discarded_p (void)): created from symtab_can_be_discarded
12647 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
12648 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
12649 symtab_in_same_comdat_p;
12650 (bool address_taken_from_non_vtable_p (void)): created from
12651 address_taken_from_non_vtable_p
12652 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
12653 (static void dump_table (FILE *)): created from dump_symtab
12654 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
12655 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
12656 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
12657 symtab_used_from_object_file_p
12658 (void dump_base (FILE *)): created from dump_symtab_base
12659 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
12660 (void unregister (void)): created from symtab_unregister_node
12661 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
12662 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
12663 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
12664 symtab_nonoverwritable_alias_1
12665 * cgraph.h (cgraph_node):
12666 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
12667 created from cgraph_remove_node_and_inline_clones
12668 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
12669 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
12670 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
12671 (cgraph_node *function_symbol (enum availability *avail = NULL)):
12672 created from cgraph_function_node
12673 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
12674 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
12675 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
12676 created from cgraph_create_clone
12677 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
12678 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
12679 created from cgraph_create_virtual_clone
12680 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
12681 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
12682 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
12683 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
12684 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
12685 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
12686 created from cgraph_function_version_info
12687 (struct cgraph_function_version_info *insert_new_function_version (void)):
12688 created from insert_new_cgraph_node_version
12689 (struct cgraph_function_version_info *function_version (void)): created from
12690 get_cgraph_node_version
12691 (void analyze (void)): created from analyze_function
12692 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
12693 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
12694 tree real_alias) cgraph_add_thunk
12695 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
12696 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
12697 created from cgraph_function_or_thunk_node
12698 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
12699 created from expand_thunk
12700 (void reset (void)): created from cgraph_reset_node
12701 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
12702 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
12703 (void remove (void)): created from cgraph_remove_node
12704 (void dump (FILE *f)): created from dump_cgraph_node
12705 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
12706 (bool get_body (void)): created from cgraph_get_body
12707 (void release_body (void)): created from cgraph_release_function_body
12708 (void unnest (void)): created from cgraph_unnest_node
12709 (void make_local (void)): created from cgraph_make_node_local
12710 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
12711 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
12712 gcov_type count, int freq)): created from cgraph_create_edge
12713 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
12714 gcov_type count, int freq)): created from cgraph_create_indirect_edge
12715 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
12716 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
12717 created from cgraph_create_edge_including_clones
12718 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
12719 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
12720 (void remove_callers (void)): created from cgraph_node_remove_callers
12721 (void remove_callees (void)): created from cgraph_node_remove_callees
12722 (enum availability get_availability (void)): created from cgraph_function_body_availability
12723 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
12724 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
12725 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
12726 (void call_duplication_hooks (cgraph_node *node2)): created from
12727 cgraph_call_node_duplication_hooks
12728 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
12729 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
12730 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
12731 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
12732 (void call_function_insertion_hooks (void)):
12733 created from cgraph_call_function_insertion_hooks
12734 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
12735 (bool local_p (void)): created from cgraph_local_node
12736 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
12737 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
12738 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
12739 (inline bool only_called_directly_or_aliased_p (void)):
12740 created from cgraph_only_called_directly_or_aliased_p
12741 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
12742 created from cgraph_will_be_removed_from_program_if_no_direct_calls
12743 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
12744 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
12745 (bool can_remove_if_no_direct_calls_p (void)):
12746 created from cgraph_can_remove_if_no_direct_calls_p
12747 (inline bool has_gimple_body_p (void)):
12748 created from cgraph_function_with_gimple_body_p
12749 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
12750 (static void dump_cgraph (FILE *f)): created from dump_cgraph
12751 (static inline void debug_cgraph (void)): created from debug_cgraph
12752 (static void record_function_versions (tree decl1, tree decl2)):
12753 created from record_function_versions
12754 (static void delete_function_version (tree decl)):
12755 created from delete_function_version
12756 (static void add_new_function (tree fndecl, bool lowered)):
12757 created from cgraph_add_new_function
12758 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
12759 (static cgraph_node * create (tree decl)): created from cgraph_create_node
12760 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
12761 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
12762 (static cgraph_node *get_for_asmname (tree asmname)):
12763 created from cgraph_node_for_asm
12764 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
12765 created from cgraph_same_body_alias
12766 (static bool used_from_object_file_p_worker (cgraph_node *node,
12767 void *): new function
12768 (static bool non_local_p (cgraph_node *node, void *)):
12769 created from cgraph_non_local_node_p_1
12770 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
12771 created from verify_cgraph
12772 (static bool make_local (cgraph_node *node, void *)):
12773 created from cgraph_make_node_local
12774 (static cgraph_node *create_alias (tree alias, tree target)):
12775 created from cgraph_create_function_alias
12776 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
12777 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
12778 created from cgraph_create_edge_1
12779 * cgraph.h (varpool_node):
12780 (void remove (void)): created from varpool_remove_node
12781 (void dump (FILE *f)): created from dump_varpool_node
12782
12783 2014-07-24 Richard Biener <rguenther@suse.de>
12784
12785 PR ipa/61823
12786 * tree-ssa-structalias.c (create_variable_info_for_1):
12787 Use varpool_get_constructor.
12788 (create_variable_info_for): Likewise.
12789
12790 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12791
12792 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
12793 subtract outgoing area size when restoring stack_pointer_rtx.
12794
12795 2014-07-24 Nick Clifton <nickc@redhat.com>
12796
12797 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
12798 that operations are taking place in parallel.
12799 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
12800
12801 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
12802
12803 * omp-low.c (extract_omp_for_data): Add missing break statement.
12804
12805 2014-07-24 Richard Biener <rguenther@suse.de>
12806
12807 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
12808 * tree-inline.c (estimate_move_cost): Add speed_p parameter
12809 and adjust MOVE_RATIO query accordingly.
12810 (estimate_num_insns): Adjust callers.
12811 * ipa-prop.c (ipa_populate_param_decls): Likewise.
12812 * ipa-cp.c (gather_context_independent_values,
12813 estimate_local_effects): Likewise.
12814 * ipa-split.c (consider_split): Likewise.
12815
12816 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
12817
12818 * config/i386/driver-i386.c: Remove names of unused arguments and
12819 unnecessary unused attributes.
12820 * config/i386/host-mingw32.c: Likewise.
12821 * config/i386/i386.c: Likewise.
12822 * config/i386/winnt-stubs.c: Likewise.
12823 * config/i386/winnt.c: Likewise.
12824
12825 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12826
12827 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
12828 (aarch64_gen_loadwb_pair): New helper function.
12829 (aarch64_expand_epilogue): Simplify code using new helper functions.
12830 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
12831
12832 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12833
12834 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
12835 (aarch64_gen_storewb_pair): New helper function.
12836 (aarch64_expand_prologue): Simplify code using new helper functions.
12837 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
12838
12839 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12840
12841 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
12842 Rename to aarch64_save_callee_saves, remove restore code.
12843 (aarch64_restore_callee_saves): New function.
12844
12845 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12846
12847 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
12848 (aarch64_save_callee_saves): New function to handle reg save
12849 for both core and vectore regs.
12850
12851 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12852
12853 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
12854 (aarch64_gen_store_pair): New helper function.
12855 (aarch64_save_or_restore_callee_save_registers)
12856 (aarch64_save_or_restore_fprs): Use new helper functions.
12857
12858 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12859
12860 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
12861 (aarch64_save_or_restore_callee_save_registers)
12862 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
12863
12864 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12865
12866 * config/aarch64/aarch64.c
12867 (aarch64_save_or_restore_callee_save_registers)
12868 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
12869
12870 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12871
12872 * config/aarch64/aarch64.c
12873 (aarch64_save_or_restore_callee_save_registers)
12874 (aarch64_save_or_restore_fprs): Remove 'increment'.
12875
12876 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12877
12878 * config/aarch64/aarch64.c
12879 (aarch64_save_or_restore_callee_save_registers)
12880 (aarch64_save_or_restore_fprs): Use register offset in
12881 cfun->machine->frame.reg_offset.
12882
12883 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12884
12885 * config/aarch64/aarch64.c
12886 (aarch64_save_or_restore_callee_save_registers)
12887 (aarch64_save_or_restore_fprs): Remove base_rtx.
12888
12889 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12890
12891 * config/aarch64/aarch64.c
12892 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
12893 to 'start_offset'. Remove local variable 'start_offset'.
12894
12895 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12896
12897 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
12898 type to HOST_WIDE_INT.
12899
12900 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12901
12902 * config/aarch64/aarch64.c (aarch64_expand_prologue)
12903 (aarch64_save_or_restore_fprs)
12904 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
12905
12906 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
12907
12908 * config/arm/t-rtems-eabi: Add
12909 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
12910 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
12911 mbig-endian/mthumb/march=armv7-r, and
12912 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
12913 multilibs.
12914
12915 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
12916 Chris Johns <chrisj@rtems.org>
12917 Joel Sherrill <joel.sherrill@oarcorp.com>
12918
12919 * config.gcc: Add nios2-*-rtems*.
12920 * config/nios2/rtems.h: New file.
12921 * gcc/config/nios2/t-rtems: New file.
12922
12923 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
12924
12925 PR target/61396
12926 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
12927 constant numbers, not general constants.
12928 (rs6000_expand_vector_init): Ditto.
12929
12930 2014-07-23 Nathan Sidwell <nathan@acm.org>
12931
12932 * gcov-tool.c (gcov_list): Declare here.
12933 (set_gcov_list): Remove.
12934 (gcov_output_files): Set gcov_list directly.
12935
12936 2014-07-23 Host Schirmeier <horst@schirmeier.com>
12937
12938 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
12939
12940 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12941
12942 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
12943 callee-saved registers are available for padding purpose
12944 and r3 is not mandatory, then prefer use those callee-saved
12945 instead of r3.
12946
12947 2014-07-23 Richard Biener <rguenther@suse.de>
12948
12949 * params.def (PARAM_MAX_COMBINE_INSNS): New.
12950 * combine.c: Include statistics.h and params.h.
12951 (combine_instructions): Guard three and four insn combines
12952 with max-combine-insns value. Record statistics for combines
12953 performed.
12954 * doc/invoke.texi (max-combine-insns): Document new param.
12955
12956 2014-07-23 Roman Gareev <gareevroman@gmail.com>
12957
12958 * graphite-isl-ast-to-gimple.c:
12959 (translate_isl_ast_node_block): New function.
12960 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
12961
12962 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
12963 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
12964
12965 2014-07-23 Roman Gareev <gareevroman@gmail.com>
12966
12967 * graphite-isl-ast-to-gimple.c:
12968 (get_max_schedule_dimensions): New function.
12969 (extend_schedule): Likewise.
12970 (generate_isl_schedule): Add calling of extend_schedule and
12971 get_max_schedule_dimensions.
12972
12973 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12974
12975 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
12976 (case UNSPEC): Handle UNSPEC_RBIT.
12977
12978 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12979
12980 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
12981 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
12982
12983 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12984
12985 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
12986
12987 2014-07-22 Roman Gareev <gareevroman@gmail.com>
12988
12989 * graphite-isl-ast-to-gimple.c:
12990 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
12991 (ivs_params_clear):
12992 (build_iv_mapping): New function.
12993 (translate_isl_ast_node_user): Likewise.
12994 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
12995
12996 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
12997 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
12998 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
12999
13000 2014-07-21 Bin Cheng <bin.cheng@arm.com>
13001
13002 PR target/55701
13003 * config/arm/arm.md (setmem): New pattern.
13004 * config/arm/arm-protos.h (struct tune_params): New fields.
13005 (arm_gen_setmem): New prototype.
13006 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
13007 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
13008 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
13009 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
13010 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
13011 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
13012 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
13013 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
13014 (arm_const_inline_cost): New function.
13015 (arm_block_set_max_insns): New function.
13016 (arm_block_set_non_vect_profit_p): New function.
13017 (arm_block_set_vect_profit_p): New function.
13018 (arm_block_set_unaligned_vect): New function.
13019 (arm_block_set_aligned_vect): New function.
13020 (arm_block_set_unaligned_non_vect): New function.
13021 (arm_block_set_aligned_non_vect): New function.
13022 (arm_block_set_vect, arm_gen_setmem): New functions.
13023
13024 2014-07-21 Bin Cheng <bin.cheng@arm.com>
13025
13026 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
13027
13028 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
13029
13030 PR target/61855
13031 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
13032 out of #ifdef __OPTIMIZE__.
13033
13034 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
13035
13036 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
13037 different trapping status if -fnon-call-exceptions is enabled.
13038
13039 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
13040
13041 * expr.c (store_field): Handle VOIDmode for calls that return values
13042 in multiple locations.
13043
13044 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13045
13046 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
13047 (altivec_vsldoi_<mode>): Likewise.
13048
13049 2014-07-20 Roman Gareev <gareevroman@gmail.com>
13050
13051 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
13052 to the number of characters in the line.
13053
13054 2014-07-20 Roman Gareev <gareevroman@gmail.com>
13055
13056 * graphite-isl-ast-to-gimple.c: Add using of
13057 build_nonstandard_integer_type instead of int128_integer_type_node.
13058
13059 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
13060
13061 * toplev.c (output_stack_usage): Adjust the location of the warning.
13062
13063 2014-07-19 Daniel Cederman <cederman@gaisler.com>
13064
13065 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
13066 (*membar_storeload): Disable for LEON3.
13067
13068 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13069
13070 PR rtl-optimization/61461
13071 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
13072
13073 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
13074
13075 PR target/61794
13076 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
13077 Fix instruction constraint.
13078 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
13079
13080 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
13081
13082 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
13083
13084 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
13085
13086 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
13087 GNU coding standards.
13088 (nds32_register_move_cost): Likewise.
13089 (nds32_memory_move_cost): Likewise.
13090 (nds32_address_cost): Likewise.
13091
13092 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13093
13094 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
13095
13096 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
13097
13098 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
13099 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
13100 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
13101 (HAVE_sync_compare_and_swapqi): Define.
13102 (HAVE_sync_compare_and_swaphi): Likewise.
13103 (HAVE_sync_compare_and_swapsi): Likewise.
13104
13105 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
13106
13107 * config/mips/p5600.md: Add missing cpu tests.
13108
13109 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13110
13111 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
13112 (vmla_f64): Likewise.
13113 (vfms_f64): Likewise.
13114 (vmls_f64): Likewise.
13115
13116 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13117
13118 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
13119 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
13120
13121 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13122
13123 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
13124 (vmlal_high_lane_s32): Likewise.
13125 (vmlal_high_lane_u16): Likewise.
13126 (vmlal_high_lane_u32): Likewise.
13127 (vmlsl_high_lane_s16): Likewise.
13128 (vmlsl_high_lane_s32): Likewise.
13129 (vmlsl_high_lane_u16): Likewise.
13130 (vmlsl_high_lane_u32): Likewise.
13131
13132 2014-07-17 Terry Guo <terry.guo@arm.com>
13133
13134 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
13135 (alus_reg): Renamed to alus_sreg.
13136 * config/arm/arm-fixed.md: Change type of non-dsp instructions
13137 from alu_reg to alu_sreg. Change type of dsp instructions from
13138 alu_reg to alu_dsp_reg.
13139 * config/arm/thumb1.md: Likewise.
13140 * config/arm/thumb2.md: Likewise.
13141 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
13142 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
13143 with alu_sreg and alus_sreg.
13144 * config/arm/arm1026ejs.md (alu_op): Likewise.
13145 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
13146 * config/arm/arm926ejs.md (9_alu_op): Likewise.
13147 * config/arm/fa526.md (526_alu_op): Likewise.
13148 * config/arm/fa606te.md (606te_alu_op): Likewise.
13149 * config/arm/fa626te.md (626te_alu_op): Likewise.
13150 * config/arm/fa726te.md (726te_alu_op): Likewise.
13151 * config/arm/fmp626.md (mp626_alu_op): Likewise.
13152 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
13153 alu_sreg, alu_dsp_reg and alus_sreg.
13154 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
13155 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13156 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13157 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
13158 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
13159 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13160 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13161 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
13162 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
13163 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
13164 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
13165 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
13166 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
13167 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
13168 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
13169 alus_reg to alus_sreg.
13170
13171 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
13172
13173 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
13174 infinity format.
13175
13176 2014-07-17 Richard Biener <rguenther@suse.de>
13177
13178 PR rtl-optimization/61801
13179 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
13180 don't set reg_pending_barrier if it appears in a debug-insn.
13181
13182 2014-07-16 DJ Delorie <dj@redhat.com>
13183
13184 * config/rx/rx.c (rx_option_override): Fix alignment values.
13185 (rx_align_for_label): Likewise.
13186
13187 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
13188
13189 PR target/61737.
13190 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
13191 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
13192 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
13193 functions.
13194 (cris_print_index, cris_print_operand, cris_constant_index_p)
13195 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
13196 (cris_address_cost): Ditto last CONSTANT_P.
13197 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
13198 callers changed. Yield cris_offsettable_symbol for non-PIC
13199 constant symbolic expressions including labels. Yield cris_unspec
13200 for all unspecs.
13201 (cris_expand_pic_call_address): New parameter MARKERP. Set its
13202 target to pic_offset_table_rtx for calls that will likely go
13203 through PLT, const0_rtx when they can't. All callers changed.
13204 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
13205 symbolic expressions to be PICified. Remove second, redundant,
13206 assert on can_create_pseudo_p returning non-zero. Use
13207 replace_equiv_address_nv, not replace_equiv_address, for final
13208 operand update.
13209 * config/cris/cris.md ("movsi"): Move variable t to pattern
13210 toplevel. Adjust assert for new cris_symbol_type member. Use
13211 CONSTANT_P instead of CONSTANT_ADDRESS_P.
13212 ("*movsi_internal") <case 9>: Make check for valid unspec operands
13213 for lapc stricter.
13214 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
13215 ("call", "call_value"): Use second incoming operand as a marker
13216 for pic-offset-table-register being used.
13217 ("*expanded_call_non_v32", "*expanded_call_v32")
13218 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
13219 second incoming operand to CALL, match cris_call_type_marker.
13220 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
13221 ("*expanded_call_side"): Ditto. Fix typo in comment.
13222 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
13223 CONSTANT_P.
13224 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
13225 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
13226 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
13227 users changed. Add members cris_offsettable_symbol and cris_unspec.
13228 (cris_symbol_type): Rename from cris_pic_symbol_type.
13229 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
13230 just CONSTANT_P.
13231 * config/cris/cris-protos.h (cris_symbol_type_of,
13232 cris_expand_pic_call_address): Adjust prototypes.
13233 (cris_legitimate_constant_p): New prototype.
13234
13235 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
13236 an existing tmake_file. Don't add t-slibgcc and t-linux.
13237
13238 2014-07-17 Jason Merrill <jason@redhat.com>
13239
13240 PR c++/61623
13241 * symtab.c (symtab_remove_from_same_comdat_group): Also
13242 set_comdat_group to NULL_TREE.
13243 (verify_symtab): Fix diagnostic.
13244
13245 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
13246
13247 PR target/61662
13248 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
13249
13250 2014-07-16 Dodji Seketeli <dodji@redhat.com>
13251
13252 Support location tracking for built-in macro tokens
13253 * input.h (is_location_from_builtin_token): New function declaration.
13254 * input.c (is_location_from_builtin_token): New function definition.
13255 * toplev.c (general_init): Tell libcpp what the pre-defined
13256 spelling location for built-in tokens is.
13257
13258 2014-07-16 Jakub Jelinek <jakub@redhat.com>
13259
13260 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
13261 on the FUNCTION_DECL.
13262
13263 2014-07-16 Richard Biener <rguenther@suse.de>
13264
13265 PR other/61782
13266 * doc/extend.texi (always_inline): Clarify.
13267
13268 2014-07-15 Eric Christopher <echristo@gmail.com>
13269
13270 * doc/invoke.texi (Link Options): Document -z option.
13271
13272 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
13273
13274 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
13275 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13276
13277 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
13278
13279 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
13280
13281 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
13282
13283 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
13284 varpool_assemble_decl.
13285 * varpool.c (varpool_assemble_decl): Assert that node->definition is
13286 true.
13287
13288 2014-07-15 Michael Matz <matz@suse.de>
13289
13290 PR rtl-optimization/61772
13291 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
13292
13293 2014-07-15 Richard Biener <rguenther@suse.de>
13294
13295 * opts.c (default_options_table): Disable bit-ccp at -Og.
13296
13297 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
13298
13299 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
13300
13301 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
13302
13303 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
13304 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
13305 call langhook for unknown declaration.
13306 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
13307 * tree.h (DECL_ARGUMENTS): Update.
13308 * print-tree.c (print_node): Update.
13309 * tree-core.h (tree_decl_non_common): Remove arguments.
13310 (tree_function_decl): Add arguments.
13311
13312 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
13313
13314 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
13315
13316 2014-07-14 Richard Biener <rguenther@suse.de>
13317
13318 PR tree-optimization/61779
13319 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
13320 simplifying a condition.
13321
13322 2014-07-14 Richard Biener <rguenther@suse.de>
13323
13324 * builtins.c (c_strlen): Make only_value == 2 really only
13325 affect warning generation.
13326
13327 2014-07-14 Richard Biener <rguenther@suse.de>
13328
13329 PR tree-optimization/61757
13330 PR tree-optimization/61783
13331 PR tree-optimization/61787
13332 * tree-ssa-dom.c (record_equality): Revert canonicalization
13333 change and add comment.
13334 (propagate_rhs_into_lhs): Revert previous fix, removing
13335 loop depth restriction again.
13336
13337 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13338
13339 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
13340 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13341 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13342 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
13343 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13344 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13345 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
13346
13347 2014-07-14 Richard Biener <rguenther@suse.de>
13348
13349 * cgraph.h (decl_in_symtab_p): Make inline.
13350
13351 2014-07-14 Jakub Jelinek <jakub@redhat.com>
13352
13353 PR middle-end/61294
13354 * doc/invoke.texi (-Wmemset-transposed-args): Document.
13355
13356 PR target/61656
13357 * config/i386/i386.c (classify_argument): Don't merge classes above
13358 number of words.
13359
13360 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
13361
13362 * cgraph.h (symtab_node): Add nonzero_address.
13363 (decl_in_symtab_p): Break out from ...
13364 (symtab_get_node): ... here.
13365 * fold-const.c: Include cgraph.h
13366 (tree_single_nonzero_warnv_p): Use symtab to determine
13367 if symbol is non-zero.
13368 * symtab.c (symtab_node::nonzero_address): New method.
13369
13370 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
13371
13372 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
13373 forgotten in previous commit.
13374
13375 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
13376
13377 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
13378 on builtin types.
13379 * ipa-devirt.c: Include stor-layout.h and intl.h
13380 (odr_subtypes_equivalent_p): New function.
13381 (warn_odr): New function.
13382 (warn_type_mismatch): New function.
13383 (odr_types_equivalent_p): New function.
13384 (add_type_duplicate): Use it.
13385 * common.opt (Wodr): New flag.
13386 * doc/invoke.texi (Wodr): Document new warning.
13387
13388 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
13389
13390 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
13391 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
13392 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
13393 (varpool_get_constructor): Push CTORS_IN timevar.
13394 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
13395
13396 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
13397
13398 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
13399 Remove VOID_FTYPE_PUSHORT.
13400 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
13401 Change code to USHORT_FTYPE_VOID.
13402 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
13403 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
13404 (ix86_atomic_assign_expand_fenv): Update for
13405 __builtin_ia32_fnstsw changes.
13406 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
13407 (fnstsw): Change operand 0 to nonimmediate operand.
13408
13409 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13410
13411 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
13412 (varpool_get_constructor): New function.
13413 (varpool_ctor_useable_for_folding_p): Break out from ...
13414 (ctor_for_folding): ... here; use varpool_get_constructor.
13415 (varpool_assemble_decl): Likewise.
13416 * lto-streamer.h (struct output_block): Turn cgraph_node
13417 to symbol filed.
13418 (lto_input_variable_constructor): Declare.
13419 * ipa-visibility.c (function_and_variable_visibility): Use
13420 varpool_get_constructor.
13421 * cgraph.h (varpool_get_constructor): Declare.
13422 (varpool_ctor_useable_for_folding_p): New function.
13423 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
13424 parameter; return error_mark_node for non-trivial constructors.
13425 (lto_write_tree_1, DFS_write_tree): Update use of
13426 get_symbol_initial_value.
13427 (output_function): Update initialization of symbol.
13428 (output_constructor): New function.
13429 (copy_function): Rename to ..
13430 (copy_function_or_variable): ... this one; handle vars too.
13431 (lto_output): Output variable sections.
13432 * lto-streamer-in.c (input_constructor): New function.
13433 (lto_read_body): Rename from ...
13434 (lto_read_body_or_constructor): ... this one; handle vars too.
13435 (lto_input_variable_constructor): New function.
13436 * ipa-prop.c (ipa_prop_write_jump_functions,
13437 ipa_prop_write_all_agg_replacement): Update.
13438 * lto-cgraph.c (compute_ltrans_boundary): Use it.
13439 (output_cgraph_opt_summary): Set symbol to NULL.
13440
13441 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13442
13443 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
13444 non-polymorphic types.
13445 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
13446 * ipa-devirt.c (types_same_for_odr): Do not explode when one
13447 of types is not polymorphic.
13448
13449 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
13450
13451 * lra-constraints.c (remove_inheritance_pseudos): Process
13452 destination pseudo too.
13453
13454 2014-07-11 Rong Xu <xur@google.com>
13455
13456 * gcov-tool.c (gcov_output_files): Fix build error introduced in
13457 commit r212448.
13458
13459 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13460
13461 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
13462 * config/avr/avr-devices.c (AVR_MCU): Same.
13463 (avr_mcu_types): add text start value to end of device list.
13464 * config/avr/avr-mcus.def: Add text section start for all devices.
13465 (ata5782): Add new avr5 device.
13466 (ata5831): Same.
13467 * config/avr/avr-tables.opt: Regenerate.
13468 * config/avr/avr.h: Add declaration for text section start handler.
13469 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
13470 SPEC functions.
13471 (LINK_SPEC): Include text section start handler to linker spec.
13472 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
13473 pass -Ttext option to linker if the text section start for the device
13474 is not zero.
13475 * config/avr/t-multilib: Regenerate.
13476 * doc/avr-mmcu.texi: Regenerate.
13477
13478 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
13479
13480 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
13481 * config/rs6000/aix52.h (LINK_SPEC): Same.
13482 * config/rs6000/aix53.h (LINK_SPEC): Same.
13483 * config/rs6000/aix61.h (LINK_SPEC): Same.
13484 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
13485
13486 2014-07-11 Roman Gareev <gareevroman@gmail.com>
13487
13488 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
13489 (graphite_verify): New function.
13490 (ivs_params_clear): New function.
13491 (gcc_expression_from_isl_ast_expr_id): New function.
13492 (gcc_expression_from_isl_expr_int): New function.
13493 (binary_op_to_tree): New function.
13494 (ternary_op_to_tree): New function.
13495 (unary_op_to_tree): New function.
13496 (nary_op_to_tree): New function.
13497 (gcc_expression_from_isl_expr_op): New function.
13498 (gcc_expression_from_isl_expression): New function.
13499 (graphite_create_new_loop): New function.
13500 (translate_isl_ast_for_loop): New function.
13501 (get_upper_bound): New function.
13502 (graphite_create_new_loop_guard): New function.
13503 (translate_isl_ast_node_for): New function.
13504 (translate_isl_ast): New function.
13505 (add_parameters_to_ivs_params): New function.
13506 (scop_to_isl_ast): New parameter ip.
13507 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
13508
13509 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13510
13511 * config/xtensa/predicates.md (call expander): Update for
13512 DECL_SECTION_NAME being string.
13513
13514 2014-07-11 Richard Biener <rguenther@suse.de>
13515
13516 PR middle-end/61473
13517 * builtins.c (fold_builtin_memory_op): Inline memory moves that
13518 can be implemented with a single load followed by a single store.
13519 (c_strlen): Only warn when only_value is not 2.
13520
13521 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
13522
13523 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
13524
13525 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
13526
13527 PR target/61561
13528 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
13529 (*movhi_bytes): Likewise.
13530 (*arm_movqi_insn): Likewise.
13531
13532 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
13533
13534 PR target/56858
13535 * config/alpha/alpha.c: Include tree-pass.h, context.h
13536 and pass_manager.h.
13537 (pass_data_handle_trap_shadows): New pass.
13538 (pass_handle_trap_shadows::gate): New pass gate function.
13539 (make_pass_handle_trap_shadows): New function.
13540 (rest_of_handle_trap_shadows): Ditto.
13541
13542 (alpha_align_insns_1): Rename from alpha_align_insns.
13543 (pass_data_align_insns): New pass.
13544 (pass_align_insns::gate): New pass gate function.
13545 (make_pass_aling_insns): New function.
13546 (rest_of_align_insns): Ditto.
13547 (alpha_align_insns): Ditto.
13548
13549 (alpha_option_override): Declare handle_trap_shadows info
13550 and align_insns_info. Register handle_trap_shadows and align_insns
13551 passes here.
13552 (alpha_reorg): Do not call alpha_trap_shadows and
13553 alpha_align_insn from here.
13554
13555 (alpha_pad_function_end): Do not skip BARRIERs.
13556
13557 2014-07-10 Rong Xu <xur@google.com>
13558
13559 Add gcov-tool: an offline gcda profile processing tool support.
13560 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
13561 (gcov_is_error): Ditto.
13562 (gcov_read_string): Ditto.
13563 (gcov_read_sync): Ditto.
13564 * gcov-io.h: Move counter defines to gcov-counter.def.
13565 * gcov-dump.c (tag_counters): Use gcov-counter.def.
13566 * coverage.c: Ditto.
13567 * gcov-tool.c: Offline gcda profile processing tool.
13568 (unlink_gcda_file): Remove one gcda file.
13569 (unlink_profile_dir): Remove gcda files from the profile path.
13570 (gcov_output_files): Output gcda files to an output dir.
13571 (profile_merge): Merge two profiles in directory.
13572 (print_merge_usage_message): Print merge usage.
13573 (merge_usage): Print merge usage and exit.
13574 (do_merge): Driver for profile merge sub-command.
13575 (profile_rewrite): Rewrite profile.
13576 (print_rewrite_usage_message): Print rewrite usage.
13577 (rewrite_usage): Print rewrite usage and exit.
13578 (do_rewrite): Driver for profile rewrite sub-command.
13579 (print_usage): Print gcov-info usage and exit.
13580 (print_version): Print gcov-info version.
13581 (process_args): Process arguments.
13582 (main): Main routine for gcov-tool.
13583 * Makefile.in: Build and install gcov-tool.
13584 * gcov-counter.def: New file split from gcov-io.h.
13585 * doc/gcc.texi: Include gcov-tool.texi.
13586 * doc/gcov-tool.texi: Document for gcov-tool.
13587
13588 2014-07-10 Richard Biener <rguenther@suse.de>
13589
13590 PR tree-optimization/61757
13591 * tree-ssa-dom.c (loop_depth_of_name): Restore.
13592 (propagate_rhs_into_lhs): Revert part of last change.
13593
13594 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
13595
13596 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
13597 FUNCTION_DECLs.
13598
13599 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
13600
13601 PR middle-end/53590
13602 * function.c (allocate_struct_function): Revert r188667 change.
13603
13604 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
13605
13606 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
13607
13608 * doc/install.texi: Remove links to defunct package providers for
13609 Solaris.
13610
13611 2014-07-09 Tom de Vries <tom@codesourcery.com>
13612
13613 * final.c (get_call_fndecl): Declare.
13614 (self_recursive_call_p): New function.
13615 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
13616
13617 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13618
13619 * ipa-devirt.c (record_node): Walk through aliases.
13620
13621 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13622
13623 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
13624
13625 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13626
13627 Revert:
13628 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
13629
13630 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13631
13632 * ipa-visibility.c (function_and_variable_visibility): Remove
13633 temporary hack disabling local aliases on AIX.
13634
13635 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13636
13637 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
13638 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
13639
13640 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13641
13642 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
13643 * rs6000/rs6000.c: Inline output of .set instruction.
13644 (declare_alias_data): New struct.
13645 (rs6000_declare_alias): New function.
13646 (rs6000_xcoff_declare_function_name): Use it.
13647 (rs6000_xcoff_declare_object_name): New function.
13648 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
13649 (ASM_OUTPUT_DEF): Turn to empty definition.
13650
13651 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13652
13653 PR bootstrap/61679
13654 * hash-table.h: use hash_table::value_type instead of
13655 Descriptor::value_type in the return types of several methods.
13656
13657 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13658
13659 * tree-pass.h (pass_data): Remove has_execute member.
13660 * passes.c (execute_one_pass): Don't check pass->has_execute.
13661 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
13662 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
13663 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
13664 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
13665 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
13666 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
13667 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
13668 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
13669 gimple-low.c, gimple-ssa-isolate-paths.c,
13670 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
13671 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
13672 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
13673 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
13674 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
13675 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
13676 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
13677 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
13678 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
13679 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
13680 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
13681 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
13682 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13683 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13684 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
13685 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
13686 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
13687 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13688 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13689 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
13690 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
13691 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
13692 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
13693 web.c: Remove initializer for pass_data::has_execute.
13694
13695 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13696
13697 * graphite-htab.h: Use hash_map instead of hash_table.
13698 * graphite-clast-to-gimple.c: Adjust.
13699 * passes.c: Use hash_map instead of hash_table.
13700 * sese.c: Likewise.
13701 * sese.h: Remove now unused code.
13702
13703 2014-07-08 Sriraman Tallam <tmsriram@google.com>
13704
13705 PR target/61599
13706 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
13707 than zero.
13708
13709 2014-07-08 Jakub Jelinek <jakub@redhat.com>
13710
13711 PR rtl-optimization/61673
13712 * combine.c (simplify_comparison): Test just mode's sign bit
13713 in tmode rather than the sign bit and any bits above it.
13714
13715 2014-07-08 Roman Gareev <gareevroman@gmail.com>
13716
13717 * graphite-isl-ast-to-gimple.c (generate_isl_context):
13718 Add __isl_give to the declaration.
13719 (generate_isl_schedule): Likewise.
13720 (scop_to_isl_ast): Likewise.
13721
13722 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13723
13724 * config/arm/arm.c (cortexa5_extra_costs): New table.
13725 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
13726
13727 2014-07-08 Jakub Jelinek <jakub@redhat.com>
13728
13729 PR tree-optimization/61725
13730 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
13731 range, use range_includes_zerop_p instead of integer_zerop on
13732 vr0->min, only use log2 of max if min is not negative.
13733
13734 2014-07-08 Richard Biener <rguenther@suse.de>
13735
13736 * tree-ssa-dom.h (loop_depth_of_name): Remove.
13737 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
13738 restriction on loop depth difference.
13739 (record_equality): Likewise.
13740 (propagate_rhs_into_lhs): Likewise. Simplify condition.
13741 (loop_depth_of_name): Remove.
13742 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
13743 restriction on loop depth difference.
13744 (init_copy_prop): Likewise.
13745
13746 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13747
13748 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
13749 parameter.
13750 (walk_aliased_vdefs): Likewise.
13751 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
13752 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
13753 (detect_type_change_from_memory_writes): Check if entry was reached.
13754
13755 2014-07-08 Richard Biener <rguenther@suse.de>
13756
13757 PR tree-optimization/61681
13758 * tree-ssa-structalias.c (find_what_var_points_to): Expand
13759 NONLOCAL inside ESCAPED.
13760
13761 2014-07-08 Richard Biener <rguenther@suse.de>
13762
13763 PR tree-optimization/61680
13764 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13765 Handle properly all read-write dependences with group accesses.
13766
13767 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
13768
13769 PR tree-optimization/61576
13770 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
13771 block containing reduction statement is predecessor of phi basi block.
13772
13773 2014-07-08 Marek Polacek <polacek@redhat.com>
13774
13775 PR c/60226
13776 * fold-const.c (round_up_loc): Change the parameter type.
13777 Remove assert.
13778 * fold-const.h (round_up_loc): Adjust declaration.
13779 * stor-layout.c (finalize_record_size): Check for too large types.
13780
13781 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
13782
13783 * symtab.c: Include calls.h.
13784 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
13785
13786 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
13787
13788 * config/rs6000/rs6000.c (output_vec_const_move): Handle
13789 little-endian code generation.
13790 * config/rs6000/spe.md (spe_evmergehi): Rename to...
13791 (vec_perm00_v2si): ... this. Handle little-endian code generation.
13792 (spe_evmergehilo): Rename to...
13793 (vec_perm01_v2si): ... this. Handle little-endian code generation.
13794 (spe_evmergelo): Rename to...
13795 (vec_perm11_v2si): ... this. Handle little-endian code generation.
13796 (spe_evmergelohi): Rename to...
13797 (vec_perm10_v2si): ... this. Handle little-endian code generation.
13798 (spe_evmergehi, spe_evmergehilo): New expanders.
13799 (spe_evmergelo, spe_evmergelohi): Likewise.
13800 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
13801 (*frob_tf_ti): Likewise.
13802 (*frob_<mode>_di_2): Likewise.
13803 (*frob_tf_di_8_2): Likewise.
13804 (*frob_di_<mode>): Likewise.
13805 (*frob_ti_tf): Likewise.
13806 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
13807 (*frob_ti_<mode>_8_2): Likewise.
13808 (*frob_ti_tf_2): Likewise.
13809 (mov_si<mode>_e500_subreg0): Rename to...
13810 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
13811 endianness only.
13812 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
13813 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
13814 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
13815 the big endianness only.
13816 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
13817 (*mov_si<mode>_e500_subreg0_2): Rename to...
13818 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
13819 big big endianness only.
13820 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
13821 (*mov_si<mode>_e500_subreg4): Rename to...
13822 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
13823 endianness only.
13824 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
13825 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
13826 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
13827 the big endianness only.
13828 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
13829 pattern.
13830 (*mov_si<mode>_e500_subreg4_2): Rename to...
13831 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
13832 endianness only.
13833 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
13834 (*mov_sitf_e500_subreg8): Rename to...
13835 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
13836 endianness only.
13837 (*mov_sitf_e500_subreg8_le): New instruction pattern.
13838 (*mov_sitf_e500_subreg8_2): Rename to...
13839 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
13840 endianness only.
13841 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
13842 (*mov_sitf_e500_subreg12): Rename to...
13843 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
13844 endianness only.
13845 (*mov_sitf_e500_subreg12_le): New instruction pattern.
13846 (*mov_sitf_e500_subreg12_2): Rename to...
13847 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
13848 endianness only.
13849 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
13850
13851 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
13852
13853 * asan.c (instrument_strlen_call): Do not instrument first byte
13854 in strlen if already instrumented.
13855
13856 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13857
13858 * config/arm/arm.opt (mwords-little-endian): Delete.
13859 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
13860 of TARGET_LITTLE_WORDS.
13861 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
13862 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
13863 warning.
13864 * doc/invoke.texi: Remove references to -mwords-little-endian.
13865
13866 2014-07-07 Jakub Jelinek <jakub@redhat.com>
13867
13868 * expmed.c (struct init_expmed_rtl): Change all fields but
13869 pow2 and cint from struct rtx_def to rtx.
13870 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
13871 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
13872 at the end again.
13873
13874 2014-07-06 Marek Polacek <polacek@redhat.com>
13875
13876 PR c/6940
13877 * doc/invoke.texi: Document -Wsizeof-array-argument.
13878
13879 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
13880
13881 * wide-int.h (wide_int_storage): Change declaration from struct
13882 to class.
13883
13884 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
13885
13886 * cgraph.c (cgraph_create_indirect_edge): Update call of
13887 get_polymorphic_call_info.
13888 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
13889 (possible_polymorphic_call_targets): Add parameter call.
13890 (decl_maybe_in_construction_p): New predicate.
13891 (get_polymorphic_call_info): Add parameter call;
13892 use decl_maybe_in_construction_p.
13893 * gimple-fold.c (fold_gimple_assign): Update use of
13894 possible_polymorphic_call_targets.
13895 (gimple_fold_call): Likewise.
13896 * ipa-prop.c: Inlcude calls.h
13897 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
13898 (param_type_may_change_p): New predicate.
13899 (detect_type_change_from_memory_writes): Break out from ...
13900 (detect_type_change): ... this one; use param_type_may_change_p.
13901 (detect_type_change_ssa): Use param_type_may_change_p.
13902 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
13903
13904 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
13905
13906 PR target/49423
13907 * config/arm/arm-protos.h (arm_legitimate_address_p,
13908 arm_is_constant_pool_ref): Add prototypes.
13909 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
13910 (arm_is_constant_pool_ref) New function.
13911 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
13912 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
13913 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
13914 operand. Remove pool_range and neg_pool_range attributes.
13915 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
13916 pool_range and neg_pool_range attributes.
13917 * config/arm/constraints.md (Uh): New constraint.
13918 (Uq): Don't allow constant pool references.
13919
13920 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
13921
13922 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
13923 (move_lo_quad_internal_be_<mode>): Likewise.
13924 (move_lo_quad_<mode>): Convert to define_expand.
13925 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
13926 (aarch64_simd_move_hi_quad_be_<mode>): New.
13927 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
13928 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
13929 (aarch64_combinez_be<mode>): New.
13930 (aarch64_combine<mode>): Convert to define_expand.
13931 (aarch64_combine_internal<mode>): New.
13932 (aarch64_simd_combine<mode>): Remove bogus RTL description.
13933
13934 2014-07-04 Tom de Vries <tom@codesourcery.com>
13935
13936 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
13937 combination of earlyclobber and read/write modifiers.
13938
13939 2014-07-04 Tom de Vries <tom@codesourcery.com>
13940
13941 * config/aarch64/aarch64-simd.md
13942 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
13943
13944 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
13945
13946 PR target/61714
13947 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
13948
13949 2014-07-04 Jakub Jelinek <jakub@redhat.com>
13950
13951 PR middle-end/61654
13952 * cgraphunit.c (expand_thunk): Call free_dominance_info.
13953
13954 PR tree-optimization/61684
13955 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
13956 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
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_have_prologue_p): Move to ...
13963 (nds32_symbol_load_store_p): Move to ...
13964 (nds32_fp_as_gp_check_available): Move to ...
13965 * config/nds32/nds32-fp-as-gp.c: ... here.
13966 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
13967 extern declaration.
13968
13969 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13970 Kito Cheng <kito@0xlab.org>
13971 Monk Chiang <sh.chiang04@gmail.com>
13972
13973 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
13974 (nds32_expand_store_multiple): Move to ...
13975 (nds32_expand_movmemqi): Move to ...
13976 * config/nds32/nds32-memory-manipulation.c: ... here.
13977
13978 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13979 Kito Cheng <kito@0xlab.org>
13980 Monk Chiang <sh.chiang04@gmail.com>
13981
13982 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
13983 (nds32_output_casesi_pc_relative): Move to ...
13984 (nds32_output_casesi): Move to ...
13985 (nds32_mem_format): Move to ...
13986 (nds32_output_16bit_store): Move to ...
13987 (nds32_output_16bit_load): Move to ...
13988 (nds32_output_32bit_store): Move to ...
13989 (nds32_output_32bit_load): Move to ...
13990 (nds32_output_32bit_load_s): Move to ...
13991 (nds32_output_stack_push): Move to ...
13992 (nds32_output_stack_pop): Move to ...
13993 * config/nds32/nds32-md-auxiliary.c: ... here.
13994
13995 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13996 Ling-Hua Tseng <uranus@tinlans.org>
13997
13998 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
13999 the purpose of this file.
14000
14001 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14002 Kito Cheng <kito@0xlab.org>
14003 Monk Chiang <sh.chiang04@gmail.com>
14004
14005 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
14006 (nds32_address_cost): Move implementation to ...
14007 * config/nds32/nds32-cost.c: ... here.
14008 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
14009 (nds32_address_cost_impl): Declare.
14010
14011 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14012 Kito Cheng <kito@0xlab.org>
14013 Monk Chiang <sh.chiang04@gmail.com>
14014
14015 * config/nds32/nds32.c
14016 (nds32_consecutive_registers_load_store_p): Move to ...
14017 (nds32_valid_multiple_load_store): Move to ...
14018 (nds32_valid_stack_push_pop): Move to ...
14019 (nds32_can_use_bclr_p): Move to ...
14020 (nds32_can_use_bset_p): Move to ...
14021 (nds32_can_use_btgl_p): Move to ...
14022 (nds32_can_use_bitci_p): Move to ...
14023 * config/nds32/nds32-predicates.c: ... here.
14024
14025 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14026 Kito Cheng <kito@0xlab.org>
14027 Monk Chiang <sh.chiang04@gmail.com>
14028
14029 * config/nds32/nds32.c
14030 (nds32_expand_builtin_null_ftype_reg): Move to ...
14031 (nds32_expand_builtin_reg_ftype_imm): Move to ...
14032 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
14033 (nds32_init_builtins): Move implementation to ...
14034 (nds32_expand_builtin): Move implementation to ...
14035 * config/nds32/nds32-intrinsic.c: ... here.
14036 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
14037 (nds32_expand_builtin_impl): 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/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
14044 (nds32_emit_section_tail_template): Move to ...
14045 (nds32_emit_isr_jmptbl_section): Move to ...
14046 (nds32_emit_isr_vector_section): Move to ...
14047 (nds32_emit_isr_reset_conten): Move to ...
14048 (nds32_check_isr_attrs_conflict): Move to ...
14049 (nds32_construct_isr_vectors_information): Move to ...
14050 (nds32_asm_file_start): Move implementation to ...
14051 (nds32_asm_file_end): Move implementation to ...
14052 * config/nds32/nds32-isr.c: ... here.
14053 * config/nds32/nds32-protos.h
14054 (nds32_check_isr_attrs_conflict): Declare.
14055 (nds32_construct_isr_vectors_information): Declare.
14056 (nds32_asm_file_start_for_isr): Declare.
14057 (nds32_asm_file_end_for_isr): Declare.
14058
14059 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14060 Kito Cheng <kito@0xlab.org>
14061 Monk Chiang <sh.chiang04@gmail.com>
14062
14063 * config.gcc (nds32*): Add new modules to extra_objs.
14064 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
14065 (nds32be-*-*): Likewise.
14066 * config/nds32/nds32-cost.c: New file.
14067 * config/nds32/nds32-fp-as-gp.c: New file.
14068 * config/nds32/nds32-intrinsic.c: New file.
14069 * config/nds32/nds32-isr.c: New file.
14070 * config/nds32/nds32-md-auxiliary.c: New file.
14071 * config/nds32/nds32-memory-manipulation.c: New file.
14072 * config/nds32/nds32-pipelines-auxiliary.c: New file.
14073 * config/nds32/nds32-predicates.c: New file.
14074 * config/nds32/t-nds32: New file.
14075
14076 2014-07-03 Jakub Jelinek <jakub@redhat.com>
14077
14078 PR tree-optimization/61682
14079 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
14080 using cases and when one of the operands is equal to 1.
14081
14082 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
14083
14084 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
14085 ashr<mode>3): Correct mode of operands[2].
14086 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
14087 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
14088 Correct mode of operands[2]. Fix split condition.
14089
14090 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
14091
14092 * arm.md (arch): Add armv6_or_vfpv3.
14093 (arch_enabled): Add test for the above.
14094 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
14095 on VFP9.
14096 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
14097
14098 2014-07-03 Jakub Jelinek <jakub@redhat.com>
14099
14100 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
14101 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
14102 HWI 1 and negate the unsigned value.
14103 * expmed.c (expand_sdiv_pow2): For modes wider than word always
14104 use AND instead of shift.
14105 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
14106
14107 2014-07-03 Marek Polacek <polacek@redhat.com>
14108
14109 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
14110 (-fsanitize=float-divide-by-zero): Move to the table with
14111 -fsanitize=undefined suboptions.
14112 (-fsanitize=float-cast-overflow): Likewise.
14113
14114 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
14115
14116 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
14117 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
14118 endianness.
14119
14120 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14121
14122 * loop-invariant.c (struct invariant): Add a new member: eqno;
14123 (find_identical_invariants): Update eqno;
14124 (create_new_invariant): Init eqno;
14125 (get_inv_cost): Compute comp_cost with eqno;
14126
14127 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
14128
14129 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
14130 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
14131 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
14132 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
14133 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
14134
14135 2014-07-02 Christian Bruel <christian.bruel@st.com>
14136
14137 PR target/29349
14138 PR target/53513
14139 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
14140 (make_preds_opaque): Delete.
14141 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
14142 (commit_mode_sets): New function.
14143 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
14144 Process all modes at once.
14145 * basic-block.h (pre_edge_lcm_avs): Declare.
14146 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
14147 Call clear_aux_for_edges. Fix comments.
14148 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
14149 (pre_edge_rev_lcm): Idem.
14150 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
14151 parameter.
14152 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
14153 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
14154 Idem.
14155 * config/i386/i386.c (x96_emit_mode_set): Idem.
14156 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
14157 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
14158 (fpscr_toggle) Disallow from delay slot.
14159 * target.def (emit_mode_set): Add prev_mode parameter.
14160 * doc/tm.texi: Regenerate.
14161
14162 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14163
14164 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
14165 variable i.
14166
14167 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
14168
14169 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
14170 vtable_pointer_value_to_vtable): Constify.
14171 (contains_polymorphic_type_p): Declare.
14172 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
14173 vtable_pointer_value_to_vtable): Constify.
14174 (contains_polymorphic_type_p): New predicate.
14175 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
14176 polymorphic types.
14177 (ipa_set_ancestor_jf): Likewise.
14178 (detect_type_change): Return false in easy cases.
14179 (compute_complex_assign_jump_func): Require type to contain
14180 polymorphic type.
14181 (compute_known_type_jump_func): Likewise.
14182
14183 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
14184
14185 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
14186 Remove.
14187 (type_in_anonymous_namespace_p): Constify argument.
14188 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
14189 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
14190 (main_odr_variant): New function.
14191 (hash_type_name): Make static; update assert; do not ICE on
14192 non-records.
14193 (types_same_for_odr): Bring here from tree.c; simplify and remove
14194 old structural comparing code that doesn't work for templates.
14195 (odr_hasher::equal): Update assert.
14196 (add_type_duplicate): Return true when bases should be computed;
14197 replace incomplete loader by complete; do not output duplicated
14198 warnings; do not ICE on non-records; set odr_violated flag.
14199 (get_odr_type): Be ready to replace incomplete type by complete
14200 one; work on ODR variants instead of main variants; reorder item
14201 in array so bases have still smaller indexes.
14202 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
14203 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
14204
14205 2014-07-01 Cary Coutant <ccoutant@google.com>
14206
14207 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
14208 lookup.
14209 (resolve_addr_in_expr): When replacing the rtx in a location list
14210 entry, get a new address table entry.
14211 (dwarf2out_finish): Call index_location_lists even if there are no
14212 addr_index_table entries yet.
14213
14214 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
14215
14216 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
14217 change for not being obvious.
14218
14219 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
14220
14221 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
14222 unused argument.
14223
14224 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14225
14226 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
14227 (vcagt_f64): Likewise.
14228 (vcale_f64): Likewise.
14229 (vcaled_f64): Likewise.
14230 (vcales_f32): Likewise.
14231 (vcalt_f64): Likewise.
14232 (vcaltd_f64): Likewise.
14233 (vcalts_f32): Likewise.
14234
14235 2014-07-01 Marek Polacek <polacek@redhat.com>
14236
14237 * doc/invoke.texi: Document -Wint-conversion.
14238
14239 2014-07-01 Marek Polacek <polacek@redhat.com>
14240
14241 PR c/58286
14242 * doc/invoke.texi: Document -Wincompatible-pointer-types.
14243
14244 2014-07-01 Martin Liska <mliska@suse.cz>
14245
14246 IPA REF alias refactoring
14247 * cgraph.h (iterate_direct_aliases): New function.
14248 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
14249 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
14250 FOR_EACH_ALIAS added.
14251 (cgraph_for_node_and_aliases): Likewise.
14252 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
14253 * ipa-inline.c (reset_edge_caches): Likewise.
14254 (update_caller_keys): Likewise.
14255 * trans-mem.c (ipa_tm_execute): Likewise.
14256 *varpool.c (varpool_analyze_node): Likewise.
14257 (varpool_for_node_and_aliases): Likewise.
14258 * ipa-ref.h (first_alias): New function.
14259 (last_alias): Likewise.
14260 (has_aliases_p): Likewise.
14261 * ipa-ref.c (ipa_ref::remove_reference): Removal function
14262 is sensitive to IPA_REF_ALIASes.
14263 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
14264 are put at the beginning of the list.
14265 (symtab_node::iterate_direct_aliases): New function.
14266
14267 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14268
14269 Revert:
14270 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
14271 type is complete.
14272 (write_ts_type_common_tree_pointers): Do not stream fields not set
14273 for incomplete types; do not stream duplicated fields for variants;
14274 sanity check that variant and type match.
14275 (write_ts_type_non_common_tree_pointers): Likewise.
14276 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
14277 TYPE_SIZE whether type is complete.
14278 (lto_input_ts_type_common_tree_pointers): Do same changes as in
14279 write_ts_type_common_tree_pointers
14280 (lto_input_ts_type_non_common_tree_pointers): Likewise.
14281
14282 2014-06-30 Joseph Myers <joseph@codesourcery.com>
14283
14284 * var-tracking.c (add_stores): Return instead of asserting if old
14285 and new values for conditional store are the same.
14286
14287 2014-06-30 Richard Henderson <rth@redhat.com>
14288
14289 PR rtl-opt/61608
14290 PR target/39284
14291 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
14292 the cfg if there were any changes.
14293 * passes.def: Revert move of peephole2 after reorder_blocks;
14294 move duplicate_computed_gotos before peephole2.
14295
14296 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
14297
14298 * except.c (emit_note_eh_region_end): New helper function.
14299 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
14300 emit EH_REGION_END note.
14301 * jump.c (cleanup_barriers): Do not split a call and its
14302 corresponding CALL_ARG_LOCATION note.
14303
14304 2014-06-30 Jeff Law <law@redhat.com>
14305
14306 PR tree-optimization/61607
14307 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
14308 deeper into the SSA_NAME_VALUE chain.
14309
14310 2014-06-30 Marek Polacek <polacek@redhat.com>
14311
14312 * convert.c (convert_to_integer): Don't instrument conversions if the
14313 function has no_sanitize_undefined attribute.
14314 * ubsan.c: Don't run the ubsan pass if the function has
14315 no_sanitize_undefined attribute.
14316
14317 2014-06-30 Jakub Jelinek <jakub@redhat.com>
14318
14319 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
14320 -fsanitize=undefined suboptions.
14321
14322 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
14323
14324 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
14325 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
14326 against bigendian and adjust indices.
14327
14328 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
14329
14330 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
14331
14332 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
14333
14334 PR target/61633
14335 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
14336 Add alternative; make early clobber. Adjust both split patterns
14337 to use operand 0 as the working register.
14338
14339 2014-06-30 Jakub Jelinek <jakub@redhat.com>
14340
14341 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
14342 as ira_object_id_map might be NULL, or 1.
14343
14344 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14345
14346 * loop-invariant.c (get_inv_cost): Handle register class.
14347 (gain_for_invariant): Check the register pressure of the inv
14348 and its overlapped register class, other than all.
14349
14350 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
14351
14352 * doc/invoke.texi (Optimize Options): Fix descriptions of
14353 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
14354
14355 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
14356
14357 * doc/extend.texi (Function Attributes): Update 'naked' attribute
14358 documentation.
14359
14360 2014-06-29 Tobias Grosser <tobias@grosser.es>
14361
14362 PR bootstrap/61650
14363 * graphite-isl-ast-to-gimple.c: Add missing guards.
14364
14365 2014-06-29 Roman Gareev <gareevroman@gmail.com>
14366
14367 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
14368 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
14369 * flag-types.h: Add new enum fgraphite_generator.
14370 * graphite-isl-ast-to-gimple.c: New.
14371 * graphite-isl-ast-to-gimple.h: New.
14372 * graphite.c (graphite_transform_loops): Add choice of Graphite
14373 code generator, which depends on flag_graphite_code_gen.
14374
14375 2014-06-29 Roman Gareev <gareevroman@gmail.com>
14376
14377 * graphite-dependences.c (subtract_commutative_associative_deps):
14378 Add NULL checking of the following variables: must_raw_no_source,
14379 may_raw_no_source, must_war_no_source, may_war_no_source,
14380 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
14381 must_war, may_war, must_waw, may_waw.
14382
14383 2014-06-29 Roman Gareev <gareevroman@gmail.com>
14384
14385 * graphite-clast-to-gimple.c: gloog is renamed to
14386 graphite_regenerate_ast_cloog. gloog_error is renamed to
14387 graphite_regenerate_error.
14388 * graphite-clast-to-gimple.h: The definition of the struct
14389 bb_pbb_def is moved to graphite-htab.h.
14390 Add inclusion of the hash-table.h.
14391 * graphite-htab.h: The declaration of the function gloog is moved
14392 to graphite-clast-to-gimple.h and renamed to
14393 graphite_regenerate_ast_cloog.
14394 * graphite.c (graphite_transform_loops): gloog is renamed
14395 to graphite_regenerate_ast_cloog.
14396
14397 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14398
14399 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
14400 type is complete.
14401 (write_ts_type_common_tree_pointers): Do not stream fields not set
14402 for incomplete types; do not stream duplicated fields for variants;
14403 sanity check that variant and type match.
14404 (write_ts_type_non_common_tree_pointers): Likewise.
14405 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
14406 TYPE_SIZE whether type is complete.
14407 (lto_input_ts_type_common_tree_pointers): Do same changes as in
14408 write_ts_type_common_tree_pointers
14409 (lto_input_ts_type_non_common_tree_pointers): Likewise.
14410
14411 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14412
14413 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
14414
14415 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14416
14417 * tree-inline.c (remap_type_1): Do not duplicate fields
14418 that are shared in between type and its main variant.
14419
14420 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14421
14422 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
14423 of the type.
14424 (ipa_set_ancestor_jf) Likewise.
14425 (check_stmt_for_type_change): Check that we work on main variant.
14426 (detect_type_change): Look into main variant.
14427 (compute_known_type_jump_func): Check that main variant has BINFO.
14428
14429 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14430
14431 * ipa-devirt.c (set_type_binfo): New function.
14432 (add_type_duplicate): Use it.
14433 (get_odr_type): Sanity check that binfos points to main variants.
14434 (get_class_context): Be sure the context's outer_type is main variant.
14435 (contains_type_p): Walk main variant.
14436 (get_polymorphic_call_info_for_decl): Set outer_type to be
14437 main variant.
14438 (get_polymorphic_call_info): Likewise.
14439 (possible_polymorphic_call_targets): Sanity check that we operate
14440 on main variant.
14441
14442 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14443
14444 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
14445
14446 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14447
14448 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
14449 accidental change due to wide-int branch merge.
14450
14451 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14452
14453 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
14454 compressed debug support.
14455 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
14456 * configure: Regenerate.
14457 * config.in: Regenerate.
14458 * common.opt (compressed_debug_sections): New enum.
14459 (gz, gz=): New options.
14460 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
14461 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
14462 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
14463 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
14464 LINK_COMPRESS_DEBUG_SPEC.
14465 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
14466 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
14467 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
14468 (Debugging Options): Document -gz[=type].
14469
14470 2014-06-27 Martin Jambor <mjambor@suse.cz>
14471
14472 PR ipa/61160
14473 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
14474 args_to_skip, use those from node instead. Copy args_to_skip and
14475 combined_args_to_skip from node to the new thunk.
14476 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
14477 (cgraph_create_virtual_clone): Moved computation of
14478 combined_args_to_skip...
14479 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
14480
14481 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
14482
14483 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
14484 redundant diagnostic machinary.
14485
14486 2014-06-27 Richard Biener <rguenther@suse.de>
14487
14488 * tree-ssa-math-opts.c (bswap_replace): Fix
14489 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
14490
14491 2014-06-27 Martin Liska <mliska@suse.cz>
14492
14493 * gimple.h (gimple_location_safe): New function introduced.
14494 * cgraphunit.c (walk_polymorphic_call_targets): Usage
14495 of gimple_location_safe replaces gimple_location.
14496 (gimple_fold_call): Likewise.
14497 * ipa-devirt.c (ipa_devirt): Likewise.
14498 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
14499 * ipa.c (walk_polymorphic_call_targets): Likewise.
14500 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
14501
14502 2014-06-27 Jakub Jelinek <jakub@redhat.com>
14503
14504 PR tree-optimization/57233
14505 PR tree-optimization/61299
14506 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
14507 functions.
14508 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
14509 would be lowered to scalar shifts, check if corresponding
14510 shifts and vector BIT_IOR_EXPR are supported and don't lower
14511 or lower just to narrower vector type in that case.
14512 * expmed.c (expand_shift_1): Fix up handling of vector
14513 shifts and rotates.
14514
14515 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
14516
14517 PR target/61586
14518 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
14519
14520 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
14521
14522 * doc/invoke.texi (-fsemantic-interposition): Document.
14523 * common.opt (fsemantic-interposition): New flag.
14524 * varasm.c (decl_replaceable_p): Use it.
14525
14526 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14527
14528 PR target/61542
14529 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
14530 extraction other than index 3.
14531
14532 2014-06-26 Teresa Johnson <tejohnson@google.com>
14533
14534 * doc/invoke.texi: Fix typo.
14535 * dumpfile.c: Add support for documented -fdump-* options
14536 optimized/missed/note/optall.
14537
14538 2014-06-26 Martin Jambor <mjambor@suse.cz>
14539
14540 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
14541 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
14542 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
14543 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
14544 * opts.c (default_options_optimization): Set
14545 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
14546 * doc/invoke.texi (allow-load-data-races)
14547 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
14548 (allow-store-data-races): Document the new default.
14549
14550 2014-06-26 Martin Jambor <mjambor@suse.cz>
14551
14552 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
14553 renamed to ipa_impossible_devirt_target. Fix typo.
14554 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
14555 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
14556 ipa_impossible_devirt_target.
14557
14558 2014-06-26 Richard Biener <rguenther@suse.de>
14559
14560 PR tree-optimization/61607
14561 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
14562 explaining why we restrict copies on loop depth.
14563 * tree-ssa-dom.c (cprop_operand): Remove restriction on
14564 on loop depth.
14565 (record_equivalences_from_phis): Instead add it here.
14566
14567 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
14568
14569 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
14570 (LTO_WRAPPER_OBJS): New variable.
14571 (lto-wrapper$(exeext)): Use it.
14572 * collect2.c: Include "collect-utils.h".
14573 (verbose, debug): Remove variables.
14574 (at_file_supplied): No longer static.
14575 (tool_name): New variable.
14576 (do_wait, fork_execute, maybe_unlink): Don't declare.
14577 (tool_cleanup): No longer static.
14578 (notice): Remove function.
14579 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
14580 fork_execute calls.
14581 (collect_wait, do_wait, collect_execute): Remove functions.
14582 (maybe_unlink): No longer static.
14583 * collect2.h (verbose, debug): Don't declare.
14584 (at_file_supplied): Declare.
14585 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
14586 changed.
14587 (collect_execute): Replace with implementation from collect2, plus a
14588 new arg use_atfile. All callers changed.
14589 (collect_wait): Replace with implementation from collect2.
14590 (maybe_unlink_file): Remove function.
14591 (fork_execute): Replace with implementation from collect2, plus a
14592 new arg use_atfile. All callers changed.
14593 (do_wait): Add call to utils_cleanup to the error path.
14594 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
14595 (tool_cleanup): Adjust declarations.
14596 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
14597 * tlink.c: Include "collect-utils.h".
14598 (tlink_execute): New arg use_atfile. All callers changed.
14599 (tlink_init, tlink_execute): Remove declarations.
14600
14601 * collect-utils.c (save_temps): New variable.
14602 (do_wait): Use it instead of debug. Use fatal_error.
14603 * collect-utils.h (save_temps): Declare.
14604 * collect2.c (verbose): Rename from vflag. All uses changed.
14605 (tool_cleanup): New function, copied from collect_atexit.
14606 (collect_atexit, handler): Just call it.
14607 * collect2.h (verbose): Declaration renamed from vflag.
14608 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
14609 debug.
14610
14611 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
14612 (lto-wrapper$(exeext)): Link with collect-utils.o.
14613 * collect-utils.c: New file.
14614 * collect-utils.h: New file.
14615 * lto-wrapper.c: Include "collect-utils.h".
14616 (args_name): Delete variable.
14617 (tool_name): New variable.
14618 (tool_cleanup): New function.
14619 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
14620 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
14621 (fork_execute): Remove functions.
14622
14623 2014-06-26 Nick Clifton <nickc@redhat.com>
14624
14625 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
14626
14627 * doc/extend.texi (Function Attributes): Fix typo in description
14628 of RX vector attribute.
14629
14630 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
14631
14632 * config.gcc (supported_defaults): Error when passing either
14633 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
14634
14635 2014-06-26 Richard Biener <rguenther@suse.de>
14636
14637 * tree-ssa-dom.c (cprop_operand): Remove restriction on
14638 propagating volatile pointers.
14639
14640 2014-06-26 Richard Biener <rguenther@suse.de>
14641
14642 PR tree-optimization/61607
14643 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
14644 loop if we redirected its latch edge.
14645 (thread_block_1): Do not cancel loops prematurely.
14646
14647 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
14648
14649 * toplev.c (backend_init_target): Move init_emit_regs and
14650 init_regs to...
14651 (backend_init) ... here; skip ira_init_once and backend_init_target.
14652 (target_reinit) ... and here; clear
14653 this_target_rtl->lang_dependent_initialized.
14654 (lang_dependent_init_target): Clear
14655 this_target_rtl->lang_dependent_initialized;
14656 break out rtl initialization to ...
14657 (initialize_rtl): ... here; call also backend_init_target
14658 and ira_init_once.
14659 * toplev.h (initialize_rtl): New function.
14660 * function.c: Include toplev.h
14661 (init_function_start): Call initialize_rtl.
14662 * rtl.h (target_rtl): Add target_specific_initialized,
14663 lang_dependent_initialized.
14664
14665 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
14666 Jakub Jelinek <jakub@redhat.com>
14667
14668 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
14669
14670 2014-06-25 Tom de Vries <tom@codesourcery.com>
14671
14672 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
14673
14674 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
14675
14676 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
14677 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
14678 Issue a strict overflow warning if appropriate.
14679
14680 2014-06-25 Martin Liska <mliska@suse.cz>
14681
14682 IPA REF refactoring
14683 * Makefile.in: Removed header file (ipa-ref-inline.h).
14684 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
14685 called.
14686 (cgraph_speculative_call_info): Likewise.
14687 (cgraph_for_node_thunks_and_aliases): Likewise.
14688 (cgraph_for_node_and_aliases): Likewise.
14689 (verify_cgraph_node): Likewise.
14690 * cgraph.h: Batch of IPA REF functions become member functions of
14691 symtab_node: add_reference, maybe_add_reference, clone_references,
14692 clone_referring, clone_reference, find_reference,
14693 remove_stmt_references, remove_all_references,
14694 remove_all_referring, dump_references, dump_referring,
14695 has_alias_p, iterate_reference, iterate_referring.
14696 * cgraphbuild.c (record_reference): New IPA REF function used.
14697 (record_type_list): Likewise.
14698 (record_eh_tables): Likewise.
14699 (mark_address): Likewise.
14700 (mark_load): Likewise.
14701 (mark_store): Likewise.
14702 (pass_build_cgraph_edges): Likewise.
14703 (rebuild_cgraph_edge): Likewise.
14704 (cgraph_rebuild_references): Likewise.
14705 (pass_remove_cgraph_callee_edges): Likewise.
14706 * cgraphclones.c (cgraph_clone_node): Likewise.
14707 (cgraph_create_virtual_clone): Likewise.
14708 (cgraph_materialize_clone): Likewise.
14709 (cgraph_materialize_all_clones): Likewise.
14710 * cgraphunit.c (cgraph_reset_node): Likewise.
14711 (cgraph_reset_node): Likewise.
14712 (analyze_function): Likewise.
14713 (assemble_thunks_and_aliases): Likewise.
14714 (expand_function): Likewise.
14715 * ipa-comdats.c (propagate_comdat_group): Likewise.
14716 (enqueue_references): Likewise.
14717 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
14718 (create_specialized_node): Likewise.
14719 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
14720 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
14721 * ipa-inline.c (reset_edge_caches): Likewise.
14722 (update_caller_keys): Likewise.
14723 (execute): Likewise.
14724 * ipa-prop.c (remove_described_reference): Likewise.
14725 (propagate_controlled_uses): Likewise.
14726 (ipa_edge_duplication_hook): Likewise.
14727 (ipa_modify_call_arguments): Likewise.
14728 * ipa-pure-const.c (propagate_pure_const): Likewise.
14729 * ipa-ref-inline.h: Header file removed, functions moved
14730 to symtab_node class.
14731 * ipa-ref.c (remove_reference): New class member function.
14732 (cannot_lead_to_return): New class member function.
14733 (referring_ref_list): Likewise.
14734 (referred_ref_list): Likewise.
14735 Rest of functions moved to symtab_node class.
14736 * ipa-ref.h: New member functions remove_reference,
14737 cannot_lead_to_return, referring_ref_list, referred_ref_list added
14738 to ipa_ref class.
14739 ipa_ref_list class has new member functions: first_reference,
14740 first_referring, clear, nreferences.
14741 * ipa-reference.c (analyze_function): New IPA REF function used.
14742 (write_node_summary_p): Likewise.
14743 (ipa_reference_write_optimization_summary): Likewise.
14744 * ipa-split.c (split_function): Likewise.
14745 * ipa-utils.c (ipa_reverse_postorder): Likewise.
14746 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
14747 (function_and_variable_visibility): Likewise.
14748 * ipa.c (has_addr_references_p): Likewise.
14749 (process_references): Argument type changed.
14750 (symtab_remove_unreachable_nodes): New IPA REF function used.
14751 (process_references): Likewise.
14752 (set_writeonly_bit): Likewise.
14753 * lto-cgraph.c: Implementation of new symtab_node member functions
14754 that uses new IPA REF functions.
14755 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
14756 function used.
14757 * lto-streamer-out.c (output_symbol_p): Likewise.
14758 * lto-streamer.h (referenced_from_this_partition_p): Argument type
14759 changed.
14760 * symtab.c: Implementation of new IPA REF API.
14761 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
14762 (ipa_tm_create_version): Likewise.
14763 (ipa_tm_execute): Likewise.
14764 * tree-emutls.c (gen_emutls_addr): Likewise.
14765 * tree-inline.c (copy_bb): Likewise.
14766 (delete_unreachable_blocks_update_callgraph): Likewise.
14767 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
14768 (varpool_for_node_and_aliases): Likewise.
14769
14770 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
14771
14772 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
14773
14774 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
14775
14776 PR bootstrap/61598
14777 * fold-const.c (fold_checksum_tree): Use a hash_table of const
14778 tree_node * instead of tree_node *.
14779 (fold): Adjust.
14780 (print_fold_checksum): Likewise.
14781 (fold_check_failed): Likewise.
14782 (debug_fold_checksum): Likewise.
14783 (fold_build1_stat_loc): Likewise.
14784 (fold_build2_stat_loc): Likewise.
14785 (fold_build3_stat_loc): Likewise.
14786 (fold_build_call_array_loc): Likewise.
14787
14788 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
14789
14790 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
14791 implementation with call to...
14792 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
14793 function.
14794 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
14795 Declare.
14796
14797 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
14798
14799 PR tree-optimization/57742
14800 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
14801 after replacing the statement.
14802
14803 2014-06-25 Nick Clifton <nickc@redhat.com>
14804
14805 * config/v850/v850.c (GHS_default_section_names): Change to const
14806 char * type.
14807 (GHS_current_section_names): Likewise.
14808 (v850_insert_attributes): Do not build strings, just assign the
14809 names directly. Change the type of 'chosen_section' to const
14810 char*.
14811 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
14812 directly to the array entry.
14813 * config/v850/v850.h (GHS_default_section_names): Change to const
14814 char * type.
14815 (GHS_current_section_names): Likewise.
14816
14817 2014-06-25 Jakub Jelinek <jakub@redhat.com>
14818
14819 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
14820 (LANG_HOOKS_DECLS): Add it.
14821 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
14822 has correct type.
14823 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
14824 * langhooks.h (struct lang_hooks_for_decls): Add
14825 omp_clause_linear_ctor hook.
14826 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
14827 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
14828 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
14829 combined simd loop use omp_clause_linear_ctor hook.
14830
14831 2014-06-24 Cong Hou <congh@google.com>
14832
14833 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
14834 pattern recognition.
14835 (type_conversion_p): PROMOTION is true if it's a type promotion
14836 conversion, and false otherwise. Return true if the given expression
14837 is a type conversion one.
14838 * tree-vectorizer.h: Adjust the number of patterns.
14839 * tree.def: Add SAD_EXPR.
14840 * optabs.def: Add sad_optab.
14841 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
14842 * expr.c (expand_expr_real_2): Likewise.
14843 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
14844 * gimple.c (get_gimple_rhs_num_ops): Likewise.
14845 * optabs.c (optab_for_tree_code): Likewise.
14846 * tree-cfg.c (estimate_operator_cost): Likewise.
14847 * tree-ssa-operands.c (get_expr_operands): Likewise.
14848 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
14849 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
14850 * doc/generic.texi: Add document for SAD_EXPR.
14851 * doc/md.texi: Add document for ssad and usad.
14852
14853 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14854
14855 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
14856 qualification in cast.
14857
14858 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
14859
14860 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
14861 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
14862 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
14863 (tree_function_decl): ... here.
14864 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
14865 streaming of vindex to ...
14866 (write_ts_function_decl_tree_pointers): ... here.
14867 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
14868 Do not stream DECL_VINDEX.
14869 (lto_input_ts_function_decl_tree_pointers): Stream it here.
14870
14871 2014-06-24 Catherine Moore <clm@codesourcery.com>
14872 Sandra Loosemore <sandra@codesourcery.com>
14873
14874 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
14875 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
14876 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
14877
14878 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
14879
14880 * doc/invoke.texi (Warning Options): Remove duplicated
14881 -Wmaybe-uninitialized.
14882
14883 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
14884
14885 PR tree-optimization/57742
14886 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
14887 (handle_builtin_malloc, handle_builtin_memset): New functions.
14888 (strlen_optimize_stmt): Call them.
14889 * passes.def: Move strlen after loop+dom but before vrp.
14890
14891 2014-06-24 Jakub Jelinek <jakub@redhat.com>
14892
14893 PR target/61570
14894 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
14895 model family 6 CPU with has_longmode never use a CPU without
14896 64-bit support.
14897
14898 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
14899
14900 PR target/61570
14901 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
14902 the last change.
14903
14904 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14905
14906 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
14907 * dominance.c (iterate_fix_dominators): Use hash_map instead of
14908 pointer_map.
14909 * hash-map.h: New file.
14910 * ipa-comdats.c: Use hash_map instead of pointer_map.
14911 * ipa.c: Likewise.
14912 * lto-section-out.c: Adjust.
14913 * lto-streamer.h: Replace pointer_map with hash_map.
14914 * symtab.c (verify_symtab): Likewise.
14915 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
14916 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
14917 * tree-streamer.h: Likewise.
14918 * tree-streamer.c: Adjust.
14919 * pointer-set.h: Remove pointer_map.
14920
14921 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14922
14923 * hash-table.h: Add a template arg to choose between storing values
14924 and storing pointers to values, and then provide partial
14925 specializations for both.
14926 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
14927 should store, not the type values should point to.
14928 * tree-into-ssa.c (var_info_hasher): Likewise.
14929 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
14930 * tree-complex.c: Adjust.
14931 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
14932 table instead of int_tree_map *.
14933 * tree-parloops.c: Adjust.
14934 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
14935 type is being stored.
14936 * tree-vectorizer.c: Adjust.
14937
14938 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14939
14940 * hash-table.h: Remove a layer of indirection from hash_table so that
14941 it contains the hash table's data instead of a pointer to the data.
14942 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
14943 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
14944 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
14945 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
14946 fold-const.c, gcse.c, ggc-common.c,
14947 gimple-ssa-strength-reduction.c, gimplify.c,
14948 graphite-clast-to-gimple.c, graphite-dependences.c,
14949 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
14950 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
14951 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
14952 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
14953 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
14954 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
14955 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
14956 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
14957 tree-ssa-live.c, tree-ssa-loop-im.c,
14958 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
14959 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
14960 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
14961 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
14962 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
14963 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
14964 vtable-verify.c, vtable-verify.h: Adjust.
14965
14966 2014-06-24 Richard Biener <rguenther@suse.de>
14967
14968 PR tree-optimization/61572
14969 * tree-ssa-sink.c (statement_sink_location): Do not sink
14970 loads from hard registers.
14971
14972 2014-06-24 Jakub Jelinek <jakub@redhat.com>
14973
14974 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
14975 not mentioned in clauses use private clause if the iterator is
14976 declared in #pragma omp for simd, and when adding lastprivate
14977 instead, add it to the outer #pragma omp for too. Diagnose
14978 if the variable is private in outer context. For simd collapse > 1
14979 loops, replace all iterators with temporaries.
14980 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
14981 same even in collapse > 1 loops.
14982
14983 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
14984 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
14985 non-NULL.
14986 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
14987 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
14988 non-NULL.
14989 (gimplify_adjust_omp_clauses): Likewise.
14990 * omp-low.c (lower_rec_simd_input_clauses,
14991 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
14992 safelen the same as safelen(1).
14993 * tree-nested.c (convert_nonlocal_omp_clauses,
14994 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
14995 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
14996 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
14997 Fixup handling of GIMPLE_OMP_TARGET.
14998 (convert_tramp_reference_stmt, convert_gimple_call): Handle
14999 GIMPLE_OMP_TARGET.
15000
15001 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
15002
15003 PR tree-optimization/61554
15004 * tree-ssa-propagate.c: Include "bitmap.h".
15005 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
15006 properly update constructor/destructor.
15007 (substitute_and_fold_dom_walker::before_dom_children):
15008 Remove call to gimple_purge_dead_eh_edges, add bb->index to
15009 need_eh_cleaup instead.
15010 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
15011 need_eh_cleanup.
15012
15013 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
15014
15015 * varpool.c (dump_varpool_node): Dump used_by_single_function.
15016 * tree-pass.h (make_pass_ipa_single_use): New pass.
15017 * cgraph.h (used_by_single_function): New flag.
15018 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
15019 Stream it.
15020 * passes.def (pass_ipa_single_use): Scedule.
15021 * ipa.c (BOTTOM): New macro.
15022 (meet): New function
15023 (propagate_single_user): New function.
15024 (ipa_single_use): New function.
15025 (pass_data_ipa_single_use): New pass.
15026 (pass_ipa_single_use): New pass.
15027 (pass_ipa_single_use::gate): New gate.
15028 (make_pass_ipa_single_use): New function.
15029
15030 2014-06-23 Kai Tietz <ktietz@redhat.com>
15031
15032 PR target/39284
15033 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
15034 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
15035
15036 2014-06-23 Richard Biener <rguenther@suse.de>
15037
15038 * tree-ssa-loop.c (gate_loop): New function.
15039 (pass_tree_loop::gate): Call it.
15040 (pass_data_tree_no_loop, pass_tree_no_loop,
15041 make_pass_tree_no_loop): New.
15042 * tree-vectorizer.c: Include tree-scalar-evolution.c
15043 (pass_slp_vectorize::execute): Initialize loops and SCEV if
15044 required.
15045 (pass_slp_vectorize::clone): New method.
15046 * timevar.def (TV_TREE_NOLOOP): New.
15047 * tree-pass.h (make_pass_tree_no_loop): Declare.
15048 * passes.def (pass_tree_no_loop): New pass group with
15049 SLP vectorizer.
15050
15051 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
15052
15053 PR target/61570
15054 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
15055 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
15056
15057 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
15058
15059 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
15060 "yes" where needed.
15061
15062 2014-06-23 Alan Modra <amodra@gmail.com>
15063
15064 PR bootstrap/61583
15065 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
15066 to zero on debug statements.
15067
15068 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
15069
15070 PR target/60825
15071 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
15072 Ignore third operand if present by marking qualifier_internal.
15073
15074 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
15075
15076 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
15077 vector extension.
15078 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
15079 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
15080 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
15081 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
15082 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
15083 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
15084 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
15085 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
15086 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
15087 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
15088 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
15089 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
15090 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
15091 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
15092 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
15093 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
15094 logic in GCC vector extensions
15095
15096 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
15097 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
15098 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
15099 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
15100 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
15101 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
15102 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
15103 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
15104 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
15105 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
15106
15107 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
15108
15109 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
15110 extensions.
15111
15112 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
15113 (vget_low_s64): Use __GET_LOW macro.
15114 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
15115 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
15116 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
15117 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
15118 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
15119
15120 (vcombine_s64): Use GCC vector extensions; remove cast.
15121 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
15122 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
15123 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
15124 Fix type signature; remove cast.
15125
15126 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
15127
15128 PR target/60825
15129 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
15130 V1DFmode.
15131 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
15132 add V1DFmode
15133 (BUILTIN_VD1): New.
15134 (BUILTIN_VD_RE): Remove.
15135 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
15136 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
15137 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
15138 variant but not df.
15139 (vreinterpretv1df*, vreinterpret*v1df): New.
15140 (vreinterpretdf*, vreinterpret*df): Remove.
15141 * config/aarch64/aarch64-simd.md (aarch64_create,
15142 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
15143 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
15144 (VD1): New.
15145 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
15146 (vcreate_f64): Remove cast, use v1df builtin.
15147 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
15148 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
15149 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
15150 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
15151 vmov_n_f64, vst1_f64): Use gcc vector extensions.
15152 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
15153 add range check using __builtin_aarch64_im_lane_boundsi.
15154 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
15155 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
15156 type signature, use gcc vector extensions.
15157 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
15158 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
15159 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
15160 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
15161 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
15162 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
15163 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
15164 vreinterpret_u64_f64): Use v1df builtin not df.
15165
15166 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
15167
15168 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
15169 vector registers.
15170
15171 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
15172
15173 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
15174 priority directly.
15175
15176 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15177
15178 * loop-invariant.c (pre_check_invariant_p): New function.
15179 (find_invariant_insn): Call pre_check_invariant_p.
15180
15181 2014-06-22 Richard Henderson <rth@redhat.com>
15182
15183 PR target/61565
15184 * compare-elim.c (struct comparison): Add eh_note.
15185 (find_comparison_dom_walker::before_dom_children): Don't eliminate
15186 a redundant comparison in a different EH region. Purge EH edges if
15187 necessary.
15188
15189 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15190
15191 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
15192 (var_shift): Use it.
15193 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
15194 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
15195 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
15196 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
15197 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
15198 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
15199 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
15200 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
15201 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
15202 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
15203 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
15204 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
15205 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
15206 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
15207 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
15208 *rotldi3_internal15be): Use the new attribute. Merge register and
15209 integer alternatives.
15210
15211 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15212
15213 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
15214 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
15215 split, *ashrdi3_internal3 and split): Delete, merge into...
15216 (ashr<mode>3): New expander.
15217 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
15218 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
15219
15220 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15221
15222 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
15223 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
15224 *rotldi3_internal3 and split): Delete, merge into...
15225 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
15226 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
15227 Use "rotlw" extended mnemonic.
15228
15229 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15230
15231 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
15232 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
15233 and split, *ashldi3_internal3 and split): Delete, merge into...
15234 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
15235 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
15236
15237 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15238
15239 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
15240 (lshrsi3, two anonymous define_insns and define_splits,
15241 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
15242 *lshrdi3_internal3 and split): Delete, merge into...
15243 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
15244 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
15245
15246 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15247
15248 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
15249 Remove "O" alternative.
15250
15251 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
15252
15253 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
15254 (mips_move_from_gpr_cost): Likewise.
15255 (mips_register_move_cost): Update accordingly.
15256 (mips_secondary_reload_class): Remove name of in_p.
15257
15258 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
15259
15260 PR target/61503
15261 * config/i386/i386.md (x86_64_shrd, x86_shrd,
15262 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
15263
15264 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15265
15266 * config/nios2/nios2.c: Include "builtins.h".
15267
15268 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
15269
15270 * cgraph.h (tls_model_names): New variable.
15271 * print-tree.c (print_node): Simplify.
15272 * varpool.c (tls_model_names): New variable.
15273 (dump_varpool_node): Output tls model.
15274
15275 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
15276
15277 * ipa-visibility.c (function_and_variable_visibility): Disable
15278 temporarily local aliases for some targets.
15279
15280 2014-06-20 Marek Polacek <polacek@redhat.com>
15281
15282 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
15283 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
15284 into SANITIZE_UNDEFINED.
15285 * doc/invoke.texi: Describe -fsanitize=bounds.
15286 * gimplify.c (gimplify_call_expr): Add gimplification of internal
15287 functions created in the FEs.
15288 * internal-fn.c: Move "internal-fn.h" after "tree.h".
15289 (expand_UBSAN_BOUNDS): New function.
15290 * internal-fn.def (UBSAN_BOUNDS): New internal function.
15291 * internal-fn.h: Don't define internal functions here.
15292 * opts.c (common_handle_option): Add -fsanitize=bounds.
15293 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
15294 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
15295 * tree-core.h: Define internal functions here.
15296 (struct tree_base): Add ifn field.
15297 * tree-pretty-print.c: Include "internal-fn.h".
15298 (dump_generic_node): Handle functions without CALL_EXPR_FN.
15299 * tree.c (get_callee_fndecl): Likewise.
15300 (build_call_expr_internal_loc): New function.
15301 * tree.def (CALL_EXPR): Update description.
15302 * tree.h (CALL_EXPR_IFN): Define.
15303 (build_call_expr_internal_loc): Declare.
15304 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
15305 types.
15306 (ubsan_type_descriptor): Change bool parameter to enum
15307 ubsan_print_style. Adjust the code. Add handling of
15308 UBSAN_PRINT_ARRAY.
15309 (ubsan_expand_bounds_ifn): New function.
15310 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
15311 (ubsan_build_overflow_builtin): Likewise.
15312 (instrument_bool_enum_load): Likewise.
15313 (ubsan_instrument_float_cast): Likewise.
15314 * ubsan.h (enum ubsan_print_style): New enum.
15315 (ubsan_expand_bounds_ifn): Declare.
15316 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
15317
15318 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
15319
15320 * config/rs6000/rs6000.md: Append `DONE' to preparation
15321 statements of `bswap' pattern splitters.
15322
15323 2014-06-20 Tom de Vries <tom@codesourcery.com>
15324
15325 * target.def (call_fusage_contains_non_callee_clobbers): Update
15326 definition.
15327 * doc/tm.texi: Regenerate.
15328
15329 2014-06-20 Yury Gribov <y.gribov@samsung.com>
15330 Max Ostapenko <m.ostapenko@partner.samsung.com>
15331
15332 PR sanitizer/61547
15333 * asan.c (instrument_strlen_call): Fixed instrumentation of
15334 trailing byte.
15335
15336 2014-06-20 Martin Jambor <mjambor@suse.cz>
15337
15338 PR ipa/61540
15339 * ipa-prop.c (impossible_devirt_target): New function.
15340 (try_make_edge_direct_virtual_call): Use it, also instead of
15341 asserting.
15342
15343 2014-06-20 Yury Gribov <y.gribov@samsung.com>
15344 Max Ostapenko <m.ostapenko@partner.samsung.com>
15345
15346 PR sanitizer/61530
15347 * asan.c (build_check_stmt): Add condition.
15348
15349 2014-06-20 Martin Jambor <mjambor@suse.cz>
15350
15351 PR ipa/61211
15352 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
15353 expanded clones.
15354
15355 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15356
15357 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
15358 Update comments.
15359 (VCONQ): Make comment more helpful.
15360 (VCON): Delete.
15361 * config/aarch64/aarch64-simd.md
15362 (aarch64_sqdmulh_lane<mode>):
15363 Use VCOND for operands 2. Update lane checking and flipping logic.
15364 (aarch64_sqrdmulh_lane<mode>): Likewise.
15365 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
15366 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
15367 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
15368 attribute of operand 3 to VCOND.
15369 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
15370 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
15371 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
15372 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
15373 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
15374 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
15375 define_insn.
15376 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
15377 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
15378 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
15379 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
15380 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
15381 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
15382 operand to VCOND. Update lane flipping and bounds checking logic.
15383 (aarch64_sqdmlal2_lane<mode>): Likewise.
15384 (aarch64_sqdmlsl_lane<mode>): Likewise.
15385 (aarch64_sqdmull_lane<mode>): Likewise.
15386 (aarch64_sqdmull2_lane<mode>): Likewise.
15387 (aarch64_sqdmlal_laneq<mode>):
15388 Replace VCON usage with VCONQ.
15389 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
15390 (aarch64_sqdmlal2_laneq<mode>): Emit
15391 aarch64_sqdmlal2_laneq<mode>_internal insn.
15392 Replace VCON with VCONQ.
15393 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
15394 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
15395 (aarch64_sqdmull_laneq<mode>): Emit
15396 aarch64_sqdmull_laneq<mode>_internal insn.
15397 Replace VCON with VCONQ.
15398 (aarch64_sqdmull2_laneq<mode>): Emit
15399 aarch64_sqdmull2_laneq<mode>_internal insn.
15400 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
15401 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
15402 of 3rd argument to int16x4_t.
15403 (vqdmlalh_lane_s16): Likewise.
15404 (vqdmlslh_lane_s16): Likewise.
15405 (vqdmull_high_lane_s16): Likewise.
15406 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
15407 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
15408 (vqdmlsl_lane_s16): Likewise.
15409 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
15410 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
15411 (vqdmlals_lane_s32): Likewise.
15412 (vqdmlsls_lane_s32): Likewise.
15413 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
15414 (vqdmulls_lane_s32): Likewise.
15415 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
15416 (vqdmlsl_lane_s32): Likewise.
15417 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
15418 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
15419 (vqrdmulhh_lane_s16): Likewise.
15420 (vqdmlsl_high_lane_s16): Likewise.
15421 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
15422 (vqdmlsl_high_lane_s32): Likewise.
15423 (vqrdmulhs_lane_s32): Likewise.
15424
15425 2014-06-20 Tom de Vries <tom@codesourcery.com>
15426
15427 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
15428 get_call_reg_set_usage.
15429
15430 2014-06-20 Tom de Vries <tom@codesourcery.com>
15431
15432 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
15433 it contains all call_used_regs.
15434
15435 2014-06-20 Tom de Vries <tom@codesourcery.com>
15436
15437 * final.c (collect_fn_hard_reg_usage): Add and use variable
15438 function_used_regs.
15439
15440 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
15441
15442 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
15443 (set_init_priority, get_init_priority, set_fini_priority,
15444 get_fini_priority): New methods.
15445 * tree.c (init_priority_for_decl): Remove.
15446 (init_ttree): Do not initialize init priority.
15447 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
15448 (decl_priority_info): Remove.
15449 (decl_init_priority_insert): Rewrite.
15450 (decl_fini_priority_insert): Rewrite.
15451 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
15452 tree_priority_map_marked_p): Remove.
15453 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
15454 * lto-streamer-out.c (hash_tree): Do not hash priorities.
15455 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
15456 not output priorities.
15457 (pack_ts_function_decl_value_fields): Likewise.
15458 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
15459 not input priorities.
15460 (unpack_ts_function_decl_value_fields): Likewise.
15461 * symtab.c (symbol_priority_map): Declare.
15462 (init_priority_hash): Declare.
15463 (symtab_unregister_node): Unregister from priority hash, too.
15464 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
15465 New methods.
15466 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
15467 (symbol_priority_info): New function.
15468 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
15469 New methods.
15470 * tree-core.h (tree_priority_map): Remove.
15471
15472 2014-06-20 Jakub Jelinek <jakub@redhat.com>
15473
15474 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
15475 0xff to uint64_t before shifting it up.
15476
15477 2014-06-20 Julian Brown <julian@codesourcery.com>
15478 Chung-Lin Tang <cltang@codesourcery.com>
15479
15480 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
15481 TARGET_THUMB1_ONLY. Add comments.
15482
15483 2014-06-19 Tom de Vries <tom@codesourcery.com>
15484
15485 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
15486 return type to void.
15487 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
15488
15489 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15490
15491 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
15492 as "move", from depends_on.
15493
15494 2014-06-19 Terry Guo <terry.guo@arm.com>
15495
15496 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
15497 stage.
15498
15499 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
15500
15501 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
15502 Remove cr5.
15503 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
15504
15505 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
15506
15507 PR target/61550
15508 * config/sh/sh.c (prepare_move_operands): Don't process TLS
15509 addresses here if reload in progress or completed.
15510
15511 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
15512
15513 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
15514 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
15515 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
15516 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
15517 (mips_register_priority): New function that implements the target
15518 hook TARGET_REGISTER_PRIORITY.
15519 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
15520 (mips_lra_p): Likewise for TARGET_LRA_P.
15521 (TARGET_REGISTER_PRIORITY): Define macro.
15522 (TARGET_SPILL_CLASS): Likewise.
15523 (TARGET_LRA_P): Likewise.
15524 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
15525 classes.
15526 (REG_CLASS_NAMES): Likewise.
15527 (REG_CLASS_CONTENTS): Likewise.
15528 (BASE_REG_CLASS): Use M16_SP_REGS.
15529 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
15530 New set attribute to enable alternatives depending on the register
15531 allocator used.
15532 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
15533 (*lea64): Disable pattern for MIPS16.
15534 * config/mips/mips.opt (mlra): New option.
15535
15536 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
15537
15538 * lra-constraints.c (base_to_reg): New function.
15539 (process_address): Use new function.
15540
15541 2014-06-18 Tom de Vries <tom@codesourcery.com>
15542
15543 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
15544 * config/aarch64/aarch64.c
15545 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
15546 (aarch64_emit_call_insn): New function.
15547 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
15548 of emit_call_insn.
15549 * config/aarch64/aarch64.md (define_expand "call_internal")
15550 (define_expand "call_value_internal", define_expand "sibcall_internal")
15551 (define_expand "sibcall_value_internal"): New.
15552 (define_expand "call", define_expand "call_value")
15553 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
15554 expand variant and aarch64_emit_call_insn.
15555
15556 2014-06-18 Radovan Obradovic <robradovic@mips.com>
15557 Tom de Vries <tom@codesourcery.com>
15558
15559 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
15560 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
15561 Redefine to true.
15562 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
15563 clobbers to CALL_INSN_FUNCTION_USAGE.
15564 (define_expand "sibcall_internal")
15565 (define_expand "sibcall_value_internal"): New.
15566 (define_expand "call", define_expand "call_value"): Add argument to
15567 arm_emit_call_insn.
15568 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
15569 (define_expand "sibcall_value"): Use sibcall_value_internal and
15570 arm_emit_call_insn.
15571
15572 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15573
15574 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
15575
15576 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15577
15578 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
15579 __udivmoddi4.
15580
15581 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15582
15583 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
15584 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
15585 annotations. Fix DWARF information.
15586
15587 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15588
15589 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
15590 __udivmoddi4, and fixups for negative operands.
15591
15592 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15593
15594 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
15595
15596 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15597
15598 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
15599 to __udivmoddi4.
15600
15601 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15602
15603 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
15604 manipulation.
15605
15606 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15607
15608 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
15609 describing register usage on function entry and exit.
15610
15611 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15612
15613 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
15614 (__aeabi_ldivmod): Fix whitespace.
15615
15616 2014-06-18 Andreas Schwab <schwab@suse.de>
15617
15618 * doc/md.texi (Standard Names): Use @itemx for grouped items.
15619 Remove blank line after @item.
15620
15621 2014-06-18 Richard Henderson <rth@redhat.com>
15622
15623 PR target/61545
15624 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
15625
15626 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15627
15628 * config/arm/arm.c (neon_vector_mem_operand): Allow register
15629 POST_MODIFY for neon loads and stores.
15630 (arm_print_operand): Output post-index register for neon loads and
15631 stores.
15632
15633 2014-06-18 Richard Biener <rguenther@suse.de>
15634
15635 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
15636
15637 2014-06-18 Richard Biener <rguenther@suse.de>
15638
15639 * tree-pass.h (make_pass_dce_loop): Remove.
15640 * passes.def: Replace pass_dce_loop with pass_dce.
15641 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
15642 changed free niter estimates and reset the scev cache.
15643 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
15644 make_pass_dce_loop): Remove.
15645 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
15646 (fini_copy_prop): Return whether something changed. Always
15647 let substitute_and_fold perform DCE and free niter estimates
15648 and reset the scev cache if so.
15649 (execute_copy_prop): If sth changed schedule cleanup-cfg.
15650 (pass_data_copy_prop): Do not unconditionally schedule
15651 cleanup-cfg or update-ssa.
15652
15653 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
15654
15655 PR tree-optimization/61518
15656 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
15657 reduction var is used in reduction stmt or phi-function only.
15658
15659 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15660
15661 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
15662
15663 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
15664
15665 PR tree-optimization/61517
15666 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
15667 whose rhs's first tree is the source expression instead of the
15668 expression itself.
15669 (find_bswap_or_nop): Likewise.
15670 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
15671 gimple stmt whose rhs's first tree is the source. In the memory source
15672 case, move the stmt to be replaced close to one of the original load to
15673 avoid the problem of a store between the load and the stmt's original
15674 location.
15675 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
15676 signature.
15677
15678 2014-06-18 Andreas Schwab <schwab@suse.de>
15679
15680 PR rtl-optimization/54555
15681 * postreload.c (move2add_use_add2_insn): Substitute
15682 STRICT_LOW_PART only if it is cheaper.
15683
15684 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
15685
15686 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
15687 Do not use unspec as call operand. Use memory_operand instead of
15688 memory_nox32_operand and add "m" operand constraint. Disable
15689 pattern for TARGET_X32.
15690 (*sibcall_pop_memory): Ditto.
15691 (*sibcall_value_memory): Ditto.
15692 (*sibcall_value_pop_memory): Ditto.
15693 (sibcall peepholes): Merge SImode and DImode patterns using
15694 W mode iterator. Use memory_operand instead of memory_nox32_operand.
15695 Disable pattern for TARGET_X32. Check if eliminated register is
15696 really dead after call insn. Generate call RTX without unspec operand.
15697 (sibcall_value peepholes): Ditto.
15698 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
15699 instead of memory_nox32_operand. Check if eliminated register is
15700 really dead after call insn. Generate call RTX without unspec operand.
15701 (sibcall_value_pop peepholes): Ditto.
15702 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
15703
15704 2014-06-18 Terry Guo <terry.guo@arm.com>
15705
15706 PR target/61544
15707 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
15708 reach the head.
15709
15710 2014-06-18 Olivier Hainque <hainque@adacore.com>
15711
15712 * tree-core.h (tree_block): Add an "end_locus" field, allowing
15713 memorization of the end of block source location.
15714 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
15715 * gimplify.c (gimplify_bind_expr): Propagate the block start and
15716 end source location info we have on the block entry/exit code we
15717 generate.
15718
15719 2014-06-18 Richard Biener <rguenther@suse.de>
15720
15721 * common.opt (fssa-phiopt): New option.
15722 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
15723 but not with -Og.
15724 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
15725 * doc/invoke.texi (-fssa-phiopt): Document.
15726
15727 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15728
15729 * genattrtab.c (n_bypassed): New variable.
15730 (process_bypasses): Initialise n_bypassed.
15731 Count number of bypassed reservations.
15732 (make_automaton_attrs): Allocate space for bypassed reservations
15733 rather than number of bypasses.
15734
15735 2014-06-18 Richard Biener <rguenther@suse.de>
15736
15737 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
15738 we propagated anything.
15739 (substitute_and_fold_dom_walker::before_dom_children): Something
15740 changed if we propagated into PHI arguments.
15741 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
15742 we removed a stmt.
15743
15744 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
15745
15746 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
15747 vector case.
15748 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
15749 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
15750 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
15751 Introduces alternative way of loads group permutaions.
15752 (vect_transform_grouped_load): Try alternative way of permutations.
15753
15754 2014-06-18 Jakub Jelinek <jakub@redhat.com>
15755
15756 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
15757 changed in ORT_TARGET region, don't jump to do_outer.
15758 (struct gimplify_adjust_omp_clauses_data): New type.
15759 (gimplify_adjust_omp_clauses_1): Adjust for data being
15760 a struct gimplify_adjust_omp_clauses_data pointer instead
15761 of tree *. Pass pre_p as a new argument to
15762 lang_hooks.decls.omp_finish_clause hook.
15763 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
15764 splay_tree_foreach to pass both list_p and pre_p.
15765 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
15766 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
15767 gimplify_adjust_omp_clauses callers.
15768 * langhooks.c (lhd_omp_finish_clause): New function.
15769 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
15770 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
15771 * langhooks.h (struct lang_hooks_for_decls): Add a new
15772 gimple_seq * argument to omp_finish_clause hook.
15773 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
15774 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
15775 (scan_omp_parallel, lower_omp_for): When adding
15776 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
15777 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
15778 * tree-nested.c (convert_nonlocal_omp_clauses,
15779 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
15780 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
15781
15782 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
15783
15784 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
15785 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
15786
15787 2014-06-17 Xinliang David Li <davidxl@google.com>
15788
15789 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
15790 * passes.c (pass_init_dump_file): Do not set initialize
15791 flag to false unconditionally.
15792
15793 2014-06-17 Richard Biener <rguenther@suse.de>
15794
15795 * genopinit.c (main): Use vec<>::qsort method.
15796 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
15797 Likewise.
15798 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
15799
15800 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
15801
15802 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
15803 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
15804 (mips_move_to_gpr_cost): Remove ST_REGS case.
15805 (mips_move_from_gpr_cost): Likewise.
15806 (mips_register_move_cost): Likewise.
15807 (mips_secondary_reload_class): Likewise.
15808
15809 2014-06-17 Richard Biener <rguenther@suse.de>
15810
15811 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
15812 (pass_all_optimizations): Move 3rd copy-prop pass from after
15813 fre to before ifcombine/phiopt.
15814
15815 2014-06-17 Richard Biener <rguenther@suse.de>
15816
15817 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
15818 and allow all blocks to be forwarders.
15819
15820 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
15821
15822 PR target/61483
15823 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
15824 variable 'size'; calculate 'size' right in the front; use
15825 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
15826 pcum->aapcs_stack_words.
15827
15828 2014-06-17 Nick Clifton <nickc@redhat.com>
15829
15830 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
15831 (umulhi3, mulsidi3, umulsidi3): Likewise.
15832
15833 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
15834
15835 PR middle-end/61508
15836 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
15837 check for section name.
15838
15839 2014-06-17 Richard Biener <rguenther@suse.de>
15840
15841 * tree-ssa-propagate.c: Include domwalk.h.
15842 (substitute_and_fold): Outline main worker into a domwalker ...
15843 (substitute_and_fold_dom_walker::before_dom_children): ... here.
15844 Schedule stmts we can fully propagate for removal. Remove
15845 poor-mans DCE.
15846 (substitute_and_fold): Apply a dominator walk to perform
15847 substitution. Process stmts scheduled for removal here.
15848
15849 2014-06-17 Richard Biener <rguenther@suse.de>
15850
15851 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
15852 of PHI node moving.
15853
15854 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
15855
15856 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
15857 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
15858 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
15859 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
15860 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
15861 TARGET_HARD_FLOAT.
15862 (get_fpscr) : Likewise.
15863
15864 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
15865
15866 PR rtl-optimization/61325
15867 * lra-constraints.c (valid_address_p): Add forward declaration.
15868 (simplify_operand_subreg): Check address validity before and after
15869 alter_reg of memory subreg.
15870
15871 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
15872
15873 * config/i386/i386.c (decide_alg): Correctly handle
15874 maximum size of stringop algorithm.
15875
15876 2014-06-16 Yury Gribov <y.gribov@samsung.com>
15877
15878 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
15879
15880 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
15881
15882 PR rtl-optimization/61522
15883 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
15884
15885 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
15886
15887 Revert:
15888 * symtab.c (symtab_node::reset_section): New method.
15889 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
15890 for localization.
15891 * cgraph.h (reset_section): Declare.
15892 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
15893 do not consider comdat locals.
15894 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
15895 for new symbol.
15896 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
15897 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
15898 reset sections of symbols dragged out of the comdats.
15899 (function_and_variable_visibility): Reset sections of
15900 localized symbols.
15901
15902 2014-06-16 Richard Biener <rguenther@suse.de>
15903
15904 PR tree-optimization/61482
15905 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
15906 [-INF(OVF), +INF(OVF)] range.
15907
15908 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
15909
15910 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
15911 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
15912 handling 32-bit multiplication.
15913
15914 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
15915
15916 PR middle-end/61430
15917 * lra-lives.c (process_bb_lives): Skip creating copy during
15918 insn scan when src/dest has constrained to same regno.
15919
15920 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
15921
15922 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
15923 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
15924
15925 2014-06-16 Yury Gribov <y.gribov@samsung.com>
15926
15927 * asan.c (check_func): New function.
15928 (maybe_create_ssa_name): Likewise.
15929 (build_check_stmt_with_calls): Likewise.
15930 (use_calls_p): Likewise.
15931 (report_error_func): Change interface.
15932 (build_check_stmt): Allow non-integer lengths; add support
15933 for new parameter.
15934 (asan_instrument): Likewise.
15935 (instrument_mem_region_access): Moved code to build_check_stmt.
15936 (instrument_derefs): Likewise.
15937 (instrument_strlen_call): Likewise.
15938 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
15939 * doc/invoke.texi: Describe new parameter.
15940 * params.def: Define new parameter.
15941 * params.h: Likewise.
15942 * sanitizer.def: Describe new builtins.
15943
15944 2014-06-16 Richard Biener <rguenther@suse.de>
15945
15946 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15947 Make all defs available at the end.
15948 (eliminate): If we remove a PHI node schedule cfg-cleanup.
15949
15950 2014-06-18 Jakub Jelinek <jakub@redhat.com>
15951
15952 PR plugins/45078
15953 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
15954
15955 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
15956
15957 PR bootstrap/61516
15958 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
15959 initialization. Replace remaining use of uid.
15960
15961 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
15962
15963 * c-family/c-common.c (handle_tls_model_attribute): Use
15964 set_decl_tls_model.
15965 * c-family/c-common.c (handle_tls_model_attribute): Use
15966 set_decl_tls_model.
15967 * cgraph.h (struct varpool_node): Add tls_model.
15968 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
15969 * tree.h (DECL_TLS_MODEL): Update.
15970 (DECL_THREAD_LOCAL_P): Check that variable is static.
15971 (decl_tls_model): Declare.
15972 (set_decl_tls_model): Declare.
15973 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
15974 set symbol prorperties.
15975 (get_emutls_init_templ_addr): Cleanup.
15976 (new_emutls_decl): Update.
15977 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
15978 (lto_input_varpool_node): Likewise.
15979 * lto-streamer-out.c (hash_tree): Likewise.
15980 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
15981 not stream DECL_TLS_MODEL.
15982 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
15983 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
15984
15985 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15986
15987 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
15988
15989 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15990
15991 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
15992 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
15993 lists.
15994 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
15995 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
15996 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
15997 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
15998 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
15999 (df_get_artificial_defs, df_get_artificial_uses)
16000 (df_single_def, df_single_use): Update accordingly.
16001 (df_refs_chain_dump): Take the first element in a linked list as
16002 parameter, rather than a pointer to an array of pointers.
16003 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
16004 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
16005 (df_chain_create_bb_process_use): Likewise.
16006 (df_md_bb_local_compute_process_def): Likewise.
16007 * fwprop.c (process_defs, process_uses): Likewise.
16008 (register_active_defs, update_uses): Likewise.
16009 (forward_propagate_asm): Update for new df_ref linking.
16010 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
16011 (df_null_ref_rec, df_null_mw_rec): Likewise.
16012 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
16013 explicitly.
16014 (df_scan_free_bb_info): Remove check for null artificial_defs.
16015 (df_install_ref_incremental): Adjust for new df_ref linking.
16016 Use a single-element insertion rather than a full sort.
16017 (df_ref_chain_delete_du_chain): Take the first element
16018 in a linked list as parameter, rather than a pointer to an array of
16019 pointers.
16020 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
16021 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
16022 (df_insn_info_delete): Remove check for null defs and call to
16023 df_scan_free_mws_vec.
16024 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
16025 null rather than df_null_*_rec.
16026 (df_insn_rescan_debug_internal): Likewise, and update null
16027 checks in the same way. Remove check for null defs.
16028 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
16029 Move a single element rather doing a full sort.
16030 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
16031 linking.
16032 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
16033 Initialize df_ref and df_mw_hardreg lists to null rather than
16034 df_null_*_rec.
16035 (df_ref_compare): Take df_refs as parameter, transferring the
16036 old interface to...
16037 (df_ref_ptr_compare): ...this new function.
16038 (df_sort_and_compress_refs): Update accordingly.
16039 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
16040 old interface to...
16041 (df_mw_ptr_compare): ...this new function.
16042 (df_sort_and_compress_mws): Update accordingly.
16043 (df_install_refs, df_install_mws): Return a linked list rather than
16044 an array of pointers.
16045 (df_refs_add_to_chains): Assert that old lists are empty rather
16046 than freeing them.
16047 (df_insn_refs_verify): Don't handle null defs speciailly.
16048 * web.c (union_match_dups): Update for new df_ref linking.
16049
16050 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16051
16052 * df.h (df_ref_create, df_ref_remove): Delete.
16053 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
16054 (df_ref_remove): Likewise.
16055
16056 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16057
16058 * df.h (df_single_def, df_single_use): New functions.
16059 * ira.c (find_moveable_pseudos): Use them.
16060
16061 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16062
16063 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
16064 * df-problems.c (df_note_bb_compute): Use it.
16065 * regstat.c (regstat_bb_compute_ri): Likewise.
16066
16067 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16068
16069 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
16070 * cse.c (cse_extended_basic_block): Use them.
16071 * dce.c (mark_artificial_use): Likewise.
16072 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
16073 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
16074 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
16075 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
16076 (df_simulate_initialize_backwards): Likewise.
16077 (df_simulate_finalize_backwards): Likewise.
16078 (df_simulate_initialize_forwards): Likewise.
16079 (df_md_simulate_artificial_defs_at_top): Likewise.
16080 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
16081 * regrename.c (init_rename_info): Likewise.
16082 * regstat.c (regstat_bb_compute_ri): Likewise.
16083 (regstat_bb_compute_calls_crossed): Likewise.
16084
16085 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16086
16087 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
16088 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
16089 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
16090 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
16091 * combine.c (create_log_links): Likewise.
16092 * compare-elim.c (find_flags_uses_in_insn): Likewise.
16093 (try_eliminate_compare): Likewise.
16094 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
16095 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
16096 (remove_reg_equal_equiv_notes_for_defs): Likewise.
16097 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
16098 (word_dce_process_block, dce_process_block): Likewise.
16099 * ddg.c (def_has_ccmode_p): Likewise.
16100 * df-core.c (df_bb_regno_first_def_find): Likewise.
16101 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
16102 * df-problems.c (df_rd_simulate_one_insn): Likewise.
16103 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
16104 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
16105 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
16106 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
16107 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
16108 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
16109 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
16110 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
16111 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
16112 * fwprop.c (local_ref_killed_between_p): Likewise.
16113 (all_uses_available_at, free_load_extend): Likewise.
16114 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
16115 * hw-doloop.c (scan_loop): Likewise.
16116 * ifcvt.c (dead_or_predicable): Likewise.
16117 * init-regs.c (initialize_uninitialized_regs): Likewise.
16118 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
16119 (process_bb_node_lives): Likewise.
16120 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
16121 (find_moveable_pseudos): Likewise.
16122 * loop-invariant.c (check_dependencies, record_uses): Likewise.
16123 * recog.c (peep2_find_free_register): Likewise.
16124 * ree.c (get_defs): Likewise.
16125 * regstat.c (regstat_bb_compute_ri): Likewise.
16126 (regstat_bb_compute_calls_crossed): Likewise.
16127 * sched-deps.c (find_inc, find_mem): Likewise.
16128 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
16129 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
16130 * shrink-wrap.c (requires_stack_frame_p): Likewise.
16131 (prepare_shrink_wrap): Likewise.
16132 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
16133 * web.c (union_defs, pass_web::execute): Likewise.
16134 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
16135 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
16136
16137 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
16138
16139 * lra-assign.c (assign_by_spills): Add code to assign vector regs
16140 to inheritance pseudos.
16141 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
16142
16143 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
16144
16145 PR target/61415
16146 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
16147 (BU_MISC_2): Rename to ...
16148 (BU_LDBL128_2): ... this.
16149 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
16150 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
16151 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
16152 RS6000_BTM_LDBL128.
16153 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
16154 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
16155 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
16156 (unpacktf_1): Likewise.
16157 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
16158 (__builtin_longdouble_dw1): Likewise.
16159 * doc/sourcebuild.texi (longdouble128): Document.
16160
16161 2014-06-13 Jeff Law <law@redhat.com>
16162
16163 PR rtl-optimization/61094
16164 PR rtl-optimization/61446
16165 * ree.c (combine_reaching_defs): Get the mode for the copy from
16166 the extension insn rather than the defining insn.
16167
16168 2014-06-13 Dehao Chen <dehao@google.com>
16169
16170 * dwarf2out.c (add_linkage_name): Emit more linkage name.
16171
16172 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
16173
16174 * doc/install.texi (--enable-linker-plugin-configure-flags)
16175 (--enable-linker-plugin-flags): Document new flags.
16176
16177 2014-06-13 Martin Jambor <mjambor@suse.cz>
16178
16179 PR ipa/61186
16180 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
16181 cache_token if returning early.
16182
16183 2014-06-13 Nick Clifton <nickc@redhat.com>
16184
16185 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
16186 requested alignment is active.
16187 (LABEL_ALIGN): Likewise.
16188 (LOOP_ALIGN): Likewise.
16189
16190 2014-06-13 Richard Biener <rguenther@suse.de>
16191
16192 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16193 Rewrite to propagate the VN result into all uses where
16194 possible and to remove stmts becoming dead because of that.
16195 (eliminate): Generalize stmt removal handling, remove in
16196 reverse dominator order to support proper debug stmt
16197 generation. Update stmts before removing stmts.
16198 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
16199
16200 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
16201
16202 PR tree-optimization/61375
16203 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
16204 symbolic number cannot be represented in an uint64_t.
16205 (find_bswap_or_nop_1): Likewise.
16206
16207 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
16208
16209 * symtab.c (symtab_node::reset_section): New method.
16210 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
16211 for localization.
16212 * cgraph.h (reset_section): Declare.
16213 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
16214 do not consider comdat locals.
16215 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
16216 for new symbol.
16217 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
16218 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
16219 reset sections of symbols dragged out of the comdats.
16220 (function_and_variable_visibility): Reset sections of
16221 localized symbols.
16222
16223 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
16224
16225 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
16226 to use symtab and decl_binds_to_current_def_p
16227 * tree-vectorizer.c (increase_alignment): Increase alignment
16228 of alias target, too.
16229
16230 2014-06-12 Jakub Jelinek <jakub@redhat.com>
16231
16232 PR middle-end/61486
16233 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
16234 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
16235 if outer combined construct is distribute.
16236 (gimplify_omp_for): For OMP_DISTRIBUTE set
16237 gimplify_omp_ctxp->distribute.
16238 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
16239 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
16240 mapping into decl map.
16241
16242 2014-06-12 Jason Merrill <jason@redhat.com>
16243
16244 * common.opt (fabi-version): Change default to 0.
16245
16246 2014-06-12 Jason Merrill <jason@redhat.com>
16247
16248 * toplev.c (process_options): Reject -fabi-version=1.
16249
16250 2014-06-12 Jeff Law <law@redhat.com>
16251
16252 PR tree-optimization/61009
16253 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
16254 value when we stop processing a block due to problematic PHIs.
16255
16256 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
16257
16258 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
16259 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
16260 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
16261 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
16262 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
16263 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
16264 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
16265 are not in the spec.
16266
16267 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
16268
16269 PR target/59843
16270 * config/aarch64/aarch64-modes.def: Add V1DFmode.
16271 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
16272 Support V1DFmode.
16273
16274 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
16275
16276 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
16277
16278 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
16279
16280 PR target/61443
16281 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
16282 loading from address spaces.
16283
16284 2014-06-12 Martin Liska <mliska@suse.cz>
16285
16286 PR ipa/61462
16287 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
16288 statement is reachable.
16289
16290 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
16291
16292 * symtab.c (section_hash): New hash.
16293 (symtab_unregister_node): Clear section before freeing.
16294 (hash_section_hash_entry): New haser.
16295 (eq_sections): New function.
16296 (symtab_node::set_section_for_node): New method.
16297 (set_section_1): Update.
16298 (symtab_node::set_section): Take string instead of tree as parameter.
16299 (symtab_resolve_alias): Update.
16300 * cgraph.h (section_hash_entry_d): New structure.
16301 (section_hash_entry): New typedef.
16302 (cgraph_node): Change comdat_group_ to x_comdat_group,
16303 change section_ to x_section and turn into section_hash_entry;
16304 update accestors; put set_section_for_node offline.
16305 * tree.c (decl_section_name): Turn into string.
16306 (set_decl_section_name): Change parameter to be string.
16307 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
16308 * sdbout.c (sdbout_one_type): Update.
16309 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
16310 * varasm.c (IN_NAMED_SECTION, get_named_section,
16311 resolve_unique_section, hot_function_section, get_named_text_section,
16312 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
16313 make_decl_rtl, default_unique_section): Update.
16314 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
16315 (c6x_elf_unique_section): Update.
16316 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
16317 * config/pa/pa.c (pa_function_section): Update.
16318 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
16319 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
16320 * config/arc/arc.c (arc_in_small_data_p): Update.
16321 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
16322 * config/mcore/mcore.c (mcore_unique_section): Update.
16323 * config/mips/mips.c (mips16_build_function_stub): Update.
16324 (mips16_build_call_stub): Update.
16325 (mips_function_rodata_section): Update.
16326 (mips_in_small_data_p): Update.
16327 * config/score/score.c (score_in_small_data_p): Update.
16328 * config/rx/rx.c (rx_in_small_data): Update.
16329 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
16330 (rs6000_xcoff_asm_named_section): Update.
16331 (rs6000_xcoff_unique_section): Update.
16332 * config/frv/frv.c (frv_string_begins_with): Update.
16333 (frv_in_small_data_p): Update.
16334 * config/v850/v850.c (v850_encode_data_area): Update.
16335 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
16336 (bfin_handle_l1_data_attribute): Update.
16337 (bfin_handle_l2_attribute): Update.
16338 * config/mep/mep.c (mep_unique_section): Update.
16339 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
16340 Update.
16341 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
16342 (h8300_handle_tiny_data_attribute): Update.
16343 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
16344 (m32r_in_small_data_p): Update.
16345 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
16346 * config/i386/i386.c (ix86_in_large_data_p): Update.
16347 * config/i386/winnt.c (i386_pe_unique_section): Update.
16348 * config/darwin.c (darwin_function_section): Update.
16349 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
16350 * tree-emutls.c (get_emutls_init_templ_addr): Update.
16351 (new_emutls_decl): Update.
16352 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
16353 input_varpool_node): Update.
16354 (ead_string_cst): Turn to ...
16355 (read_string): ... this one.
16356 * dwarf2out.c (secname_for_decl): Update.
16357 * asan.c (asan_protect_global): Update.
16358
16359 2014-06-11 DJ Delorie <dj@redhat.com>
16360
16361 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
16362 cache lines.
16363 * config/rx/rx.c (rx_option_override): Likewise.
16364 (rx_align_for_label): Likewise.
16365
16366 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
16367
16368 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
16369
16370 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
16371 prototype.
16372
16373 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16374
16375 * common.md: New file.
16376 * doc/md.texi: Update description of generic, machine-independent
16377 constraints.
16378 * config/s390/constraints.md (e): Delete.
16379 * Makefile.in (md_file): Include common.md.
16380 * config/m32c/t-m32c (md_file): Likewise.
16381 * genpreds.c (general_mem): New array.
16382 (generic_constraint_letters): Remove constraints now defined by
16383 common.md.
16384 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
16385 Allow the first character to be '<' or '>' as well.
16386 * genoutput.c (general_mem): New array.
16387 (indep_constraints): Remove constraints now defined by common.md.
16388 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
16389 Remove special handling of 'm'.
16390 * ira-costs.c (record_reg_classes): Remove special handling of
16391 constraints now defined by common.md.
16392 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
16393 * ira-lives.c (single_reg_class): Likewise.
16394 (ira_implicitly_set_insn_hard_regs): Likewise.
16395 * lra-constraints.c (reg_class_from_constraints): Likewise.
16396 (process_alt_operands, process_address, curr_insn_transform): Likewise.
16397 * postreload.c (reload_cse_simplify_operands): Likewise.
16398 * reload.c (push_secondary_reload, scratch_reload_class)
16399 (find_reloads, alternative_allows_const_pool_ref): Likewise.
16400 * reload1.c (maybe_fix_stack_asms): Likewise.
16401 * targhooks.c (default_secondary_reload): Likewise.
16402 * stmt.c (parse_output_constraint): Likewise.
16403 * recog.c (preprocess_constraints): Likewise.
16404 (constrain_operands, peep2_find_free_register): Likewise.
16405 (asm_operand_ok): Likewise, but add a comment saying why 'o'
16406 must be handled specially.
16407
16408 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16409
16410 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
16411 * genpreds.c (have_const_dbl_constraints): Delete.
16412 (add_constraint): Don't set it.
16413 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
16414 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
16415 constraints using the lookup_constraint logic.
16416 * ira-lives.c (single_reg_class): Likewise.
16417 * ira.c (ira_setup_alts): Likewise.
16418 * lra-constraints.c (process_alt_operands): Likewise.
16419 * recog.c (asm_operand_ok, constrain_operands): Likewise.
16420 * reload.c (find_reloads): Likewise.
16421
16422 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16423
16424 * genpreds.c (const_int_start, const_int_end): New variables.
16425 (choose_enum_order): Output CONST_INT constraints before memory
16426 constraints.
16427 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
16428 Add CT_CONST_INT.
16429 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
16430 * ira.c (ira_setup_alts): Likewise.
16431 * lra-constraints.c (process_alt_operands): Likewise.
16432 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
16433 * reload.c (find_reloads): Likewise.
16434
16435 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16436
16437 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
16438 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
16439 * recog.c (preprocess_constraints): Update accordingly.
16440
16441 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16442
16443 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
16444 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
16445 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
16446 * genpreds.c (print_type_tree): New function.
16447 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
16448 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
16449 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
16450 Write out enum constraint_type and get_constraint_type.
16451 * lra-constraints.c (satisfies_memory_constraint_p): Take a
16452 constraint_num rather than a constraint string.
16453 (satisfies_address_constraint_p): Likewise.
16454 (reg_class_from_constraints): Avoid old constraint macros.
16455 (process_alt_operands, process_address_1): Likewise.
16456 (curr_insn_transform): Likewise.
16457 * ira-costs.c (record_reg_classes): Likewise.
16458 (record_operand_costs): Likewise.
16459 * ira-lives.c (single_reg_class): Likewise.
16460 (ira_implicitly_set_insn_hard_regs): Likewise.
16461 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
16462 * postreload.c (reload_cse_simplify_operands): Likewise.
16463 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
16464 (constrain_operands, peep2_find_free_register): Likewise.
16465 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
16466 (find_reloads, alternative_allows_const_pool_ref): Likewise.
16467 * reload1.c (maybe_fix_stack_asms): Likewise.
16468 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
16469 * targhooks.c (default_secondary_reload): Likewise.
16470 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
16471 to EXTRA_CONSTRAINT_STR.
16472 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
16473
16474 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16475
16476 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
16477 (write_constraint_satisfied_p_array): ...this new function.
16478 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
16479 an array.
16480 (write_insn_preds_c): Update accordingly.
16481
16482 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16483
16484 * genpreds.c (write_lookup_constraint): Rename to...
16485 (write_lookup_constraint_1): ...this.
16486 (write_lookup_constraint_array): New function.
16487 (write_tm_preds_h): Define lookup_constraint as an inline function
16488 that uses write_lookup_constraint_array where possible.
16489 (write_insn_preds_c): Update for the changes above.
16490
16491 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16492
16493 * doc/md.texi (regclass_for_constraint): Rename to...
16494 (reg_class_for_constraint): ...this.
16495 * genpreds.c (num_constraints, enum_order, register_start)
16496 (register_end, satisfied_start, memory_start, memory_end)
16497 (address_start, address_end): New variables.
16498 (add_constraint): Count the number of constraints.
16499 (choose_enum_order): New function.
16500 (write_enum_constraint_num): Iterate over enum_order.
16501 (write_regclass_for_constraint): Rename to...
16502 (write_reg_class_for_constraint_1): ...this and update output
16503 accordingly.
16504 (write_constraint_satisfied_p): Rename to...
16505 (write_constraint_satisfied_p_1): ...this and update output
16506 accordingly. Do nothing if all extra constraints are register
16507 constraints.
16508 (write_insn_extra_memory_constraint): Delete.
16509 (write_insn_extra_address_constraint): Delete.
16510 (write_range_function): New function.
16511 (write_tm_preds_h): Define constraint_satisfied_p and
16512 reg_class_for_constraint as inline functions that do a range check
16513 before calling the out-of-line function. Use write_range_function
16514 to implement insn_extra_{register,memory,address}_constraint,
16515 the first of which is new.
16516 (write_insn_preds_c): Update after above changes to write_* functions.
16517 (main): Call choose_enum_order.
16518
16519 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
16520
16521 PR tree-optimization/61306
16522 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
16523 expression instead of its size.
16524 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
16525 false to prevent optimization when the result is unpredictable due to
16526 arithmetic right shift of signed type with highest byte is set.
16527 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
16528 (init_symbolic_number): Likewise.
16529 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
16530 when the result is unpredictable due to sign extension.
16531
16532 2014-06-11 Terry Guo <terry.guo@arm.com>
16533
16534 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
16535 (*thumb1_addsi3): Ditto.
16536 (*thumb_subdi3): Ditto.
16537 (thumb1_subsi3_insn): Ditto.
16538 (*thumb_mulsi3): Ditto.
16539 (*thumb_mulsi3_v6): Ditto.
16540 (*thumb1_andsi3_insn): Ditto.
16541 (thumb1_bicsi3): Ditto.
16542 (*thumb1_iorsi3_insn): Ditto.
16543 (*thumb1_xorsi3_insn): Ditto.
16544 (*thumb1_ashlsi3): Ditto.
16545 (*thumb1_ashrsi3): Ditto.
16546 (*thumb1_lshrsi3): Ditto.
16547 (*thumb1_rotrsi3): Ditto.
16548 (*thumb1_negdi2): Ditto.
16549 (*thumb1_negsi2): Ditto.
16550 (*thumb1_abssi2): Ditto.
16551 (*thumb1_neg_abssi2): Ditto.
16552 (*thumb1_one_cmplsi2): Ditto.
16553 (*thumb1_zero_extendhisi2): Ditto.
16554 (*thumb1_zero_extendqisi2): Ditto.
16555 (*thumb1_zero_extendqisi2_v6): Ditto.
16556 (thumb1_extendhisi2): Ditto.
16557 (thumb1_extendqisi2): Ditto.
16558 (*thumb1_movdi_insn): Ditto.
16559 (*thumb1_movsi_insn): Ditto.
16560 (*thumb1_movhi_insn): Ditto.
16561 (thumb_movhi_clobber): Ditto.
16562 (*thumb1_movqi_insn): Ditto.
16563 (*thumb1_movhf): Ditto.
16564 (*thumb1_movsf_insn): Ditto.
16565 (*thumb_movdf_insn): Ditto.
16566 (movmem12b): Ditto.
16567 (movmem8b): Ditto.
16568 (cbranchqi4): Ditto.
16569 (cbranchsi4_insn): Ditto.
16570 (cbranchsi4_scratch): Ditto.
16571 (*negated_cbranchsi4): Ditto.
16572 (*tbit_cbranch): Ditto.
16573 (*tlobits_cbranch): Ditto.
16574 (*tstsi3_cbranch): Ditto.
16575 (*cbranchne_decr1): Ditto.
16576 (*addsi3_cbranch): Ditto.
16577 (*addsi3_cbranch_scratch): Ditto.
16578 (*thumb_cmpdi_zero): Ditto.
16579 (cstoresi_eq0_thumb1): Ditto.
16580 (cstoresi_ne0_thumb1): Ditto.
16581 (*cstoresi_eq0_thumb1_insn): Ditto.
16582 (*cstoresi_ne0_thumb1_insn): Ditto.
16583 (cstoresi_nltu_thumb1): Ditto.
16584 (cstoresi_ltu_thumb1): Ditto.
16585 (thumb1_addsi3_addgeu): Ditto.
16586 (*thumb_jump): Ditto.
16587 (*call_reg_thumb1_v5): Ditto.
16588 (*call_reg_thumb1): Ditto.
16589 (*call_value_reg_thumb1_v5): Ditto.
16590 (*call_value_reg_thumb1): Ditto.
16591 (*call_insn): Ditto.
16592 (*call_value_insn): Ditto.
16593 (thumb1_casesi_internal_pic): Ditto.
16594 (thumb1_casesi_dispatch): Ditto.
16595 (*thumb1_indirect_jump): Ditto.
16596 (prologue_thumb1_interwork): Ditto.
16597 (*epilogue_insns): Ditto.
16598 (consttable_1): Ditto.
16599 (consttable_2): Ditto.
16600 (tablejump): Ditto.
16601 (*thumb1_tablejump): Ditto.
16602 (thumb_eh_return): Ditto.
16603 (define_peephole2): Two of them are thumb1 only and got moved into
16604 new file thumb1.md.
16605 (define_split): Six of them are thumb1 only and got moved into new
16606 file thumb1.md.
16607 * config/arm/thumb1.md: New file comprised of above thumb1 only
16608 patterns.
16609
16610 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16611
16612 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
16613 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
16614 dependencies.
16615 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
16616 (aarch64_crc_builtin_datum): New struct.
16617 (aarch64_crc_builtin_data): New.
16618 (aarch64_init_crc32_builtins): New function.
16619 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
16620 (aarch64_crc32_expand_builtin): New.
16621 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
16622 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16623 __ARM_FEATURE_CRC32 when appropriate.
16624 (TARGET_CRC32): Define.
16625 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
16626 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
16627 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
16628 (aarch64_<crc_variant>): New pattern.
16629 * config/aarch64/arm_acle.h: New file.
16630 * config/aarch64/iterators.md (CRC): New int iterator.
16631 (crc_variant, crc_mode): New int attributes.
16632 * doc/aarch64-acle-intrinsics.texi: New file.
16633 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
16634 Include aarch64-acle-intrinsics.texi.
16635
16636 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
16637
16638 * tree-vect-data-refs.c (vect_grouped_store_supported): New
16639 check for stores group of length 3.
16640 (vect_permute_store_chain): New permutations for stores group of
16641 length 3.
16642 * tree-vect-stmts.c (vect_model_store_cost): Change cost
16643 of vec_perm_shuffle for the new permutations.
16644
16645 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
16646
16647 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
16648 table rewriting temporarily on targets not supporting ONE_ONLY.
16649
16650 2014-06-11 Richard Biener <rguenther@suse.de>
16651
16652 PR middle-end/61437
16653 Revert
16654 2014-06-04 Richard Biener <rguenther@suse.de>
16655
16656 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
16657 TREE_PUBLIC and DECL_EXTERNAL decls.
16658
16659 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
16660
16661 * varasm.c (set_implicit_section): New function.
16662 (resolve_unique_section): Use it to set implicit section
16663 for aliases, too.
16664 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
16665 (default_function_section): Likewise.
16666 (decl_binds_to_current_def_p): Constify argument.
16667 * varasm.h (decl_binds_to_current_def_p): Update prototype.
16668 * asan.c (asan_protect_global): Use
16669 symtab_get_node (decl)->implicit_section.
16670 * symtab.c (dump_symtab_base): Dump implicit sections.
16671 (verify_symtab_base): Verify sanity of sectoins and comdats.
16672 (symtab_resolve_alias): Alias share the section of its target.
16673 (set_section_1): New function.
16674 (symtab_node::set_section): Move here, recurse to aliases.
16675 (verify_symtab): Check for duplicated symtab lists.
16676 * tree-core.h (implicit_section_name_p): Remove.
16677 * tree-vect-data-refs.c: Include varasm.h.
16678 (vect_can_force_dr_alignment_p): Fix conditional on when
16679 decl bints to current definition; use
16680 symtab_get_node (decl)->implicit_section.
16681 * cgraph.c (cgraph_make_node_local_1): Fix section set.
16682 * cgraph.h (struct symtab_node): Add implicit_section.
16683 (set_section): Rename to ...
16684 (set_section_for_node): ... this one.
16685 (set_section): Declare.
16686 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
16687 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
16688 input_overwrite_node, input_varpool_node): Stream implicit_section.
16689 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
16690 removal; it will fail in LTO.
16691
16692 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16693
16694 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
16695 Change second alternative type to f_mcr.
16696 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
16697 and 12th alternatives' types to f_mcr and f_mrc.
16698 (*movdi_aarch64): Same for 12th and 13th alternatives.
16699 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
16700 (aarch64_movtilow_tilow): Change type to fmov.
16701
16702 2014-06-10 Jiong Wang <jiong.wang@arm.com>
16703
16704 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
16705 (aarch64_save_or_restore_callee_save_registers): Fix layout.
16706
16707 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16708
16709 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
16710 New expander.
16711 (aarch64_sqrdmulh_lane<mode>): Likewise.
16712 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16713 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16714 (aarch64_sqdmulh_laneq<mode>): New expander.
16715 (aarch64_sqrdmulh_laneq<mode>): Likewise.
16716 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
16717 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
16718 (aarch64_sqdmulh_lane<mode>): New expander.
16719 (aarch64_sqrdmulh_lane<mode>): Likewise.
16720 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16721 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16722 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
16723 (aarch64_sqdmlal_laneq<mode>): Likewise.
16724 (aarch64_sqdmlsl_lane<mode>): Likewise.
16725 (aarch64_sqdmlsl_laneq<mode>): Likewise.
16726 (aarch64_sqdmlal2_lane<mode>): Likewise.
16727 (aarch64_sqdmlal2_laneq<mode>): Likewise.
16728 (aarch64_sqdmlsl2_lane<mode>): Likewise.
16729 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
16730 (aarch64_sqdmull_lane<mode>): Likewise.
16731 (aarch64_sqdmull_laneq<mode>): Likewise.
16732 (aarch64_sqdmull2_lane<mode>): Likewise.
16733 (aarch64_sqdmull2_laneq<mode>): Likewise.
16734
16735 2014-06-10 Richard Biener <rguenther@suse.de>
16736
16737 PR tree-optimization/61438
16738 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
16739 (eliminate_dom_walker::before_dom_children): Only try to inhibit
16740 insertion of IVs if running PRE.
16741 (eliminate): Adjust.
16742 (pass_pre::execute): Likewise.
16743 (pass_fre::execute): Likewise.
16744
16745 2014-06-10 Richard Biener <rguenther@suse.de>
16746
16747 PR middle-end/61456
16748 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16749 Do not use the main variant for the type comparison.
16750 (ncr_compar): Likewise.
16751 (nonoverlapping_component_refs_p): Likewise.
16752
16753 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
16754
16755 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
16756 REG_CFA_RESTORE mode.
16757
16758 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
16759
16760 * config/i386/i386.c (expand_vec_perm_pblendv): New.
16761 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
16762 expand_vec_perm_pblendv.
16763
16764 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16765
16766 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
16767 available.
16768 Simplify description of __crc32d and __crc32cd intrinsics.
16769 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
16770 availability.
16771
16772 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
16773
16774 PR lto/61334
16775 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
16776 * config.in: Regenerate.
16777 * configure: Likewise.
16778
16779 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
16780
16781 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
16782 and public vars.
16783 (intersect_static_var_sets): Remove.
16784 (propagate): Do not prune local statics.
16785
16786 2014-06-10 Jakub Jelinek <jakub@redhat.com>
16787
16788 PR fortran/60928
16789 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
16790 Set lastprivate_firstprivate even if omp_private_outer_ref
16791 langhook returns true.
16792 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
16793 langhook, call unshare_expr on new_var and call
16794 build_outer_var_ref to get the last argument.
16795
16796 2014-06-10 Marek Polacek <polacek@redhat.com>
16797
16798 PR c/60988
16799 * doc/extend.texi: Add cindex for transparent_union.
16800
16801 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
16802
16803 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
16804 init_symbolic_number ().
16805
16806 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
16807
16808 PR middle-end/61141
16809 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
16810 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
16811 (verify_rtl_sharing): Likewise.
16812
16813 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
16814
16815 PR c++/54442
16816 * tree.c (build_qualified_type): Use a canonical type for
16817 TYPE_CANONICAL.
16818
16819 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16820
16821 * config/arm/arm-modes.def: Remove XFmode.
16822
16823 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
16824
16825 PR target/61062
16826 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
16827 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
16828 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
16829 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
16830 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
16831 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
16832 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
16833 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
16834 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
16835
16836 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
16837
16838 * tree-core.h (tree_decl_with_vis): Remove section_name.
16839
16840 2014-06-09 Kito Cheng <kito@0xlab.org>
16841
16842 * ira.c (ira): Don't call init_caller_save if LRA enabled
16843 since LRA use its own infrastructure to handle that.
16844
16845 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16846
16847 * symtab.c (dump_symtab_base): Update dumping.
16848 (symtab_make_decl_local): Clear only DECL_COMDAT.
16849 * tree-vect-data-refs.c (Check that variable is static before
16850 tampering with sections.
16851 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
16852 (cgraph_create_virtual_clone): Likewise.
16853 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
16854 (decl_section_name, set_decl_section_name): New accessors.
16855 (find_decls_types_r): Do not walk section name
16856 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
16857 (decl_comdat_group, decl_comdat_group_id): Constify.
16858 (decl_section_name, set_decl_section_name): Update.
16859 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
16860 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
16861 (cgraph_make_node_local_1): Clear section and comdat group.
16862 * cgraph.h (set_comdat_group): Sanity check.
16863 (get_section, set_section): New.
16864 * ipa-comdats.c (ipa_comdats): Use get_section.
16865 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
16866 * lto-streamer-out.c: Do not follow section names.
16867 * c-family/c-common.c (handle_section_attribute): Update.
16868 * lto-cgraph.c (lto_output_node): Output section.
16869 (lto_output_varpool_node): Likewise.
16870 (read_comdat_group): Rename to ...
16871 (read_identifier): ... this one.
16872 (read_string_cst): New function.
16873 (input_node, input_varpool_node): Input section names.
16874 * tree-emutls.c (get_emutls_init_templ_addr): Update.
16875 (new_emutls_decl): Update.
16876 (secname_for_decl): Check section names only of static vars.
16877 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
16878 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
16879 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
16880 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
16881 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
16882 * config/mcore/mcore.c (mcore_unique_section): Likewise.
16883 * config/mips/mips.c (mips16_build_function_stub): Likewise.
16884 * config/v850/v850.c (v850_insert_attributes): Likewise.
16885 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
16886 Likewise.
16887 (h8300_handle_tiny_data_attribute): Likewise.
16888 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
16889 (bfin_handle_l2_attribute): Likewise.
16890
16891 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16892
16893 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
16894 remove static initializer.
16895
16896 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16897
16898 * varasm.c (use_blocks_for_decl_p): Check symbol table
16899 instead of alias attribute.
16900 (place_block_symbol): Recurse on aliases.
16901
16902 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16903
16904 * ipa-visibility.c: Include varasm.h
16905 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
16906
16907 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16908
16909 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
16910 outputting aliases.
16911
16912 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
16913
16914 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
16915 from test_insn into GGC space escape via SET_SRC.
16916
16917 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
16918
16919 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
16920 call statement, if any.
16921 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
16922 statements, if any. Tidy up.
16923
16924 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
16925
16926 PR target/61431
16927 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
16928 iterators, VSX_D that handles 64-bit types, and VSX_LE that
16929 handles swapping the two 64-bit double words on little endian
16930 systems. Include V1TImode and optionally TImode in VSX_LE so that
16931 these types are properly swapped. Change all of the insns and
16932 splits that do the 64-bit swaps to use VSX_LE.
16933 (vsx_le_perm_load_<mode>): Likewise.
16934 (vsx_le_perm_store_<mode>): Likewise.
16935 (splitters for little endian memory operations): Likewise.
16936 (vsx_xxpermdi2_le_<mode>): Likewise.
16937 (vsx_lxvd2x2_le_<mode>): Likewise.
16938 (vsx_stxvd2x2_le_<mode>): Likewise.
16939
16940 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
16941
16942 PR target/61423
16943 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
16944 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
16945 and corresponding splitters. Zero extend general register
16946 or memory input operand to XMM temporary. Enable for
16947 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
16948 (floatunssi<mode>2): Update expander predicate.
16949
16950 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
16951
16952 PR rtl-optimization/61325
16953 * lra-constraints.c (process_address_1): Check scale equal to one
16954 to prevent transformation: base + scale * index => base + new_reg.
16955
16956 2014-06-06 Richard Biener <rguenther@suse.de>
16957
16958 PR tree-optimization/59299
16959 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
16960 a def operand.
16961 (nearest_common_dominator_of_uses): Likewise.
16962 (statement_sink_location): Adjust. Support sinking loads.
16963
16964 2014-06-06 Martin Jambor <mjambor@suse.cz>
16965
16966 * ipa-prop.c (get_place_in_agg_contents_list): New function.
16967 (build_agg_jump_func_from_list): Likewise.
16968 (determine_known_aggregate_parts): Renamed to
16969 determine_locally_known_aggregate_parts. Moved some functionality
16970 to the two functions above, removed bound checks.
16971
16972 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
16973
16974 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
16975 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
16976 (aarch64_progress_pointer): Likewise.
16977 (aarch64_copy_one_part_and_move_pointers): Likewise.
16978 (aarch64_expand_movmen): Likewise.
16979 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
16980 * config/aarch64/aarch64.md (movmem<mode>): New.
16981
16982 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
16983
16984 * targhooks.c (default_add_stmt_cost): Call target specific
16985 hook instead of default one.
16986
16987 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
16988
16989 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
16990 endianness instead of host endianness.
16991 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
16992 comments.
16993
16994 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
16995
16996 PR debug/53927
16997 * function.c (instantiate_decls): Process the saved static chain.
16998 (expand_function_start): If not optimizing, save the static chain
16999 onto the stack.
17000 * tree-nested.c (convert_all_function_calls): Always create the static
17001 chain for nested functions if not optimizing.
17002
17003 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
17004
17005 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
17006
17007 2014-06-06 Richard Biener <rguenther@suse.de>
17008
17009 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
17010 (construct_init_block): Likewise.
17011 (construct_exit_block): Likewise.
17012 (pass_expand::execute): Likewise.
17013 * graphite.c (graphite_transforms): Replace check for current_loops
17014 with a check for > 1 loops.
17015 (pass_graphite_transforms::execute): Adjust.
17016 * ipa-split.c (split_function): Remove check for current_loops.
17017 * omp-low.c (expand_parallel_call): Likewise.
17018 (expand_omp_for_init_counts): Likewise.
17019 (extract_omp_for_update_vars): Likewise.
17020 (expand_omp_for_generic): Likewise.
17021 (expand_omp_sections): Likewise.
17022 (expand_omp_target): Likewise.
17023 * tracer.c (tail_duplicate): Likewise.
17024 (pass_tracer::execute): Likewise.
17025 * trans-mem.c (expand_transaction): Likewise.
17026 * tree-complex.c (expand_complex_div_wide): Likewise.
17027 * tree-eh.c (lower_resx): Likewise.
17028 (cleanup_empty_eh_merge_phis): Likewise.
17029 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
17030 current_loops with a check for > 1 loops.
17031 (pass_predcom::execute): Adjust.
17032 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
17033 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
17034 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
17035 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
17036 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
17037 * tree-switch-conversion.c (process_switch): Likewise.
17038 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
17039 * tree-vrp.c (vrp_visit_phi_node): Likewise.
17040 (execute_vrp): Likewise.
17041 * ubsan.c (ubsan_expand_null_ifn): Likewise.
17042
17043 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
17044
17045 * rtl.h (insn_location): Declare.
17046 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
17047 with UNKNOWN_LOCATION.
17048 * emit-rtl.c (insn_location): New function.
17049 * final.c (notice_source_line): Check that the instruction has a
17050 location before retrieving it and use insn_location.
17051 * modulo-sched.c (loop_single_full_bb_p): Likewise.
17052 * print-rtl.c (print_rtx): Likewise.
17053
17054 2014-06-06 Richard Biener <rguenther@suse.de>
17055
17056 * passes.def: Move 2nd VRP pass before phi-only-cprop.
17057
17058 2014-06-06 Christian Bruel <christian.bruel@st.com>
17059
17060 PR tree-optimization/43934
17061 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
17062 cost.
17063
17064 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
17065
17066 * ira-lives.c (single_reg_class): Add missing break. Explicitly
17067 return NO_REGS for extra address and memory constraints. Handle
17068 operands that match (or are equivalent to something that matches)
17069 extra constant constraints. Ignore other non-register operands.
17070
17071 2014-06-06 Alan Modra <amodra@gmail.com>
17072
17073 PR target/61300
17074 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
17075 * doc/tm.texi: Regenerate.
17076 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
17077 Use throughout in place of REG_PARM_STACK_SPACE.
17078 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
17079 "incoming" param. Pass to rs6000_function_parms_need_stack.
17080 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
17081 prototype_p when incoming. Use function decl when incoming
17082 to handle K&R style functions.
17083 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
17084 (INCOMING_REG_PARM_STACK_SPACE): Define.
17085
17086 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17087
17088 PR target/52472
17089 * cfgexpand.c (expand_debug_expr): Use address space of nested
17090 TREE_TYPE for ADDR_EXPR and MEM_REF.
17091
17092 2014-06-05 Jeff Law <law@redhat.com>
17093
17094 PR tree-optimization/61289
17095 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
17096 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
17097 looking for those which match LHS. All callers changed.
17098 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
17099 parameters and code which manipulated them. All callers changed.
17100 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
17101 and DST_MAP parameters. Simplify invalidation code by just calling
17102 invalidate_equivalences. All callers changed.
17103 (thread_across_edge): Simplify now that we don't need to maintain
17104 the map of equivalences to invalidate.
17105
17106 2014-06-05 Kai Tietz <ktietz@redhat.com>
17107 Richard Henderson <rth@redhat.com>
17108
17109 PR target/46219
17110 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
17111 checking for !TARGET_X32.
17112 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
17113 (sibcall_intern): New define_insn, plus required peepholes.
17114 (sibcall_pop_intern): Likewise.
17115 (sibcall_value_intern): Likewise.
17116 (sibcall_value_pop_intern): Likewise.
17117
17118 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
17119
17120 * tree-inline.c (tree_function_versioning): Check DF info existence
17121 before accessing it.
17122
17123 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17124
17125 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
17126 frame_size.
17127 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
17128 aarch64_frame hard_fp_offset and frame_size.
17129 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
17130 frame_size; remove original_frame_size.
17131 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
17132 (aarch64_initial_elimination_offset): Remove frame_size and
17133 offset. Use aarch64_frame frame_size.
17134
17135 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17136 Jiong Wang <jiong.wang@arm.com>
17137 Renlin <renlin.li@arm.com>
17138
17139 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
17140 initialization of R30 offset. Update offset. Iterate core
17141 regisers upto X30. Remove X29, X30 specific code.
17142
17143 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17144 Jiong Wang <jiong.wang@arm.com>
17145
17146 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
17147 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
17148 (aarch64_register_saved_on_entry): Adjust test.
17149
17150 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17151
17152 * config/aarch64/aarch64.h (machine_function): Move
17153 saved_varargs_size from here...
17154 (aarch64_frame): ... to here.
17155
17156 * config/aarch64/aarch64.c (aarch64_expand_prologue)
17157 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
17158 (aarch64_initial_elimination_offset)
17159 (aarch64_setup_incoming_varargs): Adjust location of
17160 saved_varargs_size.
17161
17162 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17163
17164 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
17165 layout comment.
17166
17167 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
17168 Prachi Godbole <Prachi.Godbole@imgtec.com>
17169
17170 * config/mips/mips-cpus.def: Add definition for p5600. Updated
17171 mips32r5 entry to use PROCESSOR_P5600.
17172 * config/mips/mips-tables.opt: Regenerate.
17173 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
17174 * config/mips/mips.c (mips_fmadd_bypass): New function.
17175 (mips_rtx_cost_data): Add costs for p5600.
17176 (mips_issue_rate): Add support for p5600.
17177 (mips_multipass_dfa_lookahead): Likewise.
17178 * config/mips/mips.h (TUNE_P5600): New define.
17179 (TUNE_MACC_CHAINS): Add TUNE_P5600.
17180 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
17181 * config/mips/mips.md: Include p5600.md.
17182 (processor): Add p5600.
17183 * config/mips/p5600.md: New file.
17184
17185 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
17186
17187 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
17188 * config/i386/predicates.md (palignr_operand): New.
17189 Indicates if permutation is suitable for palignr instruction.
17190
17191 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
17192
17193 PR tree-optimization/61319
17194 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
17195 stmt belongs to loop.
17196
17197 2014-06-05 Richard Biener <rguenther@suse.de>
17198
17199 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
17200 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
17201 (lookup_tmp_var): Adjust.
17202 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
17203
17204 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17205
17206 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
17207
17208 2014-06-05 Marek Polacek <polacek@redhat.com>
17209
17210 PR c/49706
17211 * doc/invoke.texi: Document -Wlogical-not-parentheses.
17212
17213 2014-06-04 Tom de Vries <tom@codesourcery.com>
17214
17215 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
17216 CONST_INT.
17217
17218 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
17219
17220 PR tree-optimization/61385
17221 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
17222
17223 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
17224
17225 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
17226 changed to use fatal_error.
17227 (main): Ensure lto_wrapper_cleanup is run atexit.
17228
17229 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17230
17231 * lra-constraints.c (valid_address_p): Move earlier in file.
17232 (address_eliminator): New structure.
17233 (satisfies_memory_constraint_p): New function.
17234 (satisfies_address_constraint_p): Likewise.
17235 (process_alt_operands, process_address, curr_insn_transform): Use them.
17236
17237 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17238
17239 * lra-int.h (lra_static_insn_data): Make operand_alternative a
17240 const pointer.
17241 (target_lra_int, default_target_lra_int, this_target_lra_int)
17242 (op_alt_data): Delete.
17243 * lra.h (lra_init): Delete.
17244 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
17245 (init_insn_code_data_once): Remove op_alt_data handling.
17246 (finish_insn_code_data_once): Likewise.
17247 (init_op_alt_data): Delete.
17248 (get_static_insn_data): Initialize operand_alternative to null.
17249 (free_insn_recog_data): Cast operand_alternative before freeing it.
17250 (setup_operand_alternative): Take the operand_alternative as
17251 parameter and assume it isn't already cached in the static
17252 insn data.
17253 (lra_set_insn_recog_data): Update accordingly.
17254 (lra_init): Delete.
17255 * ira.c (ira_init): Don't call lra_init.
17256 * target-globals.h (this_target_lra_int): Declare.
17257 (target_globals): Remove lra_int.
17258 (restore_target_globals): Update accordingly.
17259 * target-globals.c: Don't include lra-int.h.
17260 (default_target_globals, save_target_globals): Remove lra_int.
17261
17262 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17263
17264 * recog.h (operand_alternative): Convert reg_class, reject,
17265 matched and matches into bitfields.
17266 (preprocess_constraints): New overload.
17267 (preprocess_insn_constraints): New function.
17268 (preprocess_constraints): Take the insn as parameter.
17269 (recog_op_alt): Change into a pointer.
17270 (target_recog): Add x_op_alt.
17271 * recog.c (asm_op_alt): New variable.
17272 (recog_op_alt): Change into a pointer.
17273 (preprocess_constraints): New overload, replacing the old function
17274 definition with one that doesn't use global state.
17275 (preprocess_insn_constraints): New function.
17276 (preprocess_constraints): Use them. Take the insn as parameter.
17277 Use asm_op_alt for asms.
17278 (recog_init): Free existing x_op_alt entries.
17279 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
17280 pointer const.
17281 (make_early_clobber_and_input_conflicts): Likewise.
17282 (process_bb_node_lives): Pass the insn to process_constraints.
17283 * reg-stack.c (check_asm_stack_operands): Likewise.
17284 (subst_asm_stack_regs): Likewise.
17285 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
17286 * regrename.c (build_def_use): Likewise.
17287 * sched-deps.c (sched_analyze_insn): Likewise.
17288 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
17289 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
17290 (note_invalid_constants): Likewise.
17291 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17292 (ix86_legitimate_combined_insn): Make operand_alternative pointer
17293 const.
17294
17295 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17296
17297 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
17298 * ira-lives.c (check_and_make_def_conflict): Check for disabled
17299 alternatives.
17300 (make_early_clobber_and_input_conflicts): Likewise.
17301 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17302
17303 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17304
17305 * recog.h (alternative_class): New function.
17306 (which_op_alt): Return a const recog_op_alt.
17307 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
17308 (subst_asm_stack_regs): Likewise.
17309 * config/arm/arm.c (note_invalid_constants): Likewise.
17310 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
17311 the operand_alternative; use alternative class instead.
17312 * sel-sched.c (get_reg_class): Likewise.
17313 * regrename.c (build_def_use): Likewise.
17314 (hide_operands, restore_operands, record_out_operands): Update type
17315 accordingly.
17316
17317 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17318
17319 * recog.h (recog_op_alt): Convert to a flat array.
17320 (which_op_alt): New function.
17321 * recog.c (recog_op_alt): Convert to a flat array.
17322 (preprocess_constraints): Update accordingly, grouping all
17323 operands of the same alternative together, rather than the
17324 other way around.
17325 * ira-lives.c (check_and_make_def_conflict): Likewise.
17326 (make_early_clobber_and_input_conflicts): Likewise.
17327 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17328 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
17329 (subst_asm_stack_regs): Likewise.
17330 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
17331 * regrename.c (hide_operands, record_out_operands): Likewise.
17332 (build_def_use): Likewise.
17333 * sel-sched.c (get_reg_class): Likewise.
17334 * config/arm/arm.c (note_invalid_constants): Likewise.
17335
17336 2014-06-04 Jason Merrill <jason@redhat.com>
17337
17338 PR c++/51253
17339 PR c++/61382
17340 * gimplify.c (gimplify_arg): Non-static.
17341 * gimplify.h: Declare it.
17342
17343 2014-06-04 Richard Biener <rguenther@suse.de>
17344
17345 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
17346 TREE_PUBLIC and DECL_EXTERNAL decls.
17347
17348 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
17349
17350 * regcprop.c (copyprop_hardreg_forward_1): Account for
17351 HARD_REGNO_CALL_PART_CLOBBERED.
17352
17353 2014-06-04 Richard Biener <rguenther@suse.de>
17354
17355 * configure.ac: Check whether the underlying type of int64_t
17356 is long or long long.
17357 * configure: Regenerate.
17358 * config.in: Likewise.
17359 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
17360 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17361
17362 2014-06-04 Richard Biener <rguenther@suse.de>
17363
17364 PR tree-optimization/60098
17365 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
17366 we hit a kill.
17367 (dse_optimize_stmt): Simplify, now that we found a kill
17368 earlier.
17369
17370 2014-06-04 Richard Biener <rguenther@suse.de>
17371
17372 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
17373 of accesses with non-invariant address.
17374
17375 2014-06-04 Martin Liska <mliska@suse.cz>
17376
17377 * cgraph.h (cgraph_make_wrapper): New function introduced.
17378 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
17379 * ipa-inline.h (inline_analyze_function): The function is global.
17380 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
17381
17382 2014-06-04 Martin Liska <mliska@suse.cz>
17383
17384 * tree.h (private_lookup_attribute_starting): New function.
17385 (lookup_attribute_starting): Likewise.
17386 * tree.c (private_lookup_attribute_starting): Likewise.
17387
17388 2014-06-04 Martin Liska <mliska@suse.cz>
17389
17390 * cgraph.h (expand_thunk): New argument added.
17391 (address_taken_from_non_vtable_p): New global function.
17392 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
17393 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
17394 * cgraphunit.c (analyze_function): Likewise.
17395 (assemble_thunks_and_aliases): Argument added to call.
17396 (expand_thunk): New argument forces to produce GIMPLE thunk.
17397
17398 2014-06-04 Martin Liska <mliska@suse.cz>
17399
17400 * coverage.h (coverage_compute_cfg_checksum): Argument added.
17401 * coverage.c (coverage_compute_cfg_checksum): Likewise.
17402 * profile.c (branch_prob): Likewise.
17403
17404 2014-06-04 Martin Jambor <mjambor@suse.cz>
17405
17406 PR ipa/61340
17407 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
17408 handler for switch on an ipa_ref_use enum.
17409 * ipa-reference.c (analyze_function): Likewise.
17410
17411 2014-06-04 Kai Tietz <ktietz@redhat.com>
17412
17413 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
17414 from old call-instruction.
17415
17416 2014-06-04 Bin Cheng <bin.cheng@arm.com>
17417
17418 * config/aarch64/aarch64.c (aarch64_classify_address)
17419 (aarch64_legitimize_reload_address): Support full addressing modes
17420 for vector modes.
17421 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
17422 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
17423
17424 2014-06-03 Andrew Pinski <apinski@cavium.com>
17425
17426 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
17427 for OP0.
17428
17429 2014-06-03 Andrew Pinski <apinski@cavium.com>
17430
17431 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
17432 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
17433
17434 2014-06-03 Kai Tietz <ktietz@redhat.com>
17435
17436 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
17437 for 64-bit ms-abi.
17438
17439 2014-06-03 Dehao Chen <dehao@google.com>
17440
17441 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
17442 the same loop.
17443
17444 2014-06-03 Marek Polacek <polacek@redhat.com>
17445
17446 PR c/60439
17447 * doc/invoke.texi: Document -Wswitch-bool.
17448 * function.c (stack_protect_epilogue): Cast controlling expression of
17449 the switch to int.
17450 * gengtype.c (walk_type): Generate switch expression with its
17451 controlling expression cast to int.
17452
17453 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
17454
17455 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
17456 and attiny841.
17457 * config/avr/avr-tables.opt: Regenerate.
17458 * config/avr/t-multilib: Regenerate.
17459 * doc/avr-mmcu.texi: Regenerate.
17460
17461 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
17462 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17463
17464 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
17465 (ata6617c, ata664251): Add new avr35 devices.
17466 (ata6612c): Add new avr4 device.
17467 (ata6613c, ata6614q): Add new avr5 devices.
17468 * config/avr/avr-tables.opt: Regenerate.
17469 * config/avr/t-multilib: Regenerate.
17470 * doc/avr-mmcu.texi: Regenerate.
17471
17472 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17473
17474 * gcc/config/aarch64/aarch64-builtins.c
17475 (aarch64_types_binop_ssu_qualifiers): New static data.
17476 (TYPES_BINOP_SSU): Define.
17477 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
17478 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
17479 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
17480 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
17481 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
17482 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
17483 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
17484 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
17485 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
17486 suffix to builtin function name, remove cast.
17487 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
17488 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
17489 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
17490
17491 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17492
17493 * gcc/config/aarch64/aarch64-builtins.c
17494 (aarch64_types_binop_uus_qualifiers,
17495 aarch64_types_shift_to_unsigned_qualifiers,
17496 aarch64_types_unsigned_shiftacc_qualifiers): Define.
17497 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
17498 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
17499 sqshlu_n, uqshl_n): Update qualifiers.
17500 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
17501 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
17502 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
17503 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
17504 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
17505 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
17506 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
17507 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
17508 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
17509 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
17510 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
17511 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
17512 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
17513 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
17514 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
17515 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
17516 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
17517 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
17518 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
17519 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
17520 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
17521 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
17522 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
17523 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
17524 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
17525 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
17526 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
17527
17528 2014-06-03 Teresa Johnson <tejohnson@google.com>
17529
17530 * tree-sra.c (modify_function): Record caller nodes after rebuild.
17531
17532 2014-06-02 Jason Merrill <jason@redhat.com>
17533
17534 PR c++/61020
17535 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
17536
17537 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17538
17539 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
17540 location == 0.
17541
17542 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17543
17544 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
17545 New pattern.
17546 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
17547 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
17548 * config/aarch64/iterators.md (REVERSE): New iterator.
17549 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
17550 (rev_op): New int_attribute.
17551 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
17552 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
17553 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
17554 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
17555 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
17556 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
17557 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
17558 Replace temporary __asm__ with __builtin_shuffle.
17559
17560 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
17561
17562 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
17563 mips64r5.
17564 * config/mips/mips-tables.opt: Regenerate.
17565 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
17566 to use mips_isa_rev rather than ISA_MIPS32R2.
17567 * config/mips/mips.h (ISA_MIPS32R3): New define.
17568 (ISA_MIPS32R5): New define.
17569 (ISA_MIPS64R3): New define.
17570 (ISA_MIPS64R5): New define.
17571 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
17572 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
17573 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
17574 and mips64r5.
17575 (MIPS_ISA_SYNCI_SPEC): Likewise.
17576 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
17577 (LINK_SPEC): Added mips32r3 and mips32r5.
17578 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
17579 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
17580 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
17581 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
17582 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
17583 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
17584 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
17585
17586 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
17587
17588 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
17589 options.
17590 * config/mips/mips.opt (mxpa): New option.
17591 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
17592 assembler.
17593
17594 2014-06-03 Martin Jambor <mjambor@suse.cz>
17595
17596 PR ipa/61160
17597 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
17598 thunks.
17599
17600 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
17601
17602 PR tree-optimization/61328
17603 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
17604 initialization from find_bswap_or_nop_1.
17605 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
17606 in source_expr2 before using the size value the function sets. Also
17607 make use of init_symbolic_number () in both the old place and
17608 find_bswap_or_nop_load () to avoid reading uninitialized memory when
17609 doing recursion in the GIMPLE_BINARY_RHS case.
17610
17611 2014-06-03 Richard Biener <rguenther@suse.de>
17612
17613 PR tree-optimization/61383
17614 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
17615 stmts can't trap.
17616
17617 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
17618
17619 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
17620 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
17621 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
17622 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
17623 in this file.
17624 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
17625 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
17626 * system.h: ...here and make it unconditional.
17627 * target.def (conditional_register_usage): Mention
17628 define_register_constraint instead of old-style constraint macros.
17629 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
17630 * doc/tm.texi: Regenerate.
17631 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
17632 protected by !USE_MD_CONSTRAINTS.
17633 * config/frv/frv.md: Remove quote from old version of documentation.
17634 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
17635 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
17636 CONST_DOUBLE_OK_FOR_LETTER.
17637 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
17638
17639 2014-06-02 Andrew Pinski <apinski@cavium.com>
17640
17641 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
17642 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
17643 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
17644 file whose name depends on -mabi= and -mbig-endian.
17645 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
17646 Handle LP64 better and handle ilp32 too.
17647 (MULTILIB_OPTIONS): Delete.
17648 (MULTILIB_DIRNAMES): Delete.
17649
17650 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
17651
17652 * expr.h: Remove prototypes of functions defined in builtins.c.
17653 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
17654 Remove prototypes of functions defined in builtins.c.
17655 * builtins.h: Update prototype list to include all exported functions.
17656 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
17657 no_c99_libc_has_function): Move to targhooks.c
17658 (build_string_literal, build_call_expr_loc_array,
17659 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
17660 to tree.c.
17661 (expand_builtin_object_size, fold_builtin_object_size): Make static.
17662 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
17663 no_c99_libc_has_function): Relocate from builtins.c.
17664 * tree.c: Include builtins.h.
17665 (build_call_expr_loc_array, build_call_expr_loc_vec,
17666 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
17667 from builtins.c.
17668 * fold-const.h (fold_fma): Move prototype to builtins.h.
17669 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
17670 * asan.c: Include builtins.h.
17671 * cfgexpand.c: Likewise.
17672 * convert.c: Likewise.
17673 * emit-rtl.c: Likewise.
17674 * except.c: Likewise.
17675 * expr.c: Likewise.
17676 * fold-const.c: Likewise.
17677 * gimple-fold.c: Likewise.
17678 * gimple-ssa-strength-reduction.c: Likewise.
17679 * gimplify.c: Likewise.
17680 * ipa-inline.c: Likewise.
17681 * ipa-prop.c: Likewise.
17682 * lto-streamer-out.c: Likewise.
17683 * stmt.c: Likewise.
17684 * tree-inline.c: Likewise.
17685 * tree-object-size.c: Likewise.
17686 * tree-sra.c: Likewise.
17687 * tree-ssa-ccp.c: Likewise.
17688 * tree-ssa-forwprop.c: Likewise.
17689 * tree-ssa-loop-ivcanon.c: Likewise.
17690 * tree-ssa-loop-ivopts.c: Likewise.
17691 * tree-ssa-math-opts.c: Likewise.
17692 * tree-ssa-reassoc.c: Likewise.
17693 * tree-ssa-threadedge.c: Likewise.
17694 * tree-streamer-in.c: Likewise.
17695 * tree-vect-data-refs.c: Likewise.
17696 * tree-vect-patterns.c: Likewise.
17697 * tree-vect-stmts.c: Likewise.
17698 * config/aarch64/aarch64.c: Likewise.
17699 * config/alpha/alpha.c: Likewise.
17700 * config/arc/arc.c: Likewise.
17701 * config/arm/arm.c: Likewise.
17702 * config/avr/avr.c: Likewise.
17703 * config/bfin/bfin.c: Likewise.
17704 * config/c6x/c6x.c: Likewise.
17705 * config/cr16/cr16.c: Likewise.
17706 * config/cris/cris.c: Likewise.
17707 * config/epiphany/epiphany.c: Likewise.
17708 * config/fr30/fr30.c: Likewise.
17709 * config/frv/frv.c: Likewise.
17710 * config/h8300/h8300.c: Likewise.
17711 * config/i386/i386.c: Likewise.
17712 * config/i386/winnt.c: Likewise.
17713 * config/ia64/ia64.c: Likewise.
17714 * config/iq2000/iq2000.c: Likewise.
17715 * config/lm32/lm32.c: Likewise.
17716 * config/m32c/m32c.c: Likewise.
17717 * config/m32r/m32r.c: Likewise.
17718 * config/m68k/m68k.c: Likewise.
17719 * config/mcore/mcore.c: Likewise.
17720 * config/mep/mep.c: Likewise.
17721 * config/microblaze/microblaze.c: Likewise.
17722 * config/mips/mips.c: Likewise.
17723 * config/mmix/mmix.c: Likewise.
17724 * config/mn10300/mn10300.c: Likewise.
17725 * config/moxie/moxie.c: Likewise.
17726 * config/msp430/msp430.c: Likewise.
17727 * config/nds32/nds32.c: Likewise.
17728 * config/pa/pa.c: Likewise.
17729 * config/pdp11/pdp11.c: Likewise.
17730 * config/picochip/picochip.c: Likewise.
17731 * config/rl78/rl78.c: Likewise.
17732 * config/rs6000/rs6000.c: Likewise.
17733 * config/rx/rx.c: Likewise.
17734 * config/s390/s390.c: Likewise.
17735 * config/score/score.c: Likewise.
17736 * config/sh/sh.c: Likewise.
17737 * config/sparc/sparc.c: Likewise.
17738 * config/spu/spu.c: Likewise.
17739 * config/stormy16/stormy16.c: Likewise.
17740 * config/tilegx/tilegx.c: Likewise.
17741 * config/tilepro/tilepro.c: Likewise.
17742 * config/v850/v850.c: Likewise.
17743 * config/vax/vax.c: Likewise.
17744 * config/xtensa/xtensa.c: Likewise.
17745
17746 2014-06-02 Jeff Law <law@redhat.com>
17747
17748 PR rtl-optimization/61094
17749 * ree.c (combine_reaching_defs): Do not reextend an insn if it
17750 was marked as do_no_reextend. If a copy is needed to eliminate
17751 an extension, then mark it as do_not_reextend.
17752
17753 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
17754
17755 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
17756
17757 2014-06-02 Richard Henderson <rth@redhat.com>
17758
17759 PR target/61336
17760 * config/alpha/alpha.c (print_operand_address): Allow symbolic
17761 addresses inside asms. Use output_operand_lossage instead of
17762 gcc_unreachable.
17763
17764 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
17765
17766 PR target/61239
17767 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
17768 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
17769
17770 2014-06-02 Tom de Vries <tom@codesourcery.com>
17771
17772 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
17773 case that x has VOIDmode.
17774
17775 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
17776
17777 * varasm.c (copy_constant): Delete function.
17778 (build_constant_desc): Don't call it.
17779
17780 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17781
17782 PR target/61154
17783 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
17784 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
17785 with immediate_operand.
17786
17787 2014-06-02 Andreas Schwab <schwab@suse.de>
17788
17789 * config/ia64/ia64.c
17790 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
17791 pending_data_specs first.
17792
17793 2014-06-02 Richard Biener <rguenther@suse.de>
17794
17795 PR tree-optimization/61378
17796 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
17797 valueized_anything.
17798
17799 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
17800
17801 * config/i386/constraints.md (Bw): Rename from 'w'.
17802 (Bz): Rename from 'z'.
17803 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
17804
17805 2014-06-01 Kai Tietz <ktietz@redhat.com>
17806
17807 PR target/61377
17808 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
17809 * config/i386/i386.md (sibcall_insn_operand): Use Bs
17810 instead of m constraint.
17811
17812 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
17813
17814 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
17815 a separate alternative where the scratch operand 2 is marked as
17816 early clobber.
17817
17818 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
17819
17820 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
17821 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
17822 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
17823 and __builtins_arm_get_fpscr.
17824 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
17825 __builtins_arm_get_fpscr.
17826 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
17827 __builtins_arm_ldfpscr.
17828 (arm_atomic_assign_expand_fenv): New function.
17829 * config/arm/vfp.md (set_fpscr): New pattern.
17830 (get_fpscr) : Likewise.
17831 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
17832 VUNSPEC_SET_FPSCR.
17833 * doc/extend.texi (AARCH64 Built-in Functions) : Document
17834 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
17835
17836 2014-05-30 Jakub Jelinek <jakub@redhat.com>
17837
17838 * asan.c (report_error_func): Add SLOW_P argument, use
17839 BUILT_IN_ASAN_*_N if set.
17840 (build_check_stmt): Likewise.
17841 (instrument_derefs): If T has insufficient alignment,
17842 force same handling as for odd sizes.
17843
17844 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
17845 BUILT_IN_ASAN_REPORT_STORE_N): New.
17846 * asan.c (struct asan_mem_ref): Change access_size type to
17847 HOST_WIDE_INT.
17848 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
17849 update_mem_ref_hash_table): Likewise.
17850 (asan_mem_ref_hasher::hash): Hash in a HWI.
17851 (report_error_func): Change size_in_bytes argument to HWI.
17852 Use *_N builtins if size_in_bytes is larger than 16 or not power of
17853 two.
17854 (build_shadow_mem_access): New function.
17855 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
17856 Handle size_in_bytes not power of two or larger than 16.
17857 (instrument_derefs): Don't give up if size_in_bytes is not
17858 power of two or is larger than 16.
17859
17860 2014-05-30 Kai Tietz <ktietz@redhat.com>
17861
17862 PR target/60104
17863 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
17864 for sibling-tail-calls.
17865 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
17866 to its use.
17867 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
17868 (sibcall_insn_operand): Add check for sibcall_memory_operand.
17869
17870 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17871
17872 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
17873 * config/avr/avr-tables.opt: Regenerate.
17874 * config/avr/t-multilib: Regenerate.
17875 * doc/avr-mmcu.texi: Regenerate.
17876
17877 2014-05-30 Ian Lance Taylor <iant@google.com>
17878
17879 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
17880 target("sse").
17881
17882 2014-05-30 Tom de Vries <tom@codesourcery.com>
17883
17884 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
17885 Redefine as true.
17886
17887 2014-05-30 Tom de Vries <tom@codesourcery.com>
17888
17889 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17890 * lra.c (initialize_lra_reg_info_element): Add init of
17891 actual_call_used_reg_set field.
17892 (lra): Call lra_create_live_ranges before lra_inheritance for
17893 -fuse-caller-save.
17894 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17895 -fuse-caller-save.
17896 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
17897 instead of call_used_reg_set for -fuse-caller-save.
17898 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17899
17900 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17901
17902 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
17903 to mov_imm.
17904 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
17905
17906 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
17907
17908 * ira.c (ira_get_dup_out_num): Check for output operands at
17909 the start of the loop. Handle cases where an included alternative
17910 follows an excluded one.
17911
17912 2014-05-29 Mike Stump <mikestump@comcast.net>
17913
17914 PR debug/61352
17915 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
17916 post ld passes when lto is used.
17917
17918 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
17919
17920 PR rtl-optimization/61325
17921 * lra-constraints.c (process_address): Rename to process_address_1.
17922 (process_address): New function.
17923
17924 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
17925
17926 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
17927 TYPES_BINOPV): New static data.
17928 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
17929 New builtin.
17930 * config/aarch64/aarch64-simd.md (aarch64_ext,
17931 aarch64_im_lane_boundsi): New patterns.
17932 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
17933 patterns for EXT.
17934 (aarch64_evpc_ext): New function.
17935
17936 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
17937
17938 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
17939 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
17940 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
17941 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
17942 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
17943
17944 2014-05-29 Tom de Vries <tom@codesourcery.com>
17945
17946 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
17947
17948 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
17949 Richard Sandiford <rdsandiford@googlemail.com>
17950
17951 * arm/iterators.md (shiftable_ops): New code iterator.
17952 (t2_binop0, arith_shift_insn): New code attributes.
17953 * arm/predicates.md (shift_nomul_operator): New predicate.
17954 * arm/arm.md (insn_enabled): Delete.
17955 (enabled): Remove insn_enabled test.
17956 (*arith_shiftsi): Delete. Replace with ...
17957 (*<arith_shift_insn>_multsi): ... new pattern.
17958 (*<arith_shift_insn>_shiftsi): ... new pattern.
17959 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
17960
17961 2014-05-29 Radovan Obradovic <robradovic@mips.com>
17962 Tom de Vries <tom@codesourcery.com>
17963
17964 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
17965 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
17966 clobber.
17967 (mips_split_call): Use POST_CALL_TMP_REG.
17968 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
17969
17970 2014-05-29 Tom de Vries <tom@codesourcery.com>
17971
17972 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
17973 with #ifdef STACK_REGS.
17974
17975 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
17976
17977 * varasm.c (get_variable_section): Walk aliases.
17978 (place_block_symbol): Walk aliases.
17979
17980 2014-05-28 Tom de Vries <tom@codesourcery.com>
17981
17982 Revert:
17983 2014-05-28 Tom de Vries <tom@codesourcery.com>
17984
17985 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17986 * lra.c (initialize_lra_reg_info_element): Add init of
17987 actual_call_used_reg_set field.
17988 (lra): Call lra_create_live_ranges before lra_inheritance for
17989 -fuse-caller-save.
17990 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17991 -fuse-caller-save.
17992 * lra-constraints.c (need_for_call_save_p): Use
17993 actual_call_used_reg_set instead of call_used_reg_set for
17994 -fuse-caller-save.
17995 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17996
17997 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17998
17999 * doc/md.texi: Document that the % constraint character must
18000 be at the beginning of the string.
18001 * genoutput.c (validate_insn_alternatives): Check that '=',
18002 '+' and '%' only appear at the beginning of a constraint.
18003 * ira.c (commutative_constraint_p): Delete.
18004 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
18005 at the start of the string.
18006 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
18007 duplicate '='s.
18008 * config/arm/neon.md (bicdi3_neon): Likewise.
18009 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
18010 (slt_si, sltu_si): Likewise.
18011 * config/vax/vax.md (sbcdi3): Likewise.
18012 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
18013 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
18014 (mul64): Move '%' to beginning of constraint.
18015 * config/arm/arm.md (*xordi3_insn): Likewise.
18016 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
18017 (xorsi3): Likewise.
18018
18019 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
18020
18021 * doc/md.texi: Document the restrictions on the "enabled" attribute.
18022
18023 2014-05-28 Jason Merrill <jason@redhat.com>
18024
18025 PR c++/47202
18026 * cgraph.h (symtab_node::get_comdat_group_id): New.
18027 * cgraphunit.c (analyze_functions): Call it.
18028 * symtab.c (dump_symtab_node): Likewise.
18029 * tree.c (decl_comdat_group_id): New.
18030 * tree.h: Declare it.
18031 * lto-streamer-out.c (write_symbol): Use it.
18032 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
18033
18034 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18035
18036 PR bootstrap/PR61146
18037 * wide-int.cc: Do not include longlong.h when compiling with clang.
18038
18039 2014-05-28 Richard Biener <rguenther@suse.de>
18040
18041 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
18042 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
18043 (vrp_visit_assignment_or_call): Print less vertical space.
18044 (vrp_visit_stmt): Likewise.
18045 (vrp_visit_phi_node): Likewise. For a PHI argument with
18046 VR_VARYING range consider recording it as copy.
18047
18048 2014-05-28 Richard Biener <rguenther@suse.de>
18049
18050 Revert
18051 2014-05-28 Richard Biener <rguenther@suse.de>
18052
18053 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
18054
18055 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
18056
18057 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
18058 sufficiently aligned and an offset is used at the same time.
18059 (expand_expr_real_1): Likewise.
18060
18061 2014-05-28 Richard Biener <rguenther@suse.de>
18062
18063 PR middle-end/61045
18064 * fold-const.c (fold_comparison): When folding
18065 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
18066 the sign of the remaining constant operand stays the same.
18067
18068 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
18069
18070 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
18071 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
18072 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
18073 to the assembler.
18074 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
18075 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
18076 (m32bit-doubles) Likewise.
18077 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
18078 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
18079 option for RL78.
18080
18081 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18082
18083 * configure.ac ($gcc_cv_ld_clearcap): New test.
18084 * configure: Regenerate.
18085 * config.in: Regenerate.
18086 * config/sol2.opt (mclear-hwcap): New option.
18087 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
18088 * config/sol2-clearcap.map: Moved here from
18089 testsuite/gcc.target/i386/clearcap.map.
18090 * config/sol2-clearcapv2.map: Move here from
18091 gcc.target/i386/clearcapv2.map.
18092 * config/t-sol2 (install): Depend on install-clearcap-map.
18093 (install-clearcap-map): New target.
18094 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
18095 -mclear-hwcap.
18096
18097 2014-05-28 Richard Biener <rguenther@suse.de>
18098
18099 * hwint.h (*_HALF_WIDE_INT*): Move to ...
18100 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
18101 ... here and remove the rest.
18102 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
18103
18104 2014-05-28 Richard Biener <rguenther@suse.de>
18105
18106 PR tree-optimization/61335
18107 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
18108 new range fails, drop to varying.
18109
18110 2014-05-28 Olivier Hainque <hainque@adacore.com>
18111
18112 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
18113 (CPP_SPEC): Add entry for -mcpu=8548.
18114 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
18115 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
18116
18117 2014-05-28 Tom de Vries <tom@codesourcery.com>
18118
18119 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
18120 * lra.c (initialize_lra_reg_info_element): Add init of
18121 actual_call_used_reg_set field.
18122 (lra): Call lra_create_live_ranges before lra_inheritance for
18123 -fuse-caller-save.
18124 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
18125 -fuse-caller-save.
18126 * lra-constraints.c (need_for_call_save_p): Use
18127 actual_call_used_reg_set instead of call_used_reg_set for
18128 -fuse-caller-save.
18129 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
18130
18131 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18132 Tom de Vries <tom@codesourcery.com>
18133
18134 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
18135 to gccoptlist.
18136 (@item -fuse-caller-save): New item.
18137
18138 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18139 Tom de Vries <tom@codesourcery.com>
18140
18141 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
18142 OPT_fuse_caller_save.
18143
18144 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18145 Tom de Vries <tom@codesourcery.com>
18146
18147 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
18148 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
18149 get_call_reg_set_usage.
18150 * resource.c (mark_set_resources, mark_target_live_regs): Use
18151 get_call_reg_set_usage.
18152 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
18153 field.
18154 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
18155 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
18156 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18157 * ira-build.c (ira_create_allocno): Init
18158 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18159 (create_cap_allocno, propagate_allocno_info)
18160 (propagate_some_info_from_allocno)
18161 (copy_info_to_removed_store_destinations): Handle
18162 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18163 * ira-costs.c (ira_tune_allocno_costs): Use
18164 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
18165
18166 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18167 Tom de Vries <tom@codesourcery.com>
18168
18169 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
18170 and function_used_regs_valid fields.
18171 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
18172 find_all_hard_reg_sets.
18173 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
18174 (get_call_reg_set_usage): New function.
18175 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
18176 * regs.h (get_call_reg_set_usage): Declare.
18177
18178 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
18179
18180 PR libgcc/61152
18181 * config/dbx.h (License): Add Runtime Library Exception.
18182 * config/newlib-stdint.h (License): Same.
18183 * config/rtems.h (License): Same
18184 * config/initfini-array.h (License): Same
18185 * config/v850/v850.h (License): Same.
18186 * config/v850/v850-opts.h (License): Same
18187 * config/v850/rtems.h (License): Same.
18188
18189 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
18190
18191 PR target/61044
18192 * doc/extend.texi (Local Labels): Note that label differences are
18193 not supported for AVR.
18194
18195 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
18196 Olivier Hainque <hainque@adacore.com>
18197
18198 * rtl.h (set_for_reg_notes): Declare.
18199 * emit-rtl.c (set_for_reg_notes): New function.
18200 (set_unique_reg_note): Use it.
18201 * optabs.c (add_equal_note): Likewise
18202
18203 2014-05-27 Andrew Pinski <apinski@cavium.com>
18204
18205 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
18206 Use <w> for the register in assembly template.
18207 (stack_protect_test): Use the mode of operands[0] for the result.
18208 (stack_protect_test_<mode>): Use <w> for the register
18209 in assembly template.
18210
18211 2014-05-27 DJ Delorie <dj@redhat.com>
18212
18213 * config/rx/rx.c (add_vector_labels): New.
18214 (rx_output_function_prologue): Call it.
18215 (rx_handle_func_attribute): Don't require empty arguments.
18216 (rx_handle_vector_attribute): New.
18217 (rx_attribute_table): Add "vector" attribute.
18218 * doc/extend.texi (interrupt, vector): Document new/changed
18219 RX-specific attributes.
18220
18221 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
18222
18223 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
18224
18225 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
18226 predicate to detect a negative quotient.
18227
18228 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
18229
18230 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
18231 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
18232 Add X - Y CMP 0 to X CMP Y transformation.
18233 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
18234
18235 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
18236
18237 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
18238 before printing.
18239
18240 2014-05-27 Steve Ellcey <sellcey@mips.com>
18241
18242 * config/mips/mips.c: Add include of cgraph.h.
18243
18244 2014-05-27 Richard Biener <rguenther@suse.de>
18245
18246 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
18247
18248 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
18249
18250 PR libgcc/61152
18251 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
18252 * config/arm/arm-cores.def (License): Same.
18253 * config/arm/arm-opts.h (License): Same.
18254 * config/arm/aout.h (License): Same.
18255 * config/arm/bpabi.h (License): Same.
18256 * config/arm/elf.h (License): Same.
18257 * config/arm/linux-elf.h (License): Same.
18258 * config/arm/linux-gas.h (License): Same.
18259 * config/arm/netbsd-elf.h (License): Same.
18260 * config/arm/uclinux-eabi.h (License): Same.
18261 * config/arm/uclinux-elf.h (License): Same.
18262 * config/arm/vxworks.h (License): Same.
18263
18264 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18265
18266 * config/arm/neon.md (neon_bswap<mode>): New pattern.
18267 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
18268 (arm_init_neon_builtins): Handle NEON_BSWAP.
18269 Define required type nodes.
18270 (arm_expand_neon_builtin): Handle NEON_BSWAP.
18271 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
18272 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
18273 * config/arm/iterators.md (VDQHSD): New mode iterator.
18274
18275 2014-05-27 Richard Biener <rguenther@suse.de>
18276
18277 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18278 Try using literal operands when comparing value-ranges failed.
18279
18280 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
18281
18282 * ira.c (commutative_operand): Adjust for change to recog_data.
18283 [Missing from previous commit.]
18284
18285 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
18286
18287 * system.h (TEST_BIT): New macro.
18288 * recog.h (alternative_mask): New type.
18289 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
18290 (recog_data_d): Replace alternative_enabled_p array with
18291 enabled_alternatives.
18292 (target_recog): New structure.
18293 (default_target_recog, this_target_recog): Declare.
18294 (get_enabled_alternatives, recog_init): Likewise.
18295 * recog.c (default_target_recog, this_target_recog): New variables.
18296 (get_enabled_alternatives): New function.
18297 (extract_insn): Use it.
18298 (recog_init): New function.
18299 (preprocess_constraints, constrain_operands): Adjust for change to
18300 recog_data.
18301 * postreload.c (reload_cse_simplify_operands): Likewise.
18302 * reload.c (find_reloads): Likewise.
18303 * ira-costs.c (record_reg_classes): Likewise.
18304 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
18305 all alternatives after a disabled one would be skipped.
18306 (ira_implicitly_set_insn_hard_regs): Likewise.
18307 * ira.c (ira_setup_alts): Adjust for change to recog_data.
18308 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
18309 with enabled_alternatives.
18310 * lra.c (free_insn_recog_data): Update accordingly.
18311 (lra_update_insn_recog_data): Likewise.
18312 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
18313 * lra-constraints.c (process_alt_operands): Likewise. Handle
18314 only_alternative as part of the enabled mask.
18315 * target-globals.h (this_target_recog): Declare.
18316 (target_globals): Add a recog field.
18317 (restore_target_globals): Restore this_target_recog.
18318 * target-globals.c: Include recog.h.
18319 (default_target_globals): Initialize recog field.
18320 (save_target_globals): Likewise.
18321 * reginfo.c (reinit_regs): Call recog_init.
18322 * toplev.c (backend_init_target): Likewise.
18323
18324 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
18325
18326 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
18327 rather than any named insn's code.
18328
18329 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
18330
18331 PR libgcc/61152
18332 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
18333 * config/arm/arm-cores.def (License): Same.
18334
18335 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
18336
18337 * tree.h (decl_comdat_group): Declare.
18338 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
18339 * tree.c (decl_comdat_group): Here.
18340
18341 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
18342
18343 PR rtl-optimization/61222
18344 * combine.c (simplify_shift_const_1): When moving a PLUS outside
18345 the shift, truncate the PLUS operand to the result mode.
18346
18347 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
18348
18349 PR target/61271
18350 * config/i386/i386.c (ix86_rtx_costs)
18351 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
18352 Fix condition.
18353
18354 2014-05-26 Martin Jambor <mjambor@suse.cz>
18355
18356 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
18357 subreg uses.
18358
18359 2014-05-26 Richard Biener <rguenther@suse.de>
18360
18361 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
18362 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
18363 Provide specializations.
18364 (wi::int_traits <HOST_WIDE_INT>,
18365 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
18366
18367 2014-05-26 Alan Modra <amodra@gmail.com>
18368
18369 PR target/61098
18370 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
18371 params and return a bool. Remove dead code. Update comment.
18372 Assert we have a const_int source. Remove bogus code from
18373 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
18374 handling of constants > 2G and reg_equal note, from..
18375 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
18376 return value. Update comment. If we can, use a new pseudo
18377 for intermediate calculations.
18378 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
18379 prototype.
18380 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
18381 call to rs6000_emit_set_const in splitter.
18382 (movdi_internal64+2, +3): Likewise.
18383
18384 2014-05-26 Richard Biener <rguenther@suse.de>
18385
18386 * system.h: Define __STDC_FORMAT_MACROS before
18387 including inttypes.h.
18388 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
18389 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
18390 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
18391 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
18392 HOST_WIDEST_INT_C): Remove.
18393 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
18394 if C99 inttypes.h is not available.
18395 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
18396 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
18397 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
18398 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
18399 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
18400 (struct output_info): Likewise.
18401 (print_statistics): Adjust.
18402 (dump_bitmap_statistics): Likewise.
18403 * bt-load.c (migrate_btr_defs): Print with PRId64.
18404 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
18405 (MAX_SAFE_MULTIPLIER): Adjust.
18406 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
18407 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
18408 dump_cgraph_node): Likewise.
18409 * final.c (dump_basic_block_info): Likewise.
18410 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
18411 * gcov.c (format_gcov): Likewise.
18412 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
18413 for calculation.
18414 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
18415 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
18416 (inline_small_functions, dump_overall_stats, dump_inline_stats):
18417 Use PRId64 for dumping.
18418 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
18419 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
18420 (add_allocno_hard_regs): Adjust.
18421 * loop-doloop.c (doloop_modify): Print using PRId64.
18422 * loop-iv.c (inverse): Compute in uint64_t.
18423 (determine_max_iter, iv_number_of_iterations): Likewise.
18424 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
18425 Print using PRId64.
18426 * lto-streamer-out.c (write_symbol): Use uint64_t.
18427 * mcf.c (CAP_INFINITY): Use int64_t maximum.
18428 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
18429 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
18430 * modulo-sched.c (const_iteration_count): Use int64_t.
18431 (sms_schedule): Dump using PRId64.
18432 * predict.c (dump_prediction): Likewise.
18433 * pretty-print.h (pp_widest_integer): Remove.
18434 * profile.c (get_working_sets, is_edge_inconsistent,
18435 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
18436 * tree-pretty-print.c (pp_double_int): Remove case handling
18437 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
18438 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
18439 and adjust users.
18440 (pass_optimize_bswap::execute): Remove restriction on hosts.
18441 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
18442 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
18443 * tree.c (widest_int_cst_value): Remove.
18444 * tree.h (widest_int_cst_value): Likewise.
18445 * value-prof.c (dump_histogram_value): Print using PRId64.
18446 * gengtype.c (main): Also inject int64_t.
18447 * ggc-page.c (struct max_alignment): Use int64_t.
18448 * alloc-pool.c (struct allocation_object_def): Likewise.
18449 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
18450 for computation.
18451 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
18452 * doc/tm.texi: Regenerated.
18453 * gengtype-lex.l (IWORD): Handle [u]int64_t.
18454 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
18455 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
18456 mmix_output_register_setting): Use [u]int64_t in prototypes.
18457 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
18458 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
18459 mmix_output_octa, mmix_output_shifted_value): Adjust.
18460 (mmix_intval): Adjust. Remove unreachable case.
18461 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
18462
18463 2014-05-26 Richard Biener <rguenther@suse.de>
18464
18465 * configure.ac: Drop __int64 type check. Insist that we
18466 found uint64_t and int64_t.
18467 * hwint.h (HOST_BITS_PER___INT64): Remove.
18468 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
18469 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
18470 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
18471 (HOST_WIDEST_FAST_INT): Remove __int64 case.
18472 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
18473 for dst_q_src_df_rms_cdt.
18474 * configure: Regenerate.
18475 * config.in: Likewise.
18476
18477 2014-05-26 Michael Tautschnig <mt@debian.org>
18478
18479 PR target/61249
18480 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
18481 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
18482
18483 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18484
18485 PR rtl-optimization/61278
18486 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
18487
18488 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18489
18490 PR rtl-optimization/61220
18491 Part of PR rtl-optimization/61225
18492 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
18493 insn; skip split_edge for a block with only one successor.
18494
18495 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18496
18497 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
18498 for variables.
18499
18500 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18501
18502 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
18503 (update_vtable_references): New function.
18504 (function_and_variable_visibility): Rewrite also vtable initializers.
18505 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
18506
18507 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18508
18509 * ggc.h (ggc_grow): New function.
18510 * ggc-none.c (ggc_grow): New function.
18511 * ggc-page.c (ggc_grow): Likewise.
18512
18513 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18514
18515 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
18516 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
18517 comdat_can_be_unshared_p, cgraph_externally_visible_p,
18518 varpool_externally_visible_p, can_replace_by_local_alias,
18519 update_visibility_by_resolution_info, function_and_variable_visibility,
18520 pass_data_ipa_function_and_variable_visibility,
18521 make_pass_ipa_function_and_variable_visibility,
18522 whole_program_function_and_variable_visibility,
18523 pass_data_ipa_whole_program_visibility,
18524 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
18525 * cgraph.h (cgraph_local_node_p): Declare.
18526 * ipa-visibility.c: New file.
18527 * Makefile.in (OBJS): Add ipa-visiblity.o
18528
18529 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18530
18531 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
18532 that var decl is available.
18533
18534 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18535
18536 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
18537 symtab_node pointer.
18538 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
18539 (find_decls_types_r): Do not walk COMDAT_GROUP.
18540 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
18541 * varasm.c (make_decl_one_only): Use set_comdat_group;
18542 create node if needed.
18543 * ipa-inline-transform.c (save_inline_function_body): Update
18544 way we decl->symtab mapping.
18545 * symtab.c (symtab_hash, hash_node, eq_node
18546 symtab_insert_node_to_hashtable): Remove.
18547 (symtab_register_node): Update.
18548 (symtab_unregister_node): Update.
18549 (symtab_get_node): Reimplement as inline function.
18550 (symtab_add_to_same_comdat_group): Update.
18551 (symtab_dissolve_same_comdat_group_list): Update.
18552 (dump_symtab_base): Update.
18553 (verify_symtab_base): Update.
18554 (symtab_make_decl_local): Update.
18555 (fixup_same_cpp_alias_visibility): Update.
18556 (symtab_nonoverwritable_alias): Update.
18557 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
18558 * ipa.c (update_visibility_by_resolution_info): UPdate.
18559 * bb-reorder.c: Include cgraph.h
18560 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
18561 with comdat groups.
18562 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
18563 * cgraph.c (cgraph_get_create_node): Update.
18564 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
18565 and comdat_group_.
18566 (symtab_get_node): Make inline.
18567 (symtab_insert_node_to_hashtable): Remove.
18568 (symtab_can_be_discarded): Update.
18569 (decl_comdat_group): New function.
18570 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
18571 Update.
18572 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
18573 comdat group name.
18574 (read_comdat_group): New function.
18575 (input_node, input_varpool_node): Use it.
18576 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
18577 comdat groups.
18578 * mips.c (mips_start_unique_function): Likewise.
18579 (ix86_code_end): Likewise.
18580 (rs6000_code_end): Likweise.
18581 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
18582
18583 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18584
18585 * gengtype-state.c (fatal_reading_state): Bring offline.
18586 * optabs.c (widening_optab_handler): Bring offline.
18587 * optabs.h (widening_optab_handler): Likewise.
18588 * final.c (get_attr_length_1): Likewise.
18589
18590 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18591
18592 * sched-int.h (sd_iterator_cond): Manually tail recurse.
18593
18594 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18595
18596 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
18597 (ppc440-compare): Include shift with dot.
18598 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
18599 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
18600 without dot.
18601 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
18602 without dot.
18603 (e6500_sfx2): Include it.
18604 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
18605 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
18606 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
18607 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
18608 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
18609 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
18610 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
18611 *lshiftrt_internal1le, *lshiftrt_internal1be,
18612 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
18613 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
18614 *rotldi3_internal10le, *rotldi3_internal10be,
18615 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
18616 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
18617 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
18618 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
18619 define_insns): Use type "shift" in the appropriate alternatives.
18620
18621 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18622
18623 * config/rs6000/rs6000.md (type): Add "logical". Delete
18624 "fast_compare".
18625 (dot): Adjust comment.
18626 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
18627 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
18628 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
18629 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
18630 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
18631 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
18632 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
18633 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
18634
18635 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18636 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
18637 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18638 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18639 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18640 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18641 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18642 * config/rs6000/8540.md (ppc8540_su): Adjust.
18643 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18644 cell-cmp-microcoded): Adjust.
18645 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
18646 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18647 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
18648 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
18649 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
18650 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18651 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
18652 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
18653 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
18654 Adjust.
18655 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
18656 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
18657 Adjust. Adjust comment.
18658 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18659 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
18660
18661 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18662
18663 * config/rs6000/rs6000.md (type): Add "add".
18664 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
18665 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
18666 define_insns): Use it.
18667 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
18668
18669 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18670 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
18671 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18672 * config/rs6000/601.md (ppc601-integer): Adjust.
18673 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18674 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18675 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18676 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18677 * config/rs6000/8540.md (ppc8540_su): Adjust.
18678 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18679 cell-cmp-microcoded): Adjust.
18680 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
18681 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18682 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
18683 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
18684 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
18685 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18686 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
18687 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
18688 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
18689 Adjust.
18690 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
18691 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
18692 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18693 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
18694
18695 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18696
18697 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
18698 "delayed_compare", "var_delayed_compare".
18699 (var_shift): New attribute.
18700 (cell_micro): Adjust.
18701 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
18702 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
18703 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
18704 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
18705 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
18706 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
18707 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
18708 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
18709 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
18710 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
18711 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
18712 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
18713 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
18714 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
18715 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
18716 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
18717 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
18718 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
18719 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
18720 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
18721 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
18722 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
18723 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
18724 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18725 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18726
18727 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18728 * config/rs6000/440.md (ppc440-integer): Adjust.
18729 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18730 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
18731 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18732 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18733 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18734 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18735 * config/rs6000/8540.md (ppc8540_su): Adjust.
18736 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18737 cell-cmp-microcoded): Adjust.
18738 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
18739 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18740 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
18741 e500mc64_delayed): Adjust.
18742 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
18743 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
18744 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18745 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
18746 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
18747 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
18748 power6-delayed-compare, power6-var-delayed-compare): Adjust.
18749 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
18750 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
18751 Adjust comment.
18752 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18753 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18754
18755 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18756
18757 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
18758 (bits): New mode_attr.
18759 (idiv_ldiv): Delete mode_attr.
18760 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
18761 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18762 rs6000_adjust_priority, is_nonpipeline_insn,
18763 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18764
18765 * config/rs6000/40x.md (ppc403-idiv): Adjust.
18766 * config/rs6000/440.md (ppc440-idiv): Adjust.
18767 * config/rs6000/476.md (ppc476-idiv): Adjust.
18768 * config/rs6000/601.md (ppc601-idiv): Adjust.
18769 * config/rs6000/603.md (ppc603-idiv): Adjust.
18770 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
18771 ppc620-ldiv): Adjust.
18772 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
18773 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
18774 * config/rs6000/8540.md (ppc8540_divide): Adjust.
18775 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
18776 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
18777 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
18778 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
18779 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
18780 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
18781 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
18782 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
18783 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
18784 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
18785 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
18786 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
18787 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
18788 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
18789 * config/rs6000/titan.md (titan_fxu_div): Adjust.
18790
18791 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18792
18793 * config/rs6000/rs6000.md (type): Delete "insert_word",
18794 "insert_dword". Add "insert".
18795 (size): Update comment.
18796 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18797 insn_must_be_first_in_group): Adjust.
18798 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
18799 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
18800 *insvsi_internal6, insvdi_internal): Adjust.
18801
18802 * config/rs6000/40x.md (ppc403-integer): Adjust.
18803 * config/rs6000/440.md (ppc440-integer): Adjust.
18804 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
18805 * config/rs6000/601.md (ppc601-integer): Adjust.
18806 * config/rs6000/603.md (ppc603-integer): Adjust.
18807 * config/rs6000/6xx.md (ppc604-integer): Adjust.
18808 * config/rs6000/7450.md (ppc7450-integer): Adjust.
18809 * config/rs6000/7xx.md (ppc750-integer): Adjust.
18810 * config/rs6000/8540.md (ppc8540_su): Adjust.
18811 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
18812 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
18813 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18814 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
18815 * config/rs6000/e5500.md (e5500_sfx): Adjust.
18816 * config/rs6000/e6500.md (e6500_sfx): Adjust.
18817 * config/rs6000/mpc.md (mpccore-integer): Adjust.
18818 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
18819 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
18820 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
18821 * config/rs6000/power7.md (power7-integer): Adjust.
18822 * config/rs6000/power8.md (power8-1cyc): Adjust.
18823 * config/rs6000/rs64.md (rs64a-integer): Adjust.
18824 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18825
18826 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18827
18828 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
18829 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
18830 (size): New attribute.
18831 (dot): New attribute.
18832 (cell_micro): Adjust.
18833 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
18834 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
18835 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
18836 umuldi3_highpart): Adjust.
18837 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18838 rs6000_adjust_priority, is_nonpipeline_insn,
18839 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18840
18841 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
18842 ppc405-imul3): Adjust.
18843 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
18844 * config/rs6000/476.md (ppc476-imul): Adjust.
18845 * config/rs6000/601.md (ppc601-imul): Adjust.
18846 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
18847 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
18848 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
18849 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
18850 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
18851 Adjust.
18852 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
18853 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
18854 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
18855 cell-imul): Adjust.
18856 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
18857 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
18858 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
18859 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
18860 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
18861 * config/rs6000/mpc.md (mpccore-imul): Adjust.
18862 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
18863 power4-lmul, power4-imul, power4-imul3): Adjust.
18864 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
18865 power5-lmul, power5-imul, power5-imul3): Adjust.
18866 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
18867 power6-lmul, power6-imul, power6-imul3): Adjust.
18868 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
18869 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
18870
18871 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
18872 rs64a-lmul): Adjust.
18873 * config/rs6000/titan.md (titan_imul): Adjust.
18874
18875 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18876
18877 * config/rs6000/rs6000.md (type): Add new value "halfmul".
18878 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
18879 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
18880 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
18881 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
18882 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
18883 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
18884 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
18885 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
18886 * config/rs6000/titan.md: Delete nonsensical comment.
18887 (titan_imul): Add type imul3.
18888 (titan_mulhw): Remove type imul3; add type halfmul.
18889
18890 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18891
18892 * config/rs6000/rs6000.md (type): Reorder, reformat.
18893
18894 2014-05-23 Martin Jambor <mjambor@suse.cz>
18895
18896 PR tree-optimization/53787
18897 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
18898 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
18899 analysis_done, update all uses.
18900 * ipa-prop.c: Include domwalk.h
18901 (param_analysis_info): Removed.
18902 (param_aa_status): New type.
18903 (ipa_bb_info): Likewise.
18904 (func_body_info): Likewise.
18905 (ipa_get_bb_info): New function.
18906 (aa_overwalked): Likewise.
18907 (find_dominating_aa_status): Likewise.
18908 (parm_bb_aa_status_for_bb): Likewise.
18909 (parm_preserved_before_stmt_p): Changed to use new param AA info.
18910 (load_from_unmodified_param): Accept func_body_info as a parameter
18911 instead of parms_ainfo.
18912 (parm_ref_data_preserved_p): Changed to use new param AA info.
18913 (parm_ref_data_pass_through_p): Likewise.
18914 (ipa_load_from_parm_agg_1): Likewise. Update callers.
18915 (compute_complex_assign_jump_func): Changed to use new param AA info.
18916 (compute_complex_ancestor_jump_func): Likewise.
18917 (ipa_compute_jump_functions_for_edge): Likewise.
18918 (ipa_compute_jump_functions): Removed.
18919 (ipa_compute_jump_functions_for_bb): New function.
18920 (ipa_analyze_indirect_call_uses): Likewise, moved variable
18921 declarations down.
18922 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
18923 and info, moved variable declarations down.
18924 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
18925 node and info.
18926 (ipa_analyze_stmt_uses): Likewise.
18927 (ipa_analyze_params_uses): Removed.
18928 (ipa_analyze_params_uses_in_bb): New function.
18929 (ipa_analyze_controlled_uses): Likewise.
18930 (free_ipa_bb_info): Likewise.
18931 (analysis_dom_walker): New class.
18932 (ipa_analyze_node): Handle node-specific forbidden analysis,
18933 initialize and free func_body_info, use dominator walker.
18934 (ipcp_modif_dom_walker): New class.
18935 (ipcp_transform_function): Create and free func_body_info, use
18936 ipcp_modif_dom_walker, moved a lot of functionality there.
18937
18938 2014-05-23 Marek Polacek <polacek@redhat.com>
18939 Jakub Jelinek <jakub@redhat.com>
18940
18941 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
18942 * gcc.c (sanitize_spec_function): Likewise.
18943 * convert.c (convert_to_integer): Include "ubsan.h". Add
18944 floating-point to integer instrumentation.
18945 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
18946 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
18947 SANITIZE_NONDEFAULT.
18948 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
18949 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
18950 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
18951 * ubsan.c: Include "realmpfr.h" and "dfp.h".
18952 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
18953 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
18954 float/double/long double.
18955 (ubsan_instrument_float_cast): New function.
18956 * ubsan.h (ubsan_instrument_float_cast): Declare.
18957
18958 2014-05-23 Jiong Wang <jiong.wang@arm.com>
18959
18960 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
18961 predicate.
18962 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
18963 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
18964 Adjust for tailcalling through registers.
18965 * config/aarch64/aarch64.h (enum reg_class): New caller save
18966 register class.
18967 (REG_CLASS_NAMES): Likewise.
18968 (REG_CLASS_CONTENTS): Likewise.
18969 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
18970 Allow tailcalling without decls.
18971
18972 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
18973
18974 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
18975 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
18976
18977 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
18978 gsi, and variables v_* to v*.
18979
18980 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
18981
18982 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
18983
18984 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
18985
18986 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
18987 * omp-low.c: Update accordingly.
18988
18989 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
18990 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
18991 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
18992 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
18993 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
18994 GF_OMP_TARGET_KIND_UPDATE.
18995
18996 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
18997 Explicitly enumerate the expected region types.
18998
18999 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
19000
19001 PR other/56955
19002 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
19003 documentation; the old documentation didn't clearly state the
19004 constraints on the contents of the pointed-to storage.
19005
19006 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19007
19008 Fix bootstrap error on ia64
19009 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
19010 Return default value.
19011
19012 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
19013
19014 PR tree-optimization/54733
19015 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
19016 (CMPNOP): Define.
19017 (find_bswap_or_nop_load): New.
19018 (find_bswap_1): Renamed to ...
19019 (find_bswap_or_nop_1): This. Also add support for memory source.
19020 (find_bswap): Renamed to ...
19021 (find_bswap_or_nop): This. Also add support for memory source and
19022 detection of bitwise operations equivalent to load in target
19023 endianness.
19024 (execute_optimize_bswap): Likewise. Also move its leading comment back
19025 in place and split statement transformation into ...
19026 (bswap_replace): This.
19027
19028 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
19029
19030 PR rtl-optimization/61215
19031 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
19032 simplify_gen_subreg until final substitution.
19033
19034 2014-05-23 Alan Modra <amodra@gmail.com>
19035
19036 PR target/61231
19037 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
19038 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
19039 Use "Y" constraint rather than "m".
19040
19041 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
19042
19043 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
19044 define.
19045 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
19046 New function declaration.
19047 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
19048 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
19049 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
19050 (aarch64_init_builtins) : Initialize builtins
19051 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
19052 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
19053 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
19054 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
19055 and __builtins_aarch64_set_fpsr.
19056 (aarch64_atomic_assign_expand_fenv): New function.
19057 * config/aarch64/aarch64.md (set_fpcr): New pattern.
19058 (get_fpcr) : Likewise.
19059 (set_fpsr) : Likewise.
19060 (get_fpsr) : Likewise.
19061 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
19062 and UNSPECV_SET_FPSR.
19063 * doc/extend.texi (AARCH64 Built-in Functions) : Document
19064 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
19065 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
19066
19067 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
19068
19069 PR rtl-optimization/60969
19070 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
19071 constraints. Set up mem cost for NO_REGS case.
19072
19073 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
19074
19075 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
19076
19077 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
19078
19079 * config/darwin.c: Include "lto-section-names.h".
19080 (LTO_SEGMENT_NAME): Don't define.
19081 * config/i386/winnt.c: Include "lto-section-names.h".
19082 * lto-streamer.c: Include "lto-section-names.h".
19083 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
19084 * lto-wrapper.c: Include "lto-section-names.h".
19085 (LTO_SECTION_NAME_PREFIX): Don't define.
19086 * lto-section-names.h: New file.
19087 * cgraphunit.c: Include "lto-section-names.h".
19088
19089 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
19090
19091 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
19092
19093 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
19094
19095 PR target/61208
19096 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
19097
19098 2014-05-22 Nick Clifton <nickc@redhat.com>
19099
19100 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
19101
19102 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
19103
19104 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
19105 -> (T)A transformation to integer types.
19106
19107 2014-05-22 Teresa Johnson <tejohnson@google.com>
19108
19109 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
19110 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
19111 (gcov_rewrite): Use gcov_nonruntime_assert.
19112 (gcov_open): Ditto.
19113 (gcov_write_words): Ditto.
19114 (gcov_write_length): Ditto.
19115 (gcov_read_words): Use gcov_nonruntime_assert, and remove
19116 gcc_assert from IN_LIBGCOV code.
19117 (gcov_read_summary): Use gcov_error to flag profile corruption.
19118 (gcov_sync): Use gcov_nonruntime_assert.
19119 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
19120 (gcov_histo_index): Use gcov_nonruntime_assert.
19121 (static void gcov_histogram_merge): Ditto.
19122 (compute_working_sets): Ditto.
19123 * gcov-io.h (gcov_nonruntime_assert): Define.
19124 (gcov_error): Define for !IN_LIBGCOV
19125
19126 2014-05-22 Richard Biener <rguenther@suse.de>
19127
19128 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
19129 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
19130 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
19131 and deallocation site.
19132 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19133 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
19134 passing through the incoming points-to set.
19135 (handle_lhs_call): Use flags argument instead of recomputing it.
19136 (find_func_aliases_for_call): Call handle_lhs_call with proper
19137 call return flags.
19138
19139 2014-05-22 Jakub Jelinek <jakub@redhat.com>
19140
19141 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
19142 all padding bits in REAL_VALUE_TYPE are cleared.
19143
19144 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19145
19146 Cleanup and improve multipass_dfa_lookahead_guard
19147 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
19148 (core2i7_first_cycle_multipass_begin,)
19149 (core2i7_first_cycle_multipass_issue,)
19150 (core2i7_first_cycle_multipass_backtrack): Update signature.
19151 * config/ia64/ia64.c
19152 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
19153 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
19154 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
19155 hook definition.
19156 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
19157 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
19158 values.
19159 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
19160 return values.
19161 * doc/tm.texi: Regenerate.
19162 * doc/tm.texi.in
19163 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
19164 * haifa-sched.c (ready_try): Make signed to allow negative values.
19165 (rebug_ready_list_1): Update.
19166 (choose_ready): Simplify.
19167 (sched_extend_ready_list): Update.
19168
19169 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19170
19171 Remove IA64 speculation tweaking flags
19172 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
19173 speculation tuning flags.
19174 (msched-prefer-non-data-spec-insns,)
19175 (msched-prefer-non-control-spec-insns): Obsolete options.
19176 * haifa-sched.c (choose_ready): Remove handling of
19177 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
19178 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
19179 and PREFER_NON_DATA_SPEC.
19180 * sel-sched.c (process_spec_exprs): Remove handling of
19181 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
19182
19183 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19184
19185 Improve scheduling debug output
19186 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
19187 (advance_one_cycle): Update.
19188 (schedule_insn, queue_to_ready): Add debug printouts.
19189 (debug_ready_list_1): New static function.
19190 (debug_ready_list): Update.
19191 (max_issue): Add debug printouts.
19192 (dump_insn_stream): New static function.
19193 (schedule_block): Use it. Also better indent printouts.
19194
19195 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19196
19197 Fix sched_insn debug counter
19198 * haifa-sched.c (schedule_insn): Update.
19199 (struct haifa_saved_data): Add nonscheduled_insns_begin.
19200 (save_backtrack_point, restore_backtrack_point): Update.
19201 (first_nonscheduled_insn): New static function.
19202 (queue_to_ready, choose_ready): Use it.
19203 (schedule_block): Init nonscheduled_insns_begin.
19204 (sched_emit_insn): Update.
19205
19206
19207 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
19208
19209 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
19210 to GENERAL_REGS.
19211 (aarch64_secondary_reload) : LikeWise.
19212 (aarch64_class_max_nregs) : Remove CORE_REGS.
19213 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
19214 (REG_CLASS_NAMES) : Likewise.
19215 (REG_CLASS_CONTENTS) : LikeWise.
19216 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
19217
19218 2014-05-21 Guozhi Wei <carrot@google.com>
19219
19220 PR target/61202
19221 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
19222 constraint.
19223 (vqdmulhq_n_s16): Likewise.
19224
19225 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
19226
19227 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
19228
19229 2014-05-21 Marek Polacek <polacek@redhat.com>
19230
19231 PR sanitizer/61272
19232 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
19233
19234 2014-05-21 Martin Jambor <mjambor@suse.cz>
19235
19236 * doc/invoke.texi (Optimize Options): Document parameters
19237 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
19238 ipa-cp-array-index-hint-bonus.
19239
19240 2014-05-21 Mark Wielaard <mjw@redhat.com>
19241
19242 PR debug/16063
19243 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
19244 version >= 3 or not strict DWARF.
19245 * langhooks.h (struct lang_hooks_for_types): Add
19246 enum_underlying_base_type.
19247 * langhooks.c (lhd_enum_underlying_base_type): New function.
19248 * gcc/langhooks.h (struct lang_hooks_for_types): Add
19249 enum_underlying_base_type.
19250 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
19251 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
19252 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
19253
19254 2014-05-21 Richard Biener <rguenther@suse.de>
19255
19256 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
19257
19258 2014-05-21 John Marino <gnugcc@marino.st>
19259
19260 * config.gcc (*-*-dragonfly*): New target.
19261 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
19262 * configure: Regenerate.
19263 * config/dragonfly-stdint.h: New.
19264 * config/dragonfly.h: New.
19265 * config/dragonfly.opt: New.
19266 * config/i386/dragonfly.h: New.
19267 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
19268
19269 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19270
19271 * tree.def (VOID_CST): New.
19272 * tree-core.h (TI_VOID): New.
19273 * tree.h (void_node): New.
19274 * tree.c (tree_node_structure_for_code, tree_code_size)
19275 (iterative_hash_expr): Handle VOID_CST.
19276 (build_common_tree_nodes): Initialize void_node.
19277
19278 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
19279
19280 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
19281 functions.
19282 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
19283
19284 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
19285 more places.
19286
19287 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
19288 flag_reorder_blocks_and_partition.
19289 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
19290
19291 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
19292
19293 PR target/54236
19294 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
19295 constraints.
19296 (*addc_r_t): Add new insn_and_split.
19297
19298 2014-05-21 Jakub Jelinek <jakub@redhat.com>
19299
19300 PR middle-end/61252
19301 * omp-low.c (handle_simd_reference): New function.
19302 (lower_rec_input_clauses): Use it. Defer adding reference
19303 initialization even for reduction without placeholder if in simd,
19304 handle it properly later on.
19305
19306 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19307
19308 PR tree-optimization/60899
19309 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
19310 assume all static symbols will have definition wile parsing and
19311 check the do have definition later in compilation; check that
19312 variable referring symbol will be output before concluding that
19313 reference is safe; be conservative for referring local statics;
19314 be more precise about when comdat is output in other partition.
19315
19316 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19317
19318 PR bootstrap/60984
19319 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
19320 parameter.
19321 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
19322 (ipa_inline): Loop inline_to_all_callers until no more aliases
19323 are removed.
19324
19325 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19326
19327 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
19328 set writeonly flag only for vars actually written to.
19329
19330 2014-05-20 Dehao Chen <dehao@google.com>
19331
19332 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
19333 and callee count to get clone count.
19334 * tree-inline.c (expand_call_inline): Use callee count instead of bb
19335 count in copy_body.
19336
19337 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
19338
19339 PR rtl-optimization/61243
19340 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
19341
19342 2014-05-20 Xinliang David Li <davidxl@google.com>
19343
19344 * cgraphunit.c (walk_polymorphic_call_targets): Add
19345 dbgcnt and fopt-info support.
19346 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
19347 * ipa-devirt.c (ipa_devirt): Ditto.
19348 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
19349 * ipa.c (walk_polymorphic_call_targets): Ditto.
19350 * gimple-fold.c (fold_gimple_assign): Ditto.
19351 (gimple_fold_call): Ditto.
19352 * dbgcnt.def: New counter.
19353
19354 2014-05-20 DJ Delorie <dj@redhat.com>
19355
19356 * config/msp430/msp430.md (split): Don't allow subregs when
19357 splitting SImode adds.
19358 (andneghi): Fix subtraction logic.
19359 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
19360
19361 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19362
19363 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
19364 symbols.
19365 * except.c (switch_to_exception_section, resolve_unique_section,
19366 get_named_text_section, default_function_rodata_section,
19367 align_variable, get_block_for_decl, default_section_type_flags):
19368 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
19369 * symtab.c (symtab_add_to_same_comdat_group,
19370 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
19371 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
19372 Likewise.
19373 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
19374 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
19375 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
19376 (c6x_function_in_section_p): Likewise.
19377 * config/darwin.c (machopic_select_section): Likewise.
19378 * config/arm/arm.c (arm_function_in_section_p): Likewise.
19379 * config/mips/mips.c (mips_function_rodata_section): Likewise.
19380 * config/mep/mep.c (mep_select_section): LIkewise.
19381 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
19382
19383 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
19384
19385 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
19386 EH region of calls to pure functions that can throw an exception.
19387 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
19388 (copy_reference_ops_from_call): Also copy the EH region of the call if
19389 it can throw an exception.
19390
19391 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19392
19393 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
19394 nested VEC_SELECTs that are inverses of each other.
19395
19396 2014-05-20 Richard Biener <rguenther@suse.de>
19397
19398 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
19399 (extract_and_process_scc_for_name): not here.
19400 (cond_dom_walker::before_dom_children): Only process
19401 stmts that end the BB in interesting ways.
19402 (run_scc_vn): Mark param uses as visited.
19403
19404 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19405
19406 * config/arm/arm.md (arith_shiftsi): Do not predicate for
19407 arm_restrict_it.
19408
19409 2014-05-20 Nick Clifton <nickc@redhat.com>
19410
19411 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
19412 (msp430_gimplify_va_arg_expr): New function.
19413 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
19414
19415 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
19416 operand 0 in order to prevent confusion about the number of
19417 registers involved.
19418
19419 2014-05-20 Richard Biener <rguenther@suse.de>
19420
19421 PR tree-optimization/61221
19422 * tree-ssa-pre.c (el_to_update): Remove.
19423 (eliminate_dom_walker::before_dom_children): Handle released
19424 VDEFs by value-numbering them to the associated VUSE. Update
19425 stmt immediately for substituted call address.
19426 (eliminate): Remove delayed stmt updating code.
19427 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
19428 possibly late re-numbered vuses.
19429 (vn_reference_lookup_2): Adjust.
19430 (vn_reference_lookup_pieces): Likewise.
19431 (vn_reference_lookup): Likewise.
19432
19433 2014-05-20 Richard Biener <rguenther@suse.de>
19434
19435 * config.gcc: Remove need_64bit_hwint.
19436 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
19437 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
19438 it to be true.
19439 * config.in: Regenerate.
19440 * configure: Likewise.
19441
19442 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
19443
19444 * doc/extend.texi: Create Label Attributes section,
19445 move all label attributes into it and reference it.
19446
19447 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
19448
19449 * arm.c (thumb1_reorg): When scanning backwards skip anything
19450 that's not a proper insn.
19451
19452 2014-05-19 Richard Biener <rguenther@suse.de>
19453
19454 PR tree-optimization/61221
19455 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
19456 Do nothing for unreachable blocks.
19457 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
19458 Improve unreachability detection.
19459
19460 2014-05-19 Richard Biener <rguenther@suse.de>
19461
19462 PR tree-optimization/61209
19463 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
19464
19465 2014-05-19 Nick Clifton <nickc@redhat.com>
19466
19467 * except.c (init_eh): Fix computation of builtin setjmp buffer
19468 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
19469
19470 2014-05-19 Richard Biener <rguenther@suse.de>
19471
19472 PR tree-optimization/61184
19473 * tree-vrp.c (is_negative_overflow_infinity): Use
19474 TREE_OVERFLOW_P and do that check first.
19475 (is_positive_overflow_infinity): Likewise.
19476 (is_overflow_infinity): Likewise.
19477 (vrp_operand_equal_p): Properly treat operands with
19478 differing overflow as not equal.
19479
19480 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
19481
19482 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
19483 shift simplification where it was intended.
19484
19485 2014-05-19 Christian Bruel <christian.bruel@st.com>
19486
19487 PR target/61195
19488 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
19489
19490 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
19491
19492 PR target/61084
19493 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
19494 than wide_int.
19495
19496 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
19497
19498 * reg-notes.def (CROSSING_JUMP): Likewise.
19499 * rtl.h (rtx_def): Update comment for jump flag.
19500 (CROSSING_JUMP_P): Define.
19501 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
19502 of a REG_CROSSING_JUMP note.
19503 * cfghooks.c (tidy_fallthru_edges): Likewise.
19504 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
19505 * emit-rtl.c (try_split): Likewise.
19506 * haifa-sched.c (sched_create_recovery_edges): Likewise.
19507 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
19508 * jump.c (redirect_jump_2): Likewise.
19509 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
19510 (relax_delay_slots): Likewise.
19511 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
19512 (bbit_di): Likewise.
19513 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
19514 * config/sh/sh.md (jump_compact): Likewise.
19515 * bb-reorder.c (rotate_loop): Likewise.
19516 (pass_duplicate_computed_gotos::execute): Likewise.
19517 (add_reg_crossing_jump_notes): Rename to...
19518 (update_crossing_jump_flags): ...this.
19519 (pass_partition_blocks::execute): Update accordingly.
19520
19521 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
19522
19523 * tree.h: Remove extraneous template <>.
19524
19525 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19526
19527 * ipa.c (symtab_remove_unreachable_nodes): Remove
19528 symbol from comdat group if its body was eliminated.
19529 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
19530 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
19531 (symtab_unregister_node): ... this one.
19532 (verify_symtab_base): More strict checking of comdats.
19533 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
19534
19535 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19536
19537 * tree-pass.h (make_pass_ipa_comdats): New pass.
19538 * timevar.def (TV_IPA_COMDATS): New timevar.
19539 * passes.def (pass_ipa_comdats): Add.
19540 * Makefile.in (OBJS): Add ipa-comdats.o
19541 * ipa-comdats.c: New file.
19542
19543 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19544
19545 * ipa.c (update_visibility_by_resolution_info): New function.
19546 (function_and_variable_visibility): Use it.
19547
19548 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19549
19550 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
19551 New functions.
19552 (FOR_EACH_DEFINED_SYMBOL): New macro.
19553 (varpool_first_static_initializer, varpool_next_static_initializer,
19554 varpool_first_defined_variable, varpool_next_defined_variable):
19555 Fix comments.
19556 (symtab_in_same_comdat_p): Correctly deal with inline functions.
19557
19558 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19559
19560 * ggc-page.c (ggc_handle_finalizers): Add comment.
19561
19562 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19563
19564 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
19565 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
19566 (ggc_internal_cleared_alloc): Likewise.
19567 * ggc-page.c (finalizer): New class.
19568 (vec_finalizer): Likewise.
19569 (globals::finalizers): New member.
19570 (globals::vec_finalizers): Likewise.
19571 (ggc_internal_alloc): Record the finalizer if any for the block being
19572 allocated.
19573 (ggc_handle_finalizers): New function.
19574 (ggc_collect): Call ggc_handle_finalizers.
19575 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
19576 finalizer.
19577 (ggc_internal_cleared_alloc): Likewise.
19578 (finalize): New function.
19579 (need_finalization_p): Likewise.
19580 (ggc_alloc): Install the type's destructor as the finalizer if it
19581 might do something.
19582 (ggc_cleared_alloc): Likewise.
19583 (ggc_vec_alloc): Likewise.
19584 (ggc_cleared_vec_alloc): Likewise.
19585
19586 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19587
19588 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
19589
19590 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19591
19592 * alias.c (record_alias_subset): Adjust.
19593 * bitmap.c (bitmap_element_allocate): Likewise.
19594 (bitmap_gc_alloc_stat): Likewise.
19595 * cfg.c (init_flow): Likewise.
19596 (alloc_block): Likewise.
19597 (unchecked_make_edge): Likewise.
19598 * cfgloop.c (alloc_loop): Likewise.
19599 (flow_loops_find): Likewise.
19600 (rescan_loop_exit): Likewise.
19601 * cfgrtl.c (init_rtl_bb_info): Likewise.
19602 * cgraph.c (insert_new_cgraph_node_version): Likewise.
19603 (cgraph_allocate_node): Likewise.
19604 (cgraph_create_edge_1): Likewise.
19605 (cgraph_allocate_init_indirect_info): Likewise.
19606 * cgraphclones.c (cgraph_clone_edge): Likewise.
19607 * cgraphunit.c (add_asm_node): Likewise.
19608 (init_lowered_empty_function): Likewise.
19609 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
19610 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
19611 (alpha_use_linkage): Likewise.
19612 * config/arc/arc.c (arc_init_machine_status): Likewise.
19613 * config/arm/arm.c (arm_init_machine_status): Likewise.
19614 * config/avr/avr.c (avr_init_machine_status): Likewise.
19615 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
19616 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
19617 * config/cris/cris.c (cris_init_machine_status): Likewise.
19618 * config/darwin.c (machopic_indirection_name): Likewise.
19619 (darwin_build_constant_cfstring): Likewise.
19620 (darwin_enter_string_into_cfstring_table): Likewise.
19621 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
19622 * config/frv/frv.c (frv_init_machine_status): Likewise.
19623 * config/i386/i386.c (get_dllimport_decl): Likewise.
19624 (ix86_init_machine_status): Likewise.
19625 (assign_386_stack_local): Likewise.
19626 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
19627 (i386_pe_maybe_record_exported_symbol): Likewise.
19628 (i386_pe_record_stub): Likewise.
19629 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
19630 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
19631 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
19632 (m32c_note_pragma_address): Likewise.
19633 * config/mep/mep.c (mep_init_machine_status): Likewise.
19634 (mep_note_pragma_flag): Likewise.
19635 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
19636 (mips16_local_alias): Likewise.
19637 (mips_init_machine_status): Likewise.
19638 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
19639 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
19640 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
19641 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
19642 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
19643 * config/pa/pa.c (pa_init_machine_status): Likewise.
19644 (pa_get_deferred_plabel): Likewise.
19645 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
19646 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
19647 (rs6000_init_machine_status): Likewise.
19648 (output_toc): Likewise.
19649 * config/s390/s390.c (s390_init_machine_status): Likewise.
19650 * config/score/score.c (score_output_external): Likewise.
19651 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
19652 * config/spu/spu.c (spu_init_machine_status): Likewise.
19653 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
19654 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
19655 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
19656 * coverage.c (coverage_end_function): Likewise.
19657 * dbxout.c (dbxout_init): Likewise.
19658 * doc/gty.texi: Don't mention variable_size attribute.
19659 * dwarf2cfi.c (new_cfi): Adjust.
19660 (new_cfi_row): Likewise.
19661 (copy_cfi_row): Likewise.
19662 (create_cie_data): Likewise.
19663 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
19664 (new_loc_descr): Likewise.
19665 (find_AT_string_in_table): Likewise.
19666 (add_addr_table_entry): Likewise.
19667 (new_die): Likewise.
19668 (add_var_loc_to_decl): Likewise.
19669 (clone_die): Likewise.
19670 (clone_as_declaration): Likewise.
19671 (break_out_comdat_types): Likewise.
19672 (new_loc_list): Likewise.
19673 (add_loc_descr_to_each): Likewise.
19674 (add_location_or_const_value_attribute): Likewise.
19675 (add_linkage_name): Likewise.
19676 (lookup_filename): Likewise.
19677 (dwarf2out_var_location): Likewise.
19678 (new_line_info_table): Likewise.
19679 (dwarf2out_init): Likewise.
19680 (mem_loc_descriptor): Likewise.
19681 (loc_descriptor): Likewise.
19682 (add_const_value_attribute): Likewise.
19683 (tree_add_const_value_attribute): Likewise.
19684 (comp_dir_string): Likewise.
19685 (dwarf2out_vms_debug_main_pointer): Likewise.
19686 (string_cst_pool_decl): Likewise.
19687 * emit-rtl.c (set_mem_attrs): Likewise.
19688 (get_reg_attrs): Likewise.
19689 (start_sequence): Likewise.
19690 (init_emit): Likewise.
19691 (init_emit_regs): Likewise.
19692 * except.c (init_eh_for_function): Likewise.
19693 (gen_eh_region): Likewise.
19694 (gen_eh_region_catch): Likewise.
19695 (gen_eh_landing_pad): Likewise.
19696 (add_call_site): Likewise.
19697 * function.c (add_frame_space): Likewise.
19698 (insert_temp_slot_address): Likewise.
19699 (assign_stack_temp_for_type): Likewise.
19700 (get_hard_reg_initial_val): Likewise.
19701 (allocate_struct_function): Likewise.
19702 (prepare_function_start): Likewise.
19703 (types_used_by_var_decl_insert): Likewise.
19704 * gengtype.c (variable_size_p): Remove function.
19705 (enum alloc_quantity): Remove enum.
19706 (write_typed_alloc_def): Remove function.
19707 (write_typed_struct_alloc_def): Likewise.
19708 (write_typed_typedef_alloc_def): Likewise.
19709 (write_typed_alloc_defns): Likewise.
19710 (main): Adjust.
19711 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
19712 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
19713 * ggc.h (ggc_alloc): new function.
19714 (ggc_cleared_alloc): Likewise.
19715 (ggc_vec_alloc): Template on type of vector element, and remove
19716 element size argument.
19717 (ggc_cleared_vec_alloc): Likewise.
19718 * gimple.c (gimple_build_omp_for): Adjust.
19719 (gimple_copy): Likewise.
19720 * ipa-cp.c (get_replacement_map): Likewise.
19721 (find_aggregate_values_for_callers_subset): Likewise.
19722 (known_aggs_to_agg_replacement_list): Likewise.
19723 * ipa-devirt.c (get_odr_type): Likewise.
19724 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
19725 (read_agg_replacement_chain): Likewise.
19726 * loop-iv.c (get_simple_loop_desc): Likewise.
19727 * lto-cgraph.c (input_node_opt_summary): Likewise.
19728 * lto-section-in.c (lto_new_in_decl_state): Likewise.
19729 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
19730 (input_eh_region): Likewise.
19731 (input_eh_lp): Likewise.
19732 (input_cfg): Likewise.
19733 * optabs.c (set_optab_libfunc): Likewise.
19734 (init_tree_optimization_optabs): Likewise.
19735 (set_conv_libfunc): Likewise.
19736 * passes.c (do_per_function_toporder): Likewise.
19737 * rtl.h: Don't use variable_size gty attribute.
19738 * sese.c (if_region_set_false_region): Adjust.
19739 * stringpool.c (gt_pch_save_stringpool): Likewise.
19740 * target-globals.c (save_target_globals): Likewise.
19741 * toplev.c (general_init): Likewise.
19742 * trans-mem.c (record_tm_replacement): Likewise.
19743 (split_bb_make_tm_edge): Likewise.
19744 * tree-cfg.c (move_sese_region_to_fn): Likewise.
19745 * tree-data-ref.h (lambda_vector_new): Likewise.
19746 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
19747 * tree-iterator.c (tsi_link_before): Likewise.
19748 (tsi_link_after): Likewise.
19749 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
19750 * tree-ssa-loop-niter.c (record_estimate): Likewise.
19751 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
19752 * tree-ssa-operands.h: Don't use variable_size gty attribute.
19753 * tree-ssa.c (init_tree_ssa): Adjust.
19754 * tree-ssanames.c (set_range_info): Likewise.
19755 (get_ptr_info): Likewise.
19756 (duplicate_ssa_name_ptr_info): Likewise.
19757 (duplicate_ssa_name_range_info): Likewise.
19758 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
19759 (unpack_ts_fixed_cst_value_fields): Likewise.
19760 * tree.c (build_fixed): Likewise.
19761 (build_real): Likewise.
19762 (build_string): Likewise.
19763 (decl_priority_info): Likewise.
19764 (decl_debug_expr_insert): Likewise.
19765 (decl_value_expr_insert): Likewise.
19766 (decl_debug_args_insert): Likewise.
19767 (type_hash_add): Likewise.
19768 (build_omp_clause): Likewise.
19769 * ubsan.c (decl_for_type_insert): Likewise.
19770 * varasm.c (get_unnamed_section): Likewise.
19771 (get_noswitch_section): Likewise.
19772 (get_section): Likewise.
19773 (get_block_for_section): Likewise.
19774 (create_block_symbol): Likewise.
19775 (build_constant_desc): Likewise.
19776 (create_constant_pool): Likewise.
19777 (force_const_mem): Likewise.
19778 (record_tm_clone_pair): Likewise.
19779 * varpool.c (varpool_create_empty_node): Likewise.
19780
19781 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19782
19783 * dwarf2out.c (tree_add_const_value_attribute): Call
19784 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
19785 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
19786 instead of ggc_internal_<x>alloc_stat.
19787 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
19788 (ggc_realloc): Likewise.
19789 * ggc-none.c (ggc_internal_alloc): Likewise.
19790 (ggc_internal_cleared_alloc): Likewise.
19791 * ggc-page.c: Likewise.
19792 * ggc.h (ggc_internal_alloc_stat): Likewise.
19793 (ggc_internal_alloc): Remove macro.
19794 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
19795 (ggc_internal_cleared_alloc): Remove macro.
19796 (GGC_RESIZEVEC): Adjust.
19797 (ggc_resizevar): Remove macro.
19798 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
19799 (ggc_internal_cleared_vec_alloc_stat): Likewise.
19800 (ggc_internal_vec_cleared_alloc): Remove macro.
19801 (ggc_alloc_atomic_stat): Drop _stat suffix.
19802 (ggc_alloc_atomic): Remove macro.
19803 (ggc_alloc_cleared_atomic): Remove macro.
19804 (ggc_alloc_string_stat): Drop _stat suffix.
19805 (ggc_alloc_string): Remove macro.
19806 (ggc_alloc_rtx_def_stat): Adjust.
19807 (ggc_alloc_tree_node_stat): Likewise.
19808 (ggc_alloc_cleared_tree_node_stat): Likewise.
19809 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
19810 (ggc_alloc_cleared_simd_clone_stat): Likewise.
19811 * gimple.c (gimple_build_omp_for): Likewise.
19812 (gimple_copy): Likewise.
19813 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
19814 * toplev.c (realloc_for_line_map): Adjust.
19815 * tree-data-ref.h (lambda_vector_new): Likewise.
19816 * tree-phinodes.c (allocate_phi_node): Likewise.
19817 * tree.c (grow_tree_vec_stat): Likewise.
19818 * vec.h (va_gc::reserve): Adjust.
19819
19820 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
19821
19822 * config/microblaze/microblaze.c (break_handler): New Declaration.
19823 (microblaze_break_function_p,microblaze_is_break_handler): New.
19824 (compute_frame_size): Use microblaze_break_function_p.
19825 Add the test of break_handler.
19826 (microblaze_function_prologue) : Add the test of variable
19827 break_handler. Check the fnname by BREAK_HANDLER_NAME.
19828 (microblaze_function_epilogue) : Add the test of break_handler.
19829 (microblaze_globalize_label) : Add the test of break_handler.
19830 Check the name by BREAK_HANDLER_NAME.
19831
19832 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
19833
19834 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
19835 microblaze_is_break_handler test.
19836 (call_internal1,call_value_intern): Use microblaze_break_function_p.
19837 Use SYMBOL_REF_DECL.
19838
19839 * config/microblaze/microblaze-protos.h
19840 (microblaze_break_function_p,microblaze_is_break_handler):
19841 New Declaration.
19842
19843 * doc/extend.texi (MicroBlaze break_handler Functions): Document
19844 new MicroBlaze break_handler functions.
19845
19846 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
19847
19848 * doc/extend.texi (Size of an asm): Move node text according
19849 to its @menu entry position.
19850
19851 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
19852
19853 PR tree-optimization/61140
19854 PR tree-optimization/61150
19855 PR tree-optimization/61197
19856 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
19857
19858 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
19859
19860 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
19861
19862 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
19863
19864 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
19865 __SIZEOF_INT128__ is defined.
19866
19867 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
19868
19869 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
19870 (rs6000_delegitimize_address): Use it.
19871
19872 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
19873
19874 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
19875 inplace argument. Store the new address in the original MEM when true.
19876 * emit-rtl.c (change_address_1): Likewise.
19877 (adjust_address_1, adjust_automodify_address_1, offset_address):
19878 Update accordingly.
19879 * rtl.h (plus_constant): Add an inplace argument.
19880 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
19881 when true. Avoid generating (plus X (const_int 0)).
19882 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
19883 in-place. Pass true to plus_constant.
19884 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
19885
19886 2014-05-16 Dehao Chen <dehao@google.com>
19887
19888 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
19889
19890 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19891
19892 PR target/54089
19893 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
19894 patterns.
19895 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
19896
19897 2014-05-16 Dehao Chen <dehao@google.com>
19898
19899 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
19900 optimize_function_for_size_p.
19901 * regs.h (REG_FREQ_FROM_BB): Likewise.
19902
19903 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19904
19905 PR target/51244
19906 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
19907 negt_reg_operand cases.
19908 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
19909 predicate.
19910 * config/sh/predicates.md (cbranch_treg_value): Simplify.
19911
19912 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19913
19914 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
19915 target variants.
19916
19917 2014-05-16 David Malcolm <dmalcolm@redhat.com>
19918
19919 Revert:
19920 2014-04-29 David Malcolm <dmalcolm@redhat.com>
19921
19922 * tree-cfg.c (dump_function_to_file): Dump the return type of
19923 functions, in a line to itself before the function body, mimicking
19924 the layout of a C function.
19925
19926 2014-05-16 Dehao Chen <dehao@google.com>
19927
19928 * cfghooks.c (make_forwarder_block): Use direct computation to
19929 get fall-through edge's count and frequency.
19930
19931 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
19932
19933 * config/arc/arc.c (arc_init): Fix typo in error message.
19934 * config/i386/i386.c (ix86_expand_builtin): Likewise.
19935 (split_stack_prologue_scratch_regno): Likewise.
19936 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
19937 word from error message.
19938
19939 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
19940
19941 * ira-costs.c: Fix typo in comment.
19942
19943 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
19944
19945 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
19946
19947 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
19948
19949 * varpool.c (dump_varpool_node): Dump write-only flag.
19950 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
19951 write-only flag.
19952 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
19953 write-only variables.
19954 * ipa.c (process_references): New function.
19955 (set_readonly_bit): New function.
19956 (set_writeonly_bit): New function.
19957 (clear_addressable_bit): New function.
19958 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
19959 fix handling of aliases.
19960 * cgraph.h (struct varpool_node): Add writeonly flag.
19961
19962 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
19963
19964 PR rtl-optimization/60969
19965 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
19966 Calculate costs for this case.
19967
19968 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
19969
19970 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
19971 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
19972
19973 2014-05-16 Richard Biener <rguenther@suse.de>
19974
19975 PR tree-optimization/61194
19976 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
19977 bool patterns ending in a COND_EXPR.
19978
19979 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19980
19981 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
19982
19983 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19984
19985 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
19986 where we were unable to cost an RTX.
19987
19988 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19989
19990 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
19991 HIGH, LO_SUM.
19992
19993 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19994 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19995
19996 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
19997
19998 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19999 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20000
20001 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
20002 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
20003
20004 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20005 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20006
20007 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
20008 operators.
20009
20010 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20011 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20012
20013 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
20014 DIV/MOD.
20015
20016 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20017 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20018
20019 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
20020 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
20021
20022 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20023 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20024
20025 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
20026 rotates and shifts.
20027
20028 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20029 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20030
20031 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
20032 ZERO_EXTEND and SIGN_EXTEND better.
20033
20034 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20035 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20036
20037 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
20038 logical operations.
20039
20040 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20041 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20042
20043 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
20044 costs when costing loads and stores to memory.
20045
20046 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20047 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
20048
20049 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
20050 for SET RTX.
20051
20052 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20053
20054 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
20055
20056 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20057 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20058
20059 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
20060 to...
20061 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
20062 well formed.
20063 (aarch64_rtx_mult_cost): New.
20064 (aarch64_rtx_costs): Use it, refactor as appropriate.
20065
20066 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20067 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20068
20069 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
20070 emit instructions, return number of instructions which would
20071 be emitted.
20072 (aarch64_add_constant): Update call to aarch64_build_constant.
20073 (aarch64_output_mi_thunk): Likewise.
20074 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
20075 a CONST_DOUBLE.
20076
20077 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20078
20079 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
20080 (TARGET_RTX_COSTS): Call it.
20081
20082 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20083
20084 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
20085 (cortexa57_vector_cost): Likewise.
20086 (cortexa57_tunings): Use them.
20087
20088 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20089
20090 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
20091 (cpu_addrcost_table): Use it.
20092 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
20093 (aarch64_address_cost): Rewrite using aarch64_classify_address,
20094 move it.
20095
20096 2014-05-16 Richard Biener <rguenther@suse.de>
20097
20098 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
20099 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
20100 (visit_phi): Ignore edges marked as not executable.
20101 (class cond_dom_walker): New.
20102 (cond_dom_walker::before_dom_children): Value-number
20103 control statements and mark successor edges as not
20104 executable if possible.
20105 (run_scc_vn): First walk all control statements in
20106 dominator order, marking edges as not executable.
20107 * tree-inline.c (copy_edges_for_bb): Be not confused
20108 about random edge flags.
20109
20110 2014-05-16 Richard Biener <rguenther@suse.de>
20111
20112 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
20113
20114 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
20115
20116 PR target/61193
20117 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
20118 (__TM_simple_begin): Use it.
20119 (__TM_begin): Likewise.
20120
20121 2014-05-15 Martin Jambor <mjambor@suse.cz>
20122
20123 PR ipa/61085
20124 * ipa-prop.c (update_indirect_edges_after_inlining): Check
20125 type_preserved flag when the indirect edge is polymorphic.
20126
20127 2014-05-15 Martin Jambor <mjambor@suse.cz>
20128
20129 PR tree-optimization/61090
20130 * tree-sra.c (sra_modify_expr): Pass the current gsi to
20131 build_ref_for_model.
20132
20133 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20134
20135 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
20136 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
20137
20138 2014-05-15 Jakub Jelinek <jakub@redhat.com>
20139
20140 PR tree-optimization/61158
20141 * fold-const.c (fold_binary_loc): If X is zero-extended and
20142 shiftc >= prec, make sure zerobits is all ones instead of
20143 invoking undefined behavior.
20144
20145 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20146
20147 * regcprop.h: New file.
20148 * regcprop.c (skip_debug_insn_p): New decl.
20149 (replace_oldest_value_reg): Check skip_debug_insn_p.
20150 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
20151 * shrink-wrap.c: Include regcprop.h.
20152 (prepare_shrink_wrap): Call
20153 copyprop_hardreg_forward_bb_without_debug_insn.
20154
20155 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20156
20157 * shrink-wrap.h: Update comment.
20158 * shrink-wrap.c: Update comment.
20159 (next_block_for_reg): Rename to live_edge_for_reg.
20160 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
20161 (move_insn_for_shrink_wrap): Split live_edge.
20162 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
20163
20164 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
20165
20166 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
20167 Delete.
20168 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
20169 * config/sparc/sparc.md (fptype_ut699): New attribute.
20170 (in_branch_delay): Return false if -mfix-ut699 is specified and
20171 fptype_ut699 is set to single.
20172 (truncdfsf2): Add fptype_ut699 attribute.
20173 (fix_truncdfsi2): Likewise.
20174 (floatsisf2): Change fptype attribute.
20175 (fix_truncsfsi2): Likewise.
20176 (negtf2_notv9): Delete.
20177 (negtf2_v9): Likewise.
20178 (negtf2_hq): New instruction.
20179 (negtf2): New instruction and splitter.
20180 (negdf2_notv9): Rewrite.
20181 (abstf2_notv9): Delete.
20182 (abstf2_hq_v9): Likewise.
20183 (abstf2_v9): Likewise.
20184 (abstf2_hq): New instruction.
20185 (abstf2): New instruction and splitter.
20186 (absdf2_notv9): Rewrite.
20187
20188 2014-05-14 Cary Coutant <ccoutant@google.com>
20189
20190 PR debug/61013
20191 * opts.c (common_handle_option): Don't special-case "-g".
20192 (set_debug_level): Default to at least level 2 with "-g".
20193
20194 2014-05-14 DJ Delorie <dj@redhat.com>
20195
20196 * config/msp430/msp430.c (msp430_builtin): Add
20197 MSP430_BUILTIN_DELAY_CYCLES.
20198 (msp430_init_builtins): Register void __delay_cycles(long long).
20199 (msp430_builtin_decl): Add it.
20200 (cg_magic_constant): New.
20201 (msp430_expand_delay_cycles): New.
20202 (msp430_expand_builtin): Call it.
20203 (msp430_print_operand_raw): Change integer printing from "int" to
20204 HOST_WIDE_INT.
20205 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
20206 (delay_cycles_start): New.
20207 (delay_cycles_end): New.
20208 (delay_cycles_32): New.
20209 (delay_cycles_32x): New.
20210 (delay_cycles_16): New.
20211 (delay_cycles_16x): New.
20212 (delay_cycles_2): New.
20213 (delay_cycles_1): New.
20214 * doc/extend.texi: Document __delay_cycles().
20215
20216 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
20217
20218 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
20219 length attribute computation.
20220
20221 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
20222
20223 PR debug/61188
20224 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
20225
20226 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
20227
20228 PR target/61084
20229 * config/sparc/sparc.md: Fix types of low and high in DI constant
20230 splitter. Use gen_int_mode in some other splitters.
20231
20232 2014-05-14 Martin Jambor <mjambor@suse.cz>
20233
20234 PR ipa/60897
20235 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
20236
20237 2014-05-14 James Norris <jnorris@codesourcery.com>
20238
20239 * omp-low.c (expand_parallel_call): Remove shadow variable.
20240 (expand_omp_taskreg): Likewise.
20241
20242 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
20243
20244 * common/config/i386/i386-common.c
20245 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
20246 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
20247 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
20248 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
20249 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
20250 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
20251 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
20252 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
20253 xsavecintrin.h, xsavesintrin.h.
20254 (x86_64-*-*): Ditto.
20255 * config/i386/clflushoptintrin.h: New.
20256 * config/i386/xsavecintrin.h: Ditto.
20257 * config/i386/xsavesintrin.h: Ditto.
20258 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
20259 (bit_XSAVES): Ditto.
20260 (bit_XSAVES): Ditto.
20261 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
20262 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
20263 -mno-clflushopt.
20264 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20265 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
20266 OPTION_MASK_ISA_XSAVES.
20267 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
20268 -mxsavec, -mxsaves.
20269 (PTA_CLFLUSHOPT) Define.
20270 (PTA_XSAVEC): Ditto.
20271 (PTA_XSAVES): Ditto.
20272 (ix86_option_override_internal): Handle new options.
20273 (ix86_valid_target_attribute_inner_p): Ditto.
20274 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
20275 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
20276 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
20277 (bdesc_special_args): Add __builtin_ia32_xsaves,
20278 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
20279 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
20280 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
20281 (ix86_expand_builtin): Handle new builtins.
20282 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
20283 (TARGET_CLFLUSHOPT_P): Ditto.
20284 (TARGET_XSAVEC): Ditto.
20285 (TARGET_XSAVEC_P): Ditto.
20286 (TARGET_XSAVES): Ditto.
20287 (TARGET_XSAVES_P): Ditto.
20288 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
20289 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
20290 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
20291 (ANY_XRSTOR): New.
20292 (ANY_XRSTOR64): Ditto.
20293 (xrstor): Ditto.
20294 (xrstor): Change into <xrstor>.
20295 (xrstor_rex64): Change into <xrstor>_rex64.
20296 (xrstor64): Change into <xrstor>64
20297 (clflushopt): New.
20298 * config/i386/i386.opt (mclflushopt): New.
20299 (mxsavec): Ditto.
20300 (mxsaves): Ditto.
20301 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
20302 xsavecintrin.h.
20303 * doc/invoke.texi: Document new options.
20304
20305 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
20306
20307 PR rtl-optimization/60866
20308 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
20309 Default it to -1. Pass it down to init_simplejump_data.
20310 (init_simplejump_data): New parameter old_seqno. Pass it down
20311 to get_seqno_for_a_jump.
20312 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
20313 initializing new jump seqno as a last resort. Add comment.
20314 (sel_redirect_edge_and_branch): Save old seqno of the conditional
20315 jump and pass it down to sel_init_new_insn.
20316 (sel_redirect_edge_and_branch_force): Likewise.
20317
20318 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
20319
20320 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
20321 shifted values to avoid build warning.
20322
20323 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
20324
20325 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
20326 * cfgrtl.c (rtl_merge_blocks): Fix comment.
20327 (cfg_layout_merge_blocks): Likewise.
20328 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
20329
20330 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
20331
20332 PR rtl-optimization/60901
20333 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
20334 bb predecessor belongs to the same scheduling region. Adjust comment.
20335
20336 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
20337
20338 * doc/sourcebuild.texi: (dfp_hw): Document.
20339 (p8vector_hw): Likewise.
20340 (powerpc_eabi_ok): Likewise.
20341 (powerpc_elfv2): Likewise.
20342 (powerpc_htm_ok): Likewise.
20343 (ppc_recip_hw): Likewise.
20344 (vsx_hw): Likewise.
20345
20346 2014-05-13 Cary Coutant <ccoutant@google.com>
20347
20348 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
20349
20350 2014-05-13 David Malcolm <dmalcolm@redhat.com>
20351
20352 * gengtype-parse.c (require3): Eliminate in favor of...
20353 (require4): New.
20354 (require_template_declaration): Update to support optional single *
20355 on a type.
20356
20357 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
20358 (create_user_defined_type): Handle a single level of explicit
20359 pointerness within template arguments.
20360 (struct write_types_data): Add field "kind".
20361 (filter_type_name): Handle "*" character.
20362 (write_user_func_for_structure_ptr): Require a write_types_data
20363 rather than just a prefix string, so that we can look up the kind
20364 of the wtd and use it as an index into wrote_user_func_for_ptr,
20365 ensuring that such functions are written at most once. Support
20366 subclasses by invoking the marking function of the ultimate base class.
20367 (write_user_func_for_structure_body): Require a write_types_data
20368 rather than just a prefix string, so that we can pass this to
20369 write_user_func_for_structure_ptr.
20370 (write_func_for_structure): Likewise.
20371 (ggc_wtd): Add initializer of new "kind" field.
20372 (pch_wtd): Likewise.
20373
20374 * gengtype.h (enum write_types_kinds): New.
20375 (struct type): Add field wrote_user_func_for_ptr to the "s"
20376 union member.
20377
20378 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
20379
20380 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
20381 instead of const_binop.
20382 (fold_binary_loc): Likewise.
20383
20384 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
20385
20386 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
20387 calculation to match get_ref_base_and_extent.
20388
20389 2014-05-13 Catherine Moore <clm@codesourcery.com>
20390 Sandra Loosemore <sandra@codesourcery.com>
20391
20392 * configure.ac: Fix assembly for explicit JALR relocation check.
20393 * configure: Regenerate.
20394
20395 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20396
20397 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
20398 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
20399 Remove associated type declarations and initialisations.
20400 (arm_expand_neon_builtin): Likewise.
20401 (neon_emit_pair_result_insn): Delete.
20402 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
20403 * config/arm/neon.md (neon_vtrn<mode>): Delete.
20404 (neon_vzip<mode>): Likewise.
20405 (neon_vuzp<mode>): Likewise.
20406
20407 2014-05-13 Richard Biener <rguenther@suse.de>
20408
20409 PR ipa/60973
20410 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
20411 it needs revisiting whether the call still may be tail-called.
20412
20413 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20414
20415 * rtl.def (SYMBOL_REF): Remove middle "0" field.
20416 * rtl.h (block_symbol): Reduce number of fields to 2.
20417 (rtx_def): Add u2.symbol_ref_flags.
20418 (SYMBOL_REF_FLAGS): Use it.
20419 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
20420 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
20421 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
20422 Lower index of SYMBOL_REF_DATA.
20423 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
20424 Print SYMBOL_REF_FLAGS at the same time.
20425 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
20426
20427 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20428
20429 * rtl.def (VAR_LOCATION): Remove "i" field.
20430 * rtl.h (rtx_def): Add u2.var_location_status.
20431 (PAT_VAR_LOCATION_STATUS): Use it.
20432 (gen_rtx_VAR_LOCATION): Declare.
20433 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
20434 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
20435 * var-tracking.c (emit_note_insn_var_location): Remove casts.
20436
20437 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20438
20439 * rtl.def (scratch): Fix outdated comment and remove "0" field.
20440 * gengtype.c (adjust_field_rtx_def): Update accordingly.
20441
20442 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20443
20444 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
20445 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
20446 * rtl.h (rtx_def): Add insn_uid to u2 field.
20447 (RTX_FLAG_CHECK8): Delete in favor of...
20448 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
20449 (INSN_DELETED_P): Update accordingly.
20450 (INSN_UID): Use u2.insn_uid.
20451 (INSN_CHAIN_CODE_P): Define.
20452 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
20453 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
20454 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
20455 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
20456 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
20457 indices accordingly.
20458 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
20459 Update indices for insn-chain rtxes.
20460 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
20461 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
20462 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
20463 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
20464 * combine.c (try_combine): Likewise.
20465 * ira.c (setup_prohibited_mode_move_regs): Likewise.
20466
20467 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20468
20469 * rtl.def (REG): Remove middle field.
20470 * rtl.h (rtx_def): Add orignal_regno to u2.
20471 (ORIGINAL_REGNO): Use it instead of field 1.
20472 (REG_ATTRS): Lower field index accordingly.
20473 * gengtype.c (adjust_field_rtx_def): Remove handling of
20474 ORIGINAL_REGNO. Move REG_ATTRS index down.
20475 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
20476 code that prints the REGNO.
20477
20478 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20479
20480 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
20481 GENERATOR_FILE.
20482
20483 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20484
20485 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
20486
20487 2014-05-13 Bin Cheng <bin.cheng@arm.com>
20488
20489 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
20490 (alloc_iv): Lower base expressions containing ADDR_EXPR.
20491
20492 2014-05-13 Ian Bolton <ian.bolton@arm.com>
20493
20494 * config/aarch64/aarch64-protos.h
20495 (aarch64_hard_regno_caller_save_mode): New prototype.
20496 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
20497 New function.
20498 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
20499
20500 2014-05-13 Christian Bruel <christian.bruel@st.com>
20501
20502 * target.def (mode_switching): New hook vector.
20503 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
20504 (mode_exit, modepriority_to_mode): Likewise.
20505 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
20506 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20507 * target.h: Include tm.h and hard-reg-set.h.
20508 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
20509 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
20510 * doc/tm.texi Regenerate.
20511 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
20512 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20513 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
20514 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
20515 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
20516 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20517 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
20518 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
20519 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
20520 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
20521 (ix86_emit_mode_set): Hookify.
20522 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
20523 Delete.
20524 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20525 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
20526 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
20527 (epiphany_mode_priority_to_mode): Remove declaration.
20528 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
20529 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
20530 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
20531 Likewise.
20532 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
20533 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
20534 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
20535
20536 2014-05-13 Jakub Jelinek <jakub@redhat.com>
20537
20538 PR target/61060
20539 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
20540 is const0_rtx, return immediately. Don't test count == 0 when
20541 it is always true.
20542
20543 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20544
20545 * Makefile.in: add shrink-wrap.o.
20546 * config/i386/i386.c: include "shrink-wrap.h"
20547 * function.c: Likewise.
20548 (requires_stack_frame_p, next_block_for_reg,
20549 move_insn_for_shrink_wrap, prepare_shrink_wrap,
20550 dup_block_and_redirect): Move to shrink-wrap.c
20551 (thread_prologue_and_epilogue_insns): Extract three code segments
20552 as functions in shrink-wrap.c
20553 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
20554 shrink-wrap.h
20555 * shrink-wrap.c: New file.
20556 * shrink-wrap.h: New file.
20557
20558 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
20559
20560 * doc/extend.texi: Reflect current numbers of pragmas. Remove
20561 reference to Solaris.
20562
20563 2014-05-12 Mike Stump <mikestump@comcast.net>
20564
20565 PR other/31778
20566 * genattrtab.c (filename): Add.
20567 (convert_set_attr_alternative): Improve error message.
20568 (check_defs): Restore read_md_filename for error messages.
20569 (gen_insn): Save filename.
20570
20571 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
20572
20573 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
20574 -fno-local-ivars and -fivar-visibility.
20575 * c-family/c.opt: Make -Wshadow also implicitly enable
20576 -Wshadow-ivar.
20577
20578 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
20579
20580 * doc/tm.texi: Remove reference to deleted macro.
20581 * doc/tm.texi.in: Likewise.
20582
20583 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
20584
20585 PR target/60991
20586 * config/avr/avr.c (avr_out_store_psi): Use correct constant
20587 to restore Y.
20588
20589 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
20590
20591 PR libgcc/61152
20592 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
20593 * config/arm/aout.h (License): Same.
20594 * config/arm/bpabi.h (License): Same.
20595 * config/arm/elf.h (License): Same.
20596 * config/arm/linux-elf.h (License): Same.
20597 * config/arm/linux-gas.h (License): Same.
20598 * config/arm/netbsd-elf.h (License): Same.
20599 * config/arm/uclinux-eabi.h (License): Same.
20600 * config/arm/uclinux-elf.h (License): Same.
20601 * config/arm/vxworks.h (License): Same.
20602
20603 2014-05-11 Jakub Jelinek <jakub@redhat.com>
20604
20605 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
20606 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
20607 number of operands to 3.
20608 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
20609 * tree-nested.c (convert_nonlocal_omp_clauses,
20610 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
20611 * gimplify.c (gimplify_scan_omp_clauses): Handle
20612 OMP_CLAUSE_LINEAR_STMT.
20613 * omp-low.c (lower_rec_input_clauses): Fix typo.
20614 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
20615 cast between Fortran boolean_type_node and C _Bool if
20616 needed.
20617
20618 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
20619
20620 PR tree-optimization/61136
20621 * wide-int.h (multiple_of_p): Define a version that doesn't return
20622 the quotient.
20623 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
20624 integer_zerop/const_binop pair.
20625 (multiple_of_p): Likewise, converting both operands to widest_int
20626 precision.
20627
20628 2014-05-09 Teresa Johnson <tejohnson@google.com>
20629
20630 * cgraphunit.c (analyze_functions): Use correct dump file.
20631
20632 2014-05-09 Florian Weimer <fweimer@redhat.com>
20633
20634 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
20635 expand_used_vars.
20636 (stack_protect_return_slot_p): New function.
20637 (expand_used_vars): Call stack_protect_decl_p and
20638 stack_protect_return_slot_p for -fstack-protector-strong.
20639
20640 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
20641 Andrew Haley <aph@redhat.com>
20642 Richard Sandiford <rdsandiford@googlemail.com>
20643
20644 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
20645 pages.
20646
20647 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
20648
20649 PR middle-end/61111
20650 * fold-const.c (fold_binary_loc): Changed width of mask.
20651
20652 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
20653
20654 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
20655 unsigned int initializers for regno_in, regno_out.
20656
20657 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
20658
20659 PR target/61055
20660 * config/avr/avr.md (cc): Add new attribute set_vzn.
20661 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
20662 Set cc insn attribute to set_vzn instead of set_zn for alternatives
20663 with INC, DEC or NEG.
20664 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
20665 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
20666 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
20667
20668 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20669
20670 Revert:
20671 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20672
20673 * wide-int.cc (UTItype): Define.
20674 (UDWtype): Define for appropriate W_TYPE_SIZE.
20675
20676 2014-05-09 Richard Biener <rguenther@suse.de>
20677
20678 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
20679 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
20680 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
20681 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
20682 ssa_propagate): Adjust.
20683
20684 2014-05-08 Jeff Law <law@redhat.com>
20685
20686 PR tree-optimization/61009
20687 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
20688 tri-state rather than a boolean. When a block is too big to
20689 thread through, inform caller via negative return value.
20690 (thread_across_edge): If a block was too big for normal threading,
20691 then it's too big for a joiner too, so remove temporary equivalences
20692 and return immediately.
20693
20694 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
20695 Matthias Klose <doko@ubuntu.com>
20696
20697 PR driver/61106
20698 * optc-gen.awk: Fix option handling for -Wunused-parameter.
20699
20700 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
20701
20702 PR target/59952
20703 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
20704
20705 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
20706
20707 PR target/61092
20708 * config/alpha/alpha.c: Include gimple-iterator.h.
20709 (alpha_gimple_fold_builtin): New function. Move
20710 ALPHA_BUILTIN_UMULH folding from ...
20711 (alpha_fold_builtin): ... here.
20712 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
20713
20714 2014-05-08 Wei Mi <wmi@google.com>
20715
20716 PR target/58066
20717 * config/i386/i386.c (ix86_compute_frame_layout): Update
20718 preferred_stack_boundary for call, expanded from tls descriptor.
20719 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
20720 to depend on SP register.
20721 (*tls_local_dynamic_base_32_gnu): Ditto.
20722 (*tls_local_dynamic_32_once): Ditto.
20723 (tls_global_dynamic_64_<mode>): Set
20724 ix86_tls_descriptor_calls_expanded_in_cfun.
20725 (tls_local_dynamic_base_64_<mode>): Ditto.
20726 (tls_global_dynamic_32): Set
20727 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
20728 to depend on SP register.
20729 (tls_local_dynamic_base_32): Ditto.
20730
20731 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20732
20733 * config/arm/arm_neon.h: Update comment.
20734 * config/arm/neon-docgen.ml: Delete.
20735 * config/arm/neon-gen.ml: Delete.
20736 * doc/arm-neon-intrinsics.texi: Update comment.
20737
20738 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20739
20740 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
20741 and v4sf versions.
20742 (vand, vorr, veor, vorn, vbic): Remove.
20743 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
20744 iterator.
20745 (neon_vsub_unspec): Likewise.
20746 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
20747
20748 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20749
20750 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
20751 (vadd_s16): Likewise.
20752 (vadd_s32): Likewise.
20753 (vadd_f32): Likewise.
20754 (vadd_u8): Likewise.
20755 (vadd_u16): Likewise.
20756 (vadd_u32): Likewise.
20757 (vadd_s64): Likewise.
20758 (vadd_u64): Likewise.
20759 (vaddq_s8): Likewise.
20760 (vaddq_s16): Likewise.
20761 (vaddq_s32): Likewise.
20762 (vaddq_s64): Likewise.
20763 (vaddq_f32): Likewise.
20764 (vaddq_u8): Likewise.
20765 (vaddq_u16): Likewise.
20766 (vaddq_u32): Likewise.
20767 (vaddq_u64): Likewise.
20768 (vmul_s8): Likewise.
20769 (vmul_s16): Likewise.
20770 (vmul_s32): Likewise.
20771 (vmul_f32): Likewise.
20772 (vmul_u8): Likewise.
20773 (vmul_u16): Likewise.
20774 (vmul_u32): Likewise.
20775 (vmul_p8): Likewise.
20776 (vmulq_s8): Likewise.
20777 (vmulq_s16): Likewise.
20778 (vmulq_s32): Likewise.
20779 (vmulq_f32): Likewise.
20780 (vmulq_u8): Likewise.
20781 (vmulq_u16): Likewise.
20782 (vmulq_u32): Likewise.
20783 (vsub_s8): Likewise.
20784 (vsub_s16): Likewise.
20785 (vsub_s32): Likewise.
20786 (vsub_f32): Likewise.
20787 (vsub_u8): Likewise.
20788 (vsub_u16): Likewise.
20789 (vsub_u32): Likewise.
20790 (vsub_s64): Likewise.
20791 (vsub_u64): Likewise.
20792 (vsubq_s8): Likewise.
20793 (vsubq_s16): Likewise.
20794 (vsubq_s32): Likewise.
20795 (vsubq_s64): Likewise.
20796 (vsubq_f32): Likewise.
20797 (vsubq_u8): Likewise.
20798 (vsubq_u16): Likewise.
20799 (vsubq_u32): Likewise.
20800 (vsubq_u64): Likewise.
20801 (vand_s8): Likewise.
20802 (vand_s16): Likewise.
20803 (vand_s32): Likewise.
20804 (vand_u8): Likewise.
20805 (vand_u16): Likewise.
20806 (vand_u32): Likewise.
20807 (vand_s64): Likewise.
20808 (vand_u64): Likewise.
20809 (vandq_s8): Likewise.
20810 (vandq_s16): Likewise.
20811 (vandq_s32): Likewise.
20812 (vandq_s64): Likewise.
20813 (vandq_u8): Likewise.
20814 (vandq_u16): Likewise.
20815 (vandq_u32): Likewise.
20816 (vandq_u64): Likewise.
20817 (vorr_s8): Likewise.
20818 (vorr_s16): Likewise.
20819 (vorr_s32): Likewise.
20820 (vorr_u8): Likewise.
20821 (vorr_u16): Likewise.
20822 (vorr_u32): Likewise.
20823 (vorr_s64): Likewise.
20824 (vorr_u64): Likewise.
20825 (vorrq_s8): Likewise.
20826 (vorrq_s16): Likewise.
20827 (vorrq_s32): Likewise.
20828 (vorrq_s64): Likewise.
20829 (vorrq_u8): Likewise.
20830 (vorrq_u16): Likewise.
20831 (vorrq_u32): Likewise.
20832 (vorrq_u64): Likewise.
20833 (veor_s8): Likewise.
20834 (veor_s16): Likewise.
20835 (veor_s32): Likewise.
20836 (veor_u8): Likewise.
20837 (veor_u16): Likewise.
20838 (veor_u32): Likewise.
20839 (veor_s64): Likewise.
20840 (veor_u64): Likewise.
20841 (veorq_s8): Likewise.
20842 (veorq_s16): Likewise.
20843 (veorq_s32): Likewise.
20844 (veorq_s64): Likewise.
20845 (veorq_u8): Likewise.
20846 (veorq_u16): Likewise.
20847 (veorq_u32): Likewise.
20848 (veorq_u64): Likewise.
20849 (vbic_s8): Likewise.
20850 (vbic_s16): Likewise.
20851 (vbic_s32): Likewise.
20852 (vbic_u8): Likewise.
20853 (vbic_u16): Likewise.
20854 (vbic_u32): Likewise.
20855 (vbic_s64): Likewise.
20856 (vbic_u64): Likewise.
20857 (vbicq_s8): Likewise.
20858 (vbicq_s16): Likewise.
20859 (vbicq_s32): Likewise.
20860 (vbicq_s64): Likewise.
20861 (vbicq_u8): Likewise.
20862 (vbicq_u16): Likewise.
20863 (vbicq_u32): Likewise.
20864 (vbicq_u64): Likewise.
20865 (vorn_s8): Likewise.
20866 (vorn_s16): Likewise.
20867 (vorn_s32): Likewise.
20868 (vorn_u8): Likewise.
20869 (vorn_u16): Likewise.
20870 (vorn_u32): Likewise.
20871 (vorn_s64): Likewise.
20872 (vorn_u64): Likewise.
20873 (vornq_s8): Likewise.
20874 (vornq_s16): Likewise.
20875 (vornq_s32): Likewise.
20876 (vornq_s64): Likewise.
20877 (vornq_u8): Likewise.
20878 (vornq_u16): Likewise.
20879 (vornq_u32): Likewise.
20880 (vornq_u64): Likewise.
20881
20882 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20883
20884 * wide-int.cc (UTItype): Define.
20885 (UDWtype): Define for appropriate W_TYPE_SIZE.
20886
20887 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
20888
20889 PR tree-optimization/59100
20890 * tree-ssa-phiopt.c: Include tree-inline.h.
20891 (neutral_element_p, absorbing_element_p): New functions.
20892 (value_replacement): Handle conditional binary operations with a
20893 neutral or absorbing element.
20894
20895 2014-05-08 Richard Biener <rguenther@suse.de>
20896
20897 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
20898 folding the expression.
20899 (valueize_expr): Remove.
20900 (visit_reference_op_load): Do not valueize the result of
20901 vn_get_expr_for.
20902 (simplify_binary_expression): Likewise.
20903 (simplify_unary_expression): Likewise.
20904
20905 2014-05-08 Richard Biener <rguenther@suse.de>
20906
20907 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
20908 looking at TYPE_ARG_TYPES.
20909
20910 2014-05-08 Richard Biener <rguenther@suse.de>
20911
20912 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
20913 pointer propagation special-case.
20914
20915 2014-05-08 Bin Cheng <bin.cheng@arm.com>
20916
20917 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
20918 core part of address expressions.
20919
20920 2014-05-08 Alan Modra <amodra@gmail.com>
20921
20922 PR target/60737
20923 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
20924 loads and stores when -mno-strict-align at any alignment.
20925 (expand_block_clear): Similarly. Also correct calculation of
20926 instruction count.
20927
20928 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
20929
20930 PR middle-end/39246
20931 * tree-complex.c (expand_complex_move): Keep line info when expanding
20932 complex move.
20933 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
20934 of complex expression. Use new argument to display correct location
20935 for values coming from phi statement.
20936 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
20937 (warn_uninitialized_phi): Pass location of phi argument to
20938 warn_uninit.
20939 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
20940 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
20941
20942 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
20943
20944 * config/rs6000/predicates.md (indexed_address_mem): New.
20945 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
20946 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
20947 fpstore_ux, fpstore_u.
20948 (sign_extend, indexed, update): New.
20949 (cell_micro): Adjust.
20950 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
20951 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
20952 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
20953 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
20954 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
20955 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
20956 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
20957 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
20958 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
20959 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
20960 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
20961 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
20962 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
20963 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
20964 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
20965
20966 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
20967 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
20968 *vsx_extract_<mode>_store): Adjust.
20969 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
20970 is_cracked_insn, insn_must_be_first_in_group,
20971 insn_must_be_last_in_group): Adjust.
20972
20973 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
20974 Adjust.
20975 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
20976 ppc440-fpstore): Adjust.
20977 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
20978 ppc476-fpstore): Adjust.
20979 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
20980 ppc601-fpstore): Adjust.
20981 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
20982 Adjust.
20983 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
20984 Adjust.
20985 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
20986 ppc7450-fpstore): Adjust.
20987 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
20988 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
20989 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
20990 Adjust.
20991 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
20992 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
20993 cell-fpstore, cell-fpstore-update): Adjust.
20994 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
20995 ppce300c3_store, ppce300c3_fpstore): Adjust.
20996 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
20997 e500mc_fpstore): Adjust.
20998 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
20999 e500mc64_store, e500mc64_fpstore): Adjust.
21000 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
21001 e5500_fpstore): Adjust.
21002 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
21003 e6500_fpstore): Adjust.
21004 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
21005 Adjust.
21006 * config/rs6000/power4.md (power4-load, power4-load-ext,
21007 power4-load-ext-update, power4-load-ext-update-indexed,
21008 power4-load-update-indexed, power4-load-update, power4-fpload,
21009 power4-fpload-update, power4-store, power4-store-update,
21010 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
21011 Adjust.
21012 * config/rs6000/power5.md (power5-load, power5-load-ext,
21013 power5-load-ext-update, power5-load-ext-update-indexed,
21014 power5-load-update-indexed, power5-load-update, power5-fpload,
21015 power5-fpload-update, power5-store, power5-store-update,
21016 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
21017 Adjust.
21018 * config/rs6000/power6.md (power6-load, power6-load-ext,
21019 power6-load-update, power6-load-update-indexed,
21020 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
21021 power6-fpload-update, power6-store, power6-store-update,
21022 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
21023 Adjust.
21024 * config/rs6000/power7.md (power7-load, power7-load-ext,
21025 power7-load-update, power7-load-update-indexed,
21026 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
21027 power7-fpload-update, power7-store, power7-store-update,
21028 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
21029 Adjust.
21030 * config/rs6000/power8.md (power8-load, power8-load-update,
21031 power8-load-ext, power8-load-ext-update, power8-fpload,
21032 power8-fpload-update, power8-store, power8-store-update-indexed,
21033 power8-fpstore, power8-fpstore-update): Adjust.
21034 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
21035 Adjust.
21036 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
21037 titan_lsu_store, titan_lsu_fpstore): Adjust.
21038 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
21039
21040 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
21041
21042 PR target/60884
21043 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
21044 unrolled byte insns. Emit address increments after move insns.
21045
21046 2014-05-07 David Malcolm <dmalcolm@redhat.com>
21047
21048 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
21049 const_gimple, rather than a gimple.
21050 (gimple_call_builtin_p): Likewise, for the three variants.
21051
21052 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
21053 (gimple_call_builtin_p): Likewise, for the three variants.
21054
21055 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21056
21057 PR tree-optimization/61095
21058 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
21059
21060 2014-05-07 Richard Biener <rguenther@suse.de>
21061
21062 PR tree-optimization/61034
21063 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
21064 (maybe_skip_until): Use translate to take into account
21065 lattices when trying to do disambiguations.
21066 (get_continuation_for_phi_1): Likewise.
21067 (get_continuation_for_phi): Adjust for added translate arguments.
21068 (walk_non_aliased_vuses): Likewise.
21069 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
21070 (walk_non_aliased_vuses): Likewise.
21071 (call_may_clobber_ref_p_1): Declare.
21072 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
21073 calls. Stop early if we are only supposed to disambiguate.
21074 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
21075
21076 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
21077
21078 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
21079 Emit an error when the function has arguments.
21080
21081 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
21082
21083 * cfgloop.h (unswitch_loops): Remove.
21084 * doc/passes.texi: Remove references to loop-unswitch.c
21085 * timevar.def (TV_LOOP_UNSWITCH): Remove.
21086
21087 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
21088
21089 * tree-vect-data-refs.c (vect_grouped_load_supported): New
21090 check for loads group of length 3.
21091 (vect_permute_load_chain): New permutations for loads group of
21092 length 3.
21093 * tree-vect-stmts.c (vect_model_load_cost): Change cost
21094 of vec_perm_shuffle for the new permutations.
21095
21096 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
21097
21098 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
21099 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
21100 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
21101 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
21102 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
21103 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
21104 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
21105 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
21106
21107 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
21108
21109 * loop-unswitch.c: Delete.
21110
21111 2014-05-07 Richard Biener <rguenther@suse.de>
21112
21113 * config.gcc: Always set need_64bit_hwint to yes.
21114
21115 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
21116
21117 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
21118 of using optimize_size.
21119
21120 2014-05-06 Mike Stump <mikestump@comcast.net>
21121
21122 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
21123
21124 2014-05-06 Joseph Myers <joseph@codesourcery.com>
21125
21126 * config/i386/sse.md (*mov<mode>_internal)
21127 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
21128 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
21129 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
21130 (*<code><mode>3, *andnot<mode>3<mask_name>)
21131 (<mask_codefor><code><mode>3<mask_name>): Only consider
21132 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
21133
21134 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
21135
21136 Revert:
21137 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
21138
21139 * lra-constraints.c (valid_address_p): Move earlier in file.
21140 Add a constraint argument to the address_info version.
21141 (satisfies_memory_constraint_p): New function.
21142 (satisfies_address_constraint_p): Likewise.
21143 (process_alt_operands, curr_insn_transform): Use them.
21144 (process_address): Pass the constraint to valid_address_p when
21145 checking address operands.
21146
21147 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
21148
21149 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
21150 to their respective blocks. Fix inadvertent use of "node".
21151
21152 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
21153
21154 * emit-rtl.c (init_derived_machine_modes): New functionm, split
21155 out from...
21156 (init_emit_once): ...here.
21157 * rtl.h (init_derived_machine_modes): Declare.
21158 * toplev.c (do_compile): Call it even if no_backend.
21159
21160 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
21161 Mike Stump <mikestump@comcast.net>
21162 Richard Sandiford <rdsandiford@googlemail.com>
21163 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21164
21165 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
21166 (rtx_equal_for_memref_p): Update comment.
21167 (adjust_offset_for_component_ref): Use wide-int interfaces.
21168 * builtins.c (get_object_alignment_2): Likewise.
21169 (c_readstr): Likewise.
21170 (target_char_cast): Add comment.
21171 (determine_block_size): Use wide-int interfaces.
21172 (expand_builtin_signbit): Likewise.
21173 (fold_builtin_int_roundingfn): Likewise.
21174 (fold_builtin_bitop): Likewise.
21175 (fold_builtin_bswap): Likewise.
21176 (fold_builtin_logarithm): Use signop.
21177 (fold_builtin_pow): Likewise.
21178 (fold_builtin_memory_op): Use wide-int interfaces.
21179 (fold_builtin_object_size): Likewise.
21180 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
21181 nb_iterations_estimate.
21182 (record_niter_bound): Use wide-int interfaces.
21183 (get_estimated_loop_iterations_int): Likewise.
21184 (get_estimated_loop_iterations): Likewise.
21185 (get_max_loop_iterations): Likewise.
21186 * cfgloop.h: Include wide-int.h.
21187 (struct nb_iter_bound): Change bound to widest_int.
21188 (struct loop): Change nb_iterations_upper_bound and
21189 nb_iterations_estimate to widest_int.
21190 (record_niter_bound): Switch to use widest_int.
21191 (get_estimated_loop_iterations): Likewise.
21192 (get_max_loop_iterations): Likewise.
21193 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
21194 update for wide-int.
21195 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
21196 * combine.c (try_combine): Likewise.
21197 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
21198 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
21199 interfaces.
21200 (aarch64_float_const_representable_p): Likewise.
21201 * config/arc/arc.c: Include wide-int.h.
21202 (arc_can_use_doloop_p): Use wide-int interfaces.
21203 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
21204 (vfp3_const_double_index): Likewise.
21205 * config/avr/avr.c (avr_out_round): Likewise.
21206 (avr_fold_builtin): Likewise.
21207 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
21208 (bfin_can_use_doloop_p): Likewise.
21209 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
21210 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
21211 * config/i386/i386.c: Include wide-int.h.
21212 (ix86_data_alignment): Use wide-int interfaces.
21213 (ix86_local_alignment): Likewise.
21214 (ix86_emit_swsqrtsf): Update real_from_integer.
21215 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
21216 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
21217 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
21218 (zero_constant): Likewise.
21219 (input_operand): Likewise.
21220 (splat_input_operand): Likewise.
21221 (non_logical_cint_operand): Change const_double to const_wide_int.
21222 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
21223 (easy_altivec_constant): Remove comment.
21224 (paired_expand_vector_init): Use CONSTANT_P.
21225 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
21226 (rs6000_emit_move): Update checks.
21227 (rs6000_aggregate_candidate): Use wide-int interfaces.
21228 (rs6000_expand_ternop_builtin): Likewise.
21229 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
21230 (rs6000_assemble_integer): Likewise.
21231 (rs6000_hash_constant): Likewise.
21232 (output_toc): Likewise.
21233 (rs6000_rtx_costs): Likewise.
21234 (rs6000_emit_swrsqrt); Update call to real_from_integer.
21235 * config/rs6000/rs6000-c.c: Include wide-int.h.
21236 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
21237 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
21238 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
21239 Handle CONST_WIDE_INT.
21240 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
21241 Use tree_fits_uhwi_p.
21242 * config/sparc/sparc.c: Include wide-int.h.
21243 (sparc_fold_builtin): Use wide-int interfaces.
21244 * config/vax/vax.c: Include wide-int.h.
21245 (vax_float_literal): Use real_from_integer.
21246 * coretypes.h (struct hwivec_def): New.
21247 (hwivec): New.
21248 (const_hwivec): New.
21249 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
21250 (equiv_constant): Handle CONST_WIDE_INT.
21251 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
21252 (cselib_hash_rtx): Handle CONST_WIDE_INT.
21253 * dbxout.c (stabstr_U): Use wide-int interfaces.
21254 (dbxout_type): Update to use cst_fits_shwi_p.
21255 * defaults.h (LOG2_BITS_PER_UNIT): Define.
21256 (TARGET_SUPPORTS_WIDE_INT): Add default.
21257 * dfp.c: Include wide-int.h.
21258 (decimal_real_to_integer2): Use wide-int interfaces and rename to
21259 decimal_real_to_integer.
21260 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
21261 decimal_real_to_integer.
21262 * doc/generic.texi (Constant expressions): Update for wide_int.
21263 * doc/rtl.texi (const_double): Likewise.
21264 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
21265 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
21266 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
21267 (REAL_VALUE_FROM_INT): Remove.
21268 (TARGET_SUPPORTS_WIDE_INT): New.
21269 * doc/tm.texi: Regenerate.
21270 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
21271 * double-int.h: Include wide-int.h.
21272 (struct wi::int_traits): New.
21273 * dwarf2out.c (get_full_len): New.
21274 (dw_val_equal_p): Add case dw_val_class_wide_int.
21275 (size_of_loc_descr): Likewise.
21276 (output_loc_operands): Likewise.
21277 (insert_double): Remove.
21278 (insert_wide_int): New.
21279 (add_AT_wide): New.
21280 (print_die): Add case dw_val_class_wide_int.
21281 (attr_checksum): Likewise.
21282 (attr_checksum_ordered): Likewise.
21283 (same_dw_val_p): Likewise.
21284 (size_of_die): Likewise.
21285 (value_format): Likewise.
21286 (output_die): Likewise.
21287 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
21288 Use wide-int.
21289 (clz_loc_descriptor): Use wide-int interfaces.
21290 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
21291 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
21292 (round_up_to_align): Use wide-int interfaces.
21293 (field_byte_offset): Likewise.
21294 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
21295 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
21296 CONST_DOUBLE handling. Use wide-int interfaces.
21297 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
21298 (gen_enumeration_type_die): Use add_AT_wide.
21299 (hash_loc_operands): Add case dw_val_class_wide_int.
21300 (compare_loc_operands): Likewise.
21301 * dwarf2out.h: Include wide-int.h.
21302 (wide_int_ptr): New.
21303 (enum dw_val_class): Add dw_val_class_wide_int.
21304 (struct dw_val_struct): Add val_wide.
21305 * emit-rtl.c (const_wide_int_htab): New.
21306 (const_wide_int_htab_hash): New.
21307 (const_wide_int_htab_eq): New.
21308 (lookup_const_wide_int): New.
21309 (const_double_htab_hash): Use wide-int interfaces.
21310 (const_double_htab_eq): Likewise.
21311 (rtx_to_double_int): Conditionally compile for wide-int.
21312 (immed_double_int_const): Rename to immed_wide_int_const and
21313 update for wide-int.
21314 (immed_double_const): Conditionally compile for wide-int.
21315 (init_emit_once): Use wide-int interfaces.
21316 * explow.c (plus_constant): Likewise.
21317 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
21318 (lshift_value): Use wide-int interfaces.
21319 (expand_mult): Likewise.
21320 (choose_multiplier): Likewise.
21321 (expand_smod_pow2): Likewise.
21322 (make_tree): Likewise.
21323 * expr.c (convert_modes): Consolidate handling of constants.
21324 Use wide-int interfaces.
21325 (emit_group_load_1): Add note.
21326 (store_expr): Update comment.
21327 (get_inner_reference): Use wide-int interfaces.
21328 (expand_constructor): Update comment.
21329 (expand_expr_real_2): Use wide-int interfaces.
21330 (expand_expr_real_1): Likewise.
21331 (reduce_to_bit_field_precision): Likewise.
21332 (const_vector_from_tree): Likewise.
21333 * final.c: Include wide-int-print.h.
21334 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
21335 * fixed-value.c: Include wide-int.h.
21336 (fixed_from_string): Use wide-int interfaces.
21337 (fixed_to_decimal): Likewise.
21338 (fixed_convert_from_real): Likewise.
21339 (real_convert_from_fixed): Likewise.
21340 * fold-const.h (mem_ref_offset): Return an offset_int.
21341 (div_if_zero_remainder): Remove code parameter.
21342 * fold-const.c (div_if_zero_remainder): Remove code parameter.
21343 Use wide-int interfaces.
21344 (may_negate_without_overflow_p): Use wide-int interfaces.
21345 (negate_expr_p): Likewise.
21346 (fold_negate_expr): Likewise.
21347 (int_const_binop_1): Likewise.
21348 (const_binop): Likewise.
21349 (fold_convert_const_int_from_int): Likewise.
21350 (fold_convert_const_int_from_real): Likewise.
21351 (fold_convert_const_int_from_fixed): Likewise.
21352 (fold_convert_const_fixed_from_int): Likewise.
21353 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
21354 (sign_bit_p): Use wide-int interfaces.
21355 (make_range_step): Likewise.
21356 (build_range_check): Likewise. Pass an integer of the correct type
21357 instead of using integer_one_node.
21358 (range_predecessor): Pass an integer of the correct type instead
21359 of using integer_one_node.
21360 (range_successor): Likewise.
21361 (merge_ranges): Likewise.
21362 (unextend): Use wide-int interfaces.
21363 (extract_muldiv_1): Likewise.
21364 (fold_div_compare): Likewise.
21365 (fold_single_bit_test): Likewise.
21366 (fold_sign_changed_comparison): Likewise.
21367 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
21368 (fold_plusminus_mult_expr): Use wide-int interfaces.
21369 (native_encode_int): Likewise.
21370 (native_interpret_int): Likewise.
21371 (fold_unary_loc): Likewise.
21372 (pointer_may_wrap_p): Likewise.
21373 (size_low_cst): Likewise.
21374 (mask_with_tz): Likewise.
21375 (fold_binary_loc): Likewise.
21376 (fold_ternary_loc): Likewise.
21377 (multiple_of_p): Likewise.
21378 (tree_call_nonnegative_warnv_p): Update calls to
21379 tree_int_cst_min_precision and real_from_integer.
21380 (fold_negate_const): Use wide-int interfaces.
21381 (fold_abs_const): Likewise.
21382 (fold_relational_const): Use tree_int_cst_lt.
21383 (round_up_loc): Use wide-int interfaces.
21384 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
21385 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
21386 * gengtype.c: Remove include of double-int.h.
21387 (do_typedef): Use wide-int interfaces.
21388 (open_base_files): Add wide-int.h.
21389 (main): Add offset_int and widest_int typedefs.
21390 * gengtype-lex.l: Handle "^".
21391 (CXX_KEYWORD): Add "static".
21392 * gengtype-parse.c (require3): New.
21393 (require_template_declaration): Handle constant template arguments
21394 and nested templates.
21395 * gengtype-state.c: Don't include "double-int.h".
21396 * genpreds.c (write_one_predicate_function): Update comment.
21397 (write_tm_constrs_h): Add check for hval and lval use in
21398 CONST_WIDE_INT.
21399 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
21400 (add_to_sequence): Likewise.
21401 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
21402 and const_double_operand.
21403 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
21404 interfaces.
21405 * gimple-fold.c (get_base_constructor): Likewise.
21406 (fold_array_ctor_reference): Likewise.
21407 (fold_nonarray_ctor_reference): Likewise.
21408 (fold_const_aggregate_ref_1): Likewise.
21409 (gimple_val_nonnegative_real_p): Likewise.
21410 (gimple_fold_indirect_ref): Likewise.
21411 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
21412 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
21413 (struct slsr_cand_d): Change index to be widest_int.
21414 (struct incr_info_d): Change incr to be widest_int.
21415 (alloc_cand_and_find_basis): Use wide-int interfaces.
21416 (slsr_process_phi): Likewise.
21417 (backtrace_base_for_ref): Likewise. Return a widest_int.
21418 (restructure_reference): Take a widest_int instead of a double_int.
21419 (slsr_process_ref): Use wide-int interfaces.
21420 (create_mul_ssa_cand): Likewise.
21421 (create_mul_imm_cand): Likewise.
21422 (create_add_ssa_cand): Likewise.
21423 (create_add_imm_cand): Take a widest_int instead of a double_int.
21424 (slsr_process_add): Use wide-int interfaces.
21425 (slsr_process_cast): Likewise.
21426 (slsr_process_copy): Likewise.
21427 (dump_candidate): Likewise.
21428 (dump_incr_vec): Likewise.
21429 (replace_ref): Likewise.
21430 (cand_increment): Likewise. Return a widest_int.
21431 (cand_abs_increment): Likewise.
21432 (replace_mult_candidate): Take a widest_int instead of a double_int.
21433 (replace_unconditional_candidate): Use wide-int interfaces.
21434 (incr_vec_index): Take a widest_int instead of a double_int.
21435 (create_add_on_incoming_edge): Likewise.
21436 (create_phi_basis): Use wide-int interfaces.
21437 (replace_conditional_candidate): Likewise.
21438 (record_increment): Take a widest_int instead of a double_int.
21439 (record_phi_increments): Use wide-int interfaces.
21440 (phi_incr_cost): Take a widest_int instead of a double_int.
21441 (lowest_cost_path): Likewise.
21442 (total_savings): Likewise.
21443 (analyze_increments): Use wide-int interfaces.
21444 (ncd_with_phi): Take a widest_int instead of a double_int.
21445 (ncd_of_cand_and_phis): Likewise.
21446 (nearest_common_dominator_for_cands): Likewise.
21447 (insert_initializers): Use wide-int interfaces.
21448 (all_phi_incrs_profitable): Likewise.
21449 (replace_one_candidate): Likewise.
21450 (replace_profitable_candidates): Likewise.
21451 * godump.c: Include wide-int-print.h.
21452 (go_output_typedef): Use wide-int interfaces.
21453 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
21454 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
21455 (build_loop_iteration_domains): Likewise.
21456 * hooks.h: Include wide-int.h rather than double-int.h.
21457 (hook_bool_dint_dint_uint_bool_true): Delete.
21458 (hook_bool_wint_wint_uint_bool_true): Declare.
21459 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
21460 (hook_bool_wint_wint_uint_bool_true): New.
21461 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
21462 interfaces.
21463 (ubsan_expand_si_overflow_mul_check): Likewise.
21464 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
21465 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
21466 (get_ancestor_addr_info): Likewise.
21467 (ipa_modify_call_arguments): Likewise.
21468 * loop-doloop.c (doloop_modify): Likewise.
21469 (doloop_optimize): Likewise.
21470 * loop-iv.c (iv_number_of_iterations): Likewise.
21471 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
21472 (unroll_loop_constant_iterations): Likewise.
21473 (decide_unroll_runtime_iterations): Likewise.
21474 (unroll_loop_runtime_iterations): Likewise.
21475 (decide_peel_simple): Likewise.
21476 (decide_unroll_stupid): Likewise.
21477 * lto-streamer-in.c (streamer_read_wi): Add.
21478 (input_cfg): Use wide-int interfaces.
21479 (lto_input_tree_1): Likewise.
21480 * lto-streamer-out.c (streamer_write_wi): Add.
21481 (hash_tree): Use wide-int interfaces.
21482 (output_cfg): Likewise.
21483 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
21484 (GTFILES): Add wide-int.h and signop.h.
21485 (TAGS): Look for .cc files too.
21486 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
21487 * optabs.c (expand_subword_shift): Likewise.
21488 (expand_doubleword_shift): Likewise.
21489 (expand_absneg_bit): Likewise.
21490 (expand_copysign_absneg): Likewise.
21491 (expand_copysign_bit): Likewise.
21492 * postreload.c (reload_cse_simplify_set): Likewise.
21493 * predict.c (predict_iv_comparison): Likewise.
21494 * pretty-print.h: Include wide-int-print.h.
21495 (pp_wide_int) New.
21496 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
21497 * print-tree.c: Include wide-int-print.h.
21498 (print_node_brief): Use wide-int interfaces.
21499 (print_node): Likewise.
21500 * read-rtl.c (validate_const_wide_int): New.
21501 (read_rtx_code): Add CONST_WIDE_INT case.
21502 * real.c: Include wide-int.h.
21503 (real_to_integer2): Delete.
21504 (real_to_integer): New function, returning a wide_int.
21505 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
21506 (ten_to_ptwo): Update call to real_from_integer.
21507 (real_digit): Likewise.
21508 * real.h: Include signop.h, wide-int.h and insn-modes.h.
21509 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
21510 (REAL_VALUE_TO_INT): Delete.
21511 (real_to_integer): Declare a wide-int form.
21512 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
21513 * recog.c (const_int_operand): Improve comment.
21514 (const_scalar_int_operand): New.
21515 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
21516 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
21517 (split_double): Likewise.
21518 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
21519 (rtx_size): Likewise.
21520 (rtx_alloc_stat_v): New.
21521 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
21522 (cwi_output_hex): New.
21523 (iterative_hash_rtx): Handle CONST_WIDE_INT.
21524 (cwi_check_failed_bounds): New.
21525 * rtl.def (CONST_WIDE_INT): New.
21526 * rtl.h: Include <utility> and wide-int.h.
21527 (struct hwivec_def): New.
21528 (CWI_GET_NUM_ELEM): New.
21529 (CWI_PUT_NUM_ELEM): New.
21530 (struct rtx_def): Add num_elem and hwiv.
21531 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
21532 (CASE_CONST_UNIQUE): Likewise.
21533 (CASE_CONST_ANY): Likewise.
21534 (CONST_SCALAR_INT_P): Likewise.
21535 (CONST_WIDE_INT_P): New.
21536 (CWI_ELT): New.
21537 (HWIVEC_CHECK): New.
21538 (cwi_check_failed_bounds): New.
21539 (CWI_ELT): New.
21540 (HWIVEC_CHECK): New.
21541 (CONST_WIDE_INT_VEC) New.
21542 (CONST_WIDE_INT_NUNITS) New.
21543 (CONST_WIDE_INT_ELT) New.
21544 (rtx_mode_t): New type.
21545 (wi::int_traits <rtx_mode_t>): New.
21546 (wi::shwi): New.
21547 (wi::min_value): New.
21548 (wi::max_value): New.
21549 (rtx_alloc_v) New.
21550 (const_wide_int_alloc): New.
21551 (immed_wide_int_const): New.
21552 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
21553 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
21554 * signop.h: New file.
21555 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
21556 (simplify_const_unary_operation): Use wide-int interfaces.
21557 (simplify_binary_operation_1): Likewise.
21558 (simplify_const_binary_operation): Likewise.
21559 (simplify_const_relational_operation): Likewise.
21560 (simplify_immed_subreg): Likewise.
21561 * stmt.c (expand_case): Likewise.
21562 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
21563 signop rather than a bool.
21564 * stor-layout.c (layout_type): Use wide-int interfaces.
21565 (initialize_sizetypes): Update calls to
21566 set_min_and_max_values_for_integral_type.
21567 (set_min_and_max_values_for_integral_type): Take a signop rather
21568 than a bool. Use wide-int interfaces.
21569 (fixup_signed_type): Update accordingly. Remove
21570 HOST_BITS_PER_DOUBLE_INT limit.
21571 (fixup_unsigned_type): Likewise.
21572 * system.h (STATIC_CONSTANT_P): New.
21573 (STATIC_ASSERT): New.
21574 * target.def (can_use_doloop_p): Take widest_ints rather than
21575 double_ints.
21576 * target.h: Include wide-int.h rather than double-int.h.
21577 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
21578 than double_ints.
21579 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
21580 rather than INT_CST_LT_UNSIGNED.
21581 (can_use_doloop_if_innermost): Take widest_ints rather than
21582 double_ints.
21583 * tree-affine.c: Include wide-int-print.h.
21584 (double_int_ext_for_comb): Delete.
21585 (wide_int_ext_for_comb): New.
21586 (aff_combination_zero): Use wide-int interfaces.
21587 (aff_combination_const): Take a widest_int instead of a double_int.
21588 (aff_combination_elt): Use wide-int interfaces.
21589 (aff_combination_scale): Take a widest_int instead of a double_int.
21590 (aff_combination_add_elt): Likewise.
21591 (aff_combination_add_cst): Likewise.
21592 (aff_combination_add): Use wide-int interfaces.
21593 (aff_combination_convert): Likewise.
21594 (tree_to_aff_combination): Likewise.
21595 (add_elt_to_tree): Take a widest_int instead of a double_int.
21596 (aff_combination_to_tree): Use wide-int interfaces.
21597 (aff_combination_remove_elt): Likewise.
21598 (aff_combination_add_product): Take a widest_int instead of
21599 a double_int.
21600 (aff_combination_mult): Use wide-int interfaces.
21601 (aff_combination_expand): Likewise.
21602 (double_int_constant_multiple_p): Delete.
21603 (wide_int_constant_multiple_p): New.
21604 (aff_combination_constant_multiple_p): Take a widest_int pointer
21605 instead of a double_int pointer.
21606 (print_aff): Use wide-int interfaces.
21607 (get_inner_reference_aff): Take a widest_int pointer
21608 instead of a double_int pointer.
21609 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
21610 * tree-affine.h: Include wide-int.h.
21611 (struct aff_comb_elt): Change type of coef to widest_int.
21612 (struct affine_tree_combination): Change type of offset to widest_int.
21613 (double_int_ext_for_comb): Delete.
21614 (wide_int_ext_for_comb): New.
21615 (aff_combination_const): Use widest_int instead of double_int.
21616 (aff_combination_scale): Likewise.
21617 (aff_combination_add_elt): Likewise.
21618 (aff_combination_constant_multiple_p): Likewise.
21619 (get_inner_reference_aff): Likewise.
21620 (aff_comb_cannot_overlap_p): Likewise.
21621 (aff_combination_zero_p): Use wide-int interfaces.
21622 * tree.c: Include tree.h.
21623 (init_ttree): Use make_int_cst.
21624 (tree_code_size): Removed code for INTEGER_CST case.
21625 (tree_size): Add INTEGER_CST case.
21626 (make_node_stat): Update comment.
21627 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
21628 (build_int_cst_type): Use wide-int interfaces.
21629 (double_int_to_tree): Likewise.
21630 (double_int_fits_to_tree_p): Delete.
21631 (force_fit_type_double): Delete.
21632 (force_fit_type): New.
21633 (int_cst_hash_hash): Use wide-int interfaces.
21634 (int_cst_hash_eq): Likewise.
21635 (build_int_cst_wide): Delete.
21636 (wide_int_to_tree): New.
21637 (cache_integer_cst): Use wide-int interfaces.
21638 (build_low_bits_mask): Likewise.
21639 (cst_and_fits_in_hwi): Likewise.
21640 (real_value_from_int_cst): Likewise.
21641 (make_int_cst_stat): New.
21642 (integer_zerop): Use wide_int interfaces.
21643 (integer_onep): Likewise.
21644 (integer_all_onesp): Likewise.
21645 (integer_pow2p): Likewise.
21646 (integer_nonzerop): Likewise.
21647 (tree_log2): Likewise.
21648 (tree_floor_log2): Likewise.
21649 (tree_ctz): Likewise.
21650 (int_size_in_bytes): Likewise.
21651 (mem_ref_offset): Return an offset_int rather than a double_int.
21652 (build_type_attribute_qual_variant): Use wide_int interfaces.
21653 (type_hash_eq): Likewise
21654 (tree_int_cst_equal): Likewise.
21655 (tree_int_cst_lt): Delete.
21656 (tree_int_cst_compare): Likewise.
21657 (tree_fits_shwi_p): Use wide_int interfaces.
21658 (tree_fits_uhwi_p): Likewise.
21659 (tree_int_cst_sign_bit): Likewise.
21660 (tree_int_cst_sgn): Likewise.
21661 (tree_int_cst_min_precision): Take a signop rather than a bool.
21662 (simple_cst_equal): Use wide_int interfaces.
21663 (compare_tree_int): Likewise.
21664 (iterative_hash_expr): Likewise.
21665 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
21666 INT_CST_LT.
21667 (get_type_static_bounds): Use wide_int interfaces.
21668 (tree_int_cst_elt_check_failed): New.
21669 (build_common_tree_nodes): Reordered to set prec before filling in
21670 value.
21671 (int_cst_value): Check cst_and_fits_in_hwi.
21672 (widest_int_cst_value): Use wide_int interfaces.
21673 (upper_bound_in_type): Likewise.
21674 (lower_bound_in_type): Likewise.
21675 (num_ending_zeros): Likewise.
21676 (drop_tree_overflow): Likewise.
21677 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
21678 (gen_conditions_for_pow_cst_base): Likewise.
21679 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
21680 (group_case_labels_stmt): Use wide-int interfaces.
21681 (verify_gimple_assign_binary): Likewise.
21682 (print_loop): Likewise.
21683 * tree-chrec.c (tree_fold_binomial): Likewise.
21684 * tree-core.h (struct tree_base): Add int_length.
21685 (struct tree_int_cst): Change rep of value.
21686 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
21687 (dr_may_alias_p): Likewise.
21688 (max_stmt_executions_tree): Likewise.
21689 * tree.def (INTEGER_CST): Update comment.
21690 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
21691 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
21692 * tree-dump.c: Include wide-int.h and wide-int-print.h.
21693 (dequeue_and_dump): Use wide-int interfaces.
21694 * tree.h: Include wide-int.h.
21695 (NULL_TREE): Moved to earlier loc in file.
21696 (TREE_INT_CST_ELT_CHECK): New.
21697 (tree_int_cst_elt_check_failed): New.
21698 (TYPE_SIGN): New.
21699 (TREE_INT_CST): Delete.
21700 (TREE_INT_CST_LOW): Use wide-int interfaces.
21701 (TREE_INT_CST_HIGH): Delete.
21702 (TREE_INT_CST_NUNITS): New.
21703 (TREE_INT_CST_EXT_NUNITS): Likewise.
21704 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
21705 (TREE_INT_CST_ELT): Likewise.
21706 (INT_CST_LT): Delete.
21707 (tree_int_cst_elt_check): New (two forms).
21708 (type_code_size): Update comment.
21709 (make_int_cst_stat, make_int_cst): New.
21710 (tree_to_double_int): Delete.
21711 (double_int_fits_to_tree_p): Delete.
21712 (force_fit_type_double): Delete.
21713 (build_int_cstu): Replace with out-of-line function.
21714 (build_int_cst_wide): Delete.
21715 (tree_int_cst_lt): Define inline.
21716 (tree_int_cst_le): New.
21717 (tree_int_cst_compare): Define inline.
21718 (tree_int_cst_min_precision): Take a signop rather than a bool.
21719 (wi::int_traits <const_tree>): New.
21720 (wi::int_traits <tree>): New.
21721 (wi::extended_tree): New.
21722 (wi::int_traits <wi::extended_tree>): New.
21723 (wi::to_widest): New.
21724 (wi::to_offset): New.
21725 (wi::fits_to_tree_p): New.
21726 (wi::min_value): New.
21727 (wi::max_value): New.
21728 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
21729 (copy_tree_body_r): Likewise.
21730 * tree-object-size.c (compute_object_offset): Likewise.
21731 (addr_object_size): Likewise.
21732 * tree-predcom.c: Include wide-int-print.h.
21733 (struct dref_d): Change type of offset to widest_int.
21734 (dump_dref): Call wide-int printer.
21735 (aff_combination_dr_offset): Use wide-int interfaces.
21736 (determine_offset): Take a widest_int pointer rather than a
21737 double_int pointer.
21738 (split_data_refs_to_components): Use wide-int interfaces.
21739 (suitable_component_p): Likewise.
21740 (order_drefs): Likewise.
21741 (add_ref_to_chain): Likewise.
21742 (valid_initializer_p): Likewise.
21743 (determine_roots_comp): Likewise.
21744 * tree-pretty-print.c: Include wide-int-print.h.
21745 (dump_generic_node): Use wide-int interfaces.
21746 * tree-sra.c (sra_ipa_modify_expr): Likewise.
21747 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
21748 (move_fixed_address_to_symbol): Likewise.
21749 (move_hint_to_base): Likewise.
21750 (move_pointer_to_base): Likewise.
21751 (move_variant_to_index): Likewise.
21752 (most_expensive_mult_to_index): Likewise.
21753 (addr_to_parts): Likewise.
21754 (copy_ref_info): Likewise.
21755 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
21756 (indirect_refs_may_alias_p): Likewise.
21757 (stmt_kills_ref_p_1): Likewise.
21758 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
21759 * tree-ssa-ccp.c: Update comment at top of file. Include
21760 wide-int-print.h.
21761 (struct prop_value_d): Change type of mask to widest_int.
21762 (extend_mask): New function.
21763 (dump_lattice_value): Use wide-int interfaces.
21764 (get_default_value): Likewise.
21765 (set_constant_value): Likewise.
21766 (set_value_varying): Likewise.
21767 (valid_lattice_transition): Likewise.
21768 (set_lattice_value): Likewise.
21769 (value_to_double_int): Delete.
21770 (value_to_wide_int): New.
21771 (get_value_from_alignment): Use wide-int interfaces.
21772 (get_value_for_expr): Likewise.
21773 (do_dbg_cnt): Likewise.
21774 (ccp_finalize): Likewise.
21775 (ccp_lattice_meet): Likewise.
21776 (bit_value_unop_1): Use widest_ints rather than double_ints.
21777 (bit_value_binop_1): Likewise.
21778 (bit_value_unop): Use wide-int interfaces.
21779 (bit_value_binop): Likewise.
21780 (bit_value_assume_aligned): Likewise.
21781 (evaluate_stmt): Likewise.
21782 (ccp_fold_stmt): Likewise.
21783 (visit_cond_stmt): Likewise.
21784 (ccp_visit_stmt): Likewise.
21785 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
21786 (constant_pointer_difference): Likewise.
21787 (associate_pointerplus): Likewise.
21788 (combine_conversions): Likewise.
21789 * tree-ssa-loop.h: Include wide-int.h.
21790 (struct tree_niter_desc): Change type of max to widest_int.
21791 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
21792 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
21793 (remove_redundant_iv_tests): Likewise.
21794 (canonicalize_loop_induction_variables): Likewise.
21795 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
21796 (constant_multiple_of): Take a widest_int pointer instead of
21797 a double_int pointer.
21798 (get_computation_aff): Use wide-int interfaces.
21799 (ptr_difference_cost): Likewise.
21800 (difference_cost): Likewise.
21801 (get_loop_invariant_expr_id): Likewise.
21802 (get_computation_cost_at): Likewise.
21803 (iv_elimination_compare_lt): Likewise.
21804 (may_eliminate_iv): Likewise.
21805 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
21806 instead of double_int.
21807 (max_loop_iterations): Likewise.
21808 (max_stmt_executions): Likewise.
21809 (estimated_stmt_executions): Likewise.
21810 * tree-ssa-loop-niter.c: Include wide-int-print.h.
21811 (split_to_var_and_offset): Use wide-int interfaces.
21812 (determine_value_range): Likewise.
21813 (bound_difference_of_offsetted_base): Likewise.
21814 (bounds_add): Take a widest_int instead of a double_int.
21815 (number_of_iterations_ne_max): Use wide-int interfaces.
21816 (number_of_iterations_ne): Likewise.
21817 (number_of_iterations_lt_to_ne): Likewise.
21818 (assert_loop_rolls_lt): Likewise.
21819 (number_of_iterations_lt): Likewise.
21820 (number_of_iterations_le): Likewise.
21821 (number_of_iterations_cond): Likewise.
21822 (number_of_iterations_exit): Likewise.
21823 (finite_loop_p): Likewise.
21824 (derive_constant_upper_bound_assign): Likewise.
21825 (derive_constant_upper_bound): Return a widest_int.
21826 (derive_constant_upper_bound_ops): Likewise.
21827 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
21828 (record_estimate): Take a widest_int rather than a double_int.
21829 (record_nonwrapping_iv): Use wide-int interfaces.
21830 (double_int_cmp): Delete.
21831 (wide_int_cmp): New.
21832 (bound_index): Take a widest_int rather than a double_int.
21833 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
21834 (maybe_lower_iteration_bound): Likewise.
21835 (estimate_numbers_of_iterations_loop): Likewise.
21836 (estimated_loop_iterations): Take a widest_int pointer than than
21837 a double_int pointer.
21838 (estimated_loop_iterations_int): Use wide-int interfaces.
21839 (max_loop_iterations): Take a widest_int pointer than than
21840 a double_int pointer.
21841 (max_loop_iterations_int): Use wide-int interfaces.
21842 (max_stmt_executions): Take a widest_int pointer than than
21843 a double_int pointer.
21844 (estimated_stmt_executions): Likewise.
21845 (n_of_executions_at_most): Use wide-int interfaces.
21846 (scev_probably_wraps_p): Likewise.
21847 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
21848 to real_to_integer.
21849 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
21850 interfaces.
21851 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
21852 double_ints. Adjust for trailing_wide_ints <3> representation.
21853 (set_nonzero_bits): Likewise.
21854 (get_range_info): Return wide_ints rather than double_ints.
21855 Adjust for trailing_wide_ints <3> representation.
21856 (get_nonzero_bits): Likewise.
21857 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
21858 representation.
21859 * tree-ssanames.h (struct range_info_def): Replace min, max and
21860 nonzero_bits with a trailing_wide_ints <3>.
21861 (set_range_info): Use wide_int_refs rather than double_ints.
21862 (set_nonzero_bits): Likewise.
21863 (get_range_info): Return wide_ints rather than double_ints.
21864 (get_nonzero_bits): Likewise.
21865 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
21866 * tree-ssa-pre.c (phi_translate_1): Likewise.
21867 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
21868 (acceptable_pow_call): Likewise.
21869 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
21870 interfaces.
21871 (vn_reference_fold_indirect): Likewise.
21872 (vn_reference_maybe_forwprop_address): Likewise.
21873 (valueize_refs_1): Likewise.
21874 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
21875 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
21876 tree_int_cst_lt and tree_int_cst_le.
21877 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
21878 interfaces.
21879 (streamer_alloc_tree): Likewise.
21880 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
21881 (streamer_write_tree_header): Likewise.
21882 (streamer_write_integer_cst): Likewise.
21883 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
21884 (build_constructors): Likewise.
21885 (array_value_type): Likewise.
21886 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
21887 (vect_check_gather): Likewise.
21888 * tree-vect-generic.c (build_replicated_const): Likewise.
21889 (expand_vector_divmod): Likewise.
21890 * tree-vect-loop.c (vect_transform_loop): Likewise.
21891 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
21892 (vect_do_peeling_for_alignment): Likewise.
21893 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
21894 * tree-vrp.c: Include wide-int.h.
21895 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
21896 (extract_range_from_assert): Use wide-int interfaces.
21897 (vrp_int_const_binop): Likewise.
21898 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
21899 double_int pointers.
21900 (ranges_from_anti_range): Use wide-int interfaces.
21901 (quad_int_cmp): Delete.
21902 (quad_int_pair_sort): Likewise.
21903 (extract_range_from_binary_expr_1): Use wide-int interfaces.
21904 (extract_range_from_unary_expr_1): Likewise.
21905 (adjust_range_with_scev): Likewise.
21906 (masked_increment): Take and return wide_ints rather than double_ints.
21907 (register_edge_assert_for_2): Use wide-int interfaces.
21908 (check_array_ref): Likewise.
21909 (search_for_addr_array): Likewise.
21910 (maybe_set_nonzero_bits): Likewise.
21911 (union_ranges): Pass an integer of the correct type instead of
21912 using integer_one_node.
21913 (intersect_ranges): Likewise.
21914 (simplify_truth_ops_using_ranges): Likewise.
21915 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
21916 (range_fits_type_p): Likewise.
21917 (simplify_cond_using_ranges): Likewise. Take a signop rather than
21918 a bool.
21919 (simplify_conversion_using_ranges): Use wide-int interfaces.
21920 (simplify_float_conversion_using_ranges): Likewise.
21921 (vrp_finalize): Likewise.
21922 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
21923 (gimple_stringops_transform): Likewise.
21924 * varasm.c (decode_addr_const): Likewise.
21925 (const_hash_1): Likewise.
21926 (const_rtx_hash_1): Likewise
21927 (output_constant): Likewise.
21928 (array_size_for_constructor): Likewise.
21929 (output_constructor_regular_field): Likewise.
21930 (output_constructor_bitfield): Likewise.
21931 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
21932 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
21933 GENERATOR_FILEs.
21934 * gencheck.c: Define BITS_PER_UNIT.
21935 * wide-int.cc: New.
21936 * wide-int.h: New.
21937 * wide-int-print.cc: New.
21938 * wide-int-print.h: New.
21939
21940 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21941
21942 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
21943
21944 2014-05-06 Richard Biener <rguenther@suse.de>
21945
21946 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
21947 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
21948 (TODO_verify_all): Adjust.
21949 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
21950 TODO_verify_stmts and TODO_verify_rtl_sharing.
21951 * bb-reorder.c: Likewise.
21952 * cfgexpand.c: Likewise.
21953 * cprop.c: Likewise.
21954 * cse.c: Likewise.
21955 * function.c: Likewise.
21956 * fwprop.c: Likewise.
21957 * gcse.c: Likewise.
21958 * gimple-ssa-isolate-paths.c: Likewise.
21959 * gimple-ssa-strength-reduction.c: Likewise.
21960 * ipa-split.c: Likewise.
21961 * loop-init.c: Likewise.
21962 * loop-unroll.c: Likewise.
21963 * lower-subreg.c: Likewise.
21964 * modulo-sched.c: Likewise.
21965 * postreload-gcse.c: Likewise.
21966 * predict.c: Likewise.
21967 * recog.c: Likewise.
21968 * sched-rgn.c: Likewise.
21969 * store-motion.c: Likewise.
21970 * tracer.c: Likewise.
21971 * trans-mem.c: Likewise.
21972 * tree-call-cdce.c: Likewise.
21973 * tree-cfg.c: Likewise.
21974 * tree-cfgcleanup.c: Likewise.
21975 * tree-complex.c: Likewise.
21976 * tree-eh.c: Likewise.
21977 * tree-emutls.c: Likewise.
21978 * tree-if-conv.c: Likewise.
21979 * tree-into-ssa.c: Likewise.
21980 * tree-loop-distribution.c: Likewise.
21981 * tree-object-size.c: Likewise.
21982 * tree-parloops.c: Likewise.
21983 * tree-pass.h: Likewise.
21984 * tree-sra.c: Likewise.
21985 * tree-ssa-ccp.c: Likewise.
21986 * tree-ssa-copy.c: Likewise.
21987 * tree-ssa-copyrename.c: Likewise.
21988 * tree-ssa-dce.c: Likewise.
21989 * tree-ssa-dom.c: Likewise.
21990 * tree-ssa-dse.c: Likewise.
21991 * tree-ssa-forwprop.c: Likewise.
21992 * tree-ssa-ifcombine.c: Likewise.
21993 * tree-ssa-loop-ch.c: Likewise.
21994 * tree-ssa-loop-ivcanon.c: Likewise.
21995 * tree-ssa-loop.c: Likewise.
21996 * tree-ssa-math-opts.c: Likewise.
21997 * tree-ssa-phiopt.c: Likewise.
21998 * tree-ssa-phiprop.c: Likewise.
21999 * tree-ssa-pre.c: Likewise.
22000 * tree-ssa-reassoc.c: Likewise.
22001 * tree-ssa-sink.c: Likewise.
22002 * tree-ssa-strlen.c: Likewise.
22003 * tree-ssa-tail-merge.c: Likewise.
22004 * tree-ssa-uncprop.c: Likewise.
22005 * tree-switch-conversion.c: Likewise.
22006 * tree-tailcall.c: Likewise.
22007 * tree-vect-generic.c: Likewise.
22008 * tree-vectorizer.c: Likewise.
22009 * tree-vrp.c: Likewise.
22010 * tsan.c: Likewise.
22011 * var-tracking.c: Likewise.
22012 * bt-load.c: Likewise.
22013 * cfgcleanup.c: Likewise.
22014 * combine-stack-adj.c: Likewise.
22015 * combine.c: Likewise.
22016 * compare-elim.c: Likewise.
22017 * config/epiphany/resolve-sw-modes.c: Likewise.
22018 * config/i386/i386.c: Likewise.
22019 * config/mips/mips.c: Likewise.
22020 * config/s390/s390.c: Likewise.
22021 * config/sh/sh_treg_combine.cc: Likewise.
22022 * config/sparc/sparc.c: Likewise.
22023 * dce.c: Likewise.
22024 * dse.c: Likewise.
22025 * final.c: Likewise.
22026 * ifcvt.c: Likewise.
22027 * mode-switching.c: Likewise.
22028 * passes.c: Likewise.
22029 * postreload.c: Likewise.
22030 * ree.c: Likewise.
22031 * reg-stack.c: Likewise.
22032 * regcprop.c: Likewise.
22033 * regrename.c: Likewise.
22034 * web.c: Likewise.
22035
22036 2014-05-06 Richard Biener <rguenther@suse.de>
22037
22038 PR middle-end/61070
22039 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
22040 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
22041
22042 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
22043
22044 PR ipa/60965
22045 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
22046
22047 2014-05-05 Radovan Obradovic <robradovic@mips.com>
22048 Tom de Vries <tom@codesourcery.com>
22049
22050 * target.def (call_fusage_contains_non_callee_clobbers): New
22051 DEFHOOKPOD.
22052 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
22053 Hooks to @menu.
22054 (@node Miscellaneous Register Hooks): New node.
22055 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
22056 * doc/tm.texi: Regenerate.
22057
22058 2014-05-05 Marek Polacek <polacek@redhat.com>
22059
22060 PR driver/61065
22061 * opts.c (common_handle_option): Call error_at instead of warning_at.
22062
22063 2014-05-05 Richard Biener <rguenther@suse.de>
22064
22065 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
22066 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
22067 under the TODO_verify_il umbrella.
22068
22069 2014-05-05 Richard Biener <rguenther@suse.de>
22070
22071 * passes.c (execute_function_todo): Move TODO_verify_flow under
22072 the TODO_verify_ul umbrella.
22073
22074 2014-05-05 Richard Biener <rguenther@suse.de>
22075
22076 PR middle-end/61010
22077 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
22078 X & CST away from a CST that is the mask of a mode.
22079
22080 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22081
22082 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
22083 int argument to enum machine_mode.
22084 (picochip_class_max_nregs): Ditto.
22085 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
22086 (picochip_class_max_nregs): Ditto.
22087
22088 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22089
22090 * target.def: Add new target hook.
22091 * doc/tm.texi: Regenerate.
22092 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
22093 * targhooks.c (default_keep_leaf_when_profiled): New function.
22094
22095 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
22096 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
22097
22098 2014-05-05 Bin Cheng <bin.cheng@arm.com>
22099
22100 PR tree-optimization/60363
22101 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
22102 (copy_phi_args): New parameters. Call get_value_locus_in_path.
22103 (update_destination_phis): New parameter.
22104 (create_edge_and_update_destination_phis): Ditto.
22105 (ssa_fix_duplicate_block_edges): Pass new arguments.
22106 (thread_single_edge): Ditto.
22107
22108 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
22109
22110 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
22111 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
22112 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
22113 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
22114 Use RS6000_BTM_HARD_FLOAT.
22115 (BU_MISC_2): Likewise.
22116 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
22117 RS6000_BTM_HARD_FLOAT.
22118 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
22119 is explicitly used.
22120 (rs6000_invalid_builtin): Add hard floating builtin support.
22121 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
22122 hard float builtins.
22123 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
22124
22125 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22126
22127 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
22128 Add missing function* argument.
22129
22130 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
22131
22132 * lra-constraints.c (valid_address_p): Move earlier in file.
22133 Add a constraint argument to the address_info version.
22134 (satisfies_memory_constraint_p): New function.
22135 (satisfies_address_constraint_p): Likewise.
22136 (process_alt_operands, curr_insn_transform): Use them.
22137 (process_address): Pass the constraint to valid_address_p when
22138 checking address operands.
22139
22140 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
22141
22142 * config/mips/mips.c (mips_isa_rev): New variable.
22143 (mips_set_architecture): Set it.
22144 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
22145 from mips_isa_rev.
22146 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
22147 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
22148 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
22149 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
22150 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
22151 conditions in terms of mips_isa_rev.
22152 (mips_isa_rev): Declare.
22153
22154 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22155
22156 * config/sh/sh-mem.cc: Use tabs instead of spaces.
22157 (prob_unlikely, prob_likely): Make variables const.
22158
22159 2014-05-03 Denis Chertykov <chertykov@gmail.com>
22160
22161 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
22162
22163 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22164
22165 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
22166
22167 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22168
22169 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
22170 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
22171 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
22172 functions.
22173 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
22174 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
22175 sh_pass_in_reg_p.
22176 Replace usage of ROUND_REG with sh_round_reg.
22177 Use CEIL instead of ROUND_ADVANCE.
22178
22179 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22180
22181 PR target/61026
22182 * config/sh/sh.c: Include stdlib headers before everything else.
22183
22184 2014-05-02 Jakub Jelinek <jakub@redhat.com>
22185
22186 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
22187 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
22188 (gimplify_adjust_omp_clauses): Simd region is never
22189 directly nested in combined parallel. Instead, for linear
22190 with copyin/copyout, if in combined for simd loop, make decl
22191 firstprivate/lastprivate on OMP_FOR.
22192 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
22193 expand_omp_for_static_chunk): When setting endvar, also set
22194 fd->loop.v to the same value.
22195
22196 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
22197
22198 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
22199
22200 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
22201
22202 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
22203 expression.
22204
22205 2014-05-02 Marek Polacek <polacek@redhat.com>
22206
22207 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
22208
22209 2014-05-02 Kito Cheng <kito@0xlab.org>
22210
22211 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
22212 to a C expression marco.
22213 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
22214 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
22215 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
22216 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
22217 HONOR_REG_ALLOC_ORDER.
22218 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
22219
22220 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22221
22222 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
22223
22224 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22225
22226 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
22227
22228 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
22229
22230 * tree-if-conv.c (is_cond_scalar_reduction): New function.
22231 (convert_scalar_cond_reduction): Likewise.
22232 (predicate_scalar_phi): Add recognition and transformation
22233 of simple conditioanl reduction to be vectorizable.
22234
22235 2014-05-01 Marek Polacek <polacek@redhat.com>
22236
22237 PR c/43245
22238 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
22239
22240 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
22241
22242 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
22243 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
22244 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
22245 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
22246 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
22247 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
22248 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
22249 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
22250
22251 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
22252
22253 * config/arc/arc.opt (mlra): Move comment above option name
22254 to avoid mis-parsing as language options.
22255
22256 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22257
22258 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
22259 * config/sol2.h: ... here.
22260 * config/sol2-10.h: Remove.
22261
22262 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
22263 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
22264 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
22265 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
22266 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
22267 * config/sol2.h: ... here.
22268 (SECTION_NAME_FORMAT): Don't redefine.
22269 (STARTFILE_ARCH32_SPEC): Rename to ...
22270 (STARTFILE_ARCH_SPEC): ... this.
22271 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
22272 * config/sparc/sol2.h: ... here.
22273 (SECTION_NAME_FORMAT): Don't undef.
22274 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
22275 (SUBTARGET_EXTRA_SPECS): Remove.
22276 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
22277
22278 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
22279 (MD_STARTFILE_PREFIX): Remove.
22280 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
22281 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
22282 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
22283 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
22284 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
22285 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
22286 * config/i386/sol2.h: ... here.
22287 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
22288 * config/i386/sol2-bi.h: Remove.
22289 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
22290 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
22291
22292 * config/i386/t-sol2-64: Rename to ...
22293 * config/i386/t-sol2: ... this.
22294 * config/sparc/t-sol2-64: Rename to ...
22295 * config/sparc/t-sol2: ... this.
22296
22297 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
22298 sol2_tm_file_head, sol2_tm_file_tail.
22299 Include ${cpu_type}/sol2.h before sol2.h.
22300 Remove sol2-10.h.
22301 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
22302 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
22303 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
22304 Reflect i386/t-sol2-64 renaming.
22305 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
22306 Reflect sparc/t-sol2-64 renaming.
22307
22308 2014-04-30 Richard Biener <rguenther@suse.de>
22309
22310 * passes.c (execute_function_todo): Move TODO_verify_stmts
22311 and TODO_verify_ssa under the TODO_verify_il umbrella.
22312 * tree-ssa.h (verify_ssa): Adjust prototype.
22313 * tree-ssa.c (verify_ssa): Add parameter to tell whether
22314 we should verify SSA operands.
22315 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
22316 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
22317 whether we should verify whether not throwing stmts have EH info.
22318 * graphite-scop-detection.c (create_sese_edges): Adjust.
22319 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
22320 * tree-eh.c (lower_try_finally_switch): Do not add the
22321 default case label twice.
22322
22323 2014-04-30 Marek Polacek <polacek@redhat.com>
22324
22325 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
22326 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
22327 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
22328 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
22329
22330 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
22331
22332 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
22333 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
22334 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
22335 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
22336 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
22337 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
22338 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
22339 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
22340
22341 2014-04-29 David Malcolm <dmalcolm@redhat.com>
22342
22343 * tree-cfg.c (dump_function_to_file): Dump the return type of
22344 functions, in a line to itself before the function body, mimicking
22345 the layout of a C function.
22346
22347 2014-04-29 Jakub Jelinek <jakub@redhat.com>
22348
22349 PR tree-optimization/60971
22350 * tree-tailcall.c (process_assignment): Reject conversions which
22351 reduce precision.
22352
22353 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
22354
22355 * calls.c (initialize_argument_information): Always treat
22356 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
22357 (expand_call): Likewise.
22358 (emit_library_call_calue_1): Likewise.
22359 * expr.c (PUSH_ARGS_REVERSED): Do not define.
22360 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
22361 code accordingly.
22362
22363 2014-04-29 Nick Clifton <nickc@redhat.com>
22364
22365 * config/msp430/msp430.md (umulsidi): Fix typo.
22366 (mulhisi3): Enable even inside interrupt handlers.
22367 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
22368 bigger return address pushed in large mode.
22369
22370 2014-04-29 Nick Clifton <nickc@redhat.com>
22371
22372 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
22373 (arc_init_reg_tables): Use a machine_mode enum to iterate over
22374 available modes.
22375 * config/m32r/m32r.c (init_reg_tables): Likewise.
22376 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
22377 enum to hold the modes.
22378
22379 2014-04-29 Richard Biener <rguenther@suse.de>
22380
22381 * dominance.c (free_dominance_info): Add overload with
22382 function parameter.
22383 (dom_info_state): Likewise.
22384 (dom_info_available_p): Likewise.
22385 * basic-block.h (free_dominance_info, dom_info_state,
22386 dom_info_available_p): Declare overloads.
22387 * passes.c (execute_function_todo): Verify that verifiers
22388 don't change dominator info state. Drop dominator info
22389 for IPA pass invocations.
22390 * cgraph.c (release_function_body): Restore asserts that
22391 dominator information is released.
22392
22393 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
22394
22395 * doc/invoke.texi: Fix typo.
22396 * tree-vrp.c: Fix typos.
22397 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
22398
22399 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22400
22401 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
22402
22403 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
22404
22405 * config/aarch64/aarch64-builtins.c
22406 (aarch64_types_storestruct_lane_qualifiers): New.
22407 (TYPES_STORESTRUCT_LANE): Likewise.
22408 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
22409 (st3_lane): Likewise.
22410 (st4_lane): Likewise.
22411 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
22412 (vec_store_lanesci_lane<mode>): Likewise.
22413 (vec_store_lanesxi_lane<mode>): Likewise.
22414 (aarch64_st2_lane<VQ:mode>): Likewise.
22415 (aarch64_st3_lane<VQ:mode>): Likewise.
22416 (aarch64_st4_lane<VQ:mode>): Likewise.
22417 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
22418 * config/aarch64/arm_neon.h
22419 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
22420 use new macro arguments.
22421 (__ST3_LANE_FUNC): Likewise.
22422 (__ST4_LANE_FUNC): Likewise.
22423 * config/aarch64/iterators.md (V_TWO_ELEM): New.
22424 (V_THREE_ELEM): Likewise.
22425 (V_FOUR_ELEM): Likewise.
22426
22427 2014-04-28 David Malcolm <dmalcolm@redhat.com>
22428
22429 * doc/gimple.texi: Replace the description of the now-defunct
22430 union gimple_statement_d with a diagram showing the
22431 gimple_statement_base class hierarchy and its relationships to
22432 the GSS_ and GIMPLE_ enums.
22433
22434 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
22435
22436 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
22437 * config/aarch64/aarch64.c
22438 (aarch64_cannot_change_mode_class): Weaken conditions.
22439 (aarch64_modes_tieable_p): New.
22440 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
22441
22442 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
22443
22444 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
22445 (loadsync_<mode>): Change mode.
22446 (load_quadpti, store_quadpti): New.
22447 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
22448 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
22449
22450 2014-04-28 Martin Jambor <mjambor@suse.cz>
22451
22452 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
22453 same alias type as the original statement.
22454 (subreplacement_assignment_data): New type.
22455 (handle_unscalarized_data_in_subtree): New type of parameter,
22456 generate new memory accesses with same alias type as the original
22457 statement.
22458 (load_assign_lhs_subreplacements): Likewise.
22459 (sra_modify_constructor_assign): Generate new memory accesses with
22460 same alias type as the original statement.
22461
22462 2014-04-28 Richard Biener <rguenther@suse.de>
22463
22464 * tree-pass.h (TODO_verify_il): Define.
22465 (TODO_verify_all): Complete properly.
22466 * passes.c (execute_function_todo): Move existing loop-closed
22467 SSA verification under TODO_verify_il.
22468 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
22469 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
22470 Fix tree sharing issue.
22471
22472 2014-04-28 Richard Biener <rguenther@suse.de>
22473
22474 PR middle-end/60092
22475 * builtins.def (DEF_C11_BUILTIN): Add.
22476 (BUILT_IN_ALIGNED_ALLOC): Likewise.
22477 * coretypes.h (enum function_class): Add function_c11_misc.
22478 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
22479 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
22480 (call_may_clobber_ref_p_1): Likewise.
22481 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
22482 (mark_all_reaching_defs_necessary_1): Likewise.
22483 (propagate_necessity): Likewise.
22484 (eliminate_unnecessary_stmts): Likewise.
22485 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
22486
22487 2014-04-28 Richard Biener <rguenther@suse.de>
22488
22489 * tree-vrp.c (vrp_var_may_overflow): Remove.
22490 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
22491 with overflow immediately bump to one before that value and
22492 let iteration figure out overflow status.
22493
22494 2014-04-28 Richard Biener <rguenther@suse.de>
22495
22496 * configure.ac: Do valgrind header checks unconditionally.
22497 Add --enable-valgrind-annotations.
22498 * system.h: Guard valgrind header inclusion with
22499 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
22500 * alloc-pool.c (pool_alloc, pool_free): Use
22501 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
22502 to guard possibly dead code.
22503 * config.in: Regenerated.
22504 * configure: Likewise.
22505
22506 2014-04-28 Jeff Law <law@redhat.com>
22507
22508 PR tree-optimization/60902
22509 * tree-ssa-threadedge.c
22510 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
22511 over real defs when invalidating outputs from statements that do not
22512 produce useful outputs for threading.
22513
22514 2014-04-28 Richard Biener <rguenther@suse.de>
22515
22516 PR tree-optimization/60979
22517 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
22518 SCOPs that end in a block with a successor with abnormal
22519 predecessors.
22520
22521 2014-04-28 Richard Biener <rguenther@suse.de>
22522
22523 * tree-pass.h (execute_pass_list): Adjust prototype.
22524 * passes.c (pass_manager::execute_early_local_passes): Adjust.
22525 (do_per_function): Change callback signature, push all actual
22526 work to the callbals.
22527 (do_per_function_toporder): Likewise.
22528 (execute_function_dump): Adjust.
22529 (execute_function_todo): Likewise.
22530 (clear_last_verified): Likewise.
22531 (verify_curr_properties): Likewise.
22532 (update_properties_after_pass): Likewise.
22533 (execute_pass_list_1): Split out from ...
22534 (execute_pass_list): ... here. Adjust.
22535 (execute_ipa_pass_list): Likewise.
22536 * cgraphunit.c (cgraph_add_new_function): Adjust.
22537 (analyze_function): Likewise.
22538 (expand_function): Likewise.
22539 * cgraph.c (release_function_body): Free dominance info
22540 here instead of asserting it was magically freed elsewhere.
22541
22542 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
22543
22544 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
22545 * configure: Regenerate.
22546 * config/sparc/sparc.opt (muser-mode): New option.
22547 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
22548 for LEON3.
22549 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
22550 * doc/invoke.texi (SPARC options): Document -muser-mode.
22551
22552 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
22553
22554 * cselib.c (find_slot_memmode): Delete.
22555 (cselib_hasher): Change compare_type to a struct.
22556 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
22557 constants.
22558 (preserve_constants_and_equivs): Adjust for new compare_type.
22559 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
22560 (wrap_constant): Delete.
22561 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
22562
22563 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
22564
22565 * doc/install.texi (Building with profile feedback): Remove
22566 outdated sentence.
22567
22568 2014-04-26 Tom de Vries <tom@codesourcery.com>
22569
22570 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
22571 array accesses.
22572
22573 2014-04-25 Cary Coutant <ccoutant@google.com>
22574
22575 PR debug/60929
22576 * dwarf2out.c (should_move_die_to_comdat): A type definition
22577 can contain a subprogram definition, but don't move it to a
22578 comdat unit.
22579 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
22580 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
22581 from original DIE.
22582 (clone_tree_hash): Rename to...
22583 (clone_tree_partial): ...this; change callers. Copy
22584 DW_TAG_subprogram DIEs as declarations.
22585 (copy_decls_walk): Don't copy children of a declaration into a
22586 type unit.
22587
22588 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
22589
22590 PR target/60969
22591 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
22592 alternative 12.
22593
22594 2014-04-25 Jiong Wang <jiong.wang@arm.com>
22595
22596 * config/arm/predicates.md (call_insn_operand): Add long_call check.
22597 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
22598 reg for long_call.
22599 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
22600 restriction.
22601
22602 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22603
22604 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
22605
22606 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22607
22608 PR tree-optimization/60930
22609 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
22610 creating a multiply candidate by folding two constant
22611 multiplicands when the result overflows.
22612
22613 2014-04-25 Jakub Jelinek <jakub@redhat.com>
22614
22615 PR tree-optimization/60960
22616 * tree-vect-generic.c (expand_vector_operation): Only call
22617 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
22618
22619 2014-04-25 Tom de Vries <tom@codesourcery.com>
22620
22621 * expr.c (clobber_reg_mode): New function.
22622 * expr.h (clobber_reg): New function.
22623
22624 2014-04-25 Tom de Vries <tom@codesourcery.com>
22625
22626 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
22627 clobbers.
22628
22629 2014-04-25 Radovan Obradovic <robradovic@mips.com>
22630 Tom de Vries <tom@codesourcery.com>
22631
22632 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
22633 handle.
22634 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
22635 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
22636 new argument to find_all_hard_reg_sets call.
22637
22638 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22639
22640 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
22641 Use HOST_WIDE_INT_C for mask literal.
22642 (aarch_rev16_shleft_mask_imm_p): Likewise.
22643
22644 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
22645
22646 PR target/60941
22647 * config/sparc/sparc.md (ashlsi3_extend): Delete.
22648
22649 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
22650
22651 PR preprocessor/56540
22652 * config/i386/i386-c.c (ix86_target_macros): Define
22653 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
22654
22655 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22656
22657 * configure.ac (tga_func): Remove.
22658 (LIB_TLS_SPEC): Remove.
22659 * configure: Regenerate.
22660 * config.in: Regenerate.
22661 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
22662
22663 2014-04-25 Richard Biener <rguenther@suse.de>
22664
22665 PR ipa/60912
22666 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
22667 call stmt use/clobber sets during stmt walk instead of
22668 walking the possibly incomplete set of caller edges.
22669
22670 2014-04-25 Richard Biener <rguenther@suse.de>
22671
22672 PR ipa/60911
22673 * passes.c (apply_ipa_transforms): Inline into only caller ...
22674 (execute_one_pass): ... here. Properly bring in function
22675 bodies for nodes we want to apply IPA transforms to.
22676
22677 2014-04-24 Cong Hou <congh@google.com>
22678
22679 PR tree-optimization/60896
22680 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
22681 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
22682 (vect_mark_pattern_stmts): Set the def type of all statements in
22683 PATTERN_DEF_SEQ as vect_internal_def.
22684
22685 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22686
22687 * doc/extend.texi (PowerPC Built-in Functions): Document new
22688 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
22689 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
22690
22691 * config/rs6000/predicates.md (const_0_to_3_operand): New
22692 predicate to match 0..3 integer constants.
22693
22694 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
22695 to support adding miscellaneous builtin functions.
22696 (BU_DFP_MISC_2): Likewise.
22697 (BU_P7_MISC_1): Likewise.
22698 (BU_P7_MISC_2): Likewise.
22699 (BU_P8V_MISC_3): Likewise.
22700 (BU_MISC_1): Likewise.
22701 (BU_MISC_2): Likewise.
22702 (DIVWE): Add extended divide builtin functions.
22703 (DIVWEO): Likewise.
22704 (DIVWEU): Likewise.
22705 (DIVWEUO): Likewise.
22706 (DIVDE): Likewise.
22707 (DIVDEO): Likewise.
22708 (DIVDEU): Likewise.
22709 (DIVDEUO): Likewise.
22710 (DXEX): Add decimal floating-point builtin functions.
22711 (DXEXQ): Likewise.
22712 (DDEDPD): Likewise.
22713 (DDEDPDQ): Likewise.
22714 (DENBCD): Likewise.
22715 (DENBCDQ): Likewise.
22716 (DIEX): Likewise.
22717 (DIEXQ): Likewise.
22718 (DSCLI): Likewise.
22719 (DSCLIQ): Likewise.
22720 (DSCRI): Likewise.
22721 (DSCRIQ): Likewise.
22722 (CDTBCD): Add new BCD builtin functions.
22723 (CBCDTD): Likewise.
22724 (ADDG6S): Likewise.
22725 (BCDADD): Likewise.
22726 (BCDADD_LT): Likewise.
22727 (BCDADD_EQ): Likewise.
22728 (BCDADD_GT): Likewise.
22729 (BCDADD_OV): Likewise.
22730 (BCDSUB): Likewise.
22731 (BCDSUB_LT): Likewise.
22732 (BCDSUB_EQ): Likewise.
22733 (BCDSUB_GT): Likewise.
22734 (BCDSUB_OV): Likewise.
22735 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
22736 (UNPACK_TD): Likewise.
22737 (PACK_TF): Likewise.
22738 (UNPACK_TF): Likewise.
22739 (UNPACK_TF_0): Likewise.
22740 (UNPACK_TF_1): Likewise.
22741 (PACK_V1TI): Likewise.
22742 (UNPACK_V1TI): Likewise.
22743
22744 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
22745 support for decimal floating point builtin functions.
22746 (rs6000_expand_ternop_builtin): Add checks for the new builtin
22747 functions that take constant arguments.
22748 (rs6000_invalid_builtin): Add decimal floating point builtin support.
22749 (rs6000_init_builtins): Setup long double, _Decimal64, and
22750 _Decimal128 types for new builtin functions.
22751 (builtin_function_type): Set the unsigned flags appropriately for
22752 the new builtin functions.
22753 (rs6000_opt_masks): Add support for decimal floating point builtin
22754 functions.
22755
22756 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
22757 floating point builtin functions.
22758 (RS6000_BTM_COMMON): Likewise.
22759 (RS6000_BTI_long_double): Likewise.
22760 (RS6000_BTI_dfloat64): Likewise.
22761 (RS6000_BTI_dfloat128): Likewise.
22762 (long_double_type_internal_node): Likewise.
22763 (dfloat64_type_internal_node): Likewise.
22764 (dfloat128_type_internal_node): Likewise.
22765
22766 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
22767 2.07 bcd arithmetic instructions.
22768 (UNSPEC_BCDSUB): Likewise.
22769 (UNSPEC_BCD_OVERFLOW): Likewise.
22770 (UNSPEC_BCD_ADD_SUB): Likewise.
22771 (bcd_add_sub): Likewise.
22772 (BCD_TEST): Likewise.
22773 (bcd<bcd_add_sub>): Likewise.
22774 (bcd<bcd_add_sub>_test): Likewise.
22775 (bcd<bcd_add_sub>_test2): Likewise.
22776 (bcd<bcd_add_sub>_<code>): Likewise.
22777 (peephole2 for combined bcd ops): Likewise.
22778
22779 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
22780 decimal floating point builtin functions.
22781 (UNSPEC_DENBCD): Likewise.
22782 (UNSPEC_DXEX): Likewise.
22783 (UNSPEC_DIEX): Likewise.
22784 (UNSPEC_DSCLI): Likewise.
22785 (UNSPEC_DSCRI): Likewise.
22786 (D64_D128): Likewise.
22787 (dfp_suffix): Likewise.
22788 (dfp_ddedpd_<mode>): Likewise.
22789 (dfp_denbcd_<mode>): Likewise.
22790 (dfp_dxex_<mode>): Likewise.
22791 (dfp_diex_<mode>): Likewise.
22792 (dfp_dscli_<mode>): Likewise.
22793 (dfp_dscri_<mode>): Likewise.
22794
22795 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
22796 builtin functions.
22797 (UNSPEC_CDTBCD): Likewise.
22798 (UNSPEC_CBCDTD): Likewise.
22799 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
22800 (UNSPEC_DIVEO): Likewise.
22801 (UNSPEC_DIVEU): Likewise.
22802 (UNSPEC_DIVEUO): Likewise.
22803 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
22804 pack/unpack 128-bit types.
22805 (UNSPEC_PACK_128BIT): Likewise.
22806 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
22807 (udiv<mode>3): Use idiv_ldiv mode attribute.
22808 (div<mode>3): Likewise.
22809 (addg6s): Add new BCD builtin functions.
22810 (cdtbcd): Likewise.
22811 (cbcdtd): Likewise.
22812 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
22813 (div_extend): Likewise.
22814 (div<div_extend>_<mode>"): Likewise.
22815 (FP128_64): Add support for new builtin functions to pack/unpack
22816 128-bit types.
22817 (unpack<mode>): Likewise.
22818 (unpacktf_0): Likewise.
22819 (unpacktf_1): Likewise.
22820 (unpack<mode>_dm): Likewise.
22821 (unpack<mode>_nodm): Likewise.
22822 (pack<mode>): Likewise.
22823 (unpackv1ti): Likewise.
22824 (packv1ti): Likewise.
22825
22826 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
22827
22828 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
22829 is disabled.
22830
22831 2014-04-24 Jakub Jelinek <jakub@redhat.com>
22832
22833 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
22834 * gimplify.c (omp_is_private): Change last argument's type to int.
22835 Only diagnose lastprivate if the simd argument is 1, only diagnose
22836 linear if the simd argument is 2.
22837 (gimplify_omp_for): Adjust omp_is_private callers. When adding
22838 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
22839 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
22840 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
22841 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
22842 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
22843 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
22844 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
22845 * tree-nested.c (convert_nonlocal_omp_clauses,
22846 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
22847
22848 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
22849
22850 PR target/60822
22851 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
22852 operand 1.
22853
22854 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
22855
22856 * flag-types.h (enum ivar_visibility): Add.
22857
22858 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
22859
22860 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
22861 function * argument.
22862
22863 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
22864
22865 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
22866
22867 2014-04-24 Radovan Obradovic <robradovic@mips.com>
22868 Tom de Vries <tom@codesourcery.com>
22869
22870 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
22871 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
22872 reg-note.
22873 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
22874 * emit-rtl.c (try_split): Same.
22875
22876 2014-04-24 Radovan Obradovic <robradovic@mips.com>
22877 Tom de Vries <tom@codesourcery.com>
22878
22879 * common.opt (fuse-caller-save): New option.
22880
22881 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
22882
22883 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
22884 elements for big-endian.
22885
22886 2014-04-24 Richard Biener <rguenther@suse.de>
22887
22888 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
22889 during TER and instead use the sepops interface for expanding
22890 non-GIMPLE_SINGLE_RHS.
22891
22892 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22893
22894 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
22895 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
22896
22897 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22898
22899 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
22900 assembler 64-bit option.
22901 * configure: Regenerate.
22902
22903 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22904
22905 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
22906 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
22907 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
22908 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
22909 (TARGET_CRYPTO): Take TARGET_SIMD into account.
22910
22911 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22912
22913 * config/aarch64/aarch64-builtins.c
22914 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
22915 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
22916 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
22917 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
22918 builtins.
22919 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
22920 (Vrevsuff): New mode attribute.
22921
22922 2014-04-24 Terry Guo <terry.guo@arm.com>
22923
22924 * config/arm/arm.h (machine_function): Define variable
22925 after_arm_reorg here.
22926 * config/arm/arm.c (after_arm_reorg): Remove the definition.
22927 (arm_split_constant): Update the way to access variable
22928 after_arm_reorg.
22929 (arm_reorg): Ditto.
22930 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
22931
22932 2014-04-23 Tom de Vries <tom@codesourcery.com>
22933
22934 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
22935
22936 2014-04-23 David Malcolm <dmalcolm@redhat.com>
22937
22938 * is-a.h: Update comments to reflect the following changes to the
22939 "pointerness" of the API, making the template parameter match the
22940 return type, allowing use of is-a.h with typedefs of pointers.
22941 (is_a_helper::cast): Return a T rather then a pointer to a T, so
22942 that the return type matches the parameter to the is_a_helper.
22943 (as_a): Likewise.
22944 (dyn_cast): Likewise.
22945
22946 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
22947 pointer from the is-a.h API.
22948
22949 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
22950 (is_a_helper <cgraph_node *>::test): ...this, matching change to
22951 is-a.h API.
22952 (is_a_helper <varpool_node>::test): Likewise, convert to...
22953 (is_a_helper <varpool_node *>::test): ...this.
22954
22955 (varpool_first_variable): Update for removal of implicit pointer
22956 from the is-a.h API.
22957 (varpool_next_variable): Likewise.
22958 (varpool_first_static_initializer): Likewise.
22959 (varpool_next_static_initializer): Likewise.
22960 (varpool_first_defined_variable): Likewise.
22961 (varpool_next_defined_variable): Likewise.
22962 (cgraph_first_defined_function): Likewise.
22963 (cgraph_next_defined_function): Likewise.
22964 (cgraph_first_function): Likewise.
22965 (cgraph_next_function): Likewise.
22966 (cgraph_first_function_with_gimple_body): Likewise.
22967 (cgraph_next_function_with_gimple_body): Likewise.
22968 (cgraph_alias_target): Likewise.
22969 (varpool_alias_target): Likewise.
22970 (cgraph_function_or_thunk_node): Likewise.
22971 (varpool_variable_node): Likewise.
22972 (symtab_real_symbol_p): Likewise.
22973 * cgraphunit.c (referred_to_p): Likewise.
22974 (analyze_functions): Likewise.
22975 (handle_alias_pairs): Likewise.
22976 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
22977 * gimple-ssa.h (gimple_vuse_op): Likewise.
22978 (gimple_vdef_op): Likewise.
22979 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
22980 * gimple.c (gimple_build_asm_1): Likewise.
22981 (gimple_build_try): Likewise.
22982 (gimple_build_resx): Likewise.
22983 (gimple_build_eh_dispatch): Likewise.
22984 (gimple_build_omp_for): Likewise.
22985 (gimple_omp_for_set_clauses): Likewise.
22986
22987 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
22988 (is_a_helper <gimple_statement_asm *>::test): ...this.
22989 (is_a_helper <gimple_statement_bind>::test): Convert to...
22990 (is_a_helper <gimple_statement_bind *>::test): ...this.
22991 (is_a_helper <gimple_statement_call>::test): Convert to...
22992 (is_a_helper <gimple_statement_call *>::test): ...this.
22993 (is_a_helper <gimple_statement_catch>::test): Convert to...
22994 (is_a_helper <gimple_statement_catch *>::test): ...this.
22995 (is_a_helper <gimple_statement_resx>::test): Convert to...
22996 (is_a_helper <gimple_statement_resx *>::test): ...this.
22997 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
22998 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
22999 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
23000 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
23001 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
23002 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
23003 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
23004 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
23005 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
23006 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
23007 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
23008 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
23009 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
23010 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
23011 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
23012 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
23013 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
23014 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
23015 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
23016 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
23017 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
23018 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
23019 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
23020 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
23021 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
23022 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
23023 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
23024 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
23025 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
23026 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
23027 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
23028 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
23029 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
23030 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
23031 (is_a_helper <gimple_statement_phi>::test): Convert to...
23032 (is_a_helper <gimple_statement_phi *>::test): ...this.
23033 (is_a_helper <gimple_statement_transaction>::test): Convert to...
23034 (is_a_helper <gimple_statement_transaction *>::test): ...this.
23035 (is_a_helper <gimple_statement_try>::test): Convert to...
23036 (is_a_helper <gimple_statement_try *>::test): ...this.
23037 (is_a_helper <gimple_statement_wce>::test): Convert to...
23038 (is_a_helper <gimple_statement_wce *>::test): ...this.
23039 (is_a_helper <const gimple_statement_asm>::test): Convert to...
23040 (is_a_helper <const gimple_statement_asm *>::test): ...this.
23041 (is_a_helper <const gimple_statement_bind>::test): Convert to...
23042 (is_a_helper <const gimple_statement_bind *>::test): ...this.
23043 (is_a_helper <const gimple_statement_call>::test): Convert to...
23044 (is_a_helper <const gimple_statement_call *>::test): ...this.
23045 (is_a_helper <const gimple_statement_catch>::test): Convert to...
23046 (is_a_helper <const gimple_statement_catch *>::test): ...this.
23047 (is_a_helper <const gimple_statement_resx>::test): Convert to...
23048 (is_a_helper <const gimple_statement_resx *>::test): ...this.
23049 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
23050 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
23051 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
23052 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
23053 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
23054 Convert to...
23055 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
23056 ...this.
23057 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
23058 Convert to...
23059 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
23060 ...this.
23061 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
23062 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
23063 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
23064 to...
23065 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
23066 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
23067 to...
23068 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
23069 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
23070 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
23071 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
23072 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
23073 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
23074 to...
23075 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
23076 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
23077 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
23078 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
23079 to...
23080 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
23081 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
23082 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
23083 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
23084 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
23085 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
23086 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
23087 (is_a_helper <const gimple_statement_phi>::test): Convert to...
23088 (is_a_helper <const gimple_statement_phi *>::test): ...this.
23089 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
23090 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
23091 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
23092 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
23093 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
23094 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
23095 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
23096 to...
23097 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
23098 ...this.
23099 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
23100 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
23101
23102 (gimple_use_ops): Update for removal of implicit pointer from the
23103 is-a.h API.
23104 (gimple_set_use_ops): Likewise.
23105 (gimple_vuse): Likewise.
23106 (gimple_vdef): Likewise.
23107 (gimple_vuse_ptr): Likewise.
23108 (gimple_vdef_ptr): Likewise.
23109 (gimple_set_vuse): Likewise.
23110 (gimple_set_vdef): Likewise.
23111 (gimple_omp_return_set_lhs): Likewise.
23112 (gimple_omp_return_lhs): Likewise.
23113 (gimple_omp_return_lhs_ptr): Likewise.
23114 (gimple_call_fntype): Likewise.
23115 (gimple_call_set_fntype): Likewise.
23116 (gimple_call_set_internal_fn): Likewise.
23117 (gimple_call_use_set): Likewise.
23118 (gimple_call_clobber_set): Likewise.
23119 (gimple_bind_vars): Likewise.
23120 (gimple_bind_set_vars): Likewise.
23121 (gimple_bind_body_ptr): Likewise.
23122 (gimple_bind_set_body): Likewise.
23123 (gimple_bind_add_stmt): Likewise.
23124 (gimple_bind_block): Likewise.
23125 (gimple_bind_set_block): Likewise.
23126 (gimple_asm_ninputs): Likewise.
23127 (gimple_asm_noutputs): Likewise.
23128 (gimple_asm_nclobbers): Likewise.
23129 (gimple_asm_nlabels): Likewise.
23130 (gimple_asm_input_op): Likewise.
23131 (gimple_asm_input_op_ptr): Likewise.
23132 (gimple_asm_output_op): Likewise.
23133 (gimple_asm_output_op_ptr): Likewise.
23134 (gimple_asm_set_output_op): Likewise.
23135 (gimple_asm_clobber_op): Likewise.
23136 (gimple_asm_set_clobber_op): Likewise.
23137 (gimple_asm_label_op): Likewise.
23138 (gimple_asm_set_label_op): Likewise.
23139 (gimple_asm_string): Likewise.
23140 (gimple_catch_types): Likewise.
23141 (gimple_catch_types_ptr): Likewise.
23142 (gimple_catch_handler_ptr): Likewise.
23143 (gimple_catch_set_types): Likewise.
23144 (gimple_catch_set_handler): Likewise.
23145 (gimple_eh_filter_types): Likewise.
23146 (gimple_eh_filter_types_ptr): Likewise.
23147 (gimple_eh_filter_failure_ptr): Likewise.
23148 (gimple_eh_filter_set_types): Likewise.
23149 (gimple_eh_filter_set_failure): Likewise.
23150 (gimple_eh_must_not_throw_fndecl): Likewise.
23151 (gimple_eh_must_not_throw_set_fndecl): Likewise.
23152 (gimple_eh_else_n_body_ptr): Likewise.
23153 (gimple_eh_else_e_body_ptr): Likewise.
23154 (gimple_eh_else_set_n_body): Likewise.
23155 (gimple_eh_else_set_e_body): Likewise.
23156 (gimple_try_eval_ptr): Likewise.
23157 (gimple_try_cleanup_ptr): Likewise.
23158 (gimple_try_set_eval): Likewise.
23159 (gimple_try_set_cleanup): Likewise.
23160 (gimple_wce_cleanup_ptr): Likewise.
23161 (gimple_wce_set_cleanup): Likewise.
23162 (gimple_phi_capacity): Likewise.
23163 (gimple_phi_num_args): Likewise.
23164 (gimple_phi_result): Likewise.
23165 (gimple_phi_result_ptr): Likewise.
23166 (gimple_phi_set_result): Likewise.
23167 (gimple_phi_arg): Likewise.
23168 (gimple_phi_set_arg): Likewise.
23169 (gimple_resx_region): Likewise.
23170 (gimple_resx_set_region): Likewise.
23171 (gimple_eh_dispatch_region): Likewise.
23172 (gimple_eh_dispatch_set_region): Likewise.
23173 (gimple_omp_critical_name): Likewise.
23174 (gimple_omp_critical_name_ptr): Likewise.
23175 (gimple_omp_critical_set_name): Likewise.
23176 (gimple_omp_for_clauses): Likewise.
23177 (gimple_omp_for_clauses_ptr): Likewise.
23178 (gimple_omp_for_set_clauses): Likewise.
23179 (gimple_omp_for_collapse): Likewise.
23180 (gimple_omp_for_index): Likewise.
23181 (gimple_omp_for_index_ptr): Likewise.
23182 (gimple_omp_for_set_index): Likewise.
23183 (gimple_omp_for_initial): Likewise.
23184 (gimple_omp_for_initial_ptr): Likewise.
23185 (gimple_omp_for_set_initial): Likewise.
23186 (gimple_omp_for_final): Likewise.
23187 (gimple_omp_for_final_ptr): Likewise.
23188 (gimple_omp_for_set_final): Likewise.
23189 (gimple_omp_for_incr): Likewise.
23190 (gimple_omp_for_incr_ptr): Likewise.
23191 (gimple_omp_for_set_incr): Likewise.
23192 (gimple_omp_for_pre_body_ptr): Likewise.
23193 (gimple_omp_for_set_pre_body): Likewise.
23194 (gimple_omp_parallel_clauses): Likewise.
23195 (gimple_omp_parallel_clauses_ptr): Likewise.
23196 (gimple_omp_parallel_set_clauses): Likewise.
23197 (gimple_omp_parallel_child_fn): Likewise.
23198 (gimple_omp_parallel_child_fn_ptr): Likewise.
23199 (gimple_omp_parallel_set_child_fn): Likewise.
23200 (gimple_omp_parallel_data_arg): Likewise.
23201 (gimple_omp_parallel_data_arg_ptr): Likewise.
23202 (gimple_omp_parallel_set_data_arg): Likewise.
23203 (gimple_omp_task_clauses): Likewise.
23204 (gimple_omp_task_clauses_ptr): Likewise.
23205 (gimple_omp_task_set_clauses): Likewise.
23206 (gimple_omp_task_child_fn): Likewise.
23207 (gimple_omp_task_child_fn_ptr): Likewise.
23208 (gimple_omp_task_set_child_fn): Likewise.
23209 (gimple_omp_task_data_arg): Likewise.
23210 (gimple_omp_task_data_arg_ptr): Likewise.
23211 (gimple_omp_task_set_data_arg): Likewise.
23212 (gimple_omp_taskreg_clauses): Likewise.
23213 (gimple_omp_taskreg_clauses_ptr): Likewise.
23214 (gimple_omp_taskreg_set_clauses): Likewise.
23215 (gimple_omp_taskreg_child_fn): Likewise.
23216 (gimple_omp_taskreg_child_fn_ptr): Likewise.
23217 (gimple_omp_taskreg_set_child_fn): Likewise.
23218 (gimple_omp_taskreg_data_arg): Likewise.
23219 (gimple_omp_taskreg_data_arg_ptr): Likewise.
23220 (gimple_omp_taskreg_set_data_arg): Likewise.
23221 (gimple_omp_task_copy_fn): Likewise.
23222 (gimple_omp_task_copy_fn_ptr): Likewise.
23223 (gimple_omp_task_set_copy_fn): Likewise.
23224 (gimple_omp_task_arg_size): Likewise.
23225 (gimple_omp_task_arg_size_ptr): Likewise.
23226 (gimple_omp_task_set_arg_size): Likewise.
23227 (gimple_omp_task_arg_align): Likewise.
23228 (gimple_omp_task_arg_align_ptr): Likewise.
23229 (gimple_omp_task_set_arg_align): Likewise.
23230 (gimple_omp_single_clauses): Likewise.
23231 (gimple_omp_single_clauses_ptr): Likewise.
23232 (gimple_omp_single_set_clauses): Likewise.
23233 (gimple_omp_target_clauses): Likewise.
23234 (gimple_omp_target_clauses_ptr): Likewise.
23235 (gimple_omp_target_set_clauses): Likewise.
23236 (gimple_omp_target_child_fn): Likewise.
23237 (gimple_omp_target_child_fn_ptr): Likewise.
23238 (gimple_omp_target_set_child_fn): Likewise.
23239 (gimple_omp_target_data_arg): Likewise.
23240 (gimple_omp_target_data_arg_ptr): Likewise.
23241 (gimple_omp_target_set_data_arg): Likewise.
23242 (gimple_omp_teams_clauses): Likewise.
23243 (gimple_omp_teams_clauses_ptr): Likewise.
23244 (gimple_omp_teams_set_clauses): Likewise.
23245 (gimple_omp_sections_clauses): Likewise.
23246 (gimple_omp_sections_clauses_ptr): Likewise.
23247 (gimple_omp_sections_set_clauses): Likewise.
23248 (gimple_omp_sections_control): Likewise.
23249 (gimple_omp_sections_control_ptr): Likewise.
23250 (gimple_omp_sections_set_control): Likewise.
23251 (gimple_omp_for_set_cond): Likewise.
23252 (gimple_omp_for_cond): Likewise.
23253 (gimple_omp_atomic_store_set_val): Likewise.
23254 (gimple_omp_atomic_store_val): Likewise.
23255 (gimple_omp_atomic_store_val_ptr): Likewise.
23256 (gimple_omp_atomic_load_set_lhs): Likewise.
23257 (gimple_omp_atomic_load_lhs): Likewise.
23258 (gimple_omp_atomic_load_lhs_ptr): Likewise.
23259 (gimple_omp_atomic_load_set_rhs): Likewise.
23260 (gimple_omp_atomic_load_rhs): Likewise.
23261 (gimple_omp_atomic_load_rhs_ptr): Likewise.
23262 (gimple_omp_continue_control_def): Likewise.
23263 (gimple_omp_continue_control_def_ptr): Likewise.
23264 (gimple_omp_continue_set_control_def): Likewise.
23265 (gimple_omp_continue_control_use): Likewise.
23266 (gimple_omp_continue_control_use_ptr): Likewise.
23267 (gimple_omp_continue_set_control_use): Likewise.
23268 (gimple_transaction_body_ptr): Likewise.
23269 (gimple_transaction_label): Likewise.
23270 (gimple_transaction_label_ptr): Likewise.
23271 (gimple_transaction_set_body): Likewise.
23272 (gimple_transaction_set_label): Likewise.
23273
23274 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
23275 * ipa-inline-analysis.c (inline_write_summary): Likewise.
23276 * ipa-ref.c (ipa_record_reference): Likewise.
23277 * ipa-reference.c (analyze_function): Likewise.
23278 (ipa_reference_write_optimization_summary): Likewise.
23279 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
23280 (address_taken_from_non_vtable_p): Likewise.
23281 (comdat_can_be_unshared_p_1): Likewise.
23282 * lto-cgraph.c (lto_output_ref): Likewise.
23283 (add_references): Likewise.
23284 (compute_ltrans_boundary): Likewise.
23285 (output_symtab): Likewise.
23286 (input_ref): Likewise.
23287 (input_cgraph_1): Likewise.
23288 (output_cgraph_opt_summary): Likewise.
23289 * lto-streamer-out.c (lto_output): Likewise.
23290 (output_symbol_p): Likewise.
23291 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
23292 (lsei_start_function_in_partition): Likewise.
23293 (lsei_next_variable_in_partition): Likewise.
23294 (lsei_start_variable_in_partition): Likewise.
23295 * symtab.c (insert_to_assembler_name_hash): Likewise.
23296 (unlink_from_assembler_name_hash): Likewise.
23297 (symtab_unregister_node): Likewise.
23298 (symtab_remove_node): Likewise.
23299 (dump_symtab_node): Likewise.
23300 (verify_symtab_base): Likewise.
23301 (verify_symtab_node): Likewise.
23302 (symtab_make_decl_local): Likewise.
23303 (symtab_alias_ultimate_target): Likewise.
23304 (symtab_resolve_alias): Likewise.
23305 (symtab_get_symbol_partitioning_class): Likewise.
23306 * tree-phinodes.c (allocate_phi_node): Likewise.
23307 (reserve_phi_args_for_new_edge): Likewise.
23308 (remove_phi_args): Likewise.
23309 * varpool.c (varpool_node_for_asm): Likewise.
23310 (varpool_remove_unreferenced_decls): Likewise.
23311
23312 2014-04-23 Jeff Law <law@redhat.com>
23313
23314 PR tree-optimization/60902
23315 * tree-ssa-threadedge.c
23316 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
23317 invalidate outputs from statements that do not produce useful
23318 outputs for threading.
23319
23320 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
23321
23322 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
23323 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
23324 machine descriptions for Stack Smashing Protector.
23325
23326 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
23327
23328 * aarch64.md (<optab>_rol<mode>3): New pattern.
23329 (<optab>_rolsi3_uxtw): Likewise.
23330 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
23331
23332 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
23333
23334 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
23335 (arm_cortex_a12_tune): Likewise.
23336
23337 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23338
23339 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
23340
23341 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23342
23343 * config/arm/arm.md (arm_rev16si2): New pattern.
23344 (arm_rev16si2_alt): Likewise.
23345 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
23346
23347 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23348
23349 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
23350 (rev16<mode>2_alt): Likewise.
23351 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
23352 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
23353 (aarch_rev16_shleft_mask_imm_p): Likewise.
23354 (aarch_rev16_p_1): Likewise.
23355 (aarch_rev16_p): Likewise.
23356 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
23357 (aarch_rev16_shright_mask_imm_p): Likewise.
23358 (aarch_rev16_shleft_mask_imm_p): Likewise.
23359
23360 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23361
23362 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
23363 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
23364 rev cost.
23365 (cortex_a53_extra_costs): Likewise.
23366 (cortex_a57_extra_costs): Likewise.
23367 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
23368 (cortexa7_extra_costs): Likewise.
23369 (cortexa8_extra_costs): Likewise.
23370 (cortexa12_extra_costs): Likewise.
23371 (cortexa15_extra_costs): Likewise.
23372 (v7m_extra_costs): Likewise.
23373 (arm_new_rtx_costs): Handle BSWAP.
23374
23375 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23376
23377 * config/arm/arm.c (cortexa8_extra_costs): New table.
23378 (arm_cortex_a8_tune): New tuning struct.
23379 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
23380
23381 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23382
23383 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
23384
23385 2014-04-23 Richard Biener <rguenther@suse.de>
23386
23387 * Makefile.in (OBJS): Remove loop-unswitch.o.
23388 * tree-pass.h (make_pass_rtl_unswitch): Remove.
23389 * passes.def (pass_rtl_unswitch): Likewise.
23390 * loop-init.c (gate_rtl_unswitch): Likewise.
23391 (rtl_unswitch): Likewise.
23392 (pass_data_rtl_unswitch): Likewise.
23393 (pass_rtl_unswitch): Likewise.
23394 (make_pass_rtl_unswitch): Likewise.
23395 * rtl.h (reversed_condition): Likewise.
23396 (compare_and_jump_seq): Likewise.
23397 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
23398 and make static.
23399 * loop-unroll.c (compare_and_jump_seq): Likewise.
23400
23401 2014-04-23 Richard Biener <rguenther@suse.de>
23402
23403 PR tree-optimization/60903
23404 * tree-ssa-loop-im.c (analyze_memory_references): Remove
23405 commented code block.
23406 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
23407 loop flags to newly created BBs and edges.
23408
23409 2014-04-23 Nick Clifton <nickc@redhat.com>
23410
23411 * config/msp430/msp430.c (msp430_handle_option): Move function
23412 to msp430-common.c
23413 (msp430_option_override): Simplify mcu and mcpu option handling.
23414 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
23415 support for -mhwmult command line option.
23416 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
23417 -mhwmult command line option.
23418 (msp430_hwmult_enabled): Delete.
23419 (msp43o_output_labelref): Add support for -mhwmult command line option.
23420 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
23421 (umulsidi3): Likewise.
23422 * config/msp430/msp430.opt (mmcu): Add Report attribute.
23423 (mcpu, mlarge, msmall): Likewise.
23424 (mhwmult): New option.
23425 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
23426 prototype.
23427 (msp430_is_f5_mcu): Remove prototype.
23428 (msp430_use_f5_series_hwmult): Add prototype.
23429 * config/msp430/msp430-opts.h: New file.
23430 * common/config/msp430: New directory.
23431 * common/config/msp430/msp430-common.c: New file.
23432 * config.gcc (msp430): Remove target_has_targetm_common.
23433 * doc/invoke.texi: Document -mhwmult command line option.
23434
23435 2014-04-23 Nick Clifton <nickc@redhat.com>
23436
23437 * config/i386/cygwin.h (ENDFILE_SPEC): Include
23438 default-manifest.o if it can be found in the search path.
23439 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
23440
23441 2014-04-23 Terry Guo <terry.guo@arm.com>
23442
23443 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
23444
23445 2014-04-23 Richard Biener <rguenther@suse.de>
23446
23447 PR middle-end/60895
23448 * tree-inline.c (declare_return_variable): Use mark_addressable.
23449
23450 2014-04-23 Richard Biener <rguenther@suse.de>
23451
23452 PR middle-end/60891
23453 * loop-init.c (loop_optimizer_init): Make sure to apply
23454 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
23455
23456 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23457
23458 PR sanitizer/60275
23459 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
23460 New options.
23461 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
23462 if flag_sanitize_undefined_trap_on_error.
23463 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
23464 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
23465 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
23466 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
23467 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
23468 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
23469 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
23470 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
23471 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
23472 * ubsan.c (ubsan_instrument_unreachable): Return
23473 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
23474 (ubsan_expand_null_ifn): Emit __builtin_trap ()
23475 if flag_sanitize_undefined_trap_on_error and
23476 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
23477 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
23478 instrument_bool_enum_load): Emit __builtin_trap () if
23479 flag_sanitize_undefined_trap_on_error and
23480 __builtin_handle_*_abort () if !flag_sanitize_recover.
23481 * doc/invoke.texi (-fsanitize-recover,
23482 -fsanitize-undefined-trap-on-error): Document.
23483
23484 2014-04-22 Christian Bruel <christian.bruel@st.com>
23485
23486 * config/sh/sh.md (mov<mode>): Replace movQIHI.
23487 Force immediates to SImode.
23488
23489 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
23490
23491 * config/nios2/nios2.md (UNSPEC_ROUND): New.
23492 (lroundsfsi2): New.
23493 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
23494 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
23495 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
23496 (nios2_fpu_insn): Add entry for round.
23497 (N2FPU_NO_ERRNO_P): Define.
23498 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
23499 flag_errno_math.
23500 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
23501
23502 2014-04-22 Richard Henderson <rth@redhat.com>
23503
23504 * config/aarch64/aarch64 (addti3, subti3): New expanders.
23505 (add<GPI>3_compare0): Remove leading * from name.
23506 (add<GPI>3_carryin): Likewise.
23507 (sub<GPI>3_compare0): Likewise.
23508 (sub<GPI>3_carryin): Likewise.
23509 (<su_optab>mulditi3): New expander.
23510 (multi3): New expander.
23511 (madd<GPI>): Remove leading * from name.
23512
23513 2014-04-22 Martin Jambor <mjambor@suse.cz>
23514
23515 * cgraphclones.c (cgraph_function_versioning): Copy
23516 ipa_transforms_to_apply instead of asserting it is empty.
23517
23518 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
23519
23520 PR target/60868
23521 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
23522 on count_exp to get mode.
23523
23524 2014-04-22 Andrew Pinski <apinski@cavium.com>
23525
23526 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
23527 Handle TLS for ILP32.
23528 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
23529 (tlsie_small_<mode>): this and handle PTR.
23530 (tlsie_small_sidi): New pattern.
23531 (tlsle_small): Change to an expand to handle ILP32.
23532 (tlsle_small_<mode>): New pattern.
23533 (tlsdesc_small): Rename to ...
23534 (tlsdesc_small_<mode>): this and handle PTR.
23535
23536 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23537
23538 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
23539
23540 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23541
23542 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
23543 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
23544 (aarch64_types_signed_poly_qualifiers): Likewise.
23545 (aarch64_types_unsigned_signed_qualifiers): Likewise.
23546 (aarch64_types_poly_signed_qualifiers): Likewise.
23547 (TYPES_REINTERP_SS): Type macro added.
23548 (TYPES_REINTERP_SU): Likewise.
23549 (TYPES_REINTERP_SP): Likewise.
23550 (TYPES_REINTERP_US): Likewise.
23551 (TYPES_REINTERP_PS): Likewise.
23552 (aarch64_fold_builtin): New expression folding added.
23553 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
23554 Declarations removed.
23555 (REINTERP_SS): Declarations added.
23556 (REINTERP_US): Likewise.
23557 (REINTERP_PS): Likewise.
23558 (REINTERP_SU): Likewise.
23559 (REINTERP_SP): Likewise.
23560 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
23561 (vreinterpretq_p8_f64): Likewise.
23562 (vreinterpret_p16_f64): Likewise.
23563 (vreinterpretq_p16_f64): Likewise.
23564 (vreinterpret_f32_f64): Likewise.
23565 (vreinterpretq_f32_f64): Likewise.
23566 (vreinterpret_f64_f32): Likewise.
23567 (vreinterpret_f64_p8): Likewise.
23568 (vreinterpret_f64_p16): Likewise.
23569 (vreinterpret_f64_s8): Likewise.
23570 (vreinterpret_f64_s16): Likewise.
23571 (vreinterpret_f64_s32): Likewise.
23572 (vreinterpret_f64_s64): Likewise.
23573 (vreinterpret_f64_u8): Likewise.
23574 (vreinterpret_f64_u16): Likewise.
23575 (vreinterpret_f64_u32): Likewise.
23576 (vreinterpret_f64_u64): Likewise.
23577 (vreinterpretq_f64_f32): Likewise.
23578 (vreinterpretq_f64_p8): Likewise.
23579 (vreinterpretq_f64_p16): Likewise.
23580 (vreinterpretq_f64_s8): Likewise.
23581 (vreinterpretq_f64_s16): Likewise.
23582 (vreinterpretq_f64_s32): Likewise.
23583 (vreinterpretq_f64_s64): Likewise.
23584 (vreinterpretq_f64_u8): Likewise.
23585 (vreinterpretq_f64_u16): Likewise.
23586 (vreinterpretq_f64_u32): Likewise.
23587 (vreinterpretq_f64_u64): Likewise.
23588 (vreinterpret_s64_f64): Likewise.
23589 (vreinterpretq_s64_f64): Likewise.
23590 (vreinterpret_u64_f64): Likewise.
23591 (vreinterpretq_u64_f64): Likewise.
23592 (vreinterpret_s8_f64): Likewise.
23593 (vreinterpretq_s8_f64): Likewise.
23594 (vreinterpret_s16_f64): Likewise.
23595 (vreinterpretq_s16_f64): Likewise.
23596 (vreinterpret_s32_f64): Likewise.
23597 (vreinterpretq_s32_f64): Likewise.
23598 (vreinterpret_u8_f64): Likewise.
23599 (vreinterpretq_u8_f64): Likewise.
23600 (vreinterpret_u16_f64): Likewise.
23601 (vreinterpretq_u16_f64): Likewise.
23602 (vreinterpret_u32_f64): Likewise.
23603 (vreinterpretq_u32_f64): Likewise.
23604
23605 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23606
23607 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
23608 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
23609 (vreinterpret_p8_s8): Likewise.
23610 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
23611 (vreinterpret_p8_s16): Likewise.
23612 (vreinterpret_p8_s32): Likewise.
23613 (vreinterpret_p8_s64): Likewise.
23614 (vreinterpret_p8_f32): Likewise.
23615 (vreinterpret_p8_u8): Likewise.
23616 (vreinterpret_p8_u16): Likewise.
23617 (vreinterpret_p8_u32): Likewise.
23618 (vreinterpret_p8_u64): Likewise.
23619 (vreinterpret_p8_p16): Likewise.
23620 (vreinterpretq_p8_s8): Likewise.
23621 (vreinterpretq_p8_s16): Likewise.
23622 (vreinterpretq_p8_s32): Likewise.
23623 (vreinterpretq_p8_s64): Likewise.
23624 (vreinterpretq_p8_f32): Likewise.
23625 (vreinterpretq_p8_u8): Likewise.
23626 (vreinterpretq_p8_u16): Likewise.
23627 (vreinterpretq_p8_u32): Likewise.
23628 (vreinterpretq_p8_u64): Likewise.
23629 (vreinterpretq_p8_p16): Likewise.
23630 (vreinterpret_p16_s8): Likewise.
23631 (vreinterpret_p16_s16): Likewise.
23632 (vreinterpret_p16_s32): Likewise.
23633 (vreinterpret_p16_s64): Likewise.
23634 (vreinterpret_p16_f32): Likewise.
23635 (vreinterpret_p16_u8): Likewise.
23636 (vreinterpret_p16_u16): Likewise.
23637 (vreinterpret_p16_u32): Likewise.
23638 (vreinterpret_p16_u64): Likewise.
23639 (vreinterpret_p16_p8): Likewise.
23640 (vreinterpretq_p16_s8): Likewise.
23641 (vreinterpretq_p16_s16): Likewise.
23642 (vreinterpretq_p16_s32): Likewise.
23643 (vreinterpretq_p16_s64): Likewise.
23644 (vreinterpretq_p16_f32): Likewise.
23645 (vreinterpretq_p16_u8): Likewise.
23646 (vreinterpretq_p16_u16): Likewise.
23647 (vreinterpretq_p16_u32): Likewise.
23648 (vreinterpretq_p16_u64): Likewise.
23649 (vreinterpretq_p16_p8): Likewise.
23650 (vreinterpret_f32_s8): Likewise.
23651 (vreinterpret_f32_s16): Likewise.
23652 (vreinterpret_f32_s32): Likewise.
23653 (vreinterpret_f32_s64): Likewise.
23654 (vreinterpret_f32_u8): Likewise.
23655 (vreinterpret_f32_u16): Likewise.
23656 (vreinterpret_f32_u32): Likewise.
23657 (vreinterpret_f32_u64): Likewise.
23658 (vreinterpret_f32_p8): Likewise.
23659 (vreinterpret_f32_p16): Likewise.
23660 (vreinterpretq_f32_s8): Likewise.
23661 (vreinterpretq_f32_s16): Likewise.
23662 (vreinterpretq_f32_s32): Likewise.
23663 (vreinterpretq_f32_s64): Likewise.
23664 (vreinterpretq_f32_u8): Likewise.
23665 (vreinterpretq_f32_u16): Likewise.
23666 (vreinterpretq_f32_u32): Likewise.
23667 (vreinterpretq_f32_u64): Likewise.
23668 (vreinterpretq_f32_p8): Likewise.
23669 (vreinterpretq_f32_p16): Likewise.
23670 (vreinterpret_s64_s8): Likewise.
23671 (vreinterpret_s64_s16): Likewise.
23672 (vreinterpret_s64_s32): Likewise.
23673 (vreinterpret_s64_f32): Likewise.
23674 (vreinterpret_s64_u8): Likewise.
23675 (vreinterpret_s64_u16): Likewise.
23676 (vreinterpret_s64_u32): Likewise.
23677 (vreinterpret_s64_u64): Likewise.
23678 (vreinterpret_s64_p8): Likewise.
23679 (vreinterpret_s64_p16): Likewise.
23680 (vreinterpretq_s64_s8): Likewise.
23681 (vreinterpretq_s64_s16): Likewise.
23682 (vreinterpretq_s64_s32): Likewise.
23683 (vreinterpretq_s64_f32): Likewise.
23684 (vreinterpretq_s64_u8): Likewise.
23685 (vreinterpretq_s64_u16): Likewise.
23686 (vreinterpretq_s64_u32): Likewise.
23687 (vreinterpretq_s64_u64): Likewise.
23688 (vreinterpretq_s64_p8): Likewise.
23689 (vreinterpretq_s64_p16): Likewise.
23690 (vreinterpret_u64_s8): Likewise.
23691 (vreinterpret_u64_s16): Likewise.
23692 (vreinterpret_u64_s32): Likewise.
23693 (vreinterpret_u64_s64): Likewise.
23694 (vreinterpret_u64_f32): Likewise.
23695 (vreinterpret_u64_u8): Likewise.
23696 (vreinterpret_u64_u16): Likewise.
23697 (vreinterpret_u64_u32): Likewise.
23698 (vreinterpret_u64_p8): Likewise.
23699 (vreinterpret_u64_p16): Likewise.
23700 (vreinterpretq_u64_s8): Likewise.
23701 (vreinterpretq_u64_s16): Likewise.
23702 (vreinterpretq_u64_s32): Likewise.
23703 (vreinterpretq_u64_s64): Likewise.
23704 (vreinterpretq_u64_f32): Likewise.
23705 (vreinterpretq_u64_u8): Likewise.
23706 (vreinterpretq_u64_u16): Likewise.
23707 (vreinterpretq_u64_u32): Likewise.
23708 (vreinterpretq_u64_p8): Likewise.
23709 (vreinterpretq_u64_p16): Likewise.
23710 (vreinterpret_s8_s16): Likewise.
23711 (vreinterpret_s8_s32): Likewise.
23712 (vreinterpret_s8_s64): Likewise.
23713 (vreinterpret_s8_f32): Likewise.
23714 (vreinterpret_s8_u8): Likewise.
23715 (vreinterpret_s8_u16): Likewise.
23716 (vreinterpret_s8_u32): Likewise.
23717 (vreinterpret_s8_u64): Likewise.
23718 (vreinterpret_s8_p8): Likewise.
23719 (vreinterpret_s8_p16): Likewise.
23720 (vreinterpretq_s8_s16): Likewise.
23721 (vreinterpretq_s8_s32): Likewise.
23722 (vreinterpretq_s8_s64): Likewise.
23723 (vreinterpretq_s8_f32): Likewise.
23724 (vreinterpretq_s8_u8): Likewise.
23725 (vreinterpretq_s8_u16): Likewise.
23726 (vreinterpretq_s8_u32): Likewise.
23727 (vreinterpretq_s8_u64): Likewise.
23728 (vreinterpretq_s8_p8): Likewise.
23729 (vreinterpretq_s8_p16): Likewise.
23730 (vreinterpret_s16_s8): Likewise.
23731 (vreinterpret_s16_s32): Likewise.
23732 (vreinterpret_s16_s64): Likewise.
23733 (vreinterpret_s16_f32): Likewise.
23734 (vreinterpret_s16_u8): Likewise.
23735 (vreinterpret_s16_u16): Likewise.
23736 (vreinterpret_s16_u32): Likewise.
23737 (vreinterpret_s16_u64): Likewise.
23738 (vreinterpret_s16_p8): Likewise.
23739 (vreinterpret_s16_p16): Likewise.
23740 (vreinterpretq_s16_s8): Likewise.
23741 (vreinterpretq_s16_s32): Likewise.
23742 (vreinterpretq_s16_s64): Likewise.
23743 (vreinterpretq_s16_f32): Likewise.
23744 (vreinterpretq_s16_u8): Likewise.
23745 (vreinterpretq_s16_u16): Likewise.
23746 (vreinterpretq_s16_u32): Likewise.
23747 (vreinterpretq_s16_u64): Likewise.
23748 (vreinterpretq_s16_p8): Likewise.
23749 (vreinterpretq_s16_p16): Likewise.
23750 (vreinterpret_s32_s8): Likewise.
23751 (vreinterpret_s32_s16): Likewise.
23752 (vreinterpret_s32_s64): Likewise.
23753 (vreinterpret_s32_f32): Likewise.
23754 (vreinterpret_s32_u8): Likewise.
23755 (vreinterpret_s32_u16): Likewise.
23756 (vreinterpret_s32_u32): Likewise.
23757 (vreinterpret_s32_u64): Likewise.
23758 (vreinterpret_s32_p8): Likewise.
23759 (vreinterpret_s32_p16): Likewise.
23760 (vreinterpretq_s32_s8): Likewise.
23761 (vreinterpretq_s32_s16): Likewise.
23762 (vreinterpretq_s32_s64): Likewise.
23763 (vreinterpretq_s32_f32): Likewise.
23764 (vreinterpretq_s32_u8): Likewise.
23765 (vreinterpretq_s32_u16): Likewise.
23766 (vreinterpretq_s32_u32): Likewise.
23767 (vreinterpretq_s32_u64): Likewise.
23768 (vreinterpretq_s32_p8): Likewise.
23769 (vreinterpretq_s32_p16): Likewise.
23770 (vreinterpret_u8_s8): Likewise.
23771 (vreinterpret_u8_s16): Likewise.
23772 (vreinterpret_u8_s32): Likewise.
23773 (vreinterpret_u8_s64): Likewise.
23774 (vreinterpret_u8_f32): Likewise.
23775 (vreinterpret_u8_u16): Likewise.
23776 (vreinterpret_u8_u32): Likewise.
23777 (vreinterpret_u8_u64): Likewise.
23778 (vreinterpret_u8_p8): Likewise.
23779 (vreinterpret_u8_p16): Likewise.
23780 (vreinterpretq_u8_s8): Likewise.
23781 (vreinterpretq_u8_s16): Likewise.
23782 (vreinterpretq_u8_s32): Likewise.
23783 (vreinterpretq_u8_s64): Likewise.
23784 (vreinterpretq_u8_f32): Likewise.
23785 (vreinterpretq_u8_u16): Likewise.
23786 (vreinterpretq_u8_u32): Likewise.
23787 (vreinterpretq_u8_u64): Likewise.
23788 (vreinterpretq_u8_p8): Likewise.
23789 (vreinterpretq_u8_p16): Likewise.
23790 (vreinterpret_u16_s8): Likewise.
23791 (vreinterpret_u16_s16): Likewise.
23792 (vreinterpret_u16_s32): Likewise.
23793 (vreinterpret_u16_s64): Likewise.
23794 (vreinterpret_u16_f32): Likewise.
23795 (vreinterpret_u16_u8): Likewise.
23796 (vreinterpret_u16_u32): Likewise.
23797 (vreinterpret_u16_u64): Likewise.
23798 (vreinterpret_u16_p8): Likewise.
23799 (vreinterpret_u16_p16): Likewise.
23800 (vreinterpretq_u16_s8): Likewise.
23801 (vreinterpretq_u16_s16): Likewise.
23802 (vreinterpretq_u16_s32): Likewise.
23803 (vreinterpretq_u16_s64): Likewise.
23804 (vreinterpretq_u16_f32): Likewise.
23805 (vreinterpretq_u16_u8): Likewise.
23806 (vreinterpretq_u16_u32): Likewise.
23807 (vreinterpretq_u16_u64): Likewise.
23808 (vreinterpretq_u16_p8): Likewise.
23809 (vreinterpretq_u16_p16): Likewise.
23810 (vreinterpret_u32_s8): Likewise.
23811 (vreinterpret_u32_s16): Likewise.
23812 (vreinterpret_u32_s32): Likewise.
23813 (vreinterpret_u32_s64): Likewise.
23814 (vreinterpret_u32_f32): Likewise.
23815 (vreinterpret_u32_u8): Likewise.
23816 (vreinterpret_u32_u16): Likewise.
23817 (vreinterpret_u32_u64): Likewise.
23818 (vreinterpret_u32_p8): Likewise.
23819 (vreinterpret_u32_p16): Likewise.
23820 (vreinterpretq_u32_s8): Likewise.
23821 (vreinterpretq_u32_s16): Likewise.
23822 (vreinterpretq_u32_s32): Likewise.
23823 (vreinterpretq_u32_s64): Likewise.
23824 (vreinterpretq_u32_f32): Likewise.
23825 (vreinterpretq_u32_u8): Likewise.
23826 (vreinterpretq_u32_u16): Likewise.
23827 (vreinterpretq_u32_u64): Likewise.
23828 (vreinterpretq_u32_p8): Likewise.
23829 (vreinterpretq_u32_p16): Likewise.
23830
23831 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23832
23833 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
23834 Pattern extended.
23835 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
23836 (sqabs): Likewise.
23837 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
23838 (vqnegd_s64): Likewise.
23839 (vqabs_s64): Likewise.
23840 (vqabsd_s64): Likewise.
23841
23842 2014-04-22 Richard Henderson <rth@redhat.com>
23843
23844 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
23845 computation to the top of the loop.
23846
23847 2014-04-22 Renlin <renlin.li@arm.com>
23848 Jiong Wang <jiong.wang@arm.com>
23849
23850 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
23851 * config/aarch64/aarch64.c (aarch64_layout_frame)
23852 (aarch64_initial_elimination_offset): Likewise.
23853
23854 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
23855
23856 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
23857 Fix indentation.
23858
23859 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
23860
23861 * machmode.h (bitwise_mode_for_mode): Declare.
23862 * stor-layout.h (bitwise_type_for_mode): Likewise.
23863 * stor-layout.c (bitwise_mode_for_mode): New function.
23864 (bitwise_type_for_mode): Likewise.
23865 * builtins.c (fold_builtin_memory_op): Use it instead of
23866 int_mode_for_mode and build_nonstandard_integer_type.
23867
23868 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23869
23870 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
23871 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
23872 (*-*-solaris2*): Simplify.
23873 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
23874 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
23875 *-*-solaris2.9* handling.
23876
23877 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
23878 as bug.
23879 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
23880 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
23881 handling, simplify.
23882 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
23883 * configure: Regenerate.
23884
23885 * config/i386/sol2-9.h: Remove.
23886
23887 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
23888 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
23889 Remove Solaris 9 references.
23890
23891 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
23892
23893 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
23894 (floatuns<GPI:mode><GPF:mode>2): Remove.
23895 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
23896 and floatuns conversions.
23897 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
23898 and floatuns conversions.
23899 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
23900 (w1,w2): New mode attributes for inequal width conversions.
23901
23902 2014-04-22 Renlin Li <Renlin.Li@arm.com>
23903
23904 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
23905 the output asm format.
23906
23907 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
23908
23909 * config/aarch64/aarch64-simd.md
23910 (aarch64_cm<optab>di): Always split.
23911 (*aarch64_cm<optab>di): New.
23912 (aarch64_cmtstdi): Always split.
23913 (*aarch64_cmtstdi): New.
23914
23915 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23916
23917 PR tree-optimization/60823
23918 * omp-low.c (ipa_simd_modify_function_body): Go through
23919 all SSA_NAMEs and for those refering to vector arguments
23920 which are going to be replaced adjust SSA_NAME_VAR and,
23921 if it is a default definition, change it into a non-default
23922 definition assigned at the beginning of function from new_decl.
23923 (ipa_simd_modify_stmt_ops): Rewritten.
23924 * tree-dfa.c (set_ssa_default_def): When removing default def,
23925 check for NULL loc instead of NULL *loc.
23926
23927 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23928
23929 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
23930 restrictions on core registers for DImode values in Thumb2.
23931
23932 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23933
23934 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
23935 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
23936
23937 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23938
23939 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
23940 (*iordi_notzesidi_di): Likewise.
23941 (*iordi_notsesidi_di): Likewise.
23942
23943 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23944
23945 * config/arm/arm-protos.h (tune_params): New struct members.
23946 * config/arm/arm.c: Initialise tune_params per processor.
23947 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
23948 for speed, based on new tune_params.
23949
23950 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23951
23952 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
23953 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
23954 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
23955 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
23956 * config/aarch64/arm_neon.h (vrnd_f64): Added.
23957 (vrnda_f64): Likewise.
23958 (vrndi_f64): Likewise.
23959 (vrndm_f64): Likewise.
23960 (vrndn_f64): Likewise.
23961 (vrndp_f64): Likewise.
23962 (vrndx_f64): Likewise.
23963
23964 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23965
23966 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
23967 GET_MODE_SIZE argument is enum machine_mode.
23968
23969 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23970
23971 PR target/60910
23972 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
23973 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
23974
23975 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
23976
23977 PR middle-end/60281
23978 * asan.c (asan_emit_stack_protection): Force the base to align to
23979 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
23980 appropriate bits if STRICT_ALIGNMENT.
23981 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
23982 when asan is on.
23983 (expand_used_vars): Leave a space in the stack frame for alignment
23984 if STRICT_ALIGNMENT.
23985
23986 2014-04-21 David Malcolm <dmalcolm@redhat.com>
23987
23988 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
23989 than a gimple.
23990 (gimple_store_p): Likewise.
23991 (gimple_assign_load_p): Likewise.
23992 (gimple_assign_cast_p): Likewise.
23993 (gimple_clobber_p): Likewise.
23994
23995 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
23996 rather than a gimple.
23997 (gimple_assign_cast_p): Likewise.
23998
23999 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
24000
24001 PR target/60735
24002 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
24003 If mode is DDmode and TARGET_E500_DOUBLE allow move.
24004
24005 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
24006 more debug information for E500 if -mdebug=reg.
24007
24008 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
24009
24010 PR target/60909
24011 * config/i386/i386.c (ix86_expand_builtin)
24012 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
24013 register for target RTX.
24014 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
24015
24016 2014-04-18 Cong Hou <congh@google.com>
24017
24018 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
24019 the widen-mult pattern by handling two operands with different sizes,
24020 and operands whose size is smaller than half of the result type.
24021
24022 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
24023
24024 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
24025 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
24026 (do_estimate_edge_time): Compute it.
24027 * ipa-inline.c (want_inline_small_function_p): Bypass
24028 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
24029
24030 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
24031
24032 * ipa-inline.c (spec_rem): New static variable.
24033 (dump_overall_stats): New function.
24034 (dump_inline_stats): New function.
24035
24036 2014-04-18 Richard Henderson <rth@redhat.com>
24037
24038 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
24039 to GET_MODE_SIZE, not a reg_class_t.
24040
24041 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24042
24043 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
24044 (vsx_xxmrglw_<mode>): Likewise.
24045
24046 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
24047
24048 PR target/60876
24049 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
24050 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
24051 (rs6000_init_hard_regno_mode_ok): Likewise.
24052
24053 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
24054
24055 * ipa-inline.c (inline_small_functions): Account only non-cold
24056 functions.
24057 * doc/invoke.texi (inline-unit-growth): Update documentation.
24058
24059 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
24060
24061 * config/rs6000/rs6000.md (addti3, subti3): New.
24062
24063 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
24064
24065 PR target/60863
24066 * config/i386/i386.c (ix86_expand_clear): Remove outdated
24067 comment. Check optimize_insn_for_size_p instead of
24068 optimize_insn_for_speed_p.
24069
24070 2014-04-17 Martin Jambor <mjambor@suse.cz>
24071
24072 * gimple-iterator.c (gsi_start_edge): New function.
24073 * gimple-iterator.h (gsi_start_edge): Declare.
24074 * tree-sra.c (single_non_eh_succ): New function.
24075 (disqualify_ops_if_throwing_stmt): Renamed to
24076 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
24077 having one non-EH successor BB.
24078 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
24079 generate loads into replacements.
24080 (sra_modify_assign): Likewise and and also use the simple path for
24081 such statements.
24082 (sra_modify_function_body): Commit statements on edges.
24083
24084 2014-04-17 Richard Biener <rguenther@suse.de>
24085
24086 PR middle-end/60849
24087 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
24088 comparison results and add clarifying comment.
24089
24090 2014-04-17 Jakub Jelinek <jakub@redhat.com>
24091
24092 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
24093 (blank_mode): Initialize it.
24094 (emit_mode_size_inline, emit_mode_nunits_inline,
24095 emit_mode_inner_inline): New functions.
24096 (emit_insn_modes_h): Call them and surround their output with
24097 #if GCC_VERSION >= 4001 ... #endif.
24098 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
24099 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
24100 mode_* arrays if the argument is __builtin_constant_p.
24101 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
24102 is enum machine_mode.
24103
24104 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24105
24106 * passes.c (opt_pass::execute): Adjust.
24107 (pass_manager::execute_pass_mode_switching): Likewise.
24108 (early_local_passes::execute): Likewise.
24109 (execute_one_pass): Pass cfun to the pass's execute method.
24110 * tree-pass.h (opt_pass::execute): Add function * argument.
24111 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
24112 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
24113 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
24114 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24115 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
24116 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
24117 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
24118 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
24119 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
24120 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
24121 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
24122 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
24123 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
24124 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
24125 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
24126 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
24127 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
24128 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
24129 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
24130 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24131 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24132 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24133 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24134 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24135 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24136 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24137 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
24138 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
24139 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
24140 Adjust.
24141
24142 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24143
24144 * passes.c (opt_pass::gate): Take function * argument.
24145 (gate_all_early_local_passes): Merge into
24146 (early_local_passes::gate): this.
24147 (gate_all_early_optimizations): Merge into
24148 (all_early_optimizations::gate): this.
24149 (gate_all_optimizations): Mege into
24150 (all_optimizations::gate): this.
24151 (gate_all_optimizations_g): Merge into
24152 (all_optimizations_g::gate): this.
24153 (gate_rest_of_compilation): Mege into
24154 (rest_of_compilation::gate): this.
24155 (gate_postreload): Merge into
24156 (postreload::gate): this.
24157 (dump_one_pass): Pass cfun to the pass's gate method.
24158 (execute_ipa_summary_passes): Likewise.
24159 (execute_one_pass): Likewise.
24160 (ipa_write_summaries_2): Likewise.
24161 (ipa_write_optimization_summaries_1): Likewise.
24162 (ipa_read_summaries_1): Likewise.
24163 (ipa_read_optimization_summaries_1): Likewise.
24164 (execute_ipa_stmt_fixups): Likewise.
24165 * tree-pass.h (opt_pass::gate): Add function * argument.
24166 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
24167 combine-stack-adj.c, combine.c, compare-elim.c,
24168 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24169 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
24170 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
24171 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
24172 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
24173 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
24174 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
24175 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
24176 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
24177 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
24178 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
24179 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
24180 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
24181 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
24182 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
24183 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24184 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24185 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24186 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24187 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24188 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24189 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24190 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
24191 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
24192 var-tracking.c, vtable-verify.c, web.c: Adjust.
24193
24194 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24195
24196 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
24197 * configure: Regenerate.
24198
24199 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24200
24201 * passes.c (dump_one_pass): don't check pass->has_gate.
24202 (execute_ipa_summary_passes): Likewise.
24203 (execute_one_pass): Likewise.
24204 (ipa_write_summaries_2): Likewise.
24205 (ipa_write_optimization_summaries_1): Likewise.
24206 (ipa_read_optimization_summaries_1): Likewise.
24207 (execute_ipa_stmt_fixups): Likewise.
24208 * tree-pass.h (pass_data::has_gate): Remove.
24209 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
24210 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
24211 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
24212 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24213 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
24214 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
24215 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
24216 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
24217 gimple-low.c, gimple-ssa-isolate-paths.c,
24218 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
24219 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
24220 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
24221 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
24222 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
24223 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
24224 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
24225 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
24226 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
24227 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
24228 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
24229 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
24230 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24231 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24232 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24233 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24234 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24235 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24236 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24237 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
24238 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
24239 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
24240 Adjust.
24241
24242 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24243
24244 * pass_manager.h (pass_manager::register_dump_files_1): Remove
24245 declaration.
24246 * passes.c (pass_manager::register_dump_files_1): Merge into
24247 (pass_manager::register_dump_files): this, and remove its handling of
24248 properties since the pass always has the properties anyway.
24249 (pass_manager::pass_manager): Adjust.
24250
24251 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24252
24253 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
24254 * passes.c (pass_manager::register_dump_files_1): Remove dead code
24255 dealing with properties.
24256 (pass_manager::register_dump_files): Adjust.
24257
24258 2014-03-20 Mark Wielaard <mjw@redhat.com>
24259
24260 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
24261 then represent the bound as normal constant value.
24262
24263 2014-04-17 Jakub Jelinek <jakub@redhat.com>
24264
24265 PR target/60847
24266 Forward port from 4.8 branch
24267 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
24268
24269 * config/i386/bmiintrin.h (_blsi_u32): New.
24270 (_blsi_u64): Ditto.
24271 (_blsr_u32): Ditto.
24272 (_blsr_u64): Ditto.
24273 (_blsmsk_u32): Ditto.
24274 (_blsmsk_u64): Ditto.
24275 (_tzcnt_u32): Ditto.
24276 (_tzcnt_u64): Ditto.
24277
24278 2014-04-17 Kito Cheng <kito@0xlab.org>
24279
24280 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
24281
24282 2014-04-17 Richard Biener <rguenther@suse.de>
24283
24284 PR middle-end/60849
24285 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
24286 boolean results for comparisons.
24287
24288 2014-04-17 Richard Biener <rguenther@suse.de>
24289
24290 PR tree-optimization/60836
24291 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
24292 initial PHI args to be gimple values.
24293
24294 2014-04-17 Richard Biener <rguenther@suse.de>
24295
24296 PR tree-optimization/60841
24297 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
24298 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
24299 of stmts to SLP build.
24300 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
24301 (vect_analyze_slp): Likewise.
24302 (vect_analyze_slp_instance): Likewise.
24303 (vect_build_slp_tree): Limit overall SLP tree growth.
24304 * tree-vectorizer.h (vect_analyze_data_refs,
24305 vect_analyze_slp): Adjust prototypes.
24306
24307 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
24308
24309 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
24310 Silvermont.
24311
24312 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
24313
24314 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
24315 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
24316 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
24317 for TARGET_SLOW_PSHUFB
24318
24319 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
24320
24321 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
24322 * config/i386/i386.c (intel_cost): Ditto.
24323
24324 2014-04-17 Joey Ye <joey.ye@arm.com>
24325
24326 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
24327
24328 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
24329
24330 * opts.c (common_handle_option): Disable -fipa-reference coorectly
24331 with -fuse-profile.
24332
24333 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
24334
24335 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
24336 (type_all_derivations_known_p): New predicate.
24337 (type_all_ctors_visible_p): New predicate.
24338 (type_possibly_instantiated_p): New predicate.
24339 (get_odr_type): Compute all_derivations_known.
24340 (dump_odr_type): Dump the flag.
24341 (maybe_record_type): Cleanup.
24342 (record_target_from_binfo): Add bases_to_consider array;
24343 record bases for types w/o instances and skip CXX destructor.
24344 (possible_polymorphic_call_targets_1): Add bases_to_consider
24345 and consider_construction parameters; check if type may have instance.
24346 (get_polymorphic_call_info): Set maybe_in_construction to true
24347 when we know nothing.
24348 (record_targets_from_bases): Skip CXX destructors; they are
24349 never called for types in construction.
24350 (possible_polymorphic_call_targets): Do not record target when
24351 type may not have instance.
24352
24353 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
24354
24355 PR ipa/60854
24356 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
24357 external aliases alive, too.
24358
24359 2014-04-16 Andrew Pinski <apinski@cavium.com>
24360
24361 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
24362 definition.
24363
24364 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
24365
24366 * final.c (compute_alignments): Do not apply loop alignment to a block
24367 falling through to the exit.
24368
24369 2014-04-16 Catherine Moore <clm@codesourcery.com>
24370
24371 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
24372 Adjust constraints for microMIPS store patterns.
24373
24374 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
24375
24376 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
24377
24378 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
24379
24380 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
24381 (append_use): Run at -O0.
24382 (append_vdef): Likewise.
24383 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
24384 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
24385
24386 2014-04-16 Jakub Jelinek <jakub@redhat.com>
24387
24388 PR tree-optimization/60844
24389 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
24390 (propagate_op_to_single_use, remove_visited_stmt_chain,
24391 linearize_expr, repropagate_negates, reassociate_bb): Use it
24392 instead of gsi_remove.
24393
24394 2014-04-16 Martin Jambor <mjambor@suse.cz>
24395
24396 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
24397 ipa_transforms_to_apply.
24398 (cgraph_function_versioning): Assert that old_node has empty
24399 ipa_transforms_to_apply.
24400 * trans-mem.c (ipa_tm_create_version): Likewise.
24401 * tree-inline.c (tree_function_versioning): Do not duplicate
24402 ipa_transforms_to_apply.
24403
24404 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24405
24406 PR target/60817
24407 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
24408 x86_64-*-* cases.
24409 Pass necessary as flags on 64-bit Solaris/x86.
24410 Use lowercase relocs for x86_64-*-*.
24411 * configure: Regenerate.
24412
24413 2014-04-15 Jan Hubicka <jh@suse.cz>
24414
24415 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
24416 (maybe_record_node, likely_target_p): Use it.
24417
24418 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24419
24420 PR target/60839
24421 Revert following patch
24422
24423 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24424
24425 PR target/60735
24426 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
24427 software floating point or no floating point registers, do not
24428 allow any type in the FPRs. Eliminate a test for SPE SIMD types
24429 in GPRs that occurs after we tested for GPRs that would never be
24430 true.
24431
24432 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
24433 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
24434 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
24435 specifically allow DDmode, since that does not use the SPE SIMD
24436 instructions.
24437
24438 2014-03-21 Mark Wielaard <mjw@redhat.com>
24439
24440 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
24441 as unsigned or int depending on type and value used.
24442
24443 2014-04-15 Richard Biener <rguenther@suse.de>
24444
24445 PR rtl-optimization/56965
24446 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
24447 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
24448 ... here.
24449 * alias.c (true_dependence_1): Do not call
24450 nonoverlapping_component_refs_p.
24451 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
24452 nonoverlapping_component_refs_p.
24453 (indirect_refs_may_alias_p): Likewise.
24454
24455 2014-04-15 Teresa Johnson <tejohnson@google.com>
24456
24457 * cfg.c (dump_bb_info): Fix flags check.
24458 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
24459
24460 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24461
24462 PR rtl-optimization/60663
24463 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
24464 avoid 0 cost.
24465
24466 2014-04-15 Richard Biener <rguenther@suse.de>
24467
24468 * lto-streamer.h (LTO_major_version): Bump to 4.
24469
24470 2014-04-15 Richard Biener <rguenther@suse.de>
24471
24472 * common.opt (lto_partition_model): New enum.
24473 (flto-partition=): Merge separate options with a single with argument,
24474 add -flto-partition=one support.
24475 * flag-types.h (enum lto_partition_model): Declare.
24476 * opts.c (finish_options): Remove duplicate -flto-partition=
24477 option check.
24478 * lto-wrapper.c (run_gcc): Adjust.
24479
24480 2014-04-15 Richard Biener <rguenther@suse.de>
24481
24482 * alias.c (ncr_compar): New function.
24483 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
24484
24485 2014-04-15 Richard Biener <rguenther@suse.de>
24486
24487 * alias.c (record_component_aliases): Do not walk BINFOs.
24488
24489 2014-04-15 Richard Biener <rguenther@suse.de>
24490
24491 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24492 Add struct function argument and adjust.
24493 (find_func_aliases_for_call): Likewise.
24494 (find_func_aliases): Likewise.
24495 (find_func_clobbers): Likewise.
24496 (intra_create_variable_infos): Likewise.
24497 (compute_points_to_sets): Likewise.
24498 (ipa_pta_execute): Adjust. Do not push/pop cfun.
24499
24500 2014-04-15 Richard Biener <rguenther@suse.de>
24501
24502 * tree.c (iterative_hash_expr): Use enum tree_code_class
24503 to store TREE_CODE_CLASS.
24504 (tree_block): Likewise.
24505 (tree_set_block): Likewise.
24506 * tree.h (fold_build_pointer_plus_loc): Use
24507 convert_to_ptrofftype_loc.
24508
24509 2014-04-15 Jakub Jelinek <jakub@redhat.com>
24510
24511 PR plugins/59335
24512 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
24513 added in 4.9.
24514
24515 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
24516
24517 * cfgloop.h (struct loop): Move force_vectorize down.
24518 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
24519 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
24520 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
24521 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
24522 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
24523 * tree-core.h (enum annot_expr_kind): Add new kind values.
24524 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
24525 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
24526 kinds.
24527 * tree.def (ANNOTATE_EXPR): Tweak comment.
24528
24529 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24530
24531 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
24532 cxa_pure_virtual).
24533
24534 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
24535
24536 * tree.h (TYPE_IDENTIFIER): Declare.
24537 * tree.c (subrange_type_for_debug_p): Use it.
24538 * godump.c (go_format_type): Likewise.
24539 * dwarf2out.c (is_cxx_auto, modified_type_die,
24540 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
24541 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
24542
24543 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24544
24545 PR lto/60820
24546 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
24547
24548 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
24549
24550 * config/i386/i386.c (examine_argument): Return bool. Return true if
24551 parameter should be passed in memory.
24552 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
24553 (construct_container): Update calls to examine_argument.
24554 (function_arg_advance_64): Ditto.
24555 (return_in_memory_32): Merge with ix86_return_in_memory.
24556 (return_in_memory_64): Ditto.
24557 (return_in_memory_ms_64): Ditto.
24558
24559 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24560
24561 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
24562 * coverage.c (coverage_compute_profile_id): Handle externally visible
24563 symbols.
24564
24565 2014-04-14 Martin Jambor <mjambor@suse.cz>
24566
24567 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
24568 DECL_DISREGARD_INLINE_LIMITS functions.
24569
24570 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
24571
24572 PR target/60827
24573 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
24574
24575 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
24576
24577 PR target/60827
24578 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
24579 optimize_insn_for_speed_p instead of
24580 optimize_function_for_speed_p.
24581
24582 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
24583
24584 * doc/invoke.texi (free): Document AArch64.
24585
24586 2014-04-14 Richard Biener <rguenther@suse.de>
24587
24588 PR tree-optimization/60042
24589 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
24590 (insert_into_preds_of_block): Do not prevent PHI insertion
24591 for REFERENCE exprs here ...
24592 (eliminate_dom_walker::before_dom_children): ... but prevent
24593 their use here under similar conditions when applied to the
24594 IL after PRE optimizations.
24595
24596 2014-04-14 Richard Biener <rguenther@suse.de>
24597
24598 * passes.def: Move early points-to after early SRA.
24599
24600 2014-04-14 Richard Biener <rguenther@suse.de>
24601
24602 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
24603 check for which sign-changes we allow when forwarding
24604 a converted value into a switch.
24605
24606 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
24607
24608 * stor-layout.c (place_field): Finalize non-constant offset for the
24609 field, if any.
24610
24611 2014-04-14 Richard Biener <rguenther@suse.de>
24612
24613 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
24614 as argument.
24615 (expand_switch_using_bit_tests_p): Likewise.
24616 (process_switch): Compute and pass on speed_p based on the
24617 switch stmt.
24618 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
24619 optimize_bb_for_speed_p.
24620
24621 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
24622
24623 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
24624 * function.h (struct function): Rename has_force_vect_loops into
24625 has_force_vectorize_loops.
24626 * lto-streamer-in.c (input_cfg): Adjust for renaming.
24627 (input_struct_function_base): Likewise.
24628 * lto-streamer-out.c (output_cfg): Likewise.
24629 (output_struct_function_base): Likewise.
24630 * omp-low.c (expand_omp_simd): Likewise.
24631 * tree-cfg.c (move_sese_region_to_fn): Likewise.
24632 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
24633 (version_loop_for_if_conversion): Likewise.
24634 (tree_if_conversion): Likewise.
24635 (main_tree_if_conversion): Likewise.
24636 (gate_tree_if_conversion): Likewise.
24637 * tree-inline.c (copy_loops): Likewise.
24638 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
24639 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
24640 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
24641 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
24642 * tree-vectorizer.c (vectorize_loops): Likewise.
24643 * tree-vectorizer.h (unlimited_cost_model): Likewise.
24644
24645 2014-04-14 Richard Biener <rguenther@suse.de>
24646
24647 PR lto/60720
24648 * lto-streamer-out.c (wrap_refs): New function.
24649 (lto_output): Wrap symbol references in global initializes in
24650 type-preserving MEM_REFs.
24651
24652 2014-04-14 Christian Bruel <christian.bruel@st.com>
24653
24654 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
24655
24656 2014-04-14 Christian Bruel <christian.bruel@st.com>
24657
24658 * config/sh/sh.md (setmemqi): New expand pattern.
24659 * config/sh/sh.h (CLEAR_RATIO): Define.
24660 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
24661 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
24662
24663 2014-04-14 Richard Biener <rguenther@suse.de>
24664
24665 PR middle-end/55022
24666 * fold-const.c (negate_expr_p): Don't negate directional rounding
24667 division.
24668 (fold_negate_expr): Likewise.
24669
24670 2014-04-14 Richard Biener <rguenther@suse.de>
24671
24672 PR tree-optimization/59817
24673 PR tree-optimization/60453
24674 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
24675 recursion to catch all CHRECs in the scalar evolution and restrict
24676 the predicate for the remains appropriately.
24677
24678 2014-04-12 Catherine Moore <clm@codesourcery.com>
24679
24680 * config/mips/constraints.md: Add new register constraint "kb".
24681 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
24682 (*movhi_internal): Likewise.
24683 (*movqi_internal): Likewise.
24684 * config/mips/mips.h (M16_STORE_REGS): New register class.
24685 (REG_CLASS_NAMES): Add M16_STORE_REGS.
24686 (REG_CLASS_CONTENTS): Likewise.
24687 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
24688
24689 2014-04-11 Tobias Burnus <burnus@net-b.de>
24690
24691 PR c/60194
24692 * doc/invoke.texi (-Wformat-signedness): Document it.
24693 (Wformat=2): Mention that this enables -Wformat-signedness.
24694
24695 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24696
24697 * common/config/epiphany/epiphany-common.c
24698 (epiphany_option_optimization_table): Enable section anchors by
24699 default at -O1 or higher.
24700 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
24701 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
24702 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
24703 carries no extra cost.
24704 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
24705 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
24706 * config/epiphany/predicates.md (memclob_operand): New predicate.
24707 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
24708 Use memclob_operand predicate and X constraint for operand 3.
24709
24710 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24711
24712 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
24713 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
24714 its operands.
24715
24716 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24717
24718 PR rtl-optimization/60651
24719 * mode-switching.c (optimize_mode_switching): Make sure to emit
24720 sets of a lower numbered entity before sets of a higher numbered
24721 entity to a mode of the same or lower priority.
24722 When creating a seginfo for a basic block that starts with a code
24723 label, move the insertion point past the code label.
24724 (new_seginfo): Document and enforce requirement that
24725 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
24726 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
24727 * doc/tm.texi: Regenerate.
24728
24729 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
24730
24731 PR target/60811
24732 * config/arc/arc.c (arc_save_restore): Fix assert typo.
24733
24734 2013-04-11 Jakub Jelinek <jakub@redhat.com>
24735
24736 * BASE-VER: Set to 4.10.0.
24737
24738 2014-04-11 Tobias Burnus <burnus@net-b.de>
24739
24740 PR other/59055
24741 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
24742 * doc/gcc.texi (Service): Update description in the @menu
24743 * doc/invoke.texi (Option Summary): Remove misplaced and
24744 duplicated @menu.
24745
24746 2014-04-11 Steve Ellcey <sellcey@mips.com>
24747 Jakub Jelinek <jakub@redhat.com>
24748
24749 PR middle-end/60556
24750 * expr.c (convert_move): Use emit_store_flag_force instead of
24751 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
24752 argument to it.
24753
24754 2014-04-11 Richard Biener <rguenther@suse.de>
24755
24756 PR middle-end/60797
24757 * varasm.c (assemble_alias): Avoid endless error reporting
24758 recursion by setting TREE_ASM_WRITTEN.
24759
24760 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24761
24762 * config/s390/s390.md: Add a splitter for NOT rtx.
24763
24764 2014-04-11 Jakub Jelinek <jakub@redhat.com>
24765
24766 PR rtl-optimization/60663
24767 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
24768
24769 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
24770 Jakub Jelinek <jakub@redhat.com>
24771
24772 PR lto/60567
24773 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
24774 flag from decl_node to node.
24775
24776 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24777
24778 PR debug/60655
24779 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
24780 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
24781 ameliorating the cases where it can be.
24782
24783 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
24784
24785 Revert
24786 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
24787
24788 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24789 (loadsync_<mode>): Change mode.
24790 (load_quadpti, store_quadpti): New.
24791 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24792 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24793 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
24794
24795 2014-04-09 Cong Hou <congh@google.com>
24796
24797 PR testsuite/60773
24798 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
24799 documentation.
24800
24801 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24802
24803 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
24804 instead of vnor to exploit possible fusion opportunity in the
24805 future.
24806 (altivec_expand_vec_perm_const_le): Likewise.
24807
24808 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
24809
24810 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24811 (loadsync_<mode>): Change mode.
24812 (load_quadpti, store_quadpti): New.
24813 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24814 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24815
24816 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
24817
24818 PR target/60763
24819 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
24820 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
24821 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
24822
24823 2014-04-08 Richard Biener <rguenther@suse.de>
24824
24825 PR middle-end/60706
24826 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
24827 a 64bit widest int print double-int similar to on HWI64 hosts.
24828
24829 2014-04-08 Richard Biener <rguenther@suse.de>
24830
24831 PR tree-optimization/60785
24832 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
24833 default defs properly.
24834
24835 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
24836
24837 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
24838 (Weffc++): Likewise.
24839
24840 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
24841
24842 * ipa-devirt.c (maybe_record_node): When node is not recorded,
24843 set completep to false rather than true.
24844
24845 2014-04-07 Douglas B Rupp <rupp@adacore.com>
24846
24847 PR target/60504
24848 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
24849 ARM_TARGET2_DWARF_FORMAT.
24850
24851 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
24852
24853 PR target/60609
24854 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
24855 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
24856 ADDR_DIFF_VEC.
24857
24858 2014-04-07 Richard Biener <rguenther@suse.de>
24859
24860 PR tree-optimization/60766
24861 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
24862 (may_eliminate_iv): Convert cand_value_at result to desired type.
24863
24864 2014-04-07 Jason Merrill <jason@redhat.com>
24865
24866 PR c++/60731
24867 * common.opt (-fno-gnu-unique): Add.
24868 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
24869
24870 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24871
24872 * haifa-sched.c: Fix outdated function reference and minor
24873 grammar errors in introductory comment.
24874
24875 2014-04-07 Richard Biener <rguenther@suse.de>
24876
24877 PR middle-end/60750
24878 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
24879 for noreturn calls.
24880 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
24881
24882 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
24883
24884 PR debug/55794
24885 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
24886 size accounting for thunks.
24887 (pa_asm_output_mi_thunk): Use final_start_function() and
24888 final_end_function() to output function start and end directives.
24889
24890 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
24891
24892 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
24893 device specific ISA/ feature information. Remove short_sp and
24894 errata_skip ds. Add avr_device_specific_features enum to have device
24895 specific info.
24896 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
24897 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
24898 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
24899 updated device specific info.
24900 * config/avr/avr-mcus.def: Merge device specific details to
24901 dev_attribute field.
24902 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
24903 errata_skip.
24904 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
24905 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
24906 assembler if RMW isa supported by current device.
24907 * config/avr/genmultilib.awk: Update as device info structure changed.
24908 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
24909
24910 2014-04-04 Cong Hou <congh@google.com>
24911
24912 PR tree-optimization/60656
24913 * tree-vect-stmts.c (supportable_widening_operation):
24914 Fix a bug that elements in a vector with vect_used_by_reduction
24915 property are incorrectly reordered when the operation on it is not
24916 consistant with the one in reduction operation.
24917
24918 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
24919
24920 PR rtl-optimization/60155
24921 * gcse.c (record_set_data): New function.
24922 (single_set_gcse): New function.
24923 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
24924 (hoist_code): Likewise.
24925 (get_pressure_class_and_nregs): Likewise.
24926
24927 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
24928
24929 * explow.c (probe_stack_range): Emit a final optimization blockage.
24930
24931 2014-04-04 Anthony Green <green@moxielogic.com>
24932
24933 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
24934 typos.
24935
24936 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
24937
24938 PR ipa/59626
24939 * lto-cgraph.c (input_overwrite_node): Check that partitioning
24940 flags are set only during streaming.
24941 * ipa.c (process_references, walk_polymorphic_call_targets,
24942 symtab_remove_unreachable_nodes): Drop bodies of always inline
24943 after early inlining.
24944 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
24945
24946 2014-04-04 Jakub Jelinek <jakub@redhat.com>
24947 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24948
24949 PR debug/60655
24950 * dwarf2out.c (const_ok_for_output_1): Reject expressions
24951 containing a NOT.
24952
24953 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24954
24955 PR bootstrap/60743
24956 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
24957 duration.
24958 (cortex_a53_fdivd): Likewise.
24959
24960 2014-04-04 Martin Jambor <mjambor@suse.cz>
24961
24962 PR ipa/60640
24963 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
24964 Adjust all callers.
24965 * cgraph.c (clone_of_p): Also return true if thunks match.
24966 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
24967 cgraph_function_or_thunk_node and an obsolete comment.
24968 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
24969 file.
24970 (build_function_decl_skip_args): Likewise.
24971 (set_new_clone_decl_and_node_flags): New function.
24972 (duplicate_thunk_for_node): Likewise.
24973 (redirect_edge_duplicating_thunks): Likewise.
24974 (cgraph_clone_node): New parameter args_to_skip, pass it to
24975 redirect_edge_duplicating_thunks which is called instead of
24976 cgraph_redirect_edge_callee.
24977 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
24978 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
24979
24980 2014-04-04 Jeff Law <law@redhat.com>
24981
24982 PR target/60657
24983 * config/arm/predicates.md (const_int_I_operand): New predicate.
24984 (const_int_M_operand): Similarly.
24985 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
24986 const_int_operand.
24987 (insv_t2, extv_reg, extzv_t2): Likewise.
24988 (load_multiple_with_writeback): Similarly for const_int_I_operand.
24989 (pop_multiple_with_writeback_and_return): Likewise.
24990 (vfp_pop_multiple_with_writeback): Likewise
24991
24992 2014-04-04 Richard Biener <rguenther@suse.de>
24993
24994 PR ipa/60746
24995 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
24996 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
24997 non-GIMPLE_LABELs.
24998 * gimplify.h (gimple_add_tmp_var_fn): Declare.
24999 * gimplify.c (gimple_add_tmp_var_fn): New function.
25000 * gimple-expr.h (create_tmp_reg_fn): Declare.
25001 * gimple-expr.c (create_tmp_reg_fn): New function.
25002 * gimple-low.c (record_vars_into): Don't change cfun.
25003 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
25004 code generation without cfun.
25005
25006 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
25007
25008 PR bootstrap/60719
25009 * Makefile.in (install-driver): Fix shell scripting.
25010
25011 2014-04-03 Cong Hou <congh@google.com>
25012
25013 PR tree-optimization/60505
25014 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
25015 threshold of number of iterations below which no vectorization
25016 will be done.
25017 * tree-vect-loop.c (new_loop_vec_info):
25018 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
25019 * tree-vect-loop.c (vect_analyze_loop_operations):
25020 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
25021 * tree-vect-loop.c (vect_transform_loop):
25022 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
25023 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
25024 of iterations of the loop and see if we should build the epilogue.
25025
25026 2014-04-03 Richard Biener <rguenther@suse.de>
25027
25028 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
25029 (streamer_tree_cache_create): Adjust.
25030 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
25031 to allow optional nodes array.
25032 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
25033 (streamer_tree_cache_append): Likewise.
25034 (streamer_tree_cache_create): Create nodes array optionally
25035 as specified by parameter.
25036 * lto-streamer-out.c (create_output_block): Avoid maintaining
25037 the node array in the writer cache.
25038 (DFS_write_tree): Remove assertion.
25039 (produce_asm_for_decls): Free the out decl state hash table early.
25040 * lto-streamer-in.c (lto_data_in_create): Adjust for
25041 streamer_tree_cache_create prototype change.
25042
25043 2014-04-03 Richard Biener <rguenther@suse.de>
25044
25045 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
25046 set TREE_CHAIN to NULL_TREE.
25047
25048 2014-04-03 Richard Biener <rguenther@suse.de>
25049
25050 PR tree-optimization/60740
25051 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
25052 over all GIMPLE_COND operands.
25053
25054 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
25055
25056 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
25057 (Weffc++): Remove Scott's numbering, merge lists and reference
25058 Wnon-virtual-dtor.
25059
25060 2014-04-03 Nick Clifton <nickc@redhat.com>
25061
25062 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
25063 properly.
25064
25065 2014-04-03 Martin Jambor <mjambor@suse.cz>
25066
25067 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
25068 mention gcc_unreachable before failing.
25069 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
25070 removed symbols.
25071
25072 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
25073
25074 PR ipa/60659
25075 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
25076 inconsistent code and instead mark the context inconsistent.
25077 (possible_polymorphic_call_targets): For inconsistent contexts
25078 return empty complete list.
25079
25080 2014-04-02 Anthony Green <green@moxielogic.com>
25081
25082 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
25083 (extendqisi2, extendhisi2): Define.
25084 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
25085 (WCHAR_TYPE): Change to unsigned int.
25086
25087 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25088
25089 PR tree-optimization/60733
25090 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
25091 insertion point for PHI candidates to be the end of the feeding
25092 block for the PHI argument.
25093
25094 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
25095
25096 PR rtl-optimization/60650
25097 * lra-constraints.c (process_alt_operands): Decrease reject for
25098 earlyclobber matching.
25099
25100 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25101
25102 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
25103
25104 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25105
25106 * config/spu/spu.c (pad_bb): Do not crash when the last
25107 insn is CODE_FOR_blockage.
25108
25109 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25110
25111 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
25112 lies outside the target mode.
25113
25114 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
25115
25116 PR target/60735
25117 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
25118 software floating point or no floating point registers, do not
25119 allow any type in the FPRs. Eliminate a test for SPE SIMD types
25120 in GPRs that occurs after we tested for GPRs that would never be
25121 true.
25122
25123 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
25124 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
25125 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
25126 specifically allow DDmode, since that does not use the SPE SIMD
25127 instructions.
25128
25129 2014-04-02 Richard Biener <rguenther@suse.de>
25130
25131 PR middle-end/60729
25132 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
25133 MODE_INTs. Properly use negv_optab.
25134 (expand_abs): Likewise.
25135
25136 2014-04-02 Richard Biener <rguenther@suse.de>
25137
25138 PR bootstrap/60719
25139 * Makefile.in (install-driver): Guard extra installs with special
25140 names properly.
25141
25142 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
25143
25144 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25145 Document vec_vgbbd.
25146
25147 2014-04-01 Richard Henderson <rth@redhat.com>
25148
25149 PR target/60704
25150 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
25151 alternative enabled before register allocation.
25152
25153 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
25154
25155 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
25156 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
25157 typo.
25158 (nios2_large_got_address): Remove unneeded 'sym' parameter.
25159 (nios2_got_address): Update nios2_large_got_address call site.
25160 (nios2_delegitimize_address): New function.
25161 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
25162 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
25163 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
25164
25165 2014-04-01 Martin Husemann <martin@duskware.de>
25166
25167 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
25168 for -mabi=32.
25169
25170 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
25171
25172 PR rtl-optimization/60604
25173 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
25174 check from register_operand.
25175 (register_operand): Redefine in terms of general_operand.
25176 (nonmemory_operand): Use register_operand for the non-constant cases.
25177
25178 2014-04-01 Richard Biener <rguenther@suse.de>
25179
25180 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
25181
25182 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
25183
25184 * doc/invoke.texi (mapp-regs): Clarify.
25185
25186 2014-03-31 Ulrich Drepper <drepper@gmail.com>
25187
25188 * config/i386/avx512fintrin.h (__v32hi): Define type.
25189 (__v64qi): Likewise.
25190 (_mm512_set1_epi8): Define.
25191 (_mm512_set1_epi16): Define.
25192 (_mm512_set4_epi32): Define.
25193 (_mm512_set4_epi64): Define.
25194 (_mm512_set4_pd): Define.
25195 (_mm512_set4_ps): Define.
25196 (_mm512_setr4_epi64): Define.
25197 (_mm512_setr4_epi32): Define.
25198 (_mm512_setr4_pd): Define.
25199 (_mm512_setr4_ps): Define.
25200 (_mm512_setzero_epi32): Define.
25201
25202 2014-03-31 Martin Jambor <mjambor@suse.cz>
25203
25204 PR middle-end/60647
25205 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
25206 callsite_arguments_match_p. Updated all callers. Also check types of
25207 corresponding formal parameters and actual arguments.
25208 (not_all_callers_have_enough_arguments_p) Renamed to
25209 some_callers_have_mismatched_arguments_p.
25210
25211 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
25212
25213 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
25214
25215 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
25216
25217 PR target/60034
25218 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
25219 section anchor.
25220
25221 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
25222
25223 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
25224 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
25225 Split out
25226 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
25227 Use FMAMODE_NOVF512 mode iterator.
25228 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
25229 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
25230 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
25231 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
25232 Split out
25233 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
25234 Use VF_128_256 mode iterator.
25235 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
25236 Ditto.
25237
25238 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
25239
25240 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
25241 static chain if needed.
25242
25243 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
25244
25245 PR target/60697
25246 * lra-constraints.c (index_part_to_reg): New.
25247 (process_address): Use it.
25248
25249 2014-03-27 Jeff Law <law@redhat.com>
25250 Jakub Jelinek <jakub@redhat.com>
25251
25252 PR target/60648
25253 * expr.c (do_tablejump): Use simplify_gen_binary rather than
25254 gen_rtx_{PLUS,MULT} to build up the address expression.
25255
25256 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
25257 creating non-canonical RTL.
25258
25259 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
25260
25261 PR ipa/60243
25262 * ipa-inline.c (want_inline_small_function_p): Short circuit large
25263 functions; reorganize to make cheap checks first.
25264 (inline_small_functions): Do not estimate growth when dumping;
25265 it is expensive.
25266 * ipa-inline.h (inline_summary): Add min_size.
25267 (growth_likely_positive): New function.
25268 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
25269 (set_cond_stmt_execution_predicate): Cleanup.
25270 (estimate_edge_size_and_time): Compute min_size.
25271 (estimate_calls_size_and_time): Likewise.
25272 (estimate_node_size_and_time): Likewise.
25273 (inline_update_overall_summary): Update min_size.
25274 (do_estimate_edge_time): Likewise.
25275 (do_estimate_edge_size): Update.
25276 (do_estimate_edge_hints): Update.
25277 (growth_likely_positive): New function.
25278
25279 2014-03-28 Jakub Jelinek <jakub@redhat.com>
25280
25281 PR target/60693
25282 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
25283 also if addr has VOIDmode.
25284
25285 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25286
25287 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
25288 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
25289 Declare extern.
25290 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
25291 instructions as well as AdvancedSIMD loads.
25292
25293 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25294
25295 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
25296 Use crypto_aese type.
25297 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
25298 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
25299 crypto_aese, crypto_aesmc. Move to types.md.
25300 * config/arm/types.md (crypto_aes): Split into crypto_aese,
25301 crypto_aesmc.
25302 * config/arm/iterators.md (crypto_type): Likewise.
25303
25304 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
25305
25306 * cgraph.c: Include expr.h and tree-dfa.h.
25307 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
25308 remove LHS.
25309
25310 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
25311
25312 PR target/60675
25313 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
25314 regs from checking multi-reg pseudos.
25315
25316 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25317
25318 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
25319
25320 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25321
25322 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
25323 if it would clobber the stack pointer, even temporarily.
25324
25325 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
25326
25327 * mode-switching.c: Make small adjustments to the top comment.
25328
25329 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
25330
25331 * config/rs6000/constraints.md (wD constraint): New constraint to
25332 match the constant integer to get the top DImode/DFmode out of a
25333 vector in a VSX register.
25334
25335 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
25336 match the constant integer to get the top DImode/DFmode out of a
25337 vector in a VSX register.
25338
25339 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
25340 for ISA 2.07.
25341
25342 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25343 vbpermq builtins.
25344
25345 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
25346 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
25347
25348 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
25349 Optimize vec_extract of 64-bit values, where the value being
25350 extracted is in the top word, where we can use scalar
25351 instructions. Add direct move and store support. Combine the big
25352 endian/little endian vector select load support into a single insn.
25353 (vsx_extract_<mode>_internal1): Likewise.
25354 (vsx_extract_<mode>_internal2): Likewise.
25355 (vsx_extract_<mode>_load): Likewise.
25356 (vsx_extract_<mode>_store): Likewise.
25357 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
25358 combined into vsx_extract_<mode>_load.
25359 (vsx_extract_<mode>_one_le): Likewise.
25360
25361 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
25362 define the top 64-bit vector element.
25363
25364 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
25365 constraint.
25366
25367 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25368 Document vec_vbpermq builtin.
25369
25370 PR target/60672
25371 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
25372 enable use of xxsldwi and xxpermdi builtin functions.
25373 (vec_xxpermdi): Likewise.
25374
25375 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25376 Document use of vec_xxsldwi and vec_xxpermdi builtins.
25377
25378 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
25379
25380 PR rtl-optimization/60650
25381 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
25382 first_p. Use it.
25383 (find_spills_for): New.
25384 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
25385 Spill all pseudos on the second iteration.
25386
25387 2014-03-27 Marek Polacek <polacek@redhat.com>
25388
25389 PR c/50347
25390 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
25391 types.
25392
25393 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25394
25395 * config/s390/s390.c (s390_can_use_return_insn): Check for
25396 call-saved FPRs on 31 bit.
25397
25398 2014-03-27 Jakub Jelinek <jakub@redhat.com>
25399
25400 PR middle-end/60682
25401 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
25402 if they need regimplification, just drop them instead of
25403 calling gimple_regimplify_operands on them.
25404
25405 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
25406
25407 PR target/60580
25408 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
25409 (aarch64_frame_pointer_required): Adjust logic.
25410 (aarch64_can_eliminate): Adjust logic.
25411 (aarch64_override_options_after_change): Adjust logic.
25412
25413 2014-03-27 Dehao Chen <dehao@google.com>
25414
25415 * ipa-inline.c (early_inliner): Update node's inline info.
25416
25417 2014-03-26 Dehao Chen <dehao@google.com>
25418
25419 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
25420 compiler inserted conditional jumps for NAN float check.
25421
25422 2014-03-26 Jakub Jelinek <jakub@redhat.com>
25423
25424 * ubsan.h (ubsan_create_data): Change second argument's type
25425 to const location_t *.
25426 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
25427 _("<unknown>").
25428 (ubsan_create_data): Change second argument to const location_t *PLOC.
25429 Create Loc field whenever PLOC is non-NULL.
25430 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
25431 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
25432 callers.
25433
25434 PR other/59545
25435 * real.c (real_to_integer2): Change type of low to UHWI.
25436
25437 2014-03-26 Tobias Burnus <burnus@net-b.de>
25438
25439 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
25440 (CILK_SELF_SPECS): New define.
25441 (driver_self_specs): Use it.
25442
25443 2014-03-26 Richard Biener <rguenther@suse.de>
25444
25445 * tree-pretty-print.c (percent_K_format): Implement special
25446 case for LTO and its stripped down BLOCK tree.
25447
25448 2014-03-26 Jakub Jelinek <jakub@redhat.com>
25449
25450 PR sanitizer/60636
25451 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
25452
25453 * tree-vrp.c (simplify_internal_call_using_ranges): If only
25454 one range is range_int_cst_p, but not both, at least optimize
25455 addition/subtraction of 0 and multiplication by 0 or 1.
25456 * gimple-fold.c (gimple_fold_call): Fold
25457 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
25458 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
25459 INTEGER_CSTs, try to fold at least x * 0 and y - y.
25460
25461 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
25462
25463 PR rtl-optimization/60452
25464 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
25465 <case REG>: Return 1 for invalid offsets from the frame pointer.
25466
25467 2014-03-26 Marek Polacek <polacek@redhat.com>
25468
25469 PR c/37428
25470 * doc/extend.texi (C Extensions): Mention variable-length arrays in
25471 a structure/union.
25472
25473 2014-03-26 Marek Polacek <polacek@redhat.com>
25474
25475 PR c/39525
25476 * doc/extend.texi (Designated Inits): Describe what happens to omitted
25477 field members.
25478
25479 2014-03-26 Marek Polacek <polacek@redhat.com>
25480
25481 PR other/59545
25482 * ira-color.c (update_conflict_hard_regno_costs): Perform the
25483 multiplication in unsigned type.
25484
25485 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
25486
25487 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
25488
25489 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
25490
25491 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
25492
25493 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
25494
25495 PR ipa/60315
25496 * cif-code.def (UNREACHABLE) New code.
25497 * ipa-inline.c (inline_small_functions): Skip edges to
25498 __builtlin_unreachable.
25499 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
25500 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
25501 predicate to __bulitin_unreachable.
25502 (set_cond_stmt_execution_predicate): Fix issue when
25503 invert_tree_comparison returns ERROR_MARK.
25504 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
25505 propagate to inline clones.
25506 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
25507 to unreachable.
25508 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
25509 * cgraphclones.c (cgraph_clone_node): If call destination is already
25510 ureachable, do not redirect it back.
25511 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
25512 unreachable.
25513
25514 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
25515
25516 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
25517 Do not modify inline clones.
25518
25519 2014-03-25 Jakub Jelinek <jakub@redhat.com>
25520
25521 * config/i386/i386.md (general_sext_operand): New mode attr.
25522 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
25523 don't generate (sign_extend (const_int)).
25524 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
25525 operands[2]. Use We constraint instead of <i> and
25526 <general_sext_operand> predicate instead of <general_operand>.
25527 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
25528 * config/i386/constraints.md (We): New constraint.
25529 * config/i386/predicates.md (x86_64_sext_operand,
25530 sext_operand): New predicates.
25531
25532 2014-03-25 Martin Jambor <mjambor@suse.cz>
25533
25534 PR ipa/60600
25535 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
25536 inconsistent devirtualizations to __builtin_unreachable.
25537
25538 2014-03-25 Marek Polacek <polacek@redhat.com>
25539
25540 PR c/35449
25541 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
25542
25543 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
25544
25545 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
25546 order of elements for big-endian.
25547
25548 2014-03-25 Richard Biener <rguenther@suse.de>
25549
25550 PR middle-end/60635
25551 * gimplify-me.c (gimple_regimplify_operands): Update the
25552 re-gimplifed stmt.
25553
25554 2014-03-25 Martin Jambor <mjambor@suse.cz>
25555
25556 PR ipa/59176
25557 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
25558 (lto_output_varpool_node): Likewise.
25559 (input_overwrite_node): Likewise.
25560 (input_varpool_node): Likewise.
25561
25562 2014-03-25 Richard Biener <rguenther@suse.de>
25563
25564 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
25565 (run_gcc): Likewise.
25566
25567 2014-03-25 Jakub Jelinek <jakub@redhat.com>
25568
25569 * combine.c (simplify_compare_const): Add MODE argument.
25570 Handle mode_width 0 as very large mode_width.
25571 (try_combine, simplify_comparison): Adjust callers.
25572
25573 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
25574 type to avoid signed integer overflow.
25575 * explow.c (plus_constant): Likewise.
25576
25577 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
25578
25579 * doc/generic.texi: Correct typos.
25580
25581 2014-03-24 Tobias Burnus <burnus@net-b.de>
25582
25583 * doc/invoke.texi (-flto): Expand section about
25584 using static libraries with LTO.
25585
25586 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25587
25588 PR rtl-optimization/60501
25589 * optabs.def (addptr3_optab): New optab.
25590 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
25591 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
25592 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
25593
25594 * lra.c (emit_add3_insn): Use the addptr pattern if available.
25595
25596 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
25597
25598 2014-03-24 Ulrich Drepper <drepper@gmail.com>
25599
25600 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
25601 _mm512_set1_pd.
25602
25603 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
25604 (_mm256_undefined_ps): Define.
25605 (_mm256_undefined_pd): Define.
25606 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
25607 (_mm_undefined_pd): Define.
25608 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
25609 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
25610 (_mm512_undefined_ps): Define.
25611 (_mm512_undefined_pd): Define.
25612 Use _mm*_undefined_*.
25613 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
25614
25615 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
25616
25617 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
25618 (lshr_simd): DI mode added.
25619 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
25620 (aarch64_ushr_simddi): Likewise.
25621 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
25622 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
25623 (vshrd_n_u64): Likewise.
25624
25625 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25626
25627 * Makefile.in (s-macro_list): Depend on cc1.
25628
25629 2014-03-23 Teresa Johnson <tejohnson@google.com>
25630
25631 * ipa-utils.c (ipa_print_order): Use specified dump file.
25632
25633 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
25634
25635 PR rtl-optimization/60601
25636 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
25637
25638 * gcc.c (eval_spec_function): Initialize save_growing_value.
25639
25640 2014-03-22 Jakub Jelinek <jakub@redhat.com>
25641
25642 PR sanitizer/60613
25643 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
25644 code == MINUS_EXPR, never swap op0 with op1.
25645
25646 * toplev.c (init_local_tick): Avoid signed integer multiplication
25647 overflow.
25648 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
25649 shift by first operand's bitsize.
25650
25651 2014-03-21 Jakub Jelinek <jakub@redhat.com>
25652
25653 PR target/60610
25654 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
25655 redefine to 1 or 0.
25656 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
25657 TARGET_ISA_64BIT_P(x).
25658
25659 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25660
25661 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
25662 pattern for vector nor instead of subtract from splat(-1).
25663 (altivec_expand_vec_perm_const_le): Likewise.
25664
25665 2014-03-21 Richard Henderson <rth@twiddle.net>
25666
25667 PR target/60598
25668 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
25669 related insns after epilogue_completed.
25670
25671 2014-03-21 Martin Jambor <mjambor@suse.cz>
25672
25673 PR ipa/59176
25674 * cgraph.h (symtab_node): New flag body_removed.
25675 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
25676 when removing bodies.
25677 * symtab.c (dump_symtab_base): Dump body_removed flag.
25678 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
25679 had their bodies removed.
25680
25681 2014-03-21 Martin Jambor <mjambor@suse.cz>
25682
25683 PR ipa/60419
25684 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
25685 in the border.
25686
25687 2014-03-21 Richard Biener <rguenther@suse.de>
25688
25689 PR tree-optimization/60577
25690 * tree-core.h (struct tree_base): Document nothrow_flag use
25691 in DECL_NONALIASED.
25692 * tree.h (DECL_NONALIASED): New.
25693 (may_be_aliased): Adjust.
25694 * coverage.c (build_var): Set DECL_NONALIASED.
25695
25696 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25697
25698 * expr.c (expand_expr_real_1): Remove outdated comment.
25699
25700 2014-03-20 Jakub Jelinek <jakub@redhat.com>
25701
25702 PR middle-end/60597
25703 * ira.c (adjust_cleared_regs): Call copy_rtx on
25704 *reg_equiv[REGNO (loc)].src_p before passing it to
25705 simplify_replace_fn_rtx.
25706
25707 PR target/60568
25708 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
25709 into CONST, put pic register as first operand of PLUS. Use
25710 gen_const_mem for both 32-bit and 64-bit PIC got loads.
25711
25712 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25713
25714 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
25715
25716 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25717
25718 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
25719 around for store forwarding issue in the FPU on the UT699.
25720 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
25721 loads and operations if -mfix-ut699 is specified.
25722 (divtf3_hq): Tweak attribute.
25723 (sqrttf2_hq): Likewise.
25724
25725 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25726
25727 * calls.c (store_one_arg): Remove incorrect const qualification on the
25728 type of the temporary.
25729 * cfgexpand.c (expand_return): Likewise.
25730 * expr.c (expand_constructor): Likewise.
25731 (expand_expr_real_1): Likewise.
25732
25733 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25734
25735 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
25736 of parts.
25737
25738 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
25739
25740 PR target/60039
25741 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
25742
25743 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
25744
25745 * config/arm/aarch-common-protos.h
25746 (alu_cost_table): Fix spelling of "extend".
25747 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
25748
25749 2014-03-19 Richard Biener <rguenther@suse.de>
25750
25751 PR middle-end/60553
25752 * tree-core.h (tree_type_common): Re-order pointer members
25753 to reduce recursion depth during GC walks.
25754
25755 2014-03-19 Marek Polacek <polacek@redhat.com>
25756
25757 PR sanitizer/60569
25758 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
25759 before accessing it.
25760
25761 2014-03-19 Richard Biener <rguenther@suse.de>
25762
25763 PR lto/59543
25764 * lto-streamer-in.c (input_function): In WPA stage do not drop
25765 debug stmts.
25766
25767 2014-03-19 Jakub Jelinek <jakub@redhat.com>
25768
25769 PR tree-optimization/60559
25770 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
25771 with build_zero_cst assignment.
25772
25773 2014-03-18 Kai Tietz <ktietz@redhat.com>
25774
25775 PR rtl-optimization/56356
25776 * sdbout.c (sdbout_parms): Verify that parms'
25777 incoming argument is valid.
25778 (sdbout_reg_parms): Likewise.
25779
25780 2014-03-18 Richard Henderson <rth@redhat.com>
25781
25782 PR target/60562
25783 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
25784 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
25785 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
25786
25787 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
25788
25789 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
25790 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
25791 Italicize plugin event names in description. Explain that
25792 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
25793 Remind that no GCC functions should be called after PLUGIN_FINISH.
25794 Explain what pragmas with expansion are.
25795
25796 2014-03-18 Martin Liska <mliska@suse.cz>
25797
25798 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
25799 gimple call statement is update.
25800 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
25801 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
25802
25803 2014-03-18 Jakub Jelinek <jakub@redhat.com>
25804
25805 PR sanitizer/60557
25806 * ubsan.c (ubsan_instrument_unreachable): Call
25807 initialize_sanitizer_builtins.
25808 (ubsan_pass): Likewise.
25809
25810 PR sanitizer/60535
25811 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
25812 varpool_finalize_decl instead of rest_of_decl_compilation.
25813
25814 2014-03-18 Richard Biener <rguenther@suse.de>
25815
25816 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
25817 by using bitmap_and_compl instead of bitmap_and_compl_into.
25818 (df_rd_transfer_function): Likewise.
25819
25820 2014-03-18 Richard Biener <rguenther@suse.de>
25821
25822 * doc/lto.texi (fresolution): Fix typo.
25823
25824 2014-03-18 Richard Biener <rguenther@suse.de>
25825
25826 * doc/invoke.texi (flto): Update for changes in 4.9.
25827
25828 2014-03-18 Richard Biener <rguenther@suse.de>
25829
25830 * doc/loop.texi: Remove section on the removed lambda framework.
25831 Update loop docs with recent changes in preserving loop structure.
25832
25833 2014-03-18 Richard Biener <rguenther@suse.de>
25834
25835 * doc/lto.texi (-fresolution): Document.
25836
25837 2014-03-18 Richard Biener <rguenther@suse.de>
25838
25839 * doc/contrib.texi: Adjust my name.
25840
25841 2014-03-18 Jakub Jelinek <jakub@redhat.com>
25842
25843 PR ipa/58721
25844 * internal-fn.c: Include diagnostic-core.h.
25845 (expand_BUILTIN_EXPECT): New function.
25846 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
25847 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
25848 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
25849 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
25850 IFN_BUILTIN_EXPECT.
25851 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
25852 Revert 3 argument __builtin_expect code.
25853 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
25854 * gimple-fold.c (gimple_fold_call): Likewise.
25855 * tree.h (fold_builtin_expect): New prototype.
25856 * builtins.c (build_builtin_expect_predicate): Add predictor
25857 argument, if non-NULL, create 3 argument __builtin_expect.
25858 (fold_builtin_expect): No longer static. Add ARG2 argument,
25859 pass it through to build_builtin_expect_predicate.
25860 (fold_builtin_2): Adjust caller.
25861 (fold_builtin_3): Handle BUILT_IN_EXPECT.
25862 * internal-fn.def (BUILTIN_EXPECT): New.
25863
25864 2014-03-18 Tobias Burnus <burnus@net-b.de>
25865
25866 PR ipa/58721
25867 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
25868 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
25869 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
25870
25871 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
25872
25873 PR ipa/58721
25874 * predict.c (combine_predictions_for_bb): Fix up formatting.
25875 (expr_expected_value_1, expr_expected_value): Add predictor argument,
25876 fill what it points to if non-NULL.
25877 (tree_predict_by_opcode): Adjust caller, use the predictor.
25878 * predict.def (PRED_COMPARE_AND_SWAP): Add.
25879
25880 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
25881
25882 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
25883 proper constant for the store mode.
25884
25885 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
25886
25887 * symtab.c (change_decl_assembler_name): Fix transparent alias
25888 chain construction.
25889
25890 2014-03-16 Renlin Li <Renlin.Li@arm.com>
25891
25892 * config/aarch64/aarch64.c: Correct the comments about the
25893 aarch64 stack layout.
25894
25895 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
25896
25897 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
25898 check for GF_OMP_FOR_KIND_FOR.
25899
25900 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
25901
25902 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
25903 ymm and zmm register names.
25904
25905 2014-03-17 Jakub Jelinek <jakub@redhat.com>
25906
25907 PR target/60516
25908 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
25909 note creation for the 2010-08-31 changes.
25910
25911 2014-03-17 Marek Polacek <polacek@redhat.com>
25912
25913 PR middle-end/60534
25914 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
25915 as -fno-tree-loop-vectorize.
25916 (expand_omp_simd): Likewise.
25917
25918 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
25919
25920 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
25921 (eligible_for_call_delay): New prototype.
25922 * config/sparc/sparc.c (tls_call_delay): Rename into...
25923 (eligible_for_call_delay): ...this. Return false if the instruction
25924 cannot be put in the delay slot of a branch.
25925 (eligible_for_restore_insn): Simplify.
25926 (eligible_for_return_delay): Return false if the instruction cannot be
25927 put in the delay slot of a branch and simplify.
25928 (eligible_for_sibcall_delay): Return false if the instruction cannot be
25929 put in the delay slot of a branch.
25930 * config/sparc/sparc.md (fix_ut699): New attribute.
25931 (tls_call_delay): Delete.
25932 (in_call_delay): Reimplement.
25933 (eligible_for_sibcall_delay): Rename into...
25934 (in_sibcall_delay): ...this.
25935 (eligible_for_return_delay): Rename into...
25936 (in_return_delay): ...this.
25937 (in_branch_delay): Reimplement.
25938 (in_uncond_branch_delay): Delete.
25939 (in_annul_branch_delay): Delete.
25940
25941 2014-03-14 Richard Henderson <rth@redhat.com>
25942
25943 PR target/60525
25944 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
25945 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
25946 (*floathi<X87MODEF>2_i387_with_temp): Remove.
25947 (floathi splitters): Remove.
25948 (float<SWI48x>xf2): New pattern.
25949 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
25950 code that tried to handle DImode for 32-bit, but which was excluded
25951 by the pattern's condition. Drop allocation of stack temporary.
25952 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
25953 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
25954 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
25955 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
25956 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
25957 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
25958 (*float<SWI48><MODEF>2_sse_interunit): Remove.
25959 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
25960 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
25961 (*float<SWI48x><X87MODEF>2_i387): Remove.
25962 (all float _with_temp splitters): Remove.
25963 (*float<SWI48x><MODEF>2_i387): New pattern.
25964 (*float<SWI48><MODEF>2_sse): New pattern.
25965 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
25966 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
25967
25968 2014-03-14 Jakub Jelinek <jakub@redhat.com>
25969 Marek Polacek <polacek@redhat.com>
25970
25971 PR middle-end/60484
25972 * common.opt (dump_base_name_prefixed): New Variable.
25973 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
25974 if x_dump_base_name_prefixed is already set, set it at the end.
25975
25976 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
25977
25978 PR rtl-optimization/60508
25979 * lra-constraints.c (get_reload_reg): Add new parameter
25980 in_subreg_p.
25981 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
25982 Pass the new parameter values.
25983
25984 2014-03-14 Richard Biener <rguenther@suse.de>
25985
25986 * common.opt: Revert unintented changes from r205065.
25987 * opts.c: Likewise.
25988
25989 2014-03-14 Richard Biener <rguenther@suse.de>
25990
25991 PR middle-end/60518
25992 * cfghooks.c (split_block): Properly adjust all loops the
25993 block was a latch of.
25994
25995 2014-03-14 Martin Jambor <mjambor@suse.cz>
25996
25997 PR lto/60461
25998 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
25999 and simplify it.
26000
26001 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
26002
26003 PR target/59396
26004 * config/avr/avr.c (avr_set_current_function): Pass function name
26005 through default_strip_name_encoding before sanity checking instead
26006 of skipping the first char of the assembler name.
26007
26008 2014-03-13 Richard Henderson <rth@redhat.com>
26009
26010 PR debug/60438
26011 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
26012 (ix86_force_to_memory, ix86_free_from_memory): Remove.
26013 * config/i386/i386-protos.h: Likewise.
26014 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
26015 in the expander instead of a splitter.
26016 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
26017 any possibility of requiring a memory.
26018 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
26019 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
26020 (fp branch splitters): Update for ix86_split_fp_branch.
26021 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
26022 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
26023 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
26024 (*fop_<MODEF>_2_i387): Remove f/r alternative.
26025 (*fop_<MODEF>_3_i387): Likewise.
26026 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
26027 (splitters for the fop_* register patterns): Remove.
26028 (fscalexf4_i387): Rename from *fscalexf4_i387.
26029 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
26030
26031 2014-03-13 Jakub Jelinek <jakub@redhat.com>
26032
26033 PR tree-optimization/59779
26034 * tree-dfa.c (get_ref_base_and_extent): Use double_int
26035 type for bitsize and maxsize instead of HOST_WIDE_INT.
26036
26037 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
26038
26039 PR rtl-optimization/57320
26040 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
26041 the CFG after thread_prologue_and_epilogue_insns.
26042
26043 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
26044
26045 PR rtl-optimization/57189
26046 * lra-constraints.c (process_alt_operands): Disfavor spilling
26047 vector pseudos.
26048
26049 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
26050
26051 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
26052
26053 2014-03-13 Jakub Jelinek <jakub@redhat.com>
26054
26055 PR tree-optimization/59025
26056 PR middle-end/60418
26057 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
26058 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
26059
26060 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
26061
26062 PR target/60486
26063 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
26064 calls of avr_out_plus_1.
26065
26066 2014-03-13 Bin Cheng <bin.cheng@arm.com>
26067
26068 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
26069 BB's single pred and update the father loop's latch info later.
26070
26071 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
26072
26073 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
26074 (VEC_M): Likewise.
26075 (VEC_N): Likewise.
26076 (VEC_R): Likewise.
26077 (VEC_base): Likewise.
26078 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
26079 registers, we need to swap double words in little endian mode.
26080
26081 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
26082 to be a container mode for 128-bit integer operations added in ISA
26083 2.07. Unlike TImode and PTImode, the preferred register set is
26084 the Altivec/VMX registers for the 128-bit operations.
26085
26086 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
26087 declarations.
26088 (rs6000_split_128bit_ok_p): Likewise.
26089
26090 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
26091 macros for creating ISA 2.07 normal and overloaded builtin
26092 functions with 3 arguments.
26093 (BU_P8V_OVERLOAD_3): Likewise.
26094 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
26095 for use as overloaded functions.
26096 (VPERM_1TI_UNS): Likewise.
26097 (VSEL_1TI): Likewise.
26098 (VSEL_1TI_UNS): Likewise.
26099 (ST_INTERNAL_1ti): Likewise.
26100 (LD_INTERNAL_1ti): Likewise.
26101 (XXSEL_1TI): Likewise.
26102 (XXSEL_1TI_UNS): Likewise.
26103 (VPERM_1TI): Likewise.
26104 (VPERM_1TI_UNS): Likewise.
26105 (XXPERMDI_1TI): Likewise.
26106 (SET_1TI): Likewise.
26107 (LXVD2X_V1TI): Likewise.
26108 (STXVD2X_V1TI): Likewise.
26109 (VEC_INIT_V1TI): Likewise.
26110 (VEC_SET_V1TI): Likewise.
26111 (VEC_EXT_V1TI): Likewise.
26112 (EQV_V1TI): Likewise.
26113 (NAND_V1TI): Likewise.
26114 (ORC_V1TI): Likewise.
26115 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
26116 added in ISA 2.07. Add both normal 'altivec' builtins, and the
26117 overloaded builtin.
26118 (VADDUQM): Likewise.
26119 (VSUBCUQ): Likewise.
26120 (VADDEUQM): Likewise.
26121 (VADDECUQ): Likewise.
26122 (VSUBEUQM): Likewise.
26123 (VSUBECUQ): Likewise.
26124
26125 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
26126 __int128_t and __uint128_t types.
26127 (__uint128_type): Likewise.
26128 (altivec_categorize_keyword): Add support for vector __int128_t,
26129 vector __uint128_t, vector __int128, and vector unsigned __int128
26130 as a container type for TImode operations that need to be done in
26131 VSX/Altivec registers.
26132 (rs6000_macro_to_expand): Likewise.
26133 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
26134 to support 128-bit integer instructions vaddcuq, vadduqm,
26135 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
26136 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
26137
26138 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
26139 for V1TImode, and set up preferences to use VSX/Altivec registers.
26140 Setup VSX reload handlers.
26141 (rs6000_debug_reg_global): Likewise.
26142 (rs6000_init_hard_regno_mode_ok): Likewise.
26143 (rs6000_preferred_simd_mode): Likewise.
26144 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
26145 (easy_altivec_constant): Likewise.
26146 (output_vec_const_move): Likewise.
26147 (rs6000_expand_vector_set): Convert V1TImode set and extract to
26148 simple move.
26149 (rs6000_expand_vector_extract): Likewise.
26150 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
26151 addressing.
26152 (rs6000_const_vec): Add support for V1TImode.
26153 (rs6000_emit_le_vsx_load): Swap double words when loading or
26154 storing TImode/V1TImode.
26155 (rs6000_emit_le_vsx_store): Likewise.
26156 (rs6000_emit_le_vsx_move): Likewise.
26157 (rs6000_emit_move): Add support for V1TImode.
26158 (altivec_expand_ld_builtin): Likewise.
26159 (altivec_expand_st_builtin): Likewise.
26160 (altivec_expand_vec_init_builtin): Likewise.
26161 (altivec_expand_builtin): Likewise.
26162 (rs6000_init_builtins): Add support for V1TImode type. Add
26163 support for ISA 2.07 128-bit integer builtins. Define type names
26164 for the VSX/Altivec vector types.
26165 (altivec_init_builtins): Add support for overloaded vector
26166 functions with V1TImode type.
26167 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
26168 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
26169 external function.
26170 (rs6000_split_128bit_ok_p): Likewise.
26171 (rs6000_handle_altivec_attribute): Create V1TImode from vector
26172 __int128_t and vector __uint128_t.
26173
26174 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
26175 and mode attributes.
26176 (VSX_M): Likewise.
26177 (VSX_M2): Likewise.
26178 (VSm): Likewise.
26179 (VSs): Likewise.
26180 (VSr): Likewise.
26181 (VSv): Likewise.
26182 (VS_scalar): Likewise.
26183 (VS_double): Likewise.
26184 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
26185
26186 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
26187 we support the ISA 2.07 128-bit integer arithmetic instructions.
26188 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
26189 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
26190 and TImode types for use with the builtin functions.
26191 (V1TI_type_node): Likewise.
26192 (unsigned_V1TI_type_node): Likewise.
26193 (intTI_type_internal_node): Likewise.
26194 (uintTI_type_internal_node): Likewise.
26195
26196 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
26197 128-bit builtin functions.
26198 (UNSPEC_VADDEUQM): Likewise.
26199 (UNSPEC_VADDECUQ): Likewise.
26200 (UNSPEC_VSUBCUQ): Likewise.
26201 (UNSPEC_VSUBEUQM): Likewise.
26202 (UNSPEC_VSUBECUQ): Likewise.
26203 (VM): Add V1TImode to vector mode iterators.
26204 (VM2): Likewise.
26205 (VI_unit): Likewise.
26206 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
26207 (altivec_vaddcuq): Likewise.
26208 (altivec_vsubuqm): Likewise.
26209 (altivec_vsubcuq): Likewise.
26210 (altivec_vaddeuqm): Likewise.
26211 (altivec_vaddecuq): Likewise.
26212 (altivec_vsubeuqm): Likewise.
26213 (altivec_vsubecuq): Likewise.
26214
26215 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
26216 mode iterators.
26217 (BOOL_128): Likewise.
26218 (BOOL_REGS_OUTPUT): Likewise.
26219 (BOOL_REGS_OP1): Likewise.
26220 (BOOL_REGS_OP2): Likewise.
26221 (BOOL_REGS_UNARY): Likewise.
26222 (BOOL_REGS_AND_CR0): Likewise.
26223
26224 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
26225 128-bit integer builtin support.
26226 (vec_vadduqm): Likewise.
26227 (vec_vaddecuq): Likewise.
26228 (vec_vaddeuqm): Likewise.
26229 (vec_vsubecuq): Likewise.
26230 (vec_vsubeuqm): Likewise.
26231 (vec_vsubcuq): Likewise.
26232 (vec_vsubuqm): Likewise.
26233
26234 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26235 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
26236 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
26237 128-bit integer add/subtract to ISA 2.07.
26238
26239 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
26240
26241 * config/arc/arc.c (arc_predicate_delay_insns):
26242 Fix third argument passed to conditionalize_nonjump.
26243
26244 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
26245
26246 * config/aarch64/aarch64-builtins.c
26247 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
26248 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
26249 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
26250 instead of __builtin_lfloor.
26251 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
26252
26253 2014-03-12 Jakub Jelinek <jakub@redhat.com>
26254
26255 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
26256 (tree_ssa_ifcombine_bb_1): New function.
26257 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
26258 is an empty forwarder block to then_bb or vice versa and then_bb
26259 and else_bb are effectively swapped.
26260
26261 2014-03-12 Christian Bruel <christian.bruel@st.com>
26262
26263 PR target/60264
26264 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
26265 REG_CFA_DEF_CFA note.
26266 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
26267 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
26268
26269 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
26270
26271 PR tree-optimization/60454
26272 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
26273
26274 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26275
26276 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
26277 Do not define target_cpu_default2 to generic.
26278 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
26279 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
26280 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
26281
26282 2014-03-12 Jakub Jelinek <jakub@redhat.com>
26283 Marc Glisse <marc.glisse@inria.fr>
26284
26285 PR tree-optimization/60502
26286 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
26287 instead of build_low_bits_mask.
26288
26289 2014-03-12 Jakub Jelinek <jakub@redhat.com>
26290
26291 PR middle-end/60482
26292 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
26293 if there are multiple uses, but op doesn't live on E edge.
26294 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
26295 clobber stmts before __builtin_unreachable.
26296
26297 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
26298
26299 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
26300 hard_frame_pointer_rtx.
26301 * cse.c (cse_insn): Remove volatile check.
26302 * cselib.c (cselib_process_insn): Likewise.
26303 * dse.c (scan_insn): Likewise.
26304
26305 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
26306
26307 * config/arc/arc.c (conditionalize_nonjump): New function,
26308 broken out of ...
26309 (arc_ifcvt): ... this.
26310 (arc_predicate_delay_insns): Use it.
26311
26312 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
26313
26314 * config/arc/predicates.md (extend_operand): During/after reload,
26315 allow const_int_operand.
26316 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
26317 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
26318 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
26319 to "i".
26320 (umulsi3_highpart_i): Likewise.
26321
26322 2014-03-11 Richard Biener <rguenther@suse.de>
26323
26324 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
26325 Add asserts to guard possible wrong-code bugs.
26326
26327 2014-03-11 Richard Biener <rguenther@suse.de>
26328
26329 PR tree-optimization/60429
26330 PR tree-optimization/60485
26331 * tree-ssa-structalias.c (set_union_with_increment): Properly
26332 take into account all fields that overlap the shifted vars.
26333 (do_sd_constraint): Likewise.
26334 (do_ds_constraint): Likewise.
26335 (get_constraint_for_ptr_offset): Likewise.
26336
26337 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
26338
26339 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
26340 (nios2_compute_frame_layout):
26341 Add calculation of cfun->machine->fp_save_offset.
26342 (nios2_expand_prologue): Correct setting of frame pointer register
26343 in prologue.
26344 (nios2_expand_epilogue): Update recovery of stack pointer from
26345 frame pointer accordingly.
26346 (nios2_initial_elimination_offset): Update calculation of offset
26347 for eliminating to HARD_FRAME_POINTER_REGNUM.
26348
26349 2014-03-10 Jakub Jelinek <jakub@redhat.com>
26350
26351 PR ipa/60457
26352 * ipa.c (symtab_remove_unreachable_nodes): Don't call
26353 cgraph_get_create_node on VAR_DECLs.
26354
26355 2014-03-10 Richard Biener <rguenther@suse.de>
26356
26357 PR middle-end/60474
26358 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
26359
26360 2014-03-08 Douglas B Rupp <rupp@gnat.com>
26361
26362 * config/vms/vms.opt (vms_float_format): New variable.
26363
26364 2014-03-08 Tobias Burnus <burnus@net-b.de>
26365
26366 * doc/invoke.texi (-fcilkplus): Update implementation status.
26367
26368 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
26369 Richard Biener <rguenther@suse.de>
26370
26371 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
26372 consistently accross all TUs.
26373 (run_gcc): Enable -fshort-double automatically at link at link-time
26374 and disallow override.
26375
26376 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
26377
26378 PR target/58271
26379 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
26380 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
26381 if they can't be used.
26382
26383 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26384
26385 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
26386 for Solaris 11/x86 ld.
26387 * configure: Regenerate.
26388
26389 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26390
26391 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
26392 (LIB_TLS_SPEC): Save as ld_tls_libs.
26393 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
26394 (HAVE_AS_IX86_TLSLDM): New test.
26395 * configure, config.in: Regenerate.
26396 * config/i386/i386.c (legitimize_tls_address): Fall back to
26397 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
26398 cannot support TLS_MODEL_LOCAL_DYNAMIC.
26399 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
26400 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
26401
26402 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
26403
26404 * common.opt (fira-loop-pressure): Mark as optimization.
26405
26406 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
26407
26408 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
26409 an OpenMP mappable type.
26410
26411 2014-03-06 Matthias Klose <doko@ubuntu.com>
26412
26413 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
26414 MULTILIB_OSDIRNAMES is not defined.
26415
26416 2014-03-06 Jakub Jelinek <jakub@redhat.com>
26417 Meador Inge <meadori@codesourcery.com>
26418
26419 PR target/58595
26420 * config/arm/arm.c (arm_tls_symbol_p): Remove.
26421 (arm_legitimize_address): Call legitimize_tls_address for any
26422 arm_tls_referenced_p expression, handle constant addend. Call it
26423 before testing for !TARGET_ARM.
26424 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
26425
26426 2014-03-06 Richard Biener <rguenther@suse.de>
26427
26428 PR middle-end/60445
26429 PR lto/60424
26430 PR lto/60427
26431 Revert
26432 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
26433
26434 * tree-streamer.c (record_common_node): Assert we don't record
26435 nodes with type double.
26436 (preload_common_node): Skip type double, complex double and double
26437 pointer since it is now frontend dependent due to fshort-double option.
26438
26439 2014-03-06 Richard Biener <rguenther@suse.de>
26440
26441 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
26442 or -fno-lto is specified and the linker has full plugin support.
26443 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
26444 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
26445 * lto-wrapper.c (merge_and_complain): Merge compile-time
26446 optimization levels.
26447 (run_gcc): And pass it through to the link options.
26448
26449 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
26450
26451 PR debug/60381
26452 Revert:
26453 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26454 PR debug/59992
26455 * cselib.c (remove_useless_values): Skip to avoid quadratic
26456 behavior if the condition moved from...
26457 (cselib_process_insn): ... here holds.
26458
26459 2014-03-05 Jakub Jelinek <jakub@redhat.com>
26460
26461 PR plugins/59335
26462 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
26463 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
26464
26465 PR plugins/59335
26466 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
26467 (TM_H): Add x86-tune.def.
26468
26469 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26470
26471 * config/aarch64/aarch64.c (generic_tunings):
26472 Use cortexa57_extra_costs.
26473
26474 2014-03-05 Jakub Jelinek <jakub@redhat.com>
26475
26476 PR lto/60404
26477 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
26478 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
26479 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
26480 cost for in_lto_p.
26481
26482 2014-03-04 Heiher <r@hev.cc>
26483
26484 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
26485 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
26486
26487 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
26488
26489 * config/i386/predicates.md (const2356_operand): Change to ...
26490 (const2367_operand): ... this.
26491 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
26492 const2367_operand.
26493 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26494 (*avx512pf_scatterpf<mode>sf): Ditto.
26495 (avx512pf_scatterpf<mode>df): Ditto.
26496 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26497 (*avx512pf_scatterpf<mode>df): Ditto.
26498 * config/i386/i386.c (ix86_expand_builtin): Update
26499 incorrect hint operand error message.
26500
26501 2014-03-04 Richard Biener <rguenther@suse.de>
26502
26503 * lto-section-in.c (lto_get_section_data): Fix const cast.
26504
26505 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
26506
26507 * tree-streamer.c (record_common_node): Assert we don't record
26508 nodes with type double.
26509 (preload_common_node): Skip type double, complex double and double
26510 pointer since it is now frontend dependent due to fshort-double option.
26511
26512 2014-03-04 Richard Biener <rguenther@suse.de>
26513
26514 PR lto/60405
26515 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
26516 (lto_input_toplevel_asms): Likewise.
26517 * lto-section-in.c (lto_get_section_data): Instead do it here
26518 for every section.
26519
26520 2014-03-04 Richard Biener <rguenther@suse.de>
26521
26522 PR tree-optimization/60382
26523 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
26524 dead PHIs a reduction.
26525
26526 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
26527
26528 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
26529 hint value.
26530 (_mm_prefetch): Move out of GCC target("sse") pragma.
26531 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
26532 GCC target("prfchw") pragma.
26533 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
26534 for locality <= 2.
26535 * config/i386/i386.c (ix86_option_override_internal): Enable
26536 -mprfchw with -mprefetchwt1.
26537
26538 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
26539
26540 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
26541 Mark as varying.
26542
26543 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
26544
26545 * opts.h (CL_PCH_IGNORE): Define.
26546 * targhooks.c (option_affects_pch_p):
26547 Return false for options that have CL_PCH_IGNORE set.
26548 * opt-functions.awk: Process PchIgnore.
26549 * doc/options.texi: Document PchIgnore.
26550
26551 * config/arc/arc.opt (misize): Add PchIgnore property.
26552
26553 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26554
26555 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
26556 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
26557 constraint on constants to permit them being loaded into
26558 GENERAL_REGS or BASE_REGS.
26559
26560 2014-03-03 Nick Clifton <nickc@redhat.com>
26561
26562 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
26563 anti-cacnonical alternatives.
26564 (negandhi3_real): New pattern.
26565 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
26566
26567 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26568
26569 * config/avr/avr-mcus.def: Remove atxmega16x1.
26570 * config/avr/avr-tables.opt: Regenerate.
26571 * config/avr/t-multilib: Regenerate.
26572 * doc/avr-mmcu.texi: Regenerate.
26573
26574 2014-03-03 Tobias Grosser <tobias@grosser.es>
26575 Mircea Namolaru <mircea.namolaru@inria.fr>
26576
26577 PR tree-optimization/58028
26578 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
26579 scalar dimensions.
26580
26581 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26582
26583 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
26584 not handled by recognizers.
26585
26586 2014-03-03 Jakub Jelinek <jakub@redhat.com>
26587
26588 PR middle-end/60175
26589 * function.c (expand_function_end): Don't emit
26590 clobber_return_register sequence if clobber_after is a BARRIER.
26591 * cfgexpand.c (construct_exit_block): Append instructions before
26592 return_label to prev_bb.
26593
26594 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26595
26596 * config/rs6000/constraints.md: Document reserved use of "wc".
26597
26598 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
26599
26600 PR ipa/60150
26601 * ipa.c (function_and_variable_visibility): When dissolving comdat
26602 group, also set all symbols to local.
26603
26604 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
26605
26606 PR ipa/60306
26607
26608 Revert:
26609 2013-12-14 Jan Hubicka <jh@suse.cz>
26610 PR middle-end/58477
26611 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
26612
26613 2014-03-02 Jon Beniston <jon@beniston.com>
26614
26615 PR bootstrap/48230
26616 PR bootstrap/50927
26617 PR bootstrap/52466
26618 PR target/46898
26619 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
26620 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
26621 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
26622 (simple_return, *simple_return): New patterns
26623 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
26624 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
26625
26626 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
26627
26628 * dwarf2out.c (gen_subprogram_die): Tidy.
26629
26630 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
26631
26632 PR target/60071
26633 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
26634 (*mov_t_msb_neg_negc): ... this new insn.
26635
26636 2014-02-28 Jason Merrill <jason@redhat.com>
26637
26638 PR c++/58678
26639 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
26640 function.
26641
26642 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
26643
26644 PR c++/60314
26645 * dwarf2out.c (decltype_auto_die): New static.
26646 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
26647 (gen_type_die_with_usage): Handle 'decltype(auto)'.
26648 (is_cxx_auto): Likewise.
26649
26650 2014-02-28 Ian Bolton <ian.bolton@arm.com>
26651
26652 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
26653 we are not using general regs only.
26654
26655 2014-02-28 Richard Biener <rguenther@suse.de>
26656
26657 PR target/60280
26658 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
26659 previous fix and only allow to remove trivial pre-headers
26660 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
26661 (remove_forwarder_block): Properly update the latch of a loop.
26662
26663 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26664
26665 PR debug/59992
26666 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
26667 (cselib_preserved_hash_table): New.
26668 (preserve_constants_and_equivs): Move preserved vals to it.
26669 (cselib_find_slot): Look it up first.
26670 (cselib_init): Initialize it.
26671 (cselib_finish): Release it.
26672 (dump_cselib_table): Dump it.
26673
26674 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26675
26676 PR debug/59992
26677 * cselib.c (remove_useless_values): Skip to avoid quadratic
26678 behavior if the condition moved from...
26679 (cselib_process_insn): ... here holds.
26680
26681 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26682
26683 PR debug/57232
26684 * var-tracking.c (vt_initialize): Apply the same condition to
26685 preserve the CFA base value.
26686
26687 2014-02-28 Joey Ye <joey.ye@arm.com>
26688
26689 PR target/PR60169
26690 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
26691 if reload in progress or completed.
26692
26693 2014-02-28 Tobias Burnus <burnus@net-b.de>
26694
26695 PR middle-end/60147
26696 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
26697 NAMELIST_DECL.
26698
26699 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
26700
26701 * doc/tm.texi.in (Condition Code Status): Update documention for
26702 relative locations of cc0-setter and cc0-user.
26703
26704 2014-02-27 Jeff Law <law@redhat.com>
26705
26706 PR rtl-optimization/52714
26707 * combine.c (try_combine): When splitting an unrecognized PARALLEL
26708 into two independent simple sets, if I3 is a jump, ensure the
26709 pattern we place into I3 is a (set (pc) ...).
26710
26711 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
26712 Jeff Law <law@redhat.com>
26713
26714 PR rtl-optimization/49847
26715 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
26716 are in different blocks.
26717 * doc/tm.texi (Condition Code Status): Update documention for
26718 relative locations of cc0-setter and cc0-user.
26719
26720 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
26721
26722 PR target/59222
26723 * lra.c (lra_emit_add): Check SUBREG too.
26724
26725 2014-02-27 Andreas Schwab <schwab@suse.de>
26726
26727 * config/m68k/m68k.c (m68k_option_override): Disable
26728 -flive-range-shrinkage for classic m68k.
26729 (m68k_override_options_after_change): Likewise.
26730
26731 2014-02-27 Marek Polacek <polacek@redhat.com>
26732
26733 PR middle-end/59223
26734 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
26735 -Wmaybe-uninitialized.
26736
26737 2014-02-27 Alan Modra <amodra@gmail.com>
26738
26739 PR target/57936
26740 * reload1.c (emit_input_reload_insns): When reload_override_in,
26741 set old to rl->in_reg when rl->in_reg is a subreg.
26742
26743 2014-02-26 Richard Biener <rguenther@suse.de>
26744
26745 PR bootstrap/60343
26746 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
26747
26748 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
26749
26750 * common/config/i386/predicates.md (const1256_operand): Remove.
26751 (const2356_operand): New.
26752 (const_1_to_2_operand): Remove.
26753 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
26754 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
26755 (*avx512pf_gatherpf<mode>sf): Ditto.
26756 (avx512pf_gatherpf<mode>df): Ditto.
26757 (*avx512pf_gatherpf<mode>df_mask): Ditto.
26758 (*avx512pf_gatherpf<mode>df): Ditto.
26759 (avx512pf_scatterpf<mode>sf): Ditto.
26760 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26761 (*avx512pf_scatterpf<mode>sf): Ditto.
26762 (avx512pf_scatterpf<mode>df): Ditto.
26763 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26764 (*avx512pf_scatterpf<mode>df): Ditto.
26765 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
26766
26767 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
26768
26769 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
26770 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
26771 (_mm512_mask_testn_epi64_mask): Move to ...
26772 * config/i386/avx512cdintrin.h: Here.
26773 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
26774 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
26775 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
26776 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
26777 TARGET_AVX512F from TARGET_AVX512CD.
26778
26779 2014-02-26 Richard Biener <rguenther@suse.de>
26780
26781 PR ipa/60327
26782 * ipa.c (walk_polymorphic_call_targets): Properly guard
26783 call to inline_update_overall_summary.
26784
26785 2014-02-26 Bin Cheng <bin.cheng@arm.com>
26786
26787 PR target/60280
26788 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
26789 and latches only if requested. Fix latch if it is removed.
26790 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
26791 LOOPS_HAVE_PREHEADERS.
26792
26793 2014-02-25 Andrew Pinski <apinski@cavium.com>
26794
26795 * builtins.c (expand_builtin_thread_pointer): Create a new target
26796 when the target is NULL.
26797
26798 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
26799
26800 PR rtl-optimization/60317
26801 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26802 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26803 * lra-assigns.c: Include params.h.
26804 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
26805 other reload pseudos considerations.
26806
26807 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26808
26809 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
26810 to use canonical form for nor<mode>3.
26811
26812 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26813
26814 PR target/55426
26815 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
26816 conversions.
26817
26818 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
26819
26820 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
26821 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
26822 (ix86_handle_option): Handle OPT_mprefetchwt1.
26823 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
26824 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26825 PREFETCHWT1 CPUID.
26826 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26827 OPTION_MASK_ISA_PREFETCHWT1.
26828 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
26829 (PTA_PREFETCHWT1): New.
26830 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
26831 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
26832 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
26833 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
26834 (*prefetch_avx512pf_<mode>_: Change into ...
26835 (*prefetch_prefetchwt1_<mode>: This.
26836 * config/i386/i386.opt (mprefetchwt1): New.
26837 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
26838 (_mm_prefetch): Handle intent to write.
26839 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
26840
26841 2014-02-25 Richard Biener <rguenther@suse.de>
26842
26843 PR middle-end/60291
26844 * emit-rtl.c (mem_attrs_htab): Remove.
26845 (mem_attrs_htab_hash): Likewise.
26846 (mem_attrs_htab_eq): Likewise.
26847 (set_mem_attrs): Always allocate new mem-attrs when something changed.
26848 (init_emit_once): Do not allocate mem_attrs_htab.
26849
26850 2014-02-25 Richard Biener <rguenther@suse.de>
26851
26852 PR lto/60319
26853 * lto-opts.c (lto_write_options): Output non-explicit conservative
26854 -fwrapv, -fno-trapv and -fno-strict-overflow.
26855 * lto-wrapper.c (merge_and_complain): Handle merging those options.
26856 (run_gcc): And pass them through.
26857
26858 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
26859
26860 * sel-sched.c (calculate_new_fences): New parameter ptime.
26861 Calculate it as a maximum over all fence cycles.
26862 (sel_sched_region_2): Adjust the call to calculate_new_fences.
26863 Print the final schedule timing when sched_verbose.
26864
26865 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
26866
26867 PR rtl-optimization/60292
26868 * sel-sched.c (fill_vec_av_set): Do not reset target availability
26869 bit fot the fence instruction.
26870
26871 2014-02-24 Alangi Derick <alangiderick@gmail.com>
26872
26873 * calls.h: Fix typo in comment.
26874
26875 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
26876
26877 * config/pa/pa.c (pa_output_move_double): Don't valididate when
26878 adjusting offsetable addresses.
26879
26880 2014-02-24 Guozhi Wei <carrot@google.com>
26881
26882 * sparseset.h (sparseset_pop): Fix the wrong index.
26883
26884 2014-02-24 Walter Lee <walt@tilera.com>
26885
26886 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
26887 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
26888 triplet.
26889 * common/config/tilegx/tilegx-common.c
26890 (TARGET_DEFAULT_TARGET_FLAGS): Define.
26891 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
26892 (LINK_SPEC): Ditto.
26893 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
26894 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
26895 (tilegx_gimplify_va_arg_expr): Handle big endian.
26896 (tilegx_expand_unaligned_load): Ditto.
26897 (tilegx_expand_unaligned_store): Ditto.
26898 (TARGET_RETURN_IN_MSB): New.
26899 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
26900 (TARGET_ENDIAN_DEFAULT): New.
26901 (TARGET_BIG_ENDIAN): Handle big endian.
26902 (BYTES_BIG_ENDIAN): Ditto.
26903 (WORDS_BIG_ENDIAN): Ditto.
26904 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
26905 (ENDIAN_SPEC): New.
26906 (EXTRA_SPECS): New.
26907 * config/tilegx/tilegx.md (extv): Handle big endian.
26908 (extzv): Ditto.
26909 (insn_st<n>): Ditto.
26910 (insn_st<n>_add<bitsuffix>): Ditto.
26911 (insn_stnt<n>): Ditto.
26912 (insn_stnt<n>_add<bitsuffix>):Ditto.
26913 (vec_interleave_highv8qi): Handle big endian.
26914 (vec_interleave_highv8qi_be): New.
26915 (vec_interleave_highv8qi_le): New.
26916 (insn_v1int_h): Handle big endian.
26917 (vec_interleave_lowv8qi): Handle big endian.
26918 (vec_interleave_lowv8qi_be): New.
26919 (vec_interleave_lowv8qi_le): New.
26920 (insn_v1int_l): Handle big endian.
26921 (vec_interleave_highv4hi): Handle big endian.
26922 (vec_interleave_highv4hi_be): New.
26923 (vec_interleave_highv4hi_le): New.
26924 (insn_v2int_h): Handle big endian.
26925 (vec_interleave_lowv4hi): Handle big endian.
26926 (vec_interleave_lowv4hi_be): New.
26927 (vec_interleave_lowv4hi_le): New.
26928 (insn_v2int_l): Handle big endian.
26929 (vec_interleave_highv2si): Handle big endian.
26930 (vec_interleave_highv2si_be): New.
26931 (vec_interleave_highv2si_le): New.
26932 (insn_v4int_h): Handle big endian.
26933 (vec_interleave_lowv2si): Handle big endian.
26934 (vec_interleave_lowv2si_be): New.
26935 (vec_interleave_lowv2si_le): New.
26936 (insn_v4int_l): Handle big endian.
26937 * config/tilegx/tilegx.opt (mbig-endian): New option.
26938 (mlittle-endian): New option.
26939 * doc/install.texi: Document tilegxbe-linux.
26940 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
26941
26942 2014-02-24 Martin Jambor <mjambor@suse.cz>
26943
26944 PR ipa/60266
26945 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
26946 there are no parameter descriptors.
26947
26948 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
26949
26950 PR rtl-optimization/60268
26951 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
26952 initialization to ...
26953 (sched_rgn_init): ... here.
26954 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
26955
26956 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
26957
26958 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
26959 names.
26960
26961 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
26962
26963 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
26964 definition.
26965
26966 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
26967
26968 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
26969 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
26970
26971 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
26972
26973 * config/microblaze/predicates.md: Add cmp_op predicate.
26974 * config/microblaze/microblaze.md: Add branch_compare instruction
26975 which uses cmp_op predicate and emits cmp insn before branch.
26976 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
26977 to microblaze_expand_conditional_branch and consolidate logic.
26978 (microblaze_expand_conditional_branch): emit branch_compare
26979 insn instead of handling cmp op separate from branch insn.
26980
26981 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26982
26983 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
26984 to permit subregs.
26985
26986 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26987
26988 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
26989 define_insn with define_expand and new define_insn
26990 *altivec_lve<VI_char>x_internal.
26991 (altivec_stve<VI_char>x): Replace define_insn with define_expand
26992 and new define_insn *altivec_stve<VI_char>x_internal.
26993 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
26994 prototype.
26995 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
26996 lve*x built-ins.
26997 (altivec_expand_stvex_be): New function.
26998
26999 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
27000
27001 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
27002 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
27003 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
27004 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
27005
27006 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
27007
27008 PR target/60298
27009 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
27010 instead of emit_move_insn.
27011
27012 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27013
27014 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
27015 vspltw with vsldoi.
27016 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
27017 gen_altivec_vsumsws.
27018
27019 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27020
27021 * config/rs6000/altivec.md (altivec_lvxl): Rename as
27022 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
27023 (altivec_lvxl_<mode>): New define_expand incorporating
27024 -maltivec=be semantics where needed.
27025 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
27026 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
27027 semantics where needed.
27028 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
27029 (altivec_stvx_<mode>): New define_expand incorporating
27030 -maltivec=be semantics where needed.
27031 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
27032 VM2 iterator instead of V4SI.
27033 (altivec_stvxl_<mode>): New define_expand incorporating
27034 -maltivec=be semantics where needed.
27035 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
27036 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
27037 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
27038 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
27039 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
27040 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
27041 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
27042 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
27043 ALTIVEC_BUILTIN_STVXL.
27044 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
27045 (altivec_expand_stvx_be): Likewise.
27046 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
27047 (altivec_expand_lvx_be): Likewise.
27048 (altivec_expand_stvx_be): Likewise.
27049 (altivec_expand_builtin): Add cases for
27050 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
27051 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
27052 (altivec_init_builtins): Add definitions for
27053 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
27054 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
27055
27056 2014-02-21 Catherine Moore <clm@codesourcery.com>
27057
27058 * doc/invoke.texi (mvirt, mno-virt): Document.
27059 * config/mips/mips.opt (mvirt): New option.
27060 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
27061
27062 2014-02-21 Richard Biener <rguenther@suse.de>
27063
27064 PR tree-optimization/60276
27065 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
27066 (STMT_VINFO_MIN_NEG_DIST): New macro.
27067 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
27068 STMT_VINFO_MIN_NEG_DIST.
27069 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
27070 made for negative dependence distances still hold.
27071
27072 2014-02-21 Richard Biener <rguenther@suse.de>
27073
27074 PR middle-end/60291
27075 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
27076 DECL_INITIAL for globals not in the current function context.
27077
27078 2014-02-21 Jakub Jelinek <jakub@redhat.com>
27079
27080 PR tree-optimization/56490
27081 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
27082 * tree-ssa-uninit.c: Include params.h.
27083 (compute_control_dep_chain): Add num_calls argument, return false
27084 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
27085 num_calls to recursive call.
27086 (find_predicates): Change dep_chain into normal array,
27087 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
27088 variable and adjust compute_control_dep_chain caller.
27089 (find_def_preds): Likewise.
27090
27091 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
27092
27093 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
27094 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
27095
27096 2014-02-21 Nick Clifton <nickc@redhat.com>
27097
27098 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
27099 (pushhi1): Likewise.
27100 (popqi1): Add mode to pre_dec.
27101 (pophi1): Likewise.
27102
27103 2014-02-21 Jakub Jelinek <jakub@redhat.com>
27104
27105 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
27106 mode for mask of V8SFmode permutation.
27107
27108 2014-02-20 Richard Henderson <rth@redhat.com>
27109
27110 PR c++/60272
27111 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
27112 a new pseudo for OLDVAL.
27113
27114 2014-02-20 Jakub Jelinek <jakub@redhat.com>
27115
27116 PR target/57896
27117 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
27118 gen_reg_rtx if d->testing_p.
27119 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
27120 if d->testing_p and we will certainly return true.
27121 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
27122 if d->testing_p.
27123
27124 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
27125
27126 * emit-rtl.c (gen_reg_rtx): Assert that
27127 crtl->emit.regno_pointer_align_length is non-zero.
27128
27129 2014-02-20 Richard Henderson <rth@redhat.com>
27130
27131 PR c++/60272
27132 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
27133 on failure the store back into EXPECT.
27134
27135 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
27136 Sandra Loosemore <sandra@codesourcery.com>
27137
27138 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
27139 * config/nios2/nios2.c (nios2_function_profiler): Add
27140 -fPIC (flag_pic == 2) support.
27141 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
27142 (nios2_large_offset_p): New function.
27143 (nios2_unspec_reloc_p): Move up position, update to use
27144 nios2_large_offset_p.
27145 (nios2_unspec_address): Remove function.
27146 (nios2_unspec_offset): New function.
27147 (nios2_large_got_address): New function.
27148 (nios2_got_address): Add large offset support.
27149 (nios2_legitimize_tls_address): Update usage of removed and new
27150 functions.
27151 (nios2_symbol_binds_local_p): New function.
27152 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
27153 (nios2_legitimize_address): Update to use nios2_large_offset_p.
27154 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
27155 (nios2_print_operand): Merge H/L processing, add hiadj/lo
27156 processing for (const (unspec ...)).
27157 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
27158
27159 2014-02-20 Richard Biener <rguenther@suse.de>
27160
27161 * tree-cfg.c (replace_uses_by): Mark altered BBs before
27162 doing the substitution.
27163 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
27164
27165 2014-02-20 Martin Jambor <mjambor@suse.cz>
27166
27167 PR ipa/55260
27168 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
27169 info when checking whether lattices are bottom.
27170
27171 2014-02-20 Richard Biener <rguenther@suse.de>
27172
27173 PR middle-end/60221
27174 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
27175 regions at -O0.
27176
27177 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
27178
27179 PR ipa/58555
27180 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
27181 parameter specifying the scaling.
27182 (inline_call): Update.
27183 (want_inline_recursively): Guard division by zero.
27184 (recursive_inlining): Update.
27185 * ipa-inline.h (clone_inlined_nodes): Update.
27186
27187 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
27188
27189 PR target/60204
27190 * config/i386/i386.c (classify_argument): Pass structures of size
27191 64 bytes or less in register.
27192
27193 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
27194 Kirill Yukhin <kirill.yukhin@intel.com>
27195
27196 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
27197 (_mm_rcp28_round_ss): Ditto.
27198 (_mm_rsqrt28_round_sd): Ditto.
27199 (_mm_rsqrt28_round_ss): Ditto.
27200 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
27201 (_mm_rcp14_round_ss): Ditto.
27202 (_mm_rsqrt14_round_sd): Ditto.
27203 (_mm_rsqrt14_round_ss): Ditto.
27204 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
27205 the first input operand, get rid of match_dup.
27206 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
27207 attribute to sse.
27208 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
27209 Ditto.
27210 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
27211 operand as the first input operand, set type attribute.
27212 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
27213 Set type attribute.
27214 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
27215 operand as the first input operand, set type attribute.
27216
27217 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27218
27219 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
27220 bit of zero.
27221
27222 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
27223
27224 PR target/60207
27225 * config/i386/i386.c (construct_container): Remove TFmode check
27226 for X86_64_INTEGER_CLASS.
27227
27228 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
27229
27230 PR target/59794
27231 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
27232 only when -Wpsabi is enabled.
27233
27234 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
27235
27236 PR target/59799
27237 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
27238 passing arrays in registers are the same as for structs, so remove the
27239 special case for them.
27240
27241 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
27242
27243 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
27244 destination type, extract only the valid bits if the source type is not
27245 integral and has a different mode.
27246
27247 2014-02-19 Richard Biener <rguenther@suse.de>
27248
27249 PR ipa/60243
27250 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
27251 for all calls.
27252
27253 2014-02-19 Richard Biener <rguenther@suse.de>
27254
27255 PR ipa/60243
27256 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
27257 (ipa_modify_call_arguments): Emit an argument load explicitely and
27258 preserve virtual SSA form there and for the replacement call.
27259 Do not update SSA form nor free dominance info.
27260
27261 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
27262
27263 * ipa.c (function_and_variable_visibility): Also clear WEAK
27264 flag when disolving COMDAT_GROUP.
27265
27266 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
27267
27268 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
27269 * ipa-prop.c (ipa_set_jf_known_type): Return early when
27270 not devirtualizing.
27271 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
27272 do more sanity checks.
27273 (detect_type_change): Return true when giving up early.
27274 (compute_complex_assign_jump_func): Fix type parameter of
27275 ipa_set_ancestor_jf.
27276 (compute_complex_ancestor_jump_func): Likewise.
27277 (update_jump_functions_after_inlining): Fix updating of
27278 ancestor function.
27279 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
27280
27281 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
27282
27283 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
27284 inline clones when edge disappears.
27285
27286 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
27287
27288 PR target/60203
27289 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
27290 Split 64-bit moves into 2 patterns. Do not allow the use of
27291 direct move for TDmode in little endian, since the decimal value
27292 has little endian bytes within a word, but the 64-bit pieces are
27293 ordered in a big endian fashion, and normal subreg's of TDmode are
27294 not allowed.
27295 (mov<mode>_64bit_dm): Likewise.
27296 (movtd_64bit_nodm): Likewise.
27297
27298 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
27299
27300 PR tree-optimization/60174
27301 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
27302 statement of an SSA_NAME that occurs in an abnormal PHI node.
27303
27304 2014-02-18 Jakub Jelinek <jakub@redhat.com>
27305
27306 PR sanitizer/60142
27307 * final.c (SEEN_BB): Remove.
27308 (SEEN_NOTE, SEEN_EMITTED): Renumber.
27309 (final_scan_insn): Don't force_source_line on second
27310 NOTE_INSN_BASIC_BLOCK.
27311
27312 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
27313
27314 PR target/60205
27315 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
27316 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
27317 (type_natural_mode): Warn ABI change when %zmm register is not
27318 available for AVX512F vector value passing.
27319
27320 2014-02-18 Kai Tietz <ktietz@redhat.com>
27321
27322 PR target/60193
27323 * config/i386/i386.c (ix86_expand_prologue): Use value in
27324 rax register as displacement when restoring %r10 or %rax.
27325 Fix wrong offset when restoring both registers.
27326
27327 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
27328
27329 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
27330 assertion with conditional return.
27331
27332 2014-02-18 Jakub Jelinek <jakub@redhat.com>
27333 Uros Bizjak <ubizjak@gmail.com>
27334
27335 PR driver/60233
27336 * config/i386/driver-i386.c (host_detect_local_cpu): If
27337 YMM state is not saved by the OS, also clear has_f16c. Move
27338 CPUID 0x80000001 handling before YMM state saving checking.
27339
27340 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
27341
27342 PR rtl-optimization/58960
27343 * haifa-sched.c (alloc_global_sched_pressure_data): New,
27344 factored out from ...
27345 (sched_init): ... here.
27346 (free_global_sched_pressure_data): New, factored out from ...
27347 (sched_finish): ... here.
27348 * sched-int.h (free_global_sched_pressure_data): Declare.
27349 * sched-rgn.c (nr_regions_initial): New static global.
27350 (haifa_find_rgns): Initialize it.
27351 (schedule_region): Disable sched-pressure for the newly
27352 generated regions.
27353
27354 2014-02-17 Richard Biener <rguenther@suse.de>
27355
27356 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
27357 release SSA defs of pattern stmts.
27358
27359 2014-02-17 Richard Biener <rguenther@suse.de>
27360
27361 * tree-inline.c (expand_call_inline): Release the virtual
27362 operand defined by the call we are about to inline.
27363
27364 2014-02-17 Richard Biener <rguenther@suse.de>
27365
27366 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
27367
27368 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
27369 Ilya Tocar <ilya.tocar@intel.com>
27370
27371 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
27372 arguments order in builtin.
27373 (_mm512_permutexvar_epi64): Ditto.
27374 (_mm512_mask_permutexvar_epi64): Ditto
27375 (_mm512_maskz_permutexvar_epi32): Ditto
27376 (_mm512_permutexvar_epi32): Ditto
27377 (_mm512_mask_permutexvar_epi32): Ditto
27378
27379 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27380
27381 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
27382 (p8_vmrgow): Likewise.
27383
27384 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27385
27386 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
27387 endian targets.
27388
27389 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
27390
27391 PR target/60203
27392 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
27393 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
27394 into 64-bit and 32-bit moves. On 64-bit moves, add support for
27395 using direct move instructions on ISA 2.07. Also adjust
27396 instruction length for 64-bit.
27397 (mov<mode>_64bit, TFmode/TDmode): Likewise.
27398 (mov<mode>_32bit, TFmode/TDmode): Likewise.
27399
27400 2014-02-15 Alan Modra <amodra@gmail.com>
27401
27402 PR target/58675
27403 PR target/57935
27404 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
27405 find_replacement on parts of insn rtl that might be reloaded.
27406
27407 2014-02-15 Richard Biener <rguenther@suse.de>
27408
27409 PR tree-optimization/60183
27410 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
27411 (tree_ssa_phiprop): Calculate and free post-dominators.
27412
27413 2014-02-14 Jeff Law <law@redhat.com>
27414
27415 PR rtl-optimization/60131
27416 * ree.c (get_extended_src_reg): New function.
27417 (combine_reaching_defs): Use it rather than assuming location of REG.
27418 (find_and_remove_re): Verify first operand of extension is
27419 a REG before adding the insns to the copy list.
27420
27421 2014-02-14 Roland McGrath <mcgrathr@google.com>
27422
27423 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
27424 * configure: Regenerated.
27425 * config.in: Regenerated.
27426 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
27427 instead of ASM_SHORT.
27428
27429 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
27430 Richard Earnshaw <rearnsha@arm.com>
27431
27432 PR rtl-optimization/59535
27433 * lra-constraints.c (process_alt_operands): Encourage alternative
27434 when unassigned pseudo class is superset of the alternative class.
27435 (inherit_reload_reg): Don't inherit when optimizing for code size.
27436 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
27437 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
27438 modes not less than 4 for Thumb1.
27439
27440 2014-02-14 Kyle McMartin <kyle@redhat.com>
27441
27442 PR pch/60010
27443 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
27444
27445 2014-02-14 Richard Biener <rguenther@suse.de>
27446
27447 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
27448 (get_frame_arg): Drop the assert with langhook types_compatible_p.
27449 Do not strip INDIRECT_REFs.
27450
27451 2014-02-14 Richard Biener <rguenther@suse.de>
27452
27453 PR lto/60179
27454 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
27455 DECL_FUNCTION_SPECIFIC_TARGET.
27456 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
27457 * tree-streamer-out.c (pack_ts_target_option): Remove.
27458 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
27459 (write_ts_function_decl_tree_pointers): Do not stream
27460 DECL_FUNCTION_SPECIFIC_TARGET.
27461 * tree-streamer-in.c (unpack_ts_target_option): Remove.
27462 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
27463 (lto_input_ts_function_decl_tree_pointers): Do not stream
27464 DECL_FUNCTION_SPECIFIC_TARGET.
27465
27466 2014-02-14 Jakub Jelinek <jakub@redhat.com>
27467
27468 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
27469 (get_initial_def_for_induction, vectorizable_induction): Ignore
27470 debug stmts when looking for exit_phi.
27471 (vectorizable_live_operation): Fix up condition.
27472
27473 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27474
27475 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
27476 nreverse() because it changes the content of original tree list.
27477
27478 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27479
27480 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
27481 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
27482
27483 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27484
27485 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
27486 GNU coding standards.
27487
27488 2014-02-13 Jakub Jelinek <jakub@redhat.com>
27489
27490 PR debug/60152
27491 * dwarf2out.c (gen_subprogram_die): Don't call
27492 add_calling_convention_attribute if subr_die is old_die.
27493
27494 2014-02-13 Sharad Singhai <singhai@google.com>
27495
27496 * doc/optinfo.texi: Fix order of nodes.
27497
27498 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
27499
27500 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
27501 operands[2], not operands[3].
27502
27503 2014-02-13 Richard Biener <rguenther@suse.de>
27504
27505 PR bootstrap/59878
27506 * doc/install.texi (ISL): Update recommended version to 0.12.2,
27507 mention the possibility of an in-tree build.
27508 (CLooG): Update recommended version to 0.18.1, mention the
27509 possibility of an in-tree build and clarify that the ISL
27510 bundled with CLooG does not work.
27511
27512 2014-02-13 Jakub Jelinek <jakub@redhat.com>
27513
27514 PR target/43546
27515 * expr.c (compress_float_constant): If x is a hard register,
27516 extend into a pseudo and then move to x.
27517
27518 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
27519
27520 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
27521 caused by bad second argument to warning_at() with -mhotpatch and
27522 nested functions (e.g. with gfortran).
27523
27524 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
27525
27526 * opts.c (option_name): Remove "enabled by default" rider.
27527
27528 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
27529
27530 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
27531
27532 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
27533 Uros Bizjak <ubizjak@gmail.com>
27534
27535 PR target/60151
27536 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
27537 * configure: Regenerated.
27538
27539 2014-02-12 Richard Biener <rguenther@suse.de>
27540
27541 * vec.c (vec_prefix::calculate_allocation): Move as
27542 inline variant to vec.h.
27543 (vec_prefix::calculate_allocation_1): New out-of-line version.
27544 * vec.h (vec_prefix::calculate_allocation_1): Declare.
27545 (vec_prefix::m_has_auto_buf): Rename to ...
27546 (vec_prefix::m_using_auto_storage): ... this.
27547 (vec_prefix::calculate_allocation): Inline the easy cases
27548 and dispatch to calculate_allocation_1 which doesn't need the
27549 prefix address.
27550 (va_heap::reserve): Use gcc_checking_assert.
27551 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
27552 m_using_auto_storage.
27553 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
27554 member and adjust.
27555 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
27556 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
27557 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
27558
27559 2014-02-12 Richard Biener <rguenther@suse.de>
27560
27561 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
27562 when we found a dependence.
27563
27564 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
27565
27566 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
27567 common code...
27568 (maybe_fold_stmt): ... into this new function.
27569 * omp-low.c (lower_omp): Update comment.
27570
27571 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
27572 last use.
27573
27574 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
27575 dereference.
27576
27577 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
27578
27579 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
27580 identifiers in comments.
27581 (cortexa53_extra_costs): Likewise.
27582 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
27583 (cortexa7_extra_costs): Likewise.
27584 (cortexa12_extra_costs): Likewise.
27585 (cortexa15_extra_costs): Likewise.
27586 (v7m_extra_costs): Likewise.
27587
27588 2014-02-12 Richard Biener <rguenther@suse.de>
27589
27590 PR middle-end/60092
27591 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
27592 of posix_memalign being successful.
27593 (lower_stmt): Restrict lowering of posix_memalign to when
27594 -ftree-bit-ccp is enabled.
27595
27596 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
27597
27598 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
27599 arg_loc.
27600 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
27601
27602 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
27603
27604 PR rtl-optimization/60116
27605 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
27606 other_insn once the combination has been validated.
27607
27608 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
27609
27610 PR lto/59468
27611 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
27612 and wrapper.
27613 * ipa-devirt.c: Include demangle.h
27614 (odr_violation_reported): New static variable.
27615 (add_type_duplicate): Update odr_violations.
27616 (maybe_record_node): Add completep parameter; update it.
27617 (record_target_from_binfo): Add COMPLETEP parameter;
27618 update it as needed.
27619 (possible_polymorphic_call_targets_1): Likewise.
27620 (struct polymorphic_call_target_d): Add nonconstruction_targets;
27621 rename FINAL to COMPLETE.
27622 (record_targets_from_bases): Sanity check we found the binfo;
27623 fix COMPLETEP updating.
27624 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
27625 parameter, fix computing of COMPLETEP.
27626 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
27627 at LTO time do demangling.
27628 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
27629 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
27630 parameter.
27631 (gimple_get_virt_method_for_binfo): Likewise.
27632 * gimple-fold.h (gimple_get_virt_method_for_binfo,
27633 gimple_get_virt_method_for_vtable): Update prototypes.
27634
27635 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
27636
27637 PR target/49008
27638 * genautomata.c (add_presence_absence): Fix typo with
27639 {final_}presence_list.
27640
27641 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
27642
27643 PR target/60137
27644 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
27645 for VSX/Altivec vectors that land in GPR registers.
27646
27647 2014-02-11 Richard Henderson <rth@redhat.com>
27648 Jakub Jelinek <jakub@redhat.com>
27649
27650 PR debug/59776
27651 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
27652 around drhs if type conversion to lacc->type is not useless.
27653
27654 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27655
27656 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
27657 tuning struct.
27658 (cortex-a57.cortex-a53): Likewise.
27659 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
27660
27661 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27662
27663 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
27664 arm_restrict_it.
27665
27666 2014-02-11 Renlin Li <Renlin.Li@arm.com>
27667
27668 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
27669 add_options_for_arm_vfp3.
27670
27671 2014-02-11 Jeff Law <law@redhat.com>
27672
27673 PR middle-end/54041
27674 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
27675 object with an undesirable mode.
27676
27677 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27678
27679 PR libgomp/60107
27680 * config/i386/sol2-9.h: New file.
27681 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
27682 *-*-solaris2.9*): Use it.
27683
27684 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
27685
27686 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
27687 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
27688
27689 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
27690
27691 * config/microblaze/microblaze.c: Extend mcpu version format
27692
27693 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
27694
27695 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
27696
27697 2014-02-10 Richard Henderson <rth@redhat.com>
27698
27699 PR target/59927
27700 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
27701 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
27702 ms-abi vs -mno-accumulate-outgoing-args.
27703 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
27704 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
27705 respect to ms-abi.
27706
27707 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
27708
27709 PR middle-end/60080
27710 * cfgexpand.c (expand_asm_operands): Attach source location to
27711 ASM_INPUT rtx objects.
27712 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
27713
27714 2014-02-10 Nick Clifton <nickc@redhat.com>
27715
27716 * config/mn10300/mn10300.c (popcount): New function.
27717 (mn10300_expand_prologue): Include saved registers in stack usage
27718 count.
27719
27720 2014-02-10 Jeff Law <law@redhat.com>
27721
27722 PR middle-end/52306
27723 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
27724 when changing the SET_DEST of a prior insn to avoid an input reload.
27725
27726 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27727
27728 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
27729 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
27730 -mcall-openbsd, or -mcall-linux.
27731 (CC1_ENDIAN_BIG_SPEC): Remove.
27732 (CC1_ENDIAN_LITTLE_SPEC): Remove.
27733 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27734 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
27735 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
27736 and %cc1_endian_default.
27737 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27738
27739 2014-02-10 Richard Biener <rguenther@suse.de>
27740
27741 PR tree-optimization/60115
27742 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
27743 MEM_REF handling. Properly verify that the accesses are not
27744 out of the objects bound.
27745
27746 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27747
27748 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
27749 coretex to cortex.
27750
27751 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
27752
27753 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
27754 proper constants and fix formatting.
27755 (possible_polymorphic_call_targets): Fix formatting.
27756
27757 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
27758 Ilya Tocar <ilya.tocar@intel.com>
27759
27760 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
27761 (_mm512_loadu_epi32): Renamed into...
27762 (_mm512_loadu_si512): This.
27763 (_mm512_storeu_epi32): Renamed into...
27764 (_mm512_storeu_si512): This.
27765 (_mm512_maskz_ceil_ps): Removed.
27766 (_mm512_maskz_ceil_pd): Ditto.
27767 (_mm512_maskz_floor_ps): Ditto.
27768 (_mm512_maskz_floor_pd): Ditto.
27769 (_mm512_floor_round_ps): Ditto.
27770 (_mm512_floor_round_pd): Ditto.
27771 (_mm512_ceil_round_ps): Ditto.
27772 (_mm512_ceil_round_pd): Ditto.
27773 (_mm512_mask_floor_round_ps): Ditto.
27774 (_mm512_mask_floor_round_pd): Ditto.
27775 (_mm512_mask_ceil_round_ps): Ditto.
27776 (_mm512_mask_ceil_round_pd): Ditto.
27777 (_mm512_maskz_floor_round_ps): Ditto.
27778 (_mm512_maskz_floor_round_pd): Ditto.
27779 (_mm512_maskz_ceil_round_ps): Ditto.
27780 (_mm512_maskz_ceil_round_pd): Ditto.
27781 (_mm512_expand_pd): Ditto.
27782 (_mm512_expand_ps): Ditto.
27783 * config/i386/i386.c (ix86_builtins): Remove
27784 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
27785 (bdesc_args): Ditto.
27786 * config/i386/predicates.md (const1256_operand): New.
27787 (const_1_to_2_operand): Ditto.
27788 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
27789 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
27790 (*avx512pf_gatherpf<mode>sf): Ditto.
27791 (avx512pf_gatherpf<mode>df): Ditto.
27792 (*avx512pf_gatherpf<mode>df_mask): Ditto.
27793 (*avx512pf_gatherpf<mode>df): Ditto.
27794 (avx512pf_scatterpf<mode>sf): Ditto.
27795 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
27796 (*avx512pf_scatterpf<mode>sf): Ditto.
27797 (avx512pf_scatterpf<mode>df): Ditto.
27798 (*avx512pf_scatterpf<mode>df_mask): Ditto.
27799 (*avx512pf_scatterpf<mode>df): Ditto.
27800 (avx512f_expand<mode>): Removed.
27801 (<shift_insn><mode>3<mask_name>): Change predicate type.
27802
27803 2014-02-08 Jakub Jelinek <jakub@redhat.com>
27804
27805 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
27806 not at the end of datarefs vector use ordered_remove to avoid
27807 reordering datarefs vector.
27808
27809 PR c/59984
27810 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
27811 mark local addressable non-static vars as GOVD_PRIVATE
27812 instead of GOVD_LOCAL.
27813 * omp-low.c (lower_omp_for): Move gimple_bind_vars
27814 and BLOCK_VARS of gimple_bind_block to new_stmt rather
27815 than copying them.
27816
27817 PR middle-end/60092
27818 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
27819 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
27820 assume_aligned or alloc_align attributes.
27821 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
27822 arguments. Handle also assume_aligned and alloc_align attributes.
27823 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
27824 calls to functions with assume_aligned or alloc_align attributes.
27825 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
27826
27827 2014-02-08 Terry Guo <terry.guo@arm.com>
27828
27829 * doc/invoke.texi: Document ARM -march=armv7e-m.
27830
27831 2014-02-08 Jakub Jelinek <jakub@redhat.com>
27832
27833 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
27834 flag on __cilkrts_rethrow builtin.
27835
27836 PR ipa/60026
27837 * ipa-cp.c (determine_versionability): Fail at -O0
27838 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
27839 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
27840
27841 Revert:
27842 2014-02-04 Jakub Jelinek <jakub@redhat.com>
27843
27844 PR ipa/60026
27845 * tree-inline.c (copy_forbidden): Fail for
27846 __attribute__((optimize (0))) functions.
27847
27848 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
27849
27850 * varpool.c: Include pointer-set.h.
27851 (varpool_remove_unreferenced_decls): Variables in other partitions
27852 will not be output; be however careful to not lose information
27853 about partitioning.
27854
27855 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
27856
27857 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
27858 lookup in the vtable constructor.
27859
27860 2014-02-07 Jeff Law <law@redhat.com>
27861
27862 PR target/40977
27863 * config/m68k/m68k.md (ashldi_extsi): Turn into a
27864 define_insn_and_split.
27865
27866 * ipa-inline.c (inline_small_functions): Fix typos.
27867
27868 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27869
27870 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
27871 (s390_can_use_return_insn): Declare.
27872 * config/s390/s390.h (EPILOGUE_USES): Define.
27873 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
27874 instructions.
27875 (s390_chunkify_start): Handle return JUMP_LABELs.
27876 (s390_early_mach): Emit a main_pool instruction on the entry edge.
27877 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
27878 (s390_can_use_return_insn): New functions.
27879 (s390_fix_long_loop_prediction): Handle conditional returns.
27880 (TARGET_SET_UP_BY_PROLOGUE): Define.
27881 * config/s390/s390.md (ANY_RETURN): New code iterator.
27882 (*creturn, *csimple_return, return, simple_return): New patterns.
27883
27884 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27885
27886 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
27887 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
27888 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
27889 REG_CFA_RESTORE list when deciding not to restore a register.
27890
27891 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27892
27893 * config/s390/s390.c: Include tree-pass.h and context.h.
27894 (s390_early_mach): New function, split out from...
27895 (s390_emit_prologue): ...here.
27896 (pass_data_s390_early_mach): New pass structure.
27897 (pass_s390_early_mach): New class.
27898 (s390_option_override): Create and register early_mach pass.
27899 Move to end of file.
27900
27901 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27902
27903 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
27904 to match for the exit block.
27905
27906 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27907
27908 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
27909 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
27910 Reject misaligned operands.
27911
27912 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27913
27914 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
27915
27916 2014-02-07 Richard Biener <rguenther@suse.de>
27917
27918 PR middle-end/60092
27919 * gimple-low.c (lower_builtin_posix_memalign): New function.
27920 (lower_stmt): Call it to lower posix_memalign in a way
27921 to make alignment info accessible.
27922
27923 2014-02-07 Jakub Jelinek <jakub@redhat.com>
27924
27925 PR c++/60082
27926 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
27927 __builtin_setjmp_receiver.
27928
27929 2014-02-07 Richard Biener <rguenther@suse.de>
27930
27931 PR middle-end/60092
27932 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
27933 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
27934 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
27935 Handle BUILT_IN_POSIX_MEMALIGN.
27936 (find_func_clobbers): Likewise.
27937 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
27938 (call_may_clobber_ref_p_1): Likewise.
27939
27940 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27941
27942 PR ipa/59918
27943 * ipa-devirt.c (record_target_from_binfo): Remove overactive
27944 sanity check.
27945
27946 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27947
27948 PR ipa/59469
27949 * lto-cgraph.c (lto_output_node): Use
27950 symtab_get_symbol_partitioning_class.
27951 (lto_output_varpool_node): likewise.
27952 (symtab_get_symbol_partitioning_class): Move here from
27953 lto/lto-partition.c
27954 * cgraph.h (symbol_partitioning_class): Likewise.
27955 (symtab_get_symbol_partitioning_class): Declare.
27956
27957 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27958
27959 * ggc.h (ggc_internal_cleared_alloc): New macro.
27960 * vec.h (vec_safe_copy): Handle memory stats.
27961 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
27962 * target-globals.c (save_target_globals): Likewise.
27963
27964 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27965
27966 PR target/60077
27967 * expr.c (emit_move_resolve_push): Export; be bit more selective
27968 on when to clear alias set.
27969 * expr.h (emit_move_resolve_push): Declare.
27970 * function.h (struct function): Add tail_call_marked.
27971 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
27972 * config/i386/i386-protos.h (ix86_expand_push): Remove.
27973 * config/i386/i386.md (TImode move expander): De not call
27974 ix86_expand_push.
27975 (FP push expanders): Preserve memory attributes.
27976 * config/i386/sse.md (push<mode>1): Remove.
27977 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
27978 (ix86_expand_push): Remove.
27979 * config/i386/mmx.md (push<mode>1): Remove.
27980
27981 2014-02-06 Jakub Jelinek <jakub@redhat.com>
27982
27983 PR rtl-optimization/60030
27984 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
27985 lopart with paradoxical subreg before shifting it up by hprec.
27986
27987 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27988
27989 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
27990 Remove extra newline at end of file.
27991 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
27992 (arm_issue_rate): Handle cortexa57.
27993 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
27994 (cortex-a57.cortex-a53): Likewise.
27995
27996 2014-02-06 Jakub Jelinek <jakub@redhat.com>
27997
27998 PR target/59575
27999 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
28000 don't record in REG_FRAME_RELATED_EXPR registers not set in that
28001 bitmask.
28002 (arm_expand_prologue): Adjust all callers.
28003 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
28004 info, registers also at the lowest numbered registers side. Use
28005 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
28006 XEXP.
28007
28008 PR debug/59992
28009 * var-tracking.c (adjust_mems): Before adding a SET to
28010 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
28011
28012 2014-02-06 Alan Modra <amodra@gmail.com>
28013
28014 PR target/60032
28015 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
28016 change SDmode to DDmode when lra_in_progress.
28017
28018 2014-02-06 Jakub Jelinek <jakub@redhat.com>
28019
28020 PR middle-end/59150
28021 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
28022 free_data_ref on the dr first, and before goto again also set dr
28023 to the next dr. For simd_lane_access, free old datarefs[i] before
28024 overwriting it. For get_vectype_for_scalar_type failure, don't
28025 free_data_ref if simd_lane_access.
28026
28027 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
28028
28029 PR target/60062
28030 * tree.h (opts_for_fn): New inline function.
28031 (opt_for_fn): Define.
28032 * config/i386/i386.c (ix86_function_regparm): Use
28033 opt_for_fn (decl, optimize) instead of optimize.
28034
28035 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
28036
28037 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
28038 for SYMBOL_REF in large memory model.
28039
28040 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28041
28042 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
28043 and crypto support.
28044 (cortex-a57): Likewise.
28045 (cortex-a57.cortex-a53): Likewise.
28046
28047 2014-02-06 Yury Gribov <y.gribov@samsung.com>
28048 Kugan Vivekanandarajah <kuganv@linaro.org>
28049
28050 * config/arm/arm.c (arm_vector_alignment_reachable): Check
28051 unaligned_access.
28052 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
28053
28054 2014-02-06 Richard Biener <rguenther@suse.de>
28055
28056 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
28057 set_loop_copy and initialize_original_copy_tables.
28058
28059 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
28060
28061 * config/aarch64/aarch64-simd.md
28062 (aarch64_ashr_simddi): Change QI to SI.
28063
28064 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
28065 Jakub Jelinek <jakub@redhat.com>
28066
28067 PR middle-end/60013
28068 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
28069 of the dataflow.
28070
28071 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28072
28073 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
28074 CODE_FOR_altivec_vpku[hw]um to
28075 CODE_FOR_altivec_vpku[hw]um_direct.
28076 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
28077 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
28078 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
28079 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
28080
28081 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28082
28083 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
28084 generation for -maltivec=be.
28085 (altivec_vsumsws): Simplify redundant test.
28086
28087 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28088
28089 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
28090 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
28091 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
28092 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
28093 gen_altivec_vpkuwum.
28094 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
28095 BYTES_BIG_ENDIAN.
28096 (altivec_vpks<VI_char>ss): Likewise.
28097 (altivec_vpks<VI_char>us): Likewise.
28098 (altivec_vpku<VI_char>us): Likewise.
28099 (altivec_vpku<VI_char>um): Likewise.
28100 (altivec_vpku<VI_char>um_direct): New (copy of
28101 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
28102 internal use).
28103 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
28104 target is little endian and -maltivec=be is not specified.
28105 (*altivec_vupkhs<VU_char>_direct): New (copy of
28106 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
28107 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
28108 target is little endian and -maltivec=be is not specified.
28109 (*altivec_vupkls<VU_char>_direct): New (copy of
28110 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
28111 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
28112 little endian and -maltivec=be is not specified.
28113 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
28114 little endian and -maltivec=be is not specified.
28115
28116 2014-02-05 Richard Henderson <rth@redhat.com>
28117
28118 PR debug/52727
28119 * combine-stack-adj.c: Revert r206943.
28120 * sched-int.h (struct deps_desc): Add last_args_size.
28121 * sched-deps.c (init_deps): Initialize it.
28122 (sched_analyze_insn): Add OUTPUT dependencies between insns that
28123 contain REG_ARGS_SIZE notes.
28124
28125 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
28126
28127 * lto-cgraph.c (asm_nodes_output): Make global.
28128 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
28129 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
28130 (driver_handle_option): Handle OPT_fwpa.
28131
28132 2014-02-05 Jakub Jelinek <jakub@redhat.com>
28133
28134 PR ipa/59947
28135 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
28136 a comment typo and formatting issue. If odr_hash hasn't been
28137 created, return vNULL and set *completep to false.
28138
28139 PR middle-end/57499
28140 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
28141 bb with no successors.
28142
28143 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
28144
28145 PR target/59718
28146 * doc/invoke.texi (-march): Clarify documentation for ARM.
28147 (-mtune): Likewise.
28148 (-mcpu): Likewise.
28149
28150 2014-02-05 Richard Biener <rguenther@suse.de>
28151
28152 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
28153 when not vectorizing because of too many alias checks.
28154 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
28155 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
28156
28157 2014-02-05 Nick Clifton <nickc@redhat.com>
28158
28159 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
28160 accept extended registers in any mode when compiling for the MN10300.
28161
28162 2014-02-05 Yury Gribov <y.gribov@samsung.com>
28163
28164 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
28165 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
28166 sanitization attributes.
28167 (can_inline_edge_p): Likewise.
28168 (sanitize_attrs_match_for_inline_p): New function.
28169
28170 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
28171
28172 * ipa-prop.c (detect_type_change): Shor circuit testing of
28173 type changes on THIS pointer.
28174
28175 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
28176
28177 PR target/59777
28178 * config/pa/pa.c (legitimize_tls_address): Return original address
28179 if not passed a SYMBOL_REF rtx.
28180 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
28181 addresses.
28182 (pa_emit_move_sequence): Simplify TLS source operands.
28183 (pa_legitimate_constant_p): Reject all TLS constants.
28184 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
28185 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
28186
28187 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
28188
28189 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
28190 groups when we know they are controlled by LTO.
28191 * varasm.c (default_binds_local_p_1): If object is in other partition,
28192 it will be resolved locally.
28193
28194 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
28195
28196 * config/host-linux.c (linux_gt_pch_use_address): Don't
28197 use SSIZE_MAX because it is not always defined.
28198
28199 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
28200
28201 PR bootstrap/59913
28202 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
28203 threshold for pseudo splitting.
28204 (update_ebb_live_info): Process call argument hard registers and
28205 hard registers from insn definition too.
28206 (max_small_class_regs_num): New constant.
28207 (inherit_in_ebb): Update live hard regs through EBBs. Update
28208 reloads_num only for small register classes. Don't split for
28209 outputs of jumps.
28210
28211 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
28212
28213 PR ipa/60058
28214 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
28215 is non-null.
28216
28217 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
28218
28219 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
28220 visibility is safe.
28221
28222 2014-02-04 Marek Polacek <polacek@redhat.com>
28223
28224 * gdbinit.in (pel): Define.
28225
28226 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
28227
28228 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
28229 behavior.
28230
28231 2014-02-04 Richard Biener <rguenther@suse.de>
28232
28233 PR lto/59723
28234 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
28235 in function context local.
28236 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
28237 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
28238 similar to LTO_imported_decl_ref.
28239
28240 2014-02-04 Jakub Jelinek <jakub@redhat.com>
28241
28242 PR tree-optimization/60002
28243 * cgraphclones.c (build_function_decl_skip_args): Clear
28244 DECL_LANG_SPECIFIC.
28245
28246 PR tree-optimization/60023
28247 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
28248 false to gsi_replace.
28249 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
28250 has been in some EH region and vec_stmt could throw, add
28251 vec_stmt into the same EH region.
28252 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
28253 has no lhs, ignore it.
28254 * internal-fn.c (expand_MASK_LOAD): Likewise.
28255
28256 PR ipa/60026
28257 * tree-inline.c (copy_forbidden): Fail for
28258 __attribute__((optimize (0))) functions.
28259
28260 PR other/58712
28261 * omp-low.c (simd_clone_struct_copy): If from->inbranch
28262 is set, copy one less argument.
28263 (expand_simd_clones): Don't subtract clone_info->inbranch
28264 from simd_clone_struct_alloc argument.
28265
28266 PR rtl-optimization/57915
28267 * recog.c (simplify_while_replacing): If all unary/binary/relational
28268 operation arguments are constant, attempt to simplify those.
28269
28270 PR middle-end/59261
28271 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
28272 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
28273
28274 2014-02-04 Richard Biener <rguenther@suse.de>
28275
28276 PR tree-optimization/60012
28277 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
28278 TBAA disambiguation to all DDRs.
28279
28280 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28281
28282 PR target/59788
28283 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
28284 (LINK_SPEC): Use it for -shared, -shared-libgcc.
28285
28286 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28287
28288 PR ipa/59882
28289 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
28290
28291 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28292
28293 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
28294 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
28295
28296 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28297
28298 PR ipa/59831
28299 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
28300 to figure out targets of polymorphic calls with known decl.
28301 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28302 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
28303 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
28304 (get_polymorphic_call_info): ... here.
28305 (get_polymorphic_call_info_from_invariant): New function.
28306
28307 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28308
28309 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
28310 lookup via vtable pointer; check for type consistency
28311 and turn inconsitent facts into UNREACHABLE.
28312 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28313 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
28314 type inconsistent querries; return UNREACHABLE instead.
28315
28316 2014-02-03 Richard Henderson <rth@twiddle.net>
28317
28318 PR tree-opt/59924
28319 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
28320 already processed this node.
28321 (normalize_one_pred_1): Pass along mark_set.
28322 (normalize_one_pred): Create and destroy a pointer_set_t.
28323 (normalize_one_pred_chain): Likewise.
28324
28325 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
28326
28327 PR gcov-profile/58602
28328 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
28329
28330 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28331
28332 PR ipa/59831
28333 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
28334 -fno-devirtualize; try to devirtualize by the knowledge of
28335 virtual table pointer given by aggregate propagation.
28336 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28337 (ipa_print_node_jump_functions): Dump also offset that
28338 is relevant for polymorphic calls.
28339 (determine_known_aggregate_parts): Add arg_type parameter; use it
28340 instead of determining the type from pointer type.
28341 (ipa_compute_jump_functions_for_edge): Update call of
28342 determine_known_aggregate_parts.
28343 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
28344 (gimple_get_virt_method_for_binfo): ... here; simplify using
28345 vtable_pointer_value_to_vtable.
28346 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
28347 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
28348 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
28349 (vtable_pointer_value_to_vtable): Break out from ...; handle also
28350 POINTER_PLUS_EXPR.
28351 (vtable_pointer_value_to_binfo): ... here.
28352 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
28353
28354 2014-02-03 Teresa Johnson <tejohnson@google.com>
28355
28356 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
28357 redef of outer loop index variable.
28358
28359 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
28360
28361 PR c++/53017
28362 PR c++/59211
28363 * doc/extend.texi (Function Attributes): Typo.
28364
28365 2014-02-03 Cong Hou <congh@google.com>
28366
28367 PR tree-optimization/60000
28368 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
28369 if the vectorized statement is a store. A store statement can only
28370 appear at the end of pattern statements.
28371
28372 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
28373
28374 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
28375 (ix86_option_override_internal): Default long double to 64-bit for
28376 32-bit Bionic and to 128-bit for 64-bit Bionic.
28377
28378 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
28379 TARGET_LONG_DOUBLE_128 is true.
28380 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
28381
28382 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
28383 (mlong-double-64): Negate -mlong-double-128.
28384 (mlong-double-128): New option.
28385
28386 * config/i386/i386-c.c (ix86_target_macros): Define
28387 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
28388
28389 * doc/invoke.texi: Document -mlong-double-128.
28390
28391 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
28392
28393 PR rtl-optimization/60024
28394 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
28395
28396 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
28397
28398 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
28399
28400 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
28401
28402 PR rtl-optimization/57662
28403 * sel-sched.c (code_motion_path_driver): Do not mark already not
28404 existing blocks in the visiting bitmap.
28405
28406 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
28407
28408 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
28409 on the insn being emitted.
28410
28411 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
28412 Will Deacon <will.deacon@arm.com>
28413
28414 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
28415
28416 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28417
28418 * config/arm/arm-tables.opt: Regenerate.
28419
28420 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28421
28422 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
28423 for vector types other than V16QImode.
28424 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
28425 define_expand, and call altivec_expand_vec_perm_le when producing
28426 code with little endian element order.
28427 (*altivec_vperm_<mode>_internal): New insn having previous
28428 behavior of altivec_vperm_<mode>.
28429 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
28430 altivec_expand_vec_perm_le when producing code with little endian
28431 element order.
28432 (*altivec_vperm_<mode>_uns_internal): New insn having previous
28433 behavior of altivec_vperm_<mode>_uns.
28434
28435 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28436
28437 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
28438 (altivec_vsumsws): Add handling for -maltivec=be with a little
28439 endian target.
28440 (altivec_vsumsws_direct): New.
28441 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
28442 gen_altivec_vsumsws.
28443
28444 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
28445
28446 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
28447 vtable_pointer_value_to_binfo): New functions.
28448 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
28449 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
28450
28451 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
28452
28453 * config/nios2/nios2.md (load_got_register): Initialize GOT
28454 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
28455 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
28456
28457 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
28458
28459 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
28460 preserverd by passthrough, do not propagate the type.
28461
28462 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28463
28464 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
28465 (mips_atomic_assign_expand_fenv): New function.
28466 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
28467
28468 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28469
28470 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
28471 (__builtin_mips_set_fcsr): Likewise.
28472 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
28473 MIPS_USI_FTYPE_VOID.
28474 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
28475 (mips16_expand_set_fcsr): Likewise.
28476 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
28477 (mips16_set_fcsr_stub): Likewise.
28478 (mips16_get_fcsr_one_only_stub): New class.
28479 (mips16_set_fcsr_one_only_stub): Likewise.
28480 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
28481 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
28482 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
28483 (hard_float): New availability predicate.
28484 (mips_builtins): Add get_fcsr and set_fcsr.
28485 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
28486 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
28487 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
28488 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
28489 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
28490 patterns.
28491
28492 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28493
28494 * config/mips/mips.c (mips_one_only_stub): New class.
28495 (mips_need_mips16_rdhwr_p): Replace with...
28496 (mips16_rdhwr_stub): ...this new variable.
28497 (mips16_stub_call_address): New function.
28498 (mips16_rdhwr_one_only_stub): New class.
28499 (mips_expand_thread_pointer): Use mips16_stub_call_address.
28500 (mips_output_mips16_rdhwr): Delete.
28501 (mips_finish_stub): New function.
28502 (mips_code_end): Use it to handle rdhwr stubs.
28503
28504 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
28505
28506 PR target/60017
28507 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
28508 when calculating size of integer atomic types.
28509
28510 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
28511
28512 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
28513
28514 2014-02-01 Jakub Jelinek <jakub@redhat.com>
28515
28516 PR tree-optimization/60003
28517 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
28518 * profile.c (branch_prob): Use gimple_call_builtin_p
28519 to check for BUILT_IN_SETJMP_RECEIVER.
28520 * tree-inline.c (copy_bb): Call notice_special_calls.
28521
28522 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
28523
28524 PR bootstrap/59985
28525 * lra-constraints.c (process_alt_operands): Update reload_sum only
28526 on the first pass.
28527
28528 2014-01-31 Richard Henderson <rth@redhat.com>
28529
28530 PR middle-end/60004
28531 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
28532 until after else_eh is processed.
28533
28534 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
28535
28536 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
28537 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
28538 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
28539 in smmintrin.h, remove them.
28540 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
28541 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
28542 * config/i386/i386.md (ROUND_SAE): Fix value.
28543 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
28544 (const48_operand): New.
28545 * config/i386/subst.md (round), (round_expand): Use
28546 const_4_or_8_to_11_operand.
28547 (round_saeonly), (round_saeonly_expand): Use const48_operand.
28548
28549 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
28550
28551 * config/i386/constraints.md (Yk): Swap meaning with k.
28552 * config/i386/i386.md (movhi_internal): Change Yk to k.
28553 (movqi_internal): Ditto.
28554 (*k<logic><mode>): Ditto.
28555 (*andhi_1): Ditto.
28556 (*andqi_1): Ditto.
28557 (kandn<mode>): Ditto.
28558 (*<code>hi_1): Ditto.
28559 (*<code>qi_1): Ditto.
28560 (kxnor<mode>): Ditto.
28561 (kortestzhi): Ditto.
28562 (kortestchi): Ditto.
28563 (kunpckhi): Ditto.
28564 (*one_cmplhi2_1): Ditto.
28565 (*one_cmplqi2_1): Ditto.
28566 * config/i386/sse.md (): Change k to Yk.
28567 (avx512f_load<mode>_mask): Ditto.
28568 (avx512f_blendm<mode>): Ditto.
28569 (avx512f_store<mode>_mask): Ditto.
28570 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
28571 (avx512f_storedqu<mode>_mask): Ditto.
28572 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
28573 Ditto.
28574 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
28575 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
28576 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
28577 (avx512f_maskcmp<mode>3): Ditto.
28578 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
28579 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
28580 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
28581 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
28582 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
28583 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
28584 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
28585 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
28586 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
28587 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
28588 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
28589 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
28590 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
28591 (vec_extract_lo_<mode>_maskm): Ditto.
28592 (vec_extract_hi_<mode>_maskm): Ditto.
28593 (avx512f_vternlog<mode>_mask): Ditto.
28594 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
28595 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
28596 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
28597 (avx512f_<code>v8div16qi2_mask): Ditto.
28598 (avx512f_<code>v8div16qi2_mask_store): Ditto.
28599 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
28600 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
28601 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
28602 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
28603 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
28604 (*avx512pf_gatherpf<mode>df_mask): Ditto.
28605 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28606 (*avx512pf_scatterpf<mode>df_mask): Ditto.
28607 (avx512cd_maskb_vec_dupv8di): Ditto.
28608 (avx512cd_maskw_vec_dupv16si): Ditto.
28609 (avx512f_vpermi2var<mode>3_maskz): Ditto.
28610 (avx512f_vpermi2var<mode>3_mask): Ditto.
28611 (avx512f_vpermi2var<mode>3_mask): Ditto.
28612 (avx512f_vpermt2var<mode>3_maskz): Ditto.
28613 (*avx512f_gathersi<mode>): Ditto.
28614 (*avx512f_gathersi<mode>_2): Ditto.
28615 (*avx512f_gatherdi<mode>): Ditto.
28616 (*avx512f_gatherdi<mode>_2): Ditto.
28617 (*avx512f_scattersi<mode>): Ditto.
28618 (*avx512f_scatterdi<mode>): Ditto.
28619 (avx512f_compress<mode>_mask): Ditto.
28620 (avx512f_compressstore<mode>_mask): Ditto.
28621 (avx512f_expand<mode>_mask): Ditto.
28622 * config/i386/subst.md (mask): Change k to Yk.
28623 (mask_scalar_merge): Ditto.
28624 (sd): Ditto.
28625
28626 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
28627
28628 * doc/extend.texi (Vector Extensions): Document ?: in C++.
28629
28630 2014-01-31 Richard Biener <rguenther@suse.de>
28631
28632 PR middle-end/59990
28633 * builtins.c (fold_builtin_memory_op): Make sure to not
28634 use a floating-point mode or a boolean or enumeral type for
28635 the copy operation.
28636
28637 2014-01-30 DJ Delorie <dj@redhat.com>
28638
28639 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
28640 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
28641 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
28642 whenever main() has an epilogue.
28643
28644 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28645
28646 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
28647 unused variable "field".
28648 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
28649 (vsx_mergeh_<mode>): Likewise.
28650 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
28651 (altivec_vmrghh): Likewise.
28652 (altivec_vmrghw): Likewise.
28653 (altivec_vmrglb): Likewise.
28654 (altivec_vmrglh): Likewise.
28655 (altivec_vmrglw): Likewise.
28656 (altivec_vspltb): Add missing uses.
28657 (altivec_vsplth): Likewise.
28658 (altivec_vspltw): Likewise.
28659 (altivec_vspltsf): Likewise.
28660
28661 2014-01-30 Jakub Jelinek <jakub@redhat.com>
28662
28663 PR target/59923
28664 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
28665 frame related instructions.
28666
28667 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
28668
28669 PR rtl-optimization/59959
28670 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
28671 any reload of register whose subreg is invalid.
28672
28673 2014-01-30 Jakub Jelinek <jakub@redhat.com>
28674
28675 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
28676 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
28677 Add missing return type - void.
28678
28679 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28680
28681 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
28682 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
28683 remove element index adjustment for endian (now handled in vsx.md
28684 and altivec.md).
28685 (altivec_expand_vec_perm_const): Use
28686 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
28687 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
28688 (vsx_xxspltw_<mode>): Adjust element index for little endian.
28689 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
28690 define_expand and a new define_insn *altivec_vspltb_internal;
28691 adjust for -maltivec=be on a little endian target.
28692 (altivec_vspltb_direct): New.
28693 (altivec_vsplth): Divide into a define_expand and a new
28694 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
28695 little endian target.
28696 (altivec_vsplth_direct): New.
28697 (altivec_vspltw): Divide into a define_expand and a new
28698 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
28699 little endian target.
28700 (altivec_vspltw_direct): New.
28701 (altivec_vspltsf): Divide into a define_expand and a new
28702 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
28703 a little endian target.
28704
28705 2014-01-30 Richard Biener <rguenther@suse.de>
28706
28707 PR tree-optimization/59993
28708 * tree-ssa-forwprop.c (associate_pointerplus): Check we
28709 can propagate form the earlier stmt and avoid the transform
28710 when the intermediate result is needed.
28711
28712 2014-01-30 Alangi Derick <alangiderick@gmail.com>
28713
28714 * README.Portability: Fix typo.
28715
28716 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
28717
28718 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
28719 comparison_operator with ordered_comparison_operator.
28720
28721 2014-01-30 Nick Clifton <nickc@redhat.com>
28722
28723 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
28724 Rename to mn10300_store_multiple_regs.
28725 * config/mn10300/mn10300.c: Likewise.
28726 * config/mn10300/mn10300.md (store_movm): Fix typo: call
28727 store_multiple_regs.
28728 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
28729 Call mn10300_store_multiple_regs.
28730
28731 2014-01-30 Nick Clifton <nickc@redhat.com>
28732 DJ Delorie <dj@redhat.com>
28733
28734 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
28735 %fp 2 to keep registers after it properly word-aligned.
28736 (rl78_alloc_physical_registers_umul): Handle the case where both
28737 input operands are the same.
28738
28739 2014-01-30 Richard Biener <rguenther@suse.de>
28740
28741 PR tree-optimization/59903
28742 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
28743 check properly.
28744
28745 2014-01-30 Jason Merrill <jason@redhat.com>
28746
28747 PR c++/59633
28748 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
28749
28750 PR c++/59645
28751 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
28752
28753 2014-01-30 Richard Biener <rguenther@suse.de>
28754
28755 PR tree-optimization/59951
28756 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
28757
28758 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
28759
28760 PR target/59784
28761 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
28762 SFmode to DFmode case.
28763
28764 2014-01-29 DJ Delorie <dj@redhat.com>
28765
28766 * config/msp430/msp430.opt (-minrt): New.
28767 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
28768 if -minrt given.
28769 (ENDFILE_SPEC): Likewise.
28770
28771 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
28772
28773 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
28774 (estimate_function_body_sizes): Use it.
28775
28776 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
28777
28778 PR c++/58561
28779 * dwarf2out.c (is_cxx_auto): New.
28780 (is_base_type): Use it.
28781 (gen_type_die_with_usage): Likewise.
28782
28783 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28784
28785 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
28786 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
28787 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
28788 -maltivec=be with LE targets.
28789 (vsx_mergeh_<mode>): Likewise.
28790 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
28791 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
28792 (altivec_vmrghb): Replace with define_expand and new
28793 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
28794 (altivec_vmrghb_direct): New define_insn.
28795 (altivec_vmrghh): Replace with define_expand and new
28796 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
28797 (altivec_vmrghh_direct): New define_insn.
28798 (altivec_vmrghw): Replace with define_expand and new
28799 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
28800 (altivec_vmrghw_direct): New define_insn.
28801 (*altivec_vmrghsf): Adjust for endianness.
28802 (altivec_vmrglb): Replace with define_expand and new
28803 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
28804 (altivec_vmrglb_direct): New define_insn.
28805 (altivec_vmrglh): Replace with define_expand and new
28806 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
28807 (altivec_vmrglh_direct): New define_insn.
28808 (altivec_vmrglw): Replace with define_expand and new
28809 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
28810 (altivec_vmrglw_direct): New define_insn.
28811 (*altivec_vmrglsf): Adjust for endianness.
28812 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28813 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28814 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28815 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28816 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28817 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28818 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28819 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28820
28821 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
28822
28823 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
28824 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
28825 whitespace.
28826
28827 2014-01-29 Richard Biener <rguenther@suse.de>
28828
28829 PR tree-optimization/58742
28830 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
28831 associate_pointerplus_align.
28832 (associate_pointerplus_diff): New function.
28833 (associate_pointerplus): Likewise. Call associate_pointerplus_align
28834 and associate_pointerplus_diff.
28835
28836 2014-01-29 Richard Biener <rguenther@suse.de>
28837
28838 * lto-streamer.h (LTO_major_version): Bump to 3.
28839 (LTO_minor_version): Reset to 0.
28840
28841 2014-01-29 Renlin Li <Renlin.Li@arm.com>
28842
28843 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
28844 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
28845 (arm_file_start): Generate correct asm header for armv7ve.
28846 * config/arm/bpabi.h: Add multilib support for armv7ve.
28847 * config/arm/driver-arm.c: Change the architectures of cortex-a7
28848 and cortex-a15 to armv7ve.
28849 * config/arm/t-aprofile: Add multilib support for armv7ve.
28850 * doc/invoke.texi: Document -march=armv7ve.
28851
28852 2014-01-29 Richard Biener <rguenther@suse.de>
28853
28854 PR tree-optimization/58742
28855 * tree-ssa-forwprop.c (associate_plusminus): Return true
28856 if we changed sth, defer EH cleanup to ...
28857 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
28858 (simplify_mult): New function.
28859
28860 2014-01-29 Jakub Jelinek <jakub@redhat.com>
28861
28862 PR middle-end/59917
28863 PR tree-optimization/59920
28864 * tree.c (build_common_builtin_nodes): Remove
28865 __builtin_setjmp_dispatcher initialization.
28866 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
28867 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
28868 instead of gsi_after_labels + manually skipping debug stmts.
28869 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
28870 ignore bbs with IFN_ABNORMAL_DISPATCHER.
28871 * tree-inline.c (copy_edges_for_bb): Remove
28872 can_make_abnormal_goto argument, instead add abnormal_goto_dest
28873 argument. Ignore computed_goto_p stmts. Don't call
28874 make_abnormal_goto_edges. If a call might need abnormal edges
28875 for non-local gotos, see if it already has an edge to
28876 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
28877 with true argument, don't do anything then, otherwise add
28878 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
28879 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
28880 caller.
28881 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
28882 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
28883 (lower_stmt): Don't set data->calls_builtin_setjmp.
28884 (lower_builtin_setjmp): Adjust comment.
28885 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
28886 * tree-cfg.c (found_computed_goto): Remove.
28887 (factor_computed_gotos): Remove.
28888 (make_goto_expr_edges): Return bool, true for computed gotos.
28889 Don't call make_abnormal_goto_edges.
28890 (build_gimple_cfg): Don't set found_computed_goto, don't call
28891 factor_computed_gotos.
28892 (computed_goto_p): No longer static.
28893 (make_blocks): Don't set found_computed_goto.
28894 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
28895 (make_edges): If make_goto_expr_edges returns true, push bb
28896 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
28897 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
28898 vector. Record mapping between bbs and OpenMP regions if there
28899 are any, adjust make_gimple_omp_edges caller. Call
28900 handle_abnormal_edges.
28901 (make_abnormal_goto_edges): Remove.
28902 * tree-cfg.h (make_abnormal_goto_edges): Remove.
28903 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
28904 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
28905 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
28906 * internal-fn.def (ABNORMAL_DISPATCHER): New.
28907 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
28908 filling *region also set *region_idx to (*region)->entry->index.
28909
28910 PR other/58712
28911 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
28912 For REGs set ORIGINAL_REGNO.
28913
28914 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
28915
28916 * doc/md.texi: Mention that a target shouldn't implement
28917 vec_widen_(s|u)mul_even/odd pair if it is less efficient
28918 than hi/lo pair.
28919
28920 2014-01-29 Jakub Jelinek <jakub@redhat.com>
28921
28922 PR tree-optimization/59594
28923 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
28924 a copy of the datarefs vector rather than the vector itself.
28925
28926 2014-01-28 Jason Merrill <jason@redhat.com>
28927
28928 PR c++/53756
28929 * dwarf2out.c (auto_die): New static.
28930 (gen_type_die_with_usage): Handle C++1y 'auto'.
28931 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
28932 on definition.
28933
28934 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
28935
28936 PR target/59672
28937 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
28938 (SPEC_X32): Likewise.
28939 (SPEC_64): Likewise.
28940 * config/i386/i386.c (ix86_option_override_internal): Turn off
28941 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
28942 for TARGET_16BIT.
28943 (x86_file_start): Output .code16gcc for TARGET_16BIT.
28944 * config/i386/i386.h (TARGET_16BIT): New macro.
28945 (TARGET_16BIT_P): Likewise.
28946 * config/i386/i386.opt: Add m16.
28947 * doc/invoke.texi: Document -m16.
28948
28949 2014-01-28 Jakub Jelinek <jakub@redhat.com>
28950
28951 PR preprocessor/59935
28952 * input.c (location_get_source_line): Bail out on when line number
28953 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
28954
28955 2014-01-28 Richard Biener <rguenther@suse.de>
28956
28957 PR tree-optimization/58742
28958 * tree-ssa-forwprop.c (associate_plusminus): Handle
28959 pointer subtraction of the form (T)(P + A) - (T)P.
28960
28961 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28962
28963 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
28964 at const_int_cost.
28965
28966 2014-01-28 Richard Biener <rguenther@suse.de>
28967
28968 Revert
28969 2014-01-28 Richard Biener <rguenther@suse.de>
28970
28971 PR rtl-optimization/45364
28972 PR rtl-optimization/59890
28973 * var-tracking.c (local_get_addr_clear_given_value): Handle
28974 already cleared slot.
28975 (val_reset): Handle not allocated local_get_addr_cache.
28976 (vt_find_locations): Use post-order on the inverted CFG.
28977
28978 2014-01-28 Richard Biener <rguenther@suse.de>
28979
28980 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
28981
28982 2014-01-28 Richard Biener <rguenther@suse.de>
28983
28984 PR rtl-optimization/45364
28985 PR rtl-optimization/59890
28986 * var-tracking.c (local_get_addr_clear_given_value): Handle
28987 already cleared slot.
28988 (val_reset): Handle not allocated local_get_addr_cache.
28989 (vt_find_locations): Use post-order on the inverted CFG.
28990
28991 2014-01-28 Alan Modra <amodra@gmail.com>
28992
28993 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
28994 * configure.ac <recursive call for build != host>: Define
28995 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
28996 and LD_FOR_BUILD too.
28997 * configure: Regenerate.
28998
28999 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
29000
29001 * config/i386/i386.c (get_builtin_code_for_version): Separate
29002 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
29003 Broadwell from Haswell.
29004
29005 2014-01-27 Steve Ellcey <sellcey@mips.com>
29006
29007 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
29008 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
29009 * config/mips/mips.c (mips_option_override): Change setting
29010 of TARGET_DSP.
29011 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
29012 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
29013 Change from Mask to Var.
29014
29015 2014-01-27 Jeff Law <law@redhat.com>
29016
29017 * ipa-inline.c (inline_small_functions): Fix typo.
29018
29019 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
29020
29021 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
29022 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
29023 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
29024 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
29025 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
29026 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
29027 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
29028 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
29029 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
29030 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
29031 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
29032 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
29033 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
29034 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
29035 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
29036 (_mm512_storeu_epi64): Ditto.
29037 (_mm512_cmpge_epi32_mask): Ditto.
29038 (_mm512_cmpge_epu32_mask): Ditto.
29039 (_mm512_cmpge_epi64_mask): Ditto.
29040 (_mm512_cmpge_epu64_mask): Ditto.
29041 (_mm512_cmple_epi32_mask): Ditto.
29042 (_mm512_cmple_epu32_mask): Ditto.
29043 (_mm512_cmple_epi64_mask): Ditto.
29044 (_mm512_cmple_epu64_mask): Ditto.
29045 (_mm512_cmplt_epi32_mask): Ditto.
29046 (_mm512_cmplt_epu32_mask): Ditto.
29047 (_mm512_cmplt_epi64_mask): Ditto.
29048 (_mm512_cmplt_epu64_mask): Ditto.
29049 (_mm512_cmpneq_epi32_mask): Ditto.
29050 (_mm512_cmpneq_epu32_mask): Ditto.
29051 (_mm512_cmpneq_epi64_mask): Ditto.
29052 (_mm512_cmpneq_epu64_mask): Ditto.
29053 (_mm512_expand_pd): Ditto.
29054 (_mm512_expand_ps): Ditto.
29055 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
29056 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
29057 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
29058 * config/i386/i386.c (ix86_builtins): Add
29059 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
29060 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
29061 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
29062 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
29063 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
29064 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
29065 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
29066 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
29067 IX86_BUILTIN_PMOVUSQW512_MEM.
29068 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
29069 __builtin_ia32_pmovsqd512mem_mask,
29070 __builtin_ia32_pmovqd512mem_mask,
29071 __builtin_ia32_pmovusqw512mem_mask,
29072 __builtin_ia32_pmovsqw512mem_mask,
29073 __builtin_ia32_pmovqw512mem_mask,
29074 __builtin_ia32_pmovusdw512mem_mask,
29075 __builtin_ia32_pmovsdw512mem_mask,
29076 __builtin_ia32_pmovdw512mem_mask,
29077 __builtin_ia32_pmovqb512mem_mask,
29078 __builtin_ia32_pmovusqb512mem_mask,
29079 __builtin_ia32_pmovsqb512mem_mask,
29080 __builtin_ia32_pmovusdb512mem_mask,
29081 __builtin_ia32_pmovsdb512mem_mask,
29082 __builtin_ia32_pmovdb512mem_mask.
29083 (bdesc_args): Add __builtin_ia32_expanddf512,
29084 __builtin_ia32_expandsf512.
29085 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
29086 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
29087 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
29088 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
29089 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
29090 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
29091 (avx512f_<code>v8div16qi2_mask_store): This.
29092 (avx512f_expand<mode>): New.
29093
29094 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
29095
29096 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
29097 New.
29098 (_mm512_mask_prefetch_i64gather_pd): Ditto.
29099 (_mm512_prefetch_i32scatter_pd): Ditto.
29100 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
29101 (_mm512_prefetch_i64scatter_pd): Ditto.
29102 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
29103 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
29104 (_mm512_mask_prefetch_i64gather_ps): Ditto.
29105 (_mm512_prefetch_i32scatter_ps): Ditto.
29106 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
29107 (_mm512_prefetch_i64scatter_ps): Ditto.
29108 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
29109 * config/i386/i386-builtin-types.def: Define
29110 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
29111 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
29112 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
29113 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
29114 IX86_BUILTIN_SCATTERPFQPD.
29115 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
29116 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
29117 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
29118 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
29119 __builtin_ia32_scatterpfqps.
29120 (ix86_expand_builtin): Expand new built-ins.
29121 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
29122 fix memory access data type.
29123 (*avx512pf_gatherpf<mode>_mask): Ditto.
29124 (*avx512pf_gatherpf<mode>): Ditto.
29125 (avx512pf_scatterpf<mode>): Ditto.
29126 (*avx512pf_scatterpf<mode>_mask): Ditto.
29127 (*avx512pf_scatterpf<mode>): Ditto.
29128 (GATHER_SCATTER_SF_MEM_MODE): New.
29129 (avx512pf_gatherpf<mode>df): Ditto.
29130 (*avx512pf_gatherpf<mode>df_mask): Ditto.
29131 (*avx512pf_scatterpf<mode>df): Ditto.
29132
29133 2014-01-27 Jakub Jelinek <jakub@redhat.com>
29134
29135 PR bootstrap/59934
29136 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
29137 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
29138 reached.
29139
29140 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
29141
29142 * common/config/arm/arm-common.c
29143 (arm_rewrite_mcpu): Handle multiple names.
29144 * config/arm/arm.h
29145 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
29146
29147 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
29148
29149 * gimple-builder.h (create_gimple_tmp): Delete.
29150
29151 2014-01-27 Christian Bruel <christian.bruel@st.com>
29152
29153 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
29154 words comparisons.
29155
29156 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
29157
29158 * config/pa/pa.md (call): Generate indirect long calls to non-local
29159 functions when outputing 32-bit code.
29160 (call_value): Likewise except for special call to buggy powf function.
29161
29162 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
29163 portable runtime and PIC indirect calls.
29164 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
29165 and PIC call sequences. Use ldo instead of blr to set return register
29166 in PIC call sequence.
29167
29168 2014-01-25 Walter Lee <walt@tilera.com>
29169
29170 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
29171 avoid clobbering a live register.
29172
29173 2014-01-25 Walter Lee <walt@tilera.com>
29174
29175 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
29176 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
29177 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
29178 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
29179
29180 2014-01-25 Walter Lee <walt@tilera.com>
29181
29182 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
29183 arguments on even registers.
29184 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
29185 STACK_BOUNDARY.
29186 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
29187 (BIGGEST_ALIGNMENT): Ditto.
29188 (BIGGEST_FIELD_ALIGNMENT): Ditto.
29189
29190 2014-01-25 Walter Lee <walt@tilera.com>
29191
29192 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
29193 insns before bundling.
29194 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
29195
29196 2014-01-25 Walter Lee <walt@tilera.com>
29197
29198 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
29199 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
29200 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
29201
29202 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
29203
29204 * config/mips/constraints.md (kl): Delete.
29205 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
29206 define expands, using...
29207 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
29208 instructions for MIPS16.
29209 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
29210 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
29211
29212 2014-01-25 Walter Lee <walt@tilera.com>
29213
29214 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
29215 (clzdi2): Ditto.
29216 (ffsdi2): Ditto.
29217
29218 2014-01-25 Walter Lee <walt@tilera.com>
29219
29220 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
29221 (TARGET_EXPAND_TO_RTL_HOOK): Define.
29222
29223 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
29224
29225 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
29226 Handle XOR.
29227
29228 2014-01-25 Jakub Jelinek <jakub@redhat.com>
29229
29230 * print-rtl.c (in_call_function_usage): New var.
29231 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
29232 EXPR_LIST mode as mode and not as reg note name.
29233
29234 PR middle-end/59561
29235 * cfgloopmanip.c (copy_loop_info): If
29236 loop->warned_aggressive_loop_optimizations, make sure
29237 the flag is set in target loop too.
29238
29239 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
29240
29241 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
29242 flag_cilkplus.
29243 * builtins.def: Likewise.
29244 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
29245 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
29246 * ira.c (ira_setup_eliminable_regset): Likewise.
29247 * omp-low.c (gate_expand_omp): Likewise.
29248 (execute_lower_omp): Likewise.
29249 (diagnose_sb_0): Likewise.
29250 (gate_diagnose_omp_blocks): Likewise.
29251 (simd_clone_clauses_extract): Likewise.
29252 (gate): Likewise.
29253
29254 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29255
29256 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
29257 correction for little endian...
29258 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
29259 here.
29260
29261 2014-01-24 Jeff Law <law@redhat.com>
29262
29263 PR tree-optimization/59919
29264 * tree-vrp.c (find_assert_locations_1): Do not register asserts
29265 for non-returning calls.
29266
29267 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
29268
29269 * common/config/aarch64/aarch64-common.c
29270 (aarch64_rewrite_mcpu): Handle multiple names.
29271 * config/aarch64/aarch64.h
29272 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
29273
29274 2014-01-24 Dodji Seketeli <dodji@redhat.com>
29275
29276 * input.c (add_file_to_cache_tab): Handle the case where fopen
29277 returns NULL.
29278
29279 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
29280
29281 PR target/59929
29282 * config/i386/i386.md (pushsf splitter): Get stack adjustment
29283 from push operand if code of push isn't PRE_DEC.
29284
29285 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
29286
29287 PR target/59909
29288 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
29289 -mquad-memory-atomic. Update -mquad-memory documentation to say
29290 it is only used for non-atomic loads/stores.
29291
29292 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
29293 -mquad-memory or -mquad-memory-atomic switches.
29294
29295 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
29296 -mquad-memory-atomic to ISA 2.07 support.
29297
29298 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
29299 to separate support of normal quad word memory operations (ldq, stq)
29300 from the atomic quad word memory operations.
29301
29302 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
29303 support to separate non-atomic quad word operations from atomic
29304 quad word operations. Disable non-atomic quad word operations in
29305 little endian mode so that we don't have to swap words after the
29306 load and before the store.
29307 (quad_load_store_p): Add comment about atomic quad word support.
29308 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
29309 options printed with -mdebug=reg.
29310
29311 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
29312 -mquad-memory-atomic as the test for whether we have quad word
29313 atomic instructions.
29314 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
29315 or -mp8-vector are used, allow byte/half-word atomic operations.
29316
29317 * config/rs6000/sync.md (load_lockedti): Insure that the address
29318 is a proper indexed or indirect address for the lqarx instruction.
29319 On little endian systems, swap the hi/lo registers after the lqarx
29320 instruction.
29321 (load_lockedpti): Use indexed_or_indirect_operand predicate to
29322 insure the address is valid for the lqarx instruction.
29323 (store_conditionalti): Insure that the address is a proper indexed
29324 or indirect address for the stqcrx. instruction. On little endian
29325 systems, swap the hi/lo registers before doing the stqcrx.
29326 instruction.
29327 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
29328 insure the address is valid for the stqcrx. instruction.
29329
29330 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
29331 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
29332 type of quad memory support is available.
29333
29334 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
29335
29336 PR regression/59915
29337 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
29338 there is a danger of looping.
29339
29340 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
29341
29342 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
29343 force flag_ira_loop_pressure if set via command line.
29344
29345 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
29346
29347 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
29348 (ashr_simd): New builtin handling DI mode.
29349 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
29350 (aarch64_sshr_simddi): New match pattern.
29351 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
29352 (vshrd_n_s64): Likewise.
29353 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
29354
29355 2014-01-23 Nick Clifton <nickc@redhat.com>
29356
29357 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
29358 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
29359 favour of mcu specific scripts.
29360 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
29361 430x multilibs.
29362
29363 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
29364 Alex Velenko <Alex.Velenko@arm.com>
29365
29366 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
29367 (vaddv_s16): Likewise.
29368 (vaddv_s32): Likewise.
29369 (vaddv_u8): Likewise.
29370 (vaddv_u16): Likewise.
29371 (vaddv_u32): Likewise.
29372 (vaddvq_s8): Likewise.
29373 (vaddvq_s16): Likewise.
29374 (vaddvq_s32): Likewise.
29375 (vaddvq_s64): Likewise.
29376 (vaddvq_u8): Likewise.
29377 (vaddvq_u16): Likewise.
29378 (vaddvq_u32): Likewise.
29379 (vaddvq_u64): Likewise.
29380 (vaddv_f32): Likewise.
29381 (vaddvq_f32): Likewise.
29382 (vaddvq_f64): Likewise.
29383 (vmaxv_f32): Likewise.
29384 (vmaxv_s8): Likewise.
29385 (vmaxv_s16): Likewise.
29386 (vmaxv_s32): Likewise.
29387 (vmaxv_u8): Likewise.
29388 (vmaxv_u16): Likewise.
29389 (vmaxv_u32): Likewise.
29390 (vmaxvq_f32): Likewise.
29391 (vmaxvq_f64): Likewise.
29392 (vmaxvq_s8): Likewise.
29393 (vmaxvq_s16): Likewise.
29394 (vmaxvq_s32): Likewise.
29395 (vmaxvq_u8): Likewise.
29396 (vmaxvq_u16): Likewise.
29397 (vmaxvq_u32): Likewise.
29398 (vmaxnmv_f32): Likewise.
29399 (vmaxnmvq_f32): Likewise.
29400 (vmaxnmvq_f64): Likewise.
29401 (vminv_f32): Likewise.
29402 (vminv_s8): Likewise.
29403 (vminv_s16): Likewise.
29404 (vminv_s32): Likewise.
29405 (vminv_u8): Likewise.
29406 (vminv_u16): Likewise.
29407 (vminv_u32): Likewise.
29408 (vminvq_f32): Likewise.
29409 (vminvq_f64): Likewise.
29410 (vminvq_s8): Likewise.
29411 (vminvq_s16): Likewise.
29412 (vminvq_s32): Likewise.
29413 (vminvq_u8): Likewise.
29414 (vminvq_u16): Likewise.
29415 (vminvq_u32): Likewise.
29416 (vminnmv_f32): Likewise.
29417 (vminnmvq_f32): Likewise.
29418 (vminnmvq_f64): Likewise.
29419
29420 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
29421
29422 * config/aarch64/aarch64-simd.md
29423 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
29424 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
29425 (*aarch64_mul3_elt<mode>): Likewise.
29426 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
29427 (*aarch64_mul3_elt_to_64v2df): Likewise.
29428 (*aarch64_mla_elt<mode>): Likewise.
29429 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
29430 (*aarch64_mls_elt<mode>): Likewise.
29431 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
29432 (*aarch64_fma4_elt<mode>): Likewise.
29433 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
29434 (*aarch64_fma4_elt_to_64v2df): Likewise.
29435 (*aarch64_fnma4_elt<mode>): Likewise.
29436 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
29437 (*aarch64_fnma4_elt_to_64v2df): Likewise.
29438 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
29439 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
29440 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
29441 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
29442 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
29443 (aarch64_sqdmull_lane<mode>_internal): Likewise.
29444 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
29445
29446 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
29447
29448 * config/aarch64/aarch64-simd.md
29449 (aarch64_be_checked_get_lane<mode>): New define_expand.
29450 * config/aarch64/aarch64-simd-builtins.def
29451 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
29452 New builtin definition.
29453 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
29454 Use new safe be builtin.
29455
29456 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
29457
29458 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
29459 New define_insn.
29460 (aarch64_be_st1<mode>): Likewise.
29461 (aarch_ld1<VALL:mode>): Define_expand modified.
29462 (aarch_st1<VALL:mode>): Likewise.
29463 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
29464 (UNSPEC_ST1): Likewise.
29465
29466 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
29467
29468 * config/microblaze/microblaze.md: Add trap insn and attribute
29469
29470 2014-01-23 Dodji Seketeli <dodji@redhat.com>
29471
29472 PR preprocessor/58580
29473 * input.h (location_get_source_line): Take an additional line_size
29474 parameter.
29475 (void diagnostics_file_cache_fini): Declare new function.
29476 * input.c (struct fcache): New type.
29477 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
29478 New static constants.
29479 (diagnostic_file_cache_init, total_lines_num)
29480 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
29481 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
29482 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
29483 (get_next_line, read_next_line, goto_next_line, read_line_num):
29484 New static function definitions.
29485 (diagnostic_file_cache_fini): New function.
29486 (location_get_source_line): Take an additional output line_len
29487 parameter. Re-write using lookup_or_add_file_to_cache_tab and
29488 read_line_num.
29489 * diagnostic.c (diagnostic_finish): Call
29490 diagnostic_file_cache_fini.
29491 (adjust_line): Take an additional input parameter for the length
29492 of the line, rather than calculating it with strlen.
29493 (diagnostic_show_locus): Adjust the use of
29494 location_get_source_line and adjust_line with respect to their new
29495 signature. While displaying a line now, do not stop at the first
29496 null byte. Rather, display the zero byte as a space and keep
29497 going until we reach the size of the line.
29498 * Makefile.in: Add vec.o to OBJS-libcommon
29499
29500 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
29501 Ilya Tocar <ilya.tocar@intel.com>
29502
29503 * config/i386/avx512fintrin.h (_mm512_kmov): New.
29504 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
29505 (__builtin_ia32_kmov16): Ditto.
29506 * config/i386/i386.md (UNSPEC_KMOV): New.
29507 (kmovw): Ditto.
29508
29509 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
29510
29511 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
29512 (_mm512_storeu_si512): Ditto.
29513
29514 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
29515
29516 PR target/52125
29517 * rtl.h (get_referenced_operands): Declare.
29518 * recog.c (get_referenced_operands): New function.
29519 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
29520 operands have been referenced when recording LO_SUM references.
29521
29522 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
29523
29524 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
29525
29526 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
29527
29528 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
29529 Enable for generic and recent AMD targets.
29530
29531 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
29532
29533 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
29534 ARG_SIZE note when adjustment was eliminated.
29535
29536 2014-01-22 Jeff Law <law@redhat.com>
29537
29538 PR tree-optimization/59597
29539 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
29540 in file. Accept new argument REGISTERING and use it to modify
29541 dump output appropriately.
29542 (register_jump_thread): Corresponding changes.
29543 (mark_threaded_blocks): Reinstate code to cancel unprofitable
29544 thread paths involving joiner blocks. Add code to dump cancelled
29545 jump threading paths.
29546
29547 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
29548
29549 PR rtl-optimization/59477
29550 * lra-constraints.c (inherit_in_ebb): Process call for living hard
29551 regs. Update reloads_num and potential_reload_hard_regs for all insns.
29552
29553 2014-01-22 Tom Tromey <tromey@redhat.com>
29554
29555 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
29556 PARAMS.
29557 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
29558
29559 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
29560
29561 PR rtl-optimization/59896
29562 * lra-constraints.c (process_alt_operands): Check unused note for
29563 matched operands of insn with no output reloads.
29564
29565 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
29566
29567 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
29568 (mips_move_from_gpr_cost): Likewise.
29569
29570 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
29571
29572 PR rtl-optimization/59858
29573 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
29574 ira_class_hard_regs_num.
29575 (process_alt_operands): Increase reject for dying matched operand.
29576
29577 2014-01-21 Jakub Jelinek <jakub@redhat.com>
29578
29579 PR target/59003
29580 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
29581 smaller than size, perform several stores or loads and stores
29582 at dst + count - size to store or copy all of size bytes, rather
29583 than just last modesize bytes.
29584
29585 2014-01-20 DJ Delorie <dj@redhat.com>
29586
29587 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
29588 that CLOBBERs are REGs before propogating their values.
29589
29590 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
29591
29592 PR middle-end/59789
29593 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
29594 (cgraph_inline_failed_type): New function.
29595 * cgraph.h (DEFCIFCODE): Add type.
29596 (cgraph_inline_failed_type_t): New enum.
29597 (cgraph_inline_failed_type): New prototype.
29598 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
29599 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
29600 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
29601 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
29602 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
29603 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
29604 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
29605 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
29606 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
29607 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
29608 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
29609 OPTIMIZATION_MISMATCH.
29610 * tree-inline.c (expand_call_inline): Emit errors during
29611 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
29612
29613 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
29614
29615 PR target/59685
29616 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
29617 mode attribute in insn output.
29618
29619 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
29620
29621 * output.h (output_constant): Delete.
29622 * varasm.c (output_constant): Make private.
29623
29624 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
29625
29626 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
29627
29628 2014-01-20 Jakub Jelinek <jakub@redhat.com>
29629
29630 PR middle-end/59860
29631 * tree.h (fold_builtin_strcat): New prototype.
29632 * builtins.c (fold_builtin_strcat): No longer static. Add len
29633 argument, if non-NULL, don't call c_strlen. Optimize
29634 directly into __builtin_memcpy instead of __builtin_strcpy.
29635 (fold_builtin_2): Adjust fold_builtin_strcat caller.
29636 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
29637
29638 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
29639
29640 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29641 for SImode_address_operand operands, having only a REG argument.
29642
29643 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
29644
29645 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
29646 loader name using mbig-endian.
29647 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
29648
29649 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
29650
29651 * doc/invoke.texi (-march): Clarify documentation for AArch64.
29652 (-mtune): Likewise.
29653 (-mcpu): Likewise.
29654
29655 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
29656
29657 * config/aarch64/aarch64-protos.h
29658 (aarch64_cannot_change_mode_class_ptr): Declare.
29659 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
29660 aarch64_cannot_change_mode_class_ptr): New.
29661 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
29662 backend hook aarch64_cannot_change_mode_class.
29663
29664 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
29665
29666 * common/config/aarch64/aarch64-common.c
29667 (aarch64_handle_option): Don't handle any option order logic here.
29668 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
29669 selected_cpu, warn on architecture version mismatch.
29670 (aarch64_override_options): Fix parsing order for option strings.
29671
29672 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29673 Iain Sandoe <iain@codesourcery.com>
29674
29675 PR bootstrap/59496
29676 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
29677 warning. Amend comment to reflect current functionality.
29678
29679 2014-01-20 Richard Biener <rguenther@suse.de>
29680
29681 PR middle-end/59860
29682 * builtins.c (fold_builtin_strcat): Remove case better handled
29683 by tree-ssa-strlen.c.
29684
29685 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
29686
29687 * config/aarch64/aarch64.opt
29688 (mcpu, march, mtune): Make case-insensitive.
29689
29690 2014-01-20 Jakub Jelinek <jakub@redhat.com>
29691
29692 PR target/59880
29693 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29694 if operands[1] is a REG or ZERO_EXTEND of a REG.
29695
29696 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
29697
29698 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
29699
29700 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
29701
29702 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
29703 long non-pic millicode calls.
29704
29705 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29706
29707 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
29708
29709 2014-01-19 Kito Cheng <kito@0xlab.org>
29710
29711 * builtins.c (expand_movstr): Check movstr expand done or fail.
29712
29713 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29714 H.J. Lu <hongjiu.lu@intel.com>
29715
29716 PR target/59379
29717 * config/i386/i386.md (*lea<mode>): Zero-extend return register
29718 to DImode for zero-extended addresses.
29719
29720 2014-01-19 Jakub Jelinek <jakub@redhat.com>
29721
29722 PR rtl-optimization/57763
29723 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
29724 on the new indirect jump_insn and increment LABEL_NUSES (label).
29725
29726 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
29727
29728 PR bootstrap/59580
29729 PR bootstrap/59583
29730 * config.gcc (x86_archs): New variable.
29731 (x86_64_archs): Likewise.
29732 (x86_cpus): Likewise.
29733 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
29734 --with-arch/--with-cpu= options.
29735 Support --with-arch=/--with-cpu={nehalem,westmere,
29736 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
29737
29738 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29739
29740 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
29741 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
29742
29743 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29744
29745 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
29746
29747 2014-01-18 Jakub Jelinek <jakub@redhat.com>
29748
29749 PR target/58944
29750 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
29751 clear cpp_get_options (parse_in)->warn_unused_macros for
29752 ix86_target_macros_internal with cpp_define.
29753
29754 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
29755
29756 * jump.c (delete_related_insns): Keep (use (insn))s.
29757 * reorg.c (redundant_insn): Check for barriers too.
29758
29759 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29760
29761 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
29762
29763 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
29764
29765 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
29766 call to $$dyncall when TARGET_LONG_CALLS is true.
29767
29768 2014-01-17 Jeff Law <law@redhat.com>
29769
29770 * ree.c (combine_set_extension): Temporarily disable test for
29771 changing number of hard registers.
29772
29773 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
29774
29775 PR middle-end/58125
29776 * ipa-inline-analysis.c (inline_free_summary):
29777 Do not free summary of aliases.
29778
29779 2014-01-17 Jakub Jelinek <jakub@redhat.com>
29780
29781 PR middle-end/59706
29782 * gimplify.c (gimplify_expr): Use create_tmp_var
29783 instead of create_tmp_var_raw. If cond doesn't have
29784 integral type, don't add the IFN_ANNOTATE builtin at all.
29785
29786 2014-01-17 Martin Jambor <mjambor@suse.cz>
29787
29788 PR ipa/59736
29789 * ipa-cp.c (prev_edge_clone): New variable.
29790 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
29791 Also resize prev_edge_clone vector.
29792 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
29793 (ipcp_edge_removal_hook): New function.
29794 (ipcp_driver): Register ipcp_edge_removal_hook.
29795
29796 2014-01-17 Andrew Pinski <apinski@cavium.com>
29797 Steve Ellcey <sellcey@mips.com>
29798
29799 PR target/59462
29800 * config/mips/mips.c (mips_print_operand): Check operand mode instead
29801 of operator mode.
29802
29803 2014-01-17 Jeff Law <law@redhat.com>
29804
29805 PR middle-end/57904
29806 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
29807 so that pass_ccp runs first.
29808
29809 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29810
29811 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
29812 (ix86_adjust_cost): Use !TARGET_XXX.
29813 (do_reorder_for_imul): Likewise.
29814 (swap_top_of_ready_list): Likewise.
29815 (ix86_sched_reorder): Likewise.
29816
29817 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29818
29819 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29820 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
29821 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
29822 (intel_memset): New. Duplicate slm_memset.
29823 (intel_cost): New. Duplicate slm_cost.
29824 (m_INTEL): New macro.
29825 (processor_target_table): Add "intel".
29826 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
29827 with PROCESSOR_INTEL for "intel".
29828 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
29829 PROCESSOR_SILVERMONT.
29830 (ix86_issue_rate): Likewise.
29831 (ix86_adjust_cost): Likewise.
29832 (ia32_multipass_dfa_lookahead): Likewise.
29833 (swap_top_of_ready_list): Likewise.
29834 (ix86_sched_reorder): Likewise.
29835 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
29836 instead of TARGET_OPT_AGU.
29837 * config/i386/i386.h (TARGET_INTEL): New.
29838 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
29839 (processor_type): Add PROCESSOR_INTEL.
29840 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
29841 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
29842
29843 2014-01-17 Marek Polacek <polacek@redhat.com>
29844
29845 PR c/58346
29846 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
29847 size is zero.
29848
29849 2014-01-17 Richard Biener <rguenther@suse.de>
29850
29851 PR tree-optimization/46590
29852 * opts.c (default_options_table): Add entries for
29853 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
29854 all enabled at -O1 but not for -Og.
29855 * common.opt (fbranch-count-reg): Remove Init(1).
29856 (fmove-loop-invariants): Likewise.
29857 (ftree-pta): Likewise.
29858
29859 2014-01-17 Jakub Jelinek <jakub@redhat.com>
29860
29861 * config/i386/i386.c (ix86_data_alignment): For compatibility with
29862 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
29863 decls to at least the GCC 4.8 used alignments.
29864
29865 PR fortran/59440
29866 * tree-nested.c (convert_nonlocal_reference_stmt,
29867 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
29868 of GIMPLE_BIND stmts, adjust associated decls.
29869
29870 2014-01-17 Richard Biener <rguenther@suse.de>
29871
29872 PR tree-optimization/46590
29873 * vec.h (vec<>::bseach): New member function implementing
29874 binary search according to C89 bsearch.
29875 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
29876 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
29877 bitmap pointer again. Make accesses_in_loop a flat array.
29878 (mem_ref_obstack): New global.
29879 (outermost_indep_loop): Adjust for mem_ref->stored changes.
29880 (mark_ref_stored): Likewise.
29881 (ref_indep_loop_p_2): Likewise.
29882 (set_ref_stored_in_loop): New helper function.
29883 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
29884 (memref_free): Adjust.
29885 (record_mem_ref_loc): Simplify.
29886 (gather_mem_refs_stmt): Adjust.
29887 (sort_locs_in_loop_postorder_cmp): New function.
29888 (analyze_memory_references): Sort accesses_in_loop after
29889 loop postorder number.
29890 (find_ref_loc_in_loop_cmp): New function.
29891 (for_all_locs_in_loop): Find relevant cluster of locs in
29892 accesses_in_loop and iterate without recursion.
29893 (execute_sm): Avoid uninit warning.
29894 (struct ref_always_accessed): Simplify.
29895 (ref_always_accessed::operator ()): Likewise.
29896 (ref_always_accessed_p): Likewise.
29897 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
29898 loop postorder numbers here.
29899 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
29900 numbers.
29901
29902 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
29903
29904 PR c++/57945
29905 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
29906 on decls for which assemble_alias has been called.
29907
29908 2014-01-17 Nick Clifton <nickc@redhat.com>
29909
29910 * config/msp430/msp430.opt: (mcpu): New option.
29911 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
29912 (msp430_option_override): Parse target_cpu. If the MCU name
29913 matches a generic string, clear target_mcu.
29914 (msp430_attr): Allow numeric interrupt values up to 63.
29915 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
29916 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
29917 option.
29918 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
29919 Add mcpu matches.
29920 * config/msp430/msp430.md (popm): Use %J rather than %I.
29921 (addsi3): Use msp430_nonimmediate_operand for operand 2.
29922 (addhi_cy_i): Use immediate_operand for operand 2.
29923 * doc/invoke.texi: Document -mcpu option.
29924
29925 2014-01-17 Richard Biener <rguenther@suse.de>
29926
29927 PR rtl-optimization/38518
29928 * df.h (df_analyze_loop): Declare.
29929 * df-core.c: Include cfgloop.h.
29930 (df_analyze_1): Split out main part of df_analyze.
29931 (df_analyze): Adjust.
29932 (loop_inverted_post_order_compute): New function.
29933 (loop_post_order_compute): Likewise.
29934 (df_analyze_loop): New function avoiding whole-function
29935 postorder computes.
29936 * loop-invariant.c (find_defs): Use df_analyze_loop.
29937 (find_invariants): Adjust.
29938 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
29939
29940 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
29941
29942 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
29943 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
29944
29945 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
29946
29947 * ipa-ref.c (ipa_remove_stmt_references): Fix references
29948 traversal when removing references.
29949
29950 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
29951
29952 PR ipa/59775
29953 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
29954
29955 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
29956
29957 PR middle-end/56791
29958 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
29959 pushing a reload for an autoinc when we had previously reloaded an
29960 inner part of the address.
29961
29962 2014-01-16 Jakub Jelinek <jakub@redhat.com>
29963
29964 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
29965 field.
29966 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
29967 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
29968 when not giving up or versioning for alias only because of
29969 loop->safelen.
29970 (vect_analyze_data_ref_dependences): Set to true.
29971 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
29972 is a GIMPLE_PHI.
29973 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
29974 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
29975 to the condition.
29976
29977 PR middle-end/58344
29978 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
29979
29980 PR target/59839
29981 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
29982 operand 0 predicate for gathers, use a new pseudo as subtarget.
29983
29984 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
29985
29986 PR middle-end/59609
29987 * lra-constraints.c (process_alt_operands): Add printing debug info.
29988 Check absence of input/output reloads for matched operands too.
29989
29990 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
29991
29992 PR rtl-optimization/59835
29993 * ira.c (ira_init_register_move_cost): Increase cost for
29994 impossible modes.
29995
29996 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
29997
29998 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
29999
30000 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
30001
30002 PR target/59780
30003 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
30004 non-register objects. Use gen_(high/low)part more consistently.
30005 Fix assertions.
30006
30007 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
30008
30009 PR target/59844
30010 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
30011 endian support, remove tests for WORDS_BIG_ENDIAN.
30012 (p8_mfvsrd_3_<mode>): Likewise.
30013 (reload_gpr_from_vsx<mode>): Likewise.
30014 (reload_gpr_from_vsxsf): Likewise.
30015 (p8_mfvsrd_4_disf): Likewise.
30016
30017 2014-01-16 Richard Biener <rguenther@suse.de>
30018
30019 PR rtl-optimization/46590
30020 * lcm.c (compute_antinout_edge): Use postorder iteration.
30021 (compute_laterin): Use inverted postorder iteration.
30022
30023 2014-01-16 Nick Clifton <nickc@redhat.com>
30024
30025 PR middle-end/28865
30026 * varasm.c (output_constant): Return the number of bytes actually
30027 emitted.
30028 (output_constructor_array_range): Update the field size with the
30029 number of bytes emitted by output_constant.
30030 (output_constructor_regular_field): Likewise. Also do not
30031 complain if the total number of bytes emitted is now greater
30032 than the expected fieldpos.
30033 * output.h (output_constant): Update prototype and descriptive comment.
30034
30035 2014-01-16 Marek Polacek <polacek@redhat.com>
30036
30037 PR middle-end/59827
30038 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
30039 it is error_mark_node.
30040
30041 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
30042
30043 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
30044 VALID_AVX256_REG_OR_OI_MODE.
30045
30046 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
30047
30048 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
30049 current procedure should be profiled.
30050
30051 2014-01-15 Andrew Pinski <apinski@cavium.com>
30052
30053 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
30054 of moving from/to the STACK_REG register class.
30055
30056 2014-01-15 Richard Henderson <rth@redhat.com>
30057
30058 PR debug/54694
30059 * reginfo.c (global_regs_decl): Globalize.
30060 * rtl.h (global_regs_decl): Declare.
30061 * ira.c (do_reload): Diagnose frame_pointer_needed and it
30062 reserved via global_regs.
30063
30064 2014-01-15 Teresa Johnson <tejohnson@google.com>
30065
30066 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
30067
30068 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
30069
30070 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
30071 and vmulosh rather than call gen_vec_widen_smult_*.
30072 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
30073 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
30074 (vec_widen_smult_even_v16qi): Likewise.
30075 (vec_widen_umult_even_v8hi): Likewise.
30076 (vec_widen_smult_even_v8hi): Likewise.
30077 (vec_widen_umult_odd_v16qi): Likewise.
30078 (vec_widen_smult_odd_v16qi): Likewise.
30079 (vec_widen_umult_odd_v8hi): Likewise.
30080 (vec_widen_smult_odd_v8hi): Likewise.
30081 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
30082 vmuloub rather than call gen_vec_widen_umult_*.
30083 (vec_widen_umult_lo_v16qi): Likewise.
30084 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
30085 vmulosb rather than call gen_vec_widen_smult_*.
30086 (vec_widen_smult_lo_v16qi): Likewise.
30087 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
30088 rather than call gen_vec_widen_umult_*.
30089 (vec_widen_umult_lo_v8hi): Likewise.
30090 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
30091 rather than call gen_vec_widen_smult_*.
30092 (vec_widen_smult_lo_v8hi): Likewise.
30093
30094 2014-01-15 Jeff Law <law@redhat.com>
30095
30096 PR tree-optimization/59747
30097 * ree.c (find_and_remove_re): Properly handle case where a second
30098 eliminated extension requires widening a copy created for elimination
30099 of a prior extension.
30100 (combine_set_extension): Ensure that the number of hard regs needed
30101 for a destination register does not change when we widen it.
30102
30103 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
30104
30105 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
30106 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
30107 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
30108 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
30109 (avr-*-rtems*): Likewise.
30110 (bfin*-rtems*): Likewise.
30111 (moxie-*-rtems*): Likewise.
30112 (h8300-*-rtems*): Likewise.
30113 (i[34567]86-*-rtems*): Likewise.
30114 (lm32-*-rtems*): Likewise.
30115 (m32r-*-rtems*): Likewise.
30116 (m68k-*-rtems*): Likewise.
30117 (microblaze*-*-rtems*): Likewise.
30118 (mips*-*-rtems*): Likewise.
30119 (powerpc-*-rtems*): Likewise.
30120 (sh-*-rtems*): Likewise.
30121 (sparc-*-rtems*): Likewise.
30122 (sparc64-*-rtems*): Likewise.
30123 (v850-*-rtems*): Likewise.
30124 (m32c-*-rtems*): Likewise.
30125
30126 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
30127
30128 PR rtl-optimization/59511
30129 * ira.c (ira_init_register_move_cost): Use memory costs for some
30130 cases of register move cost calculations.
30131 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
30132 instead of BB frequency.
30133 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
30134 * lra-assigns.c (find_hard_regno_for): Ditto.
30135
30136 2014-01-15 Richard Biener <rguenther@suse.de>
30137
30138 PR tree-optimization/59822
30139 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
30140 (vectorizable_load): Use it to hoist defs of uses of invariant
30141 loads out of the loop.
30142
30143 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
30144 Kugan Vivekanandarajah <kuganv@linaro.org>
30145
30146 PR target/59695
30147 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
30148 truncation.
30149
30150 2014-01-15 Richard Biener <rguenther@suse.de>
30151
30152 PR rtl-optimization/59802
30153 * lcm.c (compute_available): Use inverted postorder to seed
30154 the initial worklist.
30155
30156 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30157
30158 PR target/59803
30159 * config/s390/s390.c (s390_preferred_reload_class): Don't return
30160 ADDR_REGS for invalid symrefs in non-PIC code.
30161
30162 2014-01-15 Jakub Jelinek <jakub@redhat.com>
30163
30164 PR other/58712
30165 * builtins.c (determine_block_size): Initialize *probable_max_size
30166 even if len_rtx is CONST_INT.
30167
30168 2014-01-14 Andrew Pinski <apinski@cavium.com>
30169
30170 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
30171 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
30172 (cortexa53_tunings): Likewise.
30173 (aarch64_sched_issue_rate): New function.
30174 (TARGET_SCHED_ISSUE_RATE): Define.
30175
30176 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
30177
30178 * ira-costs.c (find_costs_and_classes): Add missed
30179 ira_init_register_move_cost_if_necessary.
30180
30181 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
30182
30183 PR target/59787
30184 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
30185
30186 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
30187
30188 PR target/59794
30189 * config/i386/i386.c (type_natural_mode): Add a bool parameter
30190 to indicate if type is used for function return value. Warn ABI
30191 change if the vector mode isn't available for function return value.
30192 (ix86_function_arg_advance): Pass false to type_natural_mode.
30193 (ix86_function_arg): Likewise.
30194 (ix86_gimplify_va_arg): Likewise.
30195 (function_arg_32): Don't warn ABI change.
30196 (ix86_function_value): Pass true to type_natural_mode.
30197 (ix86_return_in_memory): Likewise.
30198 (ix86_struct_value_rtx): Removed.
30199 (TARGET_STRUCT_VALUE_RTX): Likewise.
30200
30201 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
30202
30203 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
30204 converting a conditional jump into a conditional return.
30205
30206 2014-01-14 Richard Biener <rguenther@suse.de>
30207
30208 PR tree-optimization/58921
30209 PR tree-optimization/59006
30210 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
30211 hoisting invariant stmts.
30212 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
30213 invariant loads on the preheader edge if possible.
30214
30215 2014-01-14 Joey Ye <joey.ye@arm.com>
30216
30217 * doc/plugin.texi (Building GCC plugins): Update to C++.
30218
30219 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
30220
30221 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
30222 (_mm_rcp28_round_ss): Ditto.
30223 (_mm_rsqrt28_round_sd): Ditto.
30224 (_mm_rsqrt28_round_ss): Ditto.
30225 (_mm_rcp28_sd): Ditto.
30226 (_mm_rcp28_ss): Ditto.
30227 (_mm_rsqrt28_sd): Ditto.
30228 (_mm_rsqrt28_ss): Ditto.
30229 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
30230 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
30231 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
30232 (IX86_BUILTIN_RCP28SD): Ditto.
30233 (IX86_BUILTIN_RCP28SS): Ditto.
30234 (IX86_BUILTIN_RSQRT28SD): Ditto.
30235 (IX86_BUILTIN_RSQRT28SS): Ditto.
30236 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
30237 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
30238 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
30239 (ix86_expand_special_args_builtin): Expand new FTYPE.
30240 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
30241 (srcp14<mode>): Make insn unary.
30242 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
30243 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
30244 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
30245 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
30246 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
30247 Fix rounding: make it SAE only.
30248 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
30249 Ditto.
30250 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
30251 Ditto.
30252 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
30253 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
30254 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
30255 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
30256 (round_saeonly_mask_scalar_operand4): Ditto.
30257 (round_saeonly_mask_scalar_op3): Ditto.
30258 (round_saeonly_mask_scalar_op4): Ditto.
30259
30260 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30261
30262 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30263 Implement -maltivec=be for vec_insert and vec_extract.
30264
30265 2014-01-10 DJ Delorie <dj@redhat.com>
30266
30267 * config/msp430/msp430.md (call_internal): Don't allow memory
30268 references with SP as the base register.
30269 (call_value_internal): Likewise.
30270 * config/msp430/constraints.md (Yc): New. For memory references
30271 that don't use SP as a base register.
30272
30273 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
30274 "an integer without a # prefix"
30275 * config/msp430/msp430.md (epilogue_helper): Use it.
30276
30277 2014-01-13 Jakub Jelinek <jakub@redhat.com>
30278
30279 PR target/59617
30280 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
30281 AVX512F gather builtins.
30282 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
30283 on gather decls with INTEGER_TYPE masktype.
30284 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
30285 directly into the builtin rather than hoisting it before loop.
30286
30287 PR tree-optimization/59387
30288 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
30289 (scev_const_prop): If folded_casts and type has undefined overflow,
30290 use force_gimple_operand instead of force_gimple_operand_gsi and
30291 for each added stmt if it is assign with
30292 arith_code_with_undefined_signed_overflow, call
30293 rewrite_to_defined_overflow.
30294 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
30295 gimple-fold.h instead.
30296 (arith_code_with_undefined_signed_overflow,
30297 rewrite_to_defined_overflow): Moved to ...
30298 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
30299 rewrite_to_defined_overflow): ... here. No longer static.
30300 Include gimplify-me.h.
30301 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
30302 rewrite_to_defined_overflow): New prototypes.
30303
30304 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30305
30306 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
30307
30308 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
30309
30310 * builtins.c (get_object_alignment_2): Minor tweak.
30311 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
30312
30313 2014-01-13 Christian Bruel <christian.bruel@st.com>
30314
30315 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
30316 optimized non constant lengths.
30317
30318 2014-01-13 Jakub Jelinek <jakub@redhat.com>
30319
30320 PR libgomp/59194
30321 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
30322 load as __atomic_load_N if possible.
30323
30324 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
30325
30326 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
30327 target parameter.
30328 (rs6000_expand_builtin): Adjust call.
30329
30330 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
30331
30332 PR target/58115
30333 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
30334 * config/rs6000/rs6000.c: Include target-globals.h.
30335 (rs6000_set_current_function): Instead of doing target_reinit
30336 unconditionally, use save_target_globals_default_opts and
30337 restore_target_globals.
30338
30339 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
30340 FPSCR.
30341 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
30342 (rs6000_expand_builtin): Handle mffs and mtfsf.
30343 (rs6000_init_builtins): Define mffs and mtfsf.
30344 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
30345 (rs6000_mffs): New pattern.
30346 (rs6000_mtfsf): New pattern.
30347
30348 2014-01-11 Bin Cheng <bin.cheng@arm.com>
30349
30350 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
30351 Start narrowing with START. Apply candidate-use pair
30352 and check overall cost in narrowing.
30353 (iv_ca_prune): Pass new argument.
30354
30355 2014-01-10 Jeff Law <law@redhat.com>
30356
30357 PR middle-end/59743
30358 * ree.c (combine_reaching_defs): Ensure the defining statement
30359 occurs before the extension when optimizing extensions with
30360 different source and destination hard registers.
30361
30362 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
30363
30364 PR ipa/58585
30365 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
30366 vtables into the type inheritance graph.
30367
30368 2014-01-10 Jakub Jelinek <jakub@redhat.com>
30369
30370 PR rtl-optimization/59754
30371 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
30372 modes in the REGNO != REGNO case.
30373
30374 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30375
30376 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
30377
30378 2014-01-10 Jakub Jelinek <jakub@redhat.com>
30379
30380 PR tree-optimization/59745
30381 * tree-predcom.c (tree_predictive_commoning_loop): Call
30382 free_affine_expand_cache if giving up because components is NULL.
30383
30384 * target-globals.c (save_target_globals): Allocate < 4KB structs using
30385 GC in payload of target_globals struct instead of allocating them on
30386 the heap and the larger structs separately using GC.
30387 * target-globals.h (struct target_globals): Make regs, hard_regs,
30388 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
30389 of GTY((skip)) and change type to void *.
30390 (reset_target_globals): Cast loads from those fields to corresponding
30391 types.
30392
30393 2014-01-10 Steve Ellcey <sellcey@mips.com>
30394
30395 PR plugins/59335
30396 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
30397 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
30398 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
30399
30400 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
30401
30402 PR target/59744
30403 * aarch64-modes.def (CC_Zmode): New flags mode.
30404 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
30405 represents an equality.
30406 (aarch64_get_condition_code): Handle CC_Zmode.
30407 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
30408
30409 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30410
30411 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
30412 extraction in good case.
30413
30414 2014-01-10 Richard Biener <rguenther@suse.de>
30415
30416 PR tree-optimization/59374
30417 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
30418 checking after SLP discovery. Mark stmts not participating
30419 in any SLP instance properly.
30420
30421 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30422
30423 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
30424 when handling a SET rtx.
30425
30426 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30427
30428 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
30429 (cortex-a57): Likewise.
30430 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
30431
30432 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30433
30434 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
30435 non-iwmmxt builtins.
30436
30437 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
30438
30439 PR ipa/58252
30440 PR ipa/59226
30441 * ipa-devirt.c record_target_from_binfo): Take as argument
30442 stack of binfos and lookup matching one for virtual inheritance.
30443 (possible_polymorphic_call_targets_1): Update.
30444
30445 2014-01-10 Huacai Chen <chenhc@lemote.com>
30446
30447 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
30448 kernel strings for Loongson-2E/2F/3A.
30449
30450 2014-01-10 Jakub Jelinek <jakub@redhat.com>
30451
30452 PR middle-end/59670
30453 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
30454 is_gimple_call before calling gimple_call_internal_p.
30455
30456 2014-01-09 Steve Ellcey <sellcey@mips.com>
30457
30458 * Makefile.in (TREE_FLOW_H): Remove.
30459 (TREE_SSA_H): Add file names from tree-flow.h.
30460 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
30461 * tree.h: Remove tree-flow.h reference.
30462 * hash-table.h: Remove tree-flow.h reference.
30463 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
30464 reference with tree-ssa-loop.h.
30465
30466 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30467
30468 * doc/invoke.texi: Add -maltivec={be,le} options, and document
30469 default element-order behavior for -maltivec.
30470 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
30471 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
30472 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
30473 when targeting big endian, at least for now.
30474 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
30475
30476 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30477
30478 PR middle-end/47735
30479 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
30480 var satisfies use_register_for_decl, just take into account type
30481 alignment, rather than decl alignment.
30482
30483 PR tree-optimization/59622
30484 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
30485 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
30486 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
30487 Don't devirtualize for inplace at all. For targets.length () == 1,
30488 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
30489
30490 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
30491
30492 * config/i386/i386.md (cpu): Remove the unused btver1.
30493
30494 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
30495
30496 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
30497
30498 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30499
30500 PR target/58115
30501 * tree-core.h (struct target_globals): New forward declaration.
30502 (struct tree_target_option): Add globals field.
30503 * tree.h (TREE_TARGET_GLOBALS): Define.
30504 (prepare_target_option_nodes_for_pch): New prototype.
30505 * target-globals.h (struct target_globals): Define even if
30506 !SWITCHABLE_TARGET.
30507 * tree.c (prepare_target_option_node_for_pch,
30508 prepare_target_option_nodes_for_pch): New functions.
30509 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
30510 * config/i386/i386.c: Include target-globals.h.
30511 (ix86_set_current_function): Instead of doing target_reinit
30512 unconditionally, use save_target_globals_default_opts and
30513 restore_target_globals.
30514
30515 2014-01-09 Richard Biener <rguenther@suse.de>
30516
30517 PR tree-optimization/59715
30518 * tree-cfg.h (split_critical_edges): Declare.
30519 * tree-cfg.c (split_critical_edges): Export.
30520 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
30521
30522 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
30523
30524 * cfgexpand.c (expand_stack_vars): Optionally disable
30525 asan stack protection.
30526 (expand_used_vars): Likewise.
30527 (partition_stack_vars): Likewise.
30528 * asan.c (asan_emit_stack_protection): Optionally disable
30529 after return stack usage.
30530 (instrument_derefs): Optionally disable memory access instrumentation.
30531 (instrument_builtin_call): Likewise.
30532 (instrument_strlen_call): Likewise.
30533 (asan_protect_global): Optionally disable global variables protection.
30534 * doc/invoke.texi: Added doc for new options.
30535 * params.def: Added new options.
30536 * params.h: Likewise.
30537
30538 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30539
30540 PR rtl-optimization/59724
30541 * ifcvt.c (cond_exec_process_if_block): Don't call
30542 flow_find_head_matching_sequence with 0 longest_match.
30543 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
30544 non-active insns if !stop_after.
30545 (try_head_merge_bb): Revert 2014-01-07 changes.
30546
30547 2014-01-08 Jeff Law <law@redhat.com>
30548
30549 * ree.c (get_sub_rtx): New function, extracted from...
30550 (merge_def_and_ext): Here.
30551 (combine_reaching_defs): Use get_sub_rtx.
30552
30553 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
30554
30555 * cgraph.h (varpool_variable_node): Do not choke on null node.
30556
30557 2014-01-08 Catherine Moore <clm@codesourcery.com>
30558
30559 * config/mips/mips.md (simple_return): Attempt to use JRC
30560 for microMIPS.
30561 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
30562
30563 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
30564
30565 PR rtl-optimization/59137
30566 * reorg.c (steal_delay_list_from_target): Call update_block for
30567 elided insns.
30568 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
30569
30570 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30571
30572 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
30573 two duplicate entries.
30574
30575 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
30576
30577 Revert:
30578 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
30579
30580 * config/mips/mips.c (mips_truncated_op_cost): New function.
30581 (mips_rtx_costs): Adjust test for BADDU.
30582 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
30583
30584 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
30585
30586 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
30587 (*baddu_si): ...this new pattern.
30588
30589 2014-01-08 Jakub Jelinek <jakub@redhat.com>
30590
30591 PR ipa/59722
30592 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
30593
30594 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
30595
30596 PR middle-end/57748
30597 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
30598 inner_reference_p.
30599 (expand_expr, expand_normal): Adjust.
30600 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
30601 inner_reference_p. Use inner_reference_p to expand inner references.
30602 (store_expr): Adjust.
30603 * cfgexpand.c (expand_call_stmt): Adjust.
30604
30605 2014-01-08 Rong Xu <xur@google.com>
30606
30607 * gcov-io.c (gcov_var): Move from gcov-io.h.
30608 (gcov_position): Ditto.
30609 (gcov_is_error): Ditto.
30610 (gcov_rewrite): Ditto.
30611 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
30612 only part to libgcc/libgcov.h.
30613
30614 2014-01-08 Marek Polacek <polacek@redhat.com>
30615
30616 PR middle-end/59669
30617 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
30618
30619 2014-01-08 Marek Polacek <polacek@redhat.com>
30620
30621 PR sanitizer/59667
30622 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
30623
30624 2014-01-08 Jakub Jelinek <jakub@redhat.com>
30625
30626 PR rtl-optimization/59649
30627 * stor-layout.c (get_mode_bounds): For BImode return
30628 0 and STORE_FLAG_VALUE.
30629
30630 2014-01-08 Richard Biener <rguenther@suse.de>
30631
30632 PR middle-end/59630
30633 * gimple.h (is_gimple_builtin_call): Remove.
30634 (gimple_builtin_call_types_compatible_p): New.
30635 (gimple_call_builtin_p): New overload.
30636 * gimple.c (is_gimple_builtin_call): Remove.
30637 (validate_call): Rename to ...
30638 (gimple_builtin_call_types_compatible_p): ... this and export. Also
30639 check return types.
30640 (validate_type): New static function.
30641 (gimple_call_builtin_p): New overload and adjust.
30642 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
30643 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
30644 (gimple_fold_stmt_to_constant_1): Likewise.
30645 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
30646
30647 2014-01-08 Richard Biener <rguenther@suse.de>
30648
30649 PR middle-end/59471
30650 * gimplify.c (gimplify_expr): Gimplify register-register type
30651 VIEW_CONVERT_EXPRs to separate stmts.
30652
30653 2014-01-07 Jeff Law <law@redhat.com>
30654
30655 PR middle-end/53623
30656 * ree.c (combine_set_extension): Handle case where source
30657 and destination registers in an extension insn are different.
30658 (combine_reaching_defs): Allow source and destination registers
30659 in extension to be different under limited circumstances.
30660 (add_removable_extension): Remove restriction that the
30661 source and destination registers in the extension are the same.
30662 (find_and_remove_re): Emit a copy from the extension's
30663 destination to its source after the defining insn if
30664 the source and destination registers are different.
30665
30666 PR middle-end/59285
30667 * ifcvt.c (merge_if_block): If we are merging a block with more than
30668 one successor with a block with no successors, remove any BARRIER
30669 after the second block.
30670
30671 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
30672
30673 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
30674
30675 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
30676
30677 PR target/59652
30678 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
30679 for 14-bit register offsets when INT14_OK_STRICT is false.
30680
30681 2014-01-07 Roland Stigge <stigge@antcom.de>
30682 Michael Meissner <meissner@linux.vnet.ibm.com>
30683
30684 PR 57386/target
30685 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
30686 Only check TFmode for SPE constants. Don't check TImode or TDmode.
30687
30688 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
30689
30690 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
30691 -mcpu.
30692
30693 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
30694
30695 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
30696 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
30697 rtx is const0_rtx or not.
30698
30699 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
30700
30701 PR target/58115
30702 * target-globals.c (save_target_globals): Remove this_fn_optab
30703 handling.
30704 * toplev.c: Include optabs.h.
30705 (target_reinit): Temporarily restore the global options if another
30706 set of options are in force.
30707
30708 2014-01-07 Jakub Jelinek <jakub@redhat.com>
30709
30710 PR rtl-optimization/58668
30711 * cfgcleanup.c (flow_find_cross_jump): Don't count
30712 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
30713 to determine what is counted.
30714 (flow_find_head_matching_sequence): Use active_insn_p to determine
30715 what is counted.
30716 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
30717 counting change.
30718 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
30719 determine what is counted.
30720
30721 PR tree-optimization/59643
30722 * tree-predcom.c (split_data_refs_to_components): If one dr is
30723 read and one write, determine_offset fails and the write isn't
30724 in the bad component, just put the read into the bad component.
30725
30726 2014-01-07 Mike Stump <mikestump@comcast.net>
30727 Jakub Jelinek <jakub@redhat.com>
30728
30729 PR pch/59436
30730 * tree-core.h (struct tree_optimization_option): Change optabs
30731 type from unsigned char * to void *.
30732 * optabs.c (init_tree_optimization_optabs): Adjust
30733 TREE_OPTIMIZATION_OPTABS initialization.
30734
30735 2014-01-06 Jakub Jelinek <jakub@redhat.com>
30736
30737 PR target/59644
30738 * config/i386/i386.h (struct machine_function): Add
30739 no_drap_save_restore field.
30740 * config/i386/i386.c (ix86_save_reg): Use
30741 !cfun->machine->no_drap_save_restore instead of
30742 crtl->stack_realign_needed.
30743 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
30744 this function clears frame_pointer_needed. Set
30745 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
30746 and DRAP reg is needed.
30747
30748 2014-01-06 Marek Polacek <polacek@redhat.com>
30749
30750 PR c/57773
30751 * doc/implement-c.texi: Mention that other integer types are
30752 permitted as bit-field types in strictly conforming mode.
30753
30754 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
30755
30756 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
30757 is newly allocated.
30758
30759 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
30760
30761 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
30762
30763 2014-01-06 Martin Jambor <mjambor@suse.cz>
30764
30765 PR ipa/59008
30766 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
30767 to int.
30768 * ipa-prop.c (ipa_print_node_params): Fix indentation.
30769
30770 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
30771
30772 PR debug/59350
30773 PR debug/59510
30774 * var-tracking.c (add_stores): Preserve the value of the source even if
30775 we don't record the store.
30776
30777 2014-01-06 Terry Guo <terry.guo@arm.com>
30778
30779 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
30780
30781 2014-01-05 Iain Sandoe <iain@codesourcery.com>
30782
30783 PR bootstrap/59541
30784 * config/darwin.c (darwin_function_section): Adjust return values to
30785 correspond to optimisation changes made in r206070.
30786
30787 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
30788
30789 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
30790 from prefetch_block tune setting.
30791 (nocona_cost): Correct size of prefetch block to 64.
30792
30793 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
30794
30795 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
30796 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
30797 used to save the static chain register in the computation of the offset
30798 from which the FP registers need to be restored.
30799
30800 2014-01-04 Jakub Jelinek <jakub@redhat.com>
30801
30802 PR tree-optimization/59519
30803 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
30804 ICE if get_current_def (current_new_name) is already non-NULL, as long
30805 as it is a phi result of some other phi in *new_exit_bb that has
30806 the same argument.
30807
30808 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
30809 or vmovdqu* for misaligned_operand.
30810 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
30811 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
30812 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
30813 aligned_mem for AVX512F masked aligned load and store builtins and for
30814 non-temporal moves.
30815
30816 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
30817
30818 PR tree-optimization/59651
30819 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
30820 Address range for negative step should be added by TYPE_SIZE_UNIT.
30821
30822 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
30823
30824 * config/m68k/m68k.c (handle_move_double): Handle pushes with
30825 overlapping registers also for registers other than the stack pointer.
30826
30827 2014-01-03 Marek Polacek <polacek@redhat.com>
30828
30829 PR other/59661
30830 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
30831 __builtin_FILE.
30832
30833 2014-01-03 Jakub Jelinek <jakub@redhat.com>
30834
30835 PR target/59625
30836 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
30837 asm goto as jump.
30838
30839 * config/i386/i386.md (MODE_SIZE): New mode attribute.
30840 (push splitter): Use <P:MODE_SIZE> instead of
30841 GET_MODE_SIZE (<P:MODE>mode).
30842 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
30843 (mov -1, reg peephole2): Likewise.
30844 * config/i386/sse.md (*mov<mode>_internal,
30845 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
30846 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
30847 *<code><mode>3, *andnot<mode>3<mask_name>,
30848 <mask_codefor><code><mode>3<mask_name>): Likewise.
30849 * config/i386/subst.md (mask_mode512bit_condition,
30850 sd_mask_mode512bit_condition): Likewise.
30851
30852 2014-01-02 Xinliang David Li <davidxl@google.com>
30853
30854 PR tree-optimization/59303
30855 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
30856 (dump_predicates): Better output format.
30857 (pred_equal_p): New function.
30858 (is_neq_relop_p): Ditto.
30859 (is_neq_zero_form_p): Ditto.
30860 (pred_expr_equal_p): Ditto.
30861 (pred_neg_p): Ditto.
30862 (simplify_pred): Ditto.
30863 (simplify_preds_2): Ditto.
30864 (simplify_preds_3): Ditto.
30865 (simplify_preds_4): Ditto.
30866 (simplify_preds): Ditto.
30867 (push_pred): Ditto.
30868 (push_to_worklist): Ditto.
30869 (get_pred_info_from_cmp): Ditto.
30870 (is_degenerated_phi): Ditto.
30871 (normalize_one_pred_1): Ditto.
30872 (normalize_one_pred): Ditto.
30873 (normalize_one_pred_chain): Ditto.
30874 (normalize_preds): Ditto.
30875 (normalize_cond_1): Remove function.
30876 (normalize_cond): Ditto.
30877 (is_gcond_subset_of): Ditto.
30878 (is_subset_of_any): Ditto.
30879 (is_or_set_subset_of): Ditto.
30880 (is_and_set_subset_of): Ditto.
30881 (is_norm_cond_subset_of): Ditto.
30882 (pred_chain_length_cmp): Ditto.
30883 (convert_control_dep_chain_into_preds): Type change.
30884 (find_predicates): Ditto.
30885 (find_def_preds): Ditto.
30886 (destroy_predicates_vecs): Ditto.
30887 (find_matching_predicates_in_rest_chains): Ditto.
30888 (use_pred_not_overlap_with_undef_path_pred): Ditto.
30889 (is_pred_expr_subset): Ditto.
30890 (is_pred_chain_subset_of): Ditto.
30891 (is_included_in): Ditto.
30892 (is_superset_of): Ditto.
30893
30894 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
30895
30896 Update copyright years.
30897
30898 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
30899
30900 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
30901 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
30902 config/arc/arc.md, config/arc/arc.opt,
30903 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
30904 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
30905 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
30906 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
30907 config/linux-protos.h, config/linux.c, config/winnt-c.c,
30908 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
30909 vtable-verify.c, vtable-verify.h: Use the standard form for the
30910 copyright notice.
30911
30912 2014-01-02 Tobias Burnus <burnus@net-b.de>
30913
30914 * gcc.c (process_command): Update copyright notice dates.
30915 * gcov-dump.c: Ditto.
30916 * gcov.c: Ditto.
30917 * doc/cpp.texi: Bump @copying's copyright year.
30918 * doc/cppinternals.texi: Ditto.
30919 * doc/gcc.texi: Ditto.
30920 * doc/gccint.texi: Ditto.
30921 * doc/gcov.texi: Ditto.
30922 * doc/install.texi: Ditto.
30923 * doc/invoke.texi: Ditto.
30924
30925 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
30926
30927 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
30928
30929 2014-01-01 Jakub Jelinek <jakub@redhat.com>
30930
30931 * config/i386/sse.md (*mov<mode>_internal): Guard
30932 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
30933
30934 PR rtl-optimization/59647
30935 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
30936 new_rtx into UNSIGNED_FLOAT rtxes.
30937 \f
30938 Copyright (C) 2014 Free Software Foundation, Inc.
30939
30940 Copying and distribution of this file, with or without modification,
30941 are permitted in any medium without royalty provided the copyright
30942 notice and this notice are preserved.