tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter important_candidates.
[gcc.git] / gcc / ChangeLog
1 2014-08-28 Bin Cheng <bin.cheng@arm.com>
2
3 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
4 important_candidates. Consider all important candidates if
5 IVS doesn't give any result. Remove check on ivs->upto.
6 (try_add_cand_for): Call iv_ca_add_use only once.
7
8 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
9 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10 Anna Tikhonova <anna.tikhonova@intel.com>
11 Ilya Tocar <ilya.tocar@intel.com>
12 Andrey Turetskiy <andrey.turetskiy@intel.com>
13 Ilya Verbin <ilya.verbin@intel.com>
14 Kirill Yukhin <kirill.yukhin@intel.com>
15 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16
17 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
18 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
19 masking.
20 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
21 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
22 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
23 (define_insn "*mul<mode>3"): Add EVEX version.
24
25 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
26 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
27 Anna Tikhonova <anna.tikhonova@intel.com>
28 Ilya Tocar <ilya.tocar@intel.com>
29 Andrey Turetskiy <andrey.turetskiy@intel.com>
30 Ilya Verbin <ilya.verbin@intel.com>
31 Kirill Yukhin <kirill.yukhin@intel.com>
32 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
33
34 * config/i386/sse.md
35 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
36 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
37 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
38 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
39 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
40 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
41 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
42 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
43 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
44 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
45 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
46 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
47 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
48 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
49 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
50 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
51
52 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
53 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
54 Anna Tikhonova <anna.tikhonova@intel.com>
55 Ilya Tocar <ilya.tocar@intel.com>
56 Andrey Turetskiy <andrey.turetskiy@intel.com>
57 Ilya Verbin <ilya.verbin@intel.com>
58 Kirill Yukhin <kirill.yukhin@intel.com>
59 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
60
61 * config/i386/sse.md
62 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
63 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
64 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
65
66 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
67 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
68 Anna Tikhonova <anna.tikhonova@intel.com>
69 Ilya Tocar <ilya.tocar@intel.com>
70 Andrey Turetskiy <andrey.turetskiy@intel.com>
71 Ilya Verbin <ilya.verbin@intel.com>
72 Kirill Yukhin <kirill.yukhin@intel.com>
73 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
74
75 * config/i386/sse.md
76 (define_mode_iterator VI128_256): New.
77 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
78
79 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
80 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
81 Anna Tikhonova <anna.tikhonova@intel.com>
82 Ilya Tocar <ilya.tocar@intel.com>
83 Andrey Turetskiy <andrey.turetskiy@intel.com>
84 Ilya Verbin <ilya.verbin@intel.com>
85 Kirill Yukhin <kirill.yukhin@intel.com>
86 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
87
88 * config/i386/sse.md
89 (define_mode_iterator VI8_256_512): New.
90 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
91 Ditto.
92 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
93 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
94 Ditto.
95 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
96
97 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
98
99 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
100 pointer to the cumulative reloc value and return the value for
101 this reloc instead.
102 (compute_reloc_for_rtx): Take a const_rtx. Call
103 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
104 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
105 for_each_rtx for the CONST case.
106
107 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
108
109 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
110 (mark_constants_in_pattern): ...this new function to iterate over
111 all the subrtxes.
112 (mark_constants): Update accordingly.
113
114 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
115
116 * varasm.c: Include rtl-iter.h.
117 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
118 Remove the pointer to the cumulative hashval_t and just return
119 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
120 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
121 Accumulate the hashval_ts here instead of const_rtx_hash_1.
122
123 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
124
125 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
126 Give real type of data parameter. Remove return value.
127 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
128 to iterate over subrtxes.
129
130 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
131
132 * var-tracking.c (use_narrower_mode_test): Turn from being a
133 for_each_rtx callback to being a function that examines each
134 subrtx itself.
135 (adjust_mems): Update accordingly.
136
137 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
138
139 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
140 callback to being a function that examines each subrtx itself.
141 Remove handling of null rtxes.
142 (add_uses): Update accordingly.
143
144 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
145
146 * var-tracking.c: Include rtl-iter.h.
147 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
148 to being a function that examines each subrtx itself.
149 (use_type): Update accordingly.
150
151 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
152
153 * store-motion.c: Include rtl-iter.h.
154 (extract_mentioned_regs_1): Delete.
155 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
156 for_each_rtx to iterate over subrtxes.
157
158 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
159
160 * sel-sched.c: Include rtl-iter.h
161 (count_occurrences_1): Delete.
162 (count_occurrences_equiv): Turn rtxes into const_rtxes.
163 Use FOR_EACH_SUBRTX rather than for_each_rtx.
164
165 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
166
167 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
168 * rtlanal.c (tls_referenced_p_1): Delete.
169 (tls_referenced_p): Take a const_rtx rather than an rtx.
170 Use FOR_EACH_SUBRTX rather than for_each_rtx.
171
172 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
173
174 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
175 (for_each_inc_dec): Take an rtx rather than an rtx *.
176 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
177 (cselib_record_sets): Likewise.
178 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
179 (check_for_inc_dec): Likewise.
180 * rtlanal.c (for_each_inc_dec_ops): Delete.
181 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
182 rather than a pointer to the memory address. Replace
183 for_each_inc_dec_ops argument with separate function and data
184 arguments. Abort on non-autoinc addresses.
185 (for_each_inc_dec_find_mem): Delete.
186 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
187 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
188
189 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
190
191 * rtl.h (find_all_hard_regs): Declare.
192 * rtlanal.c (find_all_hard_regs): New function.
193 (record_hard_reg_uses_1): Delete.
194 (record_hard_reg_uses): Use find_all_hard_regs.
195
196 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
197
198 * rtl.h (replace_label_data): Delete.
199 (replace_label): Take the old label, new label and update-nuses flag
200 as direct arguments. Return void.
201 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
202 * rtlanal.c (replace_label): Update interface as above. Handle
203 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
204 iterator. Use FOR_EACH_SUBRTX_PTR.
205
206 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
207
208 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
209 with const_rtx parameters.
210 * varasm.c (get_pool_constant): Likewise.
211 * rtlanal.c (rtx_referenced_p_1): Delete.
212 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
213 Assert that the rtx we're looking for is nonnull. Allow searches
214 for constant pool SYMBOL_REFs.
215
216 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
217
218 * reload1.c: Include rtl-iter.h.
219 (note_reg_elim_costly): Turn from being a for_each_rtx callback
220 to being a function that examines each subrtx itself.
221 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
222
223 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
224
225 * regcprop.c (cprop_find_used_regs_1): Delete.
226 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
227
228 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
229
230 * regcprop.c: Include rtl-iter.h.
231 (kill_value): Take a const_rtx.
232 (kill_autoinc_value): Turn from being a for_each_rtx callback
233 to being a function that examines each subrtx itself.
234 (copyprop_hardreg_forward_1): Update accordingly.
235
236 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
237
238 * reg-stack.c: Include rtl-iter.h.
239 (subst_stack_regs_in_debug_insn): Delete.
240 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
241 instead of for_each_rtx.
242
243 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
244
245 * lower-subreg.c (find_decomposable_subregs): Turn from being
246 a for_each_rtx callback to being a function that examines each
247 subrtx itself. Remove handling of null rtxes.
248 (decompose_multiword_subregs): Update accordingly.
249
250 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
251
252 * lower-subreg.c (adjust_decomposed_uses): Delete.
253 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
254 Remove handling of null rtxes.
255
256 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
257
258 * lower-subreg.c: Include rtl-iter.h.
259 (resolve_subreg_use): Turn from being a for_each_rtx callback
260 to being a function that examines each subrtx itself. Remove
261 handling of null rtxes.
262 (resolve_reg_notes, resolve_simple_move): Update accordingly.
263 (decompose_multiword_subregs): Likewise.
264
265 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
266
267 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
268 to being a function that examines each subrtx itself.
269 (simplify_using_condition, simplify_using_initial_values): Update
270 accordingly.
271
272 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
273
274 * loop-iv.c: Include rtl-iter.h.
275 (find_single_def_src): New function.
276 (replace_single_def_regs): Turn from being a for_each_rtx callback
277 to being a function that examines each subrtx itself.
278 (replace_in_expr, simplify_using_initial_values): Update accordingly.
279
280 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
281
282 * jump.c (eh_returnjump_p_1): Delete.
283 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
284 Remove handling of null rtxes.
285
286 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
287
288 * jump.c: Include rtl-iter.h.
289 (returnjump_p_1): Delete.
290 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
291 Remove handling of null rtxes.
292
293 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
294
295 * ira.c: Include rtl-iter.h.
296 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
297 to being a function that examines each subrtx itself. Remove
298 handling of null rtxes.
299 (update_equiv_regs): Update call accordingly.
300
301 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
302
303 * fwprop.c: Include rtl-iter.h.
304 (varying_mem_p): Turn from being a for_each_rtx callback to being
305 a function that examines each subrtx itself.
306 (propagate_rtx): Update accordingly.
307
308 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
309
310 * function.c: Include rtl-iter.h
311 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
312 callback to being a function that examines each subrtx itself.
313 Return the changed flag.
314 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
315 (instantiate_virtual_regs): Update calls accordingly.
316
317 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
318
319 * final.c: Include rtl-iter.h.
320 (mark_symbol_ref_as_used): Delete.
321 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
322 for_each_rtx.
323
324 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
325
326 * emit-rtl.c: Include rtl-iter.h.
327 (find_auto_inc): Turn from being a for_each_rtx callback to being
328 a function that examines each subrtx itself. Assume the first operand
329 to an RTX_AUTOINC is the automodified register.
330 (try_split): Update call accordingly.
331
332 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
333
334 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
335 Return a bool, inverting the result so that 0/false means "not ok".
336 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
337 subrtxes of a CONST.
338 (mem_loc_descriptor, add_const_value_attribute)
339 (resolve_addr_in_expr): Update calls accordingly.
340
341 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
342
343 * dwarf2out.c: Include rtl-iter.h.
344 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
345 Remove unused data parameter. Return a bool, inverting the result
346 so that 0/false means "not ok".
347 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
348 instead of for_each_rtx.
349
350 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
351
352 * dse.c: Include rtl-iter.h.
353 (check_mem_read_rtx): Change void * parameter to real type.
354 Remove return value.
355 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
356 for_each_rtx. Don't handle null rtxes.
357
358 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
359
360 * df-problems.c: Include rtl-iter.h.
361 (find_memory): Turn from being a for_each_rtx callback to being
362 a function that examines each subrtx itself. Continue to look for
363 volatile references even after a nonvolatile one has been found.
364 (can_move_insns_across): Update calls accordingly.
365
366 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
367
368 * ddg.c (walk_mems_2, walk_mems_1): Delete.
369 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
370 to iterate over subrtxes. Return a bool rather than an int.
371
372 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
373
374 * ddg.c: Include rtl-iter.h.
375 (mark_mem_use_1): Rename to...
376 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
377 instead of for_each_rtx.
378 (mem_read_insn_p): Update accordingly.
379
380 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
381
382 * cse.c (change_cc_mode_args): Delete.
383 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
384 a function that examines each subrtx itself. Take the fields of
385 change_cc_mode_args as argument and return void.
386 (cse_change_cc_mode_insn): Update calls accordingly.
387
388 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
389
390 * cse.c (is_dead_reg): Change argument to const_rtx.
391 (dead_debug_insn_data): Delete.
392 (is_dead_debug_insn): Expand commentary. Turn from being a
393 for_each_rtx callback to being a function that examines
394 each subrtx itself. Take the fields of dead_debug_insn_data
395 as argument.
396 (delete_trivially_dead_insns): Update call accordingly.
397
398 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
399
400 * cse.c (check_for_label_ref): Move earlier in file. Turn from
401 being a for_each_rtx callback to being a function that examines
402 each subrtx itself.
403 (cse_extended_basic_block): Update call accordingly.
404
405 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
406
407 * cse.c (check_dependence_data): Delete.
408 (check_dependence): Change from being a for_each_rtx callback to being
409 a function that examines all subrtxes itself. Don't handle null rtxes.
410 (invalidate): Update call accordingly.
411
412 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
413
414 * cse.c: Include rtl-iter.h.
415 (approx_reg_cost_1): Delete.
416 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
417 Don't handle null rtxes.
418
419 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
420
421 * cfgcleanup.c: Include rtl-iter.h.
422 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
423 to being a function that examines each subrtx itself.
424 (thread_jump): Update accordingly.
425
426 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
427
428 * combine-stack-adj.c: Include rtl-iter.h.
429 (record_stack_refs_data): Delete.
430 (record_stack_refs): Turn from being a for_each_rtx callback
431 to being a function that examines each subrtx itself.
432 Take a pointer to the reflist. Invert sense of return value
433 so that true means success and false means failure. Don't
434 handle null rtxes.
435 (combine_stack_adjustments_for_block): Update accordingly.
436
437 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
438
439 * combine.c (record_truncated_value): Turn from being a for_each_rtx
440 callback to a function that takes an rtx and returns a bool
441 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
442 for_each_rtx.
443
444 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
445
446 * combine.c: Include rtl-iter.h.
447 (unmentioned_reg_p_1): Delete.
448 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
449 Don't handle null rtxes.
450
451 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
452
453 * calls.c: Include rtl-iter.h.
454 (internal_arg_pointer_based_exp_1): Delete.
455 (internal_arg_pointer_based_exp): Take a const_rtx.
456 Use FOR_EACH_SUBRTX to iterate over subrtxes.
457
458 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
459
460 * caller-save.c: Include rtl-iter.h.
461 (add_used_regs_1): Delete.
462 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
463 to iterate over subrtxes. Assert that any remaining pseudos
464 have been spilled.
465
466 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
467
468 * bt-load.c: Include rtl-iter.h.
469 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
470 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
471 to iterate over subrtxes.
472 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
473 find_btr_use rather than btr_referenced_p.
474
475 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
476
477 * alias.c: Include rtl-iter.h.
478 (refs_newer_value_cb): Delete.
479 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
480
481 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
482
483 * rtl-iter.h: New file.
484 * rtlanal.c: Include it.
485 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
486 (generic_subrtx_iterator <T>::add_single_to_queue)
487 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
488 (generic_subrtx_iterator <T>::free_array): New functions.
489 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
490 (generic_subrtx_iterator <const_rtx_accessor>)
491 (generic_subrtx_iterator <rtx_var_accessor>
492 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
493 (setup_reg_subrtx_bounds): New function.
494 (init_rtlanal): Call it.
495
496 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
497
498 PR target/62261
499 * config/sh/sh.md (ashlsi3): Handle negative shift count for
500 TARGET_SHMEDIA.
501 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
502
503 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
504
505 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
506
507 2014-08-27 David Malcolm <dmalcolm@redhat.com>
508
509 * rtl.h (JUMP_LABEL_AS_INSN): New.
510
511 2014-08-27 David Malcolm <dmalcolm@redhat.com>
512
513 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
514 rtx_expr_list **.
515 (alloc_EXPR_LIST): Strengthen return type from rtx to
516 rtx_expr_list *.
517 (remove_free_EXPR_LIST_node): Likewise for param.
518 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
519 from rtx to rtx_expr_list *.
520 * sched-int.h (struct deps_desc): Strengthen fields
521 "pending_read_mems" and "pending_write_mems" from rtx to
522 rtx_expr_list *.
523
524 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
525 rtx to rtx_expr_list *.
526 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
527 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
528 rtx_expr_list **.
529 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
530 from rtx to rtx_expr_list *.
531 * loop-iv.c (simplify_using_initial_values): Strengthen local
532 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
533 "pnote_next" from rtx * to rtx_expr_list **.
534 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
535 param "exprp" from rtx * to rtx_expr_list **.
536 (add_insn_mem_dependence): Strengthen local "mem_list" from
537 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
538 to rtx_expr_list *.
539 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
540 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
541 param "old_mems_p" from rtx * to rtx_expr_list **.
542 * var-tracking.c (struct adjust_mem_data): Strengthen field
543 "side_effects" from rtx to rtx_expr_list *.
544 (adjust_insn): Replace NULL_RTX with NULL when assigning to
545 rtx_expr_list *.
546 (prepare_call_arguments): Likewise.
547
548 2014-08-27 David Malcolm <dmalcolm@redhat.com>
549
550 * function.h (struct rtl_data): Strengthen field
551 "x_stack_slot_list" from rtx to rtx_expr_list *.
552
553 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
554 when assigning to stack_slot_list.
555
556 2014-08-27 David Malcolm <dmalcolm@redhat.com>
557
558 * function.h (struct rtl_data): Strengthen field
559 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
560 * rtl.h (remove_node_from_expr_list): Strengthen second param from
561 rtx * to rtx_expr_list **.
562
563 * cfgbuild.c (make_edges): In loop over
564 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
565 rtx_expr_list *, and use methods of the latter class to clarify
566 the code.
567 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
568 rtx_expr_list *, and use methods of the latter class to clarify
569 the code.
570 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
571 * reload1.c (set_initial_label_offsets): Likewise for local "x".
572 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
573 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
574 to rtx_expr_list *. Use methods of the latter class to clarify
575 the code.
576
577 2014-08-27 David Malcolm <dmalcolm@redhat.com>
578
579 * function.h (struct expr_status): Strengthen field
580 "x_forced_labels" from rtx to rtx_expr_list *.
581
582 * cfgbuild.c (make_edges): Split local "x" into two locals,
583 strengthening one from rtx to rtx_expr_list *, and using methods
584 of said class.
585 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
586 loop over forced_labels, introduce strengthen it from rtx to
587 rtx_expr_list *, using methods to clarify the code.
588 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
589 to rtx_expr_list *, using methods of said class to clarify the
590 code.
591 * reload1.c (set_initial_label_offsets): Split local "x" into two
592 per-loop variables, strengthening the first from rtx to
593 rtx_expr_list * and using methods.
594
595 2014-08-27 David Malcolm <dmalcolm@redhat.com>
596
597 * coretypes.h (class rtx_expr_list): Add forward declaration.
598 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
599 * gengenrtl.c (special_rtx): Add EXPR_LIST.
600 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
601 invariant: GET_CODE (X) == EXPR_LIST.
602 (is_a_helper <rtx_expr_list *>::test): New.
603 (rtx_expr_list::next): New.
604 (rtx_expr_list::element): New.
605 (gen_rtx_EXPR_LIST): New.
606
607 2014-08-27 David Malcolm <dmalcolm@redhat.com>
608
609 * varasm.c (mark_constants): Convert a GET_CODE check into a
610 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
611 Use methods of rtx_sequence to clarify the code.
612
613 2014-08-27 David Malcolm <dmalcolm@redhat.com>
614
615 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
616 local "seq" via a checked cast, and use methods of rtx_sequence
617 to simplify the code.
618
619 2014-08-27 David Malcolm <dmalcolm@redhat.com>
620
621 * resource.c (mark_referenced_resources): Strengthen local
622 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
623 using methods of rtx_sequence to clarify the code.
624 (find_dead_or_set_registers): Within the switch statement, convert
625 a GET_CODE check to a dyn_cast, introducing local "seq". Within
626 the JUMP_P handling, introduce another local "seq", adding a
627 checked cast to rtx_sequence *. In both cases, use methods of
628 rtx_sequence to clarify the code.
629 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
630 via a checked cast, and use methods of rtx_sequence to simplify
631 the code.
632
633 2014-08-27 David Malcolm <dmalcolm@redhat.com>
634
635 * reorg.c (redundant_insn): In two places in the function, replace
636 a check of GET_CODE with a dyn_cast, introducing local "seq", and
637 usings methods of rtx_sequence to clarify the code.
638
639 2014-08-27 David Malcolm <dmalcolm@redhat.com>
640
641 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
642 local "seq" with a checked cast, and use methods of rtx_sequence
643 to clarify the code.
644
645 2014-08-27 David Malcolm <dmalcolm@redhat.com>
646
647 * function.c (contains): Introduce local "seq" for PATTERN (insn),
648 with a checked cast, in the region for where we know it's a
649 SEQUENCE. Use methods of rtx_sequence.
650
651 2014-08-27 David Malcolm <dmalcolm@redhat.com>
652
653 * final.c (get_attr_length_1): Replace GET_CODE check with a
654 dyn_cast, introducing local "seq" and the use of methods of
655 rtx_sequence.
656 (shorten_branches): Likewise, introducing local "body_seq".
657 Strengthen local "inner_insn" from rtx to rtx_insn *.
658 (reemit_insn_block_notes): Replace GET_CODE check with a
659 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
660 Use methods of rtx_sequence.
661 (final_scan_insn): Likewise, introducing local "seq" for when
662 "body" is known to be a SEQUENCE, using its methods.
663
664 2014-08-27 David Malcolm <dmalcolm@redhat.com>
665
666 * except.c (can_throw_external): Strengthen local "seq" from rtx
667 to rtx_sequence *. Use methods of rtx_sequence.
668 (insn_nothrow_p): Likewise.
669
670 2014-08-27 David Malcolm <dmalcolm@redhat.com>
671
672 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
673 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
674 Use methods of rtx_sequence.
675 (scan_trace): Likewise for local "pat".
676
677 2014-08-27 David Malcolm <dmalcolm@redhat.com>
678
679 * coretypes.h (class rtx_sequence): Add forward declaration.
680 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
681 invariant: GET_CODE (X) == SEQUENCE.
682 (is_a_helper <rtx_sequence *>::test): New.
683 (is_a_helper <const rtx_sequence *>::test): New.
684 (rtx_sequence::len): New.
685 (rtx_sequence::element): New.
686 (rtx_sequence::insn): New.
687
688 2014-08-27 David Malcolm <dmalcolm@redhat.com>
689
690 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
691 rtx_insn_list **.
692 (alloc_INSN_LIST): Strengthen return type from rtx to
693 rtx_insn_list *.
694 (copy_INSN_LIST): Likewise for return type and param.
695 (concat_INSN_LIST): Likewise for both params and return type.
696 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
697 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
698 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
699 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
700
701 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
702 "implicit_sets", "control_uses", "clobbers" from rtx to
703 rtx_insn_list *.
704 (struct deps_desc): Likewise for fields "pending_read_insns",
705 "pending_write_insns", "pending_jump_insns",
706 "last_pending_memory_flush", "last_function_call",
707 "last_function_call_may_noreturn", "sched_before_next_call",
708 "sched_before_next_jump".
709 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
710 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
711
712 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
713 from rtx to rtx_insn_list *.
714 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
715 rtx_insn_list *.
716
717 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
718 to rtx_insn_list **.
719 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
720 rtx_insn_list *.
721 (queue_insn): Likewise for local "link".
722 (struct haifa_saved_data): Strengthen field "insn_queue" from
723 rtx * to rtx_insn_list **.
724 (save_backtrack_point): Update allocation of save->insn_queue to
725 reflect the strengthening of elements from rtx to rtx_insn_list *.
726 (queue_to_ready): Strengthen local "link" from rtx to
727 rtx_insn_list *; use methods "next" and "insn" when traversing the
728 list.
729 (early_queue_to_ready): Likewise for locals "link", "next_link",
730 "prev_link".
731 (schedule_block): Update allocation of insn_queue to reflect the
732 strengthening of elements from rtx to rtx_insn_list *. Strengthen
733 local "link" from rtx to rtx_insn_list *, and use methods when
734 working it.
735 (add_to_speculative_block): Strengthen locals "twins" and
736 "next_node" from rtx to rtx_insn_list *, and use methods when
737 working with them. Strengthen local "twin" from rtx to
738 rtx_insn *, eliminating a checked cast.
739 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
740 from rtx to rtx_insn_list *, and use methods when working with
741 them.
742
743 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
744 from rtx to rtx_insn_list *, adding a checked cast.
745 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
746 rtx_insn_list **.
747 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
748 "newlink" from rtx to rtx_insn_list *. Strengthen local
749 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
750 from rtx to rtx_insn *.
751 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
752 from rtx to rtx_insn_list *. Use methods of the latter class.
753 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
754 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
755 (remove_free_INSN_LIST_node): Strengthen return type and local
756 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
757 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
758 rtx_insn_list *, using "insn" method.
759
760 * sched-deps.c (add_dependence_list): Strengthen param "list"
761 from rtx to rtx_insn_list *, and use methods when working with it.
762 (add_dependence_list_and_free): Strengthen param "listp" from
763 rtx * to rtx_insn_list **.
764 (remove_from_dependence_list): Strenghten param "listp" from rtx *
765 to rtx_insn_list **, and use methods when working with *listp.
766 (remove_from_both_dependence_lists): Strengthen param "listp" from
767 rtx * to rtx_insn_list **
768 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
769 to rtx_insn_list **. Eliminate local "link", in favor of two new
770 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
771 respectively.
772 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
773 by introducing local "cond_deps".
774 (remove_from_deps): Strengthen param "insn" from rtx to
775 rtx_insn *.
776
777 * sched-rgn.c (concat_insn_mem_list): Strengthen param
778 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
779 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
780 Use methods of rtx_insn_list.
781
782 * store-motion.c (struct st_expr): Strengthen fields
783 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
784 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
785 rtx_insn_list *.
786 (find_moveable_store): Split out "tmp" into multiple more-tightly
787 scoped locals. Use methods of rtx_insn_list *.
788 (compute_store_table): Strengthen local "tmp" from rtx to
789 rtx_insn *. Use methods of rtx_insn_list *.
790
791 2014-08-27 David Malcolm <dmalcolm@redhat.com>
792
793 * coretypes.h (class rtx_insn_list): Add forward declaration.
794 * rtl.h (class rtx_insn_list): New subclass of rtx_def
795 (is_a_helper <rtx_insn_list *>::test): New.
796 (rtx_insn_list::next): New.
797 (rtx_insn_list::insn): New.
798 (gen_rtx_INSN_LIST): Add prototype.
799 * emit-rtl.c (gen_rtx_INSN_LIST): New.
800 * gengenrtl.c (special_rtx): Add INSN_LIST.
801
802 2014-08-27 David Malcolm <dmalcolm@redhat.com>
803
804 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
805 "prev" from rtx to rtx_insn *.
806
807 2014-08-27 David Malcolm <dmalcolm@redhat.com>
808
809 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
810 functions. Require merely an rtx for now, not an rtx_insn *.
811 (BLOCK_FOR_INSN): Likewise.
812 (INSN_LOCATION): Likewise.
813 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
814
815 2014-08-27 David Malcolm <dmalcolm@redhat.com>
816
817 * rtl.h (PATTERN): Convert this macro into a pair of inline
818 functions, for now, requiring const_rtx and rtx.
819
820 2014-08-27 David Malcolm <dmalcolm@redhat.com>
821
822 * target.def (unwind_emit): Strengthen param "insn" from rtx to
823 rtx_insn *.
824 (final_postscan_insn): Likewise.
825 (adjust_cost): Likewise.
826 (adjust_priority): Likewise.
827 (variable_issue): Likewise.
828 (macro_fusion_pair_p): Likewise.
829 (dfa_post_cycle_insn): Likewise.
830 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
831 (first_cycle_multipass_issue): Likewise.
832 (dfa_new_cycle): Likewise.
833 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
834 (speculate_insn): Likewise for param "insn".
835 (gen_spec_check): Likewise for params "insn" and "label".
836 (get_insn_spec_ds): Likewise for param "insn".
837 (get_insn_checked_ds): Likewise.
838 (dispatch_do): Likewise.
839 (dispatch): Likewise.
840 (cannot_copy_insn_p): Likewise.
841 (invalid_within_doloop): Likewise.
842 (legitimate_combined_insn): Likewise.
843 (needed): Likewise.
844 (after): Likewise.
845
846 * doc/tm.texi: Automatically updated to reflect changes to
847 target.def.
848
849 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
850 working with insn.
851 (schedule_block): Likewise.
852 (sched_init): Likewise.
853 (sched_speculate_insn): Strengthen param "insn" from rtx to
854 rtx_insn *.
855 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
856 working with insn.
857 * hooks.c (hook_bool_rtx_true): Rename to...
858 hook_bool_rtx_insn_true): ...this, and strengthen first param from
859 rtx to rtx_insn *.
860 (hook_constcharptr_const_rtx_null): Rename to...
861 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
862 first param from const_rtx to const rtx_insn *.
863 (hook_bool_rtx_int_false): Rename to...
864 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
865 param from rtx to rtx_insn *.
866 (hook_void_rtx_int): Rename to...
867 (hook_void_rtx_insn_int): ...this, and strengthen first param from
868 rtx to rtx_insn *.
869
870 * hooks.h (hook_bool_rtx_true): Rename to...
871 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
872 rtx to rtx_insn *.
873 (hook_bool_rtx_int_false): Rename to...
874 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
875 param from rtx to rtx_insn *.
876 (hook_void_rtx_int): Rename to...
877 (hook_void_rtx_insn_int): ...this, and strengthen first param from
878 rtx to rtx_insn *.
879 (hook_constcharptr_const_rtx_null): Rename to...
880 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
881 first param from const_rtx to const rtx_insn *.
882
883 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
884 and local "prev" from rtx to rtx_insn *.
885
886 * sched-int.h (sched_speculate_insn): Strengthen first param from
887 rtx to rtx_insn *.
888
889 * sel-sched.c (create_speculation_check): Likewise for local "label".
890 * targhooks.c (default_invalid_within_doloop): Strengthen param
891 "insn" from const_rtx to const rtx_insn *.
892 * targhooks.h (default_invalid_within_doloop): Strengthen param
893 from const_rtx to const rtx_insn *.
894
895 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
896 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
897
898 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
899 "insn".
900 (arc_invalid_within_doloop): Likewise, with const.
901
902 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
903 (arm_cannot_copy_insn_p): Likewise for param "insn".
904 (arm_unwind_emit): Likewise.
905
906 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
907 "dep_insn".
908
909 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
910 (c6x_variable_issue): Likewise. Removed now-redundant checked
911 cast.
912 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
913
914 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
915 Likewise for param "insn".
916 (epiphany_mode_after): Likewise.
917 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
918 params "insn", "dep_insn".
919 (epiphany_mode_needed): Likewise for param "insn".
920 (epiphany_mode_after): Likewise.
921
922 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
923 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
924 (ix86_avx_u128_mode_needed): Likewise.
925 (ix86_i387_mode_needed): Likewise.
926 (ix86_mode_needed): Likewise.
927 (ix86_avx_u128_mode_after): Likewise.
928 (ix86_mode_after): Likewise.
929 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
930 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
931 (ix86_adjust_priority): Likewise for param "insn".
932 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
933 (do_dispatch): Likewise.
934 (has_dispatch): Likewise.
935 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
936
937 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
938 reflect renaming of default hook implementation from
939 hook_constcharptr_const_rtx_null to
940 hook_constcharptr_const_rtx_insn_null.
941 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
942 rtx to rtx_insn *.
943 (ia64_variable_issue): Likewise for param "insn".
944 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
945 (ia64_dfa_new_cycle): Likewise.
946 (ia64_get_insn_spec_ds): Likewise.
947 (ia64_get_insn_checked_ds): Likewise.
948 (ia64_speculate_insn): Likewise.
949 (ia64_gen_spec_check): Likewise for params "insn", "label".
950 (ia64_asm_unwind_emit): Likewise for param "insn".
951
952 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
953
954 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
955 "insn", "def_insn".
956 (m68k_sched_variable_issue): Likewise for param "insn".
957
958 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
959 "def_insn".
960
961 * config/microblaze/microblaze.c (microblaze_adjust_cost):
962 Likewise for params "insn", "dep".
963
964 * config/mips/mips.c (mips_adjust_cost): Likewise.
965 (mips_variable_issue): Likewise for param "insn".
966 (mips_final_postscan_insn): Likewise.
967
968 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
969 for params "insn", "dep".
970
971 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
972 "dep_insn".
973 (pa_adjust_priority): Likewise for param "insn".
974
975 * config/picochip/picochip.c (picochip_sched_adjust_cost):
976 Likewise for params "insn", "dep_insn".
977
978 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
979 param "insn".
980 (rs6000_variable_issue): Likewise.
981 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
982 (rs6000_debug_adjust_cost): Likewise.
983 (rs6000_adjust_priority): Likewise for param "insn".
984 (rs6000_use_sched_lookahead_guard): Likewise.
985 (get_next_active_insn): Likewise for return type and both params.
986 (redefine_groups): Likewise for params "prev_head_insn", "tail"
987 and locals "insn", "next_insn".
988 (pad_groups): Likewise.
989
990 * config/s390/s390.c (s390_adjust_priority): Likewise for param
991 "insn".
992 (s390_cannot_copy_insn_p): Likewise.
993 (s390_sched_variable_issue): Likewise for third param, eliminating
994 checked cast.
995 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
996 default hook implementation from hook_constcharptr_const_rtx_null
997 to hook_constcharptr_const_rtx_insn_null.
998
999 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
1000 from rtx to rtx_insn *.
1001 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
1002 (sh_variable_issue): Likewise for param "insn".
1003 (sh_dfa_new_cycle): Likewise.
1004 (sh_mode_needed): Likewise.
1005 (sh_mode_after): Likewise.
1006
1007 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
1008 params "insn", "dep_insn".
1009 (hypersparc_adjust_cost): Likewise.
1010 (sparc_adjust_cost): Likewise.
1011
1012 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
1013 param, eliminated checked cast.
1014 (spu_sched_adjust_cost): Likewise for first and third params.
1015
1016 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
1017 params "insn" and "dep_insn" from rtx to rtx_insn *.
1018
1019 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
1020
1021 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1022
1023 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
1024 (set_is_load_p): ...this, updating to work on a SET pattern rather
1025 than an insn.
1026 (is_store_insn): Rename to...
1027 (set_is_store_p): ...this, updating to work on a SET pattern
1028 rather than an insn.
1029 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
1030 top of function to where it is needed. Rewrite the bogus
1031 condition that checks for "insn" and "dep" being PARALLEL to
1032 instead use single_set, introducing locals "insn_set" and
1033 "dep_set". Given that we only ever returned "cost" for a non-pair
1034 of SETs, bail out early if we don't have a pair of SET.
1035 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
1036 use the new locals "insn_set" and "dep_set", and update calls to
1037 is_load_insn and is_store_insn to be calls to set_is_load_p and
1038 set_is_store_p.
1039
1040 2014-08-27 Guozhi Wei <carrot@google.com>
1041
1042 PR target/62262
1043 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
1044 amount before using it.
1045
1046 2014-08-27 Richard Biener <rguenther@suse.de>
1047
1048 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
1049 get_maxval_strlen inside a more useful API.
1050 (gimple_fold_builtin_with_strlen): Remove and fold into ...
1051 (gimple_fold_builtin): ... caller.
1052 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
1053 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
1054 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
1055 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
1056 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
1057 gimple_fold_builtin_sprintf): Adjust to compute maxval
1058 themselves.
1059
1060 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
1061
1062 PR other/62248
1063 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
1064
1065 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
1066 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1067 Anna Tikhonova <anna.tikhonova@intel.com>
1068 Ilya Tocar <ilya.tocar@intel.com>
1069 Andrey Turetskiy <andrey.turetskiy@intel.com>
1070 Ilya Verbin <ilya.verbin@intel.com>
1071 Kirill Yukhin <kirill.yukhin@intel.com>
1072 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1073
1074 * config/i386/sse.md
1075 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
1076 Use `concat_tg_mode' attribute to determine asm register size.
1077
1078 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
1079 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1080 Anna Tikhonova <anna.tikhonova@intel.com>
1081 Ilya Tocar <ilya.tocar@intel.com>
1082 Andrey Turetskiy <andrey.turetskiy@intel.com>
1083 Ilya Verbin <ilya.verbin@intel.com>
1084 Kirill Yukhin <kirill.yukhin@intel.com>
1085 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1086
1087 * config/i386/sse.md
1088 (define_mode_iterator VI48_AVX512VL): New.
1089 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
1090 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
1091 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
1092 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
1093 with VI1): Change mode iterator.
1094 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
1095 with VI_ULOADSTORE_BW_AVX512VL): New.
1096 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
1097 with VI_ULOADSTORE_F_AVX512VL): Ditto.
1098 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
1099 with VI1): Change mode iterator.
1100 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
1101 with VI_ULOADSTORE_BW_AVX512VL): New.
1102 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
1103 with VI_ULOADSTORE_F_AVX512VL): Ditto.
1104 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
1105 with VI1): Change mode iterator.
1106 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
1107 with VI_ULOADSTORE_BW_AVX512VL): New.
1108 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
1109 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
1110 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
1111 (define_insn "<avx512>_storedqu<mode>_mask" with
1112 VI48_AVX512VL): New.
1113 (define_insn "<avx512>_storedqu<mode>_mask" with
1114 VI12_AVX512VL): Ditto.
1115
1116 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
1117 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1118 Anna Tikhonova <anna.tikhonova@intel.com>
1119 Ilya Tocar <ilya.tocar@intel.com>
1120 Andrey Turetskiy <andrey.turetskiy@intel.com>
1121 Ilya Verbin <ilya.verbin@intel.com>
1122 Kirill Yukhin <kirill.yukhin@intel.com>
1123 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1124
1125 * config/i386/sse.md
1126 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
1127 (define_mode_iterator VI48_AVX512BW): New.
1128 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
1129 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
1130 with VI48_AVX2_48_AVX512F): New.
1131 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
1132 with VI2_AVX512VL): Ditto.
1133
1134 2014-08-27 Richard Biener <rguenther@suse.de>
1135
1136 PR middle-end/62239
1137 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
1138 (fold_builtin_3): Do not fold strcat_chk here.
1139 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
1140 from builtins.c.
1141 (gimple_fold_builtin): Fold strcat_chk here.
1142
1143 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
1144
1145 * dwarf2out.h (dwarf2out_decl): Remove prototype.
1146 * dwarf2out.c (dwarf2out_decl): Make static.
1147
1148 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
1149
1150 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
1151
1152 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1153
1154 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
1155 from rtx to rtx_insn *.
1156 (cselib_lookup_from_insn): Likewise for final param.
1157 (cselib_subst_to_values_from_insn): Likewise.
1158 (cselib_add_permanent_equiv): Likewise.
1159
1160 * cselib.c (cselib_current_insn): Likewise for this variable.
1161 (cselib_subst_to_values_from_insn): Likewise for param "insn".
1162 (cselib_lookup_from_insn): Likewise.
1163 (cselib_add_permanent_equiv): Likewise for param "insn" and local
1164 "save_cselib_current_insn".
1165 (cselib_process_insn): Replace use of NULL_RTX with NULL.
1166
1167 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
1168 from rtx to rtx_insn *.
1169
1170 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1171
1172 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
1173 rtx_insn *.
1174
1175 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1176
1177 * df.h (df_dump_insn_problem_function): Strengthen first param of
1178 this callback from const_rtx to const rtx_insn *.
1179 (struct df_insn_info): Strengthen field "insn" from rtx to
1180 rtx_insn *.
1181 (DF_REF_INSN): Eliminate this function, reinstating the older
1182 macro definition.
1183 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
1184 (df_reg_defined): Likewise.
1185 (df_find_use): Likewise.
1186 (df_reg_used): Likewise.
1187 (df_dump_insn_top): Strengthen param 1 from const_rtx to
1188 const rtx_insn *.
1189 (df_dump_insn_bottom): Likewise.
1190 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
1191 (df_insn_debug_regno): Likewise.
1192 (debug_df_insn): Likewise.
1193 (df_rd_simulate_one_insn): Likewise for param 2.
1194 (df_word_lr_simulate_defs): Likewise for param 1.
1195 (df_word_lr_simulate_uses): Likewise.
1196 (df_md_simulate_one_insn): Likewise for param 2.
1197 (df_simulate_find_noclobber_defs): Likewise for param 1.
1198 (df_simulate_find_defs): Likewise.
1199 (df_simulate_defs): Likewise.
1200 (df_simulate_uses): Likewise.
1201 (df_simulate_one_insn_backwards): Likewise for param 2.
1202 (df_simulate_one_insn_forwards): Likewise.
1203 (df_uses_create): Likewise for param 2.
1204 (df_insn_create_insn_record): Likewise for param 1.
1205 (df_insn_delete): Likewise.
1206 (df_insn_rescan): Likewise.
1207 (df_insn_rescan_debug_internal): Likewise.
1208 (df_insn_change_bb): Likewise.
1209 (df_notes_rescan): Likewise.
1210 * rtl.h (remove_death): Likewise for param 2.
1211 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
1212 const rtx_insn *.
1213 * sched-int.h (reemit_notes): Strengthen param from rtx to
1214 rtx_insn *.
1215 * valtrack.h (propagate_for_debug): Likewise for param 1.
1216
1217 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
1218 local "tmp_rtx" from const_rtx to const rtx_insn *.
1219 * combine.c (remove_death): Strengthen param "insn" from rtx to
1220 rtx_insn *.
1221 (move_deaths): Likewise for local "where_dead".
1222 * cse.c (delete_trivially_dead_insns): Introduce local
1223 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
1224 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
1225 rtx_insn *.
1226 (df_reg_defined): Likewise.
1227 (df_find_use): Likewise.
1228 (df_reg_used): Likewise.
1229 (df_dump_insn_problem_data): Strengthen param "insn" from
1230 const_rtx to const rtx_insn *.
1231 (df_dump_insn_top): Likewise.
1232 (df_dump_insn_bottom): Likewise.
1233 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
1234 (df_insn_debug_regno): Likewise.
1235 (debug_df_insn): Likewise.
1236 (DF_REF_INSN): Delete.
1237 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
1238 from rtx to rtx_insn *.
1239 (df_chain_insn_top_dump): Strengthen param "insn" from
1240 const_rtx to const rtx_insn *.
1241 (df_chain_insn_bottom_dump): Likewise.
1242 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
1243 rtx_insn *.
1244 (df_word_lr_simulate_uses): Likewise.
1245 (df_print_note): Likewise.
1246 (df_remove_dead_and_unused_notes): Likewise.
1247 (df_set_unused_notes_for_mw): Likewise.
1248 (df_set_dead_notes_for_mw): Likewise.
1249 (df_create_unused_note): Likewise.
1250 (df_simulate_find_defs): Likewise.
1251 (df_simulate_find_uses): Likewise.
1252 (df_simulate_find_noclobber_defs): Likewise.
1253 (df_simulate_defs): Likewise.
1254 (df_simulate_uses): Likewise.
1255 (df_simulate_one_insn_backwards): Likewise.
1256 (df_simulate_one_insn_forwards): Likewise.
1257 (df_md_simulate_one_insn): Likewise.
1258 * df-scan.c (df_uses_create): Likewise.
1259 (df_insn_create_insn_record): Likewise.
1260 (df_insn_delete): Likewise.
1261 (df_insn_rescan): Likewise.
1262 (df_insn_rescan_debug_internal): Likewise.
1263 (df_insn_change_bb): Likewise.
1264 (df_notes_rescan): Likewise.
1265 (df_refs_add_to_chains): Likewise.
1266 (df_insn_refs_verify): Likewise.
1267 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
1268 when invoking df_insn_delete.
1269 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
1270 (set_unique_reg_note): Add checked cast.
1271 * final.c (cleanup_subreg_operands): Likewise.
1272 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
1273 "insn" from rtx to rtx_insn *.
1274 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
1275 "last" from rtx to rtx_insn *.
1276 * ira-emit.c (change_regs_in_insn): New function.
1277 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
1278 Invoke change_regs_in_insn rather than change_regs.
1279 * ira.c (update_equiv_regs): Strengthen locals "insn",
1280 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
1281 for_each_rtx_in_insn rather than for_each_rtx.
1282 * recog.c (confirm_change_group): Add checked casts.
1283 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
1284 Add checked cast.
1285 (peep2_fill_buffer): Add checked cast.
1286 * rtlanal.c (remove_note): Likewise.
1287 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
1288 locals "next" "end" from rtx to rtx_insn *.
1289
1290 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1291
1292 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
1293 to rtx_insn *.
1294 (struct reg_use_data): Likewise for field "insn".
1295 (insn_cost): Likewise for param.
1296 (real_insn_for_shadow): Likewise for return type and param.
1297 (increase_insn_priority): Likewise for param 1.
1298 (debug_dependencies): Likewise for both params.
1299
1300 * haifa-sched.c (insn_delay): Likewise for param "insn".
1301 (real_insn_for_shadow): Likewise for return type and param "insn".
1302 (update_insn_after_change): Likewise for param "insn".
1303 (recompute_todo_spec): Likewise for param "next" and locals "pro",
1304 "other".
1305 (insn_cost): Likewise for param "insn".
1306 (increase_insn_priority): Likewise.
1307 (calculate_reg_deaths): Likewise.
1308 (setup_insn_reg_pressure_info): Likewise.
1309 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
1310 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
1311 (model_recompute): Likewise.
1312 (must_restore_pattern_p): Likewise for param "next".
1313 (model_excess_cost): Likewise for param "insn".
1314 (queue_remove): Likewise.
1315 (adjust_priority): Likewise for param "prev".
1316 (update_register_pressure): Likewise for param "insn".
1317 (setup_insn_max_reg_pressure): Likewise for local "insn".
1318 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
1319 (model_add_to_schedule): Likewise.
1320 (model_reset_queue_indices): Likewise for local "insn".
1321 (unschedule_insns_until): Strengthen local "recompute_vec" from
1322 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
1323 "con" from rtx to rtx_insn *.
1324 (restore_last_backtrack_point): Likewise for both locals "x". Add
1325 checked casts.
1326 (estimate_insn_tick): Likewise for param "insn".
1327 (commit_schedule): Likewise for params "prev_head", "tail" and
1328 local "x".
1329 (verify_shadows): Likewise for locals "i1", "i2".
1330 (dump_insn_stream): Likewise for params "head", "tail" and locals
1331 "next_tail", "insn".
1332 (schedule_block): Likewise for locals "insn", "x". Add a checked
1333 cast.
1334 (fix_inter_tick): Likewise for params "head", "tail".
1335 (create_check_block_twin): Likewise for local "jump".
1336 (haifa_change_pattern): Likewise for param "insn".
1337 (haifa_speculate_insn): Likewise.
1338 (dump_new_block_header): Likewise for params "head", "tail".
1339 (fix_jump_move): Likewise for param "jump".
1340 (move_block_after_check): Likewise.
1341 (sched_init_insn_luid): Likewise for param "insn".
1342 (sched_init_luids): Likewise for local "insn".
1343 (insn_luid): Likewise for param "insn".
1344 (init_h_i_d): Likewise.
1345 (haifa_init_h_i_d): Likewise for local "insn".
1346 (haifa_init_insn): Likewise for param "insn".
1347 * sched-deps.c (add_dependence): Likewise for local "real_pro",
1348 "other".
1349 (create_insn_reg_use): Likewise for param "insn".
1350 (setup_insn_reg_uses): Likewise. Add a checked cast.
1351 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
1352 "tail" from rtx to rtx_insn *.
1353 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
1354 "insn", "next_tail".
1355
1356 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1357
1358 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
1359 from rtx to rtx_insn *.
1360 (model_add_to_schedule): Likewise for locals "start", "end",
1361 "iter".
1362
1363 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1364
1365 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
1366 rtx_insn *.
1367 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
1368 "to" and locals "insn", "next", "copy". Remove now-redundant
1369 checked cast.
1370
1371 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1372
1373 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
1374 rtx_insn * and param 4 from rtx * to rtx_insn **.
1375 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
1376 param 2 from rtx * to rtx_insn **.
1377
1378 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
1379 rtx_insn * and final param from rtx * to rtx_insn **.
1380
1381 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
1382 from rtx to rtx_insn *.
1383 (try_head_merge_bb): Likewise for both locals named "move_upto".
1384 * df-problems.c (can_move_insns_across): Likewise for params
1385 "from", "to", "across_from", "across_to" and locals "insn",
1386 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
1387 rtx_insn **.
1388 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
1389 from rtx to rtx_insn *.
1390 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
1391 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1392 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
1393 rtx_insn *.
1394 (noce_try_abs): Likewise.
1395 (noce_get_condition): Likewise for param "jump". Strengthen param
1396 "earliest" from rtx * to rtx_insn **.
1397 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
1398 rtx_insn *.
1399 (find_cond_trap): Likewise.
1400 (dead_or_predicable): Likewise for local "earliest".
1401 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
1402 checked cast.
1403 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
1404 and local "prev". Strengthen param "earliest" from rtx * to
1405 rtx_insn **.
1406 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
1407 Strengthen param "earliest" from rtx * to rtx_insn **.
1408
1409 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1410
1411 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
1412 "to" and local "insn" from rtx to rtx_insn *.
1413
1414 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1415
1416 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
1417 from rtx to rtx_insn *.
1418 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
1419 (code_motion_path_driver): Likewise for local "last_insn".
1420 (simplify_changed_insns): Likewise for local "insn".
1421
1422 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1423
1424 * rtl.h (push_to_sequence): Strengthen param from rtx to
1425 rtx_insn *.
1426 (push_to_sequence2): Likewise for both params.
1427 (delete_insns_since): Likewise for param.
1428 (reorder_insns_nobb): Likewise for all three params.
1429 (set_new_first_and_last_insn): Likewise for both params.
1430
1431 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
1432 rtx_insn *. Remove now-redundant cast.
1433 (set_last_insn): Likewise.
1434
1435 * builtins.c (expand_builtin_return): Strengthen local
1436 "call_fusage" from rtx to rtx_insn *.
1437 * cfgrtl.c (create_basic_block_structure): Likewise for local
1438 "after".
1439 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
1440 "first", "last" and local "insn".
1441 (delete_insns_since): Likewise for param "from".
1442 (reorder_insns_nobb): Likewise for params "from", "to", "after"
1443 and local "x".
1444 (push_to_sequence): Likewise for param "first" and local "last".
1445 (push_to_sequence2): Likewise for params "first" and "last".
1446 * lra.c (emit_add3_insn): Likewise for local "last".
1447 (lra_emit_add): Likewise.
1448 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
1449 "last_insn".
1450 (process_address_1): Likewise for locals "insn", last".
1451 * modulo-sched.c (ps_first_note): Likewise for return type.
1452 * optabs.c (expand_binop_directly): Likewise for param "last".
1453
1454 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1455
1456 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
1457 to rtx_insn*.
1458 * emit-rtl.c (get_last_insn_anywhere): Likewise.
1459
1460 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1461
1462 * function.h (struct sequence_stack): Strengthen fields "first"
1463 and "last" from rtx to rtx_insn *.
1464 (struct emit_status): Likewise for fields "x_first_insn" and
1465 "x_last_insn".
1466
1467 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
1468 (set_first_insn): Add checked cast.
1469 (get_last_insn): Remove now-redundant checked cast.
1470 (set_last_insn): Add checked cast.
1471
1472 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
1473 "saved_first" and "saved_last" from rtx to rtx_insn *.
1474
1475 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1476
1477 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
1478 (unlink_insn_chain): Strengthen both params from rtx to
1479 rtx_insn *.
1480
1481 * cfgrtl.c (cfg_layout_function_header): Likewise for this
1482 variable.
1483 (unlink_insn_chain): Likewise for params "first" and "last".
1484 Remove now-redundant checked cast.
1485 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
1486 (fixup_reorder_chain): Strengthen local "insn" from rtx to
1487 rtx_insn *.
1488 * emit-rtl.c (link_insn_into_chain): Likewise for all three
1489 params.
1490 (add_insn): Likewise for param "insn" and local "prev".
1491 (add_insn_after_nobb): Likewise for both params and local "next".
1492 (add_insn_before_nobb): Likewise for both params and local "prev".
1493 (add_insn_after): Rename param "after" to "uncast_after",
1494 introducing local "after" with another checked cast.
1495 (add_insn_before): Rename params "insn" and "before", giving them
1496 "uncast_" prefixes, adding the old names back using checked casts.
1497 (emit_note_after): Likewise for param "after".
1498 (emit_note_before): Likewise for param "before".
1499 (emit_label): Add a checked cast.
1500
1501 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1502
1503 * cselib.h (cselib_record_sets_hook): Strengthen initial param
1504 "insn" from rtx to rtx_insn *.
1505
1506 * cselib.c (cselib_record_sets_hook): Likewise.
1507
1508 * var-tracking.c (add_with_sets): Likewise, renaming back from
1509 "uncast_insn" to "insn" and eliminating the checked cast from rtx
1510 to rtx_insn *.
1511
1512 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1513
1514 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
1515 and "header_" from rtx to rtx_insn *.
1516 (struct basic_block_d): Likewise for field "head_" within "x"
1517 field of union basic_block_il_dependent.
1518 (BB_HEAD): Drop function...
1519 (SET_BB_HEAD): ...and this function in favor of...
1520 (BB_HEAD): ...reinstate macro.
1521 (BB_END): Drop function...
1522 (SET_BB_END): ...and this function in favor of...
1523 (BB_END): ...reinstate macro.
1524 (BB_HEADER): Drop function...
1525 (SET_BB_HEADER): ...and this function in favor of...
1526 (BB_HEADER): ...reinstate macro.
1527
1528 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
1529 (fix_crossing_unconditional_branches): Likewise.
1530 * caller-save.c (save_call_clobbered_regs): Likewise.
1531 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
1532 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
1533 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1534 (merge_blocks_move_successor_nojumps): Likewise.
1535 (outgoing_edges_match): Update use of for_each_rtx to
1536 for_each_rtx_in_insn.
1537 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
1538 (expand_gimple_cond): Likewise.
1539 (expand_gimple_tailcall): Likewise.
1540 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
1541 SET_BB_END.
1542 (construct_exit_block): Drop use of SET_BB_END.
1543 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
1544 rtx_insn *.
1545 (delete_insn): Rename param "insn" to "uncast_insn", introducing
1546 a new local "insn" with a checked cast to rtx_insn *. Drop use of
1547 SET_BB_HEAD and SET_BB_END.
1548 (create_basic_block_structure): Drop use of SET_BB_HEAD and
1549 SET_BB_END.
1550 (rtl_delete_block): Drop use of SET_BB_HEAD.
1551 (rtl_split_block): Drop use of SET_BB_END.
1552 (emit_nop_for_unique_locus_between): Likewise.
1553 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
1554 (block_label): Drop use of SET_BB_HEAD.
1555 (fixup_abnormal_edges): Drop use of SET_BB_END.
1556 (record_effective_endpoints): Drop use of SET_BB_HEADER.
1557 (relink_block_chain): Likewise.
1558 (fixup_reorder_chain): Drop use of SET_BB_END.
1559 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
1560 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
1561 rtx_insn **. Drop use of SET_BB_HEADER.
1562 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
1563 SET_BB_HEAD.
1564 (BB_HEAD): Delete this function.
1565 (SET_BB_HEAD): Likewise.
1566 (BB_END): Likewise.
1567 (SET_BB_END): Likewise.
1568 (BB_HEADER): Likewise.
1569 (SET_BB_HEADER): Likewise.
1570 * emit-rtl.c (add_insn_after): Rename param "insn" to
1571 "uncast_insn", adding a new local "insn" and a checked cast to
1572 rtx_insn *. Drop use of SET_BB_END.
1573 (remove_insn): Strengthen locals "next" and "prev" from rtx to
1574 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
1575 (reorder_insns): Drop use of SET_BB_END.
1576 (emit_insn_after_1): Strengthen param "first" and locals "last",
1577 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
1578 (emit_pattern_after_noloc): Add checked cast.
1579 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
1580 (restore_other_notes): Likewise.
1581 (move_insn): Likewise.
1582 (sched_extend_bb): Likewise.
1583 (fix_jump_move): Likewise.
1584 * ifcvt.c (noce_process_if_block): Likewise.
1585 (dead_or_predicable): Likewise.
1586 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
1587 * reg-stack.c (change_stack): Drop use of SET_BB_END.
1588 * sel-sched-ir.c (sel_move_insn): Likewise.
1589 * sel-sched.c (move_nop_to_previous_block): Likewise.
1590
1591 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
1592 SET_BB_END.
1593 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1594
1595 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1596
1597 * basic-block.h (create_basic_block_structure): Strengthen params
1598 1 "head" and 2 "end" from rtx to rtx_insn *.
1599 * cfgrtl.c (create_basic_block_structure): Likewise.
1600 (rtl_create_basic_block): Update casts from void * to rtx to
1601 rtx_insn *, so that we can pass them as rtx_insn * to
1602 create_basic_block_structure.
1603 * sel-sched-ir.c (sel_create_basic_block): Likewise.
1604
1605 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1606
1607 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
1608 rtx_insn **.
1609 (check_for_inc_dec): Strengthen param "insn" from rtx to
1610 rtx_insn *.
1611
1612 * cselib.h (cselib_process_insn): Likewise.
1613
1614 * cselib.c (cselib_record_sets): Likewise.
1615 (cselib_process_insn): Likewise.
1616
1617 * dse.c (struct insn_info): Likewise for field "insn".
1618 (check_for_inc_dec_1): Likewise for local "insn".
1619 (check_for_inc_dec): Likewise for param "insn".
1620 (scan_insn): Likewise.
1621 (dse_step1): Likewise for local "insn".
1622
1623 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
1624 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
1625
1626 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1627
1628 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
1629 from rtx to rtx_insn *.
1630 (DEP_PRO): Delete this function and...
1631 (SET_DEP_PRO): ...this function in favor of...
1632 (DEP_PRO): ...reinstate this macro.
1633 (DEP_CON): Delete this function and...
1634 (SET_DEP_CON): ...this function in favor of...
1635 (DEP_CON): ...reinstate this old macro.
1636 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
1637 (init_dep): Likewise.
1638 (set_priorities): Likewise for both params.
1639 (sd_copy_back_deps): Likewise for params 1 and 2.
1640
1641 * haifa-sched.c (priority): Likewise for param "insn" and local
1642 "next".
1643 (set_priorities): Likewise for params "head" and "tail" and local
1644 "insn".
1645 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
1646 local "consumer".
1647 (add_to_speculative_block): Add a checked cast.
1648 (create_check_block_twin): Drop use of SET_DEP_CON.
1649 (add_jump_dependencies): Strengthen params "insn" and "jump" from
1650 rtx to rtx_insn *.
1651
1652 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
1653 Drop use of SET_DEP_PRO
1654 (init_dep): Strengthen params "pro" and "con" from rtx to
1655 rtx_insn *.
1656 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
1657 use of SET_DEP_CON.
1658 (DEP_PRO): Delete.
1659 (DEP_CON): Delete.
1660 (SET_DEP_PRO): Delete.
1661 (SET_DEP_CON): Delete.
1662
1663 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1664
1665 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
1666 from rtx to rtx_insn *.
1667 (VINSN_INSN_RTX): Eliminate rvalue function and...
1668 (SET_VINSN_INSN): ...lvalue function in favor of...
1669 (VINSN_INSN_RTX): reinstate this old macro.
1670
1671 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
1672 in favor of VINSN_INSN_RTX.
1673 (VINSN_INSN_RTX): Delete this function.
1674 (SET_VINSN_INSN_RTX): Likewise.
1675
1676 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1677
1678 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
1679 (BND_TO): Delete this function and...
1680 (SET_BND_TO): ...this functions in favor of...
1681 (BND_TO): ...reinstating this macro.
1682 (struct _fence): Strengthen field "executing_insns" from
1683 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
1684 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
1685 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
1686 and param "insn" from rtx to insn_t.
1687 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
1688 rtx_insn *.
1689
1690 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
1691 vec<rtx_insn *> .
1692 (rtx_vec_t): Likewise.
1693 (struct sched_deps_info_def): Strengthen param of "start_insn"
1694 callback from rtx to rtx_insn *. Likewise for param "insn2" of
1695 "note_mem_dep" callback and first param of "note_dep" callback.
1696
1697 * haifa-sched.c (add_to_speculative_block): Strengthen param
1698 "insn" from rtx to rtx_insn *.
1699 (clear_priorities): Likewise.
1700 (calc_priorities): Likewise for local "insn".
1701
1702 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
1703 Remove redundant checked cast.
1704 (haifa_note_mem_dep): Likewise for param "pending_insn".
1705 (haifa_note_dep): Likewise for param "elem".
1706 (note_mem_dep): Likewise for param "e".
1707 (sched_analyze_1): Add checked casts.
1708 (sched_analyze_2): Likewise.
1709
1710 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
1711 from rtx to rtx_insn *.
1712 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
1713 from vec<rtx> * to vec<rtx_insn *> *.
1714
1715 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
1716 scaffolding.
1717 (flist_add): Strengthen param "executing_insns" from
1718 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1719 (advance_deps_context): Remove now-redundant checked cast.
1720 (init_fences): Replace uses of NULL_RTX with NULL.
1721 (merge_fences): Strengthen params "last_scheduled_insn" and
1722 "sched_next" from rtx to rtx_insn * and "executing_insns" from
1723 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1724 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
1725 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
1726 an instruction, rather than doing double-duty as a pattern.
1727 (return_nop_to_pool): Update for change of insn_t.
1728 (deps_init_id): Remove now-redundant checked cast.
1729 (struct sched_scan_info_def): Strengthen param of "init_insn"
1730 callback from rtx to insn_t.
1731 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
1732 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
1733 NULL.
1734 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
1735 "end" from rtx to rtx_insn *.
1736 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
1737 (rtx insn_rtx, bool force_unique_p)
1738 (BND_TO): Delete function.
1739 (SET_BND_TO): Delete function.
1740
1741 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
1742 rtx to rtx_insn *.
1743 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
1744 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
1745 rtx to rtx_insn *.
1746 (undo_transformations): Likewise for param "insn".
1747 (update_liveness_on_insn): Likewise.
1748 (compute_live_below_insn): Likewise for param "insn" and local
1749 "succ".
1750 (update_data_sets): Likewise for param "insn".
1751 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
1752 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
1753 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
1754 rtx_insn *.
1755 (move_cond_jump): Likewise for param "insn".
1756 (move_cond_jump): Drop use of SET_BND_TO.
1757 (compute_av_set_on_boundaries): Likewise.
1758 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
1759 (update_and_record_unavailable_insns): Strengthen local "bb_end"
1760 from rtx to rtx_insn *.
1761 (maybe_emit_renaming_copy): Likewise for param "insn".
1762 (maybe_emit_speculative_check): Likewise.
1763 (handle_emitting_transformations): Likewise.
1764 (remove_insn_from_stream): Likewise.
1765 (code_motion_process_successors): Strengthen local "succ" from rtx
1766 to insn_t.
1767
1768 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1769
1770 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
1771 ilist_t, not _xlist_t;
1772 (ILIST_INSN): Define in terms of new union field "insn".
1773 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
1774 _XLIST_NEXT.
1775 (struct _list_node): Add new field "insn" to the union, of type
1776 insn_t.
1777 (ilist_add): Replace macro with an inline function, requiring an
1778 insn_t.
1779 (ilist_remove): Define this macro directly in terms of
1780 _list_remove, rather than indirectly via _xlist_remove.
1781 (ilist_clear): Likewise, in terms of _list_clear rather than
1782 _xlist_clear.
1783 (ilist_is_in_p): Replace macro with an inline function, requiring
1784 an insn_t.
1785 (_list_iter_cond_insn): New function.
1786 (ilist_iter_remove): Define this macro directly in terms of
1787 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
1788 (ilist_iterator): Define directly in terms of _list_iterator
1789 rather than indirectly through _xlist_iterator.
1790 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
1791 than in terms of _FOR_EACH_X.
1792 (FOR_EACH_INSN_1): Likewise.
1793
1794 2014-08-26 Joseph Myers <joseph@codesourcery.com>
1795
1796 PR target/60606
1797 PR target/61330
1798 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
1799 DECL_HARD_REGISTER and return for invalid register specifications.
1800 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
1801 DECL_HARD_REGISTER, call expand_one_error_var.
1802 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
1803 CC_REGNUM with non-MODE_CC modes.
1804 (arm_regno_class): Return NO_REGS for PC_REGNUM.
1805
1806 2014-08-26 Marek Polacek <polacek@redhat.com>
1807
1808 PR c/61271
1809 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
1810
1811 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
1812
1813 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
1814 qi cost; add di cost.
1815 (cortexa57_addrcost_table): Likewise.
1816
1817 2014-08-26 Marek Polacek <polacek@redhat.com>
1818
1819 PR c/61271
1820 * expr.c (is_aligning_offset): Remove logical not.
1821
1822 2014-08-26 Marek Polacek <polacek@redhat.com>
1823
1824 PR c/61271
1825 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
1826 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
1827
1828 2014-08-26 Richard Biener <rguenther@suse.de>
1829
1830 PR tree-optimization/62175
1831 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1832 expand possibly trapping operations.
1833
1834 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1835
1836 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
1837 "insn" from rtx to rtx_insn *.
1838 (permute_load): Likewise for param "insn".
1839 (permute_store): Likewise.
1840 (handle_special_swappables): Likewise for local "insn".
1841 (replace_swap_with_copy): Likewise for locals "insn" and
1842 "new_insn".
1843 (rs6000_analyze_swaps): Likewise for local "insn".
1844
1845 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1846
1847 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
1848 to rtx_insn *.
1849
1850 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1851
1852 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
1853 "note_list" from rtx to rtx_insn *.
1854 (BB_NOTE_LIST): Replace this function and...
1855 (SET_BB_NOTE_LIST): ...this function with...
1856 (BB_NOTE_LIST): ...the former macro implementation.
1857
1858 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
1859 local "from_start" from rtx to rtx_insn *. Strengthen param
1860 "to_endp" from rtx * to rtx_insn **.
1861
1862 * haifa-sched.c (concat_note_lists): Likewise.
1863 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
1864 BB_NOTE_LIST.
1865 (sel_restore_notes): Likewise.
1866 (move_bb_info): Likewise.
1867 (BB_NOTE_LIST): Delete this function.
1868 (SET_BB_NOTE_LIST): Delete this function.
1869 * sel-sched.c (create_block_for_bookkeeping): Eliminate
1870 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
1871
1872 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1873
1874 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
1875 from rtx * to rtx_insn **.
1876 (reorder2): Likewise.
1877 (dependencies_evaluation_hook): Strengthen params "head", "tail"
1878 from rtx to rtx_insn *.
1879
1880 * doc/tm.texi: Update mechanically for above change to target.def.
1881
1882 * sched-int.h (note_list): Strengthen this variable from rtx to
1883 rtx_insn *.
1884 (remove_notes): Likewise for both params.
1885 (restore_other_notes): Likewise for return type and first param.
1886 (struct ready_list): Strengthen field "vec" from rtx * to
1887 rtx_insn **.
1888 (struct dep_replacement): Strenghten field "insn" from rtx to
1889 rtx_insn *.
1890 (struct deps_desc): Likewise for fields "last_debug_insn",
1891 "last_args_size".
1892 (struct haifa_sched_info): Likewise for callback field
1893 "can_schedule_ready_p"'s param, for first param of "new_ready"
1894 callback field, for both params of "rank" callback field, for
1895 first field of "print_insn" callback field (with a const), for
1896 both params of "contributes_to_priority" callback, for param
1897 of "insn_finishes_block_p" callback, for fields "prev_head",
1898 "next_tail", "head", "tail", for first param of "add_remove_insn"
1899 callback, for first param of "begin_schedule_ready" callback, for
1900 both params of "begin_move_insn" callback, and for second param
1901 of "advance_target_bb" callback.
1902 (add_dependence): Likewise for params 1 and 2.
1903 (sched_analyze): Likewise for params 2 and 3.
1904 (deps_analyze_insn): Likewise for param 2.
1905 (ready_element): Likewise for return type.
1906 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1907 (try_ready): Strenghten param from rtx to rtx_insn *.
1908 (sched_emit_insn): Likewise for return type.
1909 (record_delay_slot_pair): Likewise for params 1 and 2.
1910 (add_delay_dependencies): Likewise for param.
1911 (contributes_to_priority): Likewise for both params.
1912 (find_modifiable_mems): Likewise.
1913
1914 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
1915 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
1916 "first_older_only_insn" from rtx to rtx_insn *.
1917 (arm_sched_reorder): Strengthen param "ready" from rtx * to
1918 rtx_insn **.
1919
1920 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
1921 "last_scheduled_iter0" from rtx to rtx_insn *.
1922 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
1923 (c6x_sched_reorder_1): Strengthen param "ready" and locals
1924 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1925 "insn" from rtx to rtx_insn *.
1926 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
1927 rtx_insn **.
1928 (c6x_sched_reorder2): Strengthen param "ready" and locals
1929 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1930 "insn" from rtx to rtx_insn *.
1931 (c6x_variable_issue): Add a checked cast when assigning from insn
1932 to ss.last_scheduled_iter0.
1933 (split_delayed_branch): Strengthen param "insn" and local "i1"
1934 from rtx to rtx_insn *.
1935 (split_delayed_nonbranch): Likewise.
1936 (undo_split_delayed_nonbranch): Likewise for local "insn".
1937 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
1938 "entry_after", "end_packet", "head_insn", "tail_insn",
1939 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
1940 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
1941 to rtx_insn **. Remove now-redundant checked cast on last_insn,
1942 but add a checked cast on loop->start_label. Consolidate calls to
1943 avoid assigning result of gen_spkernel to "insn", now an
1944 rtx_insn *.
1945
1946 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
1947 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
1948 rtx to rtx_insn *.
1949 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
1950 rtx_insn **. Strengthen locals "top", "next" from rtx to
1951 rtx_insn *.
1952 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
1953 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1954 (add_parameter_dependencies): Strengthen params "call", "head" and
1955 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
1956 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
1957 (add_dependee_for_func_arg): Likewise for param "arg" and local
1958 "insn".
1959 (ix86_dependencies_evaluation_hook): Likewise for params "head",
1960 "tail" and locals "insn", "first_arg".
1961
1962 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
1963 for params "head", "tail" and locals "insn", "next", "next_tail".
1964 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
1965 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
1966 "insn", "lowest", "highest" from rtx to rtx_insn *.
1967 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
1968 rtx_insn **.
1969 (ia64_sched_reorder2): Likewise.
1970
1971 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
1972 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
1973 from rtx * to rtx_insn **.
1974 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
1975 rtx_insn **.
1976 (mep_print_sched_insn): Strengthen param "insn" from rtx to
1977 rtx_insn *.
1978 (mep_sched_reorder): Strengthen param "ready" from rtx * to
1979 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
1980 to rtx_insn *.
1981
1982 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
1983 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
1984 to rtx_insn *.
1985 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
1986 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
1987 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
1988 rtx_insn **.
1989 (vr4130_reorder): Likewise.
1990 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
1991 rtx to rtx_insn *.
1992 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
1993 rtx_insn **.
1994 (mips_sched_reorder): Likewise.
1995 (mips_sched_reorder2): Likewise.
1996
1997 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
1998
1999 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
2000 Strengthen local "tmp" from rtx to rtx_insn *.
2001 (rs6000_sched_reorder2): Likewise.
2002
2003 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
2004 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
2005 (s390_sched_reorder): Strengthen param "ready" from rtx * to
2006 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
2007
2008 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
2009 "tmp2" from rtx to rtx_insn *.
2010 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
2011 Strengthen local "insn" from rtx to rtx_insn *.
2012 (ready_reorder): Strengthen param "ready" from rtx * to
2013 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
2014 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
2015 (sh_reorder2): Likewise.
2016
2017 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
2018 local "insn" from rtx to rtx_insn *.
2019
2020 * haifa-sched.c (note_list): Strengthen this variable from rtx to
2021 rtx_insn *.
2022 (scheduled_insns): Strengthen this variable from vec<rtx> to
2023 vec<rtx_insn *>.
2024 (set_modulo_params): Likewise for locals "i1", "i2".
2025 (record_delay_slot_pair): Likewise for params "i1", "i2".
2026 (add_delay_dependencies): Likewise for param "insn".
2027 (cond_clobbered_p): Likewise.
2028 (recompute_todo_spec): Likewise for local "prev".
2029 (last_scheduled_insn): Likewise for this variable.
2030 (nonscheduled_insns_begin): Likewise.
2031 (model_set_excess_costs): Strengthen param "insns" from rtx * to
2032 rtx_insn **.
2033 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
2034 rtx_insn *.
2035 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
2036 Strengthen local "insn" from rtx to rtx_insn *.
2037 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
2038 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
2039 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
2040 (ready_remove_first): Likewise for return type and local "t".
2041 (ready_element): Likewise for return type.
2042 (ready_remove): Likewise for return type and local "t".
2043 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
2044 (check_clobbered_conditions): Strengthen local "x" from rtx to
2045 rtx_insn *, adding a checked cast.
2046 (schedule_insn): Likewise for param "insn".
2047 (remove_notes): Likewise for params "head", "tail" and locals
2048 "next_tail", "insn", "next".
2049 (struct haifa_saved_data): Likewise for fields
2050 "last_scheduled_insn", "nonscheduled_insns_begin".
2051 (save_backtrack_point): Update for change to field "vec" of
2052 struct ready_list.
2053 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
2054 rtx_insn **.
2055 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
2056 from rtx to rtx_insn *
2057 (resolve_dependencies): Strengthen param "insn" from rtx to
2058 rtx_insn *
2059 (restore_other_notes): Likewise for return type, for param "head"
2060 and local "note_head".
2061 (undo_all_replacements): Likewise for local "insn".
2062 (first_nonscheduled_insn): Likewise for return type and local "insn".
2063 (queue_to_ready): Likewise for local "insn", adding checked casts.
2064 (early_queue_to_ready): Likewise for local "insn".
2065 (debug_ready_list_1): Strengthen local "p" from rtx * to
2066 rtx_insn **.
2067 (move_insn): Strengthen param "insn" and local "note" from rtx to
2068 rtx_insn *
2069 (insn_finishes_cycle_p): Likewise for param "insn".
2070 (max_issue): Likewise for local "insn".
2071 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
2072 to rtx_insn **.
2073 (commit_schedule): Strengthen param "prev_head" and local "insn"
2074 from rtx to rtx_insn *
2075 (prune_ready_list): Likewise for local "insn".
2076 (schedule_block): Likewise for locals "prev_head", "head", "tail",
2077 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
2078 (set_priorities): Likewise for local "prev_head".
2079 (try_ready): Likewise for param "next".
2080 (fix_tick_ready): Likewise.
2081 (change_queue_index): Likewise.
2082 (sched_extend_ready_list): Update for change to field "vec" of
2083 struct ready_list.
2084 (generate_recovery_code): Strengthen param "insn" from rtx to
2085 rtx_insn *.
2086 (begin_speculative_block): Likewise.
2087 (create_check_block_twin): Likewise for param "insn" and locals
2088 "label", "check", "twin". Introduce local "check_pat" to avoid
2089 "check" being used as a plain rtx before being used as an insn.
2090 (fix_recovery_deps): Add a checked cast to rtx_insn * when
2091 extracting elements from ready_list.
2092 (sched_remove_insn): Strengthen param "insn" from rtx to
2093 rtx_insn *.
2094 (sched_emit_insn): Likewise for return type.
2095 (ready_remove_first_dispatch): Likewise for return type and local
2096 "insn".
2097
2098 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
2099
2100 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
2101 const rtx_insn *.
2102
2103 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
2104 from rtx to rtx_insn *.
2105 (add_dependence_list): Likewise for param "insn". Add a checked
2106 cast.
2107 (add_dependence_list_and_free): Strengthen param "insn" from rtx
2108 to rtx_insn *. Strengthen param "list_p" from rtx * to
2109 rtx_insn **.
2110 (chain_to_prev_insn): Strengthen param "insn" and locals
2111 "prec_nonnote", "i" from rtx to rtx_insn *.
2112 (flush_pending_lists): Likewise for param "insn".
2113 (cur_insn): Likewise for this variable.
2114 (haifa_start_insn): Add a checked cast.
2115 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
2116 (sched_analyze_reg): Likewise for param "insn".
2117 (sched_analyze_1): Likewise.
2118 (sched_analyze_2): Likewise. Add checked casts.
2119 (sched_analyze_insn): Likewise. Also for local "prev".
2120 (deps_analyze_insn): Likewise for param "insn".
2121 (sched_analyze): Likewise for params "head", "tail" and local "insn".
2122 (add_dependence_1): Likewise for params "insn", "elem".
2123 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
2124 (parse_add_or_inc): Likewise for param "insn".
2125 (find_inc): Likewise for local "inc_cand".
2126 (find_modifiable_mems): Likewise for params "head", "tail" and
2127 locals "insn", "next_tail".
2128
2129 * sched-ebb.c (init_ready_list): Likewise for local "insn".
2130 (begin_schedule_ready): Likewise for param "insn".
2131 (begin_move_insn): Likewise for params "insn" and "last".
2132 (ebb_print_insn): Strengthen param "insn" from const_rtx to
2133 const rtx_insn *.
2134 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
2135 (ebb_contributes_to_priority): Likewise for params "next", "insn".
2136 (ebb_add_remove_insn): Likewise for param "insn".
2137 (advance_target_bb): Likewise.
2138
2139 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
2140 "insn".
2141 (check_live): Likewise for param "insn".
2142 (init_ready_list): Likewise for local "insn".
2143 (can_schedule_ready_p): Likewise for param "insn".
2144 (begin_schedule_ready): Likewise.
2145 (new_ready): Likewise for param "next".
2146 (rgn_print_insn): Likewise for param "insn".
2147 (rgn_rank): Likewise for params "insn1", "insn2".
2148 (contributes_to_priority): Likewise for params "next", "insn".
2149 (rgn_insn_finishes_block_p): Likewise for param "insn".
2150 (add_branch_dependences): Likewise for params "head", "tail" and
2151 locals "insn", "last".
2152 (rgn_add_remove_insn): Likewise for param "insn".
2153 (advance_target_bb): Likewise.
2154
2155 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
2156 const_rtx to const rtx_insn *.
2157
2158 * sel-sched-dump.h (sel_print_insn): Likewise.
2159
2160 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
2161 (deps_init_id): Likewise.
2162
2163 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
2164 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
2165 rtx_insn **.
2166
2167 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2168
2169 * output.h (final_start_function): Strengthen param 1 from rtx to
2170 rtx_insn *.
2171
2172 * final.c (final_start_function): Likewise, renaming back from
2173 "uncast_first" to "first", and dropping the checked cast from rtx
2174 to rtx_insn *.
2175
2176 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2177
2178 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
2179 * final.c (final): Likewise. Rename param back from
2180 "uncast_first" to "first" and eliminate the checked cast from rtx
2181 to rtx_insn *.
2182
2183 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2184
2185 * output.h (shorten_branches): Strengthen param from rtx to
2186 rtx_insn *.
2187
2188 * final.c (shorten_branches): Likewise, renaming param back from
2189 "uncast_first" to "first", and dropping the checked cast from rtx
2190 to rtx_insn *.
2191
2192 * genattr.c (gen_attr): Likewise when writing out the prototype of
2193 shorten_branches.
2194
2195 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2196
2197 * sched-int.h (struct haifa_sched_info): Strengthen fields
2198 "prev_head" and "next_tail" from rtx to rtx_insn *.
2199
2200 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2201
2202 * rtl.h (rtx_jump_table_data::get_labels): New method.
2203 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
2204 with use of the new rtx_jump_table_data::get_labels method.
2205 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
2206 to rtx_jump_table_data *. Simplify by using get_labels method.
2207 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
2208 a dyn_cast, introducing local "table", using it to replace
2209 label-lookup logic with a get_labels method call.
2210 (patch_jump_insn): Simplify using get_labels method.
2211 * dwarf2cfi.c (create_trace_edges): Likewise.
2212 * rtlanal.c (label_is_jump_target_p): Likewise.
2213
2214 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2215
2216 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
2217 to rtx_insn *.
2218
2219 * emit-rtl.c (unshare_all_rtl_1): Likewise.
2220 (unshare_all_rtl_again): Likewise, also for local "p".
2221
2222 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2223
2224 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
2225 to rtx_insn *.
2226 * cfgrtl.c (delete_insn_and_edges): Likewise.
2227
2228 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2229
2230 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
2231 from rtx to rtx_insn *.
2232
2233 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
2234
2235 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2236
2237 * function.c (thread_prologue_and_epilogue_insns): Likewise for
2238 locals "returnjump", "epilogue_end", "insn", "next".
2239
2240 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
2241 "returnjump" from rtx * to rtx_insn **.
2242 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
2243
2244 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2245
2246 * basic-block.h (struct edge_def). Strengthen "r" within
2247 union edge_def_insns from rtx to rtx_insn *.
2248
2249 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
2250 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
2251 rtx_insn *.
2252 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
2253 from rtx to rtx_insn *.
2254 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
2255 rtx_insn *.
2256 * postreload-gcse.c (reg_killed_on_edge): Likewise.
2257 (reg_used_on_edge): Likewise.
2258 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
2259 (gt_pch_nx): New overload for rtx_insn *&.
2260 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
2261 from rtx to rtx_insn *.
2262
2263 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2264
2265 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
2266 from rtx to rtx_insn *.
2267 (BB_FOOTER): Replace function with access macro.
2268 (SET_BB_FOOTER): Delete.
2269
2270 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
2271 with BB_FOOTER.
2272 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
2273 (emit_barrier_after_bb): Likewise.
2274 (record_effective_endpoints): Likewise.
2275 (relink_block_chain): Likewise.
2276 (fixup_fallthru_exit_predecessor): Likewise.
2277 (cfg_layout_duplicate_bb): Likewise.
2278 (cfg_layout_split_block): Likewise.
2279 (cfg_layout_delete_block): Likewise.
2280 (cfg_layout_merge_blocks): Likewise.
2281 (BB_FOOTER): Delete function.
2282 (SET_BB_FOOTER): Delete function.
2283 * combine.c (update_cfg_for_uncondjump): Replace uses of
2284 SET_BB_FOOTER with BB_FOOTER.
2285
2286 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2287
2288 * except.h (struct eh_landing_pad_d): Strengthen field
2289 "landing_pad" from rtx to rtx_code_label *.
2290
2291 * except.c (sjlj_emit_dispatch_table): Likewise for param
2292 "dispatch_label"
2293 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
2294
2295 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2296
2297 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
2298 first param from rtx to rtx_insn *.
2299 * config/xtensa/xtensa.c (struct machine_function): Likewise for
2300 field "set_frame_ptr_insn".
2301 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
2302 "csend" from rtx to rtx_code_label *.
2303 (xtensa_expand_atomic): Likewise for local "csloop".
2304 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
2305 rtx_insn *.
2306 (xtensa_call_tls_desc): Likewise for return type and locals
2307 "call_insn", "insns".
2308 (xtensa_legitimize_tls_address): Likewise for local "insns".
2309 (xtensa_expand_prologue): Likewise for locals "insn", "first".
2310
2311 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2312
2313 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
2314 first param from rtx to rtx_insn *.
2315 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
2316 "insn".
2317
2318 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2319
2320 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
2321 Strengthen param 1 from rtx to rtx_insn *.
2322 (tilepro_output_cbranch): Likewise.
2323 (tilepro_adjust_insn_length): Likewise.
2324 (tilepro_final_prescan_insn): Likewise for sole param.
2325
2326 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
2327 Likewise for local "last".
2328 (cbranch_predicted_p): Likewise for param "insn".
2329 (tilepro_output_simple_cbranch_with_opcode): Likewise.
2330 (tilepro_output_cbranch_with_opcode): Likewise.
2331 (tilepro_output_cbranch): Likewise.
2332 (frame_emit_load): Likewise for return type and locals "seq",
2333 "insn".
2334 (emit_sp_adjust): Likewise for return type and local "insn".
2335 (tilepro_expand_epilogue): Likewise for locals "last_insn",
2336 "insn".
2337 (tilepro_adjust_insn_length): Likewise for param "insn".
2338 (next_insn_to_bundle): Likewise for return type and params
2339 "r", "end".
2340 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
2341 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
2342 local "new_insns".
2343 (match_addli_pcrel): Likewise for param "insn".
2344 (replace_addli_pcrel): Likewise.
2345 (match_auli_pcrel): Likewise.
2346 (replace_auli_pcrel): Likewise.
2347 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
2348 "next_insn".
2349 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2350 "queue", "next_queue", "prev".
2351 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
2352 (tilepro_final_prescan_insn): Likewise for param "insn".
2353
2354 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2355
2356 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
2357 Strengthen param 1 from rtx to rtx_insn *.
2358 (tilegx_output_cbranch): Likewise.
2359 (tilegx_adjust_insn_length): Likewise.
2360 (tilegx_final_prescan_insn): Likewise for sole param.
2361
2362 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
2363 or local "last".
2364 (cbranch_predicted_p): Likewise for param "insn".
2365 (tilegx_output_simple_cbranch_with_opcode): Likewise.
2366 (tilegx_output_cbranch_with_opcode): Likewise.
2367 (tilegx_output_cbranch): Likewise.
2368 (frame_emit_load): Likewise for return type.
2369 (set_frame_related_p): Likewise for locals "seq", "insn".
2370 (emit_sp_adjust): Likewise for return type, and for local "insn".
2371 Introduce local "pat" for use in place of "insn" where the latter
2372 isn't an instruction.
2373 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
2374 from rtx to rtx_insn *.
2375 (tilegx_adjust_insn_length): Likewise for param "insn".
2376 (next_insn_to_bundle): Likewise for return type and params "r" and
2377 "end".
2378 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
2379 "end".
2380 (replace_insns): Likewise for params "old_insn", "new_insns".
2381 (replace_mov_pcrel_step1): Likewise for param "insn" and local
2382 "new_insns".
2383 (replace_mov_pcrel_step2): Likewise.
2384 (replace_mov_pcrel_step3): Likewise.
2385 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
2386 "next_insn".
2387 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2388 "queue", "next_queue", "prev".
2389 (tilegx_output_mi_thunk): Likewise for local "insn".
2390 (tilegx_final_prescan_insn): Likewise for param "insn".
2391
2392 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2393
2394 * config/spu/spu.c (frame_emit_store): Strengthen return type from
2395 rtx to rtx_insn *.
2396 (frame_emit_load): Likewise.
2397 (frame_emit_add_imm): Likewise, also for local "insn".
2398 (spu_expand_prologue): Likewise for local "insn".
2399 (struct spu_bb_info): Likewise for field "prop_jump".
2400 (emit_nop_for_insn): Likewise for param "insn" and local
2401 "new_insn".
2402 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
2403 "hbr_insn".
2404 (spu_emit_branch_hint): Likewise for params "before", "branch" and
2405 locals "hint", "insn".
2406 (get_branch_target): Likewise for param "branch".
2407 (insn_clobbers_hbr): Likewise for param "insn".
2408 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
2409 locals "insn", "before_4", "before_16".
2410 (insert_hbrp): Likewise for local "insn".
2411 (spu_machine_dependent_reorg): Likewise for locals "branch",
2412 "insn", "next", "bbend".
2413 (uses_ls_unit): Likewise for param "insn".
2414 (get_pipe): Likewise.
2415 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
2416 introducing a checked cast.
2417 (spu_sched_adjust_cost): Likewise for params "insn" and
2418 "dep_insn".
2419 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
2420 (spu_sms_res_mii): Likewise.
2421
2422 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2423
2424 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
2425 from rtx to rtx_insn *.
2426 (output_cbranch): Likewise for param 6.
2427 (output_return): Likewise for param 1.
2428 (output_sibcall): Likewise.
2429 (output_v8plus_shift): Likewise.
2430 (output_v8plus_mult): Likewise.
2431 (output_v9branch): Likewise for param 7.
2432 (output_cbcond): Likewise for param 3.
2433
2434 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
2435 for local "insn".
2436 (sparc_legitimize_pic_address): Likewise.
2437 (sparc_emit_call_insn): Likewise.
2438 (emit_save_or_restore_regs): Likewise.
2439 (emit_window_save): Likewise for return type and local "insn".
2440 (sparc_expand_prologue): Likewise for local "insn".
2441 (sparc_flat_expand_prologue): Likewise.
2442 (output_return): Likewise for param "insn".
2443 (output_sibcall): Likewise for param "insn" and local "delay".
2444 (output_ubranch): Likewise for param "insn".
2445 (output_cbranch): Likewise.
2446 (output_cbcond): Likewise.
2447 (output_v9branch): Likewise.
2448 (output_v8plus_shift): Likewise.
2449 (sparc_output_mi_thunk): Likewise for local "insn".
2450 (get_some_local_dynamic_name): Likewise.
2451 (output_v8plus_mult): Likewise for param "insn".
2452
2453 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2454
2455 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
2456 from rtx to rtx_insn *.
2457 (output_branchy_insn): Likewise for param 3.
2458 (output_far_jump): Likewise for param 1.
2459 (final_prescan_insn): Likewise.
2460 (sh_insn_length_adjustment): Likewise for sole param.
2461
2462 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
2463 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
2464 rtx_code_label *.
2465 (sh_emit_compare_and_set): Likewise for local "lab".
2466 (output_far_jump): Strengthen param "insn" and local "prev" from
2467 rtx to rtx_insn *.
2468 (output_branchy_insn): Likewise for param "insn" and local
2469 "next_insn".
2470 (output_ieee_ccmpeq): Likewise for param "insn".
2471 (struct label_ref_list_d): Strengthen field "label" from rtx to
2472 rtx_code_label *.
2473 (pool_node): Likewise.
2474 (pool_window_label): Likewise for this global.
2475 (add_constant): Likewise for return type and locals "lab", "new_rtx".
2476 (dump_table): Strengthen params "start", "barrier" and local
2477 "scan" from rtx to rtx_insn *.
2478 (broken_move): Likewise for param "insn".
2479 (untangle_mova): Likewise for params "first_mova" and "new_mova".
2480 Strengthen param "first_mova" from rtx * to rtx_insn **.
2481 (mova_p): Likewise for param "insn".
2482 (fixup_mova): Likewise for param "mova".
2483 (find_barrier): Likewise for return type, params "mova" and
2484 "from", and locals "barrier_before_mova", "found_barrier",
2485 "good_barrier", "orig", "last_symoff", "next". Strengthen local
2486 "label" from rtx to rtx_code_label *.
2487 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
2488 rtx to rtx_insn *.
2489 (sh_reorg): Likewise for locals "link", "scan", "barrier".
2490 (split_branches): Likewise for param "first" and local "insn".
2491 (final_prescan_insn): Likewise for param "insn".
2492 (sequence_insn_p): Likewise for locals "prev", "next".
2493 (sh_insn_length_adjustment): Likewise for param "insn".
2494 (sh_can_redirect_branch): Likewise for local "insn".
2495 (find_r0_life_regions): Likewise for locals "end", "insn".
2496 (sh_output_mi_thunk): Likewise for local "insns".
2497
2498 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2499
2500 * config/score/score.c (score_output_mi_thunk): Strengthen local
2501 "insn" from rtx to rtx_insn *.
2502 (score_prologue): Likewise.
2503
2504 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2505
2506 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
2507 1 from rtx to rtx_insn *.
2508 (s390_emit_jump): Likewise for return type.
2509 (s390_emit_call): Likewise.
2510 (s390_load_got): Likewise.
2511
2512 * config/s390/s390.c (last_scheduled_insn): Likewise for this
2513 variable.
2514 (s390_match_ccmode): Likewise for param "insn".
2515 (s390_emit_jump): Likewise for return type.
2516 (s390_split_branches): Likewise for local "label".
2517 (struct constant): Strengthen field "label" from rtx to
2518 rtx_code_label *.
2519 (struct constant_pool): Likewise for field "label". Strengthen
2520 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
2521 rtx_insn *.
2522 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
2523 insns.
2524 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
2525 (s390_end_pool): Likewise.
2526 (s390_dump_pool): Likewise for local "insn".
2527 (s390_mainpool_start): Likewise.
2528 (s390_chunkify_start): Likewise.
2529 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
2530 with insns. Strengthen locals "label", "jump", "barrier", "next",
2531 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
2532 (s390_chunkify_finish): Strengthen local "insn" from rtx to
2533 rtx_insn *.
2534 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
2535 "jump", "label", "next_insn".
2536 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
2537 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
2538 "tbegin_insn".
2539 (s390_load_got): Likewise for return type and local "insns".
2540 (s390_save_gprs_to_fprs): Likewise for local "insn".
2541 (s390_restore_gprs_from_fprs): Likewise.
2542 (pass_s390_early_mach::execute): Likewise.
2543 (s390_emit_prologue): Likewise for local "insns".
2544 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
2545 rtx_code_label *.
2546 (s390_emit_call): Strengthen return type and local "insn" from
2547 rtx to rtx_insn *.
2548 (s390_emit_tpf_eh_return): Likewise for local "insn".
2549 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
2550 "next_insn", introducing locals "s_pat", "rpat" to allow this.
2551 (s390_fix_long_loop_prediction): Likewise for param "insn" and
2552 local "cur_insn".
2553 (s390_non_addr_reg_read_p): Likewise for param "insn".
2554 (find_cond_jump): Likewise for return type and param "insn".
2555 (s390_swap_cmp): Likewise for param "insn".
2556 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
2557 "prev_insn", "next_insn".
2558 (s390_reorg): Likewise for locals "insn", "target".
2559 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
2560 (s390_sched_variable_issue): For now, rename param "insn" to
2561 "uncast_insn", introducing a checked cast.
2562 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
2563 insn.
2564 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
2565 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
2566
2567 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2568
2569 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
2570 param from rtx to rtx_insn *.
2571 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
2572
2573 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2574
2575 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
2576 4 from rtx to rtx_insn *.
2577 (rs6000_final_prescan_insn): Likewise for first param.
2578 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
2579 local "insn".
2580 (rs6000_get_some_local_dynamic_name): Likewise.
2581 (output_cbranch): Likewise for param "insn".
2582 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
2583 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
2584 (rs6000_emit_allocate_stack): Likewise for local "insn".
2585 (load_cr_save): Likewise.
2586 (restore_saved_cr): Likewise.
2587 (restore_saved_lr): Likewise.
2588 (emit_cfa_restores): Likewise.
2589 (rs6000_output_function_epilogue): Likewise for locals "insn" and
2590 "deleted_debug_label".
2591 (rs6000_output_mi_thunk): Likewise for local "insn".
2592 (rs6000_final_prescan_insn): Likewise for param "insn".
2593
2594 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2595
2596 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
2597 Strengthen param "insn" from rtx to rtx_insn *.
2598 * config/picochip/picochip.c (picochip_current_prescan_insn):
2599 Likewise for this variable.
2600 (picochip_final_prescan_insn): Likewise for param "insn".
2601
2602 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2603
2604 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
2605 from rtx to rtx_insn *.
2606 (pa_output_indirect_call): Likewise.
2607 (pa_adjust_insn_length): Likewise.
2608 (pa_attr_length_millicode_call): Likewise.
2609 (pa_attr_length_call): Likewise.
2610 (pa_attr_length_indirect_call): Likewise.
2611
2612 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
2613 "insn".
2614 (pa_attr_length_millicode_call): Likewise.
2615 (pa_attr_length_call): Likewise.
2616 (pa_output_call): Likewise.
2617 (pa_attr_length_indirect_call): Likewise.
2618 (pa_output_indirect_call): Likewise.
2619
2620 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2621
2622 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
2623 Strengthen first param from rtx to rtx_insn *.
2624 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
2625 param "insn".
2626
2627 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2628
2629 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
2630 type from rtx to rtx_insn *.
2631 (mips_expand_call): Likewise.
2632 (mips_adjust_insn_length): Likewise for first param.
2633 (mips_output_conditional_branch): Likewise.
2634 (mips_output_order_conditional_branch): Likewise.
2635 (mips_final_prescan_insn): Likewise.
2636
2637 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
2638 rtx_insn * for the SEQUENCE case.
2639 (SEQ_END): Likewise.
2640 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
2641 (mips_emit_call_insn): Likewise, also for local "insn".
2642 (mips16_gp_pseudo_reg): Likewise for local "scan".
2643 (mips16_build_call_stub): Likewise for return type and for local
2644 "insn". Introduce a new local "pattern" so that "insn" can indeed
2645 be an insn.
2646 (mips_expand_call): Strengthen return type and local "insn" from
2647 rtx to rtx_insn *.
2648 (mips_block_move_loop): Strengthen local "label" from rtx to
2649 rtx_code_label *.
2650 (mips_expand_synci_loop): Likewise for locals "label",
2651 "end_label".
2652 (mips_set_frame_expr): Strengthen local "insn" from rtx to
2653 rtx_insn *.
2654 (mips16e_collect_argument_saves): Likewise for locals "insn",
2655 "next".
2656 (mips_find_gp_ref): Likewise for param of callback for "pred"
2657 param, and for local "insn".
2658 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
2659 (mips_insn_has_flexible_gp_ref_p): Likewise.
2660 (mips_epilogue_emit_cfa_restores): Likewise for return type and
2661 local "insn".
2662 (mips_epilogue_set_cfa): Likewise for local "insn".
2663 (mips_expand_epilogue): Likewise.
2664 (mips_adjust_insn_length): Likewise for param "insn".
2665 (mips_output_conditional_branch): Likewise.
2666 (mips_output_order_conditional_branch): Likewise.
2667 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
2668 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
2669 "falu2_turn_enabled_insn".
2670 (mips_builtin_branch_and_move): Strengthen locals "true_label",
2671 "done_label" from rtx to rtx_code_label *.
2672 (struct mips16_constant): Likewise for field "label".
2673 (mips16_add_constant): Likewise for return type.
2674 (mips16_emit_constants_1): Strengthen return type and param "insn"
2675 from rtx to rtx_insn *.
2676 (mips16_emit_constants): Likewise for param "insn".
2677 (mips16_insn_length): Likewise.
2678 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
2679 to rtx_code_label *.
2680 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
2681 from rtx to rtx_insn *.
2682 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
2683 "jump". Strengthen local "label" from rtx to rtx_code_label *.
2684 (r10k_simplify_address): Strengthen param "insn" and local
2685 "def_insn" from rtx to rtx_insn *.
2686 (r10k_safe_address_p): Strengthen param "insn" from rtx to
2687 rtx_insn *.
2688 (r10k_needs_protection_p_1): Update target type of cast of data
2689 from to rtx to rtx_insn *.
2690 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
2691 rtx * to rtx_insn **.
2692 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
2693 rtx_insn *.
2694 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
2695 (mips_call_expr_from_insn): Likewise for param "insn".
2696 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
2697 (mips_find_pic_call_symbol): Likewise for param "insn".
2698 (mips_annotate_pic_calls): Likewise for local "insn".
2699 (mips_sim_insn): Likewise for this variable.
2700 (struct mips_sim): Likewise for field "insn" within elements of
2701 last_set array.
2702 (mips_sim_wait_reg): Likewise for param "insn".
2703 (mips_sim_wait_regs): Likewise.
2704 (mips_sim_wait_units): Likewise.
2705 (mips_sim_wait_insn): Likewise.
2706 (mips_sim_issue_insn): Likewise.
2707 (mips_sim_finish_insn): Likewise.
2708 (mips_seq_time): Likewise for param "seq" and local "insn".
2709 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
2710 locals "first", "second".
2711 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
2712 "last", "last2", "next".
2713 (mips_avoid_hazard): Likewise for params "after", "insn".
2714 (mips_reorg_process_insns): Likewise for locals "insn",
2715 "last_insn", "subinsn", "next_insn".
2716 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
2717 (mips16_split_long_branches): Likewise for locals "insn" "jump",
2718 "jump_sequence".
2719 (mips_output_mi_thunk): Likewise for local "insn".
2720 (mips_final_prescan_insn): Likewise for param "insn".
2721
2722 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2723
2724 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
2725 Strengthen return type and local "insns" from rtx to rtx_insn *.
2726 (microblaze_legitimize_tls_address): Likewise for local "insns".
2727 (microblaze_block_move_loop): Strengthen local "label" from rtx
2728 to rtx_code_label *.
2729 (microblaze_expand_prologue): Strengthen two locals named "insn"
2730 from rtx to rtx_insn *.
2731 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
2732 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
2733 "insn". Strengthen locals "div_label", "div_end_label" from rtx
2734 to rtx_code_label *.
2735
2736 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2737
2738 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
2739 param from rtx to rtx_insn *.
2740 (mep_reuse_lo): Likewise for third param.
2741 (mep_use_post_modify_p): Likewise for first param.
2742 (mep_core_address_length): Likewise.
2743 (mep_cop_address_length): Likewise.
2744 (mep_final_prescan_insn): Likewise.
2745 (mep_store_data_bypass_p): Likewise for both params.
2746 (mep_mul_hilo_bypass_p): Likewise.
2747 (mep_ipipe_ldc_p): Likewise for param.
2748
2749 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
2750 (mep_rewrite_mult): Likewise.
2751 (mep_rewrite_mulsi3): Likewise.
2752 (mep_rewrite_maddsi3): Likewise.
2753 (mep_reuse_lo_p_1): Likewise.
2754 (mep_reuse_lo_p): Likewise.
2755 (mep_frame_expr): Likewise.
2756 (mep_make_parallel): Likewise for both params.
2757 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
2758 local "insn".
2759 (mep_use_post_modify_p): Likewise for param "insn".
2760 (mep_core_address_length): Likewise.
2761 (mep_cop_address_length): Likewise.
2762 (mep_reg_set_in_function): Likewise for local "insn".
2763 (mep_asm_without_operands_p): Likewise.
2764 (F): Likewise for return type and param "x".
2765 (add_constant): Likewise for local "insn".
2766 (maybe_dead_move): Likewise for return type and local "insn".
2767 (mep_expand_prologue): Likewise for local "insn".
2768 (mep_final_prescan_insn): Likewise for param "insn".
2769 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
2770 "next", "follow", "x".
2771 (mep_insert_repeat_label_last): Likewise for return type, param
2772 "last_insn", and locals "next", "prev". Strengthen param "label"
2773 from rtx to rtx_code_label *.
2774 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
2775 rtx_insn *.
2776 (struct mep_doloop_end): Likewise for fields "insn" and
2777 "fallthrough".
2778 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
2779 Strengthen local "repeat_label" from rtx to rtx_code_label *.
2780 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
2781 rtx_insn *.
2782 (mep_invert_branch): Likewise for params "insn" and "after".
2783 (mep_reorg_erepeat): Likewise for param "insns" and locals
2784 "insn", "prev", "new_last", "barrier", "user". Strengthen local
2785 "l" from rtx to rtx_code_label *.
2786 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
2787 from rtx to rtx_insn *.
2788 (mep_reorg_addcombine): Likewise for param "insns" and locals
2789 "i", "n".
2790 (add_sp_insn_p): Likewise for param "insn".
2791 (mep_reorg_noframe): Likewise for param "insns" and locals
2792 "start_frame_insn", "end_frame_insn", "next".
2793 (mep_reorg): Likewise for local "insns".
2794 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
2795 cast.
2796 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
2797 (mep_mul_hilo_bypass_p): Likewise.
2798 (mep_ipipe_ldc_p): Likewise for param "insn".
2799 (mep_make_bundle): Likewise for return type, param "cop" and local
2800 "insn", splitting out the latter into a new local "seq" for when it
2801 is a SEQUENCE rather than an insn.
2802 (core_insn_p): Likewise for param "insn".
2803 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
2804 "last", "first", "note", "prev", "core_insn".
2805
2806 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2807
2808 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
2809 rtx to rtx_insn *.
2810 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
2811 (m68k_final_prescan_insn): Likewise for first param.
2812
2813 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
2814 (m68k_set_frame_related): Likewise for param "insn".
2815 (output_btst): Likewise for param "insn".
2816 (m68k_final_prescan_insn): Likewise.
2817 (m68k_move_to_reg): Likewise for local "insn".
2818 (m68k_call_tls_get_addr): Likewise for local "insns".
2819 (m68k_call_m68k_read_tp): Likewise.
2820 (strict_low_part_peephole_ok): Likewise for param "first_insn".
2821 (m68k_output_mi_thunk): Likewise for local "insn".
2822
2823 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2824
2825 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
2826 first param from rtx to rtx_insn *.
2827 (iq2000_adjust_insn_length): Likewise.
2828 (iq2000_output_conditional_branch): Likewise.
2829 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
2830 "insn" and local "nop_insn".
2831 (iq2000_annotate_frame_insn): Likewise for param "insn".
2832 (iq2000_expand_prologue): Likewise for both locals "insn".
2833 (iq2000_adjust_insn_length): Likewise for param "insn".
2834 (iq2000_output_conditional_branch): Likewise.
2835
2836 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2837
2838 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
2839 "insns" from rtx to rtx_insn *.
2840 (ia64_emit_cond_move): Likewise for locals "insn", "first".
2841 (struct spill_fill_data): Likewise for field "init_after" and for
2842 elements of array field "prev_insn".
2843 (spill_restore_mem): Likewise for locals "insn", "first".
2844 (do_spill): Likewise for local "insn".
2845 (do_restore): Likewise.
2846 (ia64_expand_prologue): Likewise.
2847 (ia64_expand_epilogue): Likewise.
2848 (emit_insn_group_barriers): Likewise for locals "insn",
2849 "last_label".
2850 (emit_all_insn_group_barriers): Likewise for locals "insn",
2851 "last".
2852 (dfa_stop_insn): Likewise for this global.
2853 (dfa_pre_cycle_insn): Likewise.
2854 (ia64_nop): Likewise.
2855 (final_emit_insn_group_barriers): Likewise for locals "insn",
2856 "last".
2857 (emit_predicate_relation_info): Likewise for locals "head", "n",
2858 "insn", "b", "a".
2859 (ia64_reorg): Likewise for local "insn".
2860 (ia64_output_mi_thunk): Likewise.
2861 (expand_vec_perm_interleave_2): Likewise for local "seq".
2862
2863 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2864
2865 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
2866 param 1 "insn" from rtx to rtx_insn *.
2867 (ix86_use_lea_for_mov): Likewise.
2868 (ix86_avoid_lea_for_addr): Likewise.
2869 (ix86_split_lea_for_addr): Likewise.
2870 (ix86_lea_for_add_ok): Likewise.
2871 (ix86_output_call_insn): Likewise.
2872
2873 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
2874 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
2875 (ix86_output_function_epilogue): Likewise for locals "insn",
2876 "deleted_debug_label".
2877 (legitimize_tls_address): Likewise for local "insn".
2878 (get_some_local_dynamic_name): Likewise.
2879 (increase_distance): Likewise for params "prev", "next".
2880 (distance_non_agu_define_in_bb): Likewise for params "insn",
2881 "start" and locals "prev", "next".
2882 (distance_non_agu_define): Likewise for param "insn".
2883 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
2884 locals "next", "prev".
2885 (distance_agu_use): Likewise for param "insn".
2886 (ix86_lea_outperforms): Likewise.
2887 (ix86_ok_to_clobber_flags): Likewise.
2888 (ix86_avoid_lea_for_add): Likewise.
2889 (ix86_use_lea_for_mov): Likewise.
2890 (ix86_avoid_lea_for_addr): Likewise.
2891 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
2892 (ix86_split_lea_for_addr): Likewise for param "insn".
2893 (ix86_lea_for_add_ok): Likewise for param "insn".
2894 (ix86_expand_carry_flag_compare): Likewise for local
2895 "compare_seq".
2896 (ix86_expand_int_movcc): Likewise.
2897 (ix86_output_call_insn): Likewise for param "insn".
2898 (ix86_output_call_insn): Likewise for local "i".
2899 (x86_output_mi_thunk): Introduce local "insn", using it in place
2900 of "tmp" when dealing with insns.
2901 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
2902 "start".
2903 (ix86_pad_returns): Likewise for locals "ret", "prev".
2904 (ix86_count_insn_bb): Likewise for local "insn".
2905 (ix86_pad_short_function): Likewise for locals "ret", "insn".
2906 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
2907 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
2908 (expand_vec_perm_interleave2): Likewise for local "seq".
2909 (expand_vec_perm_vperm2f128_vblend): Likewise.
2910 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
2911 call to for_each_rtx with for_each_rtx_in_insn.
2912
2913 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2914
2915 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
2916 "label" from rtx to rtx_code_label *.
2917 (ix86_expand_prologue): Likewise.
2918 (ix86_expand_split_stack_prologue): Likewise for locals "label",
2919 "varargs_label".
2920 (ix86_split_idivmod): Likewise for locals "end_label" and
2921 "qimode_label".
2922 (ix86_expand_branch): Likewise for local "label2".
2923 (ix86_expand_aligntest): Likewise for return type and local "label".
2924 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
2925 "top_label".
2926 (expand_movmem_epilogue): Likewise for the various locals named
2927 "label".
2928 (expand_setmem_epilogue): Likewise.
2929 (expand_small_movmem_or_setmem): Likewise for local "label".
2930 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2931 Strengthen param "done_label" from rtx * to rtx_code_label **.
2932 Strengthen locals "loop_label" and "label" from rtx to
2933 rtx_code_label *.
2934 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2935 Likewise for locals "loop_label", "label".
2936 (ix86_expand_set_or_movmem): Likewise for locals "label",
2937 "jump_around_label", "hot_label".
2938 (ix86_expand_strlensi_unroll_1): Likewise for locals
2939 "align_2_label", align_3_label", "align_4_label", "end_0_label",
2940 "end_2_label".
2941 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
2942 (void ix86_emit_i387_log1p): Likewise for locals "label1",
2943 "label2", "jump_label".
2944 (ix86_expand_sse_compare_and_jump): Likewise for return type and
2945 local "label".
2946 (ix86_expand_lfloorceil): Likewise for local "label".
2947 (ix86_expand_rint): Likewise.
2948 (ix86_expand_floorceildf_32): Likewise.
2949 (ix86_expand_floorceil): Likewise.
2950 (ix86_expand_rounddf_32): Likewise.
2951 (ix86_expand_trunc): Likewise.
2952 (ix86_expand_truncdf_32): Likewise.
2953 (ix86_expand_round): Likewise.
2954
2955 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2956
2957 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
2958 first param from rtx to rtx_insn *.
2959 (h8300_insn_length_from_table): Likewise.
2960 * config/h8300/h8300.c (F): Likewise for return type and param
2961 "x".
2962 (Fpa): Add a checked cast to rtx_insn *.
2963 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
2964 rtx_insn *.
2965 (final_prescan_insn): Likewise for param "insn".
2966 (h8300_binary_length): Likewise.
2967 (h8300_insn_length_from_table): Likewise.
2968
2969 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2970
2971 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
2972 Strengthen first param "insn" from rtx to rtx_insn *.
2973
2974 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
2975 Likewise.
2976 (frame_insn): Likewise for return type. Introduce local "insn"
2977 for use in place of local "x" for use as an rtx_insn *.
2978 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
2979 (epiphany_expand_prologue): Likewise for local "insn".
2980 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
2981 * config/epiphany/resolve-sw-modes.c
2982 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
2983 "seq".
2984
2985 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2986
2987 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
2988 param from rtx to rtx_insn *.
2989 (c6x_final_prescan_insn): Likewise for first param.
2990
2991 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
2992 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
2993 (c6x_expand_compare): Strengthen local "insns" from rtx to
2994 rtx_insn *.
2995 (c6x_get_unit_specifier): Likewise for param "insn".
2996 (c6x_print_unit_specifier_field): Likewise.
2997 (c6x_final_prescan_insn): Likewise.
2998 (emit_add_sp_const): Likewise for local "insn".
2999 (c6x_expand_prologue): Likewise.
3000
3001 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3002
3003 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
3004 param 1 from rtx to rtx_insn *.
3005 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
3006 the various locals named "insn".
3007 (expand_epilogue_reg_restore): Likewise.
3008 (frame_related_constant_load): Likewise.
3009 (add_to_reg): Likewise.
3010 (emit_link_insn): Likewise.
3011 (do_link): Likewise.
3012 (expand_interrupt_handler_prologue): Likewise.
3013 (branch_dest): Likewise for param "branch".
3014 (asm_conditional_branch): Likewise for param "insn".
3015 (gen_one_bundle): Likewise for elements of param "slot" and local
3016 "t".
3017 (bfin_gen_bundles): Likewise for locals "insn", "next" and
3018 elements of local "slot".
3019 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
3020 "queue", "next_queue", "prev".
3021 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
3022 (add_sched_insns_for_speculation): Likewise for local "insn".
3023
3024 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3025
3026 * config/avr/avr-protos.h (output_movqi): Strengthen first param
3027 from rtx to rtx_insn *.
3028 (output_movhi): Likewise.
3029 (output_movsisf): Likewise.
3030 (avr_out_tstsi): Likewise.
3031 (avr_out_tsthi): Likewise.
3032 (avr_out_tstpsi): Likewise.
3033 (avr_out_compare): Likewise.
3034 (avr_out_compare64): Likewise.
3035 (avr_out_movpsi): Likewise.
3036 (ashlqi3_out): Likewise.
3037 (ashlhi3_out): Likewise.
3038 (ashlsi3_out): Likewise.
3039 (ashrqi3_out): Likewise.
3040 (ashrhi3_out): Likewise.
3041 (ashrsi3_out): Likewise.
3042 (lshrqi3_out): Likewise.
3043 (lshrhi3_out): Likewise.
3044 (lshrsi3_out): Likewise.
3045 (avr_out_ashlpsi3): Likewise.
3046 (avr_out_ashrpsi3): Likewise.
3047 (avr_out_lshrpsi3): Likewise.
3048 (avr_out_fract): Likewise.
3049 (avr_out_sbxx_branch): Likewise.
3050 (avr_out_round): Likewise.
3051 (avr_out_xload): Likewise.
3052 (avr_out_movmem): Likewise.
3053 (adjust_insn_length): Likewise.
3054 (avr_out_lpm): Likewise.
3055 (reg_unused_after): Likewise.
3056 (_reg_unused_after): Likewise.
3057 (avr_jump_mode): Likewise for second param.
3058 (jump_over_one_insn): Likewise for first param.
3059 (avr_final_prescan_insn): Likewise.
3060 (out_shift_with_cnt): Likewise for second param.
3061
3062 * config/avr/avr.c (get_sequence_length): Likewise for param
3063 "insns" and local "insn".
3064 (emit_push_byte): Likewise for local "insn".
3065 (emit_push_sfr): Likewise.
3066 (avr_prologue_setup_frame): Likewise for locals "insn",
3067 "fp_plus_insns", "sp_plus_insns".
3068 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
3069 "sp_plus_insns".
3070 (avr_jump_mode): Likewise for param "insn".
3071 (avr_final_prescan_insn): Likewise.
3072 (avr_find_unused_d_reg): Likewise.
3073 (avr_out_lpm_no_lpmx): Likewise.
3074 (avr_out_lpm): Likewise.
3075 (avr_out_xload): Likewise.
3076 (output_movqi): Likewise.
3077 (output_movhi): Likewise.
3078 (out_movqi_r_mr): Likewise.
3079 (out_movhi_r_mr): Likewise.
3080 (out_movsi_r_mr): Likewise.
3081 (out_movsi_mr_r): Likewise.
3082 (output_movsisf): Likewise.
3083 (avr_out_load_psi): Likewise.
3084 (avr_out_store_psi): Likewise.
3085 (avr_out_movpsi): Likewise.
3086 (out_movqi_mr_r): Likewise.
3087 (avr_out_movhi_mr_r_xmega): Likewise.
3088 (out_movhi_mr_r): Likewise.
3089 (compare_condition): Likewise for param "insn" and local "next".
3090 (compare_sign_p): Likewise for param "insn".
3091 (compare_diff_p): Likewise.
3092 (compare_eq_p): Likewise.
3093 (avr_out_compare): Likewise.
3094 (avr_out_compare64): Likewise.
3095 (avr_out_tsthi): Likewise.
3096 (avr_out_tstpsi): Likewise.
3097 (avr_out_tstsi): Likewise.
3098 (out_shift_with_cnt): Likewise.
3099 (ashlqi3_out): Likewise.
3100 (ashlhi3_out): Likewise.
3101 (avr_out_ashlpsi3): Likewise.
3102 (ashlsi3_out): Likewise.
3103 (ashrqi3_out): Likewise.
3104 (ashrhi3_out): Likewise.
3105 (avr_out_ashrpsi3): Likewise.
3106 (ashrsi3_out): Likewise.
3107 (lshrqi3_out): Likewise.
3108 (lshrhi3_out): Likewise.
3109 (avr_out_lshrpsi3): Likewise.
3110 (lshrsi3_out): Likewise.
3111 (avr_out_fract): Likewise.
3112 (avr_out_round): Likewise.
3113 (avr_adjust_insn_length): Likewise.
3114 (reg_unused_after): Likewise.
3115 (_reg_unused_after): Likewise.
3116 (avr_compare_pattern): Likewise.
3117 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
3118 and locals "branch1", "branch2", "insn2", "jump".
3119 (avr_reorg): Likewise for local "insn".
3120 (avr_2word_insn_p): Likewise for param "insn".
3121 (jump_over_one_insn_p): Likewise.
3122 (avr_out_sbxx_branch): Likewise.
3123 (avr_out_movmem): Likewise.
3124
3125 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3126
3127 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
3128 param from rtx to rtx_insn *.
3129 (thumb1_final_prescan_insn): Likewise.
3130 (thumb2_final_prescan_insn): Likewise.
3131
3132 * config/arm/arm.c (emit_set_insn): Strengthen return type from
3133 rtx to rtx_insn *.
3134 (struct minipool_node): Likewise for field "insn".
3135 (dump_minipool): Likewise for param "scan".
3136 (create_fix_barrier): Likewise for local "from". Strengthen local
3137 "label" from rtx to rtx_code_label *.
3138 (push_minipool_barrier): Strengthen param "insn" from rtx to
3139 rtx_insn *.
3140 (push_minipool_fix): Likewise.
3141 (note_invalid_constants): Likewise.
3142 (thumb2_reorg): Likewise for local "insn".
3143 (arm_reorg): Likewise.
3144 (thumb2_final_prescan_insn): Likewise for param
3145 "insn" and local "first_insn".
3146 (arm_final_prescan_insn): Likewise for param "insn" and locals
3147 "start_insn", "this_insn".
3148 (arm_debugger_arg_offset): Likewise for param "insn".
3149 (thumb1_emit_multi_reg_push): Likewise for return type and local
3150 "insn".
3151 (thumb1_final_prescan_insn): Likewise for param "insn".
3152 (thumb_far_jump_used_p): Likewise for local "insn".
3153 (thumb1_expand_prologue): Likewise.
3154 (arm_expand_epilogue_apcs_frame): Likewise.
3155 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
3156 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
3157 from rtx to rtx_code_label *.
3158 (arm_split_atomic_op): Likewise for local "label".
3159 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
3160
3161 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3162
3163 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
3164 first param from rtx to rtx_insn *.
3165 (arc_verify_short): Likewise.
3166 (arc_short_long): Likewise.
3167 (arc_need_delay): Likewise.
3168
3169 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
3170 "target_insn".
3171 (arc_ccfsm_advance): Likewise for param "insn" and locals
3172 "start_insn", "this_insn".
3173 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
3174 (arc_ccfsm_post_advance): Likewise for param "insn".
3175 (arc_next_active_insn): Likewise for return type and param "insn".
3176 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
3177 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
3178 (output_short_suffix): Likewise for local "insn".
3179 (arc_final_prescan_insn): Likewise for param "insn". Remove
3180 now-redundant checked cast.
3181 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
3182 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
3183 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
3184 for use where lc_set became an insn.
3185 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
3186 rtx to rtx_insn *.
3187 (arc_get_insn_variants): Likewise for local "prev".
3188 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
3189 "next".
3190 (arc_predicate_delay_insns): Likewise for local "insn".
3191 (arc_pad_return): Likewise for local "prev". For now, add a
3192 checked cast when extracting the insn from "final_sequence".
3193 (arc_short_long): Likewise for param "insn".
3194 (arc_need_delay): Likewise for param "insn" and local "next".
3195 (arc_label_align): Likewise for locals "prev", "next".
3196
3197 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3198
3199 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
3200 "insn" from rtx to rtx_insn *.
3201 (alpha_gp_save_rtx): Likewise for local "seq".
3202 (alpha_instantiate_decls): Likewise for local "top".
3203 (get_some_local_dynamic_name): Likewise for local "insn".
3204 (alpha_does_function_need_gp): Likewise.
3205 (set_frame_related_p): Likewise for return type and for locals
3206 "seq" and "insn".
3207 (emit_frame_store_1): Likewise for local "insn".
3208 (alpha_expand_prologue): Likewise for locals "insn", "seq".
3209 (alpha_end_function): Likewise for local "insn".
3210 (alpha_output_mi_thunk_osf): Likewise.
3211 (alphaev4_insn_pipe): Likewise for param "insn".
3212 (alphaev5_insn_pipe): Likewise.
3213 (alphaev4_next_group): Likewise for return type and param 1
3214 "insn".
3215 (alphaev5_next_group): Likewise.
3216 (alpha_align_insns_1): Likewise for return type and param 1 of
3217 callback param "next_group", and for locals "i", "next", "prev",
3218 "where", "where2", "insn".
3219
3220 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
3221
3222 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
3223 rather than modifying the stmt.
3224
3225 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3226
3227 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
3228 cgraph_state conversion.
3229
3230 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3231
3232 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3233 Strengthen local "insns" from rtx to rtx_insn *.
3234 (aarch64_set_frame_expr): Likewise for local "insn".
3235 (aarch64_save_or_restore_fprs): Likewise.
3236 (aarch64_save_or_restore_callee_save_registers): Likewise.
3237 (aarch64_expand_prologue): Likewise.
3238 (aarch64_expand_epilogue): Likewise.
3239 (aarch64_output_mi_thunk): Likewise.
3240 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
3241 "label2" from rtx to rtx_code_label *.
3242 (aarch64_split_atomic_op): Likewise for local "label".
3243
3244 2014-08-25 Martin Liska <mliska@suse.cz>
3245
3246 * cgraph.h (symtab_node):
3247 (bool needed_p (void)): created from decide_is_symbol_needed
3248 (bool referred_to_p (void)): created from referred_to_p
3249 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
3250 * cgraph.h (cgraph_node):
3251 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
3252 (void expand (void)): created from expand_function
3253 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
3254 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
3255 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
3256 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
3257 * cgraph.h (varpool_node):
3258 (static void add (tree decl): created from varpool_add_new_variable
3259 * cgraph.h (cgraph_edge):
3260 void remove (void);
3261 (void remove_caller (void)): created from cgraph_edge_remove_caller
3262 (void remove_callee (void)): created from cgraph_edge_remove_callee
3263 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
3264 created from cgraph_set_call_stmt
3265 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
3266 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
3267 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
3268 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
3269 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
3270 created from cgraph_speculative_call_info
3271 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
3272 int freq_scale, bool update_original)): created from cgraph_clone_edge
3273 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
3274 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
3275 (bool recursive_p (void)): created from cgraph_edge_recursive_p
3276 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
3277 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
3278 (static void rebuild_references (void)): created from cgraph_rebuild_references
3279 * cgraph.h (symbol_table):
3280 (create_reference): renamed from add_reference
3281 (maybe_create_reference): renamed from maybe_add_reference
3282 (void register_symbol (symtab_node *node)): new function
3283 (void clear_asm_symbols (void)): new function
3284 (void unregister (symtab_node *node)): new function
3285 (void release_symbol (cgraph_node *node, int uid)): new function
3286 (cgraph_node * allocate_cgraph_symbol (void)): new function
3287 (void initialize (void)): created from cgraph_init
3288 (symtab_node *first_symbol (void)):new function
3289 (asm_node *first_asm_symbol (void)):new function
3290 (symtab_node *first_defined_symbol (void)):new function
3291 (varpool_node *first_variable (void)):new function
3292 (varpool_node *next_variable (varpool_node *node)):new function
3293 (varpool_node *first_static_initializer (void)):new function
3294 (varpool_node *next_static_initializer (varpool_node *node)):new function
3295 (varpool_node *first_defined_variable (void)):new function
3296 (varpool_node *next_defined_variable (varpool_node *node)):new function
3297 (cgraph_node *first_defined_function (void)):new function
3298 (cgraph_node *next_defined_function (cgraph_node *node)):new function
3299 (cgraph_node *first_function (void)):new function
3300 (cgraph_node *next_function (cgraph_node *node)):new function
3301 (cgraph_node *first_function_with_gimple_body (void)):new function
3302 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
3303 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
3304 created from symtab_remove_unreachable_nodes
3305 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
3306 (void process_new_functions (void)): created from cgraph_process_new_functions
3307 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
3308 (bool output_variables (void)): created from varpool_node::output_variables
3309 (void output_asm_statements (void)): created from output_asm_statements
3310 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
3311 (void compile (void)): created from compile
3312 (void output_weakrefs (void)): created from output_weakrefs
3313 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
3314 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
3315 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
3316 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
3317 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
3318 created from cgraph_next_function_with_gimple_body
3319 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
3320 created from cgraph_remove_edge_removal_hook
3321 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
3322 created from cgraph_add_node_removal_hook
3323 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
3324 created from cgraph_remove_node_removal_hook
3325 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
3326 created from varpool_add_node_removal_hook
3327 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
3328 created from varpool_remove_node_removal_hook
3329 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
3330 created from cgraph_add_function_insertion_hook
3331 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
3332 created from cgraph_remove_function_insertion_hook
3333 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
3334 created from varpool_add_variable_insertion_hook
3335 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
3336 created from varpool_remove_variable_insertion_hook
3337 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
3338 created from cgraph_add_edge_duplication_hook
3339 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
3340 created from cgraph_remove_edge_duplication_hook
3341 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
3342 created from cgraph_add_node_duplication_hook
3343 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
3344 created from cgraph_remove_node_duplication_hook
3345 (void call_edge_removal_hooks (cgraph_edge *e)):
3346 created from cgraph_call_edge_removal_hooks
3347 (void call_cgraph_insertion_hooks (cgraph_node *node)):
3348 created from call_function_insertion_hooks
3349 (void call_cgraph_removal_hooks (cgraph_node *node)):
3350 created from cgraph_call_node_removal_hooks
3351 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
3352 created from cgraph_node::call_duplication_hooks
3353 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
3354 created from cgraph_call_edge_duplication_hooks
3355 (void call_varpool_removal_hooks (varpool_node *node)):
3356 created from varpool_call_node_removal_hooks
3357 (void call_varpool_insertion_hooks (varpool_node *node)):
3358 created from varpool_call_variable_insertion_hooks
3359 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
3360 created from insert_to_assembler_name_hash
3361 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
3362 created from unlink_from_assembler_name_hash
3363 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
3364 created from symtab_prevail_in_asm_name_hash
3365 (void symtab_initialize_asm_name_hash (void)):
3366 created from symtab_initialize_asm_name_hash
3367 (void change_decl_assembler_name (tree decl, tree name)):
3368 created from change_decl_assembler_name
3369 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
3370 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
3371 created from decl_assembler_name_hash
3372 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
3373 created from decl_assembler_name_equal
3374 (static hashval_t hash_node_by_assembler_name (const void *p)):
3375 created from hash_node_by_assembler_name
3376 (static int eq_assembler_name (const void *p1, const void *p2)):
3377 created from eq_assembler_name
3378
3379 2014-08-25 Marek Polacek <polacek@redhat.com>
3380
3381 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
3382
3383 2014-08-25 Petr Murzin <petr.murzin@intel.com>
3384
3385 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
3386 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
3387 SWI1248_AVX512BW mode iterator.
3388
3389 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
3390
3391 PR target/62111
3392 * config/sh/predicates.md (general_extend_operand): Disable
3393 TRUNCATE before reload completes.
3394
3395 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
3396
3397 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
3398
3399 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
3400
3401 PR target/61996
3402 * config/sh/sh.opt (musermode): Allow negative form.
3403 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
3404 targets that don't support it.
3405 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
3406 Document -mno-usermode option.
3407
3408 2014-08-24 Kito Cheng <kito@0xlab.org>
3409
3410 * system.h (CALLER_SAVE_PROFITABLE): Poison.
3411 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
3412 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
3413 * doc/tm.texi: Regenerate.
3414
3415 2014-08-24 Kito Cheng <kito@0xlab.org>
3416
3417 * ira.c: Fix typo in comment.
3418
3419 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
3420
3421 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
3422 Deprecate c++1y. Change language to reflect greater confidence in C++14.
3423
3424 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
3425
3426 PR target/62038
3427 * config/pa/pa.c (pa_output_function_epilogue): Don't set
3428 last_address when the current function is a thunk.
3429 (pa_asm_output_mi_thunk): When we don't have named sections or they
3430 are not being used, check that thunk can reach the stub table with a
3431 short branch.
3432
3433 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3434
3435 * web.c (union_match_dups): Strengthen param "insn" from rtx to
3436 rtx_insn *.
3437 (pass_web::execute): Likewise for local "insn".
3438
3439 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3440
3441 * var-tracking.c (struct micro_operation_def): Strengthen field
3442 "insn" from rtx to rtx_insn *.
3443 (struct emit_note_data_def): Likewise.
3444 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
3445 (vt_stack_adjustments): Likewise for local "insn".
3446 (adjust_insn): Likewise for param "insn".
3447 (val_store): Likewise.
3448 (val_resolve): Likewise.
3449 (struct count_use_info): Likewise for field "insn".
3450 (log_op_type): Likewise for param "insn".
3451 (reverse_op): Likewise.
3452 (prepare_call_arguments): Likewise.
3453 (add_with_sets): The initial param takes an insn, but we can't
3454 yet strengthen it from rtx to rtx_insn * since it's used as a
3455 cselib_record_sets_hook callback. For now rename initial param
3456 from "insn" to "uncast_insn", and introduce a local "insn" of
3457 the stronger rtx_insn * type, with a checked cast.
3458 (compute_bb_dataflow): Strengthen local "insn" from rtx to
3459 rtx_insn *.
3460 (emit_note_insn_var_location): Likewise.
3461 (emit_notes_for_changes): Likewise.
3462 (emit_notes_for_differences): Likewise.
3463 (next_non_note_insn_var_location): Likewise for return type and
3464 for param "insn".
3465 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
3466 (vt_initialize): Likewise for local "insn".
3467 (delete_debug_insns): Likewise for locals "insn" and "next".
3468
3469 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3470
3471 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
3472 rtx_insn *.
3473 (mark_constant_pool): Likewise for local "insn".
3474
3475 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3476
3477 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
3478 rtx to rtx_insn *.
3479 (dead_debug_promote_uses): Likewise.
3480 (dead_debug_insert_temp): Likewise.
3481
3482 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3483
3484 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
3485 from const_rtx to const rtx_insn *.
3486 (store_killed_after): Likewise. Strengthen locals "last", "act"
3487 from rtx to rtx_insn *.
3488 (store_killed_before): Strengthen param "insn" from const_rtx to
3489 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
3490 (find_moveable_store): Strengthen param "insn" from rtx to
3491 rtx_insn *.
3492 (compute_store_table): Likewise for local "insn".
3493 (insert_insn_start_basic_block): Likewise for param "insn" and
3494 locals "prev", "before", "insn".
3495 (insert_store): For now, add a checked cast to rtx_insn * on the
3496 result of gen_move_insn.
3497 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
3498 to rtx_insn *.
3499 (replace_store_insn): Likewise. For now, add a checked cast to
3500 rtx_insn * on the result of gen_move_insn.
3501
3502 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3503
3504 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
3505 rtx_insn *.
3506 (expand_sjlj_dispatch_table): Likewise.
3507
3508 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3509
3510 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
3511 "insn" from rtx to rtx_insn *.
3512
3513 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3514
3515 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
3516 "insn" from rtx to rtx_insn *.
3517 (dup_block_and_redirect): Likewise for param 3 "before".
3518
3519 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
3520 from rtx to rtx_insn *.
3521 (move_insn_for_shrink_wrap): Likewise.
3522 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
3523 (dup_block_and_redirect): Likewise for param "before" and local
3524 "insn".
3525 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
3526 "end".
3527 (convert_to_simple_return): Likewise for local "start".
3528
3529 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
3530 Strengthen local "insn" from rtx to rtx_insn *, for use when
3531 invoking requires_stack_frame_p.
3532
3533 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3534
3535 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
3536 rtx_insn *.
3537 (speculate_expr): Likewise for locals "orig_insn_rtx",
3538 "spec_insn_rtx".
3539 (eq_transformed_insns): Likewise for locals "i1", "i2".
3540 (check_for_new_jump): Likewise for return type and local "end".
3541 (find_new_jump): Likewise for return type and local "jump".
3542 (sel_split_edge): Likewise for local "jump".
3543 (sel_create_recovery_block): Likewise.
3544 (sel_redirect_edge_and_branch_force): Likewise.
3545 (sel_redirect_edge_and_branch): Likewise.
3546
3547 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3548
3549 * sel-sched.c (substitute_reg_in_expr): Strengthen local
3550 "new_insn" from rtx to rtx_insn *.
3551 (create_insn_rtx_with_rhs): Likewise for return type and for local
3552 "insn_rtx".
3553 (create_insn_rtx_with_lhs): Likewise.
3554 (create_speculation_check): Likewise for local "insn_rtx".
3555 (implicit_clobber_conflict_p): Likewise for local "insn".
3556 (get_expr_cost): Likewise.
3557 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
3558 (move_cond_jump): Likewise for locals "next", "prev", "link",
3559 "head", "from", "to".
3560
3561 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3562
3563 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
3564 "next" from rtx to rtx_insn *.
3565 (find_conditional_protection): Likewise for local "next".
3566 (is_conditionally_protected): Likewise for local "insn1".
3567 (is_pfree): Likewise for locals "insn1", "insn2".
3568
3569 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3570
3571 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
3572 from rtx to rtx_insn *.
3573
3574 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
3575 locals "insn1", "insn2" from rtx to rtx_insn *.
3576 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
3577 locals "insn", "prev", "last_jump", "next_tail".
3578 (schedule_ebb): Likewise for params "head", "tail".
3579 (schedule_ebbs): Likewise for locals "tail", "head".
3580
3581 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
3582 to rtx_insn on "last_insn" in one of the invocations of
3583 schedule_ebb.
3584
3585 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3586
3587 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
3588 "elem", "insn" from rtx to rtx_insn *.
3589 (change_spec_dep_to_hard): Likewise.
3590 (get_back_and_forw_lists): Likewise for local "con".
3591 (sd_add_dep): Likewise for locals "elem", "insn".
3592 (sd_resolve_dep): Likewise for locals "pro", "con".
3593 (sd_unresolve_dep): Likewise.
3594 (sd_delete_dep): Likewise.
3595 (chain_to_prev_insn): Likewise for local "pro".
3596 (find_inc): Likewise for locals "pro", "con".
3597
3598 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3599
3600 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
3601 to rtx_insn *.
3602 (reg_set_between_p): Strengthen local "insn" from const_rtx to
3603 const rtx_insn *.
3604 (modified_between_p): Strengthen local "insn" from rtx to
3605 rtx_insn *.
3606 (remove_reg_equal_equiv_notes_for_regno): Likewise.
3607 (keep_with_call_p): Strengthen local "i2" from const_rtx to
3608 const rtx_insn *.
3609
3610 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3611
3612 * resource.c (next_insn_no_annul): Strengthen local "next" from
3613 rtx to rtx_insn *.
3614 (mark_referenced_resources): Likewise for local "insn".
3615
3616 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3617
3618 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
3619 to rtx_insn *.
3620 (find_reloads): Likewise for param 1.
3621 (subst_reloads): Likewise for sole param.
3622 (find_equiv_reg): Likwise for param 2.
3623 (regno_clobbered_p): Likwise for param 2.
3624 (reload): Likewise for param 1.
3625
3626 * caller-save.c (save_call_clobbered_regs): Strengthen local
3627 "insn" from rtx to rtx_insn *.
3628 (insert_one_insn): Likewise for local "insn".
3629
3630 * reload.c (this_insn): Likewise for this global.
3631 (find_reloads): Likewise for param "insn".
3632 (find_reloads_toplev): Likewise.
3633 (find_reloads_address): Likewise.
3634 (subst_reg_equivs): Likewise.
3635 (update_auto_inc_notes): Likewise.
3636 (find_reloads_address_1): Likewise.
3637 (find_reloads_subreg_address): Likewise.
3638 (subst_reloads): Likewise.
3639 (find_equiv_reg): Likewise, also for local "p".
3640 (regno_clobbered_p): Likewise for param "insn".
3641
3642 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
3643 array.
3644 (spill_reg_store): Likewise for the elements of this array.
3645 (remove_init_insns): Likewise for local "equiv_insn".
3646 (will_delete_init_insn_p): Likewise for param "insn".
3647 (reload): Likewise for param ""first" and local "insn".
3648 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
3649 rtx_insn *.
3650 (calculate_elim_costs_all_insns): Likewise.
3651 (delete_caller_save_insns): Likewise.
3652 (spill_failure): Likewise for param "insn".
3653 (delete_dead_insn): Likewise.
3654 (set_label_offsets): Likewise.
3655 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
3656 "prev_insn".
3657 (elimination_costs_in_insn): Likewise for param "insn".
3658 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
3659 when referring to an insn.
3660 (set_initial_label_offsets): Likewise.
3661 (set_offsets_for_label): Strengthen param "insn" from rtx to
3662 rtx_insn *.
3663 (init_eliminable_invariants): Likewise for param "first" and local
3664 "insn".
3665 (fixup_eh_region_note): Likewise for param "insn".
3666 (reload_as_needed): Likewise for locals "prev", "insn",
3667 "old_next", "old_prev", "next".
3668 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
3669 "last".
3670 (reload_inheritance_insn): Strengthen elements of this array from
3671 rtx to rtx_insn *.
3672 (failed_reload): Likewise for param "insn".
3673 (choose_reload_regs): Likewise for local "insn". Replace use of
3674 NULL_RTX with NULL when referring to an insn.
3675 (input_reload_insns): Strengthen elements of this array from rtx
3676 to rtx_insn *.
3677 (other_input_address_reload_insns): Likewise for this global.
3678 (other_input_reload_insns): Likewise for this global.
3679 (input_address_reload_insns): Likwise for the elements of this
3680 array.
3681 (inpaddr_address_reload_insns): Likwise for the elements of this
3682 array.
3683 (output_reload_insns): Likewise for the elements of this array.
3684 (output_address_reload_insns): Likewise for the elements of this
3685 array.
3686 (outaddr_address_reload_insns): Likewise for the elements of this
3687 array.
3688 (operand_reload_insns): Likewise for this global.
3689 (other_operand_reload_insns): Likewise for this global.
3690 (other_output_reload_insns): Likewise for the elements of this
3691 array.
3692 (new_spill_reg_store): Likewise for the elements of this
3693 array.
3694 (emit_input_reload_insns): Likewise for locals "insn", "temp".
3695 Strengthen local "where" from rtx * to rtx_insn **.
3696 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
3697 from rtx to rtx_insn *.
3698 (do_input_reload): Likewise for local "insn".
3699 (do_output_reload): Likewise for local "insn".
3700 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
3701 (emit_insn_if_valid_for_reload): Likewise for return type and local
3702 "last". Add checked cast to rtx_insn when returning "insn" since
3703 this has been through emit_insn.
3704 (gen_reload): Strengthen return type and locals "last", "insn", "set"
3705 from rtx to rtx_insn *. Add checked cast to rtx_insn when
3706 returning "insn" since it's been through
3707 emit_insn_if_valid_for_reload at this point.
3708 (delete_output_reload): Strengthen param "insn" and locals
3709 "output_reload_insn", "i2" from rtx to rtx_insn *.
3710 (delete_address_reloads): Likewise for params "dead_insn",
3711 "current_insn" and locals "prev", "next".
3712 (delete_address_reloads_1): Likewise for params "dead_insn",
3713 "current_insn" and locals "prev", "i2".
3714 (inc_for_reload): Likewise for locals "last", "add_insn".
3715 (add_auto_inc_notes): Strengthen param "insn" from rtx to
3716 rtx_insn *.
3717
3718 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
3719 param of this duplicate of the prototype from reload.h
3720
3721 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3722
3723 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
3724 rtx to rtx_insn *.
3725 (regstat_bb_compute_calls_crossed): Likewise.
3726
3727 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3728
3729 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
3730 to rtx_insn *.
3731 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
3732 with an insn.
3733 (regrename_analyze): Strengthen local "insn" from rtx to
3734 rtx_insn *.
3735 (scan_rtx_reg): Likewise for param "insn".
3736 (scan_rtx_address): Likewise.
3737 (scan_rtx): Likewise.
3738 (restore_operands): Likewise.
3739 (record_out_operands): Likewise.
3740 (build_def_use): Likewise for local "insn". Replace use of
3741 NULL_RTX with NULL when dealing with an insn.
3742
3743 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3744
3745 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
3746 * reginfo.c (reg_scan): Likewise, also for local "insn".
3747 (reg_scan_mark_refs): Likewise for param "insn".
3748 (init_subregs_of_mode): Likewise for local "insn".
3749
3750 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3751
3752 * regcprop.c (struct queued_debug_insn_change): Strengthen field
3753 "insn" from rtx to rtx_insn *.
3754 (replace_oldest_value_reg): Likewise for param "insn".
3755 (replace_oldest_value_addr): Likewise.
3756 (replace_oldest_value_mem): Likewise.
3757 (apply_debug_insn_changes): Likewise for local "last_insn".
3758 (copyprop_hardreg_forward_1): Likewise for local "insn".
3759
3760 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3761
3762 * reg-stack.c (next_flags_user): Strengthen return type and param
3763 "insn" from rtx to rtx_insn *.
3764 (straighten_stack): Likewise for param "insn".
3765 (check_asm_stack_operands): Likewise.
3766 (remove_regno_note): Likewise.
3767 (emit_pop_insn): Likewise for return type, param "insn", local
3768 "pop_insn".
3769 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
3770 "limit" from rtx to rtx_insn *.
3771 (swap_to_top): Likewise for param "insn".
3772 (move_for_stack_reg): Likewise.
3773 (move_nan_for_stack_reg): Likewise.
3774 (swap_rtx_condition): Likewise.
3775 (compare_for_stack_reg): Likewise.
3776 (subst_all_stack_regs_in_debug_insn): Likewise.
3777 (subst_stack_regs_pat): Likewise, and local "insn2".
3778 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
3779 rtx_insn *.
3780 (subst_stack_regs): Likewise.
3781 (change_stack): Likewise.
3782 (convert_regs_1): Likewise for locals "insn", "next".
3783
3784 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3785
3786 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
3787 rtx_insn *.
3788 (combine_set_extension): Likewise for param "curr_insn".
3789 (transform_ifelse): Likewise for param "def_insn".
3790 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
3791 from vec<rtx> * to vec<rtx_insn *> *.
3792 (is_cond_copy_insn): Likewise for param "insn".
3793 (struct ext_state): Strengthen the four vec fields from vec<rtx>
3794 to vec<rtx_insn *>.
3795 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
3796 local "def_insn" from rtx to rtx_insn *.
3797 (get_sub_rtx): Likewise for param "def_insn".
3798 (merge_def_and_ext): Likewise.
3799 (combine_reaching_defs): Likewise.
3800 (add_removable_extension): Likewise for param "insn".
3801 (find_removable_extensions): Likewise for local "insn".
3802 (find_and_remove_re): Likewise for locals "curr_insn" and
3803 "def_insn". Strengthen locals "reinsn_del_list" and
3804 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
3805
3806 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3807
3808 * recog.c (split_insn): Strengthen param "insn" and locals
3809 "first", "last" from rtx to rtx_insn *.
3810 (split_all_insns): Likewise for locals "insn", "next".
3811 (split_all_insns_noflow): Likewise.
3812
3813 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3814
3815 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
3816 const rtx_insn *.
3817 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3818 (debug_rtx_find): Likewise for param 1 "x".
3819
3820 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
3821 const_rtx to const rtx_insn *. Likewise for local "insn".
3822 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3823 (debug_rtx_find): Likewise for param 1 "x".
3824 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
3825 from const_rtx to const rtx_insn * within the appropriate cases of
3826 the switch statement.
3827
3828 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
3829 Strengthen local "insns" from rtx to rtx_insn * since this is
3830 passed to a call to debug_rtx_list.
3831
3832 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3833
3834 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
3835 to rtx_insn *.
3836
3837 * function.c (stack_protect_epilogue): Add checked cast to
3838 rtx_insn for now when invoking predict_insn_def.
3839
3840 * predict.c (predict_insn): Strengthen param "insn" from rtx to
3841 rtx_insn *.
3842 (predict_insn_def): Likewise.
3843 (rtl_predict_edge): Likewise for local "last_insn".
3844 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
3845 const rtx_insn *.
3846 (combine_predictions_for_insn): Strengthen param "insn" from rtx
3847 to rtx_insn *.
3848 (bb_estimate_probability_locally): Likewise for local "last_insn".
3849 (expensive_function_p): Likewise for local "insn".
3850
3851 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
3852 local "jmp", since this is used when invoking predict_insn_def.
3853
3854 2014-08-22 Marek Polacek <polacek@redhat.com>
3855
3856 PR c++/62199
3857 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
3858
3859 2014-08-22 Marek Polacek <polacek@redhat.com>
3860
3861 PR c/61271
3862 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
3863 a comparison in parens.
3864 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
3865 in parens.
3866
3867 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3868
3869 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
3870 rtx_insn *.
3871
3872 * cprop.c (fis_get_condition): Likewise.
3873
3874 * postreload.c (reload_cse_regs): Likewise for param "first".
3875 (reload_cse_simplify): Likewise for param "insn".
3876 (reload_cse_regs_1): Likewise for local "insn".
3877 (reload_cse_simplify_set): Likewise for param "insn".
3878 (reload_cse_simplify_operands): Likewise.
3879 (struct reg_use): Likewise for field "insn".
3880 (reload_combine_purge_insn_uses): Likewise for param "insn".
3881 (fixup_debug_insns): Likewise for params "from", "to" and local
3882 "insn".
3883 (try_replace_in_use): Likewise for local "use_insn".
3884 (reload_combine_recognize_const_pattern): Likewise for param
3885 "insn" and locals "add_moved_after_insn", "use_insn".
3886 (reload_combine_recognize_pattern): Likewise for param "insn" and
3887 local "prev".
3888 (reload_combine): Likewise for locals "insn", "prev".
3889 (reload_combine_note_use): Likewise for param "insn".
3890 (move2add_use_add2_insn): Likewise.
3891 (move2add_use_add3_insn): Likewise.
3892 (reload_cse_move2add): Likewise, also for local "next".
3893 (move2add_note_store): Likewise for local "insn".
3894
3895 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3896
3897 * postreload-gcse.c (struct occr): Strengthen field "insn" from
3898 rtx to rtx_insn *.
3899 (struct unoccr): Likewise.
3900 (struct modifies_mem): Likewise.
3901 (alloc_mem): Likewise for local "insn".
3902 (insert_expr_in_table): Likewise for param "insn".
3903 (dump_expr_hash_table_entry): Likewise for local "insn".
3904 (oprs_unchanged_p): Likewise for param "insn".
3905 (load_killed_in_block_p): Likewise for local "setter".
3906 (record_last_reg_set_info): Likewise for param "insn".
3907 (record_last_reg_set_info_regno): Likewise.
3908 (record_last_mem_set_info): Likewise.
3909 (record_last_set_info): Likewise for local "last_set_insn".
3910 (record_opr_changes): Likewise for param "insn".
3911 (hash_scan_set): Likewise.
3912 (compute_hash_table): Likewise for local "insn".
3913 (get_avail_load_store_reg): Likewise for param "insn".
3914 (eliminate_partially_redundant_load): Likewise, also for locals
3915 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
3916 RTX for insns.
3917 (eliminate_partially_redundant_loads): Likewise for local "insn".
3918
3919 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3920
3921 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
3922 rtx to rtx_insn *.
3923 (expand_binop): Likewise for locals "entry_last", "last", "insns"
3924 (expand_twoval_unop): Likewise for locals entry_last", "last".
3925 (expand_twoval_binop): Likewise.
3926 (expand_twoval_binop_libfunc): Likewise for local "insns".
3927 (widen_leading): Likewise for local "last".
3928 (expand_doubleword_clz): Likewise for local "seq". Strengthen
3929 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
3930 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
3931 (expand_parity): Likewise for locals "last" and "seq".
3932 (expand_ffs): Likewise for local "seq". Strengthen local
3933 "nonzero_label" from rtx to rtx_code_label *.
3934 (expand_absneg_bit): Strengthen local "insns" from rtx to
3935 rtx_insn *.
3936 (expand_unop_direct): Likewise for local "last".
3937 (expand_unop): Likewise for locals "last", "insns".
3938 (expand_abs_nojump): Likewise for local "last".
3939 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
3940 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
3941 rtx_insn *.
3942 (expand_copysign_absneg): Strengthen local "label" from rtx to
3943 rtx_code_label *.
3944 (expand_copysign_bit): Strengthen local "insns" from rtx to
3945 rtx_insn *.
3946 (struct no_conflict_data): Likewise for fields "first", "insn".
3947 (emit_libcall_block_1): Likewise for param "insns" and locals
3948 "next", "last", "insn".
3949 (emit_libcall_block): For now, add a checked cast to rtx_insn *
3950 on "insns" when invoking emit_libcall_block_1. Ultimately we
3951 want to strengthen insns itself.
3952 (prepare_cmp_insn): Strengthen local "last" from rtx to
3953 rtx_insn *.
3954 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
3955 (prepare_float_lib_cmp): Likewise for local "insns".
3956 (emit_conditional_move): Likewise for local "last".
3957 (emit_conditional_add): Likewise.
3958 (have_sub2_insn): Likewise for local "seq".
3959 (expand_float): Likewise for local "insns". Strengthen locals
3960 "label", "neglabel" from rtx to rtx_code_label *.
3961 (expand_fix): Likewise for locals "last", "insn", "insns" (to
3962 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
3963 (expand_fixed_convert): Likewise for local "insns" (to
3964 rtx_insn *).
3965 (expand_sfix_optab): Likewise for local "last".
3966 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
3967 to rtx_code_label *.
3968 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
3969 from rtx to rtx_insn *.
3970 (expand_atomic_fetch_op): Likewise for local "insn".
3971 (maybe_legitimize_operand_same_code): Likewise for local "last".
3972 (maybe_legitimize_operands): Likewise.
3973
3974 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3975
3976 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
3977 "insn" from rtx to rtx_insn *.
3978 (ps_rtl_insn): Likewise for return type.
3979 (doloop_register_get): Likewise for params "head", "tail" and
3980 locals "insn", "first_insn_not_to_check".
3981 (schedule_reg_move): Likewise for local "this_insn".
3982 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
3983 of gen_move_insn for now.
3984 (reset_sched_times): Strengthen local "insn" from rtx to
3985 rtx_insn *.
3986 (permute_partial_schedule): Likewise.
3987 (duplicate_insns_of_cycles): Likewise for local "u_insn".
3988 (dump_insn_location): Likewise for param "insn".
3989 (loop_canon_p): Likewise for local "insn".
3990 (sms_schedule): Likewise.
3991 (print_partial_schedule): Likewise.
3992 (ps_has_conflicts): Likewise.
3993
3994 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3995
3996 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
3997 "tailp" from rtx * to rtx_insn **.
3998
3999 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
4000 from rtx to rtx_insn *.
4001 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
4002 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
4003 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
4004 rtx to rtx_insn *.
4005 * modulo-sched.c (const_iteration_count): Strengthen return type
4006 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
4007 use of NULL_RTX with NULL when working with insns.
4008 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
4009 to rtx_insn *.
4010 (sms_schedule): Likewise.
4011 * sched-rgn.c (init_ready_list): Likewise, also for locals
4012 "src_head" and "src_next_tail".
4013 (compute_block_dependences): Likewise.
4014 (free_block_dependencies): Likewise.
4015 (debug_rgn_dependencies): Likewise.
4016 (free_rgn_deps): Likewise.
4017 (compute_priorities): Likewise.
4018 (schedule_region): Likewise.
4019 * sel-sched.c (find_ebb_boundaries): Likewise.
4020
4021 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
4022 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
4023
4024 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4025
4026 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
4027 from rtx to rtx_insn *.
4028 (new_seginfo): Likewise for param "insn".
4029 (create_pre_exit): Likewise for locals "last_insn",
4030 "before_return_copy", "return_copy".
4031 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
4032 "mode_set".
4033
4034 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4035
4036 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
4037 from rtx to rtx_insn *.
4038 (lra_push_insn): Likewise for 1st param.
4039 (lra_push_insn_and_update_insn_regno_info): Likewise.
4040 (lra_pop_insn): Likewise for return type.
4041 (lra_invalidate_insn_data): Likewise for 1st param.
4042 (lra_set_insn_deleted): Likewise.
4043 (lra_delete_dead_insn): Likewise.
4044 (lra_process_new_insns): Likewise for first 3 params.
4045 (lra_set_insn_recog_data): Likewise for 1st param.
4046 (lra_update_insn_recog_data): Likewise.
4047 (lra_set_used_insn_alternative): Likewise.
4048 (lra_invalidate_insn_regno_info): Likewise.
4049 (lra_update_insn_regno_info): Likewise.
4050 (lra_former_scratch_operand_p): Likewise.
4051 (lra_eliminate_regs_1): Likewise.
4052 (lra_get_insn_recog_data): Likewise.
4053
4054 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
4055 rtx to rtx_insn *.
4056
4057 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
4058 "mv1" and "mv2".
4059 (substitute_within_insn): New.
4060 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
4061 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
4062 Replace call to "substitute" with call to substitute_within_insn.
4063
4064 * lra-constraints.c (curr_insn): Strengthen from rtx to
4065 rtx_insn *.
4066 (get_equiv_with_elimination): Likewise for param "insn".
4067 (match_reload): Strengthen params "before" and "after" from rtx *
4068 to rtx_insn **.
4069 (emit_spill_move): Likewise for return type. Add a checked cast
4070 to rtx_insn * on result of gen_move_insn for now.
4071 (check_and_process_move): Likewise for local "before". Replace
4072 NULL_RTX with NULL when referring to insns.
4073 (process_addr_reg): Strengthen params "before" and "after" from
4074 rtx * to rtx_insn **.
4075 (insert_move_for_subreg): Likewise.
4076 (simplify_operand_subreg): Strengthen locals "before" and "after"
4077 from rtx to rtx_insn *.
4078 (process_address_1): Strengthen params "before" and "after" from
4079 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
4080 rtx to rtx_insn *.
4081 (process_address): Strengthen params "before" and "after" from
4082 rtx * to rtx_insn **.
4083 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
4084 (curr_insn_transform): Strengthen locals "before" and "after"
4085 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
4086 to insns.
4087 (loc_equivalence_callback): Update cast of "data", changing
4088 resulting type from rtx to rtx_insn *.
4089 (substitute_pseudo_within_insn): New.
4090 (inherit_reload_reg): Strengthen param "insn" from rtx to
4091 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
4092 NULL when referring to insns. Add a checked cast to rtx_insn *
4093 when using usage_insn to invoke lra_update_insn_regno_info.
4094 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
4095 likewise for locals "restore", "save". Add checked casts to
4096 rtx_insn * when using usage_insn to invoke
4097 lra_update_insn_regno_info and lra_process_new_insns. Replace
4098 NULL_RTX with NULL when referring to insns.
4099 (split_if_necessary): Strengthen param "insn" from rtx to
4100 rtx_insn *.
4101 (update_ebb_live_info): Likewise for params "head", "tail" and local
4102 "prev_insn".
4103 (get_last_insertion_point): Likewise for return type and local "insn".
4104 (get_live_on_other_edges): Likewise for local "last".
4105 (inherit_in_ebb): Likewise for params "head", "tail" and locals
4106 "prev_insn", "next_insn", "restore".
4107 (remove_inheritance_pseudos): Likewise for local "prev_insn".
4108 (undo_optional_reloads): Likewise for local "insn".
4109
4110 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
4111 "insn".
4112 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
4113 insns.
4114 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
4115 rtx_insn *.
4116 (spill_pseudos): Likewise for local "insn".
4117 (init_elimination): Likewise.
4118 (process_insn_for_elimination): Likewise for param "insn".
4119
4120 * lra-lives.c (curr_insn): Likewise.;
4121
4122 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
4123 (remove_pseudos): Likewise for param "insn".
4124 (spill_pseudos): Likewise for local "insn".
4125 (lra_final_code_change): Likewise for locals "insn", "curr".
4126
4127 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
4128 (lra_set_insn_deleted): Likewise.
4129 (lra_delete_dead_insn): Likewise, and for local "prev".
4130 (new_insn_reg): Likewise for param "insn".
4131 (lra_set_insn_recog_data): Likewise.
4132 (lra_update_insn_recog_data): Likewise.
4133 (lra_set_used_insn_alternative): Likewise.
4134 (get_insn_freq): Likewise.
4135 (invalidate_insn_data_regno_info): Likewise.
4136 (lra_invalidate_insn_regno_info): Likewise.
4137 (lra_update_insn_regno_info): Likewise.
4138 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
4139 vec<rtx_insn *>.
4140 (lra_push_insn_1): Strengthen param "insn" from rtx to
4141 rtx_insn *.
4142 (lra_push_insn): Likewise.
4143 (lra_push_insn_and_update_insn_regno_info): Likewise.
4144 (lra_pop_insn): Likewise for return type and local "insn".
4145 (push_insns): Likewise for params "from", "to", and local "insn".
4146 (setup_sp_offset): Likewise for params "from", "last" and locals
4147 "before", "insn".
4148 (lra_process_new_insns): Likewise for params "insn", "before",
4149 "after" and local "last".
4150 (struct sloc): Likewise for field "insn".
4151 (lra_former_scratch_operand_p): Likewise for param "insn".
4152 (remove_scratches): Likewise for locals "insn", "last".
4153 (check_rtl): Likewise for local "insn".
4154 (add_auto_inc_notes): Likewise for param "insn".
4155 (update_inc_notes): Likewise for local "insn".
4156 (lra): Replace NULL_RTX with NULL when referring to insn.
4157
4158 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4159
4160 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
4161 to rtx_insn *.
4162 (resolve_reg_notes): Likewise.
4163 (resolve_simple_move): Likewise for return type, param "insn", and
4164 locals "insns", "minsn".
4165 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
4166 (resolve_use): Likewise.
4167 (resolve_debug): Likewise.
4168 (find_decomposable_shift_zext): Likewise.
4169 (resolve_shift_zext): Likewise for return type, param "insn", and
4170 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
4171 (decompose_multiword_subregs): Likewise for local "insn",
4172 "orig_insn", "decomposed_shift", "end".
4173
4174 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4175
4176 * basic-block.h (basic_block split_edge_and_insert): Strengthen
4177 param "insns" from rtx to rtx_insn *.
4178
4179 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
4180 rtx to rtx_insn *.
4181 (struct iv_to_split): Likewise.
4182 (loop_exit_at_end_p): Likewise for local "insn".
4183 (split_edge_and_insert): Likewise for param "insns".
4184 (compare_and_jump_seq): Likewise for return type, param "cinsn",
4185 and locals "seq", "jump".
4186 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
4187 "branch_code"; update invocations of compare_and_jump_seq to
4188 eliminate NULL_RTX in favor of NULL.
4189 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
4190 rtx to rtx_insn *.
4191 (reset_debug_uses_in_loop): Likewise.
4192 (analyze_insn_to_expand_var): Likewise for param "insn".
4193 (analyze_iv_to_split_insn): Likewise.
4194 (analyze_insns_in_loop): Likewise for local "insn".
4195 (insert_base_initialization): Likewise for param
4196 "insn" and local "seq".
4197 (split_iv): Likewise for param "insn" and local "seq".
4198 (expand_var_during_unrolling): Likewise for param "insn".
4199 (insert_var_expansion_initialization): Likewise for local "seq".
4200 (combine_var_copies_in_loop_exit): Likewise.
4201 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
4202 "insn".
4203 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
4204 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
4205 "next".
4206
4207 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4208
4209 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
4210 rtx_insn *.
4211 (iv_analyze_result): Likewise.
4212 (iv_analyze_expr): Likewise.
4213 (biv_p): Likewise.
4214
4215 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
4216 local "def_insn" from rtx to rtx_insn *.
4217 (get_biv_step_1): Likewise for local "insn".
4218 (iv_analyze_expr): Likewise for param "insn".
4219 (iv_analyze_def): Likewise for local "insn".
4220 (iv_analyze_op): Likewise for param "insn".
4221 (iv_analyze): Likewise.
4222 (iv_analyze_result): Likewise.
4223 (biv_p): Likewise.
4224 (suitable_set_for_replacement): Likewise.
4225 (simplify_using_initial_values): Likewise for local "insn".
4226 (iv_number_of_iterations): Likewise for param "insn".
4227 (check_simple_exit): Add checked cast to rtx_insn when invoking
4228 iv_number_of_iterations for now (until get_condition is
4229 strengthened).
4230
4231 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
4232 "insn" from rtx to rtx_insn *.
4233 (analyze_insns_in_loop): Likewise for local "insn".
4234
4235 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4236
4237 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
4238 to rtx_insn *.
4239 (struct invariant): Likewise.
4240 (hash_invariant_expr_1): Likewise for param "insn".
4241 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
4242 (find_exits): Likewise for local "insn".
4243 (create_new_invariant): Likewise for param "insn".
4244 (check_dependencies): Likewise.
4245 (find_invariant_insn): Likewise.
4246 (record_uses): Likewise.
4247 (find_invariants_insn): Likewise.
4248 (find_invariants_bb): Likewise for local "insn".
4249 (get_pressure_class_and_nregs): Likewise for param "insn".
4250 (calculate_loop_reg_pressure): Likewise for local "insn".
4251
4252 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4253
4254 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
4255 to rtx_insn *.
4256 (add_test): Likewise for locals "seq", "jump".
4257 (doloop_modify): Likewise for locals "sequence", "jump_insn".
4258
4259 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4260
4261 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
4262 rtx_insn *.
4263 (rebuild_jump_labels_chain): Likewise for param "chain".
4264
4265 * cfgexpand.c (pass_expand::execute): Add checked cast to
4266 rtx_insn * when calling rebuild_jump_labels_chain in region where
4267 we know e->insns.r is non-NULL.
4268
4269 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
4270 rtx_insn *.
4271 (rebuild_jump_labels): Likewise.
4272 (rebuild_jump_labels_chain): Likewise for param "chain".
4273 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
4274 (init_label_info): Likewise for param "f".
4275 (maybe_propagate_label_ref): Likewise for params "jump_insn",
4276 "prev_nonjump_insn".
4277 (mark_all_labels): Likewise for param "f" and locals "insn",
4278 "prev_nonjump_insn".
4279
4280 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4281
4282 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
4283 from rtx to rtx_insn *insn.
4284 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
4285 (ira_add_allocno_copy): Likewise.
4286 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
4287 rtx to rtx_insn *.
4288 (ira_create_copy): Likewise.
4289 (ira_add_allocno_copy): Likewise.
4290 (create_bb_allocnos): Likewise for local "insn".
4291 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
4292 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
4293 process_regs_for_copy for rtx_insn * param.
4294 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
4295 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
4296 process_regs_for_copy for rtx_insn * param.
4297 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
4298 * ira-costs.c (record_reg_classes): Likewise for param "insn".
4299 (record_operand_costs): Likewise.
4300 (scan_one_insn): Likewise for return type, and for param "insn".
4301 (process_bb_for_costs): Likewise for local "insn".
4302 (process_bb_node_for_hard_reg_moves): Likewise.
4303 * ira-emit.c (struct move): Likewise for field "insn".
4304 (create_move): Eliminate use of NULL_RTX when dealing with an
4305 rtx_insn *.
4306 (emit_move_list): Strengthen return type and locals "result",
4307 "insn" from rtx to rtx_insn *insn.
4308 (emit_moves): Likewise for locals "insns", "tmp".
4309 (ira_emit): Likewise for local "insn".
4310 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
4311 "insn".
4312 (find_call_crossed_cheap_reg): Likewise.
4313 (process_bb_node_lives): Likewise for local "insn".
4314 * ira.c (decrease_live_ranges_number): Likewise.
4315 (compute_regs_asm_clobbered): Likewise.
4316 (build_insn_chain): Likewise.
4317 (find_moveable_pseudos): Likewise, also locals "def_insn",
4318 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
4319 to rtx_insn **. Add a checked cast when assigning from
4320 "closest_use" into closest_uses array in a region where we know
4321 it's a non-NULL insn.
4322 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
4323 to rtx_insn *.
4324 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
4325 "last_interesting_insn", "uin".
4326 (move_unallocated_pseudos): Likewise for locals "def_insn",
4327 "move_insn", "newinsn".
4328
4329 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4330
4331 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
4332 Strengthen locals "done_label", "do_error" from rtx to
4333 rtx_code_label *.
4334 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
4335 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
4336 rtx_code_label *.
4337 (ubsan_expand_si_overflow_neg_check): Likewise for locals
4338 "done_label", "do_error" to rtx_code_label * and local "last" to
4339 rtx_insn *.
4340 (ubsan_expand_si_overflow_mul_check): Likewise for locals
4341 "done_label", "do_error", "large_op0", "small_op0_large_op1",
4342 "one_small_one_large", "both_ops_large", "after_hipart_neg",
4343 "after_lopart_neg", "do_overflow", "hipart_different" to
4344 rtx_code_label * and local "last" to rtx_insn *.
4345
4346 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4347
4348 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
4349 "insn" and "move_insn" from rtx to rtx_insn *.
4350
4351 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4352
4353 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
4354 rtx_insn *.
4355 (cheap_bb_rtx_cost_p): Likewise.
4356 (first_active_insn): Likewise for return type and local "insn".
4357 (last_active_insn): Likewise for return type and locals "insn",
4358 "head".
4359 (struct noce_if_info): Likewise for fields "jump", "insn_a",
4360 "insn_b".
4361 (end_ifcvt_sequence): Likewise for return type and locals "insn",
4362 "seq".
4363 (noce_try_move): Likewise for local "seq".
4364 (noce_try_store_flag): Likewise.
4365 (noce_try_store_flag_constants): Likewise.
4366 (noce_try_addcc): Likewise.
4367 (noce_try_store_flag_mask): Likewise.
4368 (noce_try_cmove): Likewise.
4369 (noce_try_minmax): Likewise.
4370 (noce_try_abs): Likewise.
4371 (noce_try_sign_mask): Likewise.
4372 (noce_try_bitop): Likewise.
4373 (noce_can_store_speculate_p): Likewise for local "insn".
4374 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
4375 seq".
4376 (check_cond_move_block): Likewise for local "insn".
4377 (cond_move_convert_if_block): Likewise.
4378 (cond_move_process_if_block): Likewise for locals "seq",
4379 "loc_insn".
4380 (noce_find_if_block): Likewise for local "jump".
4381 (merge_if_block): Likewise for local "last".
4382 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
4383 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
4384 (block_has_only_trap): Likewise for return type and local "trap".
4385 (find_if_case_1): Likewise for local "jump".
4386 (dead_or_predicable): Likewise for locals "head", "end", "jump",
4387 "insn".
4388
4389 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4390
4391 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
4392 "last_insn", "loop_end" from rtx to rtx_insn *.
4393
4394 * hw-doloop.c (scan_loop): Likewise for local "insn".
4395 (discover_loop): Likewise for param "tail_insn".
4396 (discover_loops): Likewise for local "tail".
4397
4398 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
4399 cast to rtx_insn * when assigning from an rtx local to a
4400 hwloop_info's "last_insn" field.
4401
4402 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4403
4404 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
4405 (add_delay_dependencies): Strengthen local "pro" from rtx to
4406 rtx_insn *.
4407 (recompute_todo_spec): Likewise.
4408 (dep_cost_1): Likewise for locals "insn", "used".
4409 (schedule_insn): Likewise for local "dbg".
4410 (schedule_insn): Likewise for locals "pro", "next".
4411 (unschedule_insns_until): Likewise for local "con".
4412 (restore_pattern): Likewise for local "next".
4413 (estimate_insn_tick): Likewise for local "pro".
4414 (resolve_dependencies): Likewise for local "next".
4415 (fix_inter_tick): Likewise.
4416 (fix_tick_ready): Likewise for local "pro".
4417 (add_to_speculative_block): Likewise for locals "check", "twin",
4418 "pro".
4419 (sched_extend_bb): Likewise for locals "end", "insn".
4420 (init_before_recovery): Likewise for local "x".
4421 (sched_create_recovery_block): Likewise for local "barrier".
4422 (create_check_block_twin): Likewise for local "pro".
4423 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
4424 "consumer".
4425 (unlink_bb_notes): Update for change to type of bb_header.
4426 Strengthen locals "prev", "label", "note", "next" from rtx to
4427 rtx_insn *.
4428 (clear_priorities): Likewise for local "pro".
4429
4430 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4431
4432 * gcse.c (struct occr): Strengthen field "insn" from rtx to
4433 rtx_insn *.
4434 (test_insn): Likewise for this global.
4435 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
4436 const rtx_insn *.
4437 (oprs_anticipatable_p): Likewise.
4438 (oprs_available_p): Likewise.
4439 (insert_expr_in_table): Strengthen param "insn" from rtx to
4440 rtx_insn *.
4441 (hash_scan_set): Likewise.
4442 (hash_scan_clobber): Likewise.
4443 (hash_scan_call): Likewise.
4444 (hash_scan_insn): Likewise.
4445 (compute_hash_table_work): Likewise for local "insn".
4446 (process_insert_insn): Likewise for return type and local "pat".
4447 (insert_insn_end_basic_block): Likewise for locals "new_insn",
4448 "pat", "pat_end", "maybe_cc0_setter".
4449 (pre_edge_insert): Likewise for local "insn".
4450 (pre_insert_copy_insn): Likewise for param "insn".
4451 (pre_insert_copies): Likewise for local "insn".
4452 (struct set_data): Likewise for field "insn".
4453 (single_set_gcse): Likewise for param "insn".
4454 (gcse_emit_move_after): Likewise.
4455 (pre_delete): Likewise for local "insn".
4456 (update_bb_reg_pressure): Likewise for param "from" and local
4457 "insn".
4458 (should_hoist_expr_to_dom): Likewise for param "from".
4459 (hoist_code): Likewise for local "insn".
4460 (get_pressure_class_and_nregs): Likewise for param "insn".
4461 (calculate_bb_reg_pressure): Likewise for local "insn".
4462 (compute_ld_motion_mems): Likewise.
4463
4464 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4465
4466 * genpeep.c (main): Rename param back from "uncast_ins1" to
4467 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
4468 checked cast.
4469
4470 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
4471
4472 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4473
4474 PR target/62195
4475 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
4476 documentation to state it is only for VSX operations.
4477
4478 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
4479 constraint only active if VSX.
4480
4481 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
4482 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
4483 (lfiwzx): Likewise.
4484
4485 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4486
4487 * fwprop.c (single_def_use_dom_walker::before_dom_children):
4488 Strengthen local "insn" from rtx to rtx_insn *.
4489 (use_killed_between): Likewise for param "target_insn".
4490 (all_uses_available_at): Likewise for param "target_insn" and
4491 local "next".
4492 (update_df_init): Likewise for params "def_insn", "insn".
4493 (update_df): Likewise for param "insn".
4494 (try_fwprop_subst): Likewise for param "def_insn" and local
4495 "insn".
4496 (free_load_extend): Likewise for param "insn".
4497 (forward_propagate_subreg): Likewise for param "def_insn" and
4498 local "use_insn".
4499 (forward_propagate_asm): Likewise for param "def_insn" and local
4500 "use_insn".
4501 (forward_propagate_and_simplify): Likewise for param "def_insn"
4502 and local "use_insn".
4503 (forward_propagate_into): Likewise for locals "def_insn" and
4504 "use_insn".
4505
4506 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4507
4508 * function.c (emit_initial_value_sets): Strengthen local "seq"
4509 from rtx to rtx_insn *.
4510 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
4511 local "seq".
4512 (instantiate_virtual_regs): Likewise for local "insn".
4513 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
4514 (reorder_blocks_1): Likewise for param "insns" and local "insn".
4515 (expand_function_end): Likewise for locals "insn" and "seq".
4516 (epilogue_done): Likewise for local "insn".
4517 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
4518 "last", "trial".
4519 (reposition_prologue_and_epilogue_notes): Likewise for locals
4520 "insn", "last", "note", "first".
4521 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
4522 (pass_match_asm_constraints::execute): Likewise for local "insn".
4523
4524 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4525
4526 * output.h (final_scan_insn): Strengthen return type from rtx to
4527 rtx_insn *.
4528 (final_forward_branch_p): Likewise for param.
4529 (current_output_insn): Likewise for this global.
4530
4531 * final.c (rtx debug_insn): Likewise for this variable.
4532 (current_output_insn): Likewise.
4533 (get_attr_length_1): Rename param "insn" to "uncast_insn",
4534 adding "insn" back in as an rtx_insn * with a checked cast, so
4535 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
4536 first param.
4537 (compute_alignments): Strengthen local "label" from rtx to
4538 rtx_insn *.
4539 (shorten_branches): Rename param from "first" to "uncast_first",
4540 introducing a new local rtx_insn * "first" using a checked cast to
4541 effectively strengthen "first" from rtx to rtx_insn * without
4542 affecting the type signature. Strengthen locals "insn", "seq",
4543 "next", "label" from rtx to rtx_insn *.
4544 (change_scope): Strengthen param "orig_insn" and local "insn" from
4545 rtx to rtx_insn *.
4546 (final_start_function): Rename param from "first" to "uncast_first",
4547 introducing a new local rtx_insn * "first" using a checked cast to
4548 effectively strengthen "first" from rtx to rtx_insn * without
4549 affecting the type signature. Strengthen local "insn" from rtx to
4550 rtx_insn *.
4551 (dump_basic_block_info): Strengthen param "insn" from rtx to
4552 rtx_insn *.
4553 (final): Rename param from "first" to "uncast_first",
4554 introducing a new local rtx_insn * "first" using a checked cast to
4555 effectively strengthen "first" from rtx to rtx_insn * without
4556 affecting the type signature. Strengthen locals "insn", "next"
4557 from rtx to rtx_insn *.
4558 (output_alternate_entry_point): Strengthen param "insn" from rtx to
4559 rtx_insn *.
4560 (call_from_call_insn): Strengthen param "insn" from rtx to
4561 rtx_call_insn *.
4562 (final_scan_insn): Rename param from "insn" to "uncast_insn",
4563 introducing a new local rtx_insn * "insn" using a checked cast to
4564 effectively strengthen "insn" from rtx to rtx_insn * without
4565 affecting the type signature. Strengthen return type and locals
4566 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
4567 now-redundant checked cast to rtx_insn * from both invocations of
4568 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
4569 introducing a local "call_insn" for use when invoking
4570 call_from_call_insn.
4571 (notice_source_line): Strengthen param "insn" from rtx to
4572 rtx_insn *.
4573 (leaf_function_p): Likewise for local "insn".
4574 (final_forward_branch_p): Likewise.
4575 (leaf_renumber_regs): Likewise for param "first".
4576 (rest_of_clean_state): Likewise for locals "insn" and "next".
4577 (self_recursive_call_p): Likewise for param "insn".
4578 (collect_fn_hard_reg_usage): Likewise for local "insn".
4579 (get_call_fndecl): Likewise for param "insn".
4580 (get_call_cgraph_rtl_info): Likewise.
4581 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
4582 introducing a new local rtx_insn * "insn" using a checked cast to
4583 effectively strengthen "insn" from rtx to rtx_insn * without
4584 affecting the type signature.
4585
4586 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
4587 cast when assigning from param "insn" to current_output_insn.
4588 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
4589 so that we can assign it back to current_output_insn.
4590
4591 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4592
4593 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
4594 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
4595 atmxt540s and atmxt540sreva devices.
4596 * config/avr/avr-tables.opt: Regenerate.
4597 * config/avr/t-multilib: Regenerate.
4598 * doc/avr-mmcu.texi: Regenerate.
4599
4600 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4601
4602 * expr.c (convert_move): Strengthen local "insns" from rtx to
4603 rtx_insn *.
4604 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
4605 "top_label" from rtx to rtx_code_label *.
4606 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
4607 rtx_insn *.
4608 (emit_single_push_insn): Likewise for locals "prev", "last".
4609 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
4610 to rtx_code_label *.
4611 (store_constructor): Likewise for locals "loop_start", "loop_end".
4612 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
4613 rtx_insn *.
4614 (expand_expr_real_2): Likewise.
4615 (expand_expr_real_1): Strengthen local "label" from rtx to
4616 rtx_code_label *.
4617
4618 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4619
4620 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
4621 from rtx to rtx_insn *.
4622 (store_bit_field_1): Likewise.
4623 (extract_bit_field_1): Likewise.
4624 (expand_mult_const): Likewise for local "insns".
4625 (expmed_mult_highpart): Strengthen local "label" from rtx to
4626 rtx_code_label *.
4627 (expand_smod_pow2): Likewise.
4628 (expand_sdiv_pow2): Likewise.
4629 (expand_divmod): Strengthen locals "last", "insn" from rtx to
4630 rtx_insn *. Strengthen locals "label", "label1", "label2",
4631 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
4632 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
4633 (emit_store_flag): Likewise.
4634 (emit_store_flag_force): Strengthen local "label" from rtx to
4635 rtx_code_label *.
4636 (do_cmp_and_jump): Likewise for param "label".
4637
4638 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4639
4640 * explow.c (force_reg): Strengthen local "insn" from rtx to
4641 rtx_insn *.
4642 (adjust_stack_1): Likewise.
4643 (allocate_dynamic_stack_space): Likewise. Strengthen locals
4644 "final_label", "available_label", "space_available" from rtx to
4645 rtx_code_label *.
4646 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
4647 (anti_adjust_stack_and_probe): Likewise.
4648
4649 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4650
4651 * except.h (sjlj_emit_function_exit_after): Strengthen param
4652 "after" from rtx to rtx_insn *. This is only called with
4653 result of get_last_insn (in function.c) so type-change should be
4654 self-contained.
4655
4656 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
4657 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
4658 to rtx_insn *. These fields are only used from except.c so this
4659 type-change should be self-contained to this patch.
4660
4661 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
4662 local "last" from rtx to rtx_insn *.
4663 (dw2_build_landing_pads): Likewise for local "seq".
4664 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
4665 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
4666 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
4667 rtx to rtx_insn *.
4668 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
4669 to rtx_insn *.
4670 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
4671 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
4672 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
4673 referring to an insn. Strengthen local "dispatch_label" from
4674 rtx to rtx_code_label *.
4675 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
4676 rtx_insn *.
4677 (expand_eh_return): Strengthen local "around_label" from
4678 rtx to rtx_code_label *.
4679 (convert_to_eh_region_ranges): Strengthen locals "iter",
4680 "last_action_insn", "first_no_action_insn",
4681 "first_no_action_insn_before_switch",
4682 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
4683
4684 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4685
4686 * dwarf2out.c (last_var_location_insn): Strengthen this variable
4687 from rtx to rtx_insn *.
4688 (cached_next_real_insn): Likewise.
4689 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
4690 working with insns.
4691 (dwarf2out_var_location): Strengthen locals "next_real",
4692 "next_note", "expected_next_loc_note", "last_start", "insn" from
4693 rtx to rtx_insn *.
4694
4695 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4696
4697 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
4698 from rtx to rtx_insn *.
4699 (create_pseudo_cfg): Likewise for local "insn".
4700
4701 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4702
4703 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
4704 from rtx to rtx_insn *.
4705 (df_bb_regno_last_def_find): Likewise.
4706
4707 * df-problems.c (df_rd_bb_local_compute): Likewise.
4708 (df_lr_bb_local_compute): Likewise.
4709 (df_live_bb_local_compute): Likewise.
4710 (df_chain_remove_problem): Likewise.
4711 (df_chain_create_bb): Likewise.
4712 (df_word_lr_bb_local_compute): Likewise.
4713 (df_remove_dead_eq_notes): Likewise for param "insn".
4714 (df_note_bb_compute): Likewise for local "insn".
4715 (simulate_backwards_to_point): Likewise.
4716 (df_md_bb_local_compute): Likewise.
4717
4718 * df-scan.c (df_scan_free_bb_info): Likewise.
4719 (df_scan_start_dump): Likewise.
4720 (df_scan_start_block): Likewise.
4721 (df_install_ref_incremental): Likewise for local "insn".
4722 (df_insn_rescan_all): Likewise.
4723 (df_reorganize_refs_by_reg_by_insn): Likewise.
4724 (df_reorganize_refs_by_insn_bb): Likewise.
4725 (df_recompute_luids): Likewise.
4726 (df_bb_refs_record): Likewise.
4727 (df_update_entry_exit_and_calls): Likewise.
4728 (df_bb_verify): Likewise.
4729
4730 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4731
4732 * ddg.h (struct ddg_node): Strengthen fields "insn" and
4733 "first_note" from rtx to rtx_insn *.
4734 (get_node_of_insn): Likewise for param 2 "insn".
4735 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4736
4737 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
4738 rtx_insn *.
4739 (mem_write_insn_p): Likewise.
4740 (mem_access_insn_p): Likewise.
4741 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4742 (def_has_ccmode_p): Likewise for param "insn".
4743 (add_cross_iteration_register_deps): Likewise for locals
4744 "def_insn" and "use_insn".
4745 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
4746 (build_intra_loop_deps): Likewise for local "src_insn".
4747 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
4748 to rtx_insn *.
4749 (get_node_of_insn): Likewise for param "insn".
4750
4751 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4752
4753 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
4754 (deletable_insn_p): Strengthen param "insn" from rtx to
4755 rtx_insn *. Add checked cast to rtx_call_insn when invoking
4756 find_call_stack_args, since this is guarded by CALL_P (insn).
4757 (marked_insn_p): Strengthen param "insn" from rtx to
4758 rtx_insn *.
4759 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
4760 invoking find_call_stack_args, since this is guarded by
4761 CALL_P (insn).
4762 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
4763 rtx_insn *; we know this is an insn since this was called by
4764 mark_nonreg_stores.
4765 (mark_nonreg_stores_2): Likewise.
4766 (mark_nonreg_stores): Strengthen param "insn" from rtx to
4767 rtx_insn *.
4768 (find_call_stack_args): Strengthen param "call_insn" from rtx to
4769 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
4770 to rtx_insn *.
4771 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
4772 from rtx to rtx_insn *.
4773 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
4774 "next", "ref_insn".
4775 (delete_unmarked_insns): Likewise for locals "insn", "next".
4776 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
4777 (mark_reg_dependencies): Likewise for param "insn".
4778 (rest_of_handle_ud_dce): Likewise for local "insn".
4779 (word_dce_process_block): Likewise.
4780 (dce_process_block): Likewise.
4781
4782 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4783
4784 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
4785 from rtx to rtx_insn *.
4786 (struct change_cc_mode_args): Likewise for field "insn".
4787 (this_insn): Strengthen from rtx to rtx_insn *.
4788 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
4789 with insn.
4790 (validate_canon_reg): Strengthen param "insn" from rtx to
4791 rtx_insn *.
4792 (canon_reg): Likewise.
4793 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
4794 dealing with insn.
4795 (record_jump_equiv): Strengthen param "insn" from rtx to
4796 rtx_insn *.
4797 (try_back_substitute_reg): Likewise, also for locals "prev",
4798 "bb_head".
4799 (find_sets_in_insn): Likewise for param "insn".
4800 (canonicalize_insn): Likewise.
4801 (cse_insn): Likewise. Add a checked cast.
4802 (invalidate_from_clobbers): Likewise for param "insn".
4803 (invalidate_from_sets_and_clobbers): Likewise.
4804 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
4805 dealing with insn.
4806 (cse_prescan_path): Strengthen local "insn" from rtx to
4807 rtx_insn *.
4808 (cse_extended_basic_block): Likewise for locals "insn" and
4809 "prev_insn".
4810 (cse_main): Likewise for param "f".
4811 (check_for_label_ref): Likewise for local "insn".
4812 (set_live_p): Likewise for second param ("insn").
4813 (insn_live_p): Likewise for first param ("insn") and for local
4814 "next".
4815 (cse_change_cc_mode_insn): Likewise for first param "insn".
4816 (cse_change_cc_mode_insns): Likewise for first and second params
4817 "start" and "end".
4818 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
4819 and "end".
4820 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
4821 "cc_src_insn".
4822
4823 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4824 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4825 Anna Tikhonova <anna.tikhonova@intel.com>
4826 Ilya Tocar <ilya.tocar@intel.com>
4827 Andrey Turetskiy <andrey.turetskiy@intel.com>
4828 Ilya Verbin <ilya.verbin@intel.com>
4829 Kirill Yukhin <kirill.yukhin@intel.com>
4830 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4831
4832 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
4833 New.
4834 * config/i386/sse.md
4835 (define_mode_iterator VI248_AVX2): Delete.
4836 (define_mode_iterator VI2_AVX2_AVX512BW): New.
4837 (define_mode_iterator VI48_AVX2): Ditto.
4838 (define_insn <shift_insn><mode>3): Delete.
4839 (define_insn "<shift_insn><mode>3<mask_name>" with
4840 VI2_AVX2_AVX512BW): New.
4841 (define_insn "<shift_insn><mode>3<mask_name>" with
4842 VI48_AVX2): Ditto.
4843
4844 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4845 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4846 Anna Tikhonova <anna.tikhonova@intel.com>
4847 Ilya Tocar <ilya.tocar@intel.com>
4848 Andrey Turetskiy <andrey.turetskiy@intel.com>
4849 Ilya Verbin <ilya.verbin@intel.com>
4850 Kirill Yukhin <kirill.yukhin@intel.com>
4851 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4852
4853 * config/i386/sse.md
4854 (define_mode_iterator VI4F_BRCST32x2): New.
4855 (define_mode_attr 64x2_mode): Ditto.
4856 (define_mode_attr 32x2mode): Ditto.
4857 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
4858 with VI4F_BRCST32x2): Ditto.
4859 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
4860 with V16FI mode iterator): Ditto.
4861 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4862 with V16FI): Ditto.
4863 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4864 with VI8F_BRCST64x2): Ditto.
4865
4866 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4867 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4868 Anna Tikhonova <anna.tikhonova@intel.com>
4869 Ilya Tocar <ilya.tocar@intel.com>
4870 Andrey Turetskiy <andrey.turetskiy@intel.com>
4871 Ilya Verbin <ilya.verbin@intel.com>
4872 Kirill Yukhin <kirill.yukhin@intel.com>
4873 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4874
4875 * config/i386/sse.md
4876 (define_mode_iterator VI8_AVX512VL): New.
4877 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
4878
4879 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
4880
4881 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
4882 (define_mode_iterator V48_AVX512VL): New.
4883 (define_mode_iterator V12_AVX512VL): Ditto.
4884 (define_insn <avx512>_load<mode>_mask): Split into two similar
4885 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
4886 Refactor output template.
4887 (define_insn "<avx512>_store<mode>_mask"): Ditto.
4888
4889 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4890
4891 * cprop.c (struct occr): Strengthen field "insn" from rtx to
4892 rtx_insn *.
4893 (reg_available_p): Likewise for param "insn".
4894 (insert_set_in_table): Likewise.
4895 (hash_scan_set): Likewise.
4896 (hash_scan_insn): Likewise.
4897 (make_set_regs_unavailable): Likewise.
4898 (compute_hash_table_work): Likewise for local "insn".
4899 (reg_not_set_p): Strengthen param "insn" from const_rtx to
4900 const rtx_insn *.
4901 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
4902 (try_replace_reg): Likewise.
4903 (find_avail_set): Likewise.
4904 (cprop_jump): Likewise for params "setcc", "jump".
4905 (constprop_register): Likewise for param "insn".
4906 (cprop_insn): Likewise.
4907 (do_local_cprop): Likewise.
4908 (local_cprop_pass): Likewise for local "insn".
4909 (bypass_block): Likewise for params "setcc" and "jump".
4910 (bypass_conditional_jumps): Likewise for locals "setcc" and
4911 "insn".
4912 (one_cprop_pass): Likewise for local "insn".
4913
4914 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4915
4916 * compare-elim.c (struct comparison_use): Strengthen field "insn"
4917 from rtx to rtx_insn *.
4918 (struct comparison): Likewise, also for field "prev_clobber".
4919 (conforming_compare): Likewise for param "insn".
4920 (arithmetic_flags_clobber_p): Likewise.
4921 (find_flags_uses_in_insn): Likewise.
4922 (find_comparison_dom_walker::before_dom_children): Likewise for
4923 locals "insn", "next", "last_clobber".
4924 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
4925
4926 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4927
4928 * combine-stack-adj.c (struct csa_reflist): Strengthen field
4929 "insn" from rtx to rtx_insn *.
4930 (single_set_for_csa): Likewise for param "insn".
4931 (record_one_stack_ref): Likewise.
4932 (try_apply_stack_adjustment): Likewise.
4933 (struct record_stack_refs_data): Likewise for field "insn".
4934 (maybe_move_args_size_note): Likewise for params "last" and "insn".
4935 (prev_active_insn_bb): Likewise for return type and param "insn".
4936 (next_active_insn_bb): Likewise.
4937 (force_move_args_size_note): Likewise for params "prev" and "last"
4938 and locals "test", "next_candidate", "prev_candidate".
4939 (combine_stack_adjustments_for_block): Strengthen locals
4940 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
4941 rtx_insn *.
4942
4943 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4944
4945 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
4946 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
4947 (subst_insn): Likewise for this variable.
4948 (added_links_insn): Likewise.
4949 (struct insn_link): Likewise for field "insn".
4950 (alloc_insn_link): Likewise for param "insn".
4951 (struct undobuf): Likewise for field "other_insn".
4952 (find_single_use): Likewise for param "insn" and local "next".
4953 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
4954 (delete_noop_moves): Likewise for locals "insn", "next".
4955 (create_log_links): Likewise for locals "insn", "use_insn".
4956 Strengthen local "next_use" from rtx * to rtx_insn **.
4957 (insn_a_feeds_b): Likewise for params "a", "b".
4958 (combine_instructions): Likewise for param "f" and locals "insn",
4959 "next", "prev", "first", "last_combined_insn", "link", "link1",
4960 "temp". Replace use of NULL_RTX with NULL when referring to
4961 insns.
4962 (setup_incoming_promotions): Likewise for param "first"
4963 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
4964 (can_combine_p): Likewise for params "insn", "i3", "pred",
4965 "pred2", "succ", "succ2" and for local "p".
4966 (combinable_i3pat): Likewise for param "i3".
4967 (cant_combine_insn_p): Likewise for param "insn".
4968 (likely_spilled_retval_p): Likewise.
4969 (adjust_for_new_dest): Likewise.
4970 (update_cfg_for_uncondjump): Likewise, also for local "insn".
4971 (try_combine): Likewise for return type and for params "i3", "i2",
4972 "i1", "i0", "last_combined_insn", and for locals "insn",
4973 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
4974 "i0_insn". Eliminate local "tem" in favor of new locals
4975 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
4976 checked cast for now to rtx_insn * on the return type of
4977 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
4978 insns.
4979 (find_split_point): Strengthen param "insn" from rtx to
4980 rtx_insn *.
4981 (simplify_set): Likewise for local "other_insn".
4982 (recog_for_combine): Likewise for param "insn".
4983 (record_value_for_reg): Likewise.
4984 (record_dead_and_set_regs_1): Likewise for local
4985 "record_dead_insn".
4986 (record_dead_and_set_regs): Likewise for param "insn".
4987 (record_promoted_value): Likewise.
4988 (check_promoted_subreg): Likewise.
4989 (get_last_value_validate): Likewise.
4990 (reg_dead_at_p): Likewise.
4991 (move_deaths): Likewise for param "to_insn".
4992 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
4993 and locals "place", "place2", "cc0_setter". Eliminate local "tem
4994 in favor of new locals "tem_note" and "tem_insn", the latter being
4995 an rtx_insn *.
4996 (distribute_links): Strengthen locals "place", "insn" from rtx to
4997 rtx_insn *.
4998
4999 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5000
5001 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
5002 than a const_rtx.
5003 (can_delete_label_p): Require a const rtx_code_label * rather than
5004 a const_rtx.
5005 (delete_insn): Add checked cast to rtx_code_label * when we know
5006 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
5007 rtx to rtx_insn *.
5008 (delete_insn_chain): Strengthen locals "prev" and "current" from
5009 rtx to rtx_insn *. Add a checked cast when assigning from
5010 "finish" (strengthening the params will come later). Add a
5011 checked cast to rtx_note * in region where we know
5012 NOTE_P (current).
5013 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
5014 rtx_insn *.
5015 (compute_bb_for_insn): Likewise.
5016 (free_bb_for_insn): Likewise for local "insn".
5017 (compute_bb_for_insn): Likewise.
5018 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
5019 local "insn" from rtx to rtx_insn *
5020 (flow_active_insn_p): Require a const rtx_insn * rather than a
5021 const_rtx.
5022 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
5023 rtx_insn *.
5024 (can_fallthru): Likewise for locals "insn" and "insn2".
5025 (bb_note): Likewise for local "note".
5026 (first_insn_after_basic_block_note): Likewise for local "note" and
5027 for return type.
5028 (rtl_split_block): Likewise for locals "insn" and "next".
5029 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
5030 "end".
5031 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
5032 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
5033 "prev", "tmp".
5034 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
5035 them), "kill_from", "barrier", "new_insn".
5036 (patch_jump_insn): Likewise for params "insn", "old_label".
5037 (redirect_branch_edge): Likewise for locals "old_label", "insn".
5038 (force_nonfallthru_and_redirect): Likewise for locals "insn",
5039 "old_label", "new_label".
5040 (rtl_tidy_fallthru_edge): Likewise for local "q".
5041 (rtl_split_edge): Likewise for locals "before", "last".
5042 (commit_one_edge_insertion): Likewise for locals "before",
5043 "after", "insns", "tmp", "last", adding a checked cast where
5044 currently necessary.
5045 (commit_edge_insertions): Likewise.
5046 (rtl_dump_bb): Likewise for locals "insn", "last".
5047 (print_rtl_with_bb): Likewise for local "x".
5048 (rtl_verify_bb_insns): Likewise for local "x".
5049 (rtl_verify_bb_pointers): Likewise for local "insn".
5050 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
5051 "head", "end".
5052 (rtl_verify_fallthru): Likewise for local "insn".
5053 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
5054 (purge_dead_edges): Likewise for local "insn".
5055 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
5056 (skip_insns_after_block): Likewise for return type and for locals
5057 "insn", "last_insn", "next_head", "prev".
5058 (record_effective_endpoints): Likewise for locals "next_insn",
5059 "insn", "end".
5060 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
5061 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
5062 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
5063 (duplicate_insn_chain): For now, add checked cast from rtx to
5064 rtx_insn * when returning insn.
5065 (cfg_layout_duplicate_bb): Likewise for local "insn".
5066 (cfg_layout_delete_block): Likewise for locals "insn", "next",
5067 "prev", "remaints".
5068 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
5069 (rtl_block_empty_p): Likewise.
5070 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
5071 "split_point", "last".
5072 (rtl_block_ends_with_call_p): Likewise for local "insn".
5073 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
5074 const rtx_insn *.
5075 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
5076 "split_at_insn" from rtx to rtx_insn *.
5077 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
5078 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
5079 to const rtx_insn *.
5080 (rtl_account_profile_record): Likewise.
5081
5082 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5083
5084 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
5085 rtx to rtx_insn *.
5086 (average_num_loop_insns): Likewise.
5087 (init_set_costs): Likewise for local "seq".
5088 (seq_cost): Likewise for param "seq", from const_rtx to const
5089 rtx_insn *.
5090
5091 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5092
5093 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
5094 rtx to rtx_insn *.
5095
5096 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5097
5098 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
5099 "f1" and "f2" from rtx * to rtx_insn **.
5100 (flow_find_head_matching_sequence): Likewise.
5101
5102 * cfgcleanup.c (try_simplify_condjump): Strengthen local
5103 "cbranch_insn" from rtx to rtx_insn *.
5104 (thread_jump): Likewise for local "insn".
5105 (try_forward_edges): Likewise for local "last".
5106 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
5107 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
5108 "real_b_end".
5109 (can_replace_by): Likewise for params "i1", "i2".
5110 (old_insns_match_p): Likewise.
5111 (merge_notes): Likewise.
5112 (walk_to_nondebug_insn): Likewise for param "i1".
5113 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
5114 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
5115 "afterlast1", "afterlast2" from rtx to rtx_insn *.
5116 (flow_find_head_matching_sequence): Strengthen params "f1" and
5117 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
5118 "last1", "last2", "beforelast1", "beforelast2" from rtx to
5119 rtx_insn *.
5120 (outgoing_edges_match): Likewise for locals "last1", "last2".
5121 (try_crossjump_to_edge): Likewise for local "insn".
5122 Replace call to for_each_rtx with for_each_rtx_in_insn.
5123
5124 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
5125 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
5126 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
5127 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
5128 (try_optimize_cfg): Strengthen local "last" from rtx to
5129 rtx_insn *.
5130 (delete_dead_jumptables): Likewise for locals "insn", "next",
5131 "label".
5132
5133 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
5134 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
5135 "rtx else_first_tail", to reflect the basic-block.h changes above.
5136
5137 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5138
5139 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
5140 rtx_insn *.
5141 (purge_dead_tablejump_edges): Likewise.
5142 (find_bb_boundaries): Likewise for locals "insn", "end",
5143 "flow_transfer_insn".
5144
5145 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5146
5147 * caller-save.c (save_call_clobbered_regs): Strengthen locals
5148 "ins" and "prev" from rtx to rtx_insn *.
5149
5150 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5151
5152 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
5153 rtx_insn *.
5154 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
5155 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
5156 "scan_start".
5157 (load_register_parameters): Likewise for local "before_arg".
5158 (check_sibcall_argument_overlap): Likewise for param "insn".
5159 (expand_call): Likewise for locals "normal_call_insns",
5160 "tail_call_insns", "insns", "before_call", "after_args",
5161 "before_arg", "last", "prev". Strengthen one of the "last" from
5162 rtx to rtx_call_insn *.
5163 (fixup_tail_calls): Strengthen local "insn" from rtx to
5164 rtx_insn *.
5165 (emit_library_call_value_1): Likewise for locals "before_call" and
5166 "last".
5167
5168 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5169
5170 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
5171 and "last" from rtx to rtx_insn *.
5172 (expand_builtin_nonlocal_goto): Likewise for local "insn".
5173 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
5174 rtx_call_insn *.
5175 (expand_errno_check): Strengthen local "lab" from rtx to
5176 rtx_code_label *.
5177 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
5178 rtx_insn *.
5179 (expand_builtin_mathfn_2): Likewise.
5180 (expand_builtin_mathfn_ternary): Likewise.
5181 (expand_builtin_mathfn_3): Likewise.
5182 (expand_builtin_interclass_mathfn): Likewise for local "last".
5183 (expand_builtin_int_roundingfn): Likewise for local "insns".
5184 (expand_builtin_int_roundingfn_2): Likewise.
5185 (expand_builtin_strlen): Likewise for local "before_strlen".
5186 (expand_builtin_strncmp): Likewise for local "seq".
5187 (expand_builtin_signbit): Likewise for local "last".
5188 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
5189 from rtx to rtx_code_label *.
5190 (expand_stack_restore): Strengthen local "prev" from rtx to
5191 rtx_insn *.
5192
5193 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5194
5195 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
5196 to rtx_insn *.
5197 (struct btr_def_s): Likewise.
5198 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
5199 const rtx_insn *.
5200 (add_btr_def): Likewise.
5201 (new_btr_user): Likewise.
5202 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
5203 rtx to rtx_insn *.
5204 (link_btr_uses): Likewise.
5205 (move_btr_def): Likewise for locals "insp", "old_insn",
5206 "new_insn". Add checked cast to rtx_insn * for now on result of
5207 gen_move_insn.
5208 (can_move_up): Strengthen param "insn" from const_rtx to
5209 const rtx_insn *.
5210
5211 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5212
5213 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
5214 rtx_insn *.
5215 (get_uncond_jump_length): Likewise for locals "label", "jump".
5216 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
5217 "jump", "insn".
5218 (add_labels_and_missing_jumps): Likewise for local "new_jump".
5219 (fix_up_fall_thru_edges): Likewise for local "old_jump".
5220 (find_jump_block): Likewise for local "insn".
5221 (fix_crossing_conditional_branches): Likewise for locals
5222 "old_jump", "new_jump".
5223 (fix_crossing_unconditional_branches): Likewise for locals
5224 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
5225 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
5226
5227 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5228
5229 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
5230 rtx to rtx_insn *.
5231 (struct mem_insn): Likewise for field "insn".
5232 (reg_next_use): Strengthen from rtx * to rtx_insn **.
5233 (reg_next_inc_use): Likewise.
5234 (reg_next_def): Likewise.
5235 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
5236 from rtx to rtx_insn *.
5237 (move_insn_before): Likewise for param "next_insn" and local "insns".
5238 (attempt_change): Likewise for local "mov_insn".
5239 (try_merge): Likewise for param "last_insn".
5240 (get_next_ref): Likewise for return type and local "insn".
5241 Strengthen param "next_array" from rtx * to rtx_insn **.
5242 (parse_add_or_inc): Strengthen param "insn" from rtx to
5243 rtx_insn *.
5244 (find_inc): Likewise for locals "insn" and "other_insn" (three of
5245 the latter).
5246 (merge_in_block): Likewise for locals "insn", "curr",
5247 "other_insn".
5248 (pass_inc_dec::execute): Update allocations of the arrays to
5249 reflect the stronger types.
5250
5251 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5252
5253 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
5254 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
5255 from rtx to rtx_code_label *.
5256
5257 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5258
5259 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
5260 to rtx_insn *.
5261
5262 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
5263
5264 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
5265 generated a warning and prevented bootstrapping the compiler.
5266
5267 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5268
5269 * rtl.h (delete_related_insns): Strengthen return type from rtx to
5270 rtx_insn *.
5271
5272 * jump.c (delete_related_insns): Likewise, also for locals "next"
5273 and "prev".
5274
5275 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5276
5277 * genautomata.c (output_internal_insn_latency_func): When writing
5278 the function "internal_insn_latency" to insn-automata.c,
5279 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
5280 allowing the optional guard function of (define_bypass) clauses to
5281 expect a pair of rtx_insn *, rather than a pair of rtx.
5282 (output_insn_latency_func): When writing the function
5283 "insn_latency", add an "uncast_" prefix to params "insn" and
5284 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
5285 using checked casts from the params, thus enabling the above
5286 change to the generated "internal_insn_latency" function.
5287
5288 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
5289
5290 PR tree-optimization/62091
5291 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
5292 handle correctly arrays.
5293 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
5294 inheritance binfos.
5295 (record_known_type): Walk into inner type.
5296 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
5297 condition on no type changes.
5298
5299 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5300
5301 * genattrtab.c (write_attr_get): Within the generated get_attr_
5302 functions, rename param "insn" to "uncast_insn" and reintroduce
5303 "insn" as an local rtx_insn * using a checked cast, so that "insn"
5304 is an rtx_insn * within insn-attrtab.c
5305
5306 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5307
5308 * output.h (peephole): Strengthen return type from rtx to
5309 rtx_insn *.
5310 * rtl.h (delete_for_peephole): Likewise for both params.
5311 * genpeep.c (main): In generated "peephole" function, strengthen
5312 return type and local "insn" from rtx to rtx_insn *. For now,
5313 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
5314 rtx_insn *, with a checked cast.
5315 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
5316 locals "insn", "next", "prev" from rtx to rtx_insn *.
5317
5318 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
5319
5320 PR tree-optimization/62112
5321 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
5322 * gimple-iterator.h (gsi_replace): Return bool.
5323 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
5324 moved from ref_may_alias_global_p.
5325 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
5326 New overloads.
5327 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
5328 (stmt_kills_ref_p_1): Rename...
5329 (stmt_kills_ref_p): ... to this.
5330 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
5331 stmt_kills_ref_p): Declare.
5332 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
5333 Move the self-assignment case...
5334 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
5335
5336 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5337
5338 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
5339
5340 * emit-rtl.c (try_split): Likewise, also for locals "before" and
5341 "after". For now, don't strengthen param "trial", which requires
5342 adding checked casts when returning it.
5343
5344 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5345
5346 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
5347 "label" from rtx to rtx_code_label *. Strengthen param 1 of
5348 "var_location" hook from rtx to rtx_insn *.
5349 (debug_nothing_rtx): Delete in favor of...
5350 (debug_nothing_rtx_code_label): New prototype.
5351 (debug_nothing_rtx_rtx): Delete unused prototype.
5352 (debug_nothing_rtx_insn): New prototype.
5353
5354 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
5355 invoking debug_hooks->var_location (in two places, one in a NOTE
5356 case of a switch statement, the other guarded by a CALL_P
5357 conditional. Add checked cast to rtx_code_label * when invoking
5358 debug_hooks->label (within CODE_LABEL case of switch statement).
5359
5360 * dbxout.c (dbx_debug_hooks): Update "label" hook from
5361 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
5362 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
5363 (xcoff_debug_hooks): Likewise.
5364 * debug.c (do_nothing_debug_hooks): Likewise.
5365 (debug_nothing_rtx): Delete in favor of...
5366 (debug_nothing_rtx_insn): New function.
5367 (debug_nothing_rtx_rtx): Delete unused function.
5368 (debug_nothing_rtx_code_label): New function.
5369 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
5370 debug_nothing_rtx to debug_nothing_rtx_code_label.
5371 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
5372 to rtx_insn *.
5373 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
5374 debug_nothing_rtx to debug_nothing_rtx_insn.
5375 (sdbout_label): Strengthen param "insn" from rtx to
5376 rtx_code_label *.
5377 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
5378 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
5379 "var_location" hook from debug_nothing_rtx to
5380 debug_nothing_rtx_insn.
5381
5382 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5383
5384 * recog.h (insn_output_fn): Update this function typedef to match
5385 the changes below to the generated output functions, strengthening
5386 the 2nd param from rtx to rtx_insn *.
5387
5388 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
5389 insn when invoking an output function, to match the new signature
5390 of insn_output_fn with a stronger second param.
5391
5392 * genconditions.c (write_header): In the generated code for
5393 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
5394 to match the other changes in this patch.
5395
5396 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
5397 the generated "gen_" functions from rtx to rtx_insn * within their
5398 implementations.
5399
5400 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
5401 the subfunctions within the generated "recog_", "split", "peephole2"
5402 function trees from rtx to rtx_insn *. For now, the top-level
5403 generated functions ("recog", "split", "peephole2") continue to
5404 take a plain rtx for "insn", to avoid introducing dependencies on
5405 other patches. Rename this 2nd param from "insn" to
5406 "uncast_insn", and reintroduce "insn" as a local variable of type
5407 rtx_insn *, initialized at the top of the generated function with
5408 a checked cast on "uncast_insn".
5409 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
5410 the generated "gen_" functions from rtx to rtx_insn * within their
5411 prototypes.
5412
5413 * genoutput.c (process_template): Strengthen the 2nd param within
5414 the generated "output_" functions "insn" from rtx to rtx_insn *.
5415
5416 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5417
5418 * tree-profile.c (tree_profiling): Skip external functions
5419 when doing coverage instrumentation.
5420 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
5421
5422 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5423
5424 * config/rs6000/altivec.h (vec_cpsgn): New #define.
5425 (vec_mergee): Likewise.
5426 (vec_mergeo): Likewise.
5427 (vec_cntlz): Likewise.
5428 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
5429 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
5430 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
5431 VMRGEW, and VMRGOW.
5432 * doc/extend.texi: Document various forms of vec_cpsgn,
5433 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
5434 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
5435 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
5436 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
5437 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
5438
5439 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5440
5441 * config/rs6000/rs6000.c (context.h): New include.
5442 (tree-pass.h): Likewise.
5443 (make_pass_analyze_swaps): New decl.
5444 (rs6000_option_override): Register pass_analyze_swaps.
5445 (swap_web_entry): New subsclass of web_entry_base (df.h).
5446 (special_handling_values): New enum.
5447 (union_defs): New function.
5448 (union_uses): Likewise.
5449 (insn_is_load_p): Likewise.
5450 (insn_is_store_p): Likewise.
5451 (insn_is_swap_p): Likewise.
5452 (rtx_is_swappable_p): Likewise.
5453 (insn_is_swappable_p): Likewise.
5454 (chain_purpose): New enum.
5455 (chain_contains_only_swaps): New function.
5456 (mark_swaps_for_removal): Likewise.
5457 (swap_const_vector_halves): Likewise.
5458 (adjust_subreg_index): Likewise.
5459 (permute_load): Likewise.
5460 (permute_store): Likewise.
5461 (handle_special_swappables): Likewise.
5462 (replace_swap_with_copy): Likewise.
5463 (dump_swap_insn_table): Likewise.
5464 (rs6000_analyze_swaps): Likewise.
5465 (pass_data_analyze_swaps): New pass_data.
5466 (pass_analyze_swaps): New rtl_opt_pass.
5467 (make_pass_analyze_swaps): New function.
5468 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
5469
5470 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5471
5472 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
5473 type from rtx to rtx_insn *.
5474 (create_copy_of_insn_rtx): Likewise.
5475 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
5476 (create_copy_of_insn_rtx): Likewise, also for local "res".
5477
5478 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5479
5480 * rtl.h (find_first_parameter_load): Strengthen return type from
5481 rtx to rtx_insn *.
5482 * rtlanal.c (find_first_parameter_load): Strengthen return type
5483 from rtx to rtx_insn *. Add checked cast for now, to postpone
5484 strengthening the params.
5485
5486 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5487
5488 PR fortran/44054
5489 * diagnostic.c: Set default caret.
5490 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
5491 line is needed.
5492 * diagnostic.h (struct diagnostic_context):
5493
5494 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5495
5496 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
5497 (sel_bb_head): Strengthen return type insn_t (currently just an
5498 rtx) to rtx_insn *.
5499 (sel_bb_end): Likewise.
5500
5501 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
5502 (sel_bb_head): Strengthen return type and local "head" from
5503 insn_t (currently just an rtx) to rtx_insn *.
5504 (sel_bb_end): Likewise for return type.
5505 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
5506 working with insn.
5507
5508 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5509
5510 * basic-block.h (get_last_bb_insn): Strengthen return type from
5511 rtx to rtx_insn *.
5512 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
5513 end".
5514
5515 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5516
5517 PR fortran/44054
5518 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
5519 to here ...
5520 (diagnostic_report_diagnostic): ... from here.
5521 * toplev.c (general_init): Move code to c-family.
5522
5523 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5524
5525 * df.h (web_entry_base): Replace existing struct web_entry with a
5526 new class web_entry_base with only the predecessor member.
5527 (unionfind_root): Remove declaration and move to class member.
5528 (unionfind_union): Remove declaration and move to friend
5529 function.
5530 (union_defs): Remove declaration.
5531 * web.c (web_entry_base::unionfind_root): Modify to be member
5532 function and adjust accessors.
5533 (unionfind_union): Modify to be friend function and adjust
5534 accessors.
5535 (web_entry): New subclass of web_entry_base containing the reg
5536 member.
5537 (union_match_dups): Modify for struct -> class changes.
5538 (union_defs): Likewise.
5539 (entry_register): Likewise.
5540 (pass_web::execute): Likewise.
5541
5542 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
5543
5544 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
5545 builtin define __VEC_ELEMENT_REG_ORDER__.
5546
5547 2014-08-20 Martin Jambor <mjambor@suse.cz>
5548 Wei Mi <wmi@google.com>
5549
5550 PR ipa/60449
5551 PR middle-end/61776
5552 * tree-ssa-operands.c (update_stmt_operands): Remove
5553 MODIFIED_NORETURN_CALLS.
5554 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
5555 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
5556 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
5557 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
5558 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
5559 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
5560 (gimple_call_set_ctrl_altering): New func.
5561 (gimple_call_ctrl_altering_p): Ditto.
5562 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
5563 (make_blocks): Use gimple_call_initialize_ctrl_altering.
5564 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
5565 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
5566 remove MODIFIED_NORETURN_CALLS.
5567
5568 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5569
5570 * coverage.c (coverage_compute_profile_id): Return non-0;
5571 also handle symbols with unique name.
5572 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
5573
5574 2014-08-20 Steve Ellcey <sellcey@mips.com>
5575
5576 PR middle-end/49191
5577 * doc/sourcebuild.texi (non_strict_align): New.
5578
5579 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5580
5581 * cgraphunit.c (ipa_passes, compile): Reshedule
5582 symtab_remove_unreachable_nodes passes; update comments.
5583 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
5584 TODO_remove_functions before the pass; the functions ought to be
5585 already removed.
5586 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
5587 TODO_remove_functions.
5588 * passes.c (pass_data_early_local_passes): Do not schedule function
5589 removal.
5590 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
5591
5592 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5593
5594 PR c/59304
5595 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
5596 before setting the option.
5597 * diagnostic.c (diagnostic_classify_diagnostic): Record
5598 command-line status.
5599
5600 2014-08-20 Richard Biener <rguenther@suse.de>
5601
5602 PR lto/62190
5603 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
5604 to build uint{16,32,64}_type_node.
5605
5606 2014-08-20 Terry Guo <terry.guo@arm.com>
5607
5608 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
5609 with immediate_operand.
5610
5611 2014-08-20 David Malcolm <dmalcolm@redhat.com>
5612
5613 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
5614 "insn" from an as_a to a safe_as_a, for the case when "insn" is
5615 NULL.
5616
5617 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5618
5619 PR preprocessor/51303
5620 * incpath.c (remove_duplicates): Use cpp_warning.
5621
5622 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5623
5624 PR c/60975
5625 PR c/53063
5626 * doc/options.texi (CPP): Document it.
5627 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
5628 * optc-gen.awk: Handle CPP.
5629 * opth-gen.awk: Likewise.
5630
5631 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5632
5633 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
5634 rtx_insn *.
5635 (duplicate_insn_chain): Likewise.
5636 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
5637 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
5638 checked cast for now (until we can strengthen the params in the
5639 same way).
5640 (duplicate_insn_chain): Likewise.
5641
5642 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5643
5644 * rtl.h (next_cc0_user): Strengthen return type from rtx to
5645 rtx_insn *.
5646 (prev_cc0_setter): Likewise.
5647
5648 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
5649 rtx_insn *, adding checked casts for now as necessary.
5650 (prev_cc0_setter): Likewise.
5651
5652 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5653
5654 * expr.h (emit_move_insn): Strengthen return type from rtx to
5655 rtx_insn *.
5656 (emit_move_insn_1): Likewise.
5657 (emit_move_complex_push): Likewise.
5658 (emit_move_complex_parts): Likewise.
5659
5660 * expr.c (emit_move_via_integer): Strengthen return type from rtx
5661 to rtx_insn *. Replace use of NULL_RTX with NULL when working
5662 with insns.
5663 (emit_move_complex_push): Strengthen return type from rtx to
5664 rtx_insn *.
5665 (emit_move_complex): Likewise, also for local "ret".
5666 (emit_move_ccmode): Likewise.
5667 (emit_move_multi_word): Likewise for return type and locals
5668 "last_insn", "seq".
5669 (emit_move_insn_1): Likewise for return type and locals "result",
5670 "ret".
5671 (emit_move_insn): Likewise for return type and local "last_insn".
5672 (compress_float_constant): Likewise.
5673
5674 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5675
5676 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
5677 from rtx to rtx_insn *.
5678
5679 * rtl.h (emit_insn_before): Likewise.
5680 (emit_insn_before_noloc): Likewise.
5681 (emit_insn_before_setloc): Likewise.
5682 (emit_jump_insn_before): Likewise.
5683 (emit_jump_insn_before_noloc): Likewise.
5684 (emit_jump_insn_before_setloc): Likewise.
5685 (emit_call_insn_before): Likewise.
5686 (emit_call_insn_before_noloc): Likewise.
5687 (emit_call_insn_before_setloc): Likewise.
5688 (emit_debug_insn_before): Likewise.
5689 (emit_debug_insn_before_noloc): Likewise.
5690 (emit_debug_insn_before_setloc): Likewise.
5691 (emit_label_before): Likewise.
5692 (emit_insn_after): Likewise.
5693 (emit_insn_after_noloc): Likewise.
5694 (emit_insn_after_setloc): Likewise.
5695 (emit_jump_insn_after): Likewise.
5696 (emit_jump_insn_after_noloc): Likewise.
5697 (emit_jump_insn_after_setloc): Likewise.
5698 (emit_call_insn_after): Likewise.
5699 (emit_call_insn_after_noloc): Likewise.
5700 (emit_call_insn_after_setloc): Likewise.
5701 (emit_debug_insn_after): Likewise.
5702 (emit_debug_insn_after_noloc): Likewise.
5703 (emit_debug_insn_after_setloc): Likewise.
5704 (emit_label_after): Likewise.
5705 (emit_insn): Likewise.
5706 (emit_debug_insn): Likewise.
5707 (emit_jump_insn): Likewise.
5708 (emit_call_insn): Likewise.
5709 (emit_label): Likewise.
5710 (gen_clobber): Likewise.
5711 (emit_clobber): Likewise.
5712 (gen_use): Likewise.
5713 (emit_use): Likewise.
5714 (emit): Likewise.
5715
5716 (emit_barrier_before): Strengthen return type from rtx to
5717 rtx_barrier *.
5718 (emit_barrier_after): Likewise.
5719 (emit_barrier): Likewise.
5720
5721 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
5722 from rtx to rtx_insn *. Add checked casts for now when converting
5723 "last" from rtx to rtx_insn *.
5724 (emit_insn_before_noloc): Likewise for return type.
5725 (emit_jump_insn_before_noloc): Likewise.
5726 (emit_call_insn_before_noloc): Likewise.
5727 (emit_debug_insn_before_noloc): Likewise.
5728 (emit_barrier_before): Strengthen return type and local "insn"
5729 from rtx to rtx_barrier *.
5730 (emit_label_before): Strengthen return type from rtx to
5731 rtx_insn *. Add checked cast for now when returning param
5732 (emit_pattern_after_noloc): Strengthen return type from rtx to
5733 rtx_insn *. Add checked casts for now when converting "last" from
5734 rtx to rtx_insn *.
5735 (emit_insn_after_noloc): Strengthen return type from rtx to
5736 rtx_insn *.
5737 (emit_jump_insn_after_noloc): Likewise.
5738 (emit_call_insn_after_noloc): Likewise.
5739 (emit_debug_insn_after_noloc): Likewise.
5740 (emit_barrier_after): Strengthen return type from rtx to
5741 rtx_barrier *.
5742 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
5743 Add checked cast for now when converting "label" from rtx to
5744 rtx_insn *.
5745 (emit_pattern_after_setloc): Strengthen return type from rtx to
5746 rtx_insn *. Add checked casts for now when converting "last" from
5747 rtx to rtx_insn *.
5748 (emit_pattern_after): Strengthen return type from rtx to
5749 rtx_insn *.
5750 (emit_insn_after_setloc): Likewise.
5751 (emit_insn_after): Likewise.
5752 (emit_jump_insn_after_setloc): Likewise.
5753 (emit_jump_insn_after): Likewise.
5754 (emit_call_insn_after_setloc): Likewise.
5755 (emit_call_insn_after): Likewise.
5756 (emit_debug_insn_after_setloc): Likewise.
5757 (emit_debug_insn_after): Likewise.
5758 (emit_pattern_before_setloc): Likewise. Add checked casts for now
5759 when converting "last" from rtx to rtx_insn *.
5760 (emit_pattern_before): Strengthen return type from rtx to
5761 rtx_insn *.
5762 (emit_insn_before_setloc): Likewise.
5763 (emit_insn_before): Likewise.
5764 (emit_jump_insn_before_setloc): Likewise.
5765 (emit_jump_insn_before): Likewise.
5766 (emit_call_insn_before_setloc): Likewise.
5767 (emit_call_insn_before): Likewise.
5768 (emit_debug_insn_before_setloc): Likewise.
5769 (emit_debug_insn_before): Likewise.
5770 (emit_insn): Strengthen return type and locals "last", "insn",
5771 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
5772 within cases where we know we have an insn.
5773 (emit_debug_insn): Likewise.
5774 (emit_jump_insn): Likewise.
5775 (emit_call_insn): Strengthen return type and local "insn" from rtx
5776 to rtx_insn *.
5777 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
5778 a checked cast to rtx_insn * for now on "label".
5779 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
5780 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
5781 (emit_use): Likewise.
5782 (gen_use): Likewise, also for local "seq".
5783 (emit): Likewise for return type and local "insn".
5784 (rtx_insn): Likewise for return type and local "new_rtx".
5785
5786 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
5787 from rtx to rtx_barrier *.
5788
5789 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
5790 changed return type from rtx to rtx_insn *, we must update
5791 "emit_fn" type, and this in turn means updating...
5792 (frame_insn): ...this. Strengthen return type from rtx to
5793 rtx_insn *. Introduce a new local "insn" of the appropriate type.
5794
5795 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5796
5797 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
5798 rtx to rtx_jump_table_data *. Also for local.
5799 * rtl.h (emit_jump_table_data): Likewise.
5800
5801 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5802
5803 * basic-block.h (create_basic_block_structure): Strengthen third
5804 param "bb_note" from rtx to rtx_note *.
5805 * rtl.h (emit_note_before): Strengthen return type from rtx to
5806 rtx_note *.
5807 (emit_note_after): Likewise.
5808 (emit_note): Likewise.
5809 (emit_note_copy): Likewise. Also, strengthen param similarly.
5810 * function.h (struct rtl_data): Strengthen field
5811 "x_stack_check_probe_note" from rtx to rtx_note *.
5812
5813 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
5814 from rtx to rtx_note *.
5815 * cfgrtl.c (create_basic_block_structure): Strengthen third param
5816 "bb_note" from rtx to rtx_note *.
5817 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
5818 when calling emit_note_copy.
5819 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
5820 rtx_note *.
5821 (emit_note_after): Likewise.
5822 (emit_note_before): Likewise.
5823 (emit_note_copy): Likewise. Also, strengthen param similarly.
5824 (emit_note): Likewise.
5825 * except.c (emit_note_eh_region_end): Likewise for return type.
5826 Strengthen local "next" from rtx to rtx_insn *.
5827 (convert_to_eh_region_ranges): Strengthen local "note"
5828 from rtx to rtx_note *.
5829 * final.c (change_scope): Likewise.
5830 (reemit_insn_block_notes): Likewise, for both locals named "note".
5831 Also, strengthen local "insn" from rtx to rtx_insn *.
5832 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
5833 rtx to rtx_note *.
5834 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
5835 strengthen local "seq" from rtx to rtx_insn *.
5836 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
5837 to rtx_note *.
5838 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
5839 vec<rtx_note *>.
5840 (get_bb_note_from_pool): Strengthen return type from rtx to
5841 rtx_note *.
5842 (sel_create_basic_block): Strengthen local "new_bb_note" from
5843 insn_t to rtx_note *.
5844 * var-tracking.c (emit_note_insn_var_location): Strengthen local
5845 "note" from rtx to rtx_note *.
5846 (emit_notes_in_bb): Likewise.
5847
5848 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5849
5850 * function.h (struct rtl_data): Strengthen field
5851 "x_parm_birth_insn" from rtx to rtx_insn *.
5852 * function.c (struct assign_parm_data_all): Strengthen fields
5853 "first_conversion_insn" and "last_conversion_insn" from rtx to
5854 rtx_insn *.
5855
5856 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5857
5858 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
5859 to rtx_insn *; also for local "var_end_seq".
5860 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
5861 (maybe_cleanup_end_of_block): Likewise for param "last" and local
5862 "insn".
5863 (expand_gimple_cond): Likewise for locals "last2" and "last".
5864 (mark_transaction_restart_calls): Likewise for local "insn".
5865 (expand_gimple_stmt): Likewise for return type and locals "last"
5866 and "insn".
5867 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
5868 (avoid_complex_debug_insns): Likewise for param "insn".
5869 (expand_debug_locations): Likewise for locals "insn", "last",
5870 "prev_insn" and "insn2".
5871 (expand_gimple_basic_block): Likewise for local "last".
5872 (construct_exit_block): Likewise for locals "head", "end",
5873 "orig_end".
5874 (pass_expand::execute): Likewise for locals "var_seq",
5875 "var_ret_seq", "next".
5876
5877 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5878
5879 * asan.h (asan_emit_stack_protection): Strengthen return type from
5880 rtx to rtx_insn *.
5881 * asan.c (asan_emit_stack_protection): Likewise. Add local
5882 "insns" to hold the return value.
5883
5884 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5885
5886 * basic-block.h (bb_note): Strengthen return type from rtx to
5887 rtx_note *.
5888 * sched-int.h (bb_note): Likewise.
5889 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
5890
5891 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5892
5893 * rtl.h (make_insn_raw): Strengthen return type from rtx to
5894 rtx_insn *.
5895
5896 * emit-rtl.c (make_insn_raw): Strengthen return type and local
5897 "insn" from rtx to rtx_insn *.
5898 (make_debug_insn_raw): Strengthen return type from rtx to
5899 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
5900 (make_jump_insn_raw): Strengthen return type from rtx to
5901 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
5902 (make_call_insn_raw): Strengthen return type from rtx to
5903 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
5904 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
5905 callback from rtx to rtx_insn *; likewise for local "insn" and
5906 "next", adding a checked cast to rtx_insn in the relevant cases of
5907 the switch statement.
5908 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
5909 callback from rtx to rtx_insn *.
5910 (emit_pattern_after_setloc): Likewise.
5911 (emit_pattern_after): Likewise.
5912 (emit_pattern_before_setloc): Likewise.
5913 (emit_pattern_before): Likewise.
5914
5915 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5916
5917 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
5918 rtx_call_insn *.
5919 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
5920 accepting an rtx_insn *.
5921 (last_call_insn): Strengthen return type from rtx to
5922 rtx_call_insn *.
5923
5924 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5925
5926 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
5927 "insns" from rtx to rtx_insn *.
5928 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
5929 locals "insn" and "prev".
5930
5931 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5932
5933 * rtl.h (tablejump_p): Strengthen third param from rtx * to
5934 rtx_jump_table_data **.
5935
5936 * cfgbuild.c (make_edges): Introduce local "table", using it in
5937 place of "tmp" for jump table data.
5938 (find_bb_boundaries): Strengthen local "table" from rtx to
5939 rtx_jump_table_data *.
5940 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5941 (outgoing_edges_match): Likewise for locals "table1" and "table2".
5942 (try_crossjump_to_edge): Likewise.
5943 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
5944 "table".
5945 (patch_jump_insn): Introduce local "table", using it in place of
5946 "tmp" for jump table data.
5947 (force_nonfallthru_and_redirect): Introduce local "table", so that
5948 call to tablejump_p can receive an rtx_jump_table_data **. Update
5949 logic around the call to overwrite "note" appropriately if
5950 tablejump_p returns non-zero.
5951 (get_last_bb_insn): Introduce local "table", using it in place of
5952 "tmp" for jump table data.
5953 * dwarf2cfi.c (create_trace_edges): Likewise.
5954
5955 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
5956 from rtx to rtx_jump_table_data *.
5957 (create_fix_barrier): Strengthen local "tmp" from rtx to
5958 rtx_jump_table_data *.
5959 (arm_reorg): Likewise for local "table".
5960
5961 * config/s390/s390.c (s390_chunkify_start): Likewise.
5962
5963 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
5964
5965 * jump.c (delete_related_insns): Strengthen local "lab_next" from
5966 rtx to rtx_jump_table_data *.
5967
5968 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
5969 rtx_jump_table_data **. Add a checked cast when writing through
5970 the pointer: we know there that local "table" is non-NULL and that
5971 JUMP_TABLE_DATA_P (table) holds.
5972 (label_is_jump_target_p): Introduce local "table", using it in
5973 place of "tmp" for jump table data.
5974
5975 2014-08-19 Marek Polacek <polacek@redhat.com>
5976
5977 PR c++/62153
5978 * doc/invoke.texi: Document -Wbool-compare.
5979
5980 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5981
5982 * rtl.h (entry_of_function): Strengthen return type from rtx to
5983 rtx_insn *.
5984 * cfgrtl.c (entry_of_function): Likewise.
5985
5986 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5987
5988 * emit-rtl.h (get_insns): Strengthen return type from rtx to
5989 rtx_insn *, adding a checked cast for now.
5990 (get_last_insn): Likewise.
5991
5992 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5993
5994 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
5995 rtx_code_label *.
5996
5997 * emit-rtl.c (gen_label_rtx): Likewise.
5998
5999 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6000
6001 * rtl.h (previous_insn): Strengthen return type from rtx to
6002 rtx_insn *.
6003 (next_insn): Likewise.
6004 (prev_nonnote_insn): Likewise.
6005 (prev_nonnote_insn_bb): Likewise.
6006 (next_nonnote_insn): Likewise.
6007 (next_nonnote_insn_bb): Likewise.
6008 (prev_nondebug_insn): Likewise.
6009 (next_nondebug_insn): Likewise.
6010 (prev_nonnote_nondebug_insn): Likewise.
6011 (next_nonnote_nondebug_insn): Likewise.
6012 (prev_real_insn): Likewise.
6013 (next_real_insn): Likewise.
6014 (prev_active_insn): Likewise.
6015 (next_active_insn): Likewise.
6016
6017 * emit-rtl.c (next_insn): Strengthen return type from rtx to
6018 rtx_insn *, adding a checked cast.
6019 (previous_insn): Likewise.
6020 (next_nonnote_insn): Likewise.
6021 (next_nonnote_insn_bb): Likewise.
6022 (prev_nonnote_insn): Likewise.
6023 (prev_nonnote_insn_bb): Likewise.
6024 (next_nondebug_insn): Likewise.
6025 (prev_nondebug_insn): Likewise.
6026 (next_nonnote_nondebug_insn): Likewise.
6027 (prev_nonnote_nondebug_insn): Likewise.
6028 (next_real_insn): Likewise.
6029 (prev_real_insn): Likewise.
6030 (next_active_insn): Likewise.
6031 (prev_active_insn): Likewise.
6032
6033 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
6034 param "stepfunc" so that it returns an rtx_insn * rather than an
6035 rtx, to track the change to prev_nonnote_insn_bb, which is the
6036 only function this is called with.
6037 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
6038
6039 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
6040
6041 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
6042 assert.
6043
6044 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6045
6046 * coretypes.h (class rtx_debug_insn): Add forward declaration.
6047 (class rtx_nonjump_insn): Likewise.
6048 (class rtx_jump_insn): Likewise.
6049 (class rtx_call_insn): Likewise.
6050 (class rtx_jump_table_data): Likewise.
6051 (class rtx_barrier): Likewise.
6052 (class rtx_code_label): Likewise.
6053 (class rtx_note): Likewise.
6054
6055 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
6056 adding the invariant DEBUG_INSN_P (X).
6057 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
6058 the invariant NONJUMP_INSN_P (X).
6059 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
6060 the invariant JUMP_P (X).
6061 (class rtx_call_insn): New, a subclass of rtx_insn, adding
6062 the invariant CALL_P (X).
6063 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
6064 invariant JUMP_TABLE_DATA_P (X).
6065 (class rtx_barrier): New, a subclass of rtx_insn, adding the
6066 invariant BARRIER_P (X).
6067 (class rtx_code_label): New, a subclass of rtx_insn, adding
6068 the invariant LABEL_P (X).
6069 (class rtx_note): New, a subclass of rtx_insn, adding
6070 the invariant NOTE_P(X).
6071 (is_a_helper <rtx_debug_insn *>::test): New.
6072 (is_a_helper <rtx_nonjump_insn *>::test): New.
6073 (is_a_helper <rtx_jump_insn *>::test): New.
6074 (is_a_helper <rtx_call_insn *>::test): New.
6075 (is_a_helper <rtx_jump_table_data *>::test): New functions,
6076 overloaded for both rtx and rtx_insn *.
6077 (is_a_helper <rtx_barrier *>::test): New.
6078 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
6079 for both rtx and rtx_insn *.
6080 (is_a_helper <rtx_note *>::test): New.
6081
6082 2014-08-19 Marek Polacek <polacek@redhat.com>
6083
6084 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
6085 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
6086 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
6087 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
6088
6089 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6090
6091 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
6092 rtx_insn *. To help with transition, for now, convert from an
6093 access macro into a pair of functions: BND_TO, returning an
6094 rtx_insn *, and...
6095 (SET_BND_TO): New function, for use where BND_TO is used as an
6096 lvalue.
6097
6098 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
6099 SET_BND_TO.
6100 (BND_TO): New function, adding a checked cast.
6101 (SET_BND_TO): New function.
6102
6103 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
6104 SET_BND_TO.
6105 (compute_av_set_on_boundaries): Likewise.
6106
6107 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
6108
6109 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
6110 destination if it is used in source.
6111 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
6112 (*popcount<mode>2_falsedep_1): Likewise.
6113
6114 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
6115
6116 PR other/62168
6117 * configure.ac: Set install_gold_as_default to no first.
6118 * configure: Regenerated.
6119
6120 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6121
6122 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
6123 "note_list" field will eventually be an rtx_insn *. To help with
6124 transition, for now, convert from an access macro into a pair of
6125 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
6126 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
6127 used as an lvalue.
6128
6129 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
6130 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
6131
6132 * sel-sched-ir.c (init_bb): Likewise.
6133 (sel_restore_notes): Likewise.
6134 (move_bb_info): Likewise.
6135 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
6136 (SET_BB_NOTE_LIST): New function.
6137
6138 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6139
6140 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
6141 field will eventually be an rtx_insn *. To help with transition,
6142 for now, convert from an access macro into a pair of functions:
6143 VINSN_INSN_RTX, returning an rtx_insn *, and...
6144 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
6145 is used as an lvalue.
6146
6147 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
6148 SET_VINSN_INSN_RTX where it's used as an lvalue.
6149 (VINSN_INSN_RTX): New function.
6150 (SET_VINSN_INSN_RTX): New function.
6151
6152 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6153
6154 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
6155 eventually be rtx_insn *, but to help with transition, for now,
6156 convert from an access macro into a pair of functions: DEP_PRO
6157 returning an rtx_insn * and...
6158 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
6159 lvalue, returning an rtx&.
6160 (DEP_CON): Analogous changes to DEP_PRO above.
6161 (SET_DEP_CON): Likewise.
6162
6163 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
6164 an lvalue to SET_DEP_CON.
6165 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
6166 (sd_copy_back_deps): Likewise for DEP_CON.
6167 (DEP_PRO): New function, adding a checked cast for now.
6168 (DEP_CON): Likewise.
6169 (SET_DEP_PRO): New function.
6170 (SET_DEP_CON): Likewise.
6171
6172 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
6173
6174 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
6175 (extra_options): Add i386/cygwin.opt.
6176 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
6177 (CPP_SPEC): Accept -pthread.
6178 (LINK_SPEC): Ditto.
6179 (GOMP_SELF_SPECS): Update comment.
6180 * config/i386/cygwin.opt: New file for -pthread flag.
6181
6182 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6183
6184 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
6185 * df.h (DF_REF_INSN): Convert from a macro to a function, so
6186 that we can return an rtx_insn *.
6187
6188 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
6189
6190 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
6191 when building executables, not DLLs. Add --large-address-aware
6192 under the same conditions.
6193 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
6194 when building executables, not DLLs. Add --large-address-aware
6195 under the same conditions when using -m32.
6196
6197 * config/i386/cygwin-stdint.h: Throughout, make type
6198 definitions dependent on target architecture, not host.
6199
6200 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6201
6202 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
6203 the return type from rtx to rtx_insn *, which will enable various
6204 conversions in followup patches. For now this is is done by a
6205 checked cast.
6206 (NEXT_INSN): Likewise.
6207 (SET_PREV_INSN): Convert to an inline function. This is intended
6208 for use as an lvalue, and so returns an rtx& to allow in-place
6209 modification.
6210 (SET_NEXT_INSN): Likewise.
6211
6212 2014-07-08 Mark Wielaard <mjw@redhat.com>
6213
6214 PR debug/59051
6215 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
6216
6217 2014-08-19 Marek Polacek <polacek@redhat.com>
6218
6219 PR c/61271
6220 * cgraphunit.c (handle_alias_pairs): Fix condition.
6221
6222 2014-08-19 Richard Biener <rguenther@suse.de>
6223
6224 * gimple-fold.c (fold_gimple_assign): Properly build a
6225 null-pointer constant when devirtualizing addresses.
6226
6227 2014-07-07 Mark Wielaard <mjw@redhat.com>
6228
6229 * dwarf2out.c (decl_quals): New function.
6230 (modified_type_die): Take one cv_quals argument instead of two,
6231 one for const and one for volatile.
6232 (add_type_attribute): Likewise.
6233 (generic_parameter_die): Call add_type_attribute with one modifier
6234 argument.
6235 (base_type_for_mode): Likewise.
6236 (add_bounds_info): Likewise.
6237 (add_subscript_info): Likewise.
6238 (gen_array_type_die): Likewise.
6239 (gen_descr_array_type_die): Likewise.
6240 (gen_entry_point_die): Likewise.
6241 (gen_enumeration_type_die): Likewise.
6242 (gen_formal_parameter_die): Likewise.
6243 (gen_subprogram_die): Likewise.
6244 (gen_variable_die): Likewise.
6245 (gen_const_die): Likewise.
6246 (gen_field_die): Likewise.
6247 (gen_pointer_type_die): Likewise.
6248 (gen_reference_type_die): Likewise.
6249 (gen_ptr_to_mbr_type_die): Likewise.
6250 (gen_inheritance_die): Likewise.
6251 (gen_subroutine_type_die): Likewise.
6252 (gen_typedef_die): Likewise.
6253 (force_type_die): Likewise.
6254
6255 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6256
6257 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
6258 if unset.
6259 * configure: Regenerate.
6260
6261 2014-08-19 Richard Biener <rguenther@suse.de>
6262
6263 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
6264 DECL_EXTERNALs in BLOCKs as non-references.
6265 * tree-streamer-out.c (streamer_write_chain): Likewise.
6266
6267 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
6268 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6269 Anna Tikhonova <anna.tikhonova@intel.com>
6270 Ilya Tocar <ilya.tocar@intel.com>
6271 Andrey Turetskiy <andrey.turetskiy@intel.com>
6272 Ilya Verbin <ilya.verbin@intel.com>
6273 Kirill Yukhin <kirill.yukhin@intel.com>
6274 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6275
6276 * config/i386/sse.md
6277 (define_mode_iterator VI48_AVX512F): Delete.
6278 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
6279 (define_mode_iterator VI2_AVX512VL): Ditto.
6280 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
6281 Delete.
6282 (define_insn
6283 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
6284 New.
6285 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
6286 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
6287 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
6288 with VI48_AVX512F_AVX512VL): New.
6289 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
6290 with VI2_AVX512VL): Ditto.
6291
6292 2014-08-19 Marek Polacek <polacek@redhat.com>
6293
6294 * doc/invoke.texi: Document -Wc99-c11-compat.
6295
6296 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6297
6298 * rtl.h (PREV_INSN): Split macro in two: the existing one,
6299 for rvalues, and...
6300 (SET_PREV_INSN): New macro, for use as an lvalue.
6301 (NEXT_INSN, SET_NEXT_INSN): Likewise.
6302
6303 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
6304 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
6305 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
6306 (fixup_abnormal_edges): Likewise.
6307 (unlink_insn_chain): Likewise.
6308 (fixup_reorder_chain): Likewise.
6309 (cfg_layout_delete_block): Likewise.
6310 (cfg_layout_merge_blocks): Likewise.
6311 * combine.c (update_cfg_for_uncondjump): Likewise.
6312 * emit-rtl.c (link_insn_into_chain): Likewise.
6313 (remove_insn): Likewise.
6314 (delete_insns_since): Likewise.
6315 (reorder_insns_nobb): Likewise.
6316 (emit_insn_after_1): Likewise.
6317 * final.c (rest_of_clean_state): Likewise.
6318 (final_scan_insn): Likewise.
6319 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
6320 * haifa-sched.c (concat_note_lists): Likewise.
6321 (remove_notes): Likewise.
6322 (restore_other_notes): Likewise.
6323 (move_insn): Likewise.
6324 (unlink_bb_notes): Likewise.
6325 (restore_bb_notes): Likewise.
6326 * jump.c (delete_for_peephole): Likewise.
6327 * optabs.c (emit_libcall_block_1): Likewise.
6328 * reorg.c (emit_delay_sequence): Likewise.
6329 (fill_simple_delay_slots): Likewise.
6330 * sel-sched-ir.c (sel_move_insn): Likewise.
6331 (sel_remove_insn): Likewise.
6332 (get_bb_note_from_pool): Likewise.
6333 * sel-sched.c (move_nop_to_previous_block): Likewise.
6334
6335 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
6336 * config/c6x/c6x.c (gen_one_bundle): Likewise.
6337 (c6x_gen_bundles): Likewise.
6338 (hwloop_optimize): Likewise.
6339 * config/frv/frv.c (frv_function_prologue): Likewise.
6340 (frv_register_nop): Likewise.
6341 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
6342 (ia64_reorg): Likewise.
6343 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
6344 (mep_make_bundle): Likewise.
6345 (mep_bundle_insns): Likewise.
6346 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
6347 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
6348 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
6349
6350 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6351
6352 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
6353 return type from rtx to rtx_insn *.
6354 (BB_END): Likewise.
6355 (BB_HEADER): Likewise.
6356 (BB_FOOTER): Likewise.
6357 (SET_BB_HEAD): Convert to a function.
6358 (SET_BB_END): Likewise.
6359 (SET_BB_HEADER): Likewise.
6360 (SET_BB_FOOTER): Likewise.
6361
6362 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
6363 Strengthen the return type from rtx to rtx_insn *. For now, this
6364 is done by adding a checked cast, but this will eventually
6365 become a field lookup.
6366 (BB_END): Likewise.
6367 (BB_HEADER): Likewise.
6368 (BB_FOOTER): Likewise.
6369 (SET_BB_HEAD): New function, from macro of same name. This is
6370 intended for use as an lvalue, and so returns an rtx& to allow
6371 in-place modification.
6372 (SET_BB_END): Likewise.
6373 (SET_BB_HEADER): Likewise.
6374 (SET_BB_FOOTER): Likewise.
6375
6376 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6377
6378 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
6379 for rvalues, and...
6380 (SET_BB_HEAD): New macro, for use as a lvalue.
6381 (BB_END, SET_BB_END): Likewise.
6382 (BB_HEADER, SET_BB_HEADER): Likewise.
6383 (BB_FOOTER, SET_BB_FOOTER): Likewise.
6384
6385 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
6386 of BB_* macros into SET_BB_* macros.
6387 (fix_crossing_unconditional_branches): Likewise.
6388 * caller-save.c (save_call_clobbered_regs): Likewise.
6389 (insert_one_insn): Likewise.
6390 * cfgbuild.c (find_bb_boundaries): Likewise.
6391 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
6392 (outgoing_edges_match): Likewise.
6393 (try_optimize_cfg): Likewise.
6394 * cfgexpand.c (expand_gimple_cond): Likewise.
6395 (expand_gimple_tailcall): Likewise.
6396 (expand_gimple_basic_block): Likewise.
6397 (construct_exit_block): Likewise.
6398 * cfgrtl.c (delete_insn): Likewise.
6399 (create_basic_block_structure): Likewise.
6400 (rtl_delete_block): Likewise.
6401 (rtl_split_block): Likewise.
6402 (emit_nop_for_unique_locus_between): Likewise.
6403 (rtl_merge_blocks): Likewise.
6404 (block_label): Likewise.
6405 (try_redirect_by_replacing_jump): Likewise.
6406 (emit_barrier_after_bb): Likewise.
6407 (fixup_abnormal_edges): Likewise.
6408 (record_effective_endpoints): Likewise.
6409 (relink_block_chain): Likewise.
6410 (fixup_reorder_chain): Likewise.
6411 (fixup_fallthru_exit_predecessor): Likewise.
6412 (cfg_layout_duplicate_bb): Likewise.
6413 (cfg_layout_split_block): Likewise.
6414 (cfg_layout_delete_block): Likewise.
6415 (cfg_layout_merge_blocks): Likewise.
6416 * combine.c (update_cfg_for_uncondjump): Likewise.
6417 * emit-rtl.c (add_insn_after): Likewise.
6418 (remove_insn): Likewise.
6419 (reorder_insns): Likewise.
6420 (emit_insn_after_1): Likewise.
6421 * haifa-sched.c (get_ebb_head_tail): Likewise.
6422 (restore_other_notes): Likewise.
6423 (move_insn): Likewise.
6424 (sched_extend_bb): Likewise.
6425 (fix_jump_move): Likewise.
6426 * ifcvt.c (noce_process_if_block): Likewise.
6427 (dead_or_predicable): Likewise.
6428 * ira.c (update_equiv_regs): Likewise.
6429 * reg-stack.c (change_stack): Likewise.
6430 * sel-sched-ir.c (sel_move_insn): Likewise.
6431 * sel-sched.c (move_nop_to_previous_block): Likewise.
6432
6433 * config/c6x/c6x.c (hwloop_optimize): Likewise.
6434 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
6435
6436 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6437
6438 * rtl.h (for_each_rtx_in_insn): New function.
6439 * rtlanal.c (for_each_rtx_in_insn): Likewise.
6440
6441 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6442
6443 * coretypes.h (class rtx_insn): Add forward declaration.
6444
6445 * rtl.h: Include is-a.h.
6446 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
6447 workaround to ensure gengtype knows inheritance is occurring,
6448 whilst continuing to use the pre-existing special-casing for
6449 rtx_def.
6450 (class rtx_insn): New subclass of rtx_def, adding the
6451 invariant that we're dealing with something we can sanely use
6452 INSN_UID, NEXT_INSN, PREV_INSN on.
6453 (is_a_helper <rtx_insn *>::test): New.
6454 (is_a_helper <const rtx_insn *>::test): New.
6455
6456 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6457
6458 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
6459
6460 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6461
6462 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
6463 comdats as extern.
6464
6465 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6466
6467 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
6468 to BUILT_IN_UNREACHABLE.
6469
6470 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
6471
6472 PR target/62011
6473 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
6474 New tune flag.
6475 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
6476 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
6477 (ffs<mode>2): Do not expand with tzcnt for
6478 TARGET_AVOID_FALSE_DEP_FOR_BMI.
6479 (ffssi2_no_cmove): Ditto.
6480 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
6481 (ctz<mode>2): New expander.
6482 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
6483 (*ctz<mode>2_falsedep): New insn.
6484 (*ctz<mode>2): Rename from ctz<mode>2.
6485 (clz<mode>2_lzcnt): New expander.
6486 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
6487 (*clz<mode>2_lzcnt_falsedep): New insn.
6488 (*clz<mode>2): Rename from ctz<mode>2.
6489 (popcount<mode>2): New expander.
6490 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
6491 (*popcount<mode>2_falsedep): New insn.
6492 (*popcount<mode>2): Rename from ctz<mode>2.
6493 (*popcount<mode>2_cmp): Remove.
6494 (*popcountsi2_cmp_zext): Ditto.
6495
6496 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
6497
6498 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
6499 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
6500 * config/microblaze/microblaze.h
6501 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
6502
6503 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
6504
6505 PR other/62168
6506 * configure.ac: Set install_gold_as_default to no for
6507 --enable-gold=no.
6508 * configure: Regenerated.
6509
6510 2014-08-18 Roman Gareev <gareevroman@gmail.com>
6511
6512 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
6513 * config.in: Add undef of HAVE_isl.
6514 * configure: Regenerate.
6515 * configure.ac: Add definition of HAVE_isl.
6516 * graphite-blocking.c: Add checking of HAVE_isl.
6517 * graphite-dependences.c: Likewise.
6518 * graphite-interchange.c: Likewise.
6519 * graphite-isl-ast-to-gimple.c: Likewise.
6520 * graphite-optimize-isl.c: Likewise.
6521 * graphite-poly.c: Likewise.
6522 * graphite-scop-detection.c: Likewise.
6523 * graphite-sese-to-poly.c: Likewise.
6524 * graphite.c: Likewise.
6525 * toplev.c: Replace the checking of HAVE_cloog with the checking
6526 of HAVE_isl.
6527
6528 2014-08-18 Richard Biener <rguenther@suse.de>
6529
6530 PR tree-optimization/62090
6531 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
6532 (fold_builtin_3): Do not fold snprintf.
6533 (fold_builtin_4): Likewise.
6534 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
6535 moved from builtins.c.
6536 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
6537 (gimple_fold_builtin): Do not fold sprintf here.
6538
6539 2014-08-18 Richard Biener <rguenther@suse.de>
6540
6541 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
6542 code to ...
6543 (maybe_canonicalize_mem_ref_addr): ... this function.
6544 (fold_stmt_1): Apply it here before all simplification.
6545
6546 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
6547
6548 PR ipa/61800
6549 * cgraph.h (cgraph_node::create_indirect_edge): Add
6550 compute_indirect_info param.
6551 * cgraph.c (cgraph_node::create_indirect_edge): Compute
6552 indirect_info only when it is required.
6553 * cgraphclones.c (cgraph_clone_edge): Do not recompute
6554 indirect_info fore cloned indirect edge.
6555
6556 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6557 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6558 Anna Tikhonova <anna.tikhonova@intel.com>
6559 Ilya Tocar <ilya.tocar@intel.com>
6560 Andrey Turetskiy <andrey.turetskiy@intel.com>
6561 Ilya Verbin <ilya.verbin@intel.com>
6562 Kirill Yukhin <kirill.yukhin@intel.com>
6563 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6564
6565 * config/i386/sse.md
6566 (define_mode_iterator VI8_AVX2_AVX512BW): New.
6567 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
6568
6569 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6570 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6571 Anna Tikhonova <anna.tikhonova@intel.com>
6572 Ilya Tocar <ilya.tocar@intel.com>
6573 Andrey Turetskiy <andrey.turetskiy@intel.com>
6574 Ilya Verbin <ilya.verbin@intel.com>
6575 Kirill Yukhin <kirill.yukhin@intel.com>
6576 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6577
6578 * config/i386/sse.md
6579 (define_mode_iterator VF1_AVX512VL): New.
6580 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
6581 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
6582 New.
6583
6584 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6585 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6586 Anna Tikhonova <anna.tikhonova@intel.com>
6587 Ilya Tocar <ilya.tocar@intel.com>
6588 Andrey Turetskiy <andrey.turetskiy@intel.com>
6589 Ilya Verbin <ilya.verbin@intel.com>
6590 Kirill Yukhin <kirill.yukhin@intel.com>
6591 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6592
6593 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
6594 * config/i386/i386.md
6595 (define_code_iterator any_float): New.
6596 (define_code_attr floatsuffix): New.
6597 * config/i386/sse.md
6598 (define_mode_iterator VF1_128_256VL): New.
6599 (define_mode_iterator VF2_512_256VL): New.
6600 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
6601 TARGET check.
6602 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
6603 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
6604 New.
6605 (define_mode_attr qq2pssuff): New.
6606 (define_mode_attr sselongvecmode): New.
6607 (define_mode_attr sselongvecmodelower): New.
6608 (define_mode_attr sseintvecmode3): New.
6609 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
6610 New.
6611 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
6612 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
6613 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
6614 (define_insn "ufloatv2siv2df2<mask_name>"): New.
6615
6616 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6617 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6618 Anna Tikhonova <anna.tikhonova@intel.com>
6619 Ilya Tocar <ilya.tocar@intel.com>
6620 Andrey Turetskiy <andrey.turetskiy@intel.com>
6621 Ilya Verbin <ilya.verbin@intel.com>
6622 Kirill Yukhin <kirill.yukhin@intel.com>
6623 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6624
6625 * config/i386/sse.md
6626 (define_mode_iterator VF2_AVX512VL): New.
6627 (define_mode_attr sseintvecmode2): New.
6628 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
6629 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
6630 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
6631 (define_insn
6632 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
6633 Ditto.
6634 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6635 Ditto.
6636 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6637 Ditto.
6638
6639 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6640 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6641 Anna Tikhonova <anna.tikhonova@intel.com>
6642 Ilya Tocar <ilya.tocar@intel.com>
6643 Andrey Turetskiy <andrey.turetskiy@intel.com>
6644 Ilya Verbin <ilya.verbin@intel.com>
6645 Kirill Yukhin <kirill.yukhin@intel.com>
6646 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6647
6648 * config/i386/i386.md
6649 (define_insn "*movoi_internal_avx"): Add evex version.
6650 (define_insn "*movti_internal"): Ditto.
6651
6652 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6653 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6654 Anna Tikhonova <anna.tikhonova@intel.com>
6655 Ilya Tocar <ilya.tocar@intel.com>
6656 Andrey Turetskiy <andrey.turetskiy@intel.com>
6657 Ilya Verbin <ilya.verbin@intel.com>
6658 Kirill Yukhin <kirill.yukhin@intel.com>
6659 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6660
6661 * config/i386/i386.md
6662 (define_attr "isa"): Add avx512dq, noavx512dq.
6663 (define_attr "enabled"): Ditto.
6664 * config/i386/sse.md
6665 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
6666
6667 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6668 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6669 Anna Tikhonova <anna.tikhonova@intel.com>
6670 Ilya Tocar <ilya.tocar@intel.com>
6671 Andrey Turetskiy <andrey.turetskiy@intel.com>
6672 Ilya Verbin <ilya.verbin@intel.com>
6673 Kirill Yukhin <kirill.yukhin@intel.com>
6674 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6675
6676 * config/i386/i386.c
6677 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
6678 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
6679 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
6680 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
6681 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
6682 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
6683 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
6684 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
6685 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
6686 * config/i386/sse.md
6687 (define_mode_iterator VMOVE): Allow V4TI mode.
6688 (define_mode_iterator V_AVX512VL): New.
6689 (define_mode_iterator V): New handling for AVX512VL.
6690 (define_insn "avx512f_load<mode>_mask"): Delete.
6691 (define_insn "<avx512>_load<mode>_mask"): New.
6692 (define_insn "avx512f_store<mode>_mask"): Delete.
6693 (define_insn "<avx512>_store<mode>_mask"): New.
6694
6695
6696 2014-08-18 Yury Gribov <y.gribov@samsung.com>
6697
6698 PR sanitizer/62089
6699 * asan.c (instrument_derefs): Fix bitfield check.
6700
6701 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6702
6703 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
6704 * config/rs6000/htm.md (ttest): Remove clobber.
6705 * config/rs6000/predicates.md (any_mask_operand): New predicate.
6706 (and_operand): Reformat.
6707 (and_2rld_operand): New predicate.
6708 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
6709 parameter.
6710 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
6711 parameter. Handle AND directly.
6712 (rs6000_split_logical_di): Remove last parameter.
6713 (rs6000_split_logical): Remove last parameter. Remove obsolete
6714 comment.
6715 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
6716 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
6717 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
6718 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
6719 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
6720 and 5 anonymous splitters): Delete.
6721 (and<mode>3): New expander.
6722 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
6723 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
6724 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
6725 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
6726 (floatdisf2_internal1): Remove clobbers.
6727 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
6728 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
6729 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
6730 (and<mode>3 for BOOL_128): Remove clobber.
6731 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
6732 rs6000_split_logical.
6733 (*bool<mode>3_internal for BOOL_128): Adjust call of
6734 rs6000_split_logical.
6735 (*boolc<mode>3_internal1 for BOOL_128,
6736 *boolc<mode>3_internal2 for BOOL_128,
6737 *boolcc<mode>3_internal1 for BOOL_128,
6738 *boolcc<mode>3_internal2 for BOOL_128,
6739 *eqv<mode>3_internal1 for BOOL_128,
6740 *eqv<mode>3_internal2 for BOOL_128,
6741 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
6742 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
6743 clobber.
6744 (*vec_reload_and_reg_<mptrsize>): Delete.
6745
6746 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6747
6748 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
6749 and split, *boolccsi3_internal3 and split): Delete.
6750 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
6751 *boolccdi3_internal3 and split): Delete.
6752 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
6753 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
6754
6755 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6756
6757 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
6758 and split, *boolcsi3_internal3 and split): Delete.
6759 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
6760 *boolcdi3_internal3 and split): Delete.
6761 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
6762
6763 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6764
6765 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
6766 <'u'>: Also support printing the low-order 16 bits.
6767 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
6768 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
6769 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
6770 *booldi3_internal3 and split): Delete.
6771 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
6772 *bool<mode>3_dot2): New.
6773 (two anonymous define_splits for non_logical_cint_operand): Merge.
6774
6775 2014-08-17 Marek Polacek <polacek@redhat.com>
6776 Manuel López-Ibáñez <manu@gcc.gnu.org>
6777
6778 PR c/62059
6779 * diagnostic.c (adjust_line): Add gcc_checking_assert.
6780 (diagnostic_show_locus): Don't print caret diagnostic
6781 if a column is larger than the line_width.
6782
6783 2014-08-17 Roman Gareev <gareevroman@gmail.com>
6784
6785 * common.opt: Make the ISL AST generator to be the main code generator
6786 of Graphite.
6787
6788 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
6789
6790 * wide-int.h (generic_wide_int): Declare as class instead of struct.
6791
6792 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
6793
6794 PR target/61641
6795 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
6796 Declare.
6797 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
6798 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
6799 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
6800 Define.
6801 * config/pa/pa.md (begin_brtab): Delete insn.
6802 (end_brtab): Likewise.
6803
6804 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6805
6806 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
6807
6808 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
6809
6810 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
6811 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
6812 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
6813 (get_dynamic_type): Remove.
6814 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
6815 (clear_speculation): Bring to ipa-deivrt.h
6816 (get_class_context): Rename to ...
6817 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
6818 (contains_type_p): Update.
6819 (get_dynamic_type): Rename to ...
6820 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
6821 (possible_polymorphic_call_targets): UPdate.
6822 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
6823 * ipa-prop.c (ipa_analyze_call_uses): Update.
6824
6825 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
6826
6827 * doc/invoke.texi (SH options): Document missing processor variant
6828 options. Remove references to Hitachi. Undocument deprecated mspace
6829 option.
6830
6831 2014-08-15 Jason Merrill <jason@redhat.com>
6832
6833 * tree.c (type_hash_canon): Uncomment assert.
6834
6835 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6836
6837 * input.h (in_system_header_at): Add comment.
6838
6839 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6840
6841 PR fortran/44054
6842 * diagnostic.c (build_message_string): Make it extern.
6843 * diagnostic.h (build_message_string): Make it extern.
6844
6845 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
6846
6847 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
6848 load/store from/to non-floating class pseudo.
6849
6850 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6851
6852 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
6853
6854 2014-08-15 Richard Biener <rguenther@suse.de>
6855
6856 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
6857 (get_constraint_for_ssa_var): Remove dead code.
6858 (get_constraint_for_1): Adjust.
6859 (find_what_var_points_to): Likewise.
6860 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
6861
6862 2014-08-15 Ilya Tocar <tocarip@gmail.com>
6863
6864 PR target/61878
6865 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
6866 (_mm512_mask_cmpge_epu32_mask): Ditto.
6867 (_mm512_cmpge_epu32_mask): Ditto.
6868 (_mm512_mask_cmpge_epi64_mask): Ditto.
6869 (_mm512_cmpge_epi64_mask): Ditto.
6870 (_mm512_mask_cmpge_epu64_mask): Ditto.
6871 (_mm512_cmpge_epu64_mask): Ditto.
6872 (_mm512_mask_cmple_epi32_mask): Ditto.
6873 (_mm512_cmple_epi32_mask): Ditto.
6874 (_mm512_mask_cmple_epu32_mask): Ditto.
6875 (_mm512_cmple_epu32_mask): Ditto.
6876 (_mm512_mask_cmple_epi64_mask): Ditto.
6877 (_mm512_cmple_epi64_mask): Ditto.
6878 (_mm512_mask_cmple_epu64_mask): Ditto.
6879 (_mm512_cmple_epu64_mask): Ditto.
6880 (_mm512_mask_cmplt_epi32_mask): Ditto.
6881 (_mm512_cmplt_epi32_mask): Ditto.
6882 (_mm512_mask_cmplt_epu32_mask): Ditto.
6883 (_mm512_cmplt_epu32_mask): Ditto.
6884 (_mm512_mask_cmplt_epi64_mask): Ditto.
6885 (_mm512_cmplt_epi64_mask): Ditto.
6886 (_mm512_mask_cmplt_epu64_mask): Ditto.
6887 (_mm512_cmplt_epu64_mask): Ditto.
6888 (_mm512_mask_cmpneq_epi32_mask): Ditto.
6889 (_mm512_mask_cmpneq_epu32_mask): Ditto.
6890 (_mm512_cmpneq_epu32_mask): Ditto.
6891 (_mm512_mask_cmpneq_epi64_mask): Ditto.
6892 (_mm512_cmpneq_epi64_mask): Ditto.
6893 (_mm512_mask_cmpneq_epu64_mask): Ditto.
6894 (_mm512_cmpneq_epu64_mask): Ditto.
6895 (_mm512_castpd_ps): Ditto.
6896 (_mm512_castpd_si512): Ditto.
6897 (_mm512_castps_pd): Ditto.
6898 (_mm512_castps_si512): Ditto.
6899 (_mm512_castsi512_ps): Ditto.
6900 (_mm512_castsi512_pd): Ditto.
6901 (_mm512_castpd512_pd128): Ditto.
6902 (_mm512_castps512_ps128): Ditto.
6903 (_mm512_castsi512_si128): Ditto.
6904 (_mm512_castpd512_pd256): Ditto.
6905 (_mm512_castps512_ps256): Ditto.
6906 (_mm512_castsi512_si256): Ditto.
6907 (_mm512_castpd128_pd512): Ditto.
6908 (_mm512_castps128_ps512): Ditto.
6909 (_mm512_castsi128_si512): Ditto.
6910 (_mm512_castpd256_pd512): Ditto.
6911 (_mm512_castps256_ps512): Ditto.
6912 (_mm512_castsi256_si512): Ditto.
6913 (_mm512_cmpeq_epu32_mask): Ditto.
6914 (_mm512_mask_cmpeq_epu32_mask): Ditto.
6915 (_mm512_mask_cmpeq_epu64_mask): Ditto.
6916 (_mm512_cmpeq_epu64_mask): Ditto.
6917 (_mm512_cmpgt_epu32_mask): Ditto.
6918 (_mm512_mask_cmpgt_epu32_mask): Ditto.
6919 (_mm512_mask_cmpgt_epu64_mask): Ditto.
6920 (_mm512_cmpgt_epu64_mask): Ditto.
6921 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
6922 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
6923 * config/i386/i386.c (enum ix86_builtins): Add
6924 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
6925 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
6926 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
6927 (bdesc_args): Add __builtin_ia32_si512_256si,
6928 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
6929 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
6930 __builtin_ia32_pd512_pd.
6931 (ix86_expand_args_builtin): Handle new FTYPEs.
6932 * config/i386/sse.md (castmode): Add 512-bit modes.
6933 (AVX512MODE2P): New.
6934 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
6935 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
6936
6937 2014-08-15 Richard Biener <rguenther@suse.de>
6938
6939 * fold-const.c (tree_swap_operands_p): Put all constants
6940 last, also strip sign-changing NOPs when considering further
6941 canonicalization. Canonicalize also when optimizing for size.
6942
6943 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6944
6945 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
6946 one_match > zero_match case to just before simple_sequence.
6947
6948 2014-08-15 Richard Biener <rguenther@suse.de>
6949
6950 * data-streamer.h (streamer_string_index, string_for_index):
6951 Remove.
6952 * data-streamer-out.c (streamer_string_index): Make static.
6953 * data-streamer-in.c (string_for_index): Likewise.
6954 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
6955 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
6956
6957 2014-08-15 Richard Biener <rguenther@suse.de>
6958
6959 PR tree-optimization/62031
6960 * tree-data-ref.c (dr_analyze_indices): Do not set
6961 DR_UNCONSTRAINED_BASE.
6962 (dr_may_alias_p): All indirect accesses have to go the
6963 formerly DR_UNCONSTRAINED_BASE path.
6964 * tree-data-ref.h (struct indices): Remove
6965 unconstrained_base member.
6966 (DR_UNCONSTRAINED_BASE): Remove.
6967
6968 2014-08-15 Jakub Jelinek <jakub@redhat.com>
6969
6970 PR middle-end/62092
6971 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
6972 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
6973 in OMP_CLAUSE_MAP in some outer target region.
6974
6975 2014-08-15 Bin Cheng <bin.cheng@arm.com>
6976
6977 * tree-ssa-loop-ivopts.c (ivopts_data): New field
6978 name_expansion_cache.
6979 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
6980 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
6981 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
6982 (difference_cannot_overflow_p): New parameter. Use affine
6983 expansion for equality check.
6984 (iv_elimination_compare_lt): Pass new argument.
6985
6986 2014-08-14 DJ Delorie <dj@redhat.com>
6987
6988 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
6989 variables to the accumulator.
6990
6991 * config/rl78/predicates.md (rl78_near_mem_operand): New.
6992 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
6993 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
6994 with far-far moves.
6995
6996 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
6997 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
6998 (umulqihi3_virt): Likewise.
6999 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
7000 (umulqihi3_real): Likewise.
7001
7002 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
7003
7004 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
7005
7006 PR tree-optimization/62091
7007 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
7008 function_entry_reached.
7009 (walk_aliased_vdefs): Clear it here.
7010 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
7011
7012 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
7013
7014 * ipa-utils.h (compare_virtual_tables): Declare.
7015 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
7016
7017 2014-08-14 Marek Polacek <polacek@redhat.com>
7018
7019 DR 458
7020 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
7021 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
7022
7023 2014-08-14 Tom de Vries <tom@codesourcery.com>
7024
7025 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
7026
7027 2014-08-14 Tom de Vries <tom@codesourcery.com>
7028
7029 PR rtl-optimization/62004
7030 PR rtl-optimization/62030
7031 * ifcvt.c (rtx_interchangeable_p): New function.
7032 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
7033 * emit-rtl.h (mem_attrs_eq_p): Declare.
7034
7035 2014-08-14 Roman Gareev <gareevroman@gmail.com>
7036
7037 * graphite-scop-detection.c:
7038 Add inclusion of cp-tree.h.
7039 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
7040 in case they are pointers to object types
7041
7042 2014-08-14 Richard Biener <rguenther@suse.de>
7043
7044 * BASE-VER: Change to 5.0.0
7045
7046 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7047 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7048 Anna Tikhonova <anna.tikhonova@intel.com>
7049 Ilya Tocar <ilya.tocar@intel.com>
7050 Andrey Turetskiy <andrey.turetskiy@intel.com>
7051 Ilya Verbin <ilya.verbin@intel.com>
7052 Kirill Yukhin <kirill.yukhin@intel.com>
7053 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7054
7055 * config/i386/sse.md (define_mode_attr avx512): New.
7056 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
7057 V4DI modes.
7058 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
7059 (define_mode_attr ssse3_avx2): Ditto.
7060 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
7061 (define_mode_attr avx2_avx512bw): New.
7062 (define_mode_attr ssedoublemodelower): New.
7063 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
7064 V32HI, V64QI modes.
7065 (define_mode_attr ssebytemode): Allow V8DI modes.
7066 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
7067 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
7068 (define_mode_attr ssePSmode2): New.
7069 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
7070 V16HI, V32HI modes.
7071 (define_mode_attr dbpsadbwmode): New.
7072 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
7073 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
7074 (vi8_sse4_1_avx2_avx512): New.
7075 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
7076 mode attribute.
7077 (define_mode_attr blendbits): Move before its immediate use.
7078
7079 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7080 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7081 Anna Tikhonova <anna.tikhonova@intel.com>
7082 Ilya Tocar <ilya.tocar@intel.com>
7083 Andrey Turetskiy <andrey.turetskiy@intel.com>
7084 Ilya Verbin <ilya.verbin@intel.com>
7085 Kirill Yukhin <kirill.yukhin@intel.com>
7086 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7087
7088 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
7089 * config/i386/subst.md
7090 (define_mode_iterator SUBST_V): Update.
7091 (define_mode_iterator SUBST_A): Ditto.
7092 (define_subst_attr "mask_operand7"): New.
7093 (define_subst_attr "mask_operand10"): New.
7094 (define_subst_attr "mask_operand_arg34") : New.
7095 (define_subst_attr "mask_expand_op3"): New.
7096 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
7097 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
7098 (define_subst_attr "mask_avx512vl_condition"): New.
7099 (define_subst_attr "round_mask_operand4"): Ditto.
7100 (define_subst_attr "round_mask_scalar_op3"): Delete.
7101 (define_subst_attr "round_mask_op4"): New.
7102 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
7103 V16SImode.
7104 (define_subst_attr "round_modev8sf_condition"): New.
7105 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
7106 <MODE>mode.
7107 (define_subst_attr "round_saeonly_mask_operand4"): New.
7108 (define_subst_attr "round_saeonly_mask_op4"): New.
7109 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
7110 V8DImode, V16SImode.
7111 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
7112 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
7113 (define_subst_attr "mask_expand4_args"): New.
7114 (define_subst "mask_expand4"): New.
7115
7116 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7117 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7118 Anna Tikhonova <anna.tikhonova@intel.com>
7119 Ilya Tocar <ilya.tocar@intel.com>
7120 Andrey Turetskiy <andrey.turetskiy@intel.com>
7121 Ilya Verbin <ilya.verbin@intel.com>
7122 Kirill Yukhin <kirill.yukhin@intel.com>
7123 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7124
7125 * config/i386/i386.md
7126 (define_attr "isa"): Add avx512bw,noavx512bw.
7127 (define_attr "enabled"): Ditto.
7128 (define_split): Add 32/64-bit mask logic.
7129 (define_insn "*k<logic>qi"): New.
7130 (define_insn "*k<logic>hi"): New.
7131 (define_insn "*anddi_1"): Add mask version.
7132 (define_insn "*andsi_1"): Ditto.
7133 (define_insn "*<code><mode>_1"): Ditto.
7134 (define_insn "*<code>hi_1"): Ditto.
7135 (define_insn "kxnor<mode>"): New.
7136 (define_insn "kunpcksi"): New.
7137 (define_insn "kunpckdi"): New.
7138 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
7139 (define_insn "*one_cmplhi2_1"): Ditto.
7140
7141 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7142 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7143 Anna Tikhonova <anna.tikhonova@intel.com>
7144 Ilya Tocar <ilya.tocar@intel.com>
7145 Andrey Turetskiy <andrey.turetskiy@intel.com>
7146 Ilya Verbin <ilya.verbin@intel.com>
7147 Kirill Yukhin <kirill.yukhin@intel.com>
7148 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7149
7150 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
7151 V32HImode.
7152
7153 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7154 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7155 Anna Tikhonova <anna.tikhonova@intel.com>
7156 Ilya Tocar <ilya.tocar@intel.com>
7157 Andrey Turetskiy <andrey.turetskiy@intel.com>
7158 Ilya Verbin <ilya.verbin@intel.com>
7159 Kirill Yukhin <kirill.yukhin@intel.com>
7160 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7161
7162 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
7163 registers.
7164 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
7165 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
7166 xmm/ymm16+ when availble.
7167 * config/i386/i386.h
7168 (HARD_REGNO_NREGS): Add mask regs.
7169 (VALID_AVX512F_REG_MODE): Ditto.
7170 (VALID_AVX512F_REG_MODE) : Define.
7171 (VALID_MASK_AVX512BW_MODE): Ditto.
7172 (reg_class) (MASK_REG_P(X)): Define.
7173 * config/i386/i386.md: Do not split long moves with mask register,
7174 use kmovb if avx512bw is availible.
7175 (movdi_internal): Handle mask registers.
7176
7177 2014-08-14 Richard Biener <rguenther@suse.de>
7178
7179 PR tree-optimization/62081
7180 * tree-ssa-loop.c (pass_fix_loops): New pass.
7181 (pass_tree_loop::gate): Do not fixup loops here.
7182 * tree-pass.h (make_pass_fix_loops): Declare.
7183 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
7184
7185 2014-08-14 Richard Biener <rguenther@suse.de>
7186
7187 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
7188 (type_hash_canon): ... this and avoid 2nd lookup for the add.
7189
7190 2014-08-14 Richard Biener <rguenther@suse.de>
7191
7192 PR tree-optimization/62090
7193 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
7194 (fold_builtin_2): Do not fold sprintf.
7195 (fold_builtin_3): Likewise.
7196 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
7197 moved from builtins.c.
7198 (gimple_fold_builtin): Fold sprintf.
7199
7200 2014-08-14 Richard Biener <rguenther@suse.de>
7201
7202 PR rtl-optimization/62079
7203 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
7204 run cleanup_cfg.
7205
7206 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
7207
7208 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
7209 current_function_decl.
7210
7211 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
7212
7213 * cgraph.c (cgraph_node::function_symbol): Fix wrong
7214 cgraph_function_node to cgraph_node::function_symbol
7215 refactoring.
7216
7217 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
7218
7219 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
7220 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
7221
7222 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
7223
7224 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
7225 warning.
7226
7227 2014-08-13 Roman Gareev <gareevroman@gmail.com>
7228
7229 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
7230 generator.
7231
7232 2014-08-12 Jakub Jelinek <jakub@redhat.com>
7233
7234 PR target/62025
7235 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
7236 any registers that are used in mem_insn.
7237
7238 2014-08-12 Steve Ellcey <sellcey@mips.com>
7239
7240 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
7241
7242 2014-08-12 Steve Ellcey <sellcey@mips.com>
7243
7244 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
7245 (MULTILIB_DIRNAMES): Ditto.
7246 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
7247 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
7248 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
7249 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
7250 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
7251 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
7252
7253 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7254
7255 PR target/61413
7256 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
7257 of __ARM_SIZEOF_WCHAR_T.
7258
7259 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7260
7261 PR target/62098
7262 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
7263 Remove unnecessary attributes.
7264
7265 2014-08-12 Yury Gribov <y.gribov@samsung.com>
7266
7267 * internal-fn.c (init_internal_fns): Fix off-by-one.
7268
7269 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
7270 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7271 Anna Tikhonova <anna.tikhonova@intel.com>
7272 Ilya Tocar <ilya.tocar@intel.com>
7273 Andrey Turetskiy <andrey.turetskiy@intel.com>
7274 Ilya Verbin <ilya.verbin@intel.com>
7275 Kirill Yukhin <kirill.yukhin@intel.com>
7276 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7277
7278 * config/i386/i386.c (standard_sse_constant_opcode): Use
7279 vpxord/vpternlog if avx512 is availible.
7280
7281 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
7282
7283 PR middle-end/62103
7284 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
7285 bitfields, that is when size doesn't match the size of type or the
7286 size of the constructor.
7287
7288 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7289
7290 * config/rs6000/constraints.md (wh constraint): New constraint,
7291 for FP registers if direct move is available.
7292 (wi constraint): New constraint, for VSX/FP registers that can
7293 handle 64-bit integers.
7294 (wj constraint): New constraint for VSX/FP registers that can
7295 handle 64-bit integers for direct moves.
7296 (wk constraint): New constraint for VSX/FP registers that can
7297 handle 64-bit doubles for direct moves.
7298 (wy constraint): Make documentation match implementation.
7299
7300 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
7301 scalar_in_vmx_p field to simplify tests of whether SFmode or
7302 DFmode can go in the Altivec registers.
7303 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
7304 (rs6000_setup_reg_addr_masks): Likewise.
7305 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
7306 field, and wh/wi/wj/wk constraints.
7307 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
7308 the wh/wi/wj/wk constraints.
7309 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
7310 upper registers, prefer VSX registers unless the operation is a
7311 memory operation with REG+OFFSET addressing.
7312
7313 * config/rs6000/vsx.md (VSr mode attribute): Add support for
7314 DImode. Change SFmode to use ww constraint instead of d to allow
7315 SF registers in the upper registers.
7316 (VSr2): Likewise.
7317 (VSr3): Likewise.
7318 (VSr5): Fix thinko in comment.
7319 (VSa): New mode attribute that is an alternative to wa, that
7320 returns the VSX register class that a mode can go in, but may not
7321 be the preferred register class.
7322 (VS_64dm): New mode attribute for appropriate register classes for
7323 referencing 64-bit elements of vectors for direct moves and normal
7324 moves.
7325 (VS_64reg): Likewise.
7326 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
7327 register allocator to only registers the data type can handle.
7328 (vsx_le_perm_load_<mode>): Likewise.
7329 (vsx_le_perm_store_<mode>): Likewise.
7330 (vsx_xxpermdi2_le_<mode>): Likewise.
7331 (vsx_xxpermdi4_le_<mode>): Likewise.
7332 (vsx_lxvd2x2_le_<mode>): Likewise.
7333 (vsx_lxvd2x4_le_<mode>): Likewise.
7334 (vsx_stxvd2x2_le_<mode>): Likewise.
7335 (vsx_add<mode>3): Likewise.
7336 (vsx_sub<mode>3): Likewise.
7337 (vsx_mul<mode>3): Likewise.
7338 (vsx_div<mode>3): Likewise.
7339 (vsx_tdiv<mode>3_internal): Likewise.
7340 (vsx_fre<mode>2): Likewise.
7341 (vsx_neg<mode>2): Likewise.
7342 (vsx_abs<mode>2): Likewise.
7343 (vsx_nabs<mode>2): Likewise.
7344 (vsx_smax<mode>3): Likewise.
7345 (vsx_smin<mode>3): Likewise.
7346 (vsx_sqrt<mode>2): Likewise.
7347 (vsx_rsqrte<mode>2): Likewise.
7348 (vsx_tsqrt<mode>2_internal): Likewise.
7349 (vsx_fms<mode>4): Likewise.
7350 (vsx_nfma<mode>4): Likewise.
7351 (vsx_eq<mode>): Likewise.
7352 (vsx_gt<mode>): Likewise.
7353 (vsx_ge<mode>): Likewise.
7354 (vsx_eq<mode>_p): Likewise.
7355 (vsx_gt<mode>_p): Likewise.
7356 (vsx_ge<mode>_p): Likewise.
7357 (vsx_xxsel<mode>): Likewise.
7358 (vsx_xxsel<mode>_uns): Likewise.
7359 (vsx_copysign<mode>3): Likewise.
7360 (vsx_float<VSi><mode>2): Likewise.
7361 (vsx_floatuns<VSi><mode>2): Likewise.
7362 (vsx_fix_trunc<mode><VSi>2): Likewise.
7363 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
7364 (vsx_x<VSv>r<VSs>i): Likewise.
7365 (vsx_x<VSv>r<VSs>ic): Likewise.
7366 (vsx_btrunc<mode>2): Likewise.
7367 (vsx_b2trunc<mode>2): Likewise.
7368 (vsx_floor<mode>2): Likewise.
7369 (vsx_ceil<mode>2): Likewise.
7370 (vsx_<VS_spdp_insn>): Likewise.
7371 (vsx_xscvspdp): Likewise.
7372 (vsx_xvcvspuxds): Likewise.
7373 (vsx_float_fix_<mode>2): Likewise.
7374 (vsx_set_<mode>): Likewise.
7375 (vsx_extract_<mode>_internal1): Likewise.
7376 (vsx_extract_<mode>_internal2): Likewise.
7377 (vsx_extract_<mode>_load): Likewise.
7378 (vsx_extract_<mode>_store): Likewise.
7379 (vsx_splat_<mode>): Likewise.
7380 (vsx_xxspltw_<mode>): Likewise.
7381 (vsx_xxspltw_<mode>_direct): Likewise.
7382 (vsx_xxmrghw_<mode>): Likewise.
7383 (vsx_xxmrglw_<mode>): Likewise.
7384 (vsx_xxsldwi_<mode>): Likewise.
7385 (vsx_xscvdpspn): Tighten constraints to only use register classes
7386 the types use.
7387 (vsx_xscvspdpn): Likewise.
7388 (vsx_xscvdpspn_scalar): Likewise.
7389
7390 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
7391 wj, and wk constraints.
7392 (GPR_REG_CLASS_P): New helper macro for register classes targeting
7393 general purpose registers.
7394
7395 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
7396 direct moves.
7397 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
7398 DImode instead of wm. Use wk constraint for direct move of DFmode
7399 instead of wm.
7400 (extendsidi2_lfiwax): Likewise.
7401 (lfiwax): Likewise.
7402 (lfiwzx): Likewise.
7403 (movdi_internal64): Likewise.
7404
7405 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
7406 wk constraints. Make the wy constraint documentation match them
7407 implementation.
7408
7409 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
7410
7411 Replacement of isl_int by isl_val
7412 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
7413 (compute_bounds_for_param): use isl_val instead of isl_int
7414 (compute_bounds_for_loop): likewise
7415 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
7416 (build_linearized_memory_access): use isl_val instead of isl_int
7417 (pdr_stride_in_loop): likewise
7418 * graphite-optimize-isl.c:
7419 (getPrevectorMap): use isl_val instead of isl_int
7420 * graphite-poly.c:
7421 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
7422 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
7423 (extern the_isl_ctx): declare
7424 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
7425 (extract_affine_gmp): likewise
7426 (wrap): likewise
7427 (build_loop_iteration_domains): likewise
7428 (add_param_constraints): likewise
7429
7430 2014-08-11 Richard Biener <rguenther@suse.de>
7431
7432 PR tree-optimization/62075
7433 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
7434 handle uses in patterns.
7435
7436 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7437 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7438 Anna Tikhonova <anna.tikhonova@intel.com>
7439 Ilya Tocar <ilya.tocar@intel.com>
7440 Andrey Turetskiy <andrey.turetskiy@intel.com>
7441 Ilya Verbin <ilya.verbin@intel.com>
7442 Kirill Yukhin <kirill.yukhin@intel.com>
7443 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7444
7445 * common/config/i386/i386-common.c
7446 (OPTION_MASK_ISA_AVX512VL_SET): Define.
7447 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
7448 (ix86_handle_option): Handle OPT_mavx512vl.
7449 * config/i386/cpuid.h (bit_AVX512VL): Define.
7450 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
7451 set -mavx512vl accordingly.
7452 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7453 OPTION_MASK_ISA_AVX512VL.
7454 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
7455 (ix86_option_override_internal): Define PTA_AVX512VL, handle
7456 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
7457 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
7458 * config/i386/i386.h (TARGET_AVX512VL): Define.
7459 (TARGET_AVX512VL_P(x)): Ditto.
7460 * config/i386/i386.opt: Add mavx512vl.
7461
7462 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
7463
7464 PR tree-optimization/62073
7465 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
7466 a basic block.
7467
7468 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7469 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7470 Anna Tikhonova <anna.tikhonova@intel.com>
7471 Ilya Tocar <ilya.tocar@intel.com>
7472 Andrey Turetskiy <andrey.turetskiy@intel.com>
7473 Ilya Verbin <ilya.verbin@intel.com>
7474 Kirill Yukhin <kirill.yukhin@intel.com>
7475 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7476
7477 * common/config/i386/i386-common.c
7478 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
7479 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
7480 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
7481 (ix86_handle_option): Handle OPT_mavx512bw.
7482 * config/i386/cpuid.h (bit_AVX512BW): Define.
7483 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
7484 set -mavx512bw accordingly.
7485 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7486 OPTION_MASK_ISA_AVX512BW.
7487 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
7488 (ix86_option_override_internal): Define PTA_AVX512BW, handle
7489 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
7490 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
7491 * config/i386/i386.h (TARGET_AVX512BW): Define.
7492 (TARGET_AVX512BW_P(x)): Ditto.
7493 * config/i386/i386.opt: Add mavx512bw.
7494
7495 2014-08-11 Richard Biener <rguenther@suse.de>
7496
7497 PR tree-optimization/62070
7498 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
7499 Remove SSA checking.
7500
7501 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7502
7503 * asan.c (asan_check_flags): New enum.
7504 (build_check_stmt_with_calls): Removed function.
7505 (build_check_stmt): Split inlining logic to
7506 asan_expand_check_ifn.
7507 (instrument_derefs): Rename parameter.
7508 (instrument_mem_region_access): Rename parameter.
7509 (instrument_strlen_call): Likewise.
7510 (asan_expand_check_ifn): New function.
7511 (asan_instrument): Remove old code.
7512 (pass_sanopt::execute): Change handling of
7513 asan-instrumentation-with-call-threshold.
7514 (asan_clear_shadow): Fix formatting.
7515 (asan_function_start): Likewise.
7516 (asan_emit_stack_protection): Likewise.
7517 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
7518 Update description.
7519 * internal-fn.c (expand_ASAN_CHECK): New function.
7520 * internal-fn.def (ASAN_CHECK): New internal function.
7521 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
7522 Update description.
7523 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
7524 * tree.c: Small comment fix.
7525
7526 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7527
7528 * gimple.c (gimple_call_fnspec): Support internal functions.
7529 (gimple_call_return_flags): Use const.
7530 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
7531 * internal-fn.def: Add fnspec information.
7532 * internal-fn.h (internal_fn_fnspec): New function.
7533 (init_internal_fns): Declare new function.
7534 * internal-fn.c (internal_fn_fnspec_array): New global variable.
7535 (init_internal_fns): New function.
7536 * tree-core.h: Update macro call.
7537 * tree.c (build_common_builtin_nodes): Initialize internal fns.
7538
7539 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
7540
7541 * lto-streamer.h (struct output_block::symbol): Change from
7542 struct symtab_node to plain symtab_node.
7543 (referenced_from_this_partition_p): Change first parameter
7544 from struct symtab_node to plain symtab_node.
7545
7546 2014-08-10 Marek Polacek <polacek@redhat.com>
7547
7548 PR c/51849
7549 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
7550
7551 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
7552
7553 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
7554 DECL correctly; do not give up on types in static storage.
7555
7556 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
7557
7558 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
7559
7560 2014-08-09 Roman Gareev <gareevroman@gmail.com>
7561
7562 * graphite-isl-ast-to-gimple.c:
7563 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
7564
7565 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
7566
7567 2014-08-08 Guozhi Wei <carrot@google.com>
7568
7569 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
7570
7571 2014-08-08 Cary Coutant <ccoutant@google.com>
7572
7573 * dwarf2out.c (get_skeleton_type_unit): Remove.
7574 (output_skeleton_debug_sections): Remove skeleton type units.
7575 (output_comdat_type_unit): Likewise.
7576 (dwarf2out_finish): Likewise.
7577
7578 2014-08-07 Yi Yang <ahyangyi@google.com>
7579
7580 * predict.c (expr_expected_value_1): Remove the redundant assignment.
7581
7582 2014-08-08 Richard Biener <rguenther@suse.de>
7583
7584 * lto-streamer.h (struct lto_input_block): Make it a class
7585 with a constructor.
7586 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
7587 (struct lto_function_header, struct lto_simple_header,
7588 struct lto_simple_header_with_strings,
7589 struct lto_decl_header, struct lto_function_header): Make
7590 a simple inheritance hieararchy. Remove unused fields.
7591 (struct lto_asm_header): Remove.
7592 * lto-streamer-out.c (produce_asm): Adjust.
7593 (lto_output_toplevel_asms): Likewise.
7594 (produce_asm_for_decls): Likewise.
7595 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
7596 * data-streamer-in.c (string_for_index): Likewise.
7597 * ipa-inline-analysis.c (inline_read_section): Likewise.
7598 * ipa-prop.c (ipa_prop_read_section): Likewise.
7599 (read_replacements_section): Likewise.
7600 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
7601 * lto-section-in.c (lto_create_simple_input_block): Likewise.
7602 (lto_destroy_simple_input_block): Likewise.
7603 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
7604 (lto_input_toplevel_asms): Likewise.
7605
7606 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
7607 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7608 Anna Tikhonova <anna.tikhonova@intel.com>
7609 Ilya Tocar <ilya.tocar@intel.com>
7610 Andrey Turetskiy <andrey.turetskiy@intel.com>
7611 Ilya Verbin <ilya.verbin@intel.com>
7612 Kirill Yukhin <kirill.yukhin@intel.com>
7613 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7614
7615 * common/config/i386/i386-common.c
7616 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
7617 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
7618 (ix86_handle_option): Handle OPT_mavx512dq.
7619 * config/i386/cpuid.h (bit_AVX512DQ): Define.
7620 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
7621 set -mavx512dq accordingly.
7622 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7623 OPTION_MASK_ISA_AVX512DQ.
7624 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
7625 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
7626 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
7627 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
7628 * config/i386/i386.h (TARGET_AVX512DQ): Define.
7629 (TARGET_AVX512DQ_P(x)): Ditto.
7630 * config/i386/i386.opt: Add mavx512dq.
7631
7632 2014-08-08 Richard Biener <rguenther@suse.de>
7633
7634 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
7635 target_percent, target_percent_s): Export.
7636 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
7637 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
7638 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
7639 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
7640 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
7641 Move to gimple-fold.c.
7642 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
7643 strcat and strcpy.
7644 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
7645 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
7646 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
7647 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
7648 (rewrite_call_expr_array): Remove.
7649 (fold_builtin_sprintf_chk): Likewise.
7650 (fold_builtin_snprintf_chk): Likewise.
7651 (fold_builtin_varargs): Remove handling of sprintf_chk,
7652 vsprintf_chk, snprintf_chk and vsnprintf_chk.
7653 (gimple_fold_builtin_sprintf_chk): Remove.
7654 (gimple_fold_builtin_snprintf_chk): Likewise.
7655 (gimple_fold_builtin_varargs): Likewise.
7656 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
7657 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
7658 * gimple.c (gimple_seq_add_seq_without_update): New function.
7659 * gimple.h (gimple_seq_add_seq_without_update): Declare.
7660 * gimple-fold.c: Include output.h.
7661 (gsi_replace_with_seq_vops): New function, split out from ...
7662 (gimplify_and_update_call_from_tree): ... here.
7663 (replace_call_with_value): New function.
7664 (replace_call_with_call_and_fold): Likewise.
7665 (var_decl_component_p): Moved from builtins.c.
7666 (gimple_fold_builtin_memory_op): Moved from builtins.c
7667 fold_builtin_memory_op and rewritten to GIMPLE.
7668 (gimple_fold_builtin_memset): Likewise.
7669 (gimple_fold_builtin_strcpy): Likewise.
7670 (gimple_fold_builtin_strncpy): Likewise.
7671 (gimple_fold_builtin_strcat): Likewise.
7672 (gimple_fold_builtin_fputs): Likewise.
7673 (gimple_fold_builtin_memory_chk): Likewise.
7674 (gimple_fold_builtin_stxcpy_chk): Likewise.
7675 (gimple_fold_builtin_stxncpy_chk): Likewise.
7676 (gimple_fold_builtin_snprintf_chk): Likewise.
7677 (gimple_fold_builtin_sprintf_chk): Likewise.
7678 (gimple_fold_builtin_strlen): New function.
7679 (gimple_fold_builtin_with_strlen): New function split out from
7680 gimple_fold_builtin.
7681 (gimple_fold_builtin): Change signature and handle
7682 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
7683 here. Call gimple_fold_builtin_with_strlen.
7684 (gimple_fold_call): Adjust.
7685
7686 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7687
7688 * calls.c (precompute_arguments): Check
7689 promoted_for_signed_and_unsigned_p and set the promoted mode.
7690 (promoted_for_signed_and_unsigned_p): New function.
7691 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
7692 and set the promoted mode.
7693 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
7694 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
7695 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
7696
7697
7698 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7699
7700 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
7701 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7702 (expand_call): Likewise.
7703 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
7704 to get promoted mode.
7705 * combine.c (record_promoted_value): Skip > 0 comparison with
7706 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
7707 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
7708 of SUBREG_PROMOTED_UNSIGNED_P.
7709 (convert_modes): Likewise.
7710 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
7711 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
7712 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
7713 SUBREG_PROMOTED_UNSIGNED_SET.
7714 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
7715 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7716 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
7717 SUBREG_PROMOTED_SET.
7718 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
7719 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
7720 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
7721 of SUBREG_PROMOTED_UNSIGNED_P.
7722 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
7723 (SUBREG_PROMOTED_SET): New define.
7724 (SUBREG_PROMOTED_GET): Likewise.
7725 (SUBREG_PROMOTED_SIGN): Likewise.
7726 (SUBREG_PROMOTED_SIGNED_P): Likewise.
7727 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
7728 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
7729 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
7730 instead of SUBREG_PROMOTED_UNSIGNED_GET.
7731 (nonzero_bits1): Skip > 0 comparison with the results as
7732 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
7733 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
7734 of !SUBREG_PROMOTED_UNSIGNED_P.
7735 * simplify-rtx.c (simplify_unary_operation_1): Use new
7736 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
7737 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
7738 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
7739 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
7740
7741 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
7742
7743 * ipa-devirt.c: Include gimple-pretty-print.h
7744 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
7745 further tests.
7746 (decl_maybe_in_construction_p): Fix conditional on cdtor check
7747 (get_polymorphic_call_info): Fix return value
7748 (type_change_info): New sturcture based on ipa-prop
7749 variant.
7750 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
7751 based on ipa-prop variant.
7752 (extr_type_from_vtbl_ptr_store): New function
7753 based on ipa-prop variant.
7754 (record_known_type): New function.
7755 (check_stmt_for_type_change): New function.
7756 (get_dynamic_type): New function.
7757 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
7758 * tree-ssa-pre.c: ipa-utils.h
7759 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
7760 machinery; sanity check with ipa-prop devirtualization.
7761 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
7762 polymorphic flag.
7763
7764 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7765
7766 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
7767 * alias.c, cfgexpand.c, cgraphbuild.c,
7768 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
7769 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
7770 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
7771 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
7772 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
7773 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7774 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
7775 dse.c, except.c, gengtype.c, gimple-expr.c,
7776 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
7777 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
7778 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
7779 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
7780 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
7781 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
7782 pointer-set.h.
7783 * pointer-set.c: Remove file.
7784 * pointer-set.h: Remove file.
7785
7786 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7787
7788 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
7789 * config/arm/types.md (f_sels, f_seld): Delete.
7790
7791 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7792
7793 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
7794 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
7795 (aarch64_movdi_<mode>high): Likewise.
7796 (aarch64_mov<mode>high_di): Likewise.
7797 (aarch64_movdi_<mode>low): Likewise.
7798 (aarch64_mov<mode>low_di): Likewise.
7799 (aarch64_movtilow_tilow): Likewise.
7800 Add comment explaining usage of fp,simd attributes and of
7801 TARGET_FLOAT and TARGET_SIMD.
7802
7803 2014-08-07 Ian Bolton <ian.bolton@arm.com>
7804 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7805
7806 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
7807 Use MOVN when one of the half-words is 0xffff.
7808
7809 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7810
7811 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
7812
7813 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7814
7815 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
7816 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
7817 (rfs_str): String corresponding to RFS_* constants.
7818 (rank_for_schedule_stats_t): New typedef.
7819 (rank_for_schedule_stats): New static variable.
7820 (rfs_result): New static function.
7821 (rank_for_schedule): Track statistics for deciding heuristics.
7822 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
7823 static functions.
7824 (ready_sort): Use them for debug printouts.
7825 (schedule_block): Init statistics state. Print statistics on
7826 rank_for_schedule decisions.
7827
7828 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7829
7830 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
7831
7832 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
7833
7834 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
7835 constraint.
7836
7837 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7838
7839 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
7840 function to not conflict.
7841 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
7842 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
7843 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
7844 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
7845 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
7846 of pointer_map.
7847
7848 2014-08-07 Marek Polacek <polacek@redhat.com>
7849
7850 * fold-const.c (fold_binary_loc): Add folding of
7851 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
7852
7853 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
7854
7855 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
7856 instead of type size.
7857 (ASM_FINISH_DECLARE_OBJECT): Likewise.
7858
7859 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7860
7861 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
7862 (*thumb1_movqi_insn): Likewise.
7863 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
7864
7865 2014-08-07 Tom de Vries <tom@codesourcery.com>
7866
7867 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7868 (glibc_2_11_or_earlier): Remove effective-target keywords.
7869
7870 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7871
7872 * config/arm/arm.c (bdesc_2arg): Fix typo.
7873 (arm_atomic_assign_expand_fenv): Remove The default implementation.
7874
7875 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
7876
7877 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
7878
7879 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
7880
7881 PR debug/61923
7882 * haifa-sched.c (advance_one_cycle): Fix dump.
7883 (schedule_block): Don't advance cycle if we are already at the
7884 beginning of the cycle.
7885
7886 2014-08-06 Martin Jambor <mjambor@suse.cz>
7887
7888 PR ipa/61393
7889 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
7890
7891 2014-08-06 Richard Biener <rguenther@suse.de>
7892
7893 PR lto/62034
7894 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
7895 SCCs here.
7896 (lto_input_tree): Pop SCCs here.
7897
7898 2014-08-06 Richard Biener <rguenther@suse.de>
7899
7900 PR tree-optimization/61320
7901 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
7902 handle misaligned loads.
7903
7904 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
7905
7906 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
7907 (aarch64_expand_vec_perm_const): Check for dup before zip.
7908
7909 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7910
7911 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
7912 CONST_INT_P instead of GET_CODE and compare.
7913 (aarch64_select_cc_mode): Likewise.
7914 (aarch64_print_operand): Likewise.
7915 (aarch64_rtx_costs): Likewise.
7916 (aarch64_simd_valid_immediate): Likewise.
7917 (aarch64_simd_check_vect_par_cnst_half): Likewise.
7918 (aarch64_simd_emit_pair_result_insn): Likewise.
7919
7920 2014-08-05 David Malcolm <dmalcolm@redhat.com>
7921
7922 * gdbhooks.py (find_gcc_source_dir): New helper function.
7923 (class PassNames): New class, locating and parsing passes.def.
7924 (class BreakOnPass): New command "break-on-pass".
7925
7926 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
7927
7928 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
7929 getting olde.
7930
7931 2014-08-05 Richard Biener <rguenther@suse.de>
7932
7933 PR rtl-optimization/61672
7934 * emit-rtl.h (mem_attrs_eq_p): Declare.
7935 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
7936 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
7937 * cfgcleanup.c (merge_memattrs): Likewise.
7938 Include emit-rtl.h.
7939
7940 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7941
7942 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
7943 rather than singleton vectors.
7944 (vqdmlsls_lane_s32): Likewise.
7945
7946 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7947
7948 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
7949 Use VSDQ_HSI mode iterator.
7950 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7951 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
7952 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
7953 Use BUILTIN_VDQHS macro.
7954 (sqrdmulh_laneq): Likewise.
7955 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
7956 (vqdmlals_laneq_s32): Likewise.
7957 (vqdmlslh_laneq_s16): Likewise.
7958 (vqdmlsls_laneq_s32): Likewise.
7959 (vqdmulhh_laneq_s16): Likewise.
7960 (vqdmulhs_laneq_s32): Likewise.
7961 (vqrdmulhh_laneq_s16): Likewise.
7962 (vqrdmulhs_laneq_s32): Likewise.
7963
7964 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7965
7966 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
7967 (vmuld_laneq_f64): Likewise.
7968 (vmuls_laneq_f32): Likewise.
7969 (vmul_n_f64): Likewise.
7970 (vmuld_lane_f64): Reimplement in C.
7971 (vmuls_lane_f32): Likewise.
7972
7973 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7974
7975 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
7976 to reservation.
7977 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
7978
7979 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7980
7981 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
7982 (rbitsi2): Likewise.
7983 (*arm_rev): Set predicable and predicable_short_it attributes.
7984
7985 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7986
7987 * convert.c (convert_to_integer): Guard transformation to lrint by
7988 -fno-math-errno.
7989
7990 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
7991
7992 * config/aarch64/aarch64-builtins.c
7993 (aarch64_simd_builtin_type_mode): Delete.
7994 (v8qi_UP): Remap to V8QImode.
7995 (v4hi_UP): Remap to V4HImode.
7996 (v2si_UP): Remap to V2SImode.
7997 (v2sf_UP): Remap to V2SFmode.
7998 (v1df_UP): Remap to V1DFmode.
7999 (di_UP): Remap to DImode.
8000 (df_UP): Remap to DFmode.
8001 (v16qi_UP):V16QImode.
8002 (v8hi_UP): Remap to V8HImode.
8003 (v4si_UP): Remap to V4SImode.
8004 (v4sf_UP): Remap to V4SFmode.
8005 (v2di_UP): Remap to V2DImode.
8006 (v2df_UP): Remap to V2DFmode.
8007 (ti_UP): Remap to TImode.
8008 (ei_UP): Remap to EImode.
8009 (oi_UP): Remap to OImode.
8010 (ci_UP): Map to CImode.
8011 (xi_UP): Remap to XImode.
8012 (si_UP): Remap to SImode.
8013 (sf_UP): Remap to SFmode.
8014 (hi_UP): Remap to HImode.
8015 (qi_UP): Remap to QImode.
8016 (aarch64_simd_builtin_datum): Make mode a machine_mode.
8017 (VAR1): Build builtin name.
8018 (aarch64_init_simd_builtins): Remove dead code.
8019
8020 2014-08-05 Roman Gareev <gareevroman@gmail.com>
8021
8022 * graphite-isl-ast-to-gimple.c:
8023 (set_options): New function.
8024 (scop_to_isl_ast): Add calling of set_options.
8025
8026 2014-08-05 Jakub Jelinek <jakub@redhat.com>
8027
8028 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
8029 (analyze_iv_to_split_insn): Don't initialize them.
8030 (get_ivts_expr): Removed.
8031 (allocate_basic_variable, insert_base_initialization): Use
8032 SET_SRC instead of *get_ivts_expr.
8033 (split_iv): Use &SET_SRC instead of get_ivts_expr.
8034
8035 2014-08-05 Roman Gareev <gareevroman@gmail.com>
8036
8037 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
8038 (translate_isl_ast_for_loop): Add checking of the
8039 flag_loop_parallelize_all.
8040 (ast_build_before_for): New function.
8041 (scop_to_isl_ast): Add checking of the
8042 flag_loop_parallelize_all.
8043 * graphite-dependences.c: Move the defenition of the
8044 scop_get_dependences from graphite-optimize-isl.c to this file.
8045 (apply_schedule_on_deps): Add checking of the ux's emptiness.
8046 (carries_deps): Add checking of the x's value.
8047 * graphite-optimize-isl.c: Move the defenition of the
8048 scop_get_dependences to graphite-dependences.c.
8049 * graphite-poly.h: Add declarations of scop_get_dependences
8050 and carries_deps.
8051
8052 2014-08-04 Rohit <rohitarulraj@freescale.com>
8053
8054 PR target/60102
8055 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
8056 names.
8057 (alt_reg_names): Likewise.
8058 (rs6000_dwarf_register_span): For SPE high registers, replace
8059 dwarf register numbers with GCC hard register numbers.
8060 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
8061 (rs6000_dbx_register_number): For SPE high registers, return dwarf
8062 register number for the corresponding GCC hard register number.
8063 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
8064 newly added GCC hard register numbers for SPE high registers.
8065 (DWARF_FRAME_REGISTERS): Likewise.
8066 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
8067 (DWARF_FRAME_REGNUM): Likewise.
8068 (FIXED_REGISTERS): Likewise.
8069 (CALL_USED_REGISTERS): Likewise.
8070 (CALL_REALLY_USED_REGISTERS): Likewise.
8071 (REG_ALLOC_ORDER): Likewise.
8072 (enum reg_class): Likewise.
8073 (REG_CLASS_NAMES): Likewise.
8074 (REG_CLASS_CONTENTS): Likewise.
8075 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
8076
8077 2014-08-04 Richard Biener <rguenther@suse.de>
8078
8079 * gimple-fold.h (gimple_fold_builtin): Remove.
8080 * gimple-fold.c (gimple_fold_builtin): Make static.
8081 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
8082 fold_stmt, not gimple_fold_builtin.
8083
8084 2014-08-04 Martin Liska <mliska@suse.cz>
8085
8086 * cgraph.h (csi_end_p): Removed.
8087 (csi_next): Likewise.
8088 (csi_node): Likewise.
8089 (csi_start): Likewise.
8090 (cgraph_node_in_set_p): Likewise.
8091 (cgraph_node_set_size): Likewise.
8092 (vsi_end_p): Likewise.
8093 (vsi_next): Likewise.
8094 (vsi_node): Likewise.
8095 (vsi_start): Likewise.
8096 (varpool_node_set_size): Likewise.
8097 (cgraph_node_set_nonempty_p): Likewise.
8098 (varpool_node_set_nonempty_p): Likewise.
8099 * cgraphunit.c (cgraph_process_new_functions): vec replaces
8100 cgraph_node_set.
8101 * ipa-inline-transform.c: Likewise.
8102 * ipa-utils.c (cgraph_node_set_new): Removed.
8103 (cgraph_node_set_add): Likewise.
8104 (cgraph_node_set_remove): Likewise.
8105 (cgraph_node_set_find): Likewise.
8106 (dump_cgraph_node_set): Likewise.
8107 (debug_cgraph_node_set): Likewise.
8108 (free_cgraph_node_set): Likewise.
8109 (varpool_node_set_new): Likewise.
8110 (varpool_node_set_add): Likewise.
8111 (varpool_node_set_remove): Likewise.
8112 (varpool_node_set_find): Likewise.
8113 (dump_varpool_node_set): Likewise.
8114 (free_varpool_node_set): Likewise.
8115 (debug_varpool_node_set): Likewise.
8116 * tree-emutls.c (struct tls_var_data):
8117 (emutls_index): Removed.
8118 (emutls_decl): Likewise.
8119 (gen_emutls_addr): Function implementation uses newly added
8120 hash_map<varpool_node *, tls_var_data>.
8121 (clear_access_vars): Likewise.
8122 (create_emultls_var): Likewise.
8123 (ipa_lower_emutls): Likewise.
8124 (reset_access): New function.
8125
8126 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
8127
8128 * config/i386/i386.c (ix86_option_override_internal): Add
8129 PTA_RDRND and PTA_MOVBE for bdver4.
8130
8131 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8132 James Greenhalgh <james.greenhalgh@arm.com>
8133
8134 * doc/md.texi (clrsb): Document.
8135 (clz): Change reference to x into operand 1.
8136 (ctz): Likewise.
8137 (popcount): Likewise.
8138
8139 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8140
8141 PR target/61713
8142 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
8143 move to subtarget in serial version if result is ignored.
8144
8145 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8146 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8147
8148 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
8149 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
8150 (sched_analyze_insn): Update use of try_group_insn to
8151 sched_macro_fuse_insns.
8152 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
8153 arguments that are not conditional jumps.
8154
8155 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
8156
8157 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
8158 family information. Handle BTVER2 cpu with cpuid family value.
8159
8160 2014-08-04 Tom de Vries <tom@codesourcery.com>
8161
8162 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
8163 (glibc_2_11_or_earlier): Document effective-target keywords.
8164
8165 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
8166
8167 * ipa-devirt.c (odr_type_warn_count): Add type.
8168 (possible_polymorphic_call_targets): Set it.
8169 (ipa_devirt): Use it.
8170
8171 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
8172
8173 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
8174 Document.
8175 * ipa-devirt.c: Include hash-map.h
8176 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
8177 (clear_speculation): Break out of ...
8178 (get_class_context): ... here; speed up handling obviously useless
8179 speculations.
8180 (odr_type_warn_count, decl_warn_count): New structures.
8181 (final_warning_record): New structure.
8182 (final_warning_records): New static variable.
8183 (possible_polymorphic_call_targets): Cleanup handling of
8184 speculative info; do not build speculation when user do not care;
8185 record info about warnings when asked for.
8186 (add_decl_warning): New function.
8187 (type_warning_cmp): New function.
8188 (decl_warning_cmp): New function.
8189 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
8190 (gate): Enable pass when warnings are requested.
8191 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
8192 options.
8193
8194 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
8195
8196 * hash-map.h (default_hashmap_traits::mark_key_deleted):
8197 Fix cast.
8198 (hash_map::remove): New method.
8199 (hash_map::traverse): New method.
8200 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
8201 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
8202 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
8203 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
8204 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
8205 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
8206 pointer_map.
8207
8208 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
8209
8210 * hash-set.h: new File.
8211 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
8212 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
8213 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
8214 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
8215 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
8216 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
8217 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
8218 varpool.c: Use hash_set instead of pointer_set.
8219
8220 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
8221
8222 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
8223
8224 2014-08-01 Jiong Wang <jiong.wang@arm.com>
8225
8226 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
8227 for frame access when strict_p is false.
8228
8229 2014-08-01 Renlin Li <renlin.li@arm.com>
8230 2014-08-01 Jiong Wang <jiong.wang@arm.com>
8231
8232 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
8233 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
8234 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
8235 Declaration.
8236 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
8237 predicate.
8238 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
8239 aarch64_mem_pair_offset.
8240
8241 2014-08-01 Jiong Wang <jiong.wang@arm.com>
8242
8243 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
8244 offset.
8245 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
8246 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
8247
8248 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
8249
8250 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
8251
8252 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
8253
8254 PR regression/61510
8255 * cgraphunit.c (analyze_functions): Use get_create rather than get
8256 for decls which are clones of abstract functions.
8257
8258 2014-08-01 Martin Liska <mliska@suse.cz>
8259
8260 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
8261 * ipa-prop.h (count_formal_params): Global function created from static.
8262 * ipa-prop.c (count_formal_params): Likewise.
8263 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
8264 profiles for semantically equivalent functions.
8265 * passes.c (do_per_function): If we load body of a function
8266 during WPA, this condition should behave same.
8267 * varpool.c (ctor_for_folding): More tolerant assert for variable
8268 aliases created during WPA.
8269
8270 2014-08-01 Martin Liska <mliska@suse.cz>
8271
8272 * doc/invoke.texi (Options That Control Optimization): Documentation
8273 for -foptimize-strlen introduced. Optimization levels default options
8274 fixed.
8275
8276 2014-08-01 Jakub Jelinek <jakub@redhat.com>
8277
8278 * opts.c (common_handle_option): Handle -fsanitize=alignment.
8279 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
8280 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
8281 type to bool.
8282 * stor-layout.h (min_align_of_type): New prototype.
8283 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
8284 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
8285 check.
8286 * ubsan.c: Include builtins.h.
8287 (ubsan_expand_bounds_ifn): Change return type to bool,
8288 always return true.
8289 (ubsan_expand_null_ifn): Change return type to bool, change
8290 argument to gimple_stmt_iterator *. Handle both null and alignment
8291 sanitization, take type from ckind argument's type rather than
8292 first argument.
8293 (instrument_member_call): Removed.
8294 (instrument_mem_ref): Remove t argument, add mem and base arguments.
8295 Handle both null and alignment sanitization, don't say whole
8296 struct access is member access. Build 3 argument IFN_UBSAN_NULL
8297 call instead of 2 argument.
8298 (instrument_null): Adjust instrument_mem_ref caller. Don't
8299 instrument calls here.
8300 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
8301 like SANITIZE_NULL.
8302 * stor-layout.c (min_align_of_type): New function.
8303 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
8304 Or it into SANITIZE_UNDEFINED.
8305 * doc/invoke.texi (-fsanitize=alignment): Document.
8306
8307 2014-07-31 Andi Kleen <ak@linux.intel.com>
8308
8309 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
8310
8311 2014-07-31 Andi Kleen <ak@linux.intel.com>
8312
8313 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
8314 inchash.
8315 (vn_reference_compute_hash): Dito.
8316 (vn_nary_op_compute_hash): Dito.
8317 (vn_phi_compute_hash): Dito.
8318 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
8319
8320 2014-07-31 Andi Kleen <ak@linux.intel.com>
8321
8322 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
8323 Rename to inchash:add_expr_commutative. Convert to inchash.
8324 (iterative_hash_hashable_expr): Rename to
8325 inchash:add_hashable_expr. Convert to inchash.
8326 (avail_expr_hash): Dito.
8327
8328 2014-07-31 Andi Kleen <ak@linux.intel.com>
8329
8330 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
8331 Convert to inchash.
8332
8333 2014-07-31 Andi Kleen <ak@linux.intel.com>
8334
8335 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
8336
8337 2014-07-31 Andi Kleen <ak@linux.intel.com>
8338
8339 * Makefile.in (OBJS): Add rtlhash.o
8340 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
8341 (loc_checksum): Dito.
8342 (loc_checksum_ordered): Dito.
8343 (hash_loc_operands): Dito.
8344 (hash_locs): Dito.
8345 (hash_loc_list): Dito.
8346 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
8347 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
8348 * rtlhash.c: New file.
8349 * rtlhash.h: New file.
8350
8351 2014-07-31 Andi Kleen <ak@linux.intel.com>
8352
8353 * inchash.h (inchash): Change inchash class to namespace.
8354 (class hash): ... Rename from inchash.
8355 (add_object): Move from macro to class template.
8356 * lto-streamer-out.c (hash_tree): Change inchash
8357 to inchash::hash.
8358 * tree.c (build_type_attribute_qual_variant): Dito.
8359 (type_hash_list): Dito.
8360 (attribute_hash_list): Dito.
8361 (iterative_hstate_expr): Rename to inchash::add_expr
8362 (build_range_type_1): Change inchash to inchash::hash
8363 and use hash::add_expr.
8364 (build_array_type_1): Dito.
8365 (build_function_type): Dito
8366 (build_method_type_directly): Dito.
8367 (build_offset_type): Dito.
8368 (build_complex_type): Dito.
8369 (make_vector_type): Dito.
8370 * tree.h (iterative_hash_expr): Dito.
8371
8372 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
8373
8374 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
8375
8376 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8377
8378 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
8379 correct alphabetical position.
8380 (vpaddd_f64): Rewrite using builtins.
8381 (vpaddd_s64): Move to correct alphabetical position.
8382 (vpaddd_u64): New.
8383
8384 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
8385
8386 PR target/61844
8387 * config/sh/sh.c (sh_legitimate_address_p,
8388 sh_legitimize_reload_address): Handle reg+reg address modes when
8389 ALLOW_INDEXED_ADDRESS is false.
8390 * config/sh/predicates.md (general_movsrc_operand,
8391 general_movdst_operand): Likewise.
8392
8393 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8394
8395 * config/aarch64/aarch64-builtins.c
8396 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
8397 BYTES_BIG_ENDIAN.
8398
8399 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8400
8401 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
8402 the generated mask based on BYTES_BIG_ENDIAN.
8403 (aarch64_simd_check_vect_par_cnst_half): New.
8404 * config/aarch64/aarch64-protos.h
8405 (aarch64_simd_check_vect_par_cnst_half): New.
8406 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
8407 the check out to aarch64_simd_check_vect_par_cnst_half.
8408 (vect_par_cnst_lo_half): Likewise.
8409 * config/aarch64/aarch64-simd.md
8410 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
8411 (move_hi_quad_<mode>): Always generate a low mask.
8412
8413 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8414
8415 * doc/invoke.texi (AVR Options): Add documentation about
8416 __AVR_DEVICE_NAME__ built-in macro.
8417
8418 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
8419
8420 PR target/61948
8421 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
8422 constraints are satisfied.
8423 (<shift>di3_neon): Likewise.
8424
8425 2014-07-31 Richard Biener <rguenther@suse.de>
8426
8427 PR tree-optimization/61964
8428 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
8429 by structural equality.
8430
8431 2014-07-31 Yury Gribov <y.gribov@samsung.com>
8432
8433 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
8434 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
8435 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
8436 New enums.
8437 * gcc.c (sanitize_spec_function): Support new option.
8438 (SANITIZER_SPEC): Remove now redundant check.
8439 * opts.c (common_handle_option): Support new option.
8440 (finish_options): Check for incompatibilities.
8441 * toplev.c (process_options): Split userspace-specific checks.
8442
8443 2014-07-31 Richard Biener <rguenther@suse.de>
8444
8445 * lto-streamer.h (struct output_block): Remove global.
8446 (struct data_in): Remove labels, num_named_labels and
8447 num_unnamed_labels.
8448 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
8449 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
8450
8451 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
8452
8453 PR c++/60517
8454 * common.opt (-Wreturn-local-addr): Moved from c.opt.
8455 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
8456 (isolate_path): New argument to avoid inserting a trap.
8457 (find_implicit_erroneous_behaviour): Handle returning the address
8458 of a local variable.
8459 (find_explicit_erroneous_behaviour): Likewise.
8460
8461 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
8462
8463 PR lto/61868
8464 * toplev.c (init_random_seed): Move piece of code never called to
8465 set_random_seed.
8466 (set_random_seed): see above.
8467
8468 2014-07-31 Tom de Vries <tom@codesourcery.com>
8469
8470 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
8471
8472 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
8473
8474 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
8475 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
8476
8477 2014-07-31 Richard Biener <rguenther@suse.de>
8478
8479 * data-streamer.h (streamer_write_data_stream): Declare here,
8480 renamed from ...
8481 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
8482 * lto-cgraph.c (lto_output_node): Adjust.
8483 (lto_output_varpool_node): Likewise.
8484 * data-streamer-out.c (streamer_string_index): Likewise.
8485 (streamer_write_data_stream, lto_append_block): Move from ...
8486 * lto-section-out.c (lto_output_data_stream,
8487 lto_append_block): ... here.
8488
8489 2014-07-30 Mike Stump <mikestump@comcast.net>
8490
8491 * configure.ac: Also check for popen.
8492 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
8493 * configure: Regenerate.
8494 * config.in: Regenerate.
8495
8496 2014-07-30 Martin Jambor <mjambor@suse.cz>
8497
8498 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
8499 parameter to gimple.
8500
8501 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8502
8503 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
8504 address as second parameter to __tpf_eh_return routine.
8505
8506 2014-07-30 Jiong Wang <jiong.wang@arm.com>
8507
8508 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
8509 Thumb2.
8510
8511 2014-07-30 Tom Tromey <tromey@redhat.com>
8512
8513 PR c/59855
8514 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
8515 * doc/extend.texi (Type Attributes): Document designated_init
8516 attribute.
8517
8518 2014-07-30 Roman Gareev <gareevroman@gmail.com>
8519
8520 * graphite-isl-ast-to-gimple.c:
8521 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
8522 (gcc_expression_from_isl_expression): Pass type to
8523 gcc_expression_from_isl_ast_expr_id.
8524
8525 2014-07-30 Richard Biener <rguenther@suse.de>
8526
8527 * lto-streamer.h (lto_write_data): New function.
8528 * langhooks.c (lhd_append_data): Do not free block.
8529 * lto-section-out.c (lto_write_data): New function writing
8530 raw data to the current section.
8531 (lto_write_stream): Adjust for langhook semantic change.
8532 (lto_destroy_simple_output_block): Write header directly.
8533 * lto-opts.c (lto_write_options): Write options directly.
8534 * lto-streamer-out.c (produce_asm): Write heaeder directly.
8535 (lto_output_toplevel_asms): Likewise.
8536 (copy_function_or_variable): Copy data directly.
8537 (write_global_references): Output index table directly.
8538 (lto_output_decl_state_refs): Likewise.
8539 (write_symbol): Write data directly.
8540 (produce_symtab): Adjust.
8541 (produce_asm_for_decls): Output header and refs directly.
8542
8543 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8544
8545 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
8546 to speculative_targets
8547 (get_class_context): Fix handling of contextes without outer type;
8548 avoid matching non-polymorphic types in LTO.
8549 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
8550 parameter to speculative_targetsp; handle speculation.
8551 (dump_possible_polymorphic_call_targets): Update dumping.
8552
8553 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8554
8555 * common.opt (Wodr): Enable by default.
8556
8557 2014-07-29 Olivier Hainque <hainque@adacore.com>
8558
8559 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
8560
8561 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
8562
8563 PR bootstrap/61914
8564 * gengtype.c (strtoken): New function.
8565 (create_user_defined_type): Replace strtok with strtoken.
8566
8567 2014-07-29 Nathan Sidwell <nathan@acm.org>
8568
8569 * gcov-io.c (gcov_var): Make hidden.
8570 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
8571 (gcov_do_dump): Declare.
8572 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
8573
8574 2014-07-29 Martin Jambor <mjambor@suse.cz>
8575
8576 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
8577 parameter to gimple.
8578 (sra_modify_assign): Likewise.
8579
8580 2014-07-29 Richard Biener <rguenther@suse.de>
8581
8582 PR middle-end/52478
8583 * expr.c (expand_expr_real_2): Revert last change.
8584
8585 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8586
8587 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
8588 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
8589 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
8590 call.
8591 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
8592 (contains_type_p): Forward declare.
8593 (polymorphic_call_target_hasher::hash): Hash speculative info.
8594 (polymorphic_call_target_hasher::equal): Compare speculative info.
8595 (get_class_context): Handle speuclation.
8596 (contains_type_p): Update.
8597 (get_polymorphic_call_info_for_decl): Update.
8598 (walk_ssa_copies): Break out from ...
8599 (get_polymorphic_call_info): ... here; set speculative context
8600 before giving up.
8601 * ipa-prop.c (ipa_write_indirect_edge_info,
8602 ipa_read_indirect_edge_info): Stream speculative context.
8603 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
8604 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
8605 SPECULATIVE_MAYBE_DERIVED_TYPE).
8606 (possible_polymorphic_call_targets overriders): Update.
8607 (dump_possible_polymorphic_call_targets overriders): Update.
8608 (dump_possible_polymorphic_call_target_p overriders): Update.
8609
8610 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8611
8612 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
8613 ipa-devirt path; fix thinko there.
8614
8615 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
8616
8617 * config/i386/i386.c (ix86_return_in_memory): Replace one
8618 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
8619
8620 2014-07-28 Marek Polacek <polacek@redhat.com>
8621
8622 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
8623
8624 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
8625
8626 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
8627 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
8628 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
8629 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8630 (USE_LD_AS_NEEDED): Likewise.
8631 (ASM_APP_ON): Likewise.
8632 (ASM_APP_OFF): Likewise.
8633 (TARGET_POSIX_IO): Likewise.
8634 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
8635 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8636 (USE_LD_AS_NEEDED): Likewise.
8637 (ASM_APP_ON): Likewise.
8638 (ASM_APP_OFF): Likewise.
8639 (TARGET_POSIX_IO): Likewise.
8640
8641 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
8642
8643 PR middle-end/61734
8644 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
8645 operators other than the equality operators.
8646
8647 2014-07-28 Richard Biener <rguenther@suse.de>
8648
8649 PR middle-end/52478
8650 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
8651 sure to register SImode ones, not only >= word_mode ones.
8652 * expr.c (expand_expr_real_2): When expanding -ftrapv
8653 binops do not use OPTAB_LIB_WIDEN.
8654
8655 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
8656
8657 PR middle-end/61919
8658 * tree-outof-ssa.c (insert_partition_copy_on_edge)
8659 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
8660 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
8661 inserting them in the insn stream.
8662
8663 2014-07-28 Marek Polacek <polacek@redhat.com>
8664
8665 PR middle-end/61913
8666 * common.opt (Wodr): Add Var.
8667
8668 2014-07-28 Richard Biener <rguenther@suse.de>
8669
8670 PR tree-optimization/61921
8671 * tree-ssa-structalias.c (create_variable_info_for_1): Check
8672 if there is a varpool node before dereferencing it.
8673
8674 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8675
8676 * graphite-sese-to-poly.c:
8677 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
8678 id of the pbb), which contains pointer to the pbb1.
8679
8680 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
8681
8682 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8683
8684 * graphite-isl-ast-to-gimple.c:
8685 (graphite_create_new_guard): New function.
8686 (translate_isl_ast_node_if): New function.
8687 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
8688
8689 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
8690
8691 2014-07-27 Anthony Green <green@moxielogic.com>
8692
8693 * config.gcc: Add moxie-*-moxiebox* configuration.
8694 * config/moxie/moxiebox.h: New file.
8695
8696 2014-07-26 Andrew Pinski <apinski@cavium.com>
8697
8698 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
8699 from the read only register.
8700
8701 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8702
8703 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
8704 as the allocation class if it isn't likely to be spilled.
8705
8706 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8707
8708 * rtl.h (tls_referenced_p): Declare.
8709 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
8710 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
8711 (mips_cannot_force_const_mem): Use tls_referenced_p.
8712 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
8713 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
8714 instead of pa_tls_referenced_p.
8715 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
8716 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
8717 (pa_legitimate_constant_p): Likewise.
8718 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
8719 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
8720 (rs6000_cannot_force_const_mem, rs6000_emit_move)
8721 (rs6000_address_for_altivec): Use tls_referenced_p instead of
8722 rs6000_tls_referenced_p.
8723 (rs6000_tls_symbol_ref_1): Delete.
8724
8725 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
8726
8727 PR target/44551
8728 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8729 Optimize inverse of a VEC_CONCAT.
8730
8731 2014-07-25 Xinliang David Li <davidxl@google.com>
8732
8733 * params.def: New parameter.
8734 * coverage.c (get_coverage_counts): Check new flag.
8735 (coverage_compute_profile_id): Check new flag.
8736 (coverage_begin_function): Check new flag.
8737 (coverage_end_function): Check new flag.
8738 * value-prof.c (coverage_node_map_initialized_p): New function.
8739 (init_node_map): Populate map with all functions.
8740 * doc/invoke.texi: Document new parameter.
8741
8742 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
8743 Richard Biener <rguenther@suse.de>
8744
8745 * lto-streamer-out.c (struct sccs): Turn to ...
8746 (class DFS): ... this one; refactor the DFS walk so it can
8747 be re-done on per-SCC basis.
8748 (DFS::DFS): New constructor.
8749 (DFS::~DFS): New destructor.
8750 (hash_tree): Add new MAP argument holding in-SCC hash values;
8751 remove POINTER_TYPE hashing hack.
8752 (scc_entry_compare): Rename to ...
8753 (DFS::scc_entry_compare): ... this one.
8754 (hash_scc): Rename to ...
8755 (DFS::hash_scc): ... this one; pass output_block instead
8756 of streamer_cache; work harder to get unique and stable SCC
8757 hashes.
8758 (DFS_write_tree): Rename to ...
8759 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
8760 (lto_output_tree): Update.
8761
8762 2014-07-25 Andi Kleen <ak@linux.intel.com>
8763
8764 * lto-streamer-out.c (hash_tree): Convert to inchash.
8765
8766 2014-07-25 Andi Kleen <ak@linux.intel.com>
8767
8768 * tree.c (build_type_attribute_qual_variant): Use inchash.
8769 (type_hash_list): Dito.
8770 (attribute_hash_list): Dito
8771 (iterative_hstate_expr): Dito.
8772 (iterative_hash_expr): Dito.
8773 (build_range_type_1): Dito.
8774 (build_array_type_1): Dito.
8775 (build_function_type): Dito.
8776 (build_method_type_directly): Dito.
8777 (build_offset_type): Dito.
8778 (build_complex_type): Dito.
8779 (make_vector_type): Dito.
8780 * tree.h (iterative_hash_expr): Add compat wrapper.
8781 (iterative_hstate_expr): Add.
8782
8783 2014-07-25 Andi Kleen <ak@linux.intel.com>
8784
8785 * Makefile.in (OBJS): Add inchash.o.
8786 (PLUGIN_HEADERS): Add inchash.h.
8787 * ipa-devirt.c: Include inchash.h.
8788 * lto-streamer-out.c: Dito.
8789 * tree-ssa-dom.c: Dito.
8790 * tree-ssa-pre.c: Dito.
8791 * tree-ssa-sccvn.c: Dito.
8792 * tree-ssa-tail-merge.c: Dito.
8793 * asan.c: Dito.
8794 * tree.c (iterative_hash_hashval_t): Move to ...
8795 (iterative_hash_host_wide_int): Move to ...
8796 * inchash.c: Here. New file.
8797 * tree.h (iterative_hash_hashval_t): Move to ...
8798 (iterative_hash_host_wide_int): Move to ...
8799 * inchash.h: Here. New file.
8800
8801 2014-07-25 Richard Biener <rguenther@suse.de>
8802
8803 PR middle-end/61762
8804 PR middle-end/61894
8805 * fold-const.c (native_encode_int): Add and handle offset
8806 parameter to do partial encodings of expr.
8807 (native_encode_fixed): Likewise.
8808 (native_encode_real): Likewise.
8809 (native_encode_complex): Likewise.
8810 (native_encode_vector): Likewise.
8811 (native_encode_string): Likewise.
8812 (native_encode_expr): Likewise.
8813 * fold-const.c (native_encode_expr): Add offset parameter
8814 defaulting to -1.
8815 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
8816 (fold_ctor_reference): Handle all reads from tcc_constant
8817 ctors.
8818
8819 2014-07-25 Richard Biener <rguenther@suse.de>
8820
8821 * tree-inline.c (estimate_move_cost): Mark speed_p argument
8822 as possibly unused.
8823
8824 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8825
8826 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
8827
8828 2014-07-24 Kyle McMartin <kyle@redhat.com>
8829
8830 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
8831
8832 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8833
8834 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
8835 Add prototype.
8836 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
8837 function.
8838 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
8839 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8840 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8841
8842 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8843
8844 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
8845 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
8846 aggregate types. Instead, *all* aggregate types, except for single-
8847 element or homogeneous float/vector aggregates, are quadword-aligned
8848 if required by their type alignment. Issue -Wpsabi note when a type
8849 is now treated differently than before.
8850
8851 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8852
8853 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
8854 does not fit fully into floating-point registers, and there is still
8855 space in the register parameter area, use GPRs to pass those parts
8856 of the argument. Issue -Wpsabi note if any parameter is now treated
8857 differently than before.
8858 (rs6000_arg_partial_bytes): Update.
8859
8860 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
8861
8862 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
8863
8864 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8865
8866 * rtl.h (target_rtl): Remove lang_dependent_initialized.
8867 * toplev.c (initialize_rtl): Don't use it. Move previously
8868 "language-dependent" calls to...
8869 (backend_init): ...here.
8870 (lang_dependent_init_target): Don't set lang_dependent_initialized.
8871 Assert that RTL initialization hasn't happend yet.
8872
8873 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8874
8875 PR rtl-optimization/61629
8876 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
8877 they have already been initialized.
8878
8879 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8880
8881 PR middle-end/61268
8882 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
8883 DECL_INCOMING_RTL and entry_parm.
8884 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
8885 * calls.c (load_register_parameters): Likewise argument values.
8886 (emit_library_call_value_1, store_one_arg): Likewise argument
8887 save areas.
8888 * config/i386/i386.c (assign_386_stack_local): Likewise the local
8889 stack slot.
8890 * explow.c (validize_mem): Modify the argument in-place.
8891
8892 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8893
8894 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
8895 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
8896
8897 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8898
8899 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
8900 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
8901
8902 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8903
8904 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
8905 (aarch64_save_callee_saves): New parameter "skip_wb".
8906 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
8907
8908 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8909
8910 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
8911 "wb_candidate2".
8912 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
8913
8914 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8915
8916 * graphite-isl-ast-to-gimple.c:
8917 (graphite_create_new_loop): Add calling of isl_id_free to properly
8918 decrement reference counts.
8919
8920 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
8921
8922 2014-07-24 Martin Liska <mliska@suse.cz>
8923 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
8924 function used.
8925 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
8926 (rs6000_code_end): Likewise.
8927
8928 2014-07-24 Martin Liska <mliska@suse.cz>
8929
8930 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
8931 symtab_node funtion used.
8932 (rs6000_xcoff_declare_object_name): Likewise.
8933
8934 2014-07-24 Martin Liska <mliska@suse.cz>
8935
8936 * cgraphunit.c (compile): Correct function used.
8937
8938 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8939
8940 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
8941 as non-indexable.
8942
8943 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8944
8945 PR lto/61802
8946 * varasm.c (bss_initializer_p): Handle offlined ctors.
8947 (align_variable, get_variable_align): Likewise.
8948 (make_decl_one_only): Likewise.
8949 (default_binds_local_p_1): Likewise.
8950 (decl_binds_to_current_def_p): Likewise.
8951 (get_variable_section): Get constructor if it is offlined.
8952 (assemble_variable_contents): Sanity check that the caller
8953 streamed in the ctor in LTO.
8954
8955 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8956
8957 * graphite-isl-ast-to-gimple.c:
8958 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
8959 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
8960 isl_ast_op_pdiv_r to the different case.
8961
8962 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
8963
8964 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8965
8966 PR middle-end/61876
8967 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
8968 when flag_errno_math is on.
8969
8970 2014-07-24 Martin Liska <mliska@suse.cz>
8971
8972 * cgraph.h (varpool_node):
8973 (availability get_availability (void)):
8974 created from cgraph_variable_initializer_availability
8975 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
8976 created from: cgraph_variable_initializer_availability
8977 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
8978 (void finalize_named_section_flags (void)):
8979 created from varpool_finalize_named_section_flags
8980 (bool assemble_decl (void)): created from varpool_assemble_decl
8981 (void analyze (void)): created from varpool_analyze_node
8982 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
8983 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
8984 (void remove_initializer (void)): created from varpool_remove_initializer
8985 (tree get_constructor (void)): created from varpool_get_constructor
8986 (bool externally_visible_p (void)): created from varpool_externally_visible_p
8987 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
8988 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
8989 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
8990 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
8991 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
8992 (static bool output_variables (void)): created from varpool_output_variables
8993 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
8994 created from varpool_extra_name_alias
8995 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
8996 (static void dump_varpool (FILE *f)): created from dump_varpool
8997 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
8998 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
8999 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
9000 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
9001 (void assemble_aliases (void)): created from assemble_aliases
9002
9003 2014-07-24 Martin Liska <mliska@suse.cz>
9004
9005 * cgraph.h (symtab_node):
9006 (void register_symbol (void)): created from symtab_register_node
9007 (void remove (void)): created from symtab_remove_node
9008 (void dump (FILE *f)): created from dump_symtab_node
9009 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
9010 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
9011 (struct ipa_ref *add_reference (symtab_node *referred_node,
9012 enum ipa_ref_use use_type)): created from add_reference
9013 (struct ipa_ref *add_reference (symtab_node *referred_node,
9014 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
9015 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
9016 gimple stmt)): created from maybe_add_reference
9017 (bool semantically_equivalent_p (symtab_node *target)): created from
9018 symtab_semantically_equivalent_p
9019 (void remove_from_same_comdat_group (void)): created from
9020 remove_from_same_comdat_group
9021 (void add_to_same_comdat_group (symtab_node *old_node)): created from
9022 symtab_add_to_same_comdat_group
9023 (void dissolve_same_comdat_group_list (void)): created from
9024 symtab_dissolve_same_comdat_group_list
9025 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
9026 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
9027 created from symtab_alias_ultimate_target
9028 (inline symtab_node *next_defined_symbol (void)): created from
9029 symtab_next_defined_symbol
9030 (bool resolve_alias (symtab_node *target)): created from
9031 symtab_resolve_alias
9032 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
9033 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
9034 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
9035 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
9036 (void set_section (const char *section)): created from set_section_1
9037 (enum availability get_availability (void)): created from symtab_node_availability
9038 (void make_decl_local (void)): created from symtab_make_decl_local
9039 (bool real_symbol_p (void)): created from symtab_read_node
9040 (can_be_discarded_p (void)): created from symtab_can_be_discarded
9041 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
9042 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
9043 symtab_in_same_comdat_p;
9044 (bool address_taken_from_non_vtable_p (void)): created from
9045 address_taken_from_non_vtable_p
9046 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
9047 (static void dump_table (FILE *)): created from dump_symtab
9048 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
9049 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
9050 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
9051 symtab_used_from_object_file_p
9052 (void dump_base (FILE *)): created from dump_symtab_base
9053 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
9054 (void unregister (void)): created from symtab_unregister_node
9055 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
9056 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
9057 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
9058 symtab_nonoverwritable_alias_1
9059 * cgraph.h (cgraph_node):
9060 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
9061 created from cgraph_remove_node_and_inline_clones
9062 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
9063 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
9064 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
9065 (cgraph_node *function_symbol (enum availability *avail = NULL)):
9066 created from cgraph_function_node
9067 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
9068 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
9069 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
9070 created from cgraph_create_clone
9071 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
9072 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
9073 created from cgraph_create_virtual_clone
9074 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
9075 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
9076 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
9077 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
9078 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
9079 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
9080 created from cgraph_function_version_info
9081 (struct cgraph_function_version_info *insert_new_function_version (void)):
9082 created from insert_new_cgraph_node_version
9083 (struct cgraph_function_version_info *function_version (void)): created from
9084 get_cgraph_node_version
9085 (void analyze (void)): created from analyze_function
9086 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
9087 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
9088 tree real_alias) cgraph_add_thunk
9089 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
9090 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
9091 created from cgraph_function_or_thunk_node
9092 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
9093 created from expand_thunk
9094 (void reset (void)): created from cgraph_reset_node
9095 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
9096 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
9097 (void remove (void)): created from cgraph_remove_node
9098 (void dump (FILE *f)): created from dump_cgraph_node
9099 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
9100 (bool get_body (void)): created from cgraph_get_body
9101 (void release_body (void)): created from cgraph_release_function_body
9102 (void unnest (void)): created from cgraph_unnest_node
9103 (void make_local (void)): created from cgraph_make_node_local
9104 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
9105 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
9106 gcov_type count, int freq)): created from cgraph_create_edge
9107 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
9108 gcov_type count, int freq)): created from cgraph_create_indirect_edge
9109 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
9110 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
9111 created from cgraph_create_edge_including_clones
9112 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
9113 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
9114 (void remove_callers (void)): created from cgraph_node_remove_callers
9115 (void remove_callees (void)): created from cgraph_node_remove_callees
9116 (enum availability get_availability (void)): created from cgraph_function_body_availability
9117 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
9118 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
9119 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
9120 (void call_duplication_hooks (cgraph_node *node2)): created from
9121 cgraph_call_node_duplication_hooks
9122 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
9123 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
9124 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
9125 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
9126 (void call_function_insertion_hooks (void)):
9127 created from cgraph_call_function_insertion_hooks
9128 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
9129 (bool local_p (void)): created from cgraph_local_node
9130 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
9131 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
9132 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
9133 (inline bool only_called_directly_or_aliased_p (void)):
9134 created from cgraph_only_called_directly_or_aliased_p
9135 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
9136 created from cgraph_will_be_removed_from_program_if_no_direct_calls
9137 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
9138 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
9139 (bool can_remove_if_no_direct_calls_p (void)):
9140 created from cgraph_can_remove_if_no_direct_calls_p
9141 (inline bool has_gimple_body_p (void)):
9142 created from cgraph_function_with_gimple_body_p
9143 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
9144 (static void dump_cgraph (FILE *f)): created from dump_cgraph
9145 (static inline void debug_cgraph (void)): created from debug_cgraph
9146 (static void record_function_versions (tree decl1, tree decl2)):
9147 created from record_function_versions
9148 (static void delete_function_version (tree decl)):
9149 created from delete_function_version
9150 (static void add_new_function (tree fndecl, bool lowered)):
9151 created from cgraph_add_new_function
9152 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
9153 (static cgraph_node * create (tree decl)): created from cgraph_create_node
9154 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
9155 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
9156 (static cgraph_node *get_for_asmname (tree asmname)):
9157 created from cgraph_node_for_asm
9158 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
9159 created from cgraph_same_body_alias
9160 (static bool used_from_object_file_p_worker (cgraph_node *node,
9161 void *): new function
9162 (static bool non_local_p (cgraph_node *node, void *)):
9163 created from cgraph_non_local_node_p_1
9164 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
9165 created from verify_cgraph
9166 (static bool make_local (cgraph_node *node, void *)):
9167 created from cgraph_make_node_local
9168 (static cgraph_node *create_alias (tree alias, tree target)):
9169 created from cgraph_create_function_alias
9170 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
9171 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
9172 created from cgraph_create_edge_1
9173 * cgraph.h (varpool_node):
9174 (void remove (void)): created from varpool_remove_node
9175 (void dump (FILE *f)): created from dump_varpool_node
9176
9177 2014-07-24 Richard Biener <rguenther@suse.de>
9178
9179 PR ipa/61823
9180 * tree-ssa-structalias.c (create_variable_info_for_1):
9181 Use varpool_get_constructor.
9182 (create_variable_info_for): Likewise.
9183
9184 2014-07-24 Jiong Wang <jiong.wang@arm.com>
9185
9186 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
9187 subtract outgoing area size when restoring stack_pointer_rtx.
9188
9189 2014-07-24 Nick Clifton <nickc@redhat.com>
9190
9191 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
9192 that operations are taking place in parallel.
9193 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
9194
9195 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
9196
9197 * omp-low.c (extract_omp_for_data): Add missing break statement.
9198
9199 2014-07-24 Richard Biener <rguenther@suse.de>
9200
9201 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
9202 * tree-inline.c (estimate_move_cost): Add speed_p parameter
9203 and adjust MOVE_RATIO query accordingly.
9204 (estimate_num_insns): Adjust callers.
9205 * ipa-prop.c (ipa_populate_param_decls): Likewise.
9206 * ipa-cp.c (gather_context_independent_values,
9207 estimate_local_effects): Likewise.
9208 * ipa-split.c (consider_split): Likewise.
9209
9210 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
9211
9212 * config/i386/driver-i386.c: Remove names of unused arguments and
9213 unnecessary unused attributes.
9214 * config/i386/host-mingw32.c: Likewise.
9215 * config/i386/i386.c: Likewise.
9216 * config/i386/winnt-stubs.c: Likewise.
9217 * config/i386/winnt.c: Likewise.
9218
9219 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9220
9221 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
9222 (aarch64_gen_loadwb_pair): New helper function.
9223 (aarch64_expand_epilogue): Simplify code using new helper functions.
9224 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
9225
9226 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9227
9228 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
9229 (aarch64_gen_storewb_pair): New helper function.
9230 (aarch64_expand_prologue): Simplify code using new helper functions.
9231 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
9232
9233 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9234
9235 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
9236 Rename to aarch64_save_callee_saves, remove restore code.
9237 (aarch64_restore_callee_saves): New function.
9238
9239 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9240
9241 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
9242 (aarch64_save_callee_saves): New function to handle reg save
9243 for both core and vectore regs.
9244
9245 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9246
9247 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
9248 (aarch64_gen_store_pair): New helper function.
9249 (aarch64_save_or_restore_callee_save_registers)
9250 (aarch64_save_or_restore_fprs): Use new helper functions.
9251
9252 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9253
9254 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
9255 (aarch64_save_or_restore_callee_save_registers)
9256 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
9257
9258 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9259
9260 * config/aarch64/aarch64.c
9261 (aarch64_save_or_restore_callee_save_registers)
9262 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
9263
9264 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9265
9266 * config/aarch64/aarch64.c
9267 (aarch64_save_or_restore_callee_save_registers)
9268 (aarch64_save_or_restore_fprs): Remove 'increment'.
9269
9270 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9271
9272 * config/aarch64/aarch64.c
9273 (aarch64_save_or_restore_callee_save_registers)
9274 (aarch64_save_or_restore_fprs): Use register offset in
9275 cfun->machine->frame.reg_offset.
9276
9277 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9278
9279 * config/aarch64/aarch64.c
9280 (aarch64_save_or_restore_callee_save_registers)
9281 (aarch64_save_or_restore_fprs): Remove base_rtx.
9282
9283 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9284
9285 * config/aarch64/aarch64.c
9286 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
9287 to 'start_offset'. Remove local variable 'start_offset'.
9288
9289 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9290
9291 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
9292 type to HOST_WIDE_INT.
9293
9294 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9295
9296 * config/aarch64/aarch64.c (aarch64_expand_prologue)
9297 (aarch64_save_or_restore_fprs)
9298 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
9299
9300 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
9301
9302 * config/arm/t-rtems-eabi: Add
9303 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
9304 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
9305 mbig-endian/mthumb/march=armv7-r, and
9306 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
9307 multilibs.
9308
9309 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
9310 Chris Johns <chrisj@rtems.org>
9311 Joel Sherrill <joel.sherrill@oarcorp.com>
9312
9313 * config.gcc: Add nios2-*-rtems*.
9314 * config/nios2/rtems.h: New file.
9315 * gcc/config/nios2/t-rtems: New file.
9316
9317 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
9318
9319 PR target/61396
9320 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
9321 constant numbers, not general constants.
9322 (rs6000_expand_vector_init): Ditto.
9323
9324 2014-07-23 Nathan Sidwell <nathan@acm.org>
9325
9326 * gcov-tool.c (gcov_list): Declare here.
9327 (set_gcov_list): Remove.
9328 (gcov_output_files): Set gcov_list directly.
9329
9330 2014-07-23 Host Schirmeier <horst@schirmeier.com>
9331
9332 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
9333
9334 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9335
9336 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
9337 callee-saved registers are available for padding purpose
9338 and r3 is not mandatory, then prefer use those callee-saved
9339 instead of r3.
9340
9341 2014-07-23 Richard Biener <rguenther@suse.de>
9342
9343 * params.def (PARAM_MAX_COMBINE_INSNS): New.
9344 * combine.c: Include statistics.h and params.h.
9345 (combine_instructions): Guard three and four insn combines
9346 with max-combine-insns value. Record statistics for combines
9347 performed.
9348 * doc/invoke.texi (max-combine-insns): Document new param.
9349
9350 2014-07-23 Roman Gareev <gareevroman@gmail.com>
9351
9352 * graphite-isl-ast-to-gimple.c:
9353 (translate_isl_ast_node_block): New function.
9354 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
9355
9356 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
9357 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
9358
9359 2014-07-23 Roman Gareev <gareevroman@gmail.com>
9360
9361 * graphite-isl-ast-to-gimple.c:
9362 (get_max_schedule_dimensions): New function.
9363 (extend_schedule): Likewise.
9364 (generate_isl_schedule): Add calling of extend_schedule and
9365 get_max_schedule_dimensions.
9366
9367 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9368
9369 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
9370 (case UNSPEC): Handle UNSPEC_RBIT.
9371
9372 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9373
9374 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
9375 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
9376
9377 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9378
9379 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
9380
9381 2014-07-22 Roman Gareev <gareevroman@gmail.com>
9382
9383 * graphite-isl-ast-to-gimple.c:
9384 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
9385 (ivs_params_clear):
9386 (build_iv_mapping): New function.
9387 (translate_isl_ast_node_user): Likewise.
9388 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
9389
9390 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
9391 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
9392 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
9393
9394 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9395
9396 PR target/55701
9397 * config/arm/arm.md (setmem): New pattern.
9398 * config/arm/arm-protos.h (struct tune_params): New fields.
9399 (arm_gen_setmem): New prototype.
9400 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
9401 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
9402 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
9403 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
9404 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
9405 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
9406 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
9407 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
9408 (arm_const_inline_cost): New function.
9409 (arm_block_set_max_insns): New function.
9410 (arm_block_set_non_vect_profit_p): New function.
9411 (arm_block_set_vect_profit_p): New function.
9412 (arm_block_set_unaligned_vect): New function.
9413 (arm_block_set_aligned_vect): New function.
9414 (arm_block_set_unaligned_non_vect): New function.
9415 (arm_block_set_aligned_non_vect): New function.
9416 (arm_block_set_vect, arm_gen_setmem): New functions.
9417
9418 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9419
9420 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
9421
9422 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
9423
9424 PR target/61855
9425 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
9426 out of #ifdef __OPTIMIZE__.
9427
9428 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9429
9430 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
9431 different trapping status if -fnon-call-exceptions is enabled.
9432
9433 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9434
9435 * expr.c (store_field): Handle VOIDmode for calls that return values
9436 in multiple locations.
9437
9438 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9439
9440 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
9441 (altivec_vsldoi_<mode>): Likewise.
9442
9443 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9444
9445 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
9446 to the number of characters in the line.
9447
9448 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9449
9450 * graphite-isl-ast-to-gimple.c: Add using of
9451 build_nonstandard_integer_type instead of int128_integer_type_node.
9452
9453 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
9454
9455 * toplev.c (output_stack_usage): Adjust the location of the warning.
9456
9457 2014-07-19 Daniel Cederman <cederman@gaisler.com>
9458
9459 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
9460 (*membar_storeload): Disable for LEON3.
9461
9462 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9463
9464 PR rtl-optimization/61461
9465 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
9466
9467 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
9468
9469 PR target/61794
9470 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
9471 Fix instruction constraint.
9472 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
9473
9474 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
9475
9476 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
9477
9478 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
9479
9480 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
9481 GNU coding standards.
9482 (nds32_register_move_cost): Likewise.
9483 (nds32_memory_move_cost): Likewise.
9484 (nds32_address_cost): Likewise.
9485
9486 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9487
9488 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
9489
9490 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
9491
9492 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
9493 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
9494 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
9495 (HAVE_sync_compare_and_swapqi): Define.
9496 (HAVE_sync_compare_and_swaphi): Likewise.
9497 (HAVE_sync_compare_and_swapsi): Likewise.
9498
9499 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
9500
9501 * config/mips/p5600.md: Add missing cpu tests.
9502
9503 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9504
9505 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
9506 (vmla_f64): Likewise.
9507 (vfms_f64): Likewise.
9508 (vmls_f64): Likewise.
9509
9510 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9511
9512 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
9513 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
9514
9515 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9516
9517 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
9518 (vmlal_high_lane_s32): Likewise.
9519 (vmlal_high_lane_u16): Likewise.
9520 (vmlal_high_lane_u32): Likewise.
9521 (vmlsl_high_lane_s16): Likewise.
9522 (vmlsl_high_lane_s32): Likewise.
9523 (vmlsl_high_lane_u16): Likewise.
9524 (vmlsl_high_lane_u32): Likewise.
9525
9526 2014-07-17 Terry Guo <terry.guo@arm.com>
9527
9528 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
9529 (alus_reg): Renamed to alus_sreg.
9530 * config/arm/arm-fixed.md: Change type of non-dsp instructions
9531 from alu_reg to alu_sreg. Change type of dsp instructions from
9532 alu_reg to alu_dsp_reg.
9533 * config/arm/thumb1.md: Likewise.
9534 * config/arm/thumb2.md: Likewise.
9535 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
9536 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
9537 with alu_sreg and alus_sreg.
9538 * config/arm/arm1026ejs.md (alu_op): Likewise.
9539 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
9540 * config/arm/arm926ejs.md (9_alu_op): Likewise.
9541 * config/arm/fa526.md (526_alu_op): Likewise.
9542 * config/arm/fa606te.md (606te_alu_op): Likewise.
9543 * config/arm/fa626te.md (626te_alu_op): Likewise.
9544 * config/arm/fa726te.md (726te_alu_op): Likewise.
9545 * config/arm/fmp626.md (mp626_alu_op): Likewise.
9546 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
9547 alu_sreg, alu_dsp_reg and alus_sreg.
9548 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
9549 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9550 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9551 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
9552 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
9553 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9554 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9555 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9556 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
9557 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
9558 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
9559 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
9560 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
9561 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
9562 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
9563 alus_reg to alus_sreg.
9564
9565 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
9566
9567 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
9568 infinity format.
9569
9570 2014-07-17 Richard Biener <rguenther@suse.de>
9571
9572 PR rtl-optimization/61801
9573 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
9574 don't set reg_pending_barrier if it appears in a debug-insn.
9575
9576 2014-07-16 DJ Delorie <dj@redhat.com>
9577
9578 * config/rx/rx.c (rx_option_override): Fix alignment values.
9579 (rx_align_for_label): Likewise.
9580
9581 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
9582
9583 PR target/61737.
9584 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
9585 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9586 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
9587 functions.
9588 (cris_print_index, cris_print_operand, cris_constant_index_p)
9589 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
9590 (cris_address_cost): Ditto last CONSTANT_P.
9591 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
9592 callers changed. Yield cris_offsettable_symbol for non-PIC
9593 constant symbolic expressions including labels. Yield cris_unspec
9594 for all unspecs.
9595 (cris_expand_pic_call_address): New parameter MARKERP. Set its
9596 target to pic_offset_table_rtx for calls that will likely go
9597 through PLT, const0_rtx when they can't. All callers changed.
9598 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
9599 symbolic expressions to be PICified. Remove second, redundant,
9600 assert on can_create_pseudo_p returning non-zero. Use
9601 replace_equiv_address_nv, not replace_equiv_address, for final
9602 operand update.
9603 * config/cris/cris.md ("movsi"): Move variable t to pattern
9604 toplevel. Adjust assert for new cris_symbol_type member. Use
9605 CONSTANT_P instead of CONSTANT_ADDRESS_P.
9606 ("*movsi_internal") <case 9>: Make check for valid unspec operands
9607 for lapc stricter.
9608 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
9609 ("call", "call_value"): Use second incoming operand as a marker
9610 for pic-offset-table-register being used.
9611 ("*expanded_call_non_v32", "*expanded_call_v32")
9612 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
9613 second incoming operand to CALL, match cris_call_type_marker.
9614 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
9615 ("*expanded_call_side"): Ditto. Fix typo in comment.
9616 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
9617 CONSTANT_P.
9618 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
9619 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
9620 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
9621 users changed. Add members cris_offsettable_symbol and cris_unspec.
9622 (cris_symbol_type): Rename from cris_pic_symbol_type.
9623 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
9624 just CONSTANT_P.
9625 * config/cris/cris-protos.h (cris_symbol_type_of,
9626 cris_expand_pic_call_address): Adjust prototypes.
9627 (cris_legitimate_constant_p): New prototype.
9628
9629 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
9630 an existing tmake_file. Don't add t-slibgcc and t-linux.
9631
9632 2014-07-17 Jason Merrill <jason@redhat.com>
9633
9634 PR c++/61623
9635 * symtab.c (symtab_remove_from_same_comdat_group): Also
9636 set_comdat_group to NULL_TREE.
9637 (verify_symtab): Fix diagnostic.
9638
9639 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
9640
9641 PR target/61662
9642 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
9643
9644 2014-07-16 Dodji Seketeli <dodji@redhat.com>
9645
9646 Support location tracking for built-in macro tokens
9647 * input.h (is_location_from_builtin_token): New function declaration.
9648 * input.c (is_location_from_builtin_token): New function definition.
9649 * toplev.c (general_init): Tell libcpp what the pre-defined
9650 spelling location for built-in tokens is.
9651
9652 2014-07-16 Jakub Jelinek <jakub@redhat.com>
9653
9654 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
9655 on the FUNCTION_DECL.
9656
9657 2014-07-16 Richard Biener <rguenther@suse.de>
9658
9659 PR other/61782
9660 * doc/extend.texi (always_inline): Clarify.
9661
9662 2014-07-15 Eric Christopher <echristo@gmail.com>
9663
9664 * doc/invoke.texi (Link Options): Document -z option.
9665
9666 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
9667
9668 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
9669 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9670
9671 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
9672
9673 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
9674
9675 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
9676
9677 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
9678 varpool_assemble_decl.
9679 * varpool.c (varpool_assemble_decl): Assert that node->definition is
9680 true.
9681
9682 2014-07-15 Michael Matz <matz@suse.de>
9683
9684 PR rtl-optimization/61772
9685 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
9686
9687 2014-07-15 Richard Biener <rguenther@suse.de>
9688
9689 * opts.c (default_options_table): Disable bit-ccp at -Og.
9690
9691 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9692
9693 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
9694
9695 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9696
9697 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
9698 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
9699 call langhook for unknown declaration.
9700 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
9701 * tree.h (DECL_ARGUMENTS): Update.
9702 * print-tree.c (print_node): Update.
9703 * tree-core.h (tree_decl_non_common): Remove arguments.
9704 (tree_function_decl): Add arguments.
9705
9706 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
9707
9708 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
9709
9710 2014-07-14 Richard Biener <rguenther@suse.de>
9711
9712 PR tree-optimization/61779
9713 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
9714 simplifying a condition.
9715
9716 2014-07-14 Richard Biener <rguenther@suse.de>
9717
9718 * builtins.c (c_strlen): Make only_value == 2 really only
9719 affect warning generation.
9720
9721 2014-07-14 Richard Biener <rguenther@suse.de>
9722
9723 PR tree-optimization/61757
9724 PR tree-optimization/61783
9725 PR tree-optimization/61787
9726 * tree-ssa-dom.c (record_equality): Revert canonicalization
9727 change and add comment.
9728 (propagate_rhs_into_lhs): Revert previous fix, removing
9729 loop depth restriction again.
9730
9731 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9732
9733 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
9734 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9735 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9736 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
9737 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9738 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9739 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9740
9741 2014-07-14 Richard Biener <rguenther@suse.de>
9742
9743 * cgraph.h (decl_in_symtab_p): Make inline.
9744
9745 2014-07-14 Jakub Jelinek <jakub@redhat.com>
9746
9747 PR middle-end/61294
9748 * doc/invoke.texi (-Wmemset-transposed-args): Document.
9749
9750 PR target/61656
9751 * config/i386/i386.c (classify_argument): Don't merge classes above
9752 number of words.
9753
9754 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
9755
9756 * cgraph.h (symtab_node): Add nonzero_address.
9757 (decl_in_symtab_p): Break out from ...
9758 (symtab_get_node): ... here.
9759 * fold-const.c: Include cgraph.h
9760 (tree_single_nonzero_warnv_p): Use symtab to determine
9761 if symbol is non-zero.
9762 * symtab.c (symtab_node::nonzero_address): New method.
9763
9764 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9765
9766 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
9767 forgotten in previous commit.
9768
9769 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9770
9771 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
9772 on builtin types.
9773 * ipa-devirt.c: Include stor-layout.h and intl.h
9774 (odr_subtypes_equivalent_p): New function.
9775 (warn_odr): New function.
9776 (warn_type_mismatch): New function.
9777 (odr_types_equivalent_p): New function.
9778 (add_type_duplicate): Use it.
9779 * common.opt (Wodr): New flag.
9780 * doc/invoke.texi (Wodr): Document new warning.
9781
9782 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9783
9784 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
9785 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
9786 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
9787 (varpool_get_constructor): Push CTORS_IN timevar.
9788 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
9789
9790 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
9791
9792 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
9793 Remove VOID_FTYPE_PUSHORT.
9794 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
9795 Change code to USHORT_FTYPE_VOID.
9796 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
9797 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
9798 (ix86_atomic_assign_expand_fenv): Update for
9799 __builtin_ia32_fnstsw changes.
9800 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
9801 (fnstsw): Change operand 0 to nonimmediate operand.
9802
9803 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9804
9805 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
9806 (varpool_get_constructor): New function.
9807 (varpool_ctor_useable_for_folding_p): Break out from ...
9808 (ctor_for_folding): ... here; use varpool_get_constructor.
9809 (varpool_assemble_decl): Likewise.
9810 * lto-streamer.h (struct output_block): Turn cgraph_node
9811 to symbol filed.
9812 (lto_input_variable_constructor): Declare.
9813 * ipa-visibility.c (function_and_variable_visibility): Use
9814 varpool_get_constructor.
9815 * cgraph.h (varpool_get_constructor): Declare.
9816 (varpool_ctor_useable_for_folding_p): New function.
9817 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
9818 parameter; return error_mark_node for non-trivial constructors.
9819 (lto_write_tree_1, DFS_write_tree): Update use of
9820 get_symbol_initial_value.
9821 (output_function): Update initialization of symbol.
9822 (output_constructor): New function.
9823 (copy_function): Rename to ..
9824 (copy_function_or_variable): ... this one; handle vars too.
9825 (lto_output): Output variable sections.
9826 * lto-streamer-in.c (input_constructor): New function.
9827 (lto_read_body): Rename from ...
9828 (lto_read_body_or_constructor): ... this one; handle vars too.
9829 (lto_input_variable_constructor): New function.
9830 * ipa-prop.c (ipa_prop_write_jump_functions,
9831 ipa_prop_write_all_agg_replacement): Update.
9832 * lto-cgraph.c (compute_ltrans_boundary): Use it.
9833 (output_cgraph_opt_summary): Set symbol to NULL.
9834
9835 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9836
9837 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
9838 non-polymorphic types.
9839 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
9840 * ipa-devirt.c (types_same_for_odr): Do not explode when one
9841 of types is not polymorphic.
9842
9843 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
9844
9845 * lra-constraints.c (remove_inheritance_pseudos): Process
9846 destination pseudo too.
9847
9848 2014-07-11 Rong Xu <xur@google.com>
9849
9850 * gcov-tool.c (gcov_output_files): Fix build error introduced in
9851 commit r212448.
9852
9853 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9854
9855 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
9856 * config/avr/avr-devices.c (AVR_MCU): Same.
9857 (avr_mcu_types): add text start value to end of device list.
9858 * config/avr/avr-mcus.def: Add text section start for all devices.
9859 (ata5782): Add new avr5 device.
9860 (ata5831): Same.
9861 * config/avr/avr-tables.opt: Regenerate.
9862 * config/avr/avr.h: Add declaration for text section start handler.
9863 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
9864 SPEC functions.
9865 (LINK_SPEC): Include text section start handler to linker spec.
9866 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
9867 pass -Ttext option to linker if the text section start for the device
9868 is not zero.
9869 * config/avr/t-multilib: Regenerate.
9870 * doc/avr-mmcu.texi: Regenerate.
9871
9872 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
9873
9874 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
9875 * config/rs6000/aix52.h (LINK_SPEC): Same.
9876 * config/rs6000/aix53.h (LINK_SPEC): Same.
9877 * config/rs6000/aix61.h (LINK_SPEC): Same.
9878 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
9879
9880 2014-07-11 Roman Gareev <gareevroman@gmail.com>
9881
9882 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
9883 (graphite_verify): New function.
9884 (ivs_params_clear): New function.
9885 (gcc_expression_from_isl_ast_expr_id): New function.
9886 (gcc_expression_from_isl_expr_int): New function.
9887 (binary_op_to_tree): New function.
9888 (ternary_op_to_tree): New function.
9889 (unary_op_to_tree): New function.
9890 (nary_op_to_tree): New function.
9891 (gcc_expression_from_isl_expr_op): New function.
9892 (gcc_expression_from_isl_expression): New function.
9893 (graphite_create_new_loop): New function.
9894 (translate_isl_ast_for_loop): New function.
9895 (get_upper_bound): New function.
9896 (graphite_create_new_loop_guard): New function.
9897 (translate_isl_ast_node_for): New function.
9898 (translate_isl_ast): New function.
9899 (add_parameters_to_ivs_params): New function.
9900 (scop_to_isl_ast): New parameter ip.
9901 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
9902
9903 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9904
9905 * config/xtensa/predicates.md (call expander): Update for
9906 DECL_SECTION_NAME being string.
9907
9908 2014-07-11 Richard Biener <rguenther@suse.de>
9909
9910 PR middle-end/61473
9911 * builtins.c (fold_builtin_memory_op): Inline memory moves that
9912 can be implemented with a single load followed by a single store.
9913 (c_strlen): Only warn when only_value is not 2.
9914
9915 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
9916
9917 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
9918
9919 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
9920
9921 PR target/61561
9922 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
9923 (*movhi_bytes): Likewise.
9924 (*arm_movqi_insn): Likewise.
9925
9926 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
9927
9928 PR target/56858
9929 * config/alpha/alpha.c: Include tree-pass.h, context.h
9930 and pass_manager.h.
9931 (pass_data_handle_trap_shadows): New pass.
9932 (pass_handle_trap_shadows::gate): New pass gate function.
9933 (make_pass_handle_trap_shadows): New function.
9934 (rest_of_handle_trap_shadows): Ditto.
9935
9936 (alpha_align_insns_1): Rename from alpha_align_insns.
9937 (pass_data_align_insns): New pass.
9938 (pass_align_insns::gate): New pass gate function.
9939 (make_pass_aling_insns): New function.
9940 (rest_of_align_insns): Ditto.
9941 (alpha_align_insns): Ditto.
9942
9943 (alpha_option_override): Declare handle_trap_shadows info
9944 and align_insns_info. Register handle_trap_shadows and align_insns
9945 passes here.
9946 (alpha_reorg): Do not call alpha_trap_shadows and
9947 alpha_align_insn from here.
9948
9949 (alpha_pad_function_end): Do not skip BARRIERs.
9950
9951 2014-07-10 Rong Xu <xur@google.com>
9952
9953 Add gcov-tool: an offline gcda profile processing tool support.
9954 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
9955 (gcov_is_error): Ditto.
9956 (gcov_read_string): Ditto.
9957 (gcov_read_sync): Ditto.
9958 * gcov-io.h: Move counter defines to gcov-counter.def.
9959 * gcov-dump.c (tag_counters): Use gcov-counter.def.
9960 * coverage.c: Ditto.
9961 * gcov-tool.c: Offline gcda profile processing tool.
9962 (unlink_gcda_file): Remove one gcda file.
9963 (unlink_profile_dir): Remove gcda files from the profile path.
9964 (gcov_output_files): Output gcda files to an output dir.
9965 (profile_merge): Merge two profiles in directory.
9966 (print_merge_usage_message): Print merge usage.
9967 (merge_usage): Print merge usage and exit.
9968 (do_merge): Driver for profile merge sub-command.
9969 (profile_rewrite): Rewrite profile.
9970 (print_rewrite_usage_message): Print rewrite usage.
9971 (rewrite_usage): Print rewrite usage and exit.
9972 (do_rewrite): Driver for profile rewrite sub-command.
9973 (print_usage): Print gcov-info usage and exit.
9974 (print_version): Print gcov-info version.
9975 (process_args): Process arguments.
9976 (main): Main routine for gcov-tool.
9977 * Makefile.in: Build and install gcov-tool.
9978 * gcov-counter.def: New file split from gcov-io.h.
9979 * doc/gcc.texi: Include gcov-tool.texi.
9980 * doc/gcov-tool.texi: Document for gcov-tool.
9981
9982 2014-07-10 Richard Biener <rguenther@suse.de>
9983
9984 PR tree-optimization/61757
9985 * tree-ssa-dom.c (loop_depth_of_name): Restore.
9986 (propagate_rhs_into_lhs): Revert part of last change.
9987
9988 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
9989
9990 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
9991 FUNCTION_DECLs.
9992
9993 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
9994
9995 PR middle-end/53590
9996 * function.c (allocate_struct_function): Revert r188667 change.
9997
9998 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
9999
10000 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
10001
10002 * doc/install.texi: Remove links to defunct package providers for
10003 Solaris.
10004
10005 2014-07-09 Tom de Vries <tom@codesourcery.com>
10006
10007 * final.c (get_call_fndecl): Declare.
10008 (self_recursive_call_p): New function.
10009 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
10010
10011 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
10012
10013 * ipa-devirt.c (record_node): Walk through aliases.
10014
10015 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
10016
10017 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
10018
10019 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
10020
10021 Revert:
10022 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10023
10024 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
10025
10026 * ipa-visibility.c (function_and_variable_visibility): Remove
10027 temporary hack disabling local aliases on AIX.
10028
10029 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
10030
10031 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
10032 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
10033
10034 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
10035
10036 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
10037 * rs6000/rs6000.c: Inline output of .set instruction.
10038 (declare_alias_data): New struct.
10039 (rs6000_declare_alias): New function.
10040 (rs6000_xcoff_declare_function_name): Use it.
10041 (rs6000_xcoff_declare_object_name): New function.
10042 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
10043 (ASM_OUTPUT_DEF): Turn to empty definition.
10044
10045 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
10046
10047 PR bootstrap/61679
10048 * hash-table.h: use hash_table::value_type instead of
10049 Descriptor::value_type in the return types of several methods.
10050
10051 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
10052
10053 * tree-pass.h (pass_data): Remove has_execute member.
10054 * passes.c (execute_one_pass): Don't check pass->has_execute.
10055 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
10056 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
10057 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
10058 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
10059 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
10060 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
10061 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
10062 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
10063 gimple-low.c, gimple-ssa-isolate-paths.c,
10064 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
10065 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
10066 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
10067 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
10068 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
10069 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
10070 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
10071 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
10072 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
10073 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
10074 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
10075 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
10076 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
10077 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
10078 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
10079 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
10080 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
10081 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
10082 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
10083 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
10084 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
10085 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
10086 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
10087 web.c: Remove initializer for pass_data::has_execute.
10088
10089 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
10090
10091 * graphite-htab.h: Use hash_map instead of hash_table.
10092 * graphite-clast-to-gimple.c: Adjust.
10093 * passes.c: Use hash_map instead of hash_table.
10094 * sese.c: Likewise.
10095 * sese.h: Remove now unused code.
10096
10097 2014-07-08 Sriraman Tallam <tmsriram@google.com>
10098
10099 PR target/61599
10100 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
10101 than zero.
10102
10103 2014-07-08 Jakub Jelinek <jakub@redhat.com>
10104
10105 PR rtl-optimization/61673
10106 * combine.c (simplify_comparison): Test just mode's sign bit
10107 in tmode rather than the sign bit and any bits above it.
10108
10109 2014-07-08 Roman Gareev <gareevroman@gmail.com>
10110
10111 * graphite-isl-ast-to-gimple.c (generate_isl_context):
10112 Add __isl_give to the declaration.
10113 (generate_isl_schedule): Likewise.
10114 (scop_to_isl_ast): Likewise.
10115
10116 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10117
10118 * config/arm/arm.c (cortexa5_extra_costs): New table.
10119 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
10120
10121 2014-07-08 Jakub Jelinek <jakub@redhat.com>
10122
10123 PR tree-optimization/61725
10124 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
10125 range, use range_includes_zerop_p instead of integer_zerop on
10126 vr0->min, only use log2 of max if min is not negative.
10127
10128 2014-07-08 Richard Biener <rguenther@suse.de>
10129
10130 * tree-ssa-dom.h (loop_depth_of_name): Remove.
10131 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
10132 restriction on loop depth difference.
10133 (record_equality): Likewise.
10134 (propagate_rhs_into_lhs): Likewise. Simplify condition.
10135 (loop_depth_of_name): Remove.
10136 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
10137 restriction on loop depth difference.
10138 (init_copy_prop): Likewise.
10139
10140 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
10141
10142 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
10143 parameter.
10144 (walk_aliased_vdefs): Likewise.
10145 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
10146 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
10147 (detect_type_change_from_memory_writes): Check if entry was reached.
10148
10149 2014-07-08 Richard Biener <rguenther@suse.de>
10150
10151 PR tree-optimization/61681
10152 * tree-ssa-structalias.c (find_what_var_points_to): Expand
10153 NONLOCAL inside ESCAPED.
10154
10155 2014-07-08 Richard Biener <rguenther@suse.de>
10156
10157 PR tree-optimization/61680
10158 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
10159 Handle properly all read-write dependences with group accesses.
10160
10161 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
10162
10163 PR tree-optimization/61576
10164 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
10165 block containing reduction statement is predecessor of phi basi block.
10166
10167 2014-07-08 Marek Polacek <polacek@redhat.com>
10168
10169 PR c/60226
10170 * fold-const.c (round_up_loc): Change the parameter type.
10171 Remove assert.
10172 * fold-const.h (round_up_loc): Adjust declaration.
10173 * stor-layout.c (finalize_record_size): Check for too large types.
10174
10175 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
10176
10177 * symtab.c: Include calls.h.
10178 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
10179
10180 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
10181
10182 * config/rs6000/rs6000.c (output_vec_const_move): Handle
10183 little-endian code generation.
10184 * config/rs6000/spe.md (spe_evmergehi): Rename to...
10185 (vec_perm00_v2si): ... this. Handle little-endian code generation.
10186 (spe_evmergehilo): Rename to...
10187 (vec_perm01_v2si): ... this. Handle little-endian code generation.
10188 (spe_evmergelo): Rename to...
10189 (vec_perm11_v2si): ... this. Handle little-endian code generation.
10190 (spe_evmergelohi): Rename to...
10191 (vec_perm10_v2si): ... this. Handle little-endian code generation.
10192 (spe_evmergehi, spe_evmergehilo): New expanders.
10193 (spe_evmergelo, spe_evmergelohi): Likewise.
10194 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
10195 (*frob_tf_ti): Likewise.
10196 (*frob_<mode>_di_2): Likewise.
10197 (*frob_tf_di_8_2): Likewise.
10198 (*frob_di_<mode>): Likewise.
10199 (*frob_ti_tf): Likewise.
10200 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
10201 (*frob_ti_<mode>_8_2): Likewise.
10202 (*frob_ti_tf_2): Likewise.
10203 (mov_si<mode>_e500_subreg0): Rename to...
10204 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
10205 endianness only.
10206 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
10207 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
10208 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
10209 the big endianness only.
10210 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
10211 (*mov_si<mode>_e500_subreg0_2): Rename to...
10212 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
10213 big big endianness only.
10214 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
10215 (*mov_si<mode>_e500_subreg4): Rename to...
10216 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
10217 endianness only.
10218 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
10219 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
10220 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
10221 the big endianness only.
10222 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
10223 pattern.
10224 (*mov_si<mode>_e500_subreg4_2): Rename to...
10225 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
10226 endianness only.
10227 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
10228 (*mov_sitf_e500_subreg8): Rename to...
10229 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
10230 endianness only.
10231 (*mov_sitf_e500_subreg8_le): New instruction pattern.
10232 (*mov_sitf_e500_subreg8_2): Rename to...
10233 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
10234 endianness only.
10235 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
10236 (*mov_sitf_e500_subreg12): Rename to...
10237 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
10238 endianness only.
10239 (*mov_sitf_e500_subreg12_le): New instruction pattern.
10240 (*mov_sitf_e500_subreg12_2): Rename to...
10241 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
10242 endianness only.
10243 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
10244
10245 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
10246
10247 * asan.c (instrument_strlen_call): Do not instrument first byte
10248 in strlen if already instrumented.
10249
10250 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10251
10252 * config/arm/arm.opt (mwords-little-endian): Delete.
10253 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
10254 of TARGET_LITTLE_WORDS.
10255 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
10256 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
10257 warning.
10258 * doc/invoke.texi: Remove references to -mwords-little-endian.
10259
10260 2014-07-07 Jakub Jelinek <jakub@redhat.com>
10261
10262 * expmed.c (struct init_expmed_rtl): Change all fields but
10263 pow2 and cint from struct rtx_def to rtx.
10264 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
10265 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
10266 at the end again.
10267
10268 2014-07-06 Marek Polacek <polacek@redhat.com>
10269
10270 PR c/6940
10271 * doc/invoke.texi: Document -Wsizeof-array-argument.
10272
10273 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
10274
10275 * wide-int.h (wide_int_storage): Change declaration from struct
10276 to class.
10277
10278 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
10279
10280 * cgraph.c (cgraph_create_indirect_edge): Update call of
10281 get_polymorphic_call_info.
10282 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
10283 (possible_polymorphic_call_targets): Add parameter call.
10284 (decl_maybe_in_construction_p): New predicate.
10285 (get_polymorphic_call_info): Add parameter call;
10286 use decl_maybe_in_construction_p.
10287 * gimple-fold.c (fold_gimple_assign): Update use of
10288 possible_polymorphic_call_targets.
10289 (gimple_fold_call): Likewise.
10290 * ipa-prop.c: Inlcude calls.h
10291 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
10292 (param_type_may_change_p): New predicate.
10293 (detect_type_change_from_memory_writes): Break out from ...
10294 (detect_type_change): ... this one; use param_type_may_change_p.
10295 (detect_type_change_ssa): Use param_type_may_change_p.
10296 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
10297
10298 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
10299
10300 PR target/49423
10301 * config/arm/arm-protos.h (arm_legitimate_address_p,
10302 arm_is_constant_pool_ref): Add prototypes.
10303 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
10304 (arm_is_constant_pool_ref) New function.
10305 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
10306 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
10307 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
10308 operand. Remove pool_range and neg_pool_range attributes.
10309 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
10310 pool_range and neg_pool_range attributes.
10311 * config/arm/constraints.md (Uh): New constraint.
10312 (Uq): Don't allow constant pool references.
10313
10314 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
10315
10316 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
10317 (move_lo_quad_internal_be_<mode>): Likewise.
10318 (move_lo_quad_<mode>): Convert to define_expand.
10319 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
10320 (aarch64_simd_move_hi_quad_be_<mode>): New.
10321 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
10322 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
10323 (aarch64_combinez_be<mode>): New.
10324 (aarch64_combine<mode>): Convert to define_expand.
10325 (aarch64_combine_internal<mode>): New.
10326 (aarch64_simd_combine<mode>): Remove bogus RTL description.
10327
10328 2014-07-04 Tom de Vries <tom@codesourcery.com>
10329
10330 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
10331 combination of earlyclobber and read/write modifiers.
10332
10333 2014-07-04 Tom de Vries <tom@codesourcery.com>
10334
10335 * config/aarch64/aarch64-simd.md
10336 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
10337
10338 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
10339
10340 PR target/61714
10341 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
10342
10343 2014-07-04 Jakub Jelinek <jakub@redhat.com>
10344
10345 PR middle-end/61654
10346 * cgraphunit.c (expand_thunk): Call free_dominance_info.
10347
10348 PR tree-optimization/61684
10349 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
10350 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
10351
10352 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10353 Kito Cheng <kito@0xlab.org>
10354 Monk Chiang <sh.chiang04@gmail.com>
10355
10356 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
10357 (nds32_symbol_load_store_p): Move to ...
10358 (nds32_fp_as_gp_check_available): Move to ...
10359 * config/nds32/nds32-fp-as-gp.c: ... here.
10360 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
10361 extern declaration.
10362
10363 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10364 Kito Cheng <kito@0xlab.org>
10365 Monk Chiang <sh.chiang04@gmail.com>
10366
10367 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
10368 (nds32_expand_store_multiple): Move to ...
10369 (nds32_expand_movmemqi): Move to ...
10370 * config/nds32/nds32-memory-manipulation.c: ... here.
10371
10372 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10373 Kito Cheng <kito@0xlab.org>
10374 Monk Chiang <sh.chiang04@gmail.com>
10375
10376 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
10377 (nds32_output_casesi_pc_relative): Move to ...
10378 (nds32_output_casesi): Move to ...
10379 (nds32_mem_format): Move to ...
10380 (nds32_output_16bit_store): Move to ...
10381 (nds32_output_16bit_load): Move to ...
10382 (nds32_output_32bit_store): Move to ...
10383 (nds32_output_32bit_load): Move to ...
10384 (nds32_output_32bit_load_s): Move to ...
10385 (nds32_output_stack_push): Move to ...
10386 (nds32_output_stack_pop): Move to ...
10387 * config/nds32/nds32-md-auxiliary.c: ... here.
10388
10389 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10390 Ling-Hua Tseng <uranus@tinlans.org>
10391
10392 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
10393 the purpose of this file.
10394
10395 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10396 Kito Cheng <kito@0xlab.org>
10397 Monk Chiang <sh.chiang04@gmail.com>
10398
10399 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
10400 (nds32_address_cost): Move implementation to ...
10401 * config/nds32/nds32-cost.c: ... here.
10402 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
10403 (nds32_address_cost_impl): Declare.
10404
10405 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10406 Kito Cheng <kito@0xlab.org>
10407 Monk Chiang <sh.chiang04@gmail.com>
10408
10409 * config/nds32/nds32.c
10410 (nds32_consecutive_registers_load_store_p): Move to ...
10411 (nds32_valid_multiple_load_store): Move to ...
10412 (nds32_valid_stack_push_pop): Move to ...
10413 (nds32_can_use_bclr_p): Move to ...
10414 (nds32_can_use_bset_p): Move to ...
10415 (nds32_can_use_btgl_p): Move to ...
10416 (nds32_can_use_bitci_p): Move to ...
10417 * config/nds32/nds32-predicates.c: ... here.
10418
10419 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10420 Kito Cheng <kito@0xlab.org>
10421 Monk Chiang <sh.chiang04@gmail.com>
10422
10423 * config/nds32/nds32.c
10424 (nds32_expand_builtin_null_ftype_reg): Move to ...
10425 (nds32_expand_builtin_reg_ftype_imm): Move to ...
10426 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
10427 (nds32_init_builtins): Move implementation to ...
10428 (nds32_expand_builtin): Move implementation to ...
10429 * config/nds32/nds32-intrinsic.c: ... here.
10430 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
10431 (nds32_expand_builtin_impl): Declare.
10432
10433 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10434 Kito Cheng <kito@0xlab.org>
10435 Monk Chiang <sh.chiang04@gmail.com>
10436
10437 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
10438 (nds32_emit_section_tail_template): Move to ...
10439 (nds32_emit_isr_jmptbl_section): Move to ...
10440 (nds32_emit_isr_vector_section): Move to ...
10441 (nds32_emit_isr_reset_conten): Move to ...
10442 (nds32_check_isr_attrs_conflict): Move to ...
10443 (nds32_construct_isr_vectors_information): Move to ...
10444 (nds32_asm_file_start): Move implementation to ...
10445 (nds32_asm_file_end): Move implementation to ...
10446 * config/nds32/nds32-isr.c: ... here.
10447 * config/nds32/nds32-protos.h
10448 (nds32_check_isr_attrs_conflict): Declare.
10449 (nds32_construct_isr_vectors_information): Declare.
10450 (nds32_asm_file_start_for_isr): Declare.
10451 (nds32_asm_file_end_for_isr): Declare.
10452
10453 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10454 Kito Cheng <kito@0xlab.org>
10455 Monk Chiang <sh.chiang04@gmail.com>
10456
10457 * config.gcc (nds32*): Add new modules to extra_objs.
10458 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
10459 (nds32be-*-*): Likewise.
10460 * config/nds32/nds32-cost.c: New file.
10461 * config/nds32/nds32-fp-as-gp.c: New file.
10462 * config/nds32/nds32-intrinsic.c: New file.
10463 * config/nds32/nds32-isr.c: New file.
10464 * config/nds32/nds32-md-auxiliary.c: New file.
10465 * config/nds32/nds32-memory-manipulation.c: New file.
10466 * config/nds32/nds32-pipelines-auxiliary.c: New file.
10467 * config/nds32/nds32-predicates.c: New file.
10468 * config/nds32/t-nds32: New file.
10469
10470 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10471
10472 PR tree-optimization/61682
10473 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
10474 using cases and when one of the operands is equal to 1.
10475
10476 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
10477
10478 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
10479 ashr<mode>3): Correct mode of operands[2].
10480 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
10481 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
10482 Correct mode of operands[2]. Fix split condition.
10483
10484 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
10485
10486 * arm.md (arch): Add armv6_or_vfpv3.
10487 (arch_enabled): Add test for the above.
10488 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
10489 on VFP9.
10490 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
10491
10492 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10493
10494 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
10495 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
10496 HWI 1 and negate the unsigned value.
10497 * expmed.c (expand_sdiv_pow2): For modes wider than word always
10498 use AND instead of shift.
10499 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
10500
10501 2014-07-03 Marek Polacek <polacek@redhat.com>
10502
10503 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
10504 (-fsanitize=float-divide-by-zero): Move to the table with
10505 -fsanitize=undefined suboptions.
10506 (-fsanitize=float-cast-overflow): Likewise.
10507
10508 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
10509
10510 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
10511 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
10512 endianness.
10513
10514 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10515
10516 * loop-invariant.c (struct invariant): Add a new member: eqno;
10517 (find_identical_invariants): Update eqno;
10518 (create_new_invariant): Init eqno;
10519 (get_inv_cost): Compute comp_cost with eqno;
10520
10521 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
10522
10523 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
10524 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
10525 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
10526 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
10527 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
10528
10529 2014-07-02 Christian Bruel <christian.bruel@st.com>
10530
10531 PR target/29349
10532 PR target/53513
10533 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
10534 (make_preds_opaque): Delete.
10535 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
10536 (commit_mode_sets): New function.
10537 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
10538 Process all modes at once.
10539 * basic-block.h (pre_edge_lcm_avs): Declare.
10540 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
10541 Call clear_aux_for_edges. Fix comments.
10542 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
10543 (pre_edge_rev_lcm): Idem.
10544 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
10545 parameter.
10546 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
10547 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
10548 Idem.
10549 * config/i386/i386.c (x96_emit_mode_set): Idem.
10550 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
10551 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
10552 (fpscr_toggle) Disallow from delay slot.
10553 * target.def (emit_mode_set): Add prev_mode parameter.
10554 * doc/tm.texi: Regenerate.
10555
10556 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10557
10558 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
10559 variable i.
10560
10561 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10562
10563 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
10564 vtable_pointer_value_to_vtable): Constify.
10565 (contains_polymorphic_type_p): Declare.
10566 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
10567 vtable_pointer_value_to_vtable): Constify.
10568 (contains_polymorphic_type_p): New predicate.
10569 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
10570 polymorphic types.
10571 (ipa_set_ancestor_jf): Likewise.
10572 (detect_type_change): Return false in easy cases.
10573 (compute_complex_assign_jump_func): Require type to contain
10574 polymorphic type.
10575 (compute_known_type_jump_func): Likewise.
10576
10577 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10578
10579 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
10580 Remove.
10581 (type_in_anonymous_namespace_p): Constify argument.
10582 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
10583 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
10584 (main_odr_variant): New function.
10585 (hash_type_name): Make static; update assert; do not ICE on
10586 non-records.
10587 (types_same_for_odr): Bring here from tree.c; simplify and remove
10588 old structural comparing code that doesn't work for templates.
10589 (odr_hasher::equal): Update assert.
10590 (add_type_duplicate): Return true when bases should be computed;
10591 replace incomplete loader by complete; do not output duplicated
10592 warnings; do not ICE on non-records; set odr_violated flag.
10593 (get_odr_type): Be ready to replace incomplete type by complete
10594 one; work on ODR variants instead of main variants; reorder item
10595 in array so bases have still smaller indexes.
10596 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
10597 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
10598
10599 2014-07-01 Cary Coutant <ccoutant@google.com>
10600
10601 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
10602 lookup.
10603 (resolve_addr_in_expr): When replacing the rtx in a location list
10604 entry, get a new address table entry.
10605 (dwarf2out_finish): Call index_location_lists even if there are no
10606 addr_index_table entries yet.
10607
10608 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10609
10610 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
10611 change for not being obvious.
10612
10613 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10614
10615 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
10616 unused argument.
10617
10618 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10619
10620 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
10621 (vcagt_f64): Likewise.
10622 (vcale_f64): Likewise.
10623 (vcaled_f64): Likewise.
10624 (vcales_f32): Likewise.
10625 (vcalt_f64): Likewise.
10626 (vcaltd_f64): Likewise.
10627 (vcalts_f32): Likewise.
10628
10629 2014-07-01 Marek Polacek <polacek@redhat.com>
10630
10631 * doc/invoke.texi: Document -Wint-conversion.
10632
10633 2014-07-01 Marek Polacek <polacek@redhat.com>
10634
10635 PR c/58286
10636 * doc/invoke.texi: Document -Wincompatible-pointer-types.
10637
10638 2014-07-01 Martin Liska <mliska@suse.cz>
10639
10640 IPA REF alias refactoring
10641 * cgraph.h (iterate_direct_aliases): New function.
10642 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
10643 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
10644 FOR_EACH_ALIAS added.
10645 (cgraph_for_node_and_aliases): Likewise.
10646 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
10647 * ipa-inline.c (reset_edge_caches): Likewise.
10648 (update_caller_keys): Likewise.
10649 * trans-mem.c (ipa_tm_execute): Likewise.
10650 *varpool.c (varpool_analyze_node): Likewise.
10651 (varpool_for_node_and_aliases): Likewise.
10652 * ipa-ref.h (first_alias): New function.
10653 (last_alias): Likewise.
10654 (has_aliases_p): Likewise.
10655 * ipa-ref.c (ipa_ref::remove_reference): Removal function
10656 is sensitive to IPA_REF_ALIASes.
10657 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
10658 are put at the beginning of the list.
10659 (symtab_node::iterate_direct_aliases): New function.
10660
10661 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10662
10663 Revert:
10664 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10665 type is complete.
10666 (write_ts_type_common_tree_pointers): Do not stream fields not set
10667 for incomplete types; do not stream duplicated fields for variants;
10668 sanity check that variant and type match.
10669 (write_ts_type_non_common_tree_pointers): Likewise.
10670 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10671 TYPE_SIZE whether type is complete.
10672 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10673 write_ts_type_common_tree_pointers
10674 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10675
10676 2014-06-30 Joseph Myers <joseph@codesourcery.com>
10677
10678 * var-tracking.c (add_stores): Return instead of asserting if old
10679 and new values for conditional store are the same.
10680
10681 2014-06-30 Richard Henderson <rth@redhat.com>
10682
10683 PR rtl-opt/61608
10684 PR target/39284
10685 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
10686 the cfg if there were any changes.
10687 * passes.def: Revert move of peephole2 after reorder_blocks;
10688 move duplicate_computed_gotos before peephole2.
10689
10690 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
10691
10692 * except.c (emit_note_eh_region_end): New helper function.
10693 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
10694 emit EH_REGION_END note.
10695 * jump.c (cleanup_barriers): Do not split a call and its
10696 corresponding CALL_ARG_LOCATION note.
10697
10698 2014-06-30 Jeff Law <law@redhat.com>
10699
10700 PR tree-optimization/61607
10701 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
10702 deeper into the SSA_NAME_VALUE chain.
10703
10704 2014-06-30 Marek Polacek <polacek@redhat.com>
10705
10706 * convert.c (convert_to_integer): Don't instrument conversions if the
10707 function has no_sanitize_undefined attribute.
10708 * ubsan.c: Don't run the ubsan pass if the function has
10709 no_sanitize_undefined attribute.
10710
10711 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10712
10713 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
10714 -fsanitize=undefined suboptions.
10715
10716 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
10717
10718 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
10719 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
10720 against bigendian and adjust indices.
10721
10722 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10723
10724 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
10725
10726 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
10727
10728 PR target/61633
10729 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
10730 Add alternative; make early clobber. Adjust both split patterns
10731 to use operand 0 as the working register.
10732
10733 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10734
10735 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
10736 as ira_object_id_map might be NULL, or 1.
10737
10738 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10739
10740 * loop-invariant.c (get_inv_cost): Handle register class.
10741 (gain_for_invariant): Check the register pressure of the inv
10742 and its overlapped register class, other than all.
10743
10744 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10745
10746 * doc/invoke.texi (Optimize Options): Fix descriptions of
10747 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
10748
10749 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
10750
10751 * doc/extend.texi (Function Attributes): Update 'naked' attribute
10752 documentation.
10753
10754 2014-06-29 Tobias Grosser <tobias@grosser.es>
10755
10756 PR bootstrap/61650
10757 * graphite-isl-ast-to-gimple.c: Add missing guards.
10758
10759 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10760
10761 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
10762 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
10763 * flag-types.h: Add new enum fgraphite_generator.
10764 * graphite-isl-ast-to-gimple.c: New.
10765 * graphite-isl-ast-to-gimple.h: New.
10766 * graphite.c (graphite_transform_loops): Add choice of Graphite
10767 code generator, which depends on flag_graphite_code_gen.
10768
10769 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10770
10771 * graphite-dependences.c (subtract_commutative_associative_deps):
10772 Add NULL checking of the following variables: must_raw_no_source,
10773 may_raw_no_source, must_war_no_source, may_war_no_source,
10774 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
10775 must_war, may_war, must_waw, may_waw.
10776
10777 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10778
10779 * graphite-clast-to-gimple.c: gloog is renamed to
10780 graphite_regenerate_ast_cloog. gloog_error is renamed to
10781 graphite_regenerate_error.
10782 * graphite-clast-to-gimple.h: The definition of the struct
10783 bb_pbb_def is moved to graphite-htab.h.
10784 Add inclusion of the hash-table.h.
10785 * graphite-htab.h: The declaration of the function gloog is moved
10786 to graphite-clast-to-gimple.h and renamed to
10787 graphite_regenerate_ast_cloog.
10788 * graphite.c (graphite_transform_loops): gloog is renamed
10789 to graphite_regenerate_ast_cloog.
10790
10791 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10792
10793 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10794 type is complete.
10795 (write_ts_type_common_tree_pointers): Do not stream fields not set
10796 for incomplete types; do not stream duplicated fields for variants;
10797 sanity check that variant and type match.
10798 (write_ts_type_non_common_tree_pointers): Likewise.
10799 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10800 TYPE_SIZE whether type is complete.
10801 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10802 write_ts_type_common_tree_pointers
10803 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10804
10805 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10806
10807 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
10808
10809 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10810
10811 * tree-inline.c (remap_type_1): Do not duplicate fields
10812 that are shared in between type and its main variant.
10813
10814 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10815
10816 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
10817 of the type.
10818 (ipa_set_ancestor_jf) Likewise.
10819 (check_stmt_for_type_change): Check that we work on main variant.
10820 (detect_type_change): Look into main variant.
10821 (compute_known_type_jump_func): Check that main variant has BINFO.
10822
10823 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10824
10825 * ipa-devirt.c (set_type_binfo): New function.
10826 (add_type_duplicate): Use it.
10827 (get_odr_type): Sanity check that binfos points to main variants.
10828 (get_class_context): Be sure the context's outer_type is main variant.
10829 (contains_type_p): Walk main variant.
10830 (get_polymorphic_call_info_for_decl): Set outer_type to be
10831 main variant.
10832 (get_polymorphic_call_info): Likewise.
10833 (possible_polymorphic_call_targets): Sanity check that we operate
10834 on main variant.
10835
10836 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10837
10838 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10839
10840 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10841
10842 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
10843 accidental change due to wide-int branch merge.
10844
10845 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10846
10847 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
10848 compressed debug support.
10849 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
10850 * configure: Regenerate.
10851 * config.in: Regenerate.
10852 * common.opt (compressed_debug_sections): New enum.
10853 (gz, gz=): New options.
10854 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
10855 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
10856 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
10857 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
10858 LINK_COMPRESS_DEBUG_SPEC.
10859 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
10860 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
10861 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
10862 (Debugging Options): Document -gz[=type].
10863
10864 2014-06-27 Martin Jambor <mjambor@suse.cz>
10865
10866 PR ipa/61160
10867 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
10868 args_to_skip, use those from node instead. Copy args_to_skip and
10869 combined_args_to_skip from node to the new thunk.
10870 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
10871 (cgraph_create_virtual_clone): Moved computation of
10872 combined_args_to_skip...
10873 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
10874
10875 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
10876
10877 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
10878 redundant diagnostic machinary.
10879
10880 2014-06-27 Richard Biener <rguenther@suse.de>
10881
10882 * tree-ssa-math-opts.c (bswap_replace): Fix
10883 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
10884
10885 2014-06-27 Martin Liska <mliska@suse.cz>
10886
10887 * gimple.h (gimple_location_safe): New function introduced.
10888 * cgraphunit.c (walk_polymorphic_call_targets): Usage
10889 of gimple_location_safe replaces gimple_location.
10890 (gimple_fold_call): Likewise.
10891 * ipa-devirt.c (ipa_devirt): Likewise.
10892 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10893 * ipa.c (walk_polymorphic_call_targets): Likewise.
10894 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
10895
10896 2014-06-27 Jakub Jelinek <jakub@redhat.com>
10897
10898 PR tree-optimization/57233
10899 PR tree-optimization/61299
10900 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
10901 functions.
10902 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
10903 would be lowered to scalar shifts, check if corresponding
10904 shifts and vector BIT_IOR_EXPR are supported and don't lower
10905 or lower just to narrower vector type in that case.
10906 * expmed.c (expand_shift_1): Fix up handling of vector
10907 shifts and rotates.
10908
10909 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
10910
10911 PR target/61586
10912 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
10913
10914 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
10915
10916 * doc/invoke.texi (-fsemantic-interposition): Document.
10917 * common.opt (fsemantic-interposition): New flag.
10918 * varasm.c (decl_replaceable_p): Use it.
10919
10920 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10921
10922 PR target/61542
10923 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
10924 extraction other than index 3.
10925
10926 2014-06-26 Teresa Johnson <tejohnson@google.com>
10927
10928 * doc/invoke.texi: Fix typo.
10929 * dumpfile.c: Add support for documented -fdump-* options
10930 optimized/missed/note/optall.
10931
10932 2014-06-26 Martin Jambor <mjambor@suse.cz>
10933
10934 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
10935 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
10936 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
10937 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
10938 * opts.c (default_options_optimization): Set
10939 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
10940 * doc/invoke.texi (allow-load-data-races)
10941 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
10942 (allow-store-data-races): Document the new default.
10943
10944 2014-06-26 Martin Jambor <mjambor@suse.cz>
10945
10946 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
10947 renamed to ipa_impossible_devirt_target. Fix typo.
10948 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
10949 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
10950 ipa_impossible_devirt_target.
10951
10952 2014-06-26 Richard Biener <rguenther@suse.de>
10953
10954 PR tree-optimization/61607
10955 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
10956 explaining why we restrict copies on loop depth.
10957 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10958 on loop depth.
10959 (record_equivalences_from_phis): Instead add it here.
10960
10961 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
10962
10963 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
10964 (LTO_WRAPPER_OBJS): New variable.
10965 (lto-wrapper$(exeext)): Use it.
10966 * collect2.c: Include "collect-utils.h".
10967 (verbose, debug): Remove variables.
10968 (at_file_supplied): No longer static.
10969 (tool_name): New variable.
10970 (do_wait, fork_execute, maybe_unlink): Don't declare.
10971 (tool_cleanup): No longer static.
10972 (notice): Remove function.
10973 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
10974 fork_execute calls.
10975 (collect_wait, do_wait, collect_execute): Remove functions.
10976 (maybe_unlink): No longer static.
10977 * collect2.h (verbose, debug): Don't declare.
10978 (at_file_supplied): Declare.
10979 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
10980 changed.
10981 (collect_execute): Replace with implementation from collect2, plus a
10982 new arg use_atfile. All callers changed.
10983 (collect_wait): Replace with implementation from collect2.
10984 (maybe_unlink_file): Remove function.
10985 (fork_execute): Replace with implementation from collect2, plus a
10986 new arg use_atfile. All callers changed.
10987 (do_wait): Add call to utils_cleanup to the error path.
10988 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
10989 (tool_cleanup): Adjust declarations.
10990 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
10991 * tlink.c: Include "collect-utils.h".
10992 (tlink_execute): New arg use_atfile. All callers changed.
10993 (tlink_init, tlink_execute): Remove declarations.
10994
10995 * collect-utils.c (save_temps): New variable.
10996 (do_wait): Use it instead of debug. Use fatal_error.
10997 * collect-utils.h (save_temps): Declare.
10998 * collect2.c (verbose): Rename from vflag. All uses changed.
10999 (tool_cleanup): New function, copied from collect_atexit.
11000 (collect_atexit, handler): Just call it.
11001 * collect2.h (verbose): Declaration renamed from vflag.
11002 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
11003 debug.
11004
11005 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
11006 (lto-wrapper$(exeext)): Link with collect-utils.o.
11007 * collect-utils.c: New file.
11008 * collect-utils.h: New file.
11009 * lto-wrapper.c: Include "collect-utils.h".
11010 (args_name): Delete variable.
11011 (tool_name): New variable.
11012 (tool_cleanup): New function.
11013 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
11014 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
11015 (fork_execute): Remove functions.
11016
11017 2014-06-26 Nick Clifton <nickc@redhat.com>
11018
11019 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
11020
11021 * doc/extend.texi (Function Attributes): Fix typo in description
11022 of RX vector attribute.
11023
11024 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11025
11026 * config.gcc (supported_defaults): Error when passing either
11027 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
11028
11029 2014-06-26 Richard Biener <rguenther@suse.de>
11030
11031 * tree-ssa-dom.c (cprop_operand): Remove restriction on
11032 propagating volatile pointers.
11033
11034 2014-06-26 Richard Biener <rguenther@suse.de>
11035
11036 PR tree-optimization/61607
11037 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
11038 loop if we redirected its latch edge.
11039 (thread_block_1): Do not cancel loops prematurely.
11040
11041 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
11042
11043 * toplev.c (backend_init_target): Move init_emit_regs and
11044 init_regs to...
11045 (backend_init) ... here; skip ira_init_once and backend_init_target.
11046 (target_reinit) ... and here; clear
11047 this_target_rtl->lang_dependent_initialized.
11048 (lang_dependent_init_target): Clear
11049 this_target_rtl->lang_dependent_initialized;
11050 break out rtl initialization to ...
11051 (initialize_rtl): ... here; call also backend_init_target
11052 and ira_init_once.
11053 * toplev.h (initialize_rtl): New function.
11054 * function.c: Include toplev.h
11055 (init_function_start): Call initialize_rtl.
11056 * rtl.h (target_rtl): Add target_specific_initialized,
11057 lang_dependent_initialized.
11058
11059 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
11060 Jakub Jelinek <jakub@redhat.com>
11061
11062 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
11063
11064 2014-06-25 Tom de Vries <tom@codesourcery.com>
11065
11066 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
11067
11068 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
11069
11070 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
11071 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
11072 Issue a strict overflow warning if appropriate.
11073
11074 2014-06-25 Martin Liska <mliska@suse.cz>
11075
11076 IPA REF refactoring
11077 * Makefile.in: Removed header file (ipa-ref-inline.h).
11078 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
11079 called.
11080 (cgraph_speculative_call_info): Likewise.
11081 (cgraph_for_node_thunks_and_aliases): Likewise.
11082 (cgraph_for_node_and_aliases): Likewise.
11083 (verify_cgraph_node): Likewise.
11084 * cgraph.h: Batch of IPA REF functions become member functions of
11085 symtab_node: add_reference, maybe_add_reference, clone_references,
11086 clone_referring, clone_reference, find_reference,
11087 remove_stmt_references, remove_all_references,
11088 remove_all_referring, dump_references, dump_referring,
11089 has_alias_p, iterate_reference, iterate_referring.
11090 * cgraphbuild.c (record_reference): New IPA REF function used.
11091 (record_type_list): Likewise.
11092 (record_eh_tables): Likewise.
11093 (mark_address): Likewise.
11094 (mark_load): Likewise.
11095 (mark_store): Likewise.
11096 (pass_build_cgraph_edges): Likewise.
11097 (rebuild_cgraph_edge): Likewise.
11098 (cgraph_rebuild_references): Likewise.
11099 (pass_remove_cgraph_callee_edges): Likewise.
11100 * cgraphclones.c (cgraph_clone_node): Likewise.
11101 (cgraph_create_virtual_clone): Likewise.
11102 (cgraph_materialize_clone): Likewise.
11103 (cgraph_materialize_all_clones): Likewise.
11104 * cgraphunit.c (cgraph_reset_node): Likewise.
11105 (cgraph_reset_node): Likewise.
11106 (analyze_function): Likewise.
11107 (assemble_thunks_and_aliases): Likewise.
11108 (expand_function): Likewise.
11109 * ipa-comdats.c (propagate_comdat_group): Likewise.
11110 (enqueue_references): Likewise.
11111 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
11112 (create_specialized_node): Likewise.
11113 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
11114 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
11115 * ipa-inline.c (reset_edge_caches): Likewise.
11116 (update_caller_keys): Likewise.
11117 (execute): Likewise.
11118 * ipa-prop.c (remove_described_reference): Likewise.
11119 (propagate_controlled_uses): Likewise.
11120 (ipa_edge_duplication_hook): Likewise.
11121 (ipa_modify_call_arguments): Likewise.
11122 * ipa-pure-const.c (propagate_pure_const): Likewise.
11123 * ipa-ref-inline.h: Header file removed, functions moved
11124 to symtab_node class.
11125 * ipa-ref.c (remove_reference): New class member function.
11126 (cannot_lead_to_return): New class member function.
11127 (referring_ref_list): Likewise.
11128 (referred_ref_list): Likewise.
11129 Rest of functions moved to symtab_node class.
11130 * ipa-ref.h: New member functions remove_reference,
11131 cannot_lead_to_return, referring_ref_list, referred_ref_list added
11132 to ipa_ref class.
11133 ipa_ref_list class has new member functions: first_reference,
11134 first_referring, clear, nreferences.
11135 * ipa-reference.c (analyze_function): New IPA REF function used.
11136 (write_node_summary_p): Likewise.
11137 (ipa_reference_write_optimization_summary): Likewise.
11138 * ipa-split.c (split_function): Likewise.
11139 * ipa-utils.c (ipa_reverse_postorder): Likewise.
11140 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
11141 (function_and_variable_visibility): Likewise.
11142 * ipa.c (has_addr_references_p): Likewise.
11143 (process_references): Argument type changed.
11144 (symtab_remove_unreachable_nodes): New IPA REF function used.
11145 (process_references): Likewise.
11146 (set_writeonly_bit): Likewise.
11147 * lto-cgraph.c: Implementation of new symtab_node member functions
11148 that uses new IPA REF functions.
11149 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
11150 function used.
11151 * lto-streamer-out.c (output_symbol_p): Likewise.
11152 * lto-streamer.h (referenced_from_this_partition_p): Argument type
11153 changed.
11154 * symtab.c: Implementation of new IPA REF API.
11155 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
11156 (ipa_tm_create_version): Likewise.
11157 (ipa_tm_execute): Likewise.
11158 * tree-emutls.c (gen_emutls_addr): Likewise.
11159 * tree-inline.c (copy_bb): Likewise.
11160 (delete_unreachable_blocks_update_callgraph): Likewise.
11161 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
11162 (varpool_for_node_and_aliases): Likewise.
11163
11164 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
11165
11166 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
11167
11168 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
11169
11170 PR bootstrap/61598
11171 * fold-const.c (fold_checksum_tree): Use a hash_table of const
11172 tree_node * instead of tree_node *.
11173 (fold): Adjust.
11174 (print_fold_checksum): Likewise.
11175 (fold_check_failed): Likewise.
11176 (debug_fold_checksum): Likewise.
11177 (fold_build1_stat_loc): Likewise.
11178 (fold_build2_stat_loc): Likewise.
11179 (fold_build3_stat_loc): Likewise.
11180 (fold_build_call_array_loc): Likewise.
11181
11182 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
11183
11184 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
11185 implementation with call to...
11186 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
11187 function.
11188 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
11189 Declare.
11190
11191 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
11192
11193 PR tree-optimization/57742
11194 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
11195 after replacing the statement.
11196
11197 2014-06-25 Nick Clifton <nickc@redhat.com>
11198
11199 * config/v850/v850.c (GHS_default_section_names): Change to const
11200 char * type.
11201 (GHS_current_section_names): Likewise.
11202 (v850_insert_attributes): Do not build strings, just assign the
11203 names directly. Change the type of 'chosen_section' to const
11204 char*.
11205 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
11206 directly to the array entry.
11207 * config/v850/v850.h (GHS_default_section_names): Change to const
11208 char * type.
11209 (GHS_current_section_names): Likewise.
11210
11211 2014-06-25 Jakub Jelinek <jakub@redhat.com>
11212
11213 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
11214 (LANG_HOOKS_DECLS): Add it.
11215 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
11216 has correct type.
11217 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
11218 * langhooks.h (struct lang_hooks_for_decls): Add
11219 omp_clause_linear_ctor hook.
11220 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
11221 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
11222 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
11223 combined simd loop use omp_clause_linear_ctor hook.
11224
11225 2014-06-24 Cong Hou <congh@google.com>
11226
11227 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
11228 pattern recognition.
11229 (type_conversion_p): PROMOTION is true if it's a type promotion
11230 conversion, and false otherwise. Return true if the given expression
11231 is a type conversion one.
11232 * tree-vectorizer.h: Adjust the number of patterns.
11233 * tree.def: Add SAD_EXPR.
11234 * optabs.def: Add sad_optab.
11235 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
11236 * expr.c (expand_expr_real_2): Likewise.
11237 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
11238 * gimple.c (get_gimple_rhs_num_ops): Likewise.
11239 * optabs.c (optab_for_tree_code): Likewise.
11240 * tree-cfg.c (estimate_operator_cost): Likewise.
11241 * tree-ssa-operands.c (get_expr_operands): Likewise.
11242 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
11243 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
11244 * doc/generic.texi: Add document for SAD_EXPR.
11245 * doc/md.texi: Add document for ssad and usad.
11246
11247 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11248
11249 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
11250 qualification in cast.
11251
11252 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
11253
11254 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
11255 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
11256 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
11257 (tree_function_decl): ... here.
11258 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
11259 streaming of vindex to ...
11260 (write_ts_function_decl_tree_pointers): ... here.
11261 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
11262 Do not stream DECL_VINDEX.
11263 (lto_input_ts_function_decl_tree_pointers): Stream it here.
11264
11265 2014-06-24 Catherine Moore <clm@codesourcery.com>
11266 Sandra Loosemore <sandra@codesourcery.com>
11267
11268 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
11269 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
11270 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
11271
11272 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
11273
11274 * doc/invoke.texi (Warning Options): Remove duplicated
11275 -Wmaybe-uninitialized.
11276
11277 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
11278
11279 PR tree-optimization/57742
11280 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
11281 (handle_builtin_malloc, handle_builtin_memset): New functions.
11282 (strlen_optimize_stmt): Call them.
11283 * passes.def: Move strlen after loop+dom but before vrp.
11284
11285 2014-06-24 Jakub Jelinek <jakub@redhat.com>
11286
11287 PR target/61570
11288 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
11289 model family 6 CPU with has_longmode never use a CPU without
11290 64-bit support.
11291
11292 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
11293
11294 PR target/61570
11295 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
11296 the last change.
11297
11298 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11299
11300 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
11301 * dominance.c (iterate_fix_dominators): Use hash_map instead of
11302 pointer_map.
11303 * hash-map.h: New file.
11304 * ipa-comdats.c: Use hash_map instead of pointer_map.
11305 * ipa.c: Likewise.
11306 * lto-section-out.c: Adjust.
11307 * lto-streamer.h: Replace pointer_map with hash_map.
11308 * symtab.c (verify_symtab): Likewise.
11309 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
11310 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
11311 * tree-streamer.h: Likewise.
11312 * tree-streamer.c: Adjust.
11313 * pointer-set.h: Remove pointer_map.
11314
11315 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11316
11317 * hash-table.h: Add a template arg to choose between storing values
11318 and storing pointers to values, and then provide partial
11319 specializations for both.
11320 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
11321 should store, not the type values should point to.
11322 * tree-into-ssa.c (var_info_hasher): Likewise.
11323 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
11324 * tree-complex.c: Adjust.
11325 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
11326 table instead of int_tree_map *.
11327 * tree-parloops.c: Adjust.
11328 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
11329 type is being stored.
11330 * tree-vectorizer.c: Adjust.
11331
11332 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11333
11334 * hash-table.h: Remove a layer of indirection from hash_table so that
11335 it contains the hash table's data instead of a pointer to the data.
11336 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
11337 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
11338 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
11339 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
11340 fold-const.c, gcse.c, ggc-common.c,
11341 gimple-ssa-strength-reduction.c, gimplify.c,
11342 graphite-clast-to-gimple.c, graphite-dependences.c,
11343 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
11344 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
11345 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
11346 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
11347 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
11348 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
11349 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
11350 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
11351 tree-ssa-live.c, tree-ssa-loop-im.c,
11352 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
11353 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
11354 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
11355 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
11356 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
11357 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
11358 vtable-verify.c, vtable-verify.h: Adjust.
11359
11360 2014-06-24 Richard Biener <rguenther@suse.de>
11361
11362 PR tree-optimization/61572
11363 * tree-ssa-sink.c (statement_sink_location): Do not sink
11364 loads from hard registers.
11365
11366 2014-06-24 Jakub Jelinek <jakub@redhat.com>
11367
11368 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
11369 not mentioned in clauses use private clause if the iterator is
11370 declared in #pragma omp for simd, and when adding lastprivate
11371 instead, add it to the outer #pragma omp for too. Diagnose
11372 if the variable is private in outer context. For simd collapse > 1
11373 loops, replace all iterators with temporaries.
11374 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
11375 same even in collapse > 1 loops.
11376
11377 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
11378 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
11379 non-NULL.
11380 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
11381 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
11382 non-NULL.
11383 (gimplify_adjust_omp_clauses): Likewise.
11384 * omp-low.c (lower_rec_simd_input_clauses,
11385 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
11386 safelen the same as safelen(1).
11387 * tree-nested.c (convert_nonlocal_omp_clauses,
11388 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
11389 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
11390 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
11391 Fixup handling of GIMPLE_OMP_TARGET.
11392 (convert_tramp_reference_stmt, convert_gimple_call): Handle
11393 GIMPLE_OMP_TARGET.
11394
11395 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
11396
11397 PR tree-optimization/61554
11398 * tree-ssa-propagate.c: Include "bitmap.h".
11399 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
11400 properly update constructor/destructor.
11401 (substitute_and_fold_dom_walker::before_dom_children):
11402 Remove call to gimple_purge_dead_eh_edges, add bb->index to
11403 need_eh_cleaup instead.
11404 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
11405 need_eh_cleanup.
11406
11407 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11408
11409 * varpool.c (dump_varpool_node): Dump used_by_single_function.
11410 * tree-pass.h (make_pass_ipa_single_use): New pass.
11411 * cgraph.h (used_by_single_function): New flag.
11412 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
11413 Stream it.
11414 * passes.def (pass_ipa_single_use): Scedule.
11415 * ipa.c (BOTTOM): New macro.
11416 (meet): New function
11417 (propagate_single_user): New function.
11418 (ipa_single_use): New function.
11419 (pass_data_ipa_single_use): New pass.
11420 (pass_ipa_single_use): New pass.
11421 (pass_ipa_single_use::gate): New gate.
11422 (make_pass_ipa_single_use): New function.
11423
11424 2014-06-23 Kai Tietz <ktietz@redhat.com>
11425
11426 PR target/39284
11427 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
11428 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
11429
11430 2014-06-23 Richard Biener <rguenther@suse.de>
11431
11432 * tree-ssa-loop.c (gate_loop): New function.
11433 (pass_tree_loop::gate): Call it.
11434 (pass_data_tree_no_loop, pass_tree_no_loop,
11435 make_pass_tree_no_loop): New.
11436 * tree-vectorizer.c: Include tree-scalar-evolution.c
11437 (pass_slp_vectorize::execute): Initialize loops and SCEV if
11438 required.
11439 (pass_slp_vectorize::clone): New method.
11440 * timevar.def (TV_TREE_NOLOOP): New.
11441 * tree-pass.h (make_pass_tree_no_loop): Declare.
11442 * passes.def (pass_tree_no_loop): New pass group with
11443 SLP vectorizer.
11444
11445 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
11446
11447 PR target/61570
11448 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
11449 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
11450
11451 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11452
11453 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
11454 "yes" where needed.
11455
11456 2014-06-23 Alan Modra <amodra@gmail.com>
11457
11458 PR bootstrap/61583
11459 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
11460 to zero on debug statements.
11461
11462 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11463
11464 PR target/60825
11465 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
11466 Ignore third operand if present by marking qualifier_internal.
11467
11468 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
11469
11470 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
11471 vector extension.
11472 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
11473 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
11474 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
11475 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
11476 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
11477 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
11478 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
11479 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
11480 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
11481 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
11482 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
11483 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
11484 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
11485 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
11486 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
11487 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
11488 logic in GCC vector extensions
11489
11490 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
11491 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
11492 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
11493 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
11494 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
11495 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
11496 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
11497 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
11498 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
11499 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
11500
11501 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
11502
11503 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
11504 extensions.
11505
11506 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
11507 (vget_low_s64): Use __GET_LOW macro.
11508 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
11509 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
11510 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
11511 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
11512 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
11513
11514 (vcombine_s64): Use GCC vector extensions; remove cast.
11515 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
11516 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
11517 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
11518 Fix type signature; remove cast.
11519
11520 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11521
11522 PR target/60825
11523 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
11524 V1DFmode.
11525 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
11526 add V1DFmode
11527 (BUILTIN_VD1): New.
11528 (BUILTIN_VD_RE): Remove.
11529 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
11530 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
11531 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
11532 variant but not df.
11533 (vreinterpretv1df*, vreinterpret*v1df): New.
11534 (vreinterpretdf*, vreinterpret*df): Remove.
11535 * config/aarch64/aarch64-simd.md (aarch64_create,
11536 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
11537 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
11538 (VD1): New.
11539 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
11540 (vcreate_f64): Remove cast, use v1df builtin.
11541 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
11542 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
11543 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
11544 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
11545 vmov_n_f64, vst1_f64): Use gcc vector extensions.
11546 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
11547 add range check using __builtin_aarch64_im_lane_boundsi.
11548 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
11549 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
11550 type signature, use gcc vector extensions.
11551 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
11552 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
11553 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
11554 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
11555 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
11556 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
11557 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
11558 vreinterpret_u64_f64): Use v1df builtin not df.
11559
11560 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11561
11562 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
11563 vector registers.
11564
11565 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11566
11567 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
11568 priority directly.
11569
11570 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11571
11572 * loop-invariant.c (pre_check_invariant_p): New function.
11573 (find_invariant_insn): Call pre_check_invariant_p.
11574
11575 2014-06-22 Richard Henderson <rth@redhat.com>
11576
11577 PR target/61565
11578 * compare-elim.c (struct comparison): Add eh_note.
11579 (find_comparison_dom_walker::before_dom_children): Don't eliminate
11580 a redundant comparison in a different EH region. Purge EH edges if
11581 necessary.
11582
11583 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11584
11585 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
11586 (var_shift): Use it.
11587 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
11588 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
11589 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
11590 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
11591 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
11592 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
11593 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
11594 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
11595 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
11596 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
11597 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
11598 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
11599 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
11600 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
11601 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
11602 *rotldi3_internal15be): Use the new attribute. Merge register and
11603 integer alternatives.
11604
11605 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11606
11607 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
11608 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
11609 split, *ashrdi3_internal3 and split): Delete, merge into...
11610 (ashr<mode>3): New expander.
11611 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
11612 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
11613
11614 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11615
11616 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
11617 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
11618 *rotldi3_internal3 and split): Delete, merge into...
11619 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
11620 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
11621 Use "rotlw" extended mnemonic.
11622
11623 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11624
11625 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
11626 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
11627 and split, *ashldi3_internal3 and split): Delete, merge into...
11628 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
11629 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
11630
11631 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11632
11633 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
11634 (lshrsi3, two anonymous define_insns and define_splits,
11635 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
11636 *lshrdi3_internal3 and split): Delete, merge into...
11637 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
11638 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
11639
11640 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11641
11642 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
11643 Remove "O" alternative.
11644
11645 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
11646
11647 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
11648 (mips_move_from_gpr_cost): Likewise.
11649 (mips_register_move_cost): Update accordingly.
11650 (mips_secondary_reload_class): Remove name of in_p.
11651
11652 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
11653
11654 PR target/61503
11655 * config/i386/i386.md (x86_64_shrd, x86_shrd,
11656 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
11657
11658 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11659
11660 * config/nios2/nios2.c: Include "builtins.h".
11661
11662 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11663
11664 * cgraph.h (tls_model_names): New variable.
11665 * print-tree.c (print_node): Simplify.
11666 * varpool.c (tls_model_names): New variable.
11667 (dump_varpool_node): Output tls model.
11668
11669 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11670
11671 * ipa-visibility.c (function_and_variable_visibility): Disable
11672 temporarily local aliases for some targets.
11673
11674 2014-06-20 Marek Polacek <polacek@redhat.com>
11675
11676 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
11677 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
11678 into SANITIZE_UNDEFINED.
11679 * doc/invoke.texi: Describe -fsanitize=bounds.
11680 * gimplify.c (gimplify_call_expr): Add gimplification of internal
11681 functions created in the FEs.
11682 * internal-fn.c: Move "internal-fn.h" after "tree.h".
11683 (expand_UBSAN_BOUNDS): New function.
11684 * internal-fn.def (UBSAN_BOUNDS): New internal function.
11685 * internal-fn.h: Don't define internal functions here.
11686 * opts.c (common_handle_option): Add -fsanitize=bounds.
11687 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
11688 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
11689 * tree-core.h: Define internal functions here.
11690 (struct tree_base): Add ifn field.
11691 * tree-pretty-print.c: Include "internal-fn.h".
11692 (dump_generic_node): Handle functions without CALL_EXPR_FN.
11693 * tree.c (get_callee_fndecl): Likewise.
11694 (build_call_expr_internal_loc): New function.
11695 * tree.def (CALL_EXPR): Update description.
11696 * tree.h (CALL_EXPR_IFN): Define.
11697 (build_call_expr_internal_loc): Declare.
11698 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
11699 types.
11700 (ubsan_type_descriptor): Change bool parameter to enum
11701 ubsan_print_style. Adjust the code. Add handling of
11702 UBSAN_PRINT_ARRAY.
11703 (ubsan_expand_bounds_ifn): New function.
11704 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
11705 (ubsan_build_overflow_builtin): Likewise.
11706 (instrument_bool_enum_load): Likewise.
11707 (ubsan_instrument_float_cast): Likewise.
11708 * ubsan.h (enum ubsan_print_style): New enum.
11709 (ubsan_expand_bounds_ifn): Declare.
11710 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
11711
11712 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
11713
11714 * config/rs6000/rs6000.md: Append `DONE' to preparation
11715 statements of `bswap' pattern splitters.
11716
11717 2014-06-20 Tom de Vries <tom@codesourcery.com>
11718
11719 * target.def (call_fusage_contains_non_callee_clobbers): Update
11720 definition.
11721 * doc/tm.texi: Regenerate.
11722
11723 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11724 Max Ostapenko <m.ostapenko@partner.samsung.com>
11725
11726 PR sanitizer/61547
11727 * asan.c (instrument_strlen_call): Fixed instrumentation of
11728 trailing byte.
11729
11730 2014-06-20 Martin Jambor <mjambor@suse.cz>
11731
11732 PR ipa/61540
11733 * ipa-prop.c (impossible_devirt_target): New function.
11734 (try_make_edge_direct_virtual_call): Use it, also instead of
11735 asserting.
11736
11737 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11738 Max Ostapenko <m.ostapenko@partner.samsung.com>
11739
11740 PR sanitizer/61530
11741 * asan.c (build_check_stmt): Add condition.
11742
11743 2014-06-20 Martin Jambor <mjambor@suse.cz>
11744
11745 PR ipa/61211
11746 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
11747 expanded clones.
11748
11749 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11750
11751 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
11752 Update comments.
11753 (VCONQ): Make comment more helpful.
11754 (VCON): Delete.
11755 * config/aarch64/aarch64-simd.md
11756 (aarch64_sqdmulh_lane<mode>):
11757 Use VCOND for operands 2. Update lane checking and flipping logic.
11758 (aarch64_sqrdmulh_lane<mode>): Likewise.
11759 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
11760 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
11761 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
11762 attribute of operand 3 to VCOND.
11763 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
11764 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11765 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
11766 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
11767 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11768 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
11769 define_insn.
11770 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
11771 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
11772 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
11773 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
11774 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
11775 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
11776 operand to VCOND. Update lane flipping and bounds checking logic.
11777 (aarch64_sqdmlal2_lane<mode>): Likewise.
11778 (aarch64_sqdmlsl_lane<mode>): Likewise.
11779 (aarch64_sqdmull_lane<mode>): Likewise.
11780 (aarch64_sqdmull2_lane<mode>): Likewise.
11781 (aarch64_sqdmlal_laneq<mode>):
11782 Replace VCON usage with VCONQ.
11783 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
11784 (aarch64_sqdmlal2_laneq<mode>): Emit
11785 aarch64_sqdmlal2_laneq<mode>_internal insn.
11786 Replace VCON with VCONQ.
11787 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
11788 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
11789 (aarch64_sqdmull_laneq<mode>): Emit
11790 aarch64_sqdmull_laneq<mode>_internal insn.
11791 Replace VCON with VCONQ.
11792 (aarch64_sqdmull2_laneq<mode>): Emit
11793 aarch64_sqdmull2_laneq<mode>_internal insn.
11794 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
11795 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
11796 of 3rd argument to int16x4_t.
11797 (vqdmlalh_lane_s16): Likewise.
11798 (vqdmlslh_lane_s16): Likewise.
11799 (vqdmull_high_lane_s16): Likewise.
11800 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
11801 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
11802 (vqdmlsl_lane_s16): Likewise.
11803 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
11804 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
11805 (vqdmlals_lane_s32): Likewise.
11806 (vqdmlsls_lane_s32): Likewise.
11807 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
11808 (vqdmulls_lane_s32): Likewise.
11809 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
11810 (vqdmlsl_lane_s32): Likewise.
11811 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
11812 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
11813 (vqrdmulhh_lane_s16): Likewise.
11814 (vqdmlsl_high_lane_s16): Likewise.
11815 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
11816 (vqdmlsl_high_lane_s32): Likewise.
11817 (vqrdmulhs_lane_s32): Likewise.
11818
11819 2014-06-20 Tom de Vries <tom@codesourcery.com>
11820
11821 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
11822 get_call_reg_set_usage.
11823
11824 2014-06-20 Tom de Vries <tom@codesourcery.com>
11825
11826 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
11827 it contains all call_used_regs.
11828
11829 2014-06-20 Tom de Vries <tom@codesourcery.com>
11830
11831 * final.c (collect_fn_hard_reg_usage): Add and use variable
11832 function_used_regs.
11833
11834 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11835
11836 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
11837 (set_init_priority, get_init_priority, set_fini_priority,
11838 get_fini_priority): New methods.
11839 * tree.c (init_priority_for_decl): Remove.
11840 (init_ttree): Do not initialize init priority.
11841 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
11842 (decl_priority_info): Remove.
11843 (decl_init_priority_insert): Rewrite.
11844 (decl_fini_priority_insert): Rewrite.
11845 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
11846 tree_priority_map_marked_p): Remove.
11847 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
11848 * lto-streamer-out.c (hash_tree): Do not hash priorities.
11849 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
11850 not output priorities.
11851 (pack_ts_function_decl_value_fields): Likewise.
11852 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11853 not input priorities.
11854 (unpack_ts_function_decl_value_fields): Likewise.
11855 * symtab.c (symbol_priority_map): Declare.
11856 (init_priority_hash): Declare.
11857 (symtab_unregister_node): Unregister from priority hash, too.
11858 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
11859 New methods.
11860 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
11861 (symbol_priority_info): New function.
11862 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
11863 New methods.
11864 * tree-core.h (tree_priority_map): Remove.
11865
11866 2014-06-20 Jakub Jelinek <jakub@redhat.com>
11867
11868 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
11869 0xff to uint64_t before shifting it up.
11870
11871 2014-06-20 Julian Brown <julian@codesourcery.com>
11872 Chung-Lin Tang <cltang@codesourcery.com>
11873
11874 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
11875 TARGET_THUMB1_ONLY. Add comments.
11876
11877 2014-06-19 Tom de Vries <tom@codesourcery.com>
11878
11879 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
11880 return type to void.
11881 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
11882
11883 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11884
11885 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
11886 as "move", from depends_on.
11887
11888 2014-06-19 Terry Guo <terry.guo@arm.com>
11889
11890 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
11891 stage.
11892
11893 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
11894
11895 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
11896 Remove cr5.
11897 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
11898
11899 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
11900
11901 PR target/61550
11902 * config/sh/sh.c (prepare_move_operands): Don't process TLS
11903 addresses here if reload in progress or completed.
11904
11905 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11906
11907 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
11908 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
11909 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
11910 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
11911 (mips_register_priority): New function that implements the target
11912 hook TARGET_REGISTER_PRIORITY.
11913 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
11914 (mips_lra_p): Likewise for TARGET_LRA_P.
11915 (TARGET_REGISTER_PRIORITY): Define macro.
11916 (TARGET_SPILL_CLASS): Likewise.
11917 (TARGET_LRA_P): Likewise.
11918 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
11919 classes.
11920 (REG_CLASS_NAMES): Likewise.
11921 (REG_CLASS_CONTENTS): Likewise.
11922 (BASE_REG_CLASS): Use M16_SP_REGS.
11923 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
11924 New set attribute to enable alternatives depending on the register
11925 allocator used.
11926 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
11927 (*lea64): Disable pattern for MIPS16.
11928 * config/mips/mips.opt (mlra): New option.
11929
11930 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11931
11932 * lra-constraints.c (base_to_reg): New function.
11933 (process_address): Use new function.
11934
11935 2014-06-18 Tom de Vries <tom@codesourcery.com>
11936
11937 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
11938 * config/aarch64/aarch64.c
11939 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
11940 (aarch64_emit_call_insn): New function.
11941 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
11942 of emit_call_insn.
11943 * config/aarch64/aarch64.md (define_expand "call_internal")
11944 (define_expand "call_value_internal", define_expand "sibcall_internal")
11945 (define_expand "sibcall_value_internal"): New.
11946 (define_expand "call", define_expand "call_value")
11947 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
11948 expand variant and aarch64_emit_call_insn.
11949
11950 2014-06-18 Radovan Obradovic <robradovic@mips.com>
11951 Tom de Vries <tom@codesourcery.com>
11952
11953 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
11954 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
11955 Redefine to true.
11956 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
11957 clobbers to CALL_INSN_FUNCTION_USAGE.
11958 (define_expand "sibcall_internal")
11959 (define_expand "sibcall_value_internal"): New.
11960 (define_expand "call", define_expand "call_value"): Add argument to
11961 arm_emit_call_insn.
11962 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
11963 (define_expand "sibcall_value"): Use sibcall_value_internal and
11964 arm_emit_call_insn.
11965
11966 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11967
11968 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
11969
11970 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11971
11972 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
11973 __udivmoddi4.
11974
11975 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11976
11977 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
11978 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
11979 annotations. Fix DWARF information.
11980
11981 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11982
11983 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
11984 __udivmoddi4, and fixups for negative operands.
11985
11986 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11987
11988 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
11989
11990 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11991
11992 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
11993 to __udivmoddi4.
11994
11995 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11996
11997 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
11998 manipulation.
11999
12000 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
12001
12002 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
12003 describing register usage on function entry and exit.
12004
12005 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
12006
12007 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
12008 (__aeabi_ldivmod): Fix whitespace.
12009
12010 2014-06-18 Andreas Schwab <schwab@suse.de>
12011
12012 * doc/md.texi (Standard Names): Use @itemx for grouped items.
12013 Remove blank line after @item.
12014
12015 2014-06-18 Richard Henderson <rth@redhat.com>
12016
12017 PR target/61545
12018 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
12019
12020 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
12021
12022 * config/arm/arm.c (neon_vector_mem_operand): Allow register
12023 POST_MODIFY for neon loads and stores.
12024 (arm_print_operand): Output post-index register for neon loads and
12025 stores.
12026
12027 2014-06-18 Richard Biener <rguenther@suse.de>
12028
12029 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
12030
12031 2014-06-18 Richard Biener <rguenther@suse.de>
12032
12033 * tree-pass.h (make_pass_dce_loop): Remove.
12034 * passes.def: Replace pass_dce_loop with pass_dce.
12035 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
12036 changed free niter estimates and reset the scev cache.
12037 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
12038 make_pass_dce_loop): Remove.
12039 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
12040 (fini_copy_prop): Return whether something changed. Always
12041 let substitute_and_fold perform DCE and free niter estimates
12042 and reset the scev cache if so.
12043 (execute_copy_prop): If sth changed schedule cleanup-cfg.
12044 (pass_data_copy_prop): Do not unconditionally schedule
12045 cleanup-cfg or update-ssa.
12046
12047 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
12048
12049 PR tree-optimization/61518
12050 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
12051 reduction var is used in reduction stmt or phi-function only.
12052
12053 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12054
12055 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
12056
12057 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
12058
12059 PR tree-optimization/61517
12060 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
12061 whose rhs's first tree is the source expression instead of the
12062 expression itself.
12063 (find_bswap_or_nop): Likewise.
12064 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
12065 gimple stmt whose rhs's first tree is the source. In the memory source
12066 case, move the stmt to be replaced close to one of the original load to
12067 avoid the problem of a store between the load and the stmt's original
12068 location.
12069 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
12070 signature.
12071
12072 2014-06-18 Andreas Schwab <schwab@suse.de>
12073
12074 PR rtl-optimization/54555
12075 * postreload.c (move2add_use_add2_insn): Substitute
12076 STRICT_LOW_PART only if it is cheaper.
12077
12078 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
12079
12080 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
12081 Do not use unspec as call operand. Use memory_operand instead of
12082 memory_nox32_operand and add "m" operand constraint. Disable
12083 pattern for TARGET_X32.
12084 (*sibcall_pop_memory): Ditto.
12085 (*sibcall_value_memory): Ditto.
12086 (*sibcall_value_pop_memory): Ditto.
12087 (sibcall peepholes): Merge SImode and DImode patterns using
12088 W mode iterator. Use memory_operand instead of memory_nox32_operand.
12089 Disable pattern for TARGET_X32. Check if eliminated register is
12090 really dead after call insn. Generate call RTX without unspec operand.
12091 (sibcall_value peepholes): Ditto.
12092 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
12093 instead of memory_nox32_operand. Check if eliminated register is
12094 really dead after call insn. Generate call RTX without unspec operand.
12095 (sibcall_value_pop peepholes): Ditto.
12096 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
12097
12098 2014-06-18 Terry Guo <terry.guo@arm.com>
12099
12100 PR target/61544
12101 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
12102 reach the head.
12103
12104 2014-06-18 Olivier Hainque <hainque@adacore.com>
12105
12106 * tree-core.h (tree_block): Add an "end_locus" field, allowing
12107 memorization of the end of block source location.
12108 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
12109 * gimplify.c (gimplify_bind_expr): Propagate the block start and
12110 end source location info we have on the block entry/exit code we
12111 generate.
12112
12113 2014-06-18 Richard Biener <rguenther@suse.de>
12114
12115 * common.opt (fssa-phiopt): New option.
12116 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
12117 but not with -Og.
12118 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
12119 * doc/invoke.texi (-fssa-phiopt): Document.
12120
12121 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12122
12123 * genattrtab.c (n_bypassed): New variable.
12124 (process_bypasses): Initialise n_bypassed.
12125 Count number of bypassed reservations.
12126 (make_automaton_attrs): Allocate space for bypassed reservations
12127 rather than number of bypasses.
12128
12129 2014-06-18 Richard Biener <rguenther@suse.de>
12130
12131 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
12132 we propagated anything.
12133 (substitute_and_fold_dom_walker::before_dom_children): Something
12134 changed if we propagated into PHI arguments.
12135 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
12136 we removed a stmt.
12137
12138 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
12139
12140 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
12141 vector case.
12142 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
12143 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
12144 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
12145 Introduces alternative way of loads group permutaions.
12146 (vect_transform_grouped_load): Try alternative way of permutations.
12147
12148 2014-06-18 Jakub Jelinek <jakub@redhat.com>
12149
12150 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
12151 changed in ORT_TARGET region, don't jump to do_outer.
12152 (struct gimplify_adjust_omp_clauses_data): New type.
12153 (gimplify_adjust_omp_clauses_1): Adjust for data being
12154 a struct gimplify_adjust_omp_clauses_data pointer instead
12155 of tree *. Pass pre_p as a new argument to
12156 lang_hooks.decls.omp_finish_clause hook.
12157 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
12158 splay_tree_foreach to pass both list_p and pre_p.
12159 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
12160 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
12161 gimplify_adjust_omp_clauses callers.
12162 * langhooks.c (lhd_omp_finish_clause): New function.
12163 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
12164 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
12165 * langhooks.h (struct lang_hooks_for_decls): Add a new
12166 gimple_seq * argument to omp_finish_clause hook.
12167 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
12168 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
12169 (scan_omp_parallel, lower_omp_for): When adding
12170 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
12171 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
12172 * tree-nested.c (convert_nonlocal_omp_clauses,
12173 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
12174 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
12175
12176 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
12177
12178 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
12179 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
12180
12181 2014-06-17 Xinliang David Li <davidxl@google.com>
12182
12183 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
12184 * passes.c (pass_init_dump_file): Do not set initialize
12185 flag to false unconditionally.
12186
12187 2014-06-17 Richard Biener <rguenther@suse.de>
12188
12189 * genopinit.c (main): Use vec<>::qsort method.
12190 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
12191 Likewise.
12192 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
12193
12194 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
12195
12196 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
12197 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
12198 (mips_move_to_gpr_cost): Remove ST_REGS case.
12199 (mips_move_from_gpr_cost): Likewise.
12200 (mips_register_move_cost): Likewise.
12201 (mips_secondary_reload_class): Likewise.
12202
12203 2014-06-17 Richard Biener <rguenther@suse.de>
12204
12205 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
12206 (pass_all_optimizations): Move 3rd copy-prop pass from after
12207 fre to before ifcombine/phiopt.
12208
12209 2014-06-17 Richard Biener <rguenther@suse.de>
12210
12211 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
12212 and allow all blocks to be forwarders.
12213
12214 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
12215
12216 PR target/61483
12217 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
12218 variable 'size'; calculate 'size' right in the front; use
12219 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
12220 pcum->aapcs_stack_words.
12221
12222 2014-06-17 Nick Clifton <nickc@redhat.com>
12223
12224 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
12225 (umulhi3, mulsidi3, umulsidi3): Likewise.
12226
12227 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
12228
12229 PR middle-end/61508
12230 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
12231 check for section name.
12232
12233 2014-06-17 Richard Biener <rguenther@suse.de>
12234
12235 * tree-ssa-propagate.c: Include domwalk.h.
12236 (substitute_and_fold): Outline main worker into a domwalker ...
12237 (substitute_and_fold_dom_walker::before_dom_children): ... here.
12238 Schedule stmts we can fully propagate for removal. Remove
12239 poor-mans DCE.
12240 (substitute_and_fold): Apply a dominator walk to perform
12241 substitution. Process stmts scheduled for removal here.
12242
12243 2014-06-17 Richard Biener <rguenther@suse.de>
12244
12245 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
12246 of PHI node moving.
12247
12248 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
12249
12250 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
12251 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
12252 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
12253 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
12254 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
12255 TARGET_HARD_FLOAT.
12256 (get_fpscr) : Likewise.
12257
12258 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
12259
12260 PR rtl-optimization/61325
12261 * lra-constraints.c (valid_address_p): Add forward declaration.
12262 (simplify_operand_subreg): Check address validity before and after
12263 alter_reg of memory subreg.
12264
12265 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
12266
12267 * config/i386/i386.c (decide_alg): Correctly handle
12268 maximum size of stringop algorithm.
12269
12270 2014-06-16 Yury Gribov <y.gribov@samsung.com>
12271
12272 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
12273
12274 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
12275
12276 PR rtl-optimization/61522
12277 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
12278
12279 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
12280
12281 Revert:
12282 * symtab.c (symtab_node::reset_section): New method.
12283 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12284 for localization.
12285 * cgraph.h (reset_section): Declare.
12286 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12287 do not consider comdat locals.
12288 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12289 for new symbol.
12290 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12291 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12292 reset sections of symbols dragged out of the comdats.
12293 (function_and_variable_visibility): Reset sections of
12294 localized symbols.
12295
12296 2014-06-16 Richard Biener <rguenther@suse.de>
12297
12298 PR tree-optimization/61482
12299 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
12300 [-INF(OVF), +INF(OVF)] range.
12301
12302 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
12303
12304 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
12305 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
12306 handling 32-bit multiplication.
12307
12308 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
12309
12310 PR middle-end/61430
12311 * lra-lives.c (process_bb_lives): Skip creating copy during
12312 insn scan when src/dest has constrained to same regno.
12313
12314 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
12315
12316 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
12317 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
12318
12319 2014-06-16 Yury Gribov <y.gribov@samsung.com>
12320
12321 * asan.c (check_func): New function.
12322 (maybe_create_ssa_name): Likewise.
12323 (build_check_stmt_with_calls): Likewise.
12324 (use_calls_p): Likewise.
12325 (report_error_func): Change interface.
12326 (build_check_stmt): Allow non-integer lengths; add support
12327 for new parameter.
12328 (asan_instrument): Likewise.
12329 (instrument_mem_region_access): Moved code to build_check_stmt.
12330 (instrument_derefs): Likewise.
12331 (instrument_strlen_call): Likewise.
12332 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
12333 * doc/invoke.texi: Describe new parameter.
12334 * params.def: Define new parameter.
12335 * params.h: Likewise.
12336 * sanitizer.def: Describe new builtins.
12337
12338 2014-06-16 Richard Biener <rguenther@suse.de>
12339
12340 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12341 Make all defs available at the end.
12342 (eliminate): If we remove a PHI node schedule cfg-cleanup.
12343
12344 2014-06-18 Jakub Jelinek <jakub@redhat.com>
12345
12346 PR plugins/45078
12347 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
12348
12349 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
12350
12351 PR bootstrap/61516
12352 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
12353 initialization. Replace remaining use of uid.
12354
12355 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
12356
12357 * c-family/c-common.c (handle_tls_model_attribute): Use
12358 set_decl_tls_model.
12359 * c-family/c-common.c (handle_tls_model_attribute): Use
12360 set_decl_tls_model.
12361 * cgraph.h (struct varpool_node): Add tls_model.
12362 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
12363 * tree.h (DECL_TLS_MODEL): Update.
12364 (DECL_THREAD_LOCAL_P): Check that variable is static.
12365 (decl_tls_model): Declare.
12366 (set_decl_tls_model): Declare.
12367 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
12368 set symbol prorperties.
12369 (get_emutls_init_templ_addr): Cleanup.
12370 (new_emutls_decl): Update.
12371 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
12372 (lto_input_varpool_node): Likewise.
12373 * lto-streamer-out.c (hash_tree): Likewise.
12374 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
12375 not stream DECL_TLS_MODEL.
12376 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
12377 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
12378
12379 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12380
12381 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
12382
12383 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12384
12385 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
12386 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
12387 lists.
12388 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
12389 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
12390 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
12391 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
12392 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
12393 (df_get_artificial_defs, df_get_artificial_uses)
12394 (df_single_def, df_single_use): Update accordingly.
12395 (df_refs_chain_dump): Take the first element in a linked list as
12396 parameter, rather than a pointer to an array of pointers.
12397 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
12398 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
12399 (df_chain_create_bb_process_use): Likewise.
12400 (df_md_bb_local_compute_process_def): Likewise.
12401 * fwprop.c (process_defs, process_uses): Likewise.
12402 (register_active_defs, update_uses): Likewise.
12403 (forward_propagate_asm): Update for new df_ref linking.
12404 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
12405 (df_null_ref_rec, df_null_mw_rec): Likewise.
12406 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
12407 explicitly.
12408 (df_scan_free_bb_info): Remove check for null artificial_defs.
12409 (df_install_ref_incremental): Adjust for new df_ref linking.
12410 Use a single-element insertion rather than a full sort.
12411 (df_ref_chain_delete_du_chain): Take the first element
12412 in a linked list as parameter, rather than a pointer to an array of
12413 pointers.
12414 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
12415 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
12416 (df_insn_info_delete): Remove check for null defs and call to
12417 df_scan_free_mws_vec.
12418 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
12419 null rather than df_null_*_rec.
12420 (df_insn_rescan_debug_internal): Likewise, and update null
12421 checks in the same way. Remove check for null defs.
12422 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
12423 Move a single element rather doing a full sort.
12424 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
12425 linking.
12426 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
12427 Initialize df_ref and df_mw_hardreg lists to null rather than
12428 df_null_*_rec.
12429 (df_ref_compare): Take df_refs as parameter, transferring the
12430 old interface to...
12431 (df_ref_ptr_compare): ...this new function.
12432 (df_sort_and_compress_refs): Update accordingly.
12433 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
12434 old interface to...
12435 (df_mw_ptr_compare): ...this new function.
12436 (df_sort_and_compress_mws): Update accordingly.
12437 (df_install_refs, df_install_mws): Return a linked list rather than
12438 an array of pointers.
12439 (df_refs_add_to_chains): Assert that old lists are empty rather
12440 than freeing them.
12441 (df_insn_refs_verify): Don't handle null defs speciailly.
12442 * web.c (union_match_dups): Update for new df_ref linking.
12443
12444 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12445
12446 * df.h (df_ref_create, df_ref_remove): Delete.
12447 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
12448 (df_ref_remove): Likewise.
12449
12450 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12451
12452 * df.h (df_single_def, df_single_use): New functions.
12453 * ira.c (find_moveable_pseudos): Use them.
12454
12455 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12456
12457 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
12458 * df-problems.c (df_note_bb_compute): Use it.
12459 * regstat.c (regstat_bb_compute_ri): Likewise.
12460
12461 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12462
12463 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
12464 * cse.c (cse_extended_basic_block): Use them.
12465 * dce.c (mark_artificial_use): Likewise.
12466 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
12467 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12468 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
12469 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
12470 (df_simulate_initialize_backwards): Likewise.
12471 (df_simulate_finalize_backwards): Likewise.
12472 (df_simulate_initialize_forwards): Likewise.
12473 (df_md_simulate_artificial_defs_at_top): Likewise.
12474 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12475 * regrename.c (init_rename_info): Likewise.
12476 * regstat.c (regstat_bb_compute_ri): Likewise.
12477 (regstat_bb_compute_calls_crossed): Likewise.
12478
12479 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12480
12481 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
12482 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
12483 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
12484 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
12485 * combine.c (create_log_links): Likewise.
12486 * compare-elim.c (find_flags_uses_in_insn): Likewise.
12487 (try_eliminate_compare): Likewise.
12488 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
12489 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
12490 (remove_reg_equal_equiv_notes_for_defs): Likewise.
12491 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
12492 (word_dce_process_block, dce_process_block): Likewise.
12493 * ddg.c (def_has_ccmode_p): Likewise.
12494 * df-core.c (df_bb_regno_first_def_find): Likewise.
12495 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
12496 * df-problems.c (df_rd_simulate_one_insn): Likewise.
12497 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12498 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
12499 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
12500 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
12501 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
12502 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
12503 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
12504 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
12505 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12506 * fwprop.c (local_ref_killed_between_p): Likewise.
12507 (all_uses_available_at, free_load_extend): Likewise.
12508 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
12509 * hw-doloop.c (scan_loop): Likewise.
12510 * ifcvt.c (dead_or_predicable): Likewise.
12511 * init-regs.c (initialize_uninitialized_regs): Likewise.
12512 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
12513 (process_bb_node_lives): Likewise.
12514 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
12515 (find_moveable_pseudos): Likewise.
12516 * loop-invariant.c (check_dependencies, record_uses): Likewise.
12517 * recog.c (peep2_find_free_register): Likewise.
12518 * ree.c (get_defs): Likewise.
12519 * regstat.c (regstat_bb_compute_ri): Likewise.
12520 (regstat_bb_compute_calls_crossed): Likewise.
12521 * sched-deps.c (find_inc, find_mem): Likewise.
12522 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
12523 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
12524 * shrink-wrap.c (requires_stack_frame_p): Likewise.
12525 (prepare_shrink_wrap): Likewise.
12526 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
12527 * web.c (union_defs, pass_web::execute): Likewise.
12528 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
12529 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
12530
12531 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
12532
12533 * lra-assign.c (assign_by_spills): Add code to assign vector regs
12534 to inheritance pseudos.
12535 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
12536
12537 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
12538
12539 PR target/61415
12540 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
12541 (BU_MISC_2): Rename to ...
12542 (BU_LDBL128_2): ... this.
12543 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
12544 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
12545 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
12546 RS6000_BTM_LDBL128.
12547 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
12548 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
12549 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
12550 (unpacktf_1): Likewise.
12551 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
12552 (__builtin_longdouble_dw1): Likewise.
12553 * doc/sourcebuild.texi (longdouble128): Document.
12554
12555 2014-06-13 Jeff Law <law@redhat.com>
12556
12557 PR rtl-optimization/61094
12558 PR rtl-optimization/61446
12559 * ree.c (combine_reaching_defs): Get the mode for the copy from
12560 the extension insn rather than the defining insn.
12561
12562 2014-06-13 Dehao Chen <dehao@google.com>
12563
12564 * dwarf2out.c (add_linkage_name): Emit more linkage name.
12565
12566 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
12567
12568 * doc/install.texi (--enable-linker-plugin-configure-flags)
12569 (--enable-linker-plugin-flags): Document new flags.
12570
12571 2014-06-13 Martin Jambor <mjambor@suse.cz>
12572
12573 PR ipa/61186
12574 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
12575 cache_token if returning early.
12576
12577 2014-06-13 Nick Clifton <nickc@redhat.com>
12578
12579 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
12580 requested alignment is active.
12581 (LABEL_ALIGN): Likewise.
12582 (LOOP_ALIGN): Likewise.
12583
12584 2014-06-13 Richard Biener <rguenther@suse.de>
12585
12586 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12587 Rewrite to propagate the VN result into all uses where
12588 possible and to remove stmts becoming dead because of that.
12589 (eliminate): Generalize stmt removal handling, remove in
12590 reverse dominator order to support proper debug stmt
12591 generation. Update stmts before removing stmts.
12592 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
12593
12594 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
12595
12596 PR tree-optimization/61375
12597 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
12598 symbolic number cannot be represented in an uint64_t.
12599 (find_bswap_or_nop_1): Likewise.
12600
12601 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12602
12603 * symtab.c (symtab_node::reset_section): New method.
12604 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12605 for localization.
12606 * cgraph.h (reset_section): Declare.
12607 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12608 do not consider comdat locals.
12609 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12610 for new symbol.
12611 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12612 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12613 reset sections of symbols dragged out of the comdats.
12614 (function_and_variable_visibility): Reset sections of
12615 localized symbols.
12616
12617 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12618
12619 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
12620 to use symtab and decl_binds_to_current_def_p
12621 * tree-vectorizer.c (increase_alignment): Increase alignment
12622 of alias target, too.
12623
12624 2014-06-12 Jakub Jelinek <jakub@redhat.com>
12625
12626 PR middle-end/61486
12627 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
12628 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
12629 if outer combined construct is distribute.
12630 (gimplify_omp_for): For OMP_DISTRIBUTE set
12631 gimplify_omp_ctxp->distribute.
12632 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
12633 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
12634 mapping into decl map.
12635
12636 2014-06-12 Jason Merrill <jason@redhat.com>
12637
12638 * common.opt (fabi-version): Change default to 0.
12639
12640 2014-06-12 Jason Merrill <jason@redhat.com>
12641
12642 * toplev.c (process_options): Reject -fabi-version=1.
12643
12644 2014-06-12 Jeff Law <law@redhat.com>
12645
12646 PR tree-optimization/61009
12647 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
12648 value when we stop processing a block due to problematic PHIs.
12649
12650 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
12651
12652 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
12653 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
12654 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
12655 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
12656 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
12657 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
12658 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
12659 are not in the spec.
12660
12661 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
12662
12663 PR target/59843
12664 * config/aarch64/aarch64-modes.def: Add V1DFmode.
12665 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
12666 Support V1DFmode.
12667
12668 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
12669
12670 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
12671
12672 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
12673
12674 PR target/61443
12675 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
12676 loading from address spaces.
12677
12678 2014-06-12 Martin Liska <mliska@suse.cz>
12679
12680 PR ipa/61462
12681 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
12682 statement is reachable.
12683
12684 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12685
12686 * symtab.c (section_hash): New hash.
12687 (symtab_unregister_node): Clear section before freeing.
12688 (hash_section_hash_entry): New haser.
12689 (eq_sections): New function.
12690 (symtab_node::set_section_for_node): New method.
12691 (set_section_1): Update.
12692 (symtab_node::set_section): Take string instead of tree as parameter.
12693 (symtab_resolve_alias): Update.
12694 * cgraph.h (section_hash_entry_d): New structure.
12695 (section_hash_entry): New typedef.
12696 (cgraph_node): Change comdat_group_ to x_comdat_group,
12697 change section_ to x_section and turn into section_hash_entry;
12698 update accestors; put set_section_for_node offline.
12699 * tree.c (decl_section_name): Turn into string.
12700 (set_decl_section_name): Change parameter to be string.
12701 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
12702 * sdbout.c (sdbout_one_type): Update.
12703 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
12704 * varasm.c (IN_NAMED_SECTION, get_named_section,
12705 resolve_unique_section, hot_function_section, get_named_text_section,
12706 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
12707 make_decl_rtl, default_unique_section): Update.
12708 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
12709 (c6x_elf_unique_section): Update.
12710 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
12711 * config/pa/pa.c (pa_function_section): Update.
12712 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
12713 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
12714 * config/arc/arc.c (arc_in_small_data_p): Update.
12715 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
12716 * config/mcore/mcore.c (mcore_unique_section): Update.
12717 * config/mips/mips.c (mips16_build_function_stub): Update.
12718 (mips16_build_call_stub): Update.
12719 (mips_function_rodata_section): Update.
12720 (mips_in_small_data_p): Update.
12721 * config/score/score.c (score_in_small_data_p): Update.
12722 * config/rx/rx.c (rx_in_small_data): Update.
12723 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
12724 (rs6000_xcoff_asm_named_section): Update.
12725 (rs6000_xcoff_unique_section): Update.
12726 * config/frv/frv.c (frv_string_begins_with): Update.
12727 (frv_in_small_data_p): Update.
12728 * config/v850/v850.c (v850_encode_data_area): Update.
12729 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
12730 (bfin_handle_l1_data_attribute): Update.
12731 (bfin_handle_l2_attribute): Update.
12732 * config/mep/mep.c (mep_unique_section): Update.
12733 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
12734 Update.
12735 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
12736 (h8300_handle_tiny_data_attribute): Update.
12737 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
12738 (m32r_in_small_data_p): Update.
12739 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
12740 * config/i386/i386.c (ix86_in_large_data_p): Update.
12741 * config/i386/winnt.c (i386_pe_unique_section): Update.
12742 * config/darwin.c (darwin_function_section): Update.
12743 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
12744 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12745 (new_emutls_decl): Update.
12746 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
12747 input_varpool_node): Update.
12748 (ead_string_cst): Turn to ...
12749 (read_string): ... this one.
12750 * dwarf2out.c (secname_for_decl): Update.
12751 * asan.c (asan_protect_global): Update.
12752
12753 2014-06-11 DJ Delorie <dj@redhat.com>
12754
12755 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
12756 cache lines.
12757 * config/rx/rx.c (rx_option_override): Likewise.
12758 (rx_align_for_label): Likewise.
12759
12760 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
12761
12762 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
12763
12764 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
12765 prototype.
12766
12767 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12768
12769 * common.md: New file.
12770 * doc/md.texi: Update description of generic, machine-independent
12771 constraints.
12772 * config/s390/constraints.md (e): Delete.
12773 * Makefile.in (md_file): Include common.md.
12774 * config/m32c/t-m32c (md_file): Likewise.
12775 * genpreds.c (general_mem): New array.
12776 (generic_constraint_letters): Remove constraints now defined by
12777 common.md.
12778 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12779 Allow the first character to be '<' or '>' as well.
12780 * genoutput.c (general_mem): New array.
12781 (indep_constraints): Remove constraints now defined by common.md.
12782 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12783 Remove special handling of 'm'.
12784 * ira-costs.c (record_reg_classes): Remove special handling of
12785 constraints now defined by common.md.
12786 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12787 * ira-lives.c (single_reg_class): Likewise.
12788 (ira_implicitly_set_insn_hard_regs): Likewise.
12789 * lra-constraints.c (reg_class_from_constraints): Likewise.
12790 (process_alt_operands, process_address, curr_insn_transform): Likewise.
12791 * postreload.c (reload_cse_simplify_operands): Likewise.
12792 * reload.c (push_secondary_reload, scratch_reload_class)
12793 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12794 * reload1.c (maybe_fix_stack_asms): Likewise.
12795 * targhooks.c (default_secondary_reload): Likewise.
12796 * stmt.c (parse_output_constraint): Likewise.
12797 * recog.c (preprocess_constraints): Likewise.
12798 (constrain_operands, peep2_find_free_register): Likewise.
12799 (asm_operand_ok): Likewise, but add a comment saying why 'o'
12800 must be handled specially.
12801
12802 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12803
12804 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
12805 * genpreds.c (have_const_dbl_constraints): Delete.
12806 (add_constraint): Don't set it.
12807 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
12808 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
12809 constraints using the lookup_constraint logic.
12810 * ira-lives.c (single_reg_class): Likewise.
12811 * ira.c (ira_setup_alts): Likewise.
12812 * lra-constraints.c (process_alt_operands): Likewise.
12813 * recog.c (asm_operand_ok, constrain_operands): Likewise.
12814 * reload.c (find_reloads): Likewise.
12815
12816 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12817
12818 * genpreds.c (const_int_start, const_int_end): New variables.
12819 (choose_enum_order): Output CONST_INT constraints before memory
12820 constraints.
12821 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
12822 Add CT_CONST_INT.
12823 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
12824 * ira.c (ira_setup_alts): Likewise.
12825 * lra-constraints.c (process_alt_operands): Likewise.
12826 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12827 * reload.c (find_reloads): Likewise.
12828
12829 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12830
12831 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
12832 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
12833 * recog.c (preprocess_constraints): Update accordingly.
12834
12835 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12836
12837 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
12838 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
12839 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
12840 * genpreds.c (print_type_tree): New function.
12841 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
12842 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
12843 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
12844 Write out enum constraint_type and get_constraint_type.
12845 * lra-constraints.c (satisfies_memory_constraint_p): Take a
12846 constraint_num rather than a constraint string.
12847 (satisfies_address_constraint_p): Likewise.
12848 (reg_class_from_constraints): Avoid old constraint macros.
12849 (process_alt_operands, process_address_1): Likewise.
12850 (curr_insn_transform): Likewise.
12851 * ira-costs.c (record_reg_classes): Likewise.
12852 (record_operand_costs): Likewise.
12853 * ira-lives.c (single_reg_class): Likewise.
12854 (ira_implicitly_set_insn_hard_regs): Likewise.
12855 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12856 * postreload.c (reload_cse_simplify_operands): Likewise.
12857 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12858 (constrain_operands, peep2_find_free_register): Likewise.
12859 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
12860 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12861 * reload1.c (maybe_fix_stack_asms): Likewise.
12862 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12863 * targhooks.c (default_secondary_reload): Likewise.
12864 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
12865 to EXTRA_CONSTRAINT_STR.
12866 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
12867
12868 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12869
12870 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
12871 (write_constraint_satisfied_p_array): ...this new function.
12872 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
12873 an array.
12874 (write_insn_preds_c): Update accordingly.
12875
12876 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12877
12878 * genpreds.c (write_lookup_constraint): Rename to...
12879 (write_lookup_constraint_1): ...this.
12880 (write_lookup_constraint_array): New function.
12881 (write_tm_preds_h): Define lookup_constraint as an inline function
12882 that uses write_lookup_constraint_array where possible.
12883 (write_insn_preds_c): Update for the changes above.
12884
12885 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12886
12887 * doc/md.texi (regclass_for_constraint): Rename to...
12888 (reg_class_for_constraint): ...this.
12889 * genpreds.c (num_constraints, enum_order, register_start)
12890 (register_end, satisfied_start, memory_start, memory_end)
12891 (address_start, address_end): New variables.
12892 (add_constraint): Count the number of constraints.
12893 (choose_enum_order): New function.
12894 (write_enum_constraint_num): Iterate over enum_order.
12895 (write_regclass_for_constraint): Rename to...
12896 (write_reg_class_for_constraint_1): ...this and update output
12897 accordingly.
12898 (write_constraint_satisfied_p): Rename to...
12899 (write_constraint_satisfied_p_1): ...this and update output
12900 accordingly. Do nothing if all extra constraints are register
12901 constraints.
12902 (write_insn_extra_memory_constraint): Delete.
12903 (write_insn_extra_address_constraint): Delete.
12904 (write_range_function): New function.
12905 (write_tm_preds_h): Define constraint_satisfied_p and
12906 reg_class_for_constraint as inline functions that do a range check
12907 before calling the out-of-line function. Use write_range_function
12908 to implement insn_extra_{register,memory,address}_constraint,
12909 the first of which is new.
12910 (write_insn_preds_c): Update after above changes to write_* functions.
12911 (main): Call choose_enum_order.
12912
12913 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
12914
12915 PR tree-optimization/61306
12916 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
12917 expression instead of its size.
12918 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
12919 false to prevent optimization when the result is unpredictable due to
12920 arithmetic right shift of signed type with highest byte is set.
12921 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
12922 (init_symbolic_number): Likewise.
12923 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
12924 when the result is unpredictable due to sign extension.
12925
12926 2014-06-11 Terry Guo <terry.guo@arm.com>
12927
12928 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
12929 (*thumb1_addsi3): Ditto.
12930 (*thumb_subdi3): Ditto.
12931 (thumb1_subsi3_insn): Ditto.
12932 (*thumb_mulsi3): Ditto.
12933 (*thumb_mulsi3_v6): Ditto.
12934 (*thumb1_andsi3_insn): Ditto.
12935 (thumb1_bicsi3): Ditto.
12936 (*thumb1_iorsi3_insn): Ditto.
12937 (*thumb1_xorsi3_insn): Ditto.
12938 (*thumb1_ashlsi3): Ditto.
12939 (*thumb1_ashrsi3): Ditto.
12940 (*thumb1_lshrsi3): Ditto.
12941 (*thumb1_rotrsi3): Ditto.
12942 (*thumb1_negdi2): Ditto.
12943 (*thumb1_negsi2): Ditto.
12944 (*thumb1_abssi2): Ditto.
12945 (*thumb1_neg_abssi2): Ditto.
12946 (*thumb1_one_cmplsi2): Ditto.
12947 (*thumb1_zero_extendhisi2): Ditto.
12948 (*thumb1_zero_extendqisi2): Ditto.
12949 (*thumb1_zero_extendqisi2_v6): Ditto.
12950 (thumb1_extendhisi2): Ditto.
12951 (thumb1_extendqisi2): Ditto.
12952 (*thumb1_movdi_insn): Ditto.
12953 (*thumb1_movsi_insn): Ditto.
12954 (*thumb1_movhi_insn): Ditto.
12955 (thumb_movhi_clobber): Ditto.
12956 (*thumb1_movqi_insn): Ditto.
12957 (*thumb1_movhf): Ditto.
12958 (*thumb1_movsf_insn): Ditto.
12959 (*thumb_movdf_insn): Ditto.
12960 (movmem12b): Ditto.
12961 (movmem8b): Ditto.
12962 (cbranchqi4): Ditto.
12963 (cbranchsi4_insn): Ditto.
12964 (cbranchsi4_scratch): Ditto.
12965 (*negated_cbranchsi4): Ditto.
12966 (*tbit_cbranch): Ditto.
12967 (*tlobits_cbranch): Ditto.
12968 (*tstsi3_cbranch): Ditto.
12969 (*cbranchne_decr1): Ditto.
12970 (*addsi3_cbranch): Ditto.
12971 (*addsi3_cbranch_scratch): Ditto.
12972 (*thumb_cmpdi_zero): Ditto.
12973 (cstoresi_eq0_thumb1): Ditto.
12974 (cstoresi_ne0_thumb1): Ditto.
12975 (*cstoresi_eq0_thumb1_insn): Ditto.
12976 (*cstoresi_ne0_thumb1_insn): Ditto.
12977 (cstoresi_nltu_thumb1): Ditto.
12978 (cstoresi_ltu_thumb1): Ditto.
12979 (thumb1_addsi3_addgeu): Ditto.
12980 (*thumb_jump): Ditto.
12981 (*call_reg_thumb1_v5): Ditto.
12982 (*call_reg_thumb1): Ditto.
12983 (*call_value_reg_thumb1_v5): Ditto.
12984 (*call_value_reg_thumb1): Ditto.
12985 (*call_insn): Ditto.
12986 (*call_value_insn): Ditto.
12987 (thumb1_casesi_internal_pic): Ditto.
12988 (thumb1_casesi_dispatch): Ditto.
12989 (*thumb1_indirect_jump): Ditto.
12990 (prologue_thumb1_interwork): Ditto.
12991 (*epilogue_insns): Ditto.
12992 (consttable_1): Ditto.
12993 (consttable_2): Ditto.
12994 (tablejump): Ditto.
12995 (*thumb1_tablejump): Ditto.
12996 (thumb_eh_return): Ditto.
12997 (define_peephole2): Two of them are thumb1 only and got moved into
12998 new file thumb1.md.
12999 (define_split): Six of them are thumb1 only and got moved into new
13000 file thumb1.md.
13001 * config/arm/thumb1.md: New file comprised of above thumb1 only
13002 patterns.
13003
13004 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13005
13006 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
13007 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
13008 dependencies.
13009 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
13010 (aarch64_crc_builtin_datum): New struct.
13011 (aarch64_crc_builtin_data): New.
13012 (aarch64_init_crc32_builtins): New function.
13013 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
13014 (aarch64_crc32_expand_builtin): New.
13015 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
13016 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
13017 __ARM_FEATURE_CRC32 when appropriate.
13018 (TARGET_CRC32): Define.
13019 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
13020 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
13021 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
13022 (aarch64_<crc_variant>): New pattern.
13023 * config/aarch64/arm_acle.h: New file.
13024 * config/aarch64/iterators.md (CRC): New int iterator.
13025 (crc_variant, crc_mode): New int attributes.
13026 * doc/aarch64-acle-intrinsics.texi: New file.
13027 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
13028 Include aarch64-acle-intrinsics.texi.
13029
13030 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
13031
13032 * tree-vect-data-refs.c (vect_grouped_store_supported): New
13033 check for stores group of length 3.
13034 (vect_permute_store_chain): New permutations for stores group of
13035 length 3.
13036 * tree-vect-stmts.c (vect_model_store_cost): Change cost
13037 of vec_perm_shuffle for the new permutations.
13038
13039 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
13040
13041 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
13042 table rewriting temporarily on targets not supporting ONE_ONLY.
13043
13044 2014-06-11 Richard Biener <rguenther@suse.de>
13045
13046 PR middle-end/61437
13047 Revert
13048 2014-06-04 Richard Biener <rguenther@suse.de>
13049
13050 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13051 TREE_PUBLIC and DECL_EXTERNAL decls.
13052
13053 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
13054
13055 * varasm.c (set_implicit_section): New function.
13056 (resolve_unique_section): Use it to set implicit section
13057 for aliases, too.
13058 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
13059 (default_function_section): Likewise.
13060 (decl_binds_to_current_def_p): Constify argument.
13061 * varasm.h (decl_binds_to_current_def_p): Update prototype.
13062 * asan.c (asan_protect_global): Use
13063 symtab_get_node (decl)->implicit_section.
13064 * symtab.c (dump_symtab_base): Dump implicit sections.
13065 (verify_symtab_base): Verify sanity of sectoins and comdats.
13066 (symtab_resolve_alias): Alias share the section of its target.
13067 (set_section_1): New function.
13068 (symtab_node::set_section): Move here, recurse to aliases.
13069 (verify_symtab): Check for duplicated symtab lists.
13070 * tree-core.h (implicit_section_name_p): Remove.
13071 * tree-vect-data-refs.c: Include varasm.h.
13072 (vect_can_force_dr_alignment_p): Fix conditional on when
13073 decl bints to current definition; use
13074 symtab_get_node (decl)->implicit_section.
13075 * cgraph.c (cgraph_make_node_local_1): Fix section set.
13076 * cgraph.h (struct symtab_node): Add implicit_section.
13077 (set_section): Rename to ...
13078 (set_section_for_node): ... this one.
13079 (set_section): Declare.
13080 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
13081 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
13082 input_overwrite_node, input_varpool_node): Stream implicit_section.
13083 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
13084 removal; it will fail in LTO.
13085
13086 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13087
13088 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
13089 Change second alternative type to f_mcr.
13090 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
13091 and 12th alternatives' types to f_mcr and f_mrc.
13092 (*movdi_aarch64): Same for 12th and 13th alternatives.
13093 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
13094 (aarch64_movtilow_tilow): Change type to fmov.
13095
13096 2014-06-10 Jiong Wang <jiong.wang@arm.com>
13097
13098 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
13099 (aarch64_save_or_restore_callee_save_registers): Fix layout.
13100
13101 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13102
13103 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
13104 New expander.
13105 (aarch64_sqrdmulh_lane<mode>): Likewise.
13106 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
13107 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
13108 (aarch64_sqdmulh_laneq<mode>): New expander.
13109 (aarch64_sqrdmulh_laneq<mode>): Likewise.
13110 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
13111 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
13112 (aarch64_sqdmulh_lane<mode>): New expander.
13113 (aarch64_sqrdmulh_lane<mode>): Likewise.
13114 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
13115 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
13116 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
13117 (aarch64_sqdmlal_laneq<mode>): Likewise.
13118 (aarch64_sqdmlsl_lane<mode>): Likewise.
13119 (aarch64_sqdmlsl_laneq<mode>): Likewise.
13120 (aarch64_sqdmlal2_lane<mode>): Likewise.
13121 (aarch64_sqdmlal2_laneq<mode>): Likewise.
13122 (aarch64_sqdmlsl2_lane<mode>): Likewise.
13123 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
13124 (aarch64_sqdmull_lane<mode>): Likewise.
13125 (aarch64_sqdmull_laneq<mode>): Likewise.
13126 (aarch64_sqdmull2_lane<mode>): Likewise.
13127 (aarch64_sqdmull2_laneq<mode>): Likewise.
13128
13129 2014-06-10 Richard Biener <rguenther@suse.de>
13130
13131 PR tree-optimization/61438
13132 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
13133 (eliminate_dom_walker::before_dom_children): Only try to inhibit
13134 insertion of IVs if running PRE.
13135 (eliminate): Adjust.
13136 (pass_pre::execute): Likewise.
13137 (pass_fre::execute): Likewise.
13138
13139 2014-06-10 Richard Biener <rguenther@suse.de>
13140
13141 PR middle-end/61456
13142 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
13143 Do not use the main variant for the type comparison.
13144 (ncr_compar): Likewise.
13145 (nonoverlapping_component_refs_p): Likewise.
13146
13147 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
13148
13149 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
13150 REG_CFA_RESTORE mode.
13151
13152 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
13153
13154 * config/i386/i386.c (expand_vec_perm_pblendv): New.
13155 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
13156 expand_vec_perm_pblendv.
13157
13158 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13159
13160 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
13161 available.
13162 Simplify description of __crc32d and __crc32cd intrinsics.
13163 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
13164 availability.
13165
13166 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
13167
13168 PR lto/61334
13169 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
13170 * config.in: Regenerate.
13171 * configure: Likewise.
13172
13173 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
13174
13175 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
13176 and public vars.
13177 (intersect_static_var_sets): Remove.
13178 (propagate): Do not prune local statics.
13179
13180 2014-06-10 Jakub Jelinek <jakub@redhat.com>
13181
13182 PR fortran/60928
13183 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
13184 Set lastprivate_firstprivate even if omp_private_outer_ref
13185 langhook returns true.
13186 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
13187 langhook, call unshare_expr on new_var and call
13188 build_outer_var_ref to get the last argument.
13189
13190 2014-06-10 Marek Polacek <polacek@redhat.com>
13191
13192 PR c/60988
13193 * doc/extend.texi: Add cindex for transparent_union.
13194
13195 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
13196
13197 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
13198 init_symbolic_number ().
13199
13200 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
13201
13202 PR middle-end/61141
13203 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
13204 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
13205 (verify_rtl_sharing): Likewise.
13206
13207 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
13208
13209 PR c++/54442
13210 * tree.c (build_qualified_type): Use a canonical type for
13211 TYPE_CANONICAL.
13212
13213 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13214
13215 * config/arm/arm-modes.def: Remove XFmode.
13216
13217 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
13218
13219 PR target/61062
13220 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
13221 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
13222 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
13223 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
13224 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
13225 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
13226 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
13227 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
13228 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
13229
13230 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
13231
13232 * tree-core.h (tree_decl_with_vis): Remove section_name.
13233
13234 2014-06-09 Kito Cheng <kito@0xlab.org>
13235
13236 * ira.c (ira): Don't call init_caller_save if LRA enabled
13237 since LRA use its own infrastructure to handle that.
13238
13239 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13240
13241 * symtab.c (dump_symtab_base): Update dumping.
13242 (symtab_make_decl_local): Clear only DECL_COMDAT.
13243 * tree-vect-data-refs.c (Check that variable is static before
13244 tampering with sections.
13245 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
13246 (cgraph_create_virtual_clone): Likewise.
13247 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
13248 (decl_section_name, set_decl_section_name): New accessors.
13249 (find_decls_types_r): Do not walk section name
13250 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
13251 (decl_comdat_group, decl_comdat_group_id): Constify.
13252 (decl_section_name, set_decl_section_name): Update.
13253 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
13254 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
13255 (cgraph_make_node_local_1): Clear section and comdat group.
13256 * cgraph.h (set_comdat_group): Sanity check.
13257 (get_section, set_section): New.
13258 * ipa-comdats.c (ipa_comdats): Use get_section.
13259 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
13260 * lto-streamer-out.c: Do not follow section names.
13261 * c-family/c-common.c (handle_section_attribute): Update.
13262 * lto-cgraph.c (lto_output_node): Output section.
13263 (lto_output_varpool_node): Likewise.
13264 (read_comdat_group): Rename to ...
13265 (read_identifier): ... this one.
13266 (read_string_cst): New function.
13267 (input_node, input_varpool_node): Input section names.
13268 * tree-emutls.c (get_emutls_init_templ_addr): Update.
13269 (new_emutls_decl): Update.
13270 (secname_for_decl): Check section names only of static vars.
13271 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
13272 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
13273 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
13274 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
13275 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
13276 * config/mcore/mcore.c (mcore_unique_section): Likewise.
13277 * config/mips/mips.c (mips16_build_function_stub): Likewise.
13278 * config/v850/v850.c (v850_insert_attributes): Likewise.
13279 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
13280 Likewise.
13281 (h8300_handle_tiny_data_attribute): Likewise.
13282 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
13283 (bfin_handle_l2_attribute): Likewise.
13284
13285 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13286
13287 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
13288 remove static initializer.
13289
13290 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13291
13292 * varasm.c (use_blocks_for_decl_p): Check symbol table
13293 instead of alias attribute.
13294 (place_block_symbol): Recurse on aliases.
13295
13296 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13297
13298 * ipa-visibility.c: Include varasm.h
13299 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
13300
13301 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13302
13303 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
13304 outputting aliases.
13305
13306 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
13307
13308 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
13309 from test_insn into GGC space escape via SET_SRC.
13310
13311 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
13312
13313 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
13314 call statement, if any.
13315 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
13316 statements, if any. Tidy up.
13317
13318 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
13319
13320 PR target/61431
13321 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
13322 iterators, VSX_D that handles 64-bit types, and VSX_LE that
13323 handles swapping the two 64-bit double words on little endian
13324 systems. Include V1TImode and optionally TImode in VSX_LE so that
13325 these types are properly swapped. Change all of the insns and
13326 splits that do the 64-bit swaps to use VSX_LE.
13327 (vsx_le_perm_load_<mode>): Likewise.
13328 (vsx_le_perm_store_<mode>): Likewise.
13329 (splitters for little endian memory operations): Likewise.
13330 (vsx_xxpermdi2_le_<mode>): Likewise.
13331 (vsx_lxvd2x2_le_<mode>): Likewise.
13332 (vsx_stxvd2x2_le_<mode>): Likewise.
13333
13334 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
13335
13336 PR target/61423
13337 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
13338 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
13339 and corresponding splitters. Zero extend general register
13340 or memory input operand to XMM temporary. Enable for
13341 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
13342 (floatunssi<mode>2): Update expander predicate.
13343
13344 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
13345
13346 PR rtl-optimization/61325
13347 * lra-constraints.c (process_address_1): Check scale equal to one
13348 to prevent transformation: base + scale * index => base + new_reg.
13349
13350 2014-06-06 Richard Biener <rguenther@suse.de>
13351
13352 PR tree-optimization/59299
13353 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
13354 a def operand.
13355 (nearest_common_dominator_of_uses): Likewise.
13356 (statement_sink_location): Adjust. Support sinking loads.
13357
13358 2014-06-06 Martin Jambor <mjambor@suse.cz>
13359
13360 * ipa-prop.c (get_place_in_agg_contents_list): New function.
13361 (build_agg_jump_func_from_list): Likewise.
13362 (determine_known_aggregate_parts): Renamed to
13363 determine_locally_known_aggregate_parts. Moved some functionality
13364 to the two functions above, removed bound checks.
13365
13366 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
13367
13368 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
13369 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
13370 (aarch64_progress_pointer): Likewise.
13371 (aarch64_copy_one_part_and_move_pointers): Likewise.
13372 (aarch64_expand_movmen): Likewise.
13373 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
13374 * config/aarch64/aarch64.md (movmem<mode>): New.
13375
13376 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
13377
13378 * targhooks.c (default_add_stmt_cost): Call target specific
13379 hook instead of default one.
13380
13381 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
13382
13383 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
13384 endianness instead of host endianness.
13385 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
13386 comments.
13387
13388 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13389
13390 PR debug/53927
13391 * function.c (instantiate_decls): Process the saved static chain.
13392 (expand_function_start): If not optimizing, save the static chain
13393 onto the stack.
13394 * tree-nested.c (convert_all_function_calls): Always create the static
13395 chain for nested functions if not optimizing.
13396
13397 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13398
13399 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
13400
13401 2014-06-06 Richard Biener <rguenther@suse.de>
13402
13403 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
13404 (construct_init_block): Likewise.
13405 (construct_exit_block): Likewise.
13406 (pass_expand::execute): Likewise.
13407 * graphite.c (graphite_transforms): Replace check for current_loops
13408 with a check for > 1 loops.
13409 (pass_graphite_transforms::execute): Adjust.
13410 * ipa-split.c (split_function): Remove check for current_loops.
13411 * omp-low.c (expand_parallel_call): Likewise.
13412 (expand_omp_for_init_counts): Likewise.
13413 (extract_omp_for_update_vars): Likewise.
13414 (expand_omp_for_generic): Likewise.
13415 (expand_omp_sections): Likewise.
13416 (expand_omp_target): Likewise.
13417 * tracer.c (tail_duplicate): Likewise.
13418 (pass_tracer::execute): Likewise.
13419 * trans-mem.c (expand_transaction): Likewise.
13420 * tree-complex.c (expand_complex_div_wide): Likewise.
13421 * tree-eh.c (lower_resx): Likewise.
13422 (cleanup_empty_eh_merge_phis): Likewise.
13423 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
13424 current_loops with a check for > 1 loops.
13425 (pass_predcom::execute): Adjust.
13426 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
13427 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
13428 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
13429 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
13430 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
13431 * tree-switch-conversion.c (process_switch): Likewise.
13432 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
13433 * tree-vrp.c (vrp_visit_phi_node): Likewise.
13434 (execute_vrp): Likewise.
13435 * ubsan.c (ubsan_expand_null_ifn): Likewise.
13436
13437 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13438
13439 * rtl.h (insn_location): Declare.
13440 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
13441 with UNKNOWN_LOCATION.
13442 * emit-rtl.c (insn_location): New function.
13443 * final.c (notice_source_line): Check that the instruction has a
13444 location before retrieving it and use insn_location.
13445 * modulo-sched.c (loop_single_full_bb_p): Likewise.
13446 * print-rtl.c (print_rtx): Likewise.
13447
13448 2014-06-06 Richard Biener <rguenther@suse.de>
13449
13450 * passes.def: Move 2nd VRP pass before phi-only-cprop.
13451
13452 2014-06-06 Christian Bruel <christian.bruel@st.com>
13453
13454 PR tree-optimization/43934
13455 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
13456 cost.
13457
13458 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
13459
13460 * ira-lives.c (single_reg_class): Add missing break. Explicitly
13461 return NO_REGS for extra address and memory constraints. Handle
13462 operands that match (or are equivalent to something that matches)
13463 extra constant constraints. Ignore other non-register operands.
13464
13465 2014-06-06 Alan Modra <amodra@gmail.com>
13466
13467 PR target/61300
13468 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
13469 * doc/tm.texi: Regenerate.
13470 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
13471 Use throughout in place of REG_PARM_STACK_SPACE.
13472 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
13473 "incoming" param. Pass to rs6000_function_parms_need_stack.
13474 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
13475 prototype_p when incoming. Use function decl when incoming
13476 to handle K&R style functions.
13477 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
13478 (INCOMING_REG_PARM_STACK_SPACE): Define.
13479
13480 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13481
13482 PR target/52472
13483 * cfgexpand.c (expand_debug_expr): Use address space of nested
13484 TREE_TYPE for ADDR_EXPR and MEM_REF.
13485
13486 2014-06-05 Jeff Law <law@redhat.com>
13487
13488 PR tree-optimization/61289
13489 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
13490 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
13491 looking for those which match LHS. All callers changed.
13492 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
13493 parameters and code which manipulated them. All callers changed.
13494 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
13495 and DST_MAP parameters. Simplify invalidation code by just calling
13496 invalidate_equivalences. All callers changed.
13497 (thread_across_edge): Simplify now that we don't need to maintain
13498 the map of equivalences to invalidate.
13499
13500 2014-06-05 Kai Tietz <ktietz@redhat.com>
13501 Richard Henderson <rth@redhat.com>
13502
13503 PR target/46219
13504 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
13505 checking for !TARGET_X32.
13506 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
13507 (sibcall_intern): New define_insn, plus required peepholes.
13508 (sibcall_pop_intern): Likewise.
13509 (sibcall_value_intern): Likewise.
13510 (sibcall_value_pop_intern): Likewise.
13511
13512 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
13513
13514 * tree-inline.c (tree_function_versioning): Check DF info existence
13515 before accessing it.
13516
13517 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13518
13519 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
13520 frame_size.
13521 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
13522 aarch64_frame hard_fp_offset and frame_size.
13523 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
13524 frame_size; remove original_frame_size.
13525 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
13526 (aarch64_initial_elimination_offset): Remove frame_size and
13527 offset. Use aarch64_frame frame_size.
13528
13529 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13530 Jiong Wang <jiong.wang@arm.com>
13531 Renlin <renlin.li@arm.com>
13532
13533 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
13534 initialization of R30 offset. Update offset. Iterate core
13535 regisers upto X30. Remove X29, X30 specific code.
13536
13537 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13538 Jiong Wang <jiong.wang@arm.com>
13539
13540 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
13541 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
13542 (aarch64_register_saved_on_entry): Adjust test.
13543
13544 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13545
13546 * config/aarch64/aarch64.h (machine_function): Move
13547 saved_varargs_size from here...
13548 (aarch64_frame): ... to here.
13549
13550 * config/aarch64/aarch64.c (aarch64_expand_prologue)
13551 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
13552 (aarch64_initial_elimination_offset)
13553 (aarch64_setup_incoming_varargs): Adjust location of
13554 saved_varargs_size.
13555
13556 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13557
13558 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
13559 layout comment.
13560
13561 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
13562 Prachi Godbole <Prachi.Godbole@imgtec.com>
13563
13564 * config/mips/mips-cpus.def: Add definition for p5600. Updated
13565 mips32r5 entry to use PROCESSOR_P5600.
13566 * config/mips/mips-tables.opt: Regenerate.
13567 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
13568 * config/mips/mips.c (mips_fmadd_bypass): New function.
13569 (mips_rtx_cost_data): Add costs for p5600.
13570 (mips_issue_rate): Add support for p5600.
13571 (mips_multipass_dfa_lookahead): Likewise.
13572 * config/mips/mips.h (TUNE_P5600): New define.
13573 (TUNE_MACC_CHAINS): Add TUNE_P5600.
13574 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
13575 * config/mips/mips.md: Include p5600.md.
13576 (processor): Add p5600.
13577 * config/mips/p5600.md: New file.
13578
13579 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
13580
13581 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
13582 * config/i386/predicates.md (palignr_operand): New.
13583 Indicates if permutation is suitable for palignr instruction.
13584
13585 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
13586
13587 PR tree-optimization/61319
13588 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
13589 stmt belongs to loop.
13590
13591 2014-06-05 Richard Biener <rguenther@suse.de>
13592
13593 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
13594 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
13595 (lookup_tmp_var): Adjust.
13596 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
13597
13598 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13599
13600 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
13601
13602 2014-06-05 Marek Polacek <polacek@redhat.com>
13603
13604 PR c/49706
13605 * doc/invoke.texi: Document -Wlogical-not-parentheses.
13606
13607 2014-06-04 Tom de Vries <tom@codesourcery.com>
13608
13609 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
13610 CONST_INT.
13611
13612 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
13613
13614 PR tree-optimization/61385
13615 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
13616
13617 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
13618
13619 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
13620 changed to use fatal_error.
13621 (main): Ensure lto_wrapper_cleanup is run atexit.
13622
13623 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13624
13625 * lra-constraints.c (valid_address_p): Move earlier in file.
13626 (address_eliminator): New structure.
13627 (satisfies_memory_constraint_p): New function.
13628 (satisfies_address_constraint_p): Likewise.
13629 (process_alt_operands, process_address, curr_insn_transform): Use them.
13630
13631 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13632
13633 * lra-int.h (lra_static_insn_data): Make operand_alternative a
13634 const pointer.
13635 (target_lra_int, default_target_lra_int, this_target_lra_int)
13636 (op_alt_data): Delete.
13637 * lra.h (lra_init): Delete.
13638 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
13639 (init_insn_code_data_once): Remove op_alt_data handling.
13640 (finish_insn_code_data_once): Likewise.
13641 (init_op_alt_data): Delete.
13642 (get_static_insn_data): Initialize operand_alternative to null.
13643 (free_insn_recog_data): Cast operand_alternative before freeing it.
13644 (setup_operand_alternative): Take the operand_alternative as
13645 parameter and assume it isn't already cached in the static
13646 insn data.
13647 (lra_set_insn_recog_data): Update accordingly.
13648 (lra_init): Delete.
13649 * ira.c (ira_init): Don't call lra_init.
13650 * target-globals.h (this_target_lra_int): Declare.
13651 (target_globals): Remove lra_int.
13652 (restore_target_globals): Update accordingly.
13653 * target-globals.c: Don't include lra-int.h.
13654 (default_target_globals, save_target_globals): Remove lra_int.
13655
13656 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13657
13658 * recog.h (operand_alternative): Convert reg_class, reject,
13659 matched and matches into bitfields.
13660 (preprocess_constraints): New overload.
13661 (preprocess_insn_constraints): New function.
13662 (preprocess_constraints): Take the insn as parameter.
13663 (recog_op_alt): Change into a pointer.
13664 (target_recog): Add x_op_alt.
13665 * recog.c (asm_op_alt): New variable.
13666 (recog_op_alt): Change into a pointer.
13667 (preprocess_constraints): New overload, replacing the old function
13668 definition with one that doesn't use global state.
13669 (preprocess_insn_constraints): New function.
13670 (preprocess_constraints): Use them. Take the insn as parameter.
13671 Use asm_op_alt for asms.
13672 (recog_init): Free existing x_op_alt entries.
13673 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
13674 pointer const.
13675 (make_early_clobber_and_input_conflicts): Likewise.
13676 (process_bb_node_lives): Pass the insn to process_constraints.
13677 * reg-stack.c (check_asm_stack_operands): Likewise.
13678 (subst_asm_stack_regs): Likewise.
13679 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13680 * regrename.c (build_def_use): Likewise.
13681 * sched-deps.c (sched_analyze_insn): Likewise.
13682 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
13683 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13684 (note_invalid_constants): Likewise.
13685 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13686 (ix86_legitimate_combined_insn): Make operand_alternative pointer
13687 const.
13688
13689 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13690
13691 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
13692 * ira-lives.c (check_and_make_def_conflict): Check for disabled
13693 alternatives.
13694 (make_early_clobber_and_input_conflicts): Likewise.
13695 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13696
13697 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13698
13699 * recog.h (alternative_class): New function.
13700 (which_op_alt): Return a const recog_op_alt.
13701 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
13702 (subst_asm_stack_regs): Likewise.
13703 * config/arm/arm.c (note_invalid_constants): Likewise.
13704 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
13705 the operand_alternative; use alternative class instead.
13706 * sel-sched.c (get_reg_class): Likewise.
13707 * regrename.c (build_def_use): Likewise.
13708 (hide_operands, restore_operands, record_out_operands): Update type
13709 accordingly.
13710
13711 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13712
13713 * recog.h (recog_op_alt): Convert to a flat array.
13714 (which_op_alt): New function.
13715 * recog.c (recog_op_alt): Convert to a flat array.
13716 (preprocess_constraints): Update accordingly, grouping all
13717 operands of the same alternative together, rather than the
13718 other way around.
13719 * ira-lives.c (check_and_make_def_conflict): Likewise.
13720 (make_early_clobber_and_input_conflicts): Likewise.
13721 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13722 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
13723 (subst_asm_stack_regs): Likewise.
13724 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13725 * regrename.c (hide_operands, record_out_operands): Likewise.
13726 (build_def_use): Likewise.
13727 * sel-sched.c (get_reg_class): Likewise.
13728 * config/arm/arm.c (note_invalid_constants): Likewise.
13729
13730 2014-06-04 Jason Merrill <jason@redhat.com>
13731
13732 PR c++/51253
13733 PR c++/61382
13734 * gimplify.c (gimplify_arg): Non-static.
13735 * gimplify.h: Declare it.
13736
13737 2014-06-04 Richard Biener <rguenther@suse.de>
13738
13739 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13740 TREE_PUBLIC and DECL_EXTERNAL decls.
13741
13742 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
13743
13744 * regcprop.c (copyprop_hardreg_forward_1): Account for
13745 HARD_REGNO_CALL_PART_CLOBBERED.
13746
13747 2014-06-04 Richard Biener <rguenther@suse.de>
13748
13749 * configure.ac: Check whether the underlying type of int64_t
13750 is long or long long.
13751 * configure: Regenerate.
13752 * config.in: Likewise.
13753 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
13754 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13755
13756 2014-06-04 Richard Biener <rguenther@suse.de>
13757
13758 PR tree-optimization/60098
13759 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
13760 we hit a kill.
13761 (dse_optimize_stmt): Simplify, now that we found a kill
13762 earlier.
13763
13764 2014-06-04 Richard Biener <rguenther@suse.de>
13765
13766 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
13767 of accesses with non-invariant address.
13768
13769 2014-06-04 Martin Liska <mliska@suse.cz>
13770
13771 * cgraph.h (cgraph_make_wrapper): New function introduced.
13772 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
13773 * ipa-inline.h (inline_analyze_function): The function is global.
13774 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
13775
13776 2014-06-04 Martin Liska <mliska@suse.cz>
13777
13778 * tree.h (private_lookup_attribute_starting): New function.
13779 (lookup_attribute_starting): Likewise.
13780 * tree.c (private_lookup_attribute_starting): Likewise.
13781
13782 2014-06-04 Martin Liska <mliska@suse.cz>
13783
13784 * cgraph.h (expand_thunk): New argument added.
13785 (address_taken_from_non_vtable_p): New global function.
13786 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
13787 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
13788 * cgraphunit.c (analyze_function): Likewise.
13789 (assemble_thunks_and_aliases): Argument added to call.
13790 (expand_thunk): New argument forces to produce GIMPLE thunk.
13791
13792 2014-06-04 Martin Liska <mliska@suse.cz>
13793
13794 * coverage.h (coverage_compute_cfg_checksum): Argument added.
13795 * coverage.c (coverage_compute_cfg_checksum): Likewise.
13796 * profile.c (branch_prob): Likewise.
13797
13798 2014-06-04 Martin Jambor <mjambor@suse.cz>
13799
13800 PR ipa/61340
13801 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
13802 handler for switch on an ipa_ref_use enum.
13803 * ipa-reference.c (analyze_function): Likewise.
13804
13805 2014-06-04 Kai Tietz <ktietz@redhat.com>
13806
13807 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
13808 from old call-instruction.
13809
13810 2014-06-04 Bin Cheng <bin.cheng@arm.com>
13811
13812 * config/aarch64/aarch64.c (aarch64_classify_address)
13813 (aarch64_legitimize_reload_address): Support full addressing modes
13814 for vector modes.
13815 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
13816 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
13817
13818 2014-06-03 Andrew Pinski <apinski@cavium.com>
13819
13820 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
13821 for OP0.
13822
13823 2014-06-03 Andrew Pinski <apinski@cavium.com>
13824
13825 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
13826 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
13827
13828 2014-06-03 Kai Tietz <ktietz@redhat.com>
13829
13830 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
13831 for 64-bit ms-abi.
13832
13833 2014-06-03 Dehao Chen <dehao@google.com>
13834
13835 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
13836 the same loop.
13837
13838 2014-06-03 Marek Polacek <polacek@redhat.com>
13839
13840 PR c/60439
13841 * doc/invoke.texi: Document -Wswitch-bool.
13842 * function.c (stack_protect_epilogue): Cast controlling expression of
13843 the switch to int.
13844 * gengtype.c (walk_type): Generate switch expression with its
13845 controlling expression cast to int.
13846
13847 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
13848
13849 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
13850 and attiny841.
13851 * config/avr/avr-tables.opt: Regenerate.
13852 * config/avr/t-multilib: Regenerate.
13853 * doc/avr-mmcu.texi: Regenerate.
13854
13855 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
13856 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13857
13858 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
13859 (ata6617c, ata664251): Add new avr35 devices.
13860 (ata6612c): Add new avr4 device.
13861 (ata6613c, ata6614q): Add new avr5 devices.
13862 * config/avr/avr-tables.opt: Regenerate.
13863 * config/avr/t-multilib: Regenerate.
13864 * doc/avr-mmcu.texi: Regenerate.
13865
13866 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13867
13868 * gcc/config/aarch64/aarch64-builtins.c
13869 (aarch64_types_binop_ssu_qualifiers): New static data.
13870 (TYPES_BINOP_SSU): Define.
13871 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
13872 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
13873 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
13874 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
13875 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
13876 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
13877 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
13878 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
13879 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
13880 suffix to builtin function name, remove cast.
13881 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
13882 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
13883 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
13884
13885 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13886
13887 * gcc/config/aarch64/aarch64-builtins.c
13888 (aarch64_types_binop_uus_qualifiers,
13889 aarch64_types_shift_to_unsigned_qualifiers,
13890 aarch64_types_unsigned_shiftacc_qualifiers): Define.
13891 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
13892 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
13893 sqshlu_n, uqshl_n): Update qualifiers.
13894 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
13895 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
13896 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
13897 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
13898 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
13899 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
13900 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
13901 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
13902 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
13903 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
13904 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
13905 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
13906 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
13907 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
13908 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
13909 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
13910 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
13911 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
13912 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
13913 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
13914 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
13915 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
13916 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
13917 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
13918 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
13919 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
13920 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
13921
13922 2014-06-03 Teresa Johnson <tejohnson@google.com>
13923
13924 * tree-sra.c (modify_function): Record caller nodes after rebuild.
13925
13926 2014-06-02 Jason Merrill <jason@redhat.com>
13927
13928 PR c++/61020
13929 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
13930
13931 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13932
13933 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
13934 location == 0.
13935
13936 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13937
13938 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
13939 New pattern.
13940 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
13941 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
13942 * config/aarch64/iterators.md (REVERSE): New iterator.
13943 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
13944 (rev_op): New int_attribute.
13945 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
13946 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
13947 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
13948 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
13949 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
13950 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
13951 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
13952 Replace temporary __asm__ with __builtin_shuffle.
13953
13954 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13955
13956 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
13957 mips64r5.
13958 * config/mips/mips-tables.opt: Regenerate.
13959 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
13960 to use mips_isa_rev rather than ISA_MIPS32R2.
13961 * config/mips/mips.h (ISA_MIPS32R3): New define.
13962 (ISA_MIPS32R5): New define.
13963 (ISA_MIPS64R3): New define.
13964 (ISA_MIPS64R5): New define.
13965 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
13966 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
13967 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
13968 and mips64r5.
13969 (MIPS_ISA_SYNCI_SPEC): Likewise.
13970 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
13971 (LINK_SPEC): Added mips32r3 and mips32r5.
13972 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
13973 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
13974 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
13975 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
13976 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
13977 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
13978 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
13979
13980 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13981
13982 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
13983 options.
13984 * config/mips/mips.opt (mxpa): New option.
13985 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
13986 assembler.
13987
13988 2014-06-03 Martin Jambor <mjambor@suse.cz>
13989
13990 PR ipa/61160
13991 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
13992 thunks.
13993
13994 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
13995
13996 PR tree-optimization/61328
13997 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
13998 initialization from find_bswap_or_nop_1.
13999 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
14000 in source_expr2 before using the size value the function sets. Also
14001 make use of init_symbolic_number () in both the old place and
14002 find_bswap_or_nop_load () to avoid reading uninitialized memory when
14003 doing recursion in the GIMPLE_BINARY_RHS case.
14004
14005 2014-06-03 Richard Biener <rguenther@suse.de>
14006
14007 PR tree-optimization/61383
14008 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
14009 stmts can't trap.
14010
14011 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
14012
14013 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
14014 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
14015 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
14016 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
14017 in this file.
14018 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
14019 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
14020 * system.h: ...here and make it unconditional.
14021 * target.def (conditional_register_usage): Mention
14022 define_register_constraint instead of old-style constraint macros.
14023 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
14024 * doc/tm.texi: Regenerate.
14025 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
14026 protected by !USE_MD_CONSTRAINTS.
14027 * config/frv/frv.md: Remove quote from old version of documentation.
14028 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
14029 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
14030 CONST_DOUBLE_OK_FOR_LETTER.
14031 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
14032
14033 2014-06-02 Andrew Pinski <apinski@cavium.com>
14034
14035 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
14036 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
14037 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
14038 file whose name depends on -mabi= and -mbig-endian.
14039 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
14040 Handle LP64 better and handle ilp32 too.
14041 (MULTILIB_OPTIONS): Delete.
14042 (MULTILIB_DIRNAMES): Delete.
14043
14044 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
14045
14046 * expr.h: Remove prototypes of functions defined in builtins.c.
14047 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
14048 Remove prototypes of functions defined in builtins.c.
14049 * builtins.h: Update prototype list to include all exported functions.
14050 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
14051 no_c99_libc_has_function): Move to targhooks.c
14052 (build_string_literal, build_call_expr_loc_array,
14053 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
14054 to tree.c.
14055 (expand_builtin_object_size, fold_builtin_object_size): Make static.
14056 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
14057 no_c99_libc_has_function): Relocate from builtins.c.
14058 * tree.c: Include builtins.h.
14059 (build_call_expr_loc_array, build_call_expr_loc_vec,
14060 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
14061 from builtins.c.
14062 * fold-const.h (fold_fma): Move prototype to builtins.h.
14063 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
14064 * asan.c: Include builtins.h.
14065 * cfgexpand.c: Likewise.
14066 * convert.c: Likewise.
14067 * emit-rtl.c: Likewise.
14068 * except.c: Likewise.
14069 * expr.c: Likewise.
14070 * fold-const.c: Likewise.
14071 * gimple-fold.c: Likewise.
14072 * gimple-ssa-strength-reduction.c: Likewise.
14073 * gimplify.c: Likewise.
14074 * ipa-inline.c: Likewise.
14075 * ipa-prop.c: Likewise.
14076 * lto-streamer-out.c: Likewise.
14077 * stmt.c: Likewise.
14078 * tree-inline.c: Likewise.
14079 * tree-object-size.c: Likewise.
14080 * tree-sra.c: Likewise.
14081 * tree-ssa-ccp.c: Likewise.
14082 * tree-ssa-forwprop.c: Likewise.
14083 * tree-ssa-loop-ivcanon.c: Likewise.
14084 * tree-ssa-loop-ivopts.c: Likewise.
14085 * tree-ssa-math-opts.c: Likewise.
14086 * tree-ssa-reassoc.c: Likewise.
14087 * tree-ssa-threadedge.c: Likewise.
14088 * tree-streamer-in.c: Likewise.
14089 * tree-vect-data-refs.c: Likewise.
14090 * tree-vect-patterns.c: Likewise.
14091 * tree-vect-stmts.c: Likewise.
14092 * config/aarch64/aarch64.c: Likewise.
14093 * config/alpha/alpha.c: Likewise.
14094 * config/arc/arc.c: Likewise.
14095 * config/arm/arm.c: Likewise.
14096 * config/avr/avr.c: Likewise.
14097 * config/bfin/bfin.c: Likewise.
14098 * config/c6x/c6x.c: Likewise.
14099 * config/cr16/cr16.c: Likewise.
14100 * config/cris/cris.c: Likewise.
14101 * config/epiphany/epiphany.c: Likewise.
14102 * config/fr30/fr30.c: Likewise.
14103 * config/frv/frv.c: Likewise.
14104 * config/h8300/h8300.c: Likewise.
14105 * config/i386/i386.c: Likewise.
14106 * config/i386/winnt.c: Likewise.
14107 * config/ia64/ia64.c: Likewise.
14108 * config/iq2000/iq2000.c: Likewise.
14109 * config/lm32/lm32.c: Likewise.
14110 * config/m32c/m32c.c: Likewise.
14111 * config/m32r/m32r.c: Likewise.
14112 * config/m68k/m68k.c: Likewise.
14113 * config/mcore/mcore.c: Likewise.
14114 * config/mep/mep.c: Likewise.
14115 * config/microblaze/microblaze.c: Likewise.
14116 * config/mips/mips.c: Likewise.
14117 * config/mmix/mmix.c: Likewise.
14118 * config/mn10300/mn10300.c: Likewise.
14119 * config/moxie/moxie.c: Likewise.
14120 * config/msp430/msp430.c: Likewise.
14121 * config/nds32/nds32.c: Likewise.
14122 * config/pa/pa.c: Likewise.
14123 * config/pdp11/pdp11.c: Likewise.
14124 * config/picochip/picochip.c: Likewise.
14125 * config/rl78/rl78.c: Likewise.
14126 * config/rs6000/rs6000.c: Likewise.
14127 * config/rx/rx.c: Likewise.
14128 * config/s390/s390.c: Likewise.
14129 * config/score/score.c: Likewise.
14130 * config/sh/sh.c: Likewise.
14131 * config/sparc/sparc.c: Likewise.
14132 * config/spu/spu.c: Likewise.
14133 * config/stormy16/stormy16.c: Likewise.
14134 * config/tilegx/tilegx.c: Likewise.
14135 * config/tilepro/tilepro.c: Likewise.
14136 * config/v850/v850.c: Likewise.
14137 * config/vax/vax.c: Likewise.
14138 * config/xtensa/xtensa.c: Likewise.
14139
14140 2014-06-02 Jeff Law <law@redhat.com>
14141
14142 PR rtl-optimization/61094
14143 * ree.c (combine_reaching_defs): Do not reextend an insn if it
14144 was marked as do_no_reextend. If a copy is needed to eliminate
14145 an extension, then mark it as do_not_reextend.
14146
14147 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
14148
14149 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
14150
14151 2014-06-02 Richard Henderson <rth@redhat.com>
14152
14153 PR target/61336
14154 * config/alpha/alpha.c (print_operand_address): Allow symbolic
14155 addresses inside asms. Use output_operand_lossage instead of
14156 gcc_unreachable.
14157
14158 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
14159
14160 PR target/61239
14161 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
14162 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
14163
14164 2014-06-02 Tom de Vries <tom@codesourcery.com>
14165
14166 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
14167 case that x has VOIDmode.
14168
14169 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
14170
14171 * varasm.c (copy_constant): Delete function.
14172 (build_constant_desc): Don't call it.
14173
14174 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14175
14176 PR target/61154
14177 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
14178 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
14179 with immediate_operand.
14180
14181 2014-06-02 Andreas Schwab <schwab@suse.de>
14182
14183 * config/ia64/ia64.c
14184 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
14185 pending_data_specs first.
14186
14187 2014-06-02 Richard Biener <rguenther@suse.de>
14188
14189 PR tree-optimization/61378
14190 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
14191 valueized_anything.
14192
14193 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
14194
14195 * config/i386/constraints.md (Bw): Rename from 'w'.
14196 (Bz): Rename from 'z'.
14197 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
14198
14199 2014-06-01 Kai Tietz <ktietz@redhat.com>
14200
14201 PR target/61377
14202 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
14203 * config/i386/i386.md (sibcall_insn_operand): Use Bs
14204 instead of m constraint.
14205
14206 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
14207
14208 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
14209 a separate alternative where the scratch operand 2 is marked as
14210 early clobber.
14211
14212 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
14213
14214 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
14215 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
14216 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
14217 and __builtins_arm_get_fpscr.
14218 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
14219 __builtins_arm_get_fpscr.
14220 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
14221 __builtins_arm_ldfpscr.
14222 (arm_atomic_assign_expand_fenv): New function.
14223 * config/arm/vfp.md (set_fpscr): New pattern.
14224 (get_fpscr) : Likewise.
14225 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
14226 VUNSPEC_SET_FPSCR.
14227 * doc/extend.texi (AARCH64 Built-in Functions) : Document
14228 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
14229
14230 2014-05-30 Jakub Jelinek <jakub@redhat.com>
14231
14232 * asan.c (report_error_func): Add SLOW_P argument, use
14233 BUILT_IN_ASAN_*_N if set.
14234 (build_check_stmt): Likewise.
14235 (instrument_derefs): If T has insufficient alignment,
14236 force same handling as for odd sizes.
14237
14238 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
14239 BUILT_IN_ASAN_REPORT_STORE_N): New.
14240 * asan.c (struct asan_mem_ref): Change access_size type to
14241 HOST_WIDE_INT.
14242 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
14243 update_mem_ref_hash_table): Likewise.
14244 (asan_mem_ref_hasher::hash): Hash in a HWI.
14245 (report_error_func): Change size_in_bytes argument to HWI.
14246 Use *_N builtins if size_in_bytes is larger than 16 or not power of
14247 two.
14248 (build_shadow_mem_access): New function.
14249 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
14250 Handle size_in_bytes not power of two or larger than 16.
14251 (instrument_derefs): Don't give up if size_in_bytes is not
14252 power of two or is larger than 16.
14253
14254 2014-05-30 Kai Tietz <ktietz@redhat.com>
14255
14256 PR target/60104
14257 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
14258 for sibling-tail-calls.
14259 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
14260 to its use.
14261 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
14262 (sibcall_insn_operand): Add check for sibcall_memory_operand.
14263
14264 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
14265
14266 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
14267 * config/avr/avr-tables.opt: Regenerate.
14268 * config/avr/t-multilib: Regenerate.
14269 * doc/avr-mmcu.texi: Regenerate.
14270
14271 2014-05-30 Ian Lance Taylor <iant@google.com>
14272
14273 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
14274 target("sse").
14275
14276 2014-05-30 Tom de Vries <tom@codesourcery.com>
14277
14278 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
14279 Redefine as true.
14280
14281 2014-05-30 Tom de Vries <tom@codesourcery.com>
14282
14283 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14284 * lra.c (initialize_lra_reg_info_element): Add init of
14285 actual_call_used_reg_set field.
14286 (lra): Call lra_create_live_ranges before lra_inheritance for
14287 -fuse-caller-save.
14288 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14289 -fuse-caller-save.
14290 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
14291 instead of call_used_reg_set for -fuse-caller-save.
14292 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14293
14294 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14295
14296 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
14297 to mov_imm.
14298 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
14299
14300 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
14301
14302 * ira.c (ira_get_dup_out_num): Check for output operands at
14303 the start of the loop. Handle cases where an included alternative
14304 follows an excluded one.
14305
14306 2014-05-29 Mike Stump <mikestump@comcast.net>
14307
14308 PR debug/61352
14309 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
14310 post ld passes when lto is used.
14311
14312 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
14313
14314 PR rtl-optimization/61325
14315 * lra-constraints.c (process_address): Rename to process_address_1.
14316 (process_address): New function.
14317
14318 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
14319
14320 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
14321 TYPES_BINOPV): New static data.
14322 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
14323 New builtin.
14324 * config/aarch64/aarch64-simd.md (aarch64_ext,
14325 aarch64_im_lane_boundsi): New patterns.
14326 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
14327 patterns for EXT.
14328 (aarch64_evpc_ext): New function.
14329
14330 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
14331
14332 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
14333 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
14334 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
14335 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
14336 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
14337
14338 2014-05-29 Tom de Vries <tom@codesourcery.com>
14339
14340 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
14341
14342 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
14343 Richard Sandiford <rdsandiford@googlemail.com>
14344
14345 * arm/iterators.md (shiftable_ops): New code iterator.
14346 (t2_binop0, arith_shift_insn): New code attributes.
14347 * arm/predicates.md (shift_nomul_operator): New predicate.
14348 * arm/arm.md (insn_enabled): Delete.
14349 (enabled): Remove insn_enabled test.
14350 (*arith_shiftsi): Delete. Replace with ...
14351 (*<arith_shift_insn>_multsi): ... new pattern.
14352 (*<arith_shift_insn>_shiftsi): ... new pattern.
14353 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
14354
14355 2014-05-29 Radovan Obradovic <robradovic@mips.com>
14356 Tom de Vries <tom@codesourcery.com>
14357
14358 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
14359 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
14360 clobber.
14361 (mips_split_call): Use POST_CALL_TMP_REG.
14362 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
14363
14364 2014-05-29 Tom de Vries <tom@codesourcery.com>
14365
14366 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
14367 with #ifdef STACK_REGS.
14368
14369 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
14370
14371 * varasm.c (get_variable_section): Walk aliases.
14372 (place_block_symbol): Walk aliases.
14373
14374 2014-05-28 Tom de Vries <tom@codesourcery.com>
14375
14376 Revert:
14377 2014-05-28 Tom de Vries <tom@codesourcery.com>
14378
14379 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14380 * lra.c (initialize_lra_reg_info_element): Add init of
14381 actual_call_used_reg_set field.
14382 (lra): Call lra_create_live_ranges before lra_inheritance for
14383 -fuse-caller-save.
14384 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14385 -fuse-caller-save.
14386 * lra-constraints.c (need_for_call_save_p): Use
14387 actual_call_used_reg_set instead of call_used_reg_set for
14388 -fuse-caller-save.
14389 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14390
14391 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14392
14393 * doc/md.texi: Document that the % constraint character must
14394 be at the beginning of the string.
14395 * genoutput.c (validate_insn_alternatives): Check that '=',
14396 '+' and '%' only appear at the beginning of a constraint.
14397 * ira.c (commutative_constraint_p): Delete.
14398 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
14399 at the start of the string.
14400 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
14401 duplicate '='s.
14402 * config/arm/neon.md (bicdi3_neon): Likewise.
14403 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
14404 (slt_si, sltu_si): Likewise.
14405 * config/vax/vax.md (sbcdi3): Likewise.
14406 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
14407 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
14408 (mul64): Move '%' to beginning of constraint.
14409 * config/arm/arm.md (*xordi3_insn): Likewise.
14410 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
14411 (xorsi3): Likewise.
14412
14413 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14414
14415 * doc/md.texi: Document the restrictions on the "enabled" attribute.
14416
14417 2014-05-28 Jason Merrill <jason@redhat.com>
14418
14419 PR c++/47202
14420 * cgraph.h (symtab_node::get_comdat_group_id): New.
14421 * cgraphunit.c (analyze_functions): Call it.
14422 * symtab.c (dump_symtab_node): Likewise.
14423 * tree.c (decl_comdat_group_id): New.
14424 * tree.h: Declare it.
14425 * lto-streamer-out.c (write_symbol): Use it.
14426 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
14427
14428 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14429
14430 PR bootstrap/PR61146
14431 * wide-int.cc: Do not include longlong.h when compiling with clang.
14432
14433 2014-05-28 Richard Biener <rguenther@suse.de>
14434
14435 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
14436 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
14437 (vrp_visit_assignment_or_call): Print less vertical space.
14438 (vrp_visit_stmt): Likewise.
14439 (vrp_visit_phi_node): Likewise. For a PHI argument with
14440 VR_VARYING range consider recording it as copy.
14441
14442 2014-05-28 Richard Biener <rguenther@suse.de>
14443
14444 Revert
14445 2014-05-28 Richard Biener <rguenther@suse.de>
14446
14447 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14448
14449 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14450
14451 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
14452 sufficiently aligned and an offset is used at the same time.
14453 (expand_expr_real_1): Likewise.
14454
14455 2014-05-28 Richard Biener <rguenther@suse.de>
14456
14457 PR middle-end/61045
14458 * fold-const.c (fold_comparison): When folding
14459 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
14460 the sign of the remaining constant operand stays the same.
14461
14462 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
14463
14464 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
14465 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
14466 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
14467 to the assembler.
14468 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
14469 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
14470 (m32bit-doubles) Likewise.
14471 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
14472 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
14473 option for RL78.
14474
14475 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14476
14477 * configure.ac ($gcc_cv_ld_clearcap): New test.
14478 * configure: Regenerate.
14479 * config.in: Regenerate.
14480 * config/sol2.opt (mclear-hwcap): New option.
14481 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
14482 * config/sol2-clearcap.map: Moved here from
14483 testsuite/gcc.target/i386/clearcap.map.
14484 * config/sol2-clearcapv2.map: Move here from
14485 gcc.target/i386/clearcapv2.map.
14486 * config/t-sol2 (install): Depend on install-clearcap-map.
14487 (install-clearcap-map): New target.
14488 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
14489 -mclear-hwcap.
14490
14491 2014-05-28 Richard Biener <rguenther@suse.de>
14492
14493 * hwint.h (*_HALF_WIDE_INT*): Move to ...
14494 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
14495 ... here and remove the rest.
14496 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14497
14498 2014-05-28 Richard Biener <rguenther@suse.de>
14499
14500 PR tree-optimization/61335
14501 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
14502 new range fails, drop to varying.
14503
14504 2014-05-28 Olivier Hainque <hainque@adacore.com>
14505
14506 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
14507 (CPP_SPEC): Add entry for -mcpu=8548.
14508 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
14509 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
14510
14511 2014-05-28 Tom de Vries <tom@codesourcery.com>
14512
14513 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14514 * lra.c (initialize_lra_reg_info_element): Add init of
14515 actual_call_used_reg_set field.
14516 (lra): Call lra_create_live_ranges before lra_inheritance for
14517 -fuse-caller-save.
14518 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14519 -fuse-caller-save.
14520 * lra-constraints.c (need_for_call_save_p): Use
14521 actual_call_used_reg_set instead of call_used_reg_set for
14522 -fuse-caller-save.
14523 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14524
14525 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14526 Tom de Vries <tom@codesourcery.com>
14527
14528 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
14529 to gccoptlist.
14530 (@item -fuse-caller-save): New item.
14531
14532 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14533 Tom de Vries <tom@codesourcery.com>
14534
14535 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
14536 OPT_fuse_caller_save.
14537
14538 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14539 Tom de Vries <tom@codesourcery.com>
14540
14541 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
14542 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
14543 get_call_reg_set_usage.
14544 * resource.c (mark_set_resources, mark_target_live_regs): Use
14545 get_call_reg_set_usage.
14546 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
14547 field.
14548 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
14549 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
14550 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14551 * ira-build.c (ira_create_allocno): Init
14552 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14553 (create_cap_allocno, propagate_allocno_info)
14554 (propagate_some_info_from_allocno)
14555 (copy_info_to_removed_store_destinations): Handle
14556 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14557 * ira-costs.c (ira_tune_allocno_costs): Use
14558 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
14559
14560 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14561 Tom de Vries <tom@codesourcery.com>
14562
14563 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
14564 and function_used_regs_valid fields.
14565 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
14566 find_all_hard_reg_sets.
14567 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
14568 (get_call_reg_set_usage): New function.
14569 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
14570 * regs.h (get_call_reg_set_usage): Declare.
14571
14572 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14573
14574 PR libgcc/61152
14575 * config/dbx.h (License): Add Runtime Library Exception.
14576 * config/newlib-stdint.h (License): Same.
14577 * config/rtems.h (License): Same
14578 * config/initfini-array.h (License): Same
14579 * config/v850/v850.h (License): Same.
14580 * config/v850/v850-opts.h (License): Same
14581 * config/v850/rtems.h (License): Same.
14582
14583 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14584
14585 PR target/61044
14586 * doc/extend.texi (Local Labels): Note that label differences are
14587 not supported for AVR.
14588
14589 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14590 Olivier Hainque <hainque@adacore.com>
14591
14592 * rtl.h (set_for_reg_notes): Declare.
14593 * emit-rtl.c (set_for_reg_notes): New function.
14594 (set_unique_reg_note): Use it.
14595 * optabs.c (add_equal_note): Likewise
14596
14597 2014-05-27 Andrew Pinski <apinski@cavium.com>
14598
14599 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
14600 Use <w> for the register in assembly template.
14601 (stack_protect_test): Use the mode of operands[0] for the result.
14602 (stack_protect_test_<mode>): Use <w> for the register
14603 in assembly template.
14604
14605 2014-05-27 DJ Delorie <dj@redhat.com>
14606
14607 * config/rx/rx.c (add_vector_labels): New.
14608 (rx_output_function_prologue): Call it.
14609 (rx_handle_func_attribute): Don't require empty arguments.
14610 (rx_handle_vector_attribute): New.
14611 (rx_attribute_table): Add "vector" attribute.
14612 * doc/extend.texi (interrupt, vector): Document new/changed
14613 RX-specific attributes.
14614
14615 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
14616
14617 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14618
14619 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
14620 predicate to detect a negative quotient.
14621
14622 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14623
14624 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
14625 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
14626 Add X - Y CMP 0 to X CMP Y transformation.
14627 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
14628
14629 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
14630
14631 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
14632 before printing.
14633
14634 2014-05-27 Steve Ellcey <sellcey@mips.com>
14635
14636 * config/mips/mips.c: Add include of cgraph.h.
14637
14638 2014-05-27 Richard Biener <rguenther@suse.de>
14639
14640 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
14641
14642 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14643
14644 PR libgcc/61152
14645 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
14646 * config/arm/arm-cores.def (License): Same.
14647 * config/arm/arm-opts.h (License): Same.
14648 * config/arm/aout.h (License): Same.
14649 * config/arm/bpabi.h (License): Same.
14650 * config/arm/elf.h (License): Same.
14651 * config/arm/linux-elf.h (License): Same.
14652 * config/arm/linux-gas.h (License): Same.
14653 * config/arm/netbsd-elf.h (License): Same.
14654 * config/arm/uclinux-eabi.h (License): Same.
14655 * config/arm/uclinux-elf.h (License): Same.
14656 * config/arm/vxworks.h (License): Same.
14657
14658 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14659
14660 * config/arm/neon.md (neon_bswap<mode>): New pattern.
14661 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
14662 (arm_init_neon_builtins): Handle NEON_BSWAP.
14663 Define required type nodes.
14664 (arm_expand_neon_builtin): Handle NEON_BSWAP.
14665 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
14666 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
14667 * config/arm/iterators.md (VDQHSD): New mode iterator.
14668
14669 2014-05-27 Richard Biener <rguenther@suse.de>
14670
14671 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
14672 Try using literal operands when comparing value-ranges failed.
14673
14674 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14675
14676 * ira.c (commutative_operand): Adjust for change to recog_data.
14677 [Missing from previous commit.]
14678
14679 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14680
14681 * system.h (TEST_BIT): New macro.
14682 * recog.h (alternative_mask): New type.
14683 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
14684 (recog_data_d): Replace alternative_enabled_p array with
14685 enabled_alternatives.
14686 (target_recog): New structure.
14687 (default_target_recog, this_target_recog): Declare.
14688 (get_enabled_alternatives, recog_init): Likewise.
14689 * recog.c (default_target_recog, this_target_recog): New variables.
14690 (get_enabled_alternatives): New function.
14691 (extract_insn): Use it.
14692 (recog_init): New function.
14693 (preprocess_constraints, constrain_operands): Adjust for change to
14694 recog_data.
14695 * postreload.c (reload_cse_simplify_operands): Likewise.
14696 * reload.c (find_reloads): Likewise.
14697 * ira-costs.c (record_reg_classes): Likewise.
14698 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
14699 all alternatives after a disabled one would be skipped.
14700 (ira_implicitly_set_insn_hard_regs): Likewise.
14701 * ira.c (ira_setup_alts): Adjust for change to recog_data.
14702 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
14703 with enabled_alternatives.
14704 * lra.c (free_insn_recog_data): Update accordingly.
14705 (lra_update_insn_recog_data): Likewise.
14706 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
14707 * lra-constraints.c (process_alt_operands): Likewise. Handle
14708 only_alternative as part of the enabled mask.
14709 * target-globals.h (this_target_recog): Declare.
14710 (target_globals): Add a recog field.
14711 (restore_target_globals): Restore this_target_recog.
14712 * target-globals.c: Include recog.h.
14713 (default_target_globals): Initialize recog field.
14714 (save_target_globals): Likewise.
14715 * reginfo.c (reinit_regs): Call recog_init.
14716 * toplev.c (backend_init_target): Likewise.
14717
14718 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14719
14720 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
14721 rather than any named insn's code.
14722
14723 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14724
14725 PR libgcc/61152
14726 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
14727 * config/arm/arm-cores.def (License): Same.
14728
14729 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
14730
14731 * tree.h (decl_comdat_group): Declare.
14732 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
14733 * tree.c (decl_comdat_group): Here.
14734
14735 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
14736
14737 PR rtl-optimization/61222
14738 * combine.c (simplify_shift_const_1): When moving a PLUS outside
14739 the shift, truncate the PLUS operand to the result mode.
14740
14741 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
14742
14743 PR target/61271
14744 * config/i386/i386.c (ix86_rtx_costs)
14745 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
14746 Fix condition.
14747
14748 2014-05-26 Martin Jambor <mjambor@suse.cz>
14749
14750 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
14751 subreg uses.
14752
14753 2014-05-26 Richard Biener <rguenther@suse.de>
14754
14755 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
14756 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
14757 Provide specializations.
14758 (wi::int_traits <HOST_WIDE_INT>,
14759 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
14760
14761 2014-05-26 Alan Modra <amodra@gmail.com>
14762
14763 PR target/61098
14764 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
14765 params and return a bool. Remove dead code. Update comment.
14766 Assert we have a const_int source. Remove bogus code from
14767 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
14768 handling of constants > 2G and reg_equal note, from..
14769 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
14770 return value. Update comment. If we can, use a new pseudo
14771 for intermediate calculations.
14772 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
14773 prototype.
14774 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
14775 call to rs6000_emit_set_const in splitter.
14776 (movdi_internal64+2, +3): Likewise.
14777
14778 2014-05-26 Richard Biener <rguenther@suse.de>
14779
14780 * system.h: Define __STDC_FORMAT_MACROS before
14781 including inttypes.h.
14782 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
14783 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
14784 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
14785 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
14786 HOST_WIDEST_INT_C): Remove.
14787 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
14788 if C99 inttypes.h is not available.
14789 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
14790 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
14791 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
14792 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
14793 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
14794 (struct output_info): Likewise.
14795 (print_statistics): Adjust.
14796 (dump_bitmap_statistics): Likewise.
14797 * bt-load.c (migrate_btr_defs): Print with PRId64.
14798 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
14799 (MAX_SAFE_MULTIPLIER): Adjust.
14800 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
14801 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
14802 dump_cgraph_node): Likewise.
14803 * final.c (dump_basic_block_info): Likewise.
14804 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
14805 * gcov.c (format_gcov): Likewise.
14806 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
14807 for calculation.
14808 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
14809 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
14810 (inline_small_functions, dump_overall_stats, dump_inline_stats):
14811 Use PRId64 for dumping.
14812 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
14813 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
14814 (add_allocno_hard_regs): Adjust.
14815 * loop-doloop.c (doloop_modify): Print using PRId64.
14816 * loop-iv.c (inverse): Compute in uint64_t.
14817 (determine_max_iter, iv_number_of_iterations): Likewise.
14818 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
14819 Print using PRId64.
14820 * lto-streamer-out.c (write_symbol): Use uint64_t.
14821 * mcf.c (CAP_INFINITY): Use int64_t maximum.
14822 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
14823 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
14824 * modulo-sched.c (const_iteration_count): Use int64_t.
14825 (sms_schedule): Dump using PRId64.
14826 * predict.c (dump_prediction): Likewise.
14827 * pretty-print.h (pp_widest_integer): Remove.
14828 * profile.c (get_working_sets, is_edge_inconsistent,
14829 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
14830 * tree-pretty-print.c (pp_double_int): Remove case handling
14831 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
14832 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
14833 and adjust users.
14834 (pass_optimize_bswap::execute): Remove restriction on hosts.
14835 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
14836 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
14837 * tree.c (widest_int_cst_value): Remove.
14838 * tree.h (widest_int_cst_value): Likewise.
14839 * value-prof.c (dump_histogram_value): Print using PRId64.
14840 * gengtype.c (main): Also inject int64_t.
14841 * ggc-page.c (struct max_alignment): Use int64_t.
14842 * alloc-pool.c (struct allocation_object_def): Likewise.
14843 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
14844 for computation.
14845 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
14846 * doc/tm.texi: Regenerated.
14847 * gengtype-lex.l (IWORD): Handle [u]int64_t.
14848 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
14849 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
14850 mmix_output_register_setting): Use [u]int64_t in prototypes.
14851 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
14852 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
14853 mmix_output_octa, mmix_output_shifted_value): Adjust.
14854 (mmix_intval): Adjust. Remove unreachable case.
14855 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
14856
14857 2014-05-26 Richard Biener <rguenther@suse.de>
14858
14859 * configure.ac: Drop __int64 type check. Insist that we
14860 found uint64_t and int64_t.
14861 * hwint.h (HOST_BITS_PER___INT64): Remove.
14862 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
14863 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
14864 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
14865 (HOST_WIDEST_FAST_INT): Remove __int64 case.
14866 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
14867 for dst_q_src_df_rms_cdt.
14868 * configure: Regenerate.
14869 * config.in: Likewise.
14870
14871 2014-05-26 Michael Tautschnig <mt@debian.org>
14872
14873 PR target/61249
14874 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
14875 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
14876
14877 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14878
14879 PR rtl-optimization/61278
14880 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
14881
14882 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14883
14884 PR rtl-optimization/61220
14885 Part of PR rtl-optimization/61225
14886 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
14887 insn; skip split_edge for a block with only one successor.
14888
14889 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14890
14891 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
14892 for variables.
14893
14894 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14895
14896 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
14897 (update_vtable_references): New function.
14898 (function_and_variable_visibility): Rewrite also vtable initializers.
14899 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
14900
14901 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14902
14903 * ggc.h (ggc_grow): New function.
14904 * ggc-none.c (ggc_grow): New function.
14905 * ggc-page.c (ggc_grow): Likewise.
14906
14907 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14908
14909 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
14910 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
14911 comdat_can_be_unshared_p, cgraph_externally_visible_p,
14912 varpool_externally_visible_p, can_replace_by_local_alias,
14913 update_visibility_by_resolution_info, function_and_variable_visibility,
14914 pass_data_ipa_function_and_variable_visibility,
14915 make_pass_ipa_function_and_variable_visibility,
14916 whole_program_function_and_variable_visibility,
14917 pass_data_ipa_whole_program_visibility,
14918 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
14919 * cgraph.h (cgraph_local_node_p): Declare.
14920 * ipa-visibility.c: New file.
14921 * Makefile.in (OBJS): Add ipa-visiblity.o
14922
14923 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14924
14925 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
14926 that var decl is available.
14927
14928 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14929
14930 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
14931 symtab_node pointer.
14932 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
14933 (find_decls_types_r): Do not walk COMDAT_GROUP.
14934 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
14935 * varasm.c (make_decl_one_only): Use set_comdat_group;
14936 create node if needed.
14937 * ipa-inline-transform.c (save_inline_function_body): Update
14938 way we decl->symtab mapping.
14939 * symtab.c (symtab_hash, hash_node, eq_node
14940 symtab_insert_node_to_hashtable): Remove.
14941 (symtab_register_node): Update.
14942 (symtab_unregister_node): Update.
14943 (symtab_get_node): Reimplement as inline function.
14944 (symtab_add_to_same_comdat_group): Update.
14945 (symtab_dissolve_same_comdat_group_list): Update.
14946 (dump_symtab_base): Update.
14947 (verify_symtab_base): Update.
14948 (symtab_make_decl_local): Update.
14949 (fixup_same_cpp_alias_visibility): Update.
14950 (symtab_nonoverwritable_alias): Update.
14951 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
14952 * ipa.c (update_visibility_by_resolution_info): UPdate.
14953 * bb-reorder.c: Include cgraph.h
14954 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
14955 with comdat groups.
14956 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
14957 * cgraph.c (cgraph_get_create_node): Update.
14958 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
14959 and comdat_group_.
14960 (symtab_get_node): Make inline.
14961 (symtab_insert_node_to_hashtable): Remove.
14962 (symtab_can_be_discarded): Update.
14963 (decl_comdat_group): New function.
14964 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
14965 Update.
14966 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
14967 comdat group name.
14968 (read_comdat_group): New function.
14969 (input_node, input_varpool_node): Use it.
14970 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
14971 comdat groups.
14972 * mips.c (mips_start_unique_function): Likewise.
14973 (ix86_code_end): Likewise.
14974 (rs6000_code_end): Likweise.
14975 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
14976
14977 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14978
14979 * gengtype-state.c (fatal_reading_state): Bring offline.
14980 * optabs.c (widening_optab_handler): Bring offline.
14981 * optabs.h (widening_optab_handler): Likewise.
14982 * final.c (get_attr_length_1): Likewise.
14983
14984 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14985
14986 * sched-int.h (sd_iterator_cond): Manually tail recurse.
14987
14988 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14989
14990 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
14991 (ppc440-compare): Include shift with dot.
14992 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
14993 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
14994 without dot.
14995 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
14996 without dot.
14997 (e6500_sfx2): Include it.
14998 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
14999 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
15000 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
15001 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
15002 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
15003 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
15004 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
15005 *lshiftrt_internal1le, *lshiftrt_internal1be,
15006 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
15007 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
15008 *rotldi3_internal10le, *rotldi3_internal10be,
15009 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
15010 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
15011 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
15012 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
15013 define_insns): Use type "shift" in the appropriate alternatives.
15014
15015 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15016
15017 * config/rs6000/rs6000.md (type): Add "logical". Delete
15018 "fast_compare".
15019 (dot): Adjust comment.
15020 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
15021 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
15022 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
15023 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
15024 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
15025 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
15026 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
15027 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
15028
15029 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
15030 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
15031 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
15032 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
15033 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
15034 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
15035 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
15036 * config/rs6000/8540.md (ppc8540_su): Adjust.
15037 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
15038 cell-cmp-microcoded): Adjust.
15039 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
15040 * config/rs6000/e500mc.md (e500mc_su): Adjust.
15041 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
15042 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
15043 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
15044 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
15045 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
15046 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
15047 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
15048 Adjust.
15049 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
15050 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
15051 Adjust. Adjust comment.
15052 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
15053 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
15054
15055 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15056
15057 * config/rs6000/rs6000.md (type): Add "add".
15058 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
15059 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
15060 define_insns): Use it.
15061 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
15062
15063 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
15064 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
15065 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
15066 * config/rs6000/601.md (ppc601-integer): Adjust.
15067 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
15068 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
15069 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
15070 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
15071 * config/rs6000/8540.md (ppc8540_su): Adjust.
15072 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
15073 cell-cmp-microcoded): Adjust.
15074 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
15075 * config/rs6000/e500mc.md (e500mc_su): Adjust.
15076 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
15077 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
15078 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
15079 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
15080 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
15081 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
15082 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
15083 Adjust.
15084 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
15085 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
15086 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
15087 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
15088
15089 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15090
15091 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
15092 "delayed_compare", "var_delayed_compare".
15093 (var_shift): New attribute.
15094 (cell_micro): Adjust.
15095 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
15096 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
15097 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
15098 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
15099 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
15100 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
15101 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
15102 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
15103 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
15104 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
15105 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
15106 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
15107 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
15108 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
15109 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
15110 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
15111 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
15112 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
15113 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
15114 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
15115 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
15116 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
15117 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
15118 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
15119 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
15120
15121 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
15122 * config/rs6000/440.md (ppc440-integer): Adjust.
15123 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
15124 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
15125 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
15126 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
15127 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
15128 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
15129 * config/rs6000/8540.md (ppc8540_su): Adjust.
15130 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
15131 cell-cmp-microcoded): Adjust.
15132 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
15133 * config/rs6000/e500mc.md (e500mc_su): Adjust.
15134 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
15135 e500mc64_delayed): Adjust.
15136 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
15137 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
15138 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
15139 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
15140 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
15141 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
15142 power6-delayed-compare, power6-var-delayed-compare): Adjust.
15143 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
15144 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
15145 Adjust comment.
15146 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
15147 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
15148
15149 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15150
15151 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
15152 (bits): New mode_attr.
15153 (idiv_ldiv): Delete mode_attr.
15154 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
15155 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
15156 rs6000_adjust_priority, is_nonpipeline_insn,
15157 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
15158
15159 * config/rs6000/40x.md (ppc403-idiv): Adjust.
15160 * config/rs6000/440.md (ppc440-idiv): Adjust.
15161 * config/rs6000/476.md (ppc476-idiv): Adjust.
15162 * config/rs6000/601.md (ppc601-idiv): Adjust.
15163 * config/rs6000/603.md (ppc603-idiv): Adjust.
15164 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
15165 ppc620-ldiv): Adjust.
15166 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
15167 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
15168 * config/rs6000/8540.md (ppc8540_divide): Adjust.
15169 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
15170 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
15171 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
15172 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
15173 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
15174 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
15175 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
15176 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
15177 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
15178 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
15179 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
15180 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
15181 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
15182 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
15183 * config/rs6000/titan.md (titan_fxu_div): Adjust.
15184
15185 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15186
15187 * config/rs6000/rs6000.md (type): Delete "insert_word",
15188 "insert_dword". Add "insert".
15189 (size): Update comment.
15190 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
15191 insn_must_be_first_in_group): Adjust.
15192 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
15193 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
15194 *insvsi_internal6, insvdi_internal): Adjust.
15195
15196 * config/rs6000/40x.md (ppc403-integer): Adjust.
15197 * config/rs6000/440.md (ppc440-integer): Adjust.
15198 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
15199 * config/rs6000/601.md (ppc601-integer): Adjust.
15200 * config/rs6000/603.md (ppc603-integer): Adjust.
15201 * config/rs6000/6xx.md (ppc604-integer): Adjust.
15202 * config/rs6000/7450.md (ppc7450-integer): Adjust.
15203 * config/rs6000/7xx.md (ppc750-integer): Adjust.
15204 * config/rs6000/8540.md (ppc8540_su): Adjust.
15205 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
15206 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
15207 * config/rs6000/e500mc.md (e500mc_su): Adjust.
15208 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
15209 * config/rs6000/e5500.md (e5500_sfx): Adjust.
15210 * config/rs6000/e6500.md (e6500_sfx): Adjust.
15211 * config/rs6000/mpc.md (mpccore-integer): Adjust.
15212 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
15213 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
15214 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
15215 * config/rs6000/power7.md (power7-integer): Adjust.
15216 * config/rs6000/power8.md (power8-1cyc): Adjust.
15217 * config/rs6000/rs64.md (rs64a-integer): Adjust.
15218 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
15219
15220 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15221
15222 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
15223 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
15224 (size): New attribute.
15225 (dot): New attribute.
15226 (cell_micro): Adjust.
15227 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
15228 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
15229 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
15230 umuldi3_highpart): Adjust.
15231 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
15232 rs6000_adjust_priority, is_nonpipeline_insn,
15233 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
15234
15235 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
15236 ppc405-imul3): Adjust.
15237 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
15238 * config/rs6000/476.md (ppc476-imul): Adjust.
15239 * config/rs6000/601.md (ppc601-imul): Adjust.
15240 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
15241 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
15242 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
15243 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
15244 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
15245 Adjust.
15246 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
15247 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
15248 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
15249 cell-imul): Adjust.
15250 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
15251 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
15252 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
15253 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
15254 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
15255 * config/rs6000/mpc.md (mpccore-imul): Adjust.
15256 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
15257 power4-lmul, power4-imul, power4-imul3): Adjust.
15258 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
15259 power5-lmul, power5-imul, power5-imul3): Adjust.
15260 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
15261 power6-lmul, power6-imul, power6-imul3): Adjust.
15262 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
15263 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
15264
15265 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
15266 rs64a-lmul): Adjust.
15267 * config/rs6000/titan.md (titan_imul): Adjust.
15268
15269 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15270
15271 * config/rs6000/rs6000.md (type): Add new value "halfmul".
15272 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
15273 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
15274 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
15275 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
15276 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
15277 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
15278 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
15279 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
15280 * config/rs6000/titan.md: Delete nonsensical comment.
15281 (titan_imul): Add type imul3.
15282 (titan_mulhw): Remove type imul3; add type halfmul.
15283
15284 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15285
15286 * config/rs6000/rs6000.md (type): Reorder, reformat.
15287
15288 2014-05-23 Martin Jambor <mjambor@suse.cz>
15289
15290 PR tree-optimization/53787
15291 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
15292 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
15293 analysis_done, update all uses.
15294 * ipa-prop.c: Include domwalk.h
15295 (param_analysis_info): Removed.
15296 (param_aa_status): New type.
15297 (ipa_bb_info): Likewise.
15298 (func_body_info): Likewise.
15299 (ipa_get_bb_info): New function.
15300 (aa_overwalked): Likewise.
15301 (find_dominating_aa_status): Likewise.
15302 (parm_bb_aa_status_for_bb): Likewise.
15303 (parm_preserved_before_stmt_p): Changed to use new param AA info.
15304 (load_from_unmodified_param): Accept func_body_info as a parameter
15305 instead of parms_ainfo.
15306 (parm_ref_data_preserved_p): Changed to use new param AA info.
15307 (parm_ref_data_pass_through_p): Likewise.
15308 (ipa_load_from_parm_agg_1): Likewise. Update callers.
15309 (compute_complex_assign_jump_func): Changed to use new param AA info.
15310 (compute_complex_ancestor_jump_func): Likewise.
15311 (ipa_compute_jump_functions_for_edge): Likewise.
15312 (ipa_compute_jump_functions): Removed.
15313 (ipa_compute_jump_functions_for_bb): New function.
15314 (ipa_analyze_indirect_call_uses): Likewise, moved variable
15315 declarations down.
15316 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
15317 and info, moved variable declarations down.
15318 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
15319 node and info.
15320 (ipa_analyze_stmt_uses): Likewise.
15321 (ipa_analyze_params_uses): Removed.
15322 (ipa_analyze_params_uses_in_bb): New function.
15323 (ipa_analyze_controlled_uses): Likewise.
15324 (free_ipa_bb_info): Likewise.
15325 (analysis_dom_walker): New class.
15326 (ipa_analyze_node): Handle node-specific forbidden analysis,
15327 initialize and free func_body_info, use dominator walker.
15328 (ipcp_modif_dom_walker): New class.
15329 (ipcp_transform_function): Create and free func_body_info, use
15330 ipcp_modif_dom_walker, moved a lot of functionality there.
15331
15332 2014-05-23 Marek Polacek <polacek@redhat.com>
15333 Jakub Jelinek <jakub@redhat.com>
15334
15335 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
15336 * gcc.c (sanitize_spec_function): Likewise.
15337 * convert.c (convert_to_integer): Include "ubsan.h". Add
15338 floating-point to integer instrumentation.
15339 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
15340 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
15341 SANITIZE_NONDEFAULT.
15342 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
15343 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
15344 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
15345 * ubsan.c: Include "realmpfr.h" and "dfp.h".
15346 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
15347 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
15348 float/double/long double.
15349 (ubsan_instrument_float_cast): New function.
15350 * ubsan.h (ubsan_instrument_float_cast): Declare.
15351
15352 2014-05-23 Jiong Wang <jiong.wang@arm.com>
15353
15354 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
15355 predicate.
15356 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
15357 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
15358 Adjust for tailcalling through registers.
15359 * config/aarch64/aarch64.h (enum reg_class): New caller save
15360 register class.
15361 (REG_CLASS_NAMES): Likewise.
15362 (REG_CLASS_CONTENTS): Likewise.
15363 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
15364 Allow tailcalling without decls.
15365
15366 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15367
15368 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15369 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
15370
15371 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
15372 gsi, and variables v_* to v*.
15373
15374 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
15375
15376 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
15377
15378 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15379
15380 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
15381 * omp-low.c: Update accordingly.
15382
15383 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
15384 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
15385 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
15386 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
15387 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
15388 GF_OMP_TARGET_KIND_UPDATE.
15389
15390 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15391 Explicitly enumerate the expected region types.
15392
15393 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
15394
15395 PR other/56955
15396 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
15397 documentation; the old documentation didn't clearly state the
15398 constraints on the contents of the pointed-to storage.
15399
15400 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15401
15402 Fix bootstrap error on ia64
15403 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
15404 Return default value.
15405
15406 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
15407
15408 PR tree-optimization/54733
15409 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
15410 (CMPNOP): Define.
15411 (find_bswap_or_nop_load): New.
15412 (find_bswap_1): Renamed to ...
15413 (find_bswap_or_nop_1): This. Also add support for memory source.
15414 (find_bswap): Renamed to ...
15415 (find_bswap_or_nop): This. Also add support for memory source and
15416 detection of bitwise operations equivalent to load in target
15417 endianness.
15418 (execute_optimize_bswap): Likewise. Also move its leading comment back
15419 in place and split statement transformation into ...
15420 (bswap_replace): This.
15421
15422 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15423
15424 PR rtl-optimization/61215
15425 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
15426 simplify_gen_subreg until final substitution.
15427
15428 2014-05-23 Alan Modra <amodra@gmail.com>
15429
15430 PR target/61231
15431 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
15432 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
15433 Use "Y" constraint rather than "m".
15434
15435 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15436
15437 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
15438 define.
15439 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
15440 New function declaration.
15441 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
15442 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
15443 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
15444 (aarch64_init_builtins) : Initialize builtins
15445 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15446 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15447 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
15448 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
15449 and __builtins_aarch64_set_fpsr.
15450 (aarch64_atomic_assign_expand_fenv): New function.
15451 * config/aarch64/aarch64.md (set_fpcr): New pattern.
15452 (get_fpcr) : Likewise.
15453 (set_fpsr) : Likewise.
15454 (get_fpsr) : Likewise.
15455 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
15456 and UNSPECV_SET_FPSR.
15457 * doc/extend.texi (AARCH64 Built-in Functions) : Document
15458 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15459 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15460
15461 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15462
15463 PR rtl-optimization/60969
15464 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
15465 constraints. Set up mem cost for NO_REGS case.
15466
15467 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
15468
15469 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
15470
15471 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
15472
15473 * config/darwin.c: Include "lto-section-names.h".
15474 (LTO_SEGMENT_NAME): Don't define.
15475 * config/i386/winnt.c: Include "lto-section-names.h".
15476 * lto-streamer.c: Include "lto-section-names.h".
15477 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
15478 * lto-wrapper.c: Include "lto-section-names.h".
15479 (LTO_SECTION_NAME_PREFIX): Don't define.
15480 * lto-section-names.h: New file.
15481 * cgraphunit.c: Include "lto-section-names.h".
15482
15483 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
15484
15485 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
15486
15487 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
15488
15489 PR target/61208
15490 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
15491
15492 2014-05-22 Nick Clifton <nickc@redhat.com>
15493
15494 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
15495
15496 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
15497
15498 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
15499 -> (T)A transformation to integer types.
15500
15501 2014-05-22 Teresa Johnson <tejohnson@google.com>
15502
15503 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
15504 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
15505 (gcov_rewrite): Use gcov_nonruntime_assert.
15506 (gcov_open): Ditto.
15507 (gcov_write_words): Ditto.
15508 (gcov_write_length): Ditto.
15509 (gcov_read_words): Use gcov_nonruntime_assert, and remove
15510 gcc_assert from IN_LIBGCOV code.
15511 (gcov_read_summary): Use gcov_error to flag profile corruption.
15512 (gcov_sync): Use gcov_nonruntime_assert.
15513 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
15514 (gcov_histo_index): Use gcov_nonruntime_assert.
15515 (static void gcov_histogram_merge): Ditto.
15516 (compute_working_sets): Ditto.
15517 * gcov-io.h (gcov_nonruntime_assert): Define.
15518 (gcov_error): Define for !IN_LIBGCOV
15519
15520 2014-05-22 Richard Biener <rguenther@suse.de>
15521
15522 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
15523 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
15524 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
15525 and deallocation site.
15526 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15527 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
15528 passing through the incoming points-to set.
15529 (handle_lhs_call): Use flags argument instead of recomputing it.
15530 (find_func_aliases_for_call): Call handle_lhs_call with proper
15531 call return flags.
15532
15533 2014-05-22 Jakub Jelinek <jakub@redhat.com>
15534
15535 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
15536 all padding bits in REAL_VALUE_TYPE are cleared.
15537
15538 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15539
15540 Cleanup and improve multipass_dfa_lookahead_guard
15541 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
15542 (core2i7_first_cycle_multipass_begin,)
15543 (core2i7_first_cycle_multipass_issue,)
15544 (core2i7_first_cycle_multipass_backtrack): Update signature.
15545 * config/ia64/ia64.c
15546 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
15547 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
15548 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
15549 hook definition.
15550 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
15551 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
15552 values.
15553 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
15554 return values.
15555 * doc/tm.texi: Regenerate.
15556 * doc/tm.texi.in
15557 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
15558 * haifa-sched.c (ready_try): Make signed to allow negative values.
15559 (rebug_ready_list_1): Update.
15560 (choose_ready): Simplify.
15561 (sched_extend_ready_list): Update.
15562
15563 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15564
15565 Remove IA64 speculation tweaking flags
15566 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
15567 speculation tuning flags.
15568 (msched-prefer-non-data-spec-insns,)
15569 (msched-prefer-non-control-spec-insns): Obsolete options.
15570 * haifa-sched.c (choose_ready): Remove handling of
15571 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15572 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
15573 and PREFER_NON_DATA_SPEC.
15574 * sel-sched.c (process_spec_exprs): Remove handling of
15575 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15576
15577 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15578
15579 Improve scheduling debug output
15580 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
15581 (advance_one_cycle): Update.
15582 (schedule_insn, queue_to_ready): Add debug printouts.
15583 (debug_ready_list_1): New static function.
15584 (debug_ready_list): Update.
15585 (max_issue): Add debug printouts.
15586 (dump_insn_stream): New static function.
15587 (schedule_block): Use it. Also better indent printouts.
15588
15589 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15590
15591 Fix sched_insn debug counter
15592 * haifa-sched.c (schedule_insn): Update.
15593 (struct haifa_saved_data): Add nonscheduled_insns_begin.
15594 (save_backtrack_point, restore_backtrack_point): Update.
15595 (first_nonscheduled_insn): New static function.
15596 (queue_to_ready, choose_ready): Use it.
15597 (schedule_block): Init nonscheduled_insns_begin.
15598 (sched_emit_insn): Update.
15599
15600
15601 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
15602
15603 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
15604 to GENERAL_REGS.
15605 (aarch64_secondary_reload) : LikeWise.
15606 (aarch64_class_max_nregs) : Remove CORE_REGS.
15607 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
15608 (REG_CLASS_NAMES) : Likewise.
15609 (REG_CLASS_CONTENTS) : LikeWise.
15610 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
15611
15612 2014-05-21 Guozhi Wei <carrot@google.com>
15613
15614 PR target/61202
15615 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
15616 constraint.
15617 (vqdmulhq_n_s16): Likewise.
15618
15619 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15620
15621 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
15622
15623 2014-05-21 Marek Polacek <polacek@redhat.com>
15624
15625 PR sanitizer/61272
15626 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
15627
15628 2014-05-21 Martin Jambor <mjambor@suse.cz>
15629
15630 * doc/invoke.texi (Optimize Options): Document parameters
15631 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
15632 ipa-cp-array-index-hint-bonus.
15633
15634 2014-05-21 Mark Wielaard <mjw@redhat.com>
15635
15636 PR debug/16063
15637 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
15638 version >= 3 or not strict DWARF.
15639 * langhooks.h (struct lang_hooks_for_types): Add
15640 enum_underlying_base_type.
15641 * langhooks.c (lhd_enum_underlying_base_type): New function.
15642 * gcc/langhooks.h (struct lang_hooks_for_types): Add
15643 enum_underlying_base_type.
15644 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
15645 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
15646 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
15647
15648 2014-05-21 Richard Biener <rguenther@suse.de>
15649
15650 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
15651
15652 2014-05-21 John Marino <gnugcc@marino.st>
15653
15654 * config.gcc (*-*-dragonfly*): New target.
15655 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
15656 * configure: Regenerate.
15657 * config/dragonfly-stdint.h: New.
15658 * config/dragonfly.h: New.
15659 * config/dragonfly.opt: New.
15660 * config/i386/dragonfly.h: New.
15661 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
15662
15663 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15664
15665 * tree.def (VOID_CST): New.
15666 * tree-core.h (TI_VOID): New.
15667 * tree.h (void_node): New.
15668 * tree.c (tree_node_structure_for_code, tree_code_size)
15669 (iterative_hash_expr): Handle VOID_CST.
15670 (build_common_tree_nodes): Initialize void_node.
15671
15672 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
15673
15674 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
15675 functions.
15676 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
15677
15678 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
15679 more places.
15680
15681 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
15682 flag_reorder_blocks_and_partition.
15683 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
15684
15685 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
15686
15687 PR target/54236
15688 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
15689 constraints.
15690 (*addc_r_t): Add new insn_and_split.
15691
15692 2014-05-21 Jakub Jelinek <jakub@redhat.com>
15693
15694 PR middle-end/61252
15695 * omp-low.c (handle_simd_reference): New function.
15696 (lower_rec_input_clauses): Use it. Defer adding reference
15697 initialization even for reduction without placeholder if in simd,
15698 handle it properly later on.
15699
15700 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15701
15702 PR tree-optimization/60899
15703 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
15704 assume all static symbols will have definition wile parsing and
15705 check the do have definition later in compilation; check that
15706 variable referring symbol will be output before concluding that
15707 reference is safe; be conservative for referring local statics;
15708 be more precise about when comdat is output in other partition.
15709
15710 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15711
15712 PR bootstrap/60984
15713 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
15714 parameter.
15715 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
15716 (ipa_inline): Loop inline_to_all_callers until no more aliases
15717 are removed.
15718
15719 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15720
15721 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
15722 set writeonly flag only for vars actually written to.
15723
15724 2014-05-20 Dehao Chen <dehao@google.com>
15725
15726 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
15727 and callee count to get clone count.
15728 * tree-inline.c (expand_call_inline): Use callee count instead of bb
15729 count in copy_body.
15730
15731 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
15732
15733 PR rtl-optimization/61243
15734 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
15735
15736 2014-05-20 Xinliang David Li <davidxl@google.com>
15737
15738 * cgraphunit.c (walk_polymorphic_call_targets): Add
15739 dbgcnt and fopt-info support.
15740 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
15741 * ipa-devirt.c (ipa_devirt): Ditto.
15742 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
15743 * ipa.c (walk_polymorphic_call_targets): Ditto.
15744 * gimple-fold.c (fold_gimple_assign): Ditto.
15745 (gimple_fold_call): Ditto.
15746 * dbgcnt.def: New counter.
15747
15748 2014-05-20 DJ Delorie <dj@redhat.com>
15749
15750 * config/msp430/msp430.md (split): Don't allow subregs when
15751 splitting SImode adds.
15752 (andneghi): Fix subtraction logic.
15753 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
15754
15755 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15756
15757 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
15758 symbols.
15759 * except.c (switch_to_exception_section, resolve_unique_section,
15760 get_named_text_section, default_function_rodata_section,
15761 align_variable, get_block_for_decl, default_section_type_flags):
15762 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15763 * symtab.c (symtab_add_to_same_comdat_group,
15764 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
15765 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
15766 Likewise.
15767 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
15768 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
15769 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15770 (c6x_function_in_section_p): Likewise.
15771 * config/darwin.c (machopic_select_section): Likewise.
15772 * config/arm/arm.c (arm_function_in_section_p): Likewise.
15773 * config/mips/mips.c (mips_function_rodata_section): Likewise.
15774 * config/mep/mep.c (mep_select_section): LIkewise.
15775 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15776
15777 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
15778
15779 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
15780 EH region of calls to pure functions that can throw an exception.
15781 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
15782 (copy_reference_ops_from_call): Also copy the EH region of the call if
15783 it can throw an exception.
15784
15785 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15786
15787 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
15788 nested VEC_SELECTs that are inverses of each other.
15789
15790 2014-05-20 Richard Biener <rguenther@suse.de>
15791
15792 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
15793 (extract_and_process_scc_for_name): not here.
15794 (cond_dom_walker::before_dom_children): Only process
15795 stmts that end the BB in interesting ways.
15796 (run_scc_vn): Mark param uses as visited.
15797
15798 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15799
15800 * config/arm/arm.md (arith_shiftsi): Do not predicate for
15801 arm_restrict_it.
15802
15803 2014-05-20 Nick Clifton <nickc@redhat.com>
15804
15805 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
15806 (msp430_gimplify_va_arg_expr): New function.
15807 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
15808
15809 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
15810 operand 0 in order to prevent confusion about the number of
15811 registers involved.
15812
15813 2014-05-20 Richard Biener <rguenther@suse.de>
15814
15815 PR tree-optimization/61221
15816 * tree-ssa-pre.c (el_to_update): Remove.
15817 (eliminate_dom_walker::before_dom_children): Handle released
15818 VDEFs by value-numbering them to the associated VUSE. Update
15819 stmt immediately for substituted call address.
15820 (eliminate): Remove delayed stmt updating code.
15821 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
15822 possibly late re-numbered vuses.
15823 (vn_reference_lookup_2): Adjust.
15824 (vn_reference_lookup_pieces): Likewise.
15825 (vn_reference_lookup): Likewise.
15826
15827 2014-05-20 Richard Biener <rguenther@suse.de>
15828
15829 * config.gcc: Remove need_64bit_hwint.
15830 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
15831 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
15832 it to be true.
15833 * config.in: Regenerate.
15834 * configure: Likewise.
15835
15836 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
15837
15838 * doc/extend.texi: Create Label Attributes section,
15839 move all label attributes into it and reference it.
15840
15841 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
15842
15843 * arm.c (thumb1_reorg): When scanning backwards skip anything
15844 that's not a proper insn.
15845
15846 2014-05-19 Richard Biener <rguenther@suse.de>
15847
15848 PR tree-optimization/61221
15849 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15850 Do nothing for unreachable blocks.
15851 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
15852 Improve unreachability detection.
15853
15854 2014-05-19 Richard Biener <rguenther@suse.de>
15855
15856 PR tree-optimization/61209
15857 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
15858
15859 2014-05-19 Nick Clifton <nickc@redhat.com>
15860
15861 * except.c (init_eh): Fix computation of builtin setjmp buffer
15862 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
15863
15864 2014-05-19 Richard Biener <rguenther@suse.de>
15865
15866 PR tree-optimization/61184
15867 * tree-vrp.c (is_negative_overflow_infinity): Use
15868 TREE_OVERFLOW_P and do that check first.
15869 (is_positive_overflow_infinity): Likewise.
15870 (is_overflow_infinity): Likewise.
15871 (vrp_operand_equal_p): Properly treat operands with
15872 differing overflow as not equal.
15873
15874 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
15875
15876 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
15877 shift simplification where it was intended.
15878
15879 2014-05-19 Christian Bruel <christian.bruel@st.com>
15880
15881 PR target/61195
15882 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
15883
15884 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
15885
15886 PR target/61084
15887 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
15888 than wide_int.
15889
15890 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15891
15892 * reg-notes.def (CROSSING_JUMP): Likewise.
15893 * rtl.h (rtx_def): Update comment for jump flag.
15894 (CROSSING_JUMP_P): Define.
15895 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
15896 of a REG_CROSSING_JUMP note.
15897 * cfghooks.c (tidy_fallthru_edges): Likewise.
15898 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
15899 * emit-rtl.c (try_split): Likewise.
15900 * haifa-sched.c (sched_create_recovery_edges): Likewise.
15901 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15902 * jump.c (redirect_jump_2): Likewise.
15903 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
15904 (relax_delay_slots): Likewise.
15905 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
15906 (bbit_di): Likewise.
15907 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
15908 * config/sh/sh.md (jump_compact): Likewise.
15909 * bb-reorder.c (rotate_loop): Likewise.
15910 (pass_duplicate_computed_gotos::execute): Likewise.
15911 (add_reg_crossing_jump_notes): Rename to...
15912 (update_crossing_jump_flags): ...this.
15913 (pass_partition_blocks::execute): Update accordingly.
15914
15915 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15916
15917 * tree.h: Remove extraneous template <>.
15918
15919 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15920
15921 * ipa.c (symtab_remove_unreachable_nodes): Remove
15922 symbol from comdat group if its body was eliminated.
15923 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
15924 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
15925 (symtab_unregister_node): ... this one.
15926 (verify_symtab_base): More strict checking of comdats.
15927 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
15928
15929 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15930
15931 * tree-pass.h (make_pass_ipa_comdats): New pass.
15932 * timevar.def (TV_IPA_COMDATS): New timevar.
15933 * passes.def (pass_ipa_comdats): Add.
15934 * Makefile.in (OBJS): Add ipa-comdats.o
15935 * ipa-comdats.c: New file.
15936
15937 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15938
15939 * ipa.c (update_visibility_by_resolution_info): New function.
15940 (function_and_variable_visibility): Use it.
15941
15942 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15943
15944 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
15945 New functions.
15946 (FOR_EACH_DEFINED_SYMBOL): New macro.
15947 (varpool_first_static_initializer, varpool_next_static_initializer,
15948 varpool_first_defined_variable, varpool_next_defined_variable):
15949 Fix comments.
15950 (symtab_in_same_comdat_p): Correctly deal with inline functions.
15951
15952 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15953
15954 * ggc-page.c (ggc_handle_finalizers): Add comment.
15955
15956 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15957
15958 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
15959 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
15960 (ggc_internal_cleared_alloc): Likewise.
15961 * ggc-page.c (finalizer): New class.
15962 (vec_finalizer): Likewise.
15963 (globals::finalizers): New member.
15964 (globals::vec_finalizers): Likewise.
15965 (ggc_internal_alloc): Record the finalizer if any for the block being
15966 allocated.
15967 (ggc_handle_finalizers): New function.
15968 (ggc_collect): Call ggc_handle_finalizers.
15969 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
15970 finalizer.
15971 (ggc_internal_cleared_alloc): Likewise.
15972 (finalize): New function.
15973 (need_finalization_p): Likewise.
15974 (ggc_alloc): Install the type's destructor as the finalizer if it
15975 might do something.
15976 (ggc_cleared_alloc): Likewise.
15977 (ggc_vec_alloc): Likewise.
15978 (ggc_cleared_vec_alloc): Likewise.
15979
15980 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15981
15982 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
15983
15984 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15985
15986 * alias.c (record_alias_subset): Adjust.
15987 * bitmap.c (bitmap_element_allocate): Likewise.
15988 (bitmap_gc_alloc_stat): Likewise.
15989 * cfg.c (init_flow): Likewise.
15990 (alloc_block): Likewise.
15991 (unchecked_make_edge): Likewise.
15992 * cfgloop.c (alloc_loop): Likewise.
15993 (flow_loops_find): Likewise.
15994 (rescan_loop_exit): Likewise.
15995 * cfgrtl.c (init_rtl_bb_info): Likewise.
15996 * cgraph.c (insert_new_cgraph_node_version): Likewise.
15997 (cgraph_allocate_node): Likewise.
15998 (cgraph_create_edge_1): Likewise.
15999 (cgraph_allocate_init_indirect_info): Likewise.
16000 * cgraphclones.c (cgraph_clone_edge): Likewise.
16001 * cgraphunit.c (add_asm_node): Likewise.
16002 (init_lowered_empty_function): Likewise.
16003 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
16004 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
16005 (alpha_use_linkage): Likewise.
16006 * config/arc/arc.c (arc_init_machine_status): Likewise.
16007 * config/arm/arm.c (arm_init_machine_status): Likewise.
16008 * config/avr/avr.c (avr_init_machine_status): Likewise.
16009 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
16010 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
16011 * config/cris/cris.c (cris_init_machine_status): Likewise.
16012 * config/darwin.c (machopic_indirection_name): Likewise.
16013 (darwin_build_constant_cfstring): Likewise.
16014 (darwin_enter_string_into_cfstring_table): Likewise.
16015 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
16016 * config/frv/frv.c (frv_init_machine_status): Likewise.
16017 * config/i386/i386.c (get_dllimport_decl): Likewise.
16018 (ix86_init_machine_status): Likewise.
16019 (assign_386_stack_local): Likewise.
16020 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
16021 (i386_pe_maybe_record_exported_symbol): Likewise.
16022 (i386_pe_record_stub): Likewise.
16023 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
16024 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
16025 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
16026 (m32c_note_pragma_address): Likewise.
16027 * config/mep/mep.c (mep_init_machine_status): Likewise.
16028 (mep_note_pragma_flag): Likewise.
16029 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
16030 (mips16_local_alias): Likewise.
16031 (mips_init_machine_status): Likewise.
16032 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
16033 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
16034 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
16035 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
16036 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
16037 * config/pa/pa.c (pa_init_machine_status): Likewise.
16038 (pa_get_deferred_plabel): Likewise.
16039 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
16040 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
16041 (rs6000_init_machine_status): Likewise.
16042 (output_toc): Likewise.
16043 * config/s390/s390.c (s390_init_machine_status): Likewise.
16044 * config/score/score.c (score_output_external): Likewise.
16045 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
16046 * config/spu/spu.c (spu_init_machine_status): Likewise.
16047 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
16048 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
16049 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
16050 * coverage.c (coverage_end_function): Likewise.
16051 * dbxout.c (dbxout_init): Likewise.
16052 * doc/gty.texi: Don't mention variable_size attribute.
16053 * dwarf2cfi.c (new_cfi): Adjust.
16054 (new_cfi_row): Likewise.
16055 (copy_cfi_row): Likewise.
16056 (create_cie_data): Likewise.
16057 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
16058 (new_loc_descr): Likewise.
16059 (find_AT_string_in_table): Likewise.
16060 (add_addr_table_entry): Likewise.
16061 (new_die): Likewise.
16062 (add_var_loc_to_decl): Likewise.
16063 (clone_die): Likewise.
16064 (clone_as_declaration): Likewise.
16065 (break_out_comdat_types): Likewise.
16066 (new_loc_list): Likewise.
16067 (add_loc_descr_to_each): Likewise.
16068 (add_location_or_const_value_attribute): Likewise.
16069 (add_linkage_name): Likewise.
16070 (lookup_filename): Likewise.
16071 (dwarf2out_var_location): Likewise.
16072 (new_line_info_table): Likewise.
16073 (dwarf2out_init): Likewise.
16074 (mem_loc_descriptor): Likewise.
16075 (loc_descriptor): Likewise.
16076 (add_const_value_attribute): Likewise.
16077 (tree_add_const_value_attribute): Likewise.
16078 (comp_dir_string): Likewise.
16079 (dwarf2out_vms_debug_main_pointer): Likewise.
16080 (string_cst_pool_decl): Likewise.
16081 * emit-rtl.c (set_mem_attrs): Likewise.
16082 (get_reg_attrs): Likewise.
16083 (start_sequence): Likewise.
16084 (init_emit): Likewise.
16085 (init_emit_regs): Likewise.
16086 * except.c (init_eh_for_function): Likewise.
16087 (gen_eh_region): Likewise.
16088 (gen_eh_region_catch): Likewise.
16089 (gen_eh_landing_pad): Likewise.
16090 (add_call_site): Likewise.
16091 * function.c (add_frame_space): Likewise.
16092 (insert_temp_slot_address): Likewise.
16093 (assign_stack_temp_for_type): Likewise.
16094 (get_hard_reg_initial_val): Likewise.
16095 (allocate_struct_function): Likewise.
16096 (prepare_function_start): Likewise.
16097 (types_used_by_var_decl_insert): Likewise.
16098 * gengtype.c (variable_size_p): Remove function.
16099 (enum alloc_quantity): Remove enum.
16100 (write_typed_alloc_def): Remove function.
16101 (write_typed_struct_alloc_def): Likewise.
16102 (write_typed_typedef_alloc_def): Likewise.
16103 (write_typed_alloc_defns): Likewise.
16104 (main): Adjust.
16105 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
16106 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
16107 * ggc.h (ggc_alloc): new function.
16108 (ggc_cleared_alloc): Likewise.
16109 (ggc_vec_alloc): Template on type of vector element, and remove
16110 element size argument.
16111 (ggc_cleared_vec_alloc): Likewise.
16112 * gimple.c (gimple_build_omp_for): Adjust.
16113 (gimple_copy): Likewise.
16114 * ipa-cp.c (get_replacement_map): Likewise.
16115 (find_aggregate_values_for_callers_subset): Likewise.
16116 (known_aggs_to_agg_replacement_list): Likewise.
16117 * ipa-devirt.c (get_odr_type): Likewise.
16118 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
16119 (read_agg_replacement_chain): Likewise.
16120 * loop-iv.c (get_simple_loop_desc): Likewise.
16121 * lto-cgraph.c (input_node_opt_summary): Likewise.
16122 * lto-section-in.c (lto_new_in_decl_state): Likewise.
16123 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
16124 (input_eh_region): Likewise.
16125 (input_eh_lp): Likewise.
16126 (input_cfg): Likewise.
16127 * optabs.c (set_optab_libfunc): Likewise.
16128 (init_tree_optimization_optabs): Likewise.
16129 (set_conv_libfunc): Likewise.
16130 * passes.c (do_per_function_toporder): Likewise.
16131 * rtl.h: Don't use variable_size gty attribute.
16132 * sese.c (if_region_set_false_region): Adjust.
16133 * stringpool.c (gt_pch_save_stringpool): Likewise.
16134 * target-globals.c (save_target_globals): Likewise.
16135 * toplev.c (general_init): Likewise.
16136 * trans-mem.c (record_tm_replacement): Likewise.
16137 (split_bb_make_tm_edge): Likewise.
16138 * tree-cfg.c (move_sese_region_to_fn): Likewise.
16139 * tree-data-ref.h (lambda_vector_new): Likewise.
16140 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
16141 * tree-iterator.c (tsi_link_before): Likewise.
16142 (tsi_link_after): Likewise.
16143 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
16144 * tree-ssa-loop-niter.c (record_estimate): Likewise.
16145 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
16146 * tree-ssa-operands.h: Don't use variable_size gty attribute.
16147 * tree-ssa.c (init_tree_ssa): Adjust.
16148 * tree-ssanames.c (set_range_info): Likewise.
16149 (get_ptr_info): Likewise.
16150 (duplicate_ssa_name_ptr_info): Likewise.
16151 (duplicate_ssa_name_range_info): Likewise.
16152 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
16153 (unpack_ts_fixed_cst_value_fields): Likewise.
16154 * tree.c (build_fixed): Likewise.
16155 (build_real): Likewise.
16156 (build_string): Likewise.
16157 (decl_priority_info): Likewise.
16158 (decl_debug_expr_insert): Likewise.
16159 (decl_value_expr_insert): Likewise.
16160 (decl_debug_args_insert): Likewise.
16161 (type_hash_add): Likewise.
16162 (build_omp_clause): Likewise.
16163 * ubsan.c (decl_for_type_insert): Likewise.
16164 * varasm.c (get_unnamed_section): Likewise.
16165 (get_noswitch_section): Likewise.
16166 (get_section): Likewise.
16167 (get_block_for_section): Likewise.
16168 (create_block_symbol): Likewise.
16169 (build_constant_desc): Likewise.
16170 (create_constant_pool): Likewise.
16171 (force_const_mem): Likewise.
16172 (record_tm_clone_pair): Likewise.
16173 * varpool.c (varpool_create_empty_node): Likewise.
16174
16175 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
16176
16177 * dwarf2out.c (tree_add_const_value_attribute): Call
16178 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
16179 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
16180 instead of ggc_internal_<x>alloc_stat.
16181 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
16182 (ggc_realloc): Likewise.
16183 * ggc-none.c (ggc_internal_alloc): Likewise.
16184 (ggc_internal_cleared_alloc): Likewise.
16185 * ggc-page.c: Likewise.
16186 * ggc.h (ggc_internal_alloc_stat): Likewise.
16187 (ggc_internal_alloc): Remove macro.
16188 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
16189 (ggc_internal_cleared_alloc): Remove macro.
16190 (GGC_RESIZEVEC): Adjust.
16191 (ggc_resizevar): Remove macro.
16192 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
16193 (ggc_internal_cleared_vec_alloc_stat): Likewise.
16194 (ggc_internal_vec_cleared_alloc): Remove macro.
16195 (ggc_alloc_atomic_stat): Drop _stat suffix.
16196 (ggc_alloc_atomic): Remove macro.
16197 (ggc_alloc_cleared_atomic): Remove macro.
16198 (ggc_alloc_string_stat): Drop _stat suffix.
16199 (ggc_alloc_string): Remove macro.
16200 (ggc_alloc_rtx_def_stat): Adjust.
16201 (ggc_alloc_tree_node_stat): Likewise.
16202 (ggc_alloc_cleared_tree_node_stat): Likewise.
16203 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
16204 (ggc_alloc_cleared_simd_clone_stat): Likewise.
16205 * gimple.c (gimple_build_omp_for): Likewise.
16206 (gimple_copy): Likewise.
16207 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
16208 * toplev.c (realloc_for_line_map): Adjust.
16209 * tree-data-ref.h (lambda_vector_new): Likewise.
16210 * tree-phinodes.c (allocate_phi_node): Likewise.
16211 * tree.c (grow_tree_vec_stat): Likewise.
16212 * vec.h (va_gc::reserve): Adjust.
16213
16214 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
16215
16216 * config/microblaze/microblaze.c (break_handler): New Declaration.
16217 (microblaze_break_function_p,microblaze_is_break_handler): New.
16218 (compute_frame_size): Use microblaze_break_function_p.
16219 Add the test of break_handler.
16220 (microblaze_function_prologue) : Add the test of variable
16221 break_handler. Check the fnname by BREAK_HANDLER_NAME.
16222 (microblaze_function_epilogue) : Add the test of break_handler.
16223 (microblaze_globalize_label) : Add the test of break_handler.
16224 Check the name by BREAK_HANDLER_NAME.
16225
16226 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
16227
16228 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
16229 microblaze_is_break_handler test.
16230 (call_internal1,call_value_intern): Use microblaze_break_function_p.
16231 Use SYMBOL_REF_DECL.
16232
16233 * config/microblaze/microblaze-protos.h
16234 (microblaze_break_function_p,microblaze_is_break_handler):
16235 New Declaration.
16236
16237 * doc/extend.texi (MicroBlaze break_handler Functions): Document
16238 new MicroBlaze break_handler functions.
16239
16240 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
16241
16242 * doc/extend.texi (Size of an asm): Move node text according
16243 to its @menu entry position.
16244
16245 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
16246
16247 PR tree-optimization/61140
16248 PR tree-optimization/61150
16249 PR tree-optimization/61197
16250 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
16251
16252 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
16253
16254 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
16255
16256 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
16257
16258 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
16259 __SIZEOF_INT128__ is defined.
16260
16261 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
16262
16263 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
16264 (rs6000_delegitimize_address): Use it.
16265
16266 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
16267
16268 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
16269 inplace argument. Store the new address in the original MEM when true.
16270 * emit-rtl.c (change_address_1): Likewise.
16271 (adjust_address_1, adjust_automodify_address_1, offset_address):
16272 Update accordingly.
16273 * rtl.h (plus_constant): Add an inplace argument.
16274 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
16275 when true. Avoid generating (plus X (const_int 0)).
16276 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
16277 in-place. Pass true to plus_constant.
16278 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
16279
16280 2014-05-16 Dehao Chen <dehao@google.com>
16281
16282 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
16283
16284 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
16285
16286 PR target/54089
16287 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
16288 patterns.
16289 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
16290
16291 2014-05-16 Dehao Chen <dehao@google.com>
16292
16293 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
16294 optimize_function_for_size_p.
16295 * regs.h (REG_FREQ_FROM_BB): Likewise.
16296
16297 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
16298
16299 PR target/51244
16300 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
16301 negt_reg_operand cases.
16302 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
16303 predicate.
16304 * config/sh/predicates.md (cbranch_treg_value): Simplify.
16305
16306 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
16307
16308 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
16309 target variants.
16310
16311 2014-05-16 David Malcolm <dmalcolm@redhat.com>
16312
16313 Revert:
16314 2014-04-29 David Malcolm <dmalcolm@redhat.com>
16315
16316 * tree-cfg.c (dump_function_to_file): Dump the return type of
16317 functions, in a line to itself before the function body, mimicking
16318 the layout of a C function.
16319
16320 2014-05-16 Dehao Chen <dehao@google.com>
16321
16322 * cfghooks.c (make_forwarder_block): Use direct computation to
16323 get fall-through edge's count and frequency.
16324
16325 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
16326
16327 * config/arc/arc.c (arc_init): Fix typo in error message.
16328 * config/i386/i386.c (ix86_expand_builtin): Likewise.
16329 (split_stack_prologue_scratch_regno): Likewise.
16330 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
16331 word from error message.
16332
16333 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
16334
16335 * ira-costs.c: Fix typo in comment.
16336
16337 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
16338
16339 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
16340
16341 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
16342
16343 * varpool.c (dump_varpool_node): Dump write-only flag.
16344 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
16345 write-only flag.
16346 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
16347 write-only variables.
16348 * ipa.c (process_references): New function.
16349 (set_readonly_bit): New function.
16350 (set_writeonly_bit): New function.
16351 (clear_addressable_bit): New function.
16352 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
16353 fix handling of aliases.
16354 * cgraph.h (struct varpool_node): Add writeonly flag.
16355
16356 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
16357
16358 PR rtl-optimization/60969
16359 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
16360 Calculate costs for this case.
16361
16362 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
16363
16364 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
16365 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
16366
16367 2014-05-16 Richard Biener <rguenther@suse.de>
16368
16369 PR tree-optimization/61194
16370 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
16371 bool patterns ending in a COND_EXPR.
16372
16373 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16374
16375 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
16376
16377 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16378
16379 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
16380 where we were unable to cost an RTX.
16381
16382 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16383
16384 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
16385 HIGH, LO_SUM.
16386
16387 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16388 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16389
16390 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
16391
16392 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16393 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16394
16395 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
16396 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
16397
16398 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16399 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16400
16401 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
16402 operators.
16403
16404 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16405 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16406
16407 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16408 DIV/MOD.
16409
16410 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16411 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16412
16413 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
16414 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
16415
16416 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16417 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16418
16419 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16420 rotates and shifts.
16421
16422 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16423 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16424
16425 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
16426 ZERO_EXTEND and SIGN_EXTEND better.
16427
16428 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16429 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16430
16431 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
16432 logical operations.
16433
16434 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16435 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16436
16437 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
16438 costs when costing loads and stores to memory.
16439
16440 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16441 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
16442
16443 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
16444 for SET RTX.
16445
16446 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16447
16448 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
16449
16450 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16451 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16452
16453 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
16454 to...
16455 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
16456 well formed.
16457 (aarch64_rtx_mult_cost): New.
16458 (aarch64_rtx_costs): Use it, refactor as appropriate.
16459
16460 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16461 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16462
16463 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
16464 emit instructions, return number of instructions which would
16465 be emitted.
16466 (aarch64_add_constant): Update call to aarch64_build_constant.
16467 (aarch64_output_mi_thunk): Likewise.
16468 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
16469 a CONST_DOUBLE.
16470
16471 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16472
16473 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
16474 (TARGET_RTX_COSTS): Call it.
16475
16476 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16477
16478 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
16479 (cortexa57_vector_cost): Likewise.
16480 (cortexa57_tunings): Use them.
16481
16482 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16483
16484 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
16485 (cpu_addrcost_table): Use it.
16486 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
16487 (aarch64_address_cost): Rewrite using aarch64_classify_address,
16488 move it.
16489
16490 2014-05-16 Richard Biener <rguenther@suse.de>
16491
16492 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
16493 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
16494 (visit_phi): Ignore edges marked as not executable.
16495 (class cond_dom_walker): New.
16496 (cond_dom_walker::before_dom_children): Value-number
16497 control statements and mark successor edges as not
16498 executable if possible.
16499 (run_scc_vn): First walk all control statements in
16500 dominator order, marking edges as not executable.
16501 * tree-inline.c (copy_edges_for_bb): Be not confused
16502 about random edge flags.
16503
16504 2014-05-16 Richard Biener <rguenther@suse.de>
16505
16506 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
16507
16508 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
16509
16510 PR target/61193
16511 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
16512 (__TM_simple_begin): Use it.
16513 (__TM_begin): Likewise.
16514
16515 2014-05-15 Martin Jambor <mjambor@suse.cz>
16516
16517 PR ipa/61085
16518 * ipa-prop.c (update_indirect_edges_after_inlining): Check
16519 type_preserved flag when the indirect edge is polymorphic.
16520
16521 2014-05-15 Martin Jambor <mjambor@suse.cz>
16522
16523 PR tree-optimization/61090
16524 * tree-sra.c (sra_modify_expr): Pass the current gsi to
16525 build_ref_for_model.
16526
16527 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16528
16529 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
16530 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
16531
16532 2014-05-15 Jakub Jelinek <jakub@redhat.com>
16533
16534 PR tree-optimization/61158
16535 * fold-const.c (fold_binary_loc): If X is zero-extended and
16536 shiftc >= prec, make sure zerobits is all ones instead of
16537 invoking undefined behavior.
16538
16539 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16540
16541 * regcprop.h: New file.
16542 * regcprop.c (skip_debug_insn_p): New decl.
16543 (replace_oldest_value_reg): Check skip_debug_insn_p.
16544 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
16545 * shrink-wrap.c: Include regcprop.h.
16546 (prepare_shrink_wrap): Call
16547 copyprop_hardreg_forward_bb_without_debug_insn.
16548
16549 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16550
16551 * shrink-wrap.h: Update comment.
16552 * shrink-wrap.c: Update comment.
16553 (next_block_for_reg): Rename to live_edge_for_reg.
16554 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
16555 (move_insn_for_shrink_wrap): Split live_edge.
16556 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
16557
16558 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16559
16560 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
16561 Delete.
16562 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
16563 * config/sparc/sparc.md (fptype_ut699): New attribute.
16564 (in_branch_delay): Return false if -mfix-ut699 is specified and
16565 fptype_ut699 is set to single.
16566 (truncdfsf2): Add fptype_ut699 attribute.
16567 (fix_truncdfsi2): Likewise.
16568 (floatsisf2): Change fptype attribute.
16569 (fix_truncsfsi2): Likewise.
16570 (negtf2_notv9): Delete.
16571 (negtf2_v9): Likewise.
16572 (negtf2_hq): New instruction.
16573 (negtf2): New instruction and splitter.
16574 (negdf2_notv9): Rewrite.
16575 (abstf2_notv9): Delete.
16576 (abstf2_hq_v9): Likewise.
16577 (abstf2_v9): Likewise.
16578 (abstf2_hq): New instruction.
16579 (abstf2): New instruction and splitter.
16580 (absdf2_notv9): Rewrite.
16581
16582 2014-05-14 Cary Coutant <ccoutant@google.com>
16583
16584 PR debug/61013
16585 * opts.c (common_handle_option): Don't special-case "-g".
16586 (set_debug_level): Default to at least level 2 with "-g".
16587
16588 2014-05-14 DJ Delorie <dj@redhat.com>
16589
16590 * config/msp430/msp430.c (msp430_builtin): Add
16591 MSP430_BUILTIN_DELAY_CYCLES.
16592 (msp430_init_builtins): Register void __delay_cycles(long long).
16593 (msp430_builtin_decl): Add it.
16594 (cg_magic_constant): New.
16595 (msp430_expand_delay_cycles): New.
16596 (msp430_expand_builtin): Call it.
16597 (msp430_print_operand_raw): Change integer printing from "int" to
16598 HOST_WIDE_INT.
16599 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
16600 (delay_cycles_start): New.
16601 (delay_cycles_end): New.
16602 (delay_cycles_32): New.
16603 (delay_cycles_32x): New.
16604 (delay_cycles_16): New.
16605 (delay_cycles_16x): New.
16606 (delay_cycles_2): New.
16607 (delay_cycles_1): New.
16608 * doc/extend.texi: Document __delay_cycles().
16609
16610 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
16611
16612 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
16613 length attribute computation.
16614
16615 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
16616
16617 PR debug/61188
16618 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
16619
16620 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
16621
16622 PR target/61084
16623 * config/sparc/sparc.md: Fix types of low and high in DI constant
16624 splitter. Use gen_int_mode in some other splitters.
16625
16626 2014-05-14 Martin Jambor <mjambor@suse.cz>
16627
16628 PR ipa/60897
16629 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
16630
16631 2014-05-14 James Norris <jnorris@codesourcery.com>
16632
16633 * omp-low.c (expand_parallel_call): Remove shadow variable.
16634 (expand_omp_taskreg): Likewise.
16635
16636 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
16637
16638 * common/config/i386/i386-common.c
16639 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
16640 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
16641 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
16642 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
16643 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
16644 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
16645 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
16646 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
16647 xsavecintrin.h, xsavesintrin.h.
16648 (x86_64-*-*): Ditto.
16649 * config/i386/clflushoptintrin.h: New.
16650 * config/i386/xsavecintrin.h: Ditto.
16651 * config/i386/xsavesintrin.h: Ditto.
16652 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
16653 (bit_XSAVES): Ditto.
16654 (bit_XSAVES): Ditto.
16655 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
16656 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
16657 -mno-clflushopt.
16658 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16659 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
16660 OPTION_MASK_ISA_XSAVES.
16661 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
16662 -mxsavec, -mxsaves.
16663 (PTA_CLFLUSHOPT) Define.
16664 (PTA_XSAVEC): Ditto.
16665 (PTA_XSAVES): Ditto.
16666 (ix86_option_override_internal): Handle new options.
16667 (ix86_valid_target_attribute_inner_p): Ditto.
16668 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
16669 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
16670 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
16671 (bdesc_special_args): Add __builtin_ia32_xsaves,
16672 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
16673 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
16674 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
16675 (ix86_expand_builtin): Handle new builtins.
16676 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
16677 (TARGET_CLFLUSHOPT_P): Ditto.
16678 (TARGET_XSAVEC): Ditto.
16679 (TARGET_XSAVEC_P): Ditto.
16680 (TARGET_XSAVES): Ditto.
16681 (TARGET_XSAVES_P): Ditto.
16682 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
16683 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
16684 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
16685 (ANY_XRSTOR): New.
16686 (ANY_XRSTOR64): Ditto.
16687 (xrstor): Ditto.
16688 (xrstor): Change into <xrstor>.
16689 (xrstor_rex64): Change into <xrstor>_rex64.
16690 (xrstor64): Change into <xrstor>64
16691 (clflushopt): New.
16692 * config/i386/i386.opt (mclflushopt): New.
16693 (mxsavec): Ditto.
16694 (mxsaves): Ditto.
16695 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
16696 xsavecintrin.h.
16697 * doc/invoke.texi: Document new options.
16698
16699 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16700
16701 PR rtl-optimization/60866
16702 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
16703 Default it to -1. Pass it down to init_simplejump_data.
16704 (init_simplejump_data): New parameter old_seqno. Pass it down
16705 to get_seqno_for_a_jump.
16706 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
16707 initializing new jump seqno as a last resort. Add comment.
16708 (sel_redirect_edge_and_branch): Save old seqno of the conditional
16709 jump and pass it down to sel_init_new_insn.
16710 (sel_redirect_edge_and_branch_force): Likewise.
16711
16712 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
16713
16714 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
16715 shifted values to avoid build warning.
16716
16717 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16718
16719 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
16720 * cfgrtl.c (rtl_merge_blocks): Fix comment.
16721 (cfg_layout_merge_blocks): Likewise.
16722 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
16723
16724 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16725
16726 PR rtl-optimization/60901
16727 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
16728 bb predecessor belongs to the same scheduling region. Adjust comment.
16729
16730 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
16731
16732 * doc/sourcebuild.texi: (dfp_hw): Document.
16733 (p8vector_hw): Likewise.
16734 (powerpc_eabi_ok): Likewise.
16735 (powerpc_elfv2): Likewise.
16736 (powerpc_htm_ok): Likewise.
16737 (ppc_recip_hw): Likewise.
16738 (vsx_hw): Likewise.
16739
16740 2014-05-13 Cary Coutant <ccoutant@google.com>
16741
16742 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
16743
16744 2014-05-13 David Malcolm <dmalcolm@redhat.com>
16745
16746 * gengtype-parse.c (require3): Eliminate in favor of...
16747 (require4): New.
16748 (require_template_declaration): Update to support optional single *
16749 on a type.
16750
16751 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
16752 (create_user_defined_type): Handle a single level of explicit
16753 pointerness within template arguments.
16754 (struct write_types_data): Add field "kind".
16755 (filter_type_name): Handle "*" character.
16756 (write_user_func_for_structure_ptr): Require a write_types_data
16757 rather than just a prefix string, so that we can look up the kind
16758 of the wtd and use it as an index into wrote_user_func_for_ptr,
16759 ensuring that such functions are written at most once. Support
16760 subclasses by invoking the marking function of the ultimate base class.
16761 (write_user_func_for_structure_body): Require a write_types_data
16762 rather than just a prefix string, so that we can pass this to
16763 write_user_func_for_structure_ptr.
16764 (write_func_for_structure): Likewise.
16765 (ggc_wtd): Add initializer of new "kind" field.
16766 (pch_wtd): Likewise.
16767
16768 * gengtype.h (enum write_types_kinds): New.
16769 (struct type): Add field wrote_user_func_for_ptr to the "s"
16770 union member.
16771
16772 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16773
16774 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
16775 instead of const_binop.
16776 (fold_binary_loc): Likewise.
16777
16778 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16779
16780 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
16781 calculation to match get_ref_base_and_extent.
16782
16783 2014-05-13 Catherine Moore <clm@codesourcery.com>
16784 Sandra Loosemore <sandra@codesourcery.com>
16785
16786 * configure.ac: Fix assembly for explicit JALR relocation check.
16787 * configure: Regenerate.
16788
16789 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16790
16791 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
16792 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
16793 Remove associated type declarations and initialisations.
16794 (arm_expand_neon_builtin): Likewise.
16795 (neon_emit_pair_result_insn): Delete.
16796 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
16797 * config/arm/neon.md (neon_vtrn<mode>): Delete.
16798 (neon_vzip<mode>): Likewise.
16799 (neon_vuzp<mode>): Likewise.
16800
16801 2014-05-13 Richard Biener <rguenther@suse.de>
16802
16803 PR ipa/60973
16804 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
16805 it needs revisiting whether the call still may be tail-called.
16806
16807 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16808
16809 * rtl.def (SYMBOL_REF): Remove middle "0" field.
16810 * rtl.h (block_symbol): Reduce number of fields to 2.
16811 (rtx_def): Add u2.symbol_ref_flags.
16812 (SYMBOL_REF_FLAGS): Use it.
16813 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
16814 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
16815 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
16816 Lower index of SYMBOL_REF_DATA.
16817 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
16818 Print SYMBOL_REF_FLAGS at the same time.
16819 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
16820
16821 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16822
16823 * rtl.def (VAR_LOCATION): Remove "i" field.
16824 * rtl.h (rtx_def): Add u2.var_location_status.
16825 (PAT_VAR_LOCATION_STATUS): Use it.
16826 (gen_rtx_VAR_LOCATION): Declare.
16827 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
16828 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
16829 * var-tracking.c (emit_note_insn_var_location): Remove casts.
16830
16831 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16832
16833 * rtl.def (scratch): Fix outdated comment and remove "0" field.
16834 * gengtype.c (adjust_field_rtx_def): Update accordingly.
16835
16836 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16837
16838 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
16839 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
16840 * rtl.h (rtx_def): Add insn_uid to u2 field.
16841 (RTX_FLAG_CHECK8): Delete in favor of...
16842 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
16843 (INSN_DELETED_P): Update accordingly.
16844 (INSN_UID): Use u2.insn_uid.
16845 (INSN_CHAIN_CODE_P): Define.
16846 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
16847 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
16848 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
16849 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
16850 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
16851 indices accordingly.
16852 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
16853 Update indices for insn-chain rtxes.
16854 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
16855 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
16856 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
16857 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
16858 * combine.c (try_combine): Likewise.
16859 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16860
16861 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16862
16863 * rtl.def (REG): Remove middle field.
16864 * rtl.h (rtx_def): Add orignal_regno to u2.
16865 (ORIGINAL_REGNO): Use it instead of field 1.
16866 (REG_ATTRS): Lower field index accordingly.
16867 * gengtype.c (adjust_field_rtx_def): Remove handling of
16868 ORIGINAL_REGNO. Move REG_ATTRS index down.
16869 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
16870 code that prints the REGNO.
16871
16872 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16873
16874 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
16875 GENERATOR_FILE.
16876
16877 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16878
16879 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
16880
16881 2014-05-13 Bin Cheng <bin.cheng@arm.com>
16882
16883 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
16884 (alloc_iv): Lower base expressions containing ADDR_EXPR.
16885
16886 2014-05-13 Ian Bolton <ian.bolton@arm.com>
16887
16888 * config/aarch64/aarch64-protos.h
16889 (aarch64_hard_regno_caller_save_mode): New prototype.
16890 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
16891 New function.
16892 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
16893
16894 2014-05-13 Christian Bruel <christian.bruel@st.com>
16895
16896 * target.def (mode_switching): New hook vector.
16897 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
16898 (mode_exit, modepriority_to_mode): Likewise.
16899 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
16900 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16901 * target.h: Include tm.h and hard-reg-set.h.
16902 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
16903 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
16904 * doc/tm.texi Regenerate.
16905 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16906 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16907 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
16908 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
16909 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16910 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16911 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
16912 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
16913 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
16914 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
16915 (ix86_emit_mode_set): Hookify.
16916 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
16917 Delete.
16918 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16919 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
16920 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
16921 (epiphany_mode_priority_to_mode): Remove declaration.
16922 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
16923 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
16924 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
16925 Likewise.
16926 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
16927 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
16928 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
16929
16930 2014-05-13 Jakub Jelinek <jakub@redhat.com>
16931
16932 PR target/61060
16933 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
16934 is const0_rtx, return immediately. Don't test count == 0 when
16935 it is always true.
16936
16937 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16938
16939 * Makefile.in: add shrink-wrap.o.
16940 * config/i386/i386.c: include "shrink-wrap.h"
16941 * function.c: Likewise.
16942 (requires_stack_frame_p, next_block_for_reg,
16943 move_insn_for_shrink_wrap, prepare_shrink_wrap,
16944 dup_block_and_redirect): Move to shrink-wrap.c
16945 (thread_prologue_and_epilogue_insns): Extract three code segments
16946 as functions in shrink-wrap.c
16947 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
16948 shrink-wrap.h
16949 * shrink-wrap.c: New file.
16950 * shrink-wrap.h: New file.
16951
16952 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16953
16954 * doc/extend.texi: Reflect current numbers of pragmas. Remove
16955 reference to Solaris.
16956
16957 2014-05-12 Mike Stump <mikestump@comcast.net>
16958
16959 PR other/31778
16960 * genattrtab.c (filename): Add.
16961 (convert_set_attr_alternative): Improve error message.
16962 (check_defs): Restore read_md_filename for error messages.
16963 (gen_insn): Save filename.
16964
16965 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
16966
16967 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
16968 -fno-local-ivars and -fivar-visibility.
16969 * c-family/c.opt: Make -Wshadow also implicitly enable
16970 -Wshadow-ivar.
16971
16972 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16973
16974 * doc/tm.texi: Remove reference to deleted macro.
16975 * doc/tm.texi.in: Likewise.
16976
16977 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16978
16979 PR target/60991
16980 * config/avr/avr.c (avr_out_store_psi): Use correct constant
16981 to restore Y.
16982
16983 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
16984
16985 PR libgcc/61152
16986 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
16987 * config/arm/aout.h (License): Same.
16988 * config/arm/bpabi.h (License): Same.
16989 * config/arm/elf.h (License): Same.
16990 * config/arm/linux-elf.h (License): Same.
16991 * config/arm/linux-gas.h (License): Same.
16992 * config/arm/netbsd-elf.h (License): Same.
16993 * config/arm/uclinux-eabi.h (License): Same.
16994 * config/arm/uclinux-elf.h (License): Same.
16995 * config/arm/vxworks.h (License): Same.
16996
16997 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16998
16999 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
17000 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
17001 number of operands to 3.
17002 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
17003 * tree-nested.c (convert_nonlocal_omp_clauses,
17004 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
17005 * gimplify.c (gimplify_scan_omp_clauses): Handle
17006 OMP_CLAUSE_LINEAR_STMT.
17007 * omp-low.c (lower_rec_input_clauses): Fix typo.
17008 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
17009 cast between Fortran boolean_type_node and C _Bool if
17010 needed.
17011
17012 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
17013
17014 PR tree-optimization/61136
17015 * wide-int.h (multiple_of_p): Define a version that doesn't return
17016 the quotient.
17017 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
17018 integer_zerop/const_binop pair.
17019 (multiple_of_p): Likewise, converting both operands to widest_int
17020 precision.
17021
17022 2014-05-09 Teresa Johnson <tejohnson@google.com>
17023
17024 * cgraphunit.c (analyze_functions): Use correct dump file.
17025
17026 2014-05-09 Florian Weimer <fweimer@redhat.com>
17027
17028 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
17029 expand_used_vars.
17030 (stack_protect_return_slot_p): New function.
17031 (expand_used_vars): Call stack_protect_decl_p and
17032 stack_protect_return_slot_p for -fstack-protector-strong.
17033
17034 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
17035 Andrew Haley <aph@redhat.com>
17036 Richard Sandiford <rdsandiford@googlemail.com>
17037
17038 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
17039 pages.
17040
17041 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
17042
17043 PR middle-end/61111
17044 * fold-const.c (fold_binary_loc): Changed width of mask.
17045
17046 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
17047
17048 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
17049 unsigned int initializers for regno_in, regno_out.
17050
17051 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
17052
17053 PR target/61055
17054 * config/avr/avr.md (cc): Add new attribute set_vzn.
17055 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
17056 Set cc insn attribute to set_vzn instead of set_zn for alternatives
17057 with INC, DEC or NEG.
17058 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
17059 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
17060 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
17061
17062 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17063
17064 Revert:
17065 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17066
17067 * wide-int.cc (UTItype): Define.
17068 (UDWtype): Define for appropriate W_TYPE_SIZE.
17069
17070 2014-05-09 Richard Biener <rguenther@suse.de>
17071
17072 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
17073 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
17074 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
17075 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
17076 ssa_propagate): Adjust.
17077
17078 2014-05-08 Jeff Law <law@redhat.com>
17079
17080 PR tree-optimization/61009
17081 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
17082 tri-state rather than a boolean. When a block is too big to
17083 thread through, inform caller via negative return value.
17084 (thread_across_edge): If a block was too big for normal threading,
17085 then it's too big for a joiner too, so remove temporary equivalences
17086 and return immediately.
17087
17088 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
17089 Matthias Klose <doko@ubuntu.com>
17090
17091 PR driver/61106
17092 * optc-gen.awk: Fix option handling for -Wunused-parameter.
17093
17094 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
17095
17096 PR target/59952
17097 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
17098
17099 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
17100
17101 PR target/61092
17102 * config/alpha/alpha.c: Include gimple-iterator.h.
17103 (alpha_gimple_fold_builtin): New function. Move
17104 ALPHA_BUILTIN_UMULH folding from ...
17105 (alpha_fold_builtin): ... here.
17106 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
17107
17108 2014-05-08 Wei Mi <wmi@google.com>
17109
17110 PR target/58066
17111 * config/i386/i386.c (ix86_compute_frame_layout): Update
17112 preferred_stack_boundary for call, expanded from tls descriptor.
17113 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
17114 to depend on SP register.
17115 (*tls_local_dynamic_base_32_gnu): Ditto.
17116 (*tls_local_dynamic_32_once): Ditto.
17117 (tls_global_dynamic_64_<mode>): Set
17118 ix86_tls_descriptor_calls_expanded_in_cfun.
17119 (tls_local_dynamic_base_64_<mode>): Ditto.
17120 (tls_global_dynamic_32): Set
17121 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
17122 to depend on SP register.
17123 (tls_local_dynamic_base_32): Ditto.
17124
17125 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17126
17127 * config/arm/arm_neon.h: Update comment.
17128 * config/arm/neon-docgen.ml: Delete.
17129 * config/arm/neon-gen.ml: Delete.
17130 * doc/arm-neon-intrinsics.texi: Update comment.
17131
17132 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17133
17134 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
17135 and v4sf versions.
17136 (vand, vorr, veor, vorn, vbic): Remove.
17137 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
17138 iterator.
17139 (neon_vsub_unspec): Likewise.
17140 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
17141
17142 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17143
17144 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
17145 (vadd_s16): Likewise.
17146 (vadd_s32): Likewise.
17147 (vadd_f32): Likewise.
17148 (vadd_u8): Likewise.
17149 (vadd_u16): Likewise.
17150 (vadd_u32): Likewise.
17151 (vadd_s64): Likewise.
17152 (vadd_u64): Likewise.
17153 (vaddq_s8): Likewise.
17154 (vaddq_s16): Likewise.
17155 (vaddq_s32): Likewise.
17156 (vaddq_s64): Likewise.
17157 (vaddq_f32): Likewise.
17158 (vaddq_u8): Likewise.
17159 (vaddq_u16): Likewise.
17160 (vaddq_u32): Likewise.
17161 (vaddq_u64): Likewise.
17162 (vmul_s8): Likewise.
17163 (vmul_s16): Likewise.
17164 (vmul_s32): Likewise.
17165 (vmul_f32): Likewise.
17166 (vmul_u8): Likewise.
17167 (vmul_u16): Likewise.
17168 (vmul_u32): Likewise.
17169 (vmul_p8): Likewise.
17170 (vmulq_s8): Likewise.
17171 (vmulq_s16): Likewise.
17172 (vmulq_s32): Likewise.
17173 (vmulq_f32): Likewise.
17174 (vmulq_u8): Likewise.
17175 (vmulq_u16): Likewise.
17176 (vmulq_u32): Likewise.
17177 (vsub_s8): Likewise.
17178 (vsub_s16): Likewise.
17179 (vsub_s32): Likewise.
17180 (vsub_f32): Likewise.
17181 (vsub_u8): Likewise.
17182 (vsub_u16): Likewise.
17183 (vsub_u32): Likewise.
17184 (vsub_s64): Likewise.
17185 (vsub_u64): Likewise.
17186 (vsubq_s8): Likewise.
17187 (vsubq_s16): Likewise.
17188 (vsubq_s32): Likewise.
17189 (vsubq_s64): Likewise.
17190 (vsubq_f32): Likewise.
17191 (vsubq_u8): Likewise.
17192 (vsubq_u16): Likewise.
17193 (vsubq_u32): Likewise.
17194 (vsubq_u64): Likewise.
17195 (vand_s8): Likewise.
17196 (vand_s16): Likewise.
17197 (vand_s32): Likewise.
17198 (vand_u8): Likewise.
17199 (vand_u16): Likewise.
17200 (vand_u32): Likewise.
17201 (vand_s64): Likewise.
17202 (vand_u64): Likewise.
17203 (vandq_s8): Likewise.
17204 (vandq_s16): Likewise.
17205 (vandq_s32): Likewise.
17206 (vandq_s64): Likewise.
17207 (vandq_u8): Likewise.
17208 (vandq_u16): Likewise.
17209 (vandq_u32): Likewise.
17210 (vandq_u64): Likewise.
17211 (vorr_s8): Likewise.
17212 (vorr_s16): Likewise.
17213 (vorr_s32): Likewise.
17214 (vorr_u8): Likewise.
17215 (vorr_u16): Likewise.
17216 (vorr_u32): Likewise.
17217 (vorr_s64): Likewise.
17218 (vorr_u64): Likewise.
17219 (vorrq_s8): Likewise.
17220 (vorrq_s16): Likewise.
17221 (vorrq_s32): Likewise.
17222 (vorrq_s64): Likewise.
17223 (vorrq_u8): Likewise.
17224 (vorrq_u16): Likewise.
17225 (vorrq_u32): Likewise.
17226 (vorrq_u64): Likewise.
17227 (veor_s8): Likewise.
17228 (veor_s16): Likewise.
17229 (veor_s32): Likewise.
17230 (veor_u8): Likewise.
17231 (veor_u16): Likewise.
17232 (veor_u32): Likewise.
17233 (veor_s64): Likewise.
17234 (veor_u64): Likewise.
17235 (veorq_s8): Likewise.
17236 (veorq_s16): Likewise.
17237 (veorq_s32): Likewise.
17238 (veorq_s64): Likewise.
17239 (veorq_u8): Likewise.
17240 (veorq_u16): Likewise.
17241 (veorq_u32): Likewise.
17242 (veorq_u64): Likewise.
17243 (vbic_s8): Likewise.
17244 (vbic_s16): Likewise.
17245 (vbic_s32): Likewise.
17246 (vbic_u8): Likewise.
17247 (vbic_u16): Likewise.
17248 (vbic_u32): Likewise.
17249 (vbic_s64): Likewise.
17250 (vbic_u64): Likewise.
17251 (vbicq_s8): Likewise.
17252 (vbicq_s16): Likewise.
17253 (vbicq_s32): Likewise.
17254 (vbicq_s64): Likewise.
17255 (vbicq_u8): Likewise.
17256 (vbicq_u16): Likewise.
17257 (vbicq_u32): Likewise.
17258 (vbicq_u64): Likewise.
17259 (vorn_s8): Likewise.
17260 (vorn_s16): Likewise.
17261 (vorn_s32): Likewise.
17262 (vorn_u8): Likewise.
17263 (vorn_u16): Likewise.
17264 (vorn_u32): Likewise.
17265 (vorn_s64): Likewise.
17266 (vorn_u64): Likewise.
17267 (vornq_s8): Likewise.
17268 (vornq_s16): Likewise.
17269 (vornq_s32): Likewise.
17270 (vornq_s64): Likewise.
17271 (vornq_u8): Likewise.
17272 (vornq_u16): Likewise.
17273 (vornq_u32): Likewise.
17274 (vornq_u64): Likewise.
17275
17276 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17277
17278 * wide-int.cc (UTItype): Define.
17279 (UDWtype): Define for appropriate W_TYPE_SIZE.
17280
17281 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
17282
17283 PR tree-optimization/59100
17284 * tree-ssa-phiopt.c: Include tree-inline.h.
17285 (neutral_element_p, absorbing_element_p): New functions.
17286 (value_replacement): Handle conditional binary operations with a
17287 neutral or absorbing element.
17288
17289 2014-05-08 Richard Biener <rguenther@suse.de>
17290
17291 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
17292 folding the expression.
17293 (valueize_expr): Remove.
17294 (visit_reference_op_load): Do not valueize the result of
17295 vn_get_expr_for.
17296 (simplify_binary_expression): Likewise.
17297 (simplify_unary_expression): Likewise.
17298
17299 2014-05-08 Richard Biener <rguenther@suse.de>
17300
17301 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
17302 looking at TYPE_ARG_TYPES.
17303
17304 2014-05-08 Richard Biener <rguenther@suse.de>
17305
17306 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
17307 pointer propagation special-case.
17308
17309 2014-05-08 Bin Cheng <bin.cheng@arm.com>
17310
17311 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
17312 core part of address expressions.
17313
17314 2014-05-08 Alan Modra <amodra@gmail.com>
17315
17316 PR target/60737
17317 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
17318 loads and stores when -mno-strict-align at any alignment.
17319 (expand_block_clear): Similarly. Also correct calculation of
17320 instruction count.
17321
17322 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17323
17324 PR middle-end/39246
17325 * tree-complex.c (expand_complex_move): Keep line info when expanding
17326 complex move.
17327 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
17328 of complex expression. Use new argument to display correct location
17329 for values coming from phi statement.
17330 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
17331 (warn_uninitialized_phi): Pass location of phi argument to
17332 warn_uninit.
17333 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
17334 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
17335
17336 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
17337
17338 * config/rs6000/predicates.md (indexed_address_mem): New.
17339 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
17340 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
17341 fpstore_ux, fpstore_u.
17342 (sign_extend, indexed, update): New.
17343 (cell_micro): Adjust.
17344 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
17345 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
17346 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
17347 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
17348 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
17349 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
17350 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
17351 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
17352 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
17353 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
17354 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
17355 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
17356 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
17357 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
17358 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
17359
17360 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
17361 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
17362 *vsx_extract_<mode>_store): Adjust.
17363 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
17364 is_cracked_insn, insn_must_be_first_in_group,
17365 insn_must_be_last_in_group): Adjust.
17366
17367 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
17368 Adjust.
17369 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
17370 ppc440-fpstore): Adjust.
17371 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
17372 ppc476-fpstore): Adjust.
17373 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
17374 ppc601-fpstore): Adjust.
17375 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
17376 Adjust.
17377 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
17378 Adjust.
17379 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
17380 ppc7450-fpstore): Adjust.
17381 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
17382 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
17383 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
17384 Adjust.
17385 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
17386 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
17387 cell-fpstore, cell-fpstore-update): Adjust.
17388 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
17389 ppce300c3_store, ppce300c3_fpstore): Adjust.
17390 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
17391 e500mc_fpstore): Adjust.
17392 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
17393 e500mc64_store, e500mc64_fpstore): Adjust.
17394 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
17395 e5500_fpstore): Adjust.
17396 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
17397 e6500_fpstore): Adjust.
17398 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
17399 Adjust.
17400 * config/rs6000/power4.md (power4-load, power4-load-ext,
17401 power4-load-ext-update, power4-load-ext-update-indexed,
17402 power4-load-update-indexed, power4-load-update, power4-fpload,
17403 power4-fpload-update, power4-store, power4-store-update,
17404 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
17405 Adjust.
17406 * config/rs6000/power5.md (power5-load, power5-load-ext,
17407 power5-load-ext-update, power5-load-ext-update-indexed,
17408 power5-load-update-indexed, power5-load-update, power5-fpload,
17409 power5-fpload-update, power5-store, power5-store-update,
17410 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
17411 Adjust.
17412 * config/rs6000/power6.md (power6-load, power6-load-ext,
17413 power6-load-update, power6-load-update-indexed,
17414 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
17415 power6-fpload-update, power6-store, power6-store-update,
17416 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
17417 Adjust.
17418 * config/rs6000/power7.md (power7-load, power7-load-ext,
17419 power7-load-update, power7-load-update-indexed,
17420 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
17421 power7-fpload-update, power7-store, power7-store-update,
17422 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
17423 Adjust.
17424 * config/rs6000/power8.md (power8-load, power8-load-update,
17425 power8-load-ext, power8-load-ext-update, power8-fpload,
17426 power8-fpload-update, power8-store, power8-store-update-indexed,
17427 power8-fpstore, power8-fpstore-update): Adjust.
17428 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
17429 Adjust.
17430 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
17431 titan_lsu_store, titan_lsu_fpstore): Adjust.
17432 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
17433
17434 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
17435
17436 PR target/60884
17437 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
17438 unrolled byte insns. Emit address increments after move insns.
17439
17440 2014-05-07 David Malcolm <dmalcolm@redhat.com>
17441
17442 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
17443 const_gimple, rather than a gimple.
17444 (gimple_call_builtin_p): Likewise, for the three variants.
17445
17446 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
17447 (gimple_call_builtin_p): Likewise, for the three variants.
17448
17449 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
17450
17451 PR tree-optimization/61095
17452 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
17453
17454 2014-05-07 Richard Biener <rguenther@suse.de>
17455
17456 PR tree-optimization/61034
17457 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
17458 (maybe_skip_until): Use translate to take into account
17459 lattices when trying to do disambiguations.
17460 (get_continuation_for_phi_1): Likewise.
17461 (get_continuation_for_phi): Adjust for added translate arguments.
17462 (walk_non_aliased_vuses): Likewise.
17463 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
17464 (walk_non_aliased_vuses): Likewise.
17465 (call_may_clobber_ref_p_1): Declare.
17466 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
17467 calls. Stop early if we are only supposed to disambiguate.
17468 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
17469
17470 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
17471
17472 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
17473 Emit an error when the function has arguments.
17474
17475 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17476
17477 * cfgloop.h (unswitch_loops): Remove.
17478 * doc/passes.texi: Remove references to loop-unswitch.c
17479 * timevar.def (TV_LOOP_UNSWITCH): Remove.
17480
17481 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
17482
17483 * tree-vect-data-refs.c (vect_grouped_load_supported): New
17484 check for loads group of length 3.
17485 (vect_permute_load_chain): New permutations for loads group of
17486 length 3.
17487 * tree-vect-stmts.c (vect_model_load_cost): Change cost
17488 of vec_perm_shuffle for the new permutations.
17489
17490 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
17491
17492 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
17493 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
17494 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
17495 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
17496 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
17497 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
17498 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
17499 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
17500
17501 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17502
17503 * loop-unswitch.c: Delete.
17504
17505 2014-05-07 Richard Biener <rguenther@suse.de>
17506
17507 * config.gcc: Always set need_64bit_hwint to yes.
17508
17509 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
17510
17511 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
17512 of using optimize_size.
17513
17514 2014-05-06 Mike Stump <mikestump@comcast.net>
17515
17516 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
17517
17518 2014-05-06 Joseph Myers <joseph@codesourcery.com>
17519
17520 * config/i386/sse.md (*mov<mode>_internal)
17521 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
17522 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
17523 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
17524 (*<code><mode>3, *andnot<mode>3<mask_name>)
17525 (<mask_codefor><code><mode>3<mask_name>): Only consider
17526 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
17527
17528 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17529
17530 Revert:
17531 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17532
17533 * lra-constraints.c (valid_address_p): Move earlier in file.
17534 Add a constraint argument to the address_info version.
17535 (satisfies_memory_constraint_p): New function.
17536 (satisfies_address_constraint_p): Likewise.
17537 (process_alt_operands, curr_insn_transform): Use them.
17538 (process_address): Pass the constraint to valid_address_p when
17539 checking address operands.
17540
17541 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
17542
17543 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
17544 to their respective blocks. Fix inadvertent use of "node".
17545
17546 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17547
17548 * emit-rtl.c (init_derived_machine_modes): New functionm, split
17549 out from...
17550 (init_emit_once): ...here.
17551 * rtl.h (init_derived_machine_modes): Declare.
17552 * toplev.c (do_compile): Call it even if no_backend.
17553
17554 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
17555 Mike Stump <mikestump@comcast.net>
17556 Richard Sandiford <rdsandiford@googlemail.com>
17557 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17558
17559 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
17560 (rtx_equal_for_memref_p): Update comment.
17561 (adjust_offset_for_component_ref): Use wide-int interfaces.
17562 * builtins.c (get_object_alignment_2): Likewise.
17563 (c_readstr): Likewise.
17564 (target_char_cast): Add comment.
17565 (determine_block_size): Use wide-int interfaces.
17566 (expand_builtin_signbit): Likewise.
17567 (fold_builtin_int_roundingfn): Likewise.
17568 (fold_builtin_bitop): Likewise.
17569 (fold_builtin_bswap): Likewise.
17570 (fold_builtin_logarithm): Use signop.
17571 (fold_builtin_pow): Likewise.
17572 (fold_builtin_memory_op): Use wide-int interfaces.
17573 (fold_builtin_object_size): Likewise.
17574 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
17575 nb_iterations_estimate.
17576 (record_niter_bound): Use wide-int interfaces.
17577 (get_estimated_loop_iterations_int): Likewise.
17578 (get_estimated_loop_iterations): Likewise.
17579 (get_max_loop_iterations): Likewise.
17580 * cfgloop.h: Include wide-int.h.
17581 (struct nb_iter_bound): Change bound to widest_int.
17582 (struct loop): Change nb_iterations_upper_bound and
17583 nb_iterations_estimate to widest_int.
17584 (record_niter_bound): Switch to use widest_int.
17585 (get_estimated_loop_iterations): Likewise.
17586 (get_max_loop_iterations): Likewise.
17587 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
17588 update for wide-int.
17589 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
17590 * combine.c (try_combine): Likewise.
17591 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
17592 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
17593 interfaces.
17594 (aarch64_float_const_representable_p): Likewise.
17595 * config/arc/arc.c: Include wide-int.h.
17596 (arc_can_use_doloop_p): Use wide-int interfaces.
17597 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
17598 (vfp3_const_double_index): Likewise.
17599 * config/avr/avr.c (avr_out_round): Likewise.
17600 (avr_fold_builtin): Likewise.
17601 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
17602 (bfin_can_use_doloop_p): Likewise.
17603 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
17604 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
17605 * config/i386/i386.c: Include wide-int.h.
17606 (ix86_data_alignment): Use wide-int interfaces.
17607 (ix86_local_alignment): Likewise.
17608 (ix86_emit_swsqrtsf): Update real_from_integer.
17609 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
17610 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
17611 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
17612 (zero_constant): Likewise.
17613 (input_operand): Likewise.
17614 (splat_input_operand): Likewise.
17615 (non_logical_cint_operand): Change const_double to const_wide_int.
17616 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
17617 (easy_altivec_constant): Remove comment.
17618 (paired_expand_vector_init): Use CONSTANT_P.
17619 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
17620 (rs6000_emit_move): Update checks.
17621 (rs6000_aggregate_candidate): Use wide-int interfaces.
17622 (rs6000_expand_ternop_builtin): Likewise.
17623 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
17624 (rs6000_assemble_integer): Likewise.
17625 (rs6000_hash_constant): Likewise.
17626 (output_toc): Likewise.
17627 (rs6000_rtx_costs): Likewise.
17628 (rs6000_emit_swrsqrt); Update call to real_from_integer.
17629 * config/rs6000/rs6000-c.c: Include wide-int.h.
17630 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
17631 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
17632 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
17633 Handle CONST_WIDE_INT.
17634 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
17635 Use tree_fits_uhwi_p.
17636 * config/sparc/sparc.c: Include wide-int.h.
17637 (sparc_fold_builtin): Use wide-int interfaces.
17638 * config/vax/vax.c: Include wide-int.h.
17639 (vax_float_literal): Use real_from_integer.
17640 * coretypes.h (struct hwivec_def): New.
17641 (hwivec): New.
17642 (const_hwivec): New.
17643 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
17644 (equiv_constant): Handle CONST_WIDE_INT.
17645 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
17646 (cselib_hash_rtx): Handle CONST_WIDE_INT.
17647 * dbxout.c (stabstr_U): Use wide-int interfaces.
17648 (dbxout_type): Update to use cst_fits_shwi_p.
17649 * defaults.h (LOG2_BITS_PER_UNIT): Define.
17650 (TARGET_SUPPORTS_WIDE_INT): Add default.
17651 * dfp.c: Include wide-int.h.
17652 (decimal_real_to_integer2): Use wide-int interfaces and rename to
17653 decimal_real_to_integer.
17654 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
17655 decimal_real_to_integer.
17656 * doc/generic.texi (Constant expressions): Update for wide_int.
17657 * doc/rtl.texi (const_double): Likewise.
17658 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
17659 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
17660 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
17661 (REAL_VALUE_FROM_INT): Remove.
17662 (TARGET_SUPPORTS_WIDE_INT): New.
17663 * doc/tm.texi: Regenerate.
17664 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
17665 * double-int.h: Include wide-int.h.
17666 (struct wi::int_traits): New.
17667 * dwarf2out.c (get_full_len): New.
17668 (dw_val_equal_p): Add case dw_val_class_wide_int.
17669 (size_of_loc_descr): Likewise.
17670 (output_loc_operands): Likewise.
17671 (insert_double): Remove.
17672 (insert_wide_int): New.
17673 (add_AT_wide): New.
17674 (print_die): Add case dw_val_class_wide_int.
17675 (attr_checksum): Likewise.
17676 (attr_checksum_ordered): Likewise.
17677 (same_dw_val_p): Likewise.
17678 (size_of_die): Likewise.
17679 (value_format): Likewise.
17680 (output_die): Likewise.
17681 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
17682 Use wide-int.
17683 (clz_loc_descriptor): Use wide-int interfaces.
17684 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
17685 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
17686 (round_up_to_align): Use wide-int interfaces.
17687 (field_byte_offset): Likewise.
17688 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
17689 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
17690 CONST_DOUBLE handling. Use wide-int interfaces.
17691 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
17692 (gen_enumeration_type_die): Use add_AT_wide.
17693 (hash_loc_operands): Add case dw_val_class_wide_int.
17694 (compare_loc_operands): Likewise.
17695 * dwarf2out.h: Include wide-int.h.
17696 (wide_int_ptr): New.
17697 (enum dw_val_class): Add dw_val_class_wide_int.
17698 (struct dw_val_struct): Add val_wide.
17699 * emit-rtl.c (const_wide_int_htab): New.
17700 (const_wide_int_htab_hash): New.
17701 (const_wide_int_htab_eq): New.
17702 (lookup_const_wide_int): New.
17703 (const_double_htab_hash): Use wide-int interfaces.
17704 (const_double_htab_eq): Likewise.
17705 (rtx_to_double_int): Conditionally compile for wide-int.
17706 (immed_double_int_const): Rename to immed_wide_int_const and
17707 update for wide-int.
17708 (immed_double_const): Conditionally compile for wide-int.
17709 (init_emit_once): Use wide-int interfaces.
17710 * explow.c (plus_constant): Likewise.
17711 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
17712 (lshift_value): Use wide-int interfaces.
17713 (expand_mult): Likewise.
17714 (choose_multiplier): Likewise.
17715 (expand_smod_pow2): Likewise.
17716 (make_tree): Likewise.
17717 * expr.c (convert_modes): Consolidate handling of constants.
17718 Use wide-int interfaces.
17719 (emit_group_load_1): Add note.
17720 (store_expr): Update comment.
17721 (get_inner_reference): Use wide-int interfaces.
17722 (expand_constructor): Update comment.
17723 (expand_expr_real_2): Use wide-int interfaces.
17724 (expand_expr_real_1): Likewise.
17725 (reduce_to_bit_field_precision): Likewise.
17726 (const_vector_from_tree): Likewise.
17727 * final.c: Include wide-int-print.h.
17728 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
17729 * fixed-value.c: Include wide-int.h.
17730 (fixed_from_string): Use wide-int interfaces.
17731 (fixed_to_decimal): Likewise.
17732 (fixed_convert_from_real): Likewise.
17733 (real_convert_from_fixed): Likewise.
17734 * fold-const.h (mem_ref_offset): Return an offset_int.
17735 (div_if_zero_remainder): Remove code parameter.
17736 * fold-const.c (div_if_zero_remainder): Remove code parameter.
17737 Use wide-int interfaces.
17738 (may_negate_without_overflow_p): Use wide-int interfaces.
17739 (negate_expr_p): Likewise.
17740 (fold_negate_expr): Likewise.
17741 (int_const_binop_1): Likewise.
17742 (const_binop): Likewise.
17743 (fold_convert_const_int_from_int): Likewise.
17744 (fold_convert_const_int_from_real): Likewise.
17745 (fold_convert_const_int_from_fixed): Likewise.
17746 (fold_convert_const_fixed_from_int): Likewise.
17747 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
17748 (sign_bit_p): Use wide-int interfaces.
17749 (make_range_step): Likewise.
17750 (build_range_check): Likewise. Pass an integer of the correct type
17751 instead of using integer_one_node.
17752 (range_predecessor): Pass an integer of the correct type instead
17753 of using integer_one_node.
17754 (range_successor): Likewise.
17755 (merge_ranges): Likewise.
17756 (unextend): Use wide-int interfaces.
17757 (extract_muldiv_1): Likewise.
17758 (fold_div_compare): Likewise.
17759 (fold_single_bit_test): Likewise.
17760 (fold_sign_changed_comparison): Likewise.
17761 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
17762 (fold_plusminus_mult_expr): Use wide-int interfaces.
17763 (native_encode_int): Likewise.
17764 (native_interpret_int): Likewise.
17765 (fold_unary_loc): Likewise.
17766 (pointer_may_wrap_p): Likewise.
17767 (size_low_cst): Likewise.
17768 (mask_with_tz): Likewise.
17769 (fold_binary_loc): Likewise.
17770 (fold_ternary_loc): Likewise.
17771 (multiple_of_p): Likewise.
17772 (tree_call_nonnegative_warnv_p): Update calls to
17773 tree_int_cst_min_precision and real_from_integer.
17774 (fold_negate_const): Use wide-int interfaces.
17775 (fold_abs_const): Likewise.
17776 (fold_relational_const): Use tree_int_cst_lt.
17777 (round_up_loc): Use wide-int interfaces.
17778 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
17779 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
17780 * gengtype.c: Remove include of double-int.h.
17781 (do_typedef): Use wide-int interfaces.
17782 (open_base_files): Add wide-int.h.
17783 (main): Add offset_int and widest_int typedefs.
17784 * gengtype-lex.l: Handle "^".
17785 (CXX_KEYWORD): Add "static".
17786 * gengtype-parse.c (require3): New.
17787 (require_template_declaration): Handle constant template arguments
17788 and nested templates.
17789 * gengtype-state.c: Don't include "double-int.h".
17790 * genpreds.c (write_one_predicate_function): Update comment.
17791 (write_tm_constrs_h): Add check for hval and lval use in
17792 CONST_WIDE_INT.
17793 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
17794 (add_to_sequence): Likewise.
17795 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
17796 and const_double_operand.
17797 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
17798 interfaces.
17799 * gimple-fold.c (get_base_constructor): Likewise.
17800 (fold_array_ctor_reference): Likewise.
17801 (fold_nonarray_ctor_reference): Likewise.
17802 (fold_const_aggregate_ref_1): Likewise.
17803 (gimple_val_nonnegative_real_p): Likewise.
17804 (gimple_fold_indirect_ref): Likewise.
17805 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
17806 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
17807 (struct slsr_cand_d): Change index to be widest_int.
17808 (struct incr_info_d): Change incr to be widest_int.
17809 (alloc_cand_and_find_basis): Use wide-int interfaces.
17810 (slsr_process_phi): Likewise.
17811 (backtrace_base_for_ref): Likewise. Return a widest_int.
17812 (restructure_reference): Take a widest_int instead of a double_int.
17813 (slsr_process_ref): Use wide-int interfaces.
17814 (create_mul_ssa_cand): Likewise.
17815 (create_mul_imm_cand): Likewise.
17816 (create_add_ssa_cand): Likewise.
17817 (create_add_imm_cand): Take a widest_int instead of a double_int.
17818 (slsr_process_add): Use wide-int interfaces.
17819 (slsr_process_cast): Likewise.
17820 (slsr_process_copy): Likewise.
17821 (dump_candidate): Likewise.
17822 (dump_incr_vec): Likewise.
17823 (replace_ref): Likewise.
17824 (cand_increment): Likewise. Return a widest_int.
17825 (cand_abs_increment): Likewise.
17826 (replace_mult_candidate): Take a widest_int instead of a double_int.
17827 (replace_unconditional_candidate): Use wide-int interfaces.
17828 (incr_vec_index): Take a widest_int instead of a double_int.
17829 (create_add_on_incoming_edge): Likewise.
17830 (create_phi_basis): Use wide-int interfaces.
17831 (replace_conditional_candidate): Likewise.
17832 (record_increment): Take a widest_int instead of a double_int.
17833 (record_phi_increments): Use wide-int interfaces.
17834 (phi_incr_cost): Take a widest_int instead of a double_int.
17835 (lowest_cost_path): Likewise.
17836 (total_savings): Likewise.
17837 (analyze_increments): Use wide-int interfaces.
17838 (ncd_with_phi): Take a widest_int instead of a double_int.
17839 (ncd_of_cand_and_phis): Likewise.
17840 (nearest_common_dominator_for_cands): Likewise.
17841 (insert_initializers): Use wide-int interfaces.
17842 (all_phi_incrs_profitable): Likewise.
17843 (replace_one_candidate): Likewise.
17844 (replace_profitable_candidates): Likewise.
17845 * godump.c: Include wide-int-print.h.
17846 (go_output_typedef): Use wide-int interfaces.
17847 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
17848 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
17849 (build_loop_iteration_domains): Likewise.
17850 * hooks.h: Include wide-int.h rather than double-int.h.
17851 (hook_bool_dint_dint_uint_bool_true): Delete.
17852 (hook_bool_wint_wint_uint_bool_true): Declare.
17853 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
17854 (hook_bool_wint_wint_uint_bool_true): New.
17855 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
17856 interfaces.
17857 (ubsan_expand_si_overflow_mul_check): Likewise.
17858 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
17859 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
17860 (get_ancestor_addr_info): Likewise.
17861 (ipa_modify_call_arguments): Likewise.
17862 * loop-doloop.c (doloop_modify): Likewise.
17863 (doloop_optimize): Likewise.
17864 * loop-iv.c (iv_number_of_iterations): Likewise.
17865 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
17866 (unroll_loop_constant_iterations): Likewise.
17867 (decide_unroll_runtime_iterations): Likewise.
17868 (unroll_loop_runtime_iterations): Likewise.
17869 (decide_peel_simple): Likewise.
17870 (decide_unroll_stupid): Likewise.
17871 * lto-streamer-in.c (streamer_read_wi): Add.
17872 (input_cfg): Use wide-int interfaces.
17873 (lto_input_tree_1): Likewise.
17874 * lto-streamer-out.c (streamer_write_wi): Add.
17875 (hash_tree): Use wide-int interfaces.
17876 (output_cfg): Likewise.
17877 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
17878 (GTFILES): Add wide-int.h and signop.h.
17879 (TAGS): Look for .cc files too.
17880 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
17881 * optabs.c (expand_subword_shift): Likewise.
17882 (expand_doubleword_shift): Likewise.
17883 (expand_absneg_bit): Likewise.
17884 (expand_copysign_absneg): Likewise.
17885 (expand_copysign_bit): Likewise.
17886 * postreload.c (reload_cse_simplify_set): Likewise.
17887 * predict.c (predict_iv_comparison): Likewise.
17888 * pretty-print.h: Include wide-int-print.h.
17889 (pp_wide_int) New.
17890 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
17891 * print-tree.c: Include wide-int-print.h.
17892 (print_node_brief): Use wide-int interfaces.
17893 (print_node): Likewise.
17894 * read-rtl.c (validate_const_wide_int): New.
17895 (read_rtx_code): Add CONST_WIDE_INT case.
17896 * real.c: Include wide-int.h.
17897 (real_to_integer2): Delete.
17898 (real_to_integer): New function, returning a wide_int.
17899 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17900 (ten_to_ptwo): Update call to real_from_integer.
17901 (real_digit): Likewise.
17902 * real.h: Include signop.h, wide-int.h and insn-modes.h.
17903 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
17904 (REAL_VALUE_TO_INT): Delete.
17905 (real_to_integer): Declare a wide-int form.
17906 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17907 * recog.c (const_int_operand): Improve comment.
17908 (const_scalar_int_operand): New.
17909 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
17910 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
17911 (split_double): Likewise.
17912 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
17913 (rtx_size): Likewise.
17914 (rtx_alloc_stat_v): New.
17915 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
17916 (cwi_output_hex): New.
17917 (iterative_hash_rtx): Handle CONST_WIDE_INT.
17918 (cwi_check_failed_bounds): New.
17919 * rtl.def (CONST_WIDE_INT): New.
17920 * rtl.h: Include <utility> and wide-int.h.
17921 (struct hwivec_def): New.
17922 (CWI_GET_NUM_ELEM): New.
17923 (CWI_PUT_NUM_ELEM): New.
17924 (struct rtx_def): Add num_elem and hwiv.
17925 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
17926 (CASE_CONST_UNIQUE): Likewise.
17927 (CASE_CONST_ANY): Likewise.
17928 (CONST_SCALAR_INT_P): Likewise.
17929 (CONST_WIDE_INT_P): New.
17930 (CWI_ELT): New.
17931 (HWIVEC_CHECK): New.
17932 (cwi_check_failed_bounds): New.
17933 (CWI_ELT): New.
17934 (HWIVEC_CHECK): New.
17935 (CONST_WIDE_INT_VEC) New.
17936 (CONST_WIDE_INT_NUNITS) New.
17937 (CONST_WIDE_INT_ELT) New.
17938 (rtx_mode_t): New type.
17939 (wi::int_traits <rtx_mode_t>): New.
17940 (wi::shwi): New.
17941 (wi::min_value): New.
17942 (wi::max_value): New.
17943 (rtx_alloc_v) New.
17944 (const_wide_int_alloc): New.
17945 (immed_wide_int_const): New.
17946 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
17947 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
17948 * signop.h: New file.
17949 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
17950 (simplify_const_unary_operation): Use wide-int interfaces.
17951 (simplify_binary_operation_1): Likewise.
17952 (simplify_const_binary_operation): Likewise.
17953 (simplify_const_relational_operation): Likewise.
17954 (simplify_immed_subreg): Likewise.
17955 * stmt.c (expand_case): Likewise.
17956 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
17957 signop rather than a bool.
17958 * stor-layout.c (layout_type): Use wide-int interfaces.
17959 (initialize_sizetypes): Update calls to
17960 set_min_and_max_values_for_integral_type.
17961 (set_min_and_max_values_for_integral_type): Take a signop rather
17962 than a bool. Use wide-int interfaces.
17963 (fixup_signed_type): Update accordingly. Remove
17964 HOST_BITS_PER_DOUBLE_INT limit.
17965 (fixup_unsigned_type): Likewise.
17966 * system.h (STATIC_CONSTANT_P): New.
17967 (STATIC_ASSERT): New.
17968 * target.def (can_use_doloop_p): Take widest_ints rather than
17969 double_ints.
17970 * target.h: Include wide-int.h rather than double-int.h.
17971 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
17972 than double_ints.
17973 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
17974 rather than INT_CST_LT_UNSIGNED.
17975 (can_use_doloop_if_innermost): Take widest_ints rather than
17976 double_ints.
17977 * tree-affine.c: Include wide-int-print.h.
17978 (double_int_ext_for_comb): Delete.
17979 (wide_int_ext_for_comb): New.
17980 (aff_combination_zero): Use wide-int interfaces.
17981 (aff_combination_const): Take a widest_int instead of a double_int.
17982 (aff_combination_elt): Use wide-int interfaces.
17983 (aff_combination_scale): Take a widest_int instead of a double_int.
17984 (aff_combination_add_elt): Likewise.
17985 (aff_combination_add_cst): Likewise.
17986 (aff_combination_add): Use wide-int interfaces.
17987 (aff_combination_convert): Likewise.
17988 (tree_to_aff_combination): Likewise.
17989 (add_elt_to_tree): Take a widest_int instead of a double_int.
17990 (aff_combination_to_tree): Use wide-int interfaces.
17991 (aff_combination_remove_elt): Likewise.
17992 (aff_combination_add_product): Take a widest_int instead of
17993 a double_int.
17994 (aff_combination_mult): Use wide-int interfaces.
17995 (aff_combination_expand): Likewise.
17996 (double_int_constant_multiple_p): Delete.
17997 (wide_int_constant_multiple_p): New.
17998 (aff_combination_constant_multiple_p): Take a widest_int pointer
17999 instead of a double_int pointer.
18000 (print_aff): Use wide-int interfaces.
18001 (get_inner_reference_aff): Take a widest_int pointer
18002 instead of a double_int pointer.
18003 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
18004 * tree-affine.h: Include wide-int.h.
18005 (struct aff_comb_elt): Change type of coef to widest_int.
18006 (struct affine_tree_combination): Change type of offset to widest_int.
18007 (double_int_ext_for_comb): Delete.
18008 (wide_int_ext_for_comb): New.
18009 (aff_combination_const): Use widest_int instead of double_int.
18010 (aff_combination_scale): Likewise.
18011 (aff_combination_add_elt): Likewise.
18012 (aff_combination_constant_multiple_p): Likewise.
18013 (get_inner_reference_aff): Likewise.
18014 (aff_comb_cannot_overlap_p): Likewise.
18015 (aff_combination_zero_p): Use wide-int interfaces.
18016 * tree.c: Include tree.h.
18017 (init_ttree): Use make_int_cst.
18018 (tree_code_size): Removed code for INTEGER_CST case.
18019 (tree_size): Add INTEGER_CST case.
18020 (make_node_stat): Update comment.
18021 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
18022 (build_int_cst_type): Use wide-int interfaces.
18023 (double_int_to_tree): Likewise.
18024 (double_int_fits_to_tree_p): Delete.
18025 (force_fit_type_double): Delete.
18026 (force_fit_type): New.
18027 (int_cst_hash_hash): Use wide-int interfaces.
18028 (int_cst_hash_eq): Likewise.
18029 (build_int_cst_wide): Delete.
18030 (wide_int_to_tree): New.
18031 (cache_integer_cst): Use wide-int interfaces.
18032 (build_low_bits_mask): Likewise.
18033 (cst_and_fits_in_hwi): Likewise.
18034 (real_value_from_int_cst): Likewise.
18035 (make_int_cst_stat): New.
18036 (integer_zerop): Use wide_int interfaces.
18037 (integer_onep): Likewise.
18038 (integer_all_onesp): Likewise.
18039 (integer_pow2p): Likewise.
18040 (integer_nonzerop): Likewise.
18041 (tree_log2): Likewise.
18042 (tree_floor_log2): Likewise.
18043 (tree_ctz): Likewise.
18044 (int_size_in_bytes): Likewise.
18045 (mem_ref_offset): Return an offset_int rather than a double_int.
18046 (build_type_attribute_qual_variant): Use wide_int interfaces.
18047 (type_hash_eq): Likewise
18048 (tree_int_cst_equal): Likewise.
18049 (tree_int_cst_lt): Delete.
18050 (tree_int_cst_compare): Likewise.
18051 (tree_fits_shwi_p): Use wide_int interfaces.
18052 (tree_fits_uhwi_p): Likewise.
18053 (tree_int_cst_sign_bit): Likewise.
18054 (tree_int_cst_sgn): Likewise.
18055 (tree_int_cst_min_precision): Take a signop rather than a bool.
18056 (simple_cst_equal): Use wide_int interfaces.
18057 (compare_tree_int): Likewise.
18058 (iterative_hash_expr): Likewise.
18059 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
18060 INT_CST_LT.
18061 (get_type_static_bounds): Use wide_int interfaces.
18062 (tree_int_cst_elt_check_failed): New.
18063 (build_common_tree_nodes): Reordered to set prec before filling in
18064 value.
18065 (int_cst_value): Check cst_and_fits_in_hwi.
18066 (widest_int_cst_value): Use wide_int interfaces.
18067 (upper_bound_in_type): Likewise.
18068 (lower_bound_in_type): Likewise.
18069 (num_ending_zeros): Likewise.
18070 (drop_tree_overflow): Likewise.
18071 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
18072 (gen_conditions_for_pow_cst_base): Likewise.
18073 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
18074 (group_case_labels_stmt): Use wide-int interfaces.
18075 (verify_gimple_assign_binary): Likewise.
18076 (print_loop): Likewise.
18077 * tree-chrec.c (tree_fold_binomial): Likewise.
18078 * tree-core.h (struct tree_base): Add int_length.
18079 (struct tree_int_cst): Change rep of value.
18080 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
18081 (dr_may_alias_p): Likewise.
18082 (max_stmt_executions_tree): Likewise.
18083 * tree.def (INTEGER_CST): Update comment.
18084 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
18085 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
18086 * tree-dump.c: Include wide-int.h and wide-int-print.h.
18087 (dequeue_and_dump): Use wide-int interfaces.
18088 * tree.h: Include wide-int.h.
18089 (NULL_TREE): Moved to earlier loc in file.
18090 (TREE_INT_CST_ELT_CHECK): New.
18091 (tree_int_cst_elt_check_failed): New.
18092 (TYPE_SIGN): New.
18093 (TREE_INT_CST): Delete.
18094 (TREE_INT_CST_LOW): Use wide-int interfaces.
18095 (TREE_INT_CST_HIGH): Delete.
18096 (TREE_INT_CST_NUNITS): New.
18097 (TREE_INT_CST_EXT_NUNITS): Likewise.
18098 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
18099 (TREE_INT_CST_ELT): Likewise.
18100 (INT_CST_LT): Delete.
18101 (tree_int_cst_elt_check): New (two forms).
18102 (type_code_size): Update comment.
18103 (make_int_cst_stat, make_int_cst): New.
18104 (tree_to_double_int): Delete.
18105 (double_int_fits_to_tree_p): Delete.
18106 (force_fit_type_double): Delete.
18107 (build_int_cstu): Replace with out-of-line function.
18108 (build_int_cst_wide): Delete.
18109 (tree_int_cst_lt): Define inline.
18110 (tree_int_cst_le): New.
18111 (tree_int_cst_compare): Define inline.
18112 (tree_int_cst_min_precision): Take a signop rather than a bool.
18113 (wi::int_traits <const_tree>): New.
18114 (wi::int_traits <tree>): New.
18115 (wi::extended_tree): New.
18116 (wi::int_traits <wi::extended_tree>): New.
18117 (wi::to_widest): New.
18118 (wi::to_offset): New.
18119 (wi::fits_to_tree_p): New.
18120 (wi::min_value): New.
18121 (wi::max_value): New.
18122 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
18123 (copy_tree_body_r): Likewise.
18124 * tree-object-size.c (compute_object_offset): Likewise.
18125 (addr_object_size): Likewise.
18126 * tree-predcom.c: Include wide-int-print.h.
18127 (struct dref_d): Change type of offset to widest_int.
18128 (dump_dref): Call wide-int printer.
18129 (aff_combination_dr_offset): Use wide-int interfaces.
18130 (determine_offset): Take a widest_int pointer rather than a
18131 double_int pointer.
18132 (split_data_refs_to_components): Use wide-int interfaces.
18133 (suitable_component_p): Likewise.
18134 (order_drefs): Likewise.
18135 (add_ref_to_chain): Likewise.
18136 (valid_initializer_p): Likewise.
18137 (determine_roots_comp): Likewise.
18138 * tree-pretty-print.c: Include wide-int-print.h.
18139 (dump_generic_node): Use wide-int interfaces.
18140 * tree-sra.c (sra_ipa_modify_expr): Likewise.
18141 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
18142 (move_fixed_address_to_symbol): Likewise.
18143 (move_hint_to_base): Likewise.
18144 (move_pointer_to_base): Likewise.
18145 (move_variant_to_index): Likewise.
18146 (most_expensive_mult_to_index): Likewise.
18147 (addr_to_parts): Likewise.
18148 (copy_ref_info): Likewise.
18149 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
18150 (indirect_refs_may_alias_p): Likewise.
18151 (stmt_kills_ref_p_1): Likewise.
18152 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
18153 * tree-ssa-ccp.c: Update comment at top of file. Include
18154 wide-int-print.h.
18155 (struct prop_value_d): Change type of mask to widest_int.
18156 (extend_mask): New function.
18157 (dump_lattice_value): Use wide-int interfaces.
18158 (get_default_value): Likewise.
18159 (set_constant_value): Likewise.
18160 (set_value_varying): Likewise.
18161 (valid_lattice_transition): Likewise.
18162 (set_lattice_value): Likewise.
18163 (value_to_double_int): Delete.
18164 (value_to_wide_int): New.
18165 (get_value_from_alignment): Use wide-int interfaces.
18166 (get_value_for_expr): Likewise.
18167 (do_dbg_cnt): Likewise.
18168 (ccp_finalize): Likewise.
18169 (ccp_lattice_meet): Likewise.
18170 (bit_value_unop_1): Use widest_ints rather than double_ints.
18171 (bit_value_binop_1): Likewise.
18172 (bit_value_unop): Use wide-int interfaces.
18173 (bit_value_binop): Likewise.
18174 (bit_value_assume_aligned): Likewise.
18175 (evaluate_stmt): Likewise.
18176 (ccp_fold_stmt): Likewise.
18177 (visit_cond_stmt): Likewise.
18178 (ccp_visit_stmt): Likewise.
18179 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
18180 (constant_pointer_difference): Likewise.
18181 (associate_pointerplus): Likewise.
18182 (combine_conversions): Likewise.
18183 * tree-ssa-loop.h: Include wide-int.h.
18184 (struct tree_niter_desc): Change type of max to widest_int.
18185 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
18186 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
18187 (remove_redundant_iv_tests): Likewise.
18188 (canonicalize_loop_induction_variables): Likewise.
18189 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
18190 (constant_multiple_of): Take a widest_int pointer instead of
18191 a double_int pointer.
18192 (get_computation_aff): Use wide-int interfaces.
18193 (ptr_difference_cost): Likewise.
18194 (difference_cost): Likewise.
18195 (get_loop_invariant_expr_id): Likewise.
18196 (get_computation_cost_at): Likewise.
18197 (iv_elimination_compare_lt): Likewise.
18198 (may_eliminate_iv): Likewise.
18199 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
18200 instead of double_int.
18201 (max_loop_iterations): Likewise.
18202 (max_stmt_executions): Likewise.
18203 (estimated_stmt_executions): Likewise.
18204 * tree-ssa-loop-niter.c: Include wide-int-print.h.
18205 (split_to_var_and_offset): Use wide-int interfaces.
18206 (determine_value_range): Likewise.
18207 (bound_difference_of_offsetted_base): Likewise.
18208 (bounds_add): Take a widest_int instead of a double_int.
18209 (number_of_iterations_ne_max): Use wide-int interfaces.
18210 (number_of_iterations_ne): Likewise.
18211 (number_of_iterations_lt_to_ne): Likewise.
18212 (assert_loop_rolls_lt): Likewise.
18213 (number_of_iterations_lt): Likewise.
18214 (number_of_iterations_le): Likewise.
18215 (number_of_iterations_cond): Likewise.
18216 (number_of_iterations_exit): Likewise.
18217 (finite_loop_p): Likewise.
18218 (derive_constant_upper_bound_assign): Likewise.
18219 (derive_constant_upper_bound): Return a widest_int.
18220 (derive_constant_upper_bound_ops): Likewise.
18221 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
18222 (record_estimate): Take a widest_int rather than a double_int.
18223 (record_nonwrapping_iv): Use wide-int interfaces.
18224 (double_int_cmp): Delete.
18225 (wide_int_cmp): New.
18226 (bound_index): Take a widest_int rather than a double_int.
18227 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
18228 (maybe_lower_iteration_bound): Likewise.
18229 (estimate_numbers_of_iterations_loop): Likewise.
18230 (estimated_loop_iterations): Take a widest_int pointer than than
18231 a double_int pointer.
18232 (estimated_loop_iterations_int): Use wide-int interfaces.
18233 (max_loop_iterations): Take a widest_int pointer than than
18234 a double_int pointer.
18235 (max_loop_iterations_int): Use wide-int interfaces.
18236 (max_stmt_executions): Take a widest_int pointer than than
18237 a double_int pointer.
18238 (estimated_stmt_executions): Likewise.
18239 (n_of_executions_at_most): Use wide-int interfaces.
18240 (scev_probably_wraps_p): Likewise.
18241 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
18242 to real_to_integer.
18243 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
18244 interfaces.
18245 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
18246 double_ints. Adjust for trailing_wide_ints <3> representation.
18247 (set_nonzero_bits): Likewise.
18248 (get_range_info): Return wide_ints rather than double_ints.
18249 Adjust for trailing_wide_ints <3> representation.
18250 (get_nonzero_bits): Likewise.
18251 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
18252 representation.
18253 * tree-ssanames.h (struct range_info_def): Replace min, max and
18254 nonzero_bits with a trailing_wide_ints <3>.
18255 (set_range_info): Use wide_int_refs rather than double_ints.
18256 (set_nonzero_bits): Likewise.
18257 (get_range_info): Return wide_ints rather than double_ints.
18258 (get_nonzero_bits): Likewise.
18259 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
18260 * tree-ssa-pre.c (phi_translate_1): Likewise.
18261 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
18262 (acceptable_pow_call): Likewise.
18263 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
18264 interfaces.
18265 (vn_reference_fold_indirect): Likewise.
18266 (vn_reference_maybe_forwprop_address): Likewise.
18267 (valueize_refs_1): Likewise.
18268 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
18269 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
18270 tree_int_cst_lt and tree_int_cst_le.
18271 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
18272 interfaces.
18273 (streamer_alloc_tree): Likewise.
18274 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
18275 (streamer_write_tree_header): Likewise.
18276 (streamer_write_integer_cst): Likewise.
18277 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
18278 (build_constructors): Likewise.
18279 (array_value_type): Likewise.
18280 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
18281 (vect_check_gather): Likewise.
18282 * tree-vect-generic.c (build_replicated_const): Likewise.
18283 (expand_vector_divmod): Likewise.
18284 * tree-vect-loop.c (vect_transform_loop): Likewise.
18285 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
18286 (vect_do_peeling_for_alignment): Likewise.
18287 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
18288 * tree-vrp.c: Include wide-int.h.
18289 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
18290 (extract_range_from_assert): Use wide-int interfaces.
18291 (vrp_int_const_binop): Likewise.
18292 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
18293 double_int pointers.
18294 (ranges_from_anti_range): Use wide-int interfaces.
18295 (quad_int_cmp): Delete.
18296 (quad_int_pair_sort): Likewise.
18297 (extract_range_from_binary_expr_1): Use wide-int interfaces.
18298 (extract_range_from_unary_expr_1): Likewise.
18299 (adjust_range_with_scev): Likewise.
18300 (masked_increment): Take and return wide_ints rather than double_ints.
18301 (register_edge_assert_for_2): Use wide-int interfaces.
18302 (check_array_ref): Likewise.
18303 (search_for_addr_array): Likewise.
18304 (maybe_set_nonzero_bits): Likewise.
18305 (union_ranges): Pass an integer of the correct type instead of
18306 using integer_one_node.
18307 (intersect_ranges): Likewise.
18308 (simplify_truth_ops_using_ranges): Likewise.
18309 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
18310 (range_fits_type_p): Likewise.
18311 (simplify_cond_using_ranges): Likewise. Take a signop rather than
18312 a bool.
18313 (simplify_conversion_using_ranges): Use wide-int interfaces.
18314 (simplify_float_conversion_using_ranges): Likewise.
18315 (vrp_finalize): Likewise.
18316 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
18317 (gimple_stringops_transform): Likewise.
18318 * varasm.c (decode_addr_const): Likewise.
18319 (const_hash_1): Likewise.
18320 (const_rtx_hash_1): Likewise
18321 (output_constant): Likewise.
18322 (array_size_for_constructor): Likewise.
18323 (output_constructor_regular_field): Likewise.
18324 (output_constructor_bitfield): Likewise.
18325 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
18326 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
18327 GENERATOR_FILEs.
18328 * gencheck.c: Define BITS_PER_UNIT.
18329 * wide-int.cc: New.
18330 * wide-int.h: New.
18331 * wide-int-print.cc: New.
18332 * wide-int-print.h: New.
18333
18334 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18335
18336 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
18337
18338 2014-05-06 Richard Biener <rguenther@suse.de>
18339
18340 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
18341 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
18342 (TODO_verify_all): Adjust.
18343 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
18344 TODO_verify_stmts and TODO_verify_rtl_sharing.
18345 * bb-reorder.c: Likewise.
18346 * cfgexpand.c: Likewise.
18347 * cprop.c: Likewise.
18348 * cse.c: Likewise.
18349 * function.c: Likewise.
18350 * fwprop.c: Likewise.
18351 * gcse.c: Likewise.
18352 * gimple-ssa-isolate-paths.c: Likewise.
18353 * gimple-ssa-strength-reduction.c: Likewise.
18354 * ipa-split.c: Likewise.
18355 * loop-init.c: Likewise.
18356 * loop-unroll.c: Likewise.
18357 * lower-subreg.c: Likewise.
18358 * modulo-sched.c: Likewise.
18359 * postreload-gcse.c: Likewise.
18360 * predict.c: Likewise.
18361 * recog.c: Likewise.
18362 * sched-rgn.c: Likewise.
18363 * store-motion.c: Likewise.
18364 * tracer.c: Likewise.
18365 * trans-mem.c: Likewise.
18366 * tree-call-cdce.c: Likewise.
18367 * tree-cfg.c: Likewise.
18368 * tree-cfgcleanup.c: Likewise.
18369 * tree-complex.c: Likewise.
18370 * tree-eh.c: Likewise.
18371 * tree-emutls.c: Likewise.
18372 * tree-if-conv.c: Likewise.
18373 * tree-into-ssa.c: Likewise.
18374 * tree-loop-distribution.c: Likewise.
18375 * tree-object-size.c: Likewise.
18376 * tree-parloops.c: Likewise.
18377 * tree-pass.h: Likewise.
18378 * tree-sra.c: Likewise.
18379 * tree-ssa-ccp.c: Likewise.
18380 * tree-ssa-copy.c: Likewise.
18381 * tree-ssa-copyrename.c: Likewise.
18382 * tree-ssa-dce.c: Likewise.
18383 * tree-ssa-dom.c: Likewise.
18384 * tree-ssa-dse.c: Likewise.
18385 * tree-ssa-forwprop.c: Likewise.
18386 * tree-ssa-ifcombine.c: Likewise.
18387 * tree-ssa-loop-ch.c: Likewise.
18388 * tree-ssa-loop-ivcanon.c: Likewise.
18389 * tree-ssa-loop.c: Likewise.
18390 * tree-ssa-math-opts.c: Likewise.
18391 * tree-ssa-phiopt.c: Likewise.
18392 * tree-ssa-phiprop.c: Likewise.
18393 * tree-ssa-pre.c: Likewise.
18394 * tree-ssa-reassoc.c: Likewise.
18395 * tree-ssa-sink.c: Likewise.
18396 * tree-ssa-strlen.c: Likewise.
18397 * tree-ssa-tail-merge.c: Likewise.
18398 * tree-ssa-uncprop.c: Likewise.
18399 * tree-switch-conversion.c: Likewise.
18400 * tree-tailcall.c: Likewise.
18401 * tree-vect-generic.c: Likewise.
18402 * tree-vectorizer.c: Likewise.
18403 * tree-vrp.c: Likewise.
18404 * tsan.c: Likewise.
18405 * var-tracking.c: Likewise.
18406 * bt-load.c: Likewise.
18407 * cfgcleanup.c: Likewise.
18408 * combine-stack-adj.c: Likewise.
18409 * combine.c: Likewise.
18410 * compare-elim.c: Likewise.
18411 * config/epiphany/resolve-sw-modes.c: Likewise.
18412 * config/i386/i386.c: Likewise.
18413 * config/mips/mips.c: Likewise.
18414 * config/s390/s390.c: Likewise.
18415 * config/sh/sh_treg_combine.cc: Likewise.
18416 * config/sparc/sparc.c: Likewise.
18417 * dce.c: Likewise.
18418 * dse.c: Likewise.
18419 * final.c: Likewise.
18420 * ifcvt.c: Likewise.
18421 * mode-switching.c: Likewise.
18422 * passes.c: Likewise.
18423 * postreload.c: Likewise.
18424 * ree.c: Likewise.
18425 * reg-stack.c: Likewise.
18426 * regcprop.c: Likewise.
18427 * regrename.c: Likewise.
18428 * web.c: Likewise.
18429
18430 2014-05-06 Richard Biener <rguenther@suse.de>
18431
18432 PR middle-end/61070
18433 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
18434 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
18435
18436 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
18437
18438 PR ipa/60965
18439 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
18440
18441 2014-05-05 Radovan Obradovic <robradovic@mips.com>
18442 Tom de Vries <tom@codesourcery.com>
18443
18444 * target.def (call_fusage_contains_non_callee_clobbers): New
18445 DEFHOOKPOD.
18446 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
18447 Hooks to @menu.
18448 (@node Miscellaneous Register Hooks): New node.
18449 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
18450 * doc/tm.texi: Regenerate.
18451
18452 2014-05-05 Marek Polacek <polacek@redhat.com>
18453
18454 PR driver/61065
18455 * opts.c (common_handle_option): Call error_at instead of warning_at.
18456
18457 2014-05-05 Richard Biener <rguenther@suse.de>
18458
18459 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
18460 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
18461 under the TODO_verify_il umbrella.
18462
18463 2014-05-05 Richard Biener <rguenther@suse.de>
18464
18465 * passes.c (execute_function_todo): Move TODO_verify_flow under
18466 the TODO_verify_ul umbrella.
18467
18468 2014-05-05 Richard Biener <rguenther@suse.de>
18469
18470 PR middle-end/61010
18471 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
18472 X & CST away from a CST that is the mask of a mode.
18473
18474 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18475
18476 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
18477 int argument to enum machine_mode.
18478 (picochip_class_max_nregs): Ditto.
18479 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
18480 (picochip_class_max_nregs): Ditto.
18481
18482 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18483
18484 * target.def: Add new target hook.
18485 * doc/tm.texi: Regenerate.
18486 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
18487 * targhooks.c (default_keep_leaf_when_profiled): New function.
18488
18489 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
18490 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
18491
18492 2014-05-05 Bin Cheng <bin.cheng@arm.com>
18493
18494 PR tree-optimization/60363
18495 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
18496 (copy_phi_args): New parameters. Call get_value_locus_in_path.
18497 (update_destination_phis): New parameter.
18498 (create_edge_and_update_destination_phis): Ditto.
18499 (ssa_fix_duplicate_block_edges): Pass new arguments.
18500 (thread_single_edge): Ditto.
18501
18502 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
18503
18504 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
18505 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
18506 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
18507 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
18508 Use RS6000_BTM_HARD_FLOAT.
18509 (BU_MISC_2): Likewise.
18510 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
18511 RS6000_BTM_HARD_FLOAT.
18512 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
18513 is explicitly used.
18514 (rs6000_invalid_builtin): Add hard floating builtin support.
18515 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
18516 hard float builtins.
18517 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
18518
18519 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18520
18521 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
18522 Add missing function* argument.
18523
18524 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18525
18526 * lra-constraints.c (valid_address_p): Move earlier in file.
18527 Add a constraint argument to the address_info version.
18528 (satisfies_memory_constraint_p): New function.
18529 (satisfies_address_constraint_p): Likewise.
18530 (process_alt_operands, curr_insn_transform): Use them.
18531 (process_address): Pass the constraint to valid_address_p when
18532 checking address operands.
18533
18534 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18535
18536 * config/mips/mips.c (mips_isa_rev): New variable.
18537 (mips_set_architecture): Set it.
18538 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
18539 from mips_isa_rev.
18540 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
18541 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
18542 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
18543 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
18544 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
18545 conditions in terms of mips_isa_rev.
18546 (mips_isa_rev): Declare.
18547
18548 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18549
18550 * config/sh/sh-mem.cc: Use tabs instead of spaces.
18551 (prob_unlikely, prob_likely): Make variables const.
18552
18553 2014-05-03 Denis Chertykov <chertykov@gmail.com>
18554
18555 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
18556
18557 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18558
18559 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
18560
18561 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18562
18563 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
18564 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
18565 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
18566 functions.
18567 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
18568 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
18569 sh_pass_in_reg_p.
18570 Replace usage of ROUND_REG with sh_round_reg.
18571 Use CEIL instead of ROUND_ADVANCE.
18572
18573 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18574
18575 PR target/61026
18576 * config/sh/sh.c: Include stdlib headers before everything else.
18577
18578 2014-05-02 Jakub Jelinek <jakub@redhat.com>
18579
18580 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
18581 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
18582 (gimplify_adjust_omp_clauses): Simd region is never
18583 directly nested in combined parallel. Instead, for linear
18584 with copyin/copyout, if in combined for simd loop, make decl
18585 firstprivate/lastprivate on OMP_FOR.
18586 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
18587 expand_omp_for_static_chunk): When setting endvar, also set
18588 fd->loop.v to the same value.
18589
18590 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18591
18592 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
18593
18594 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
18595
18596 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
18597 expression.
18598
18599 2014-05-02 Marek Polacek <polacek@redhat.com>
18600
18601 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
18602
18603 2014-05-02 Kito Cheng <kito@0xlab.org>
18604
18605 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
18606 to a C expression marco.
18607 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
18608 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
18609 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
18610 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
18611 HONOR_REG_ALLOC_ORDER.
18612 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
18613
18614 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18615
18616 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
18617
18618 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18619
18620 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
18621
18622 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18623
18624 * tree-if-conv.c (is_cond_scalar_reduction): New function.
18625 (convert_scalar_cond_reduction): Likewise.
18626 (predicate_scalar_phi): Add recognition and transformation
18627 of simple conditioanl reduction to be vectorizable.
18628
18629 2014-05-01 Marek Polacek <polacek@redhat.com>
18630
18631 PR c/43245
18632 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
18633
18634 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
18635
18636 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
18637 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
18638 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
18639 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
18640 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
18641 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
18642 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
18643 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
18644
18645 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
18646
18647 * config/arc/arc.opt (mlra): Move comment above option name
18648 to avoid mis-parsing as language options.
18649
18650 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18651
18652 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
18653 * config/sol2.h: ... here.
18654 * config/sol2-10.h: Remove.
18655
18656 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
18657 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
18658 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
18659 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
18660 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
18661 * config/sol2.h: ... here.
18662 (SECTION_NAME_FORMAT): Don't redefine.
18663 (STARTFILE_ARCH32_SPEC): Rename to ...
18664 (STARTFILE_ARCH_SPEC): ... this.
18665 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
18666 * config/sparc/sol2.h: ... here.
18667 (SECTION_NAME_FORMAT): Don't undef.
18668 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
18669 (SUBTARGET_EXTRA_SPECS): Remove.
18670 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
18671
18672 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
18673 (MD_STARTFILE_PREFIX): Remove.
18674 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
18675 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
18676 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
18677 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
18678 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
18679 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
18680 * config/i386/sol2.h: ... here.
18681 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
18682 * config/i386/sol2-bi.h: Remove.
18683 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
18684 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
18685
18686 * config/i386/t-sol2-64: Rename to ...
18687 * config/i386/t-sol2: ... this.
18688 * config/sparc/t-sol2-64: Rename to ...
18689 * config/sparc/t-sol2: ... this.
18690
18691 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
18692 sol2_tm_file_head, sol2_tm_file_tail.
18693 Include ${cpu_type}/sol2.h before sol2.h.
18694 Remove sol2-10.h.
18695 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
18696 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
18697 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
18698 Reflect i386/t-sol2-64 renaming.
18699 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
18700 Reflect sparc/t-sol2-64 renaming.
18701
18702 2014-04-30 Richard Biener <rguenther@suse.de>
18703
18704 * passes.c (execute_function_todo): Move TODO_verify_stmts
18705 and TODO_verify_ssa under the TODO_verify_il umbrella.
18706 * tree-ssa.h (verify_ssa): Adjust prototype.
18707 * tree-ssa.c (verify_ssa): Add parameter to tell whether
18708 we should verify SSA operands.
18709 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
18710 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
18711 whether we should verify whether not throwing stmts have EH info.
18712 * graphite-scop-detection.c (create_sese_edges): Adjust.
18713 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
18714 * tree-eh.c (lower_try_finally_switch): Do not add the
18715 default case label twice.
18716
18717 2014-04-30 Marek Polacek <polacek@redhat.com>
18718
18719 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
18720 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
18721 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
18722 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
18723
18724 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
18725
18726 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
18727 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
18728 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
18729 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
18730 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
18731 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
18732 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
18733 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
18734
18735 2014-04-29 David Malcolm <dmalcolm@redhat.com>
18736
18737 * tree-cfg.c (dump_function_to_file): Dump the return type of
18738 functions, in a line to itself before the function body, mimicking
18739 the layout of a C function.
18740
18741 2014-04-29 Jakub Jelinek <jakub@redhat.com>
18742
18743 PR tree-optimization/60971
18744 * tree-tailcall.c (process_assignment): Reject conversions which
18745 reduce precision.
18746
18747 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18748
18749 * calls.c (initialize_argument_information): Always treat
18750 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
18751 (expand_call): Likewise.
18752 (emit_library_call_calue_1): Likewise.
18753 * expr.c (PUSH_ARGS_REVERSED): Do not define.
18754 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
18755 code accordingly.
18756
18757 2014-04-29 Nick Clifton <nickc@redhat.com>
18758
18759 * config/msp430/msp430.md (umulsidi): Fix typo.
18760 (mulhisi3): Enable even inside interrupt handlers.
18761 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
18762 bigger return address pushed in large mode.
18763
18764 2014-04-29 Nick Clifton <nickc@redhat.com>
18765
18766 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
18767 (arc_init_reg_tables): Use a machine_mode enum to iterate over
18768 available modes.
18769 * config/m32r/m32r.c (init_reg_tables): Likewise.
18770 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
18771 enum to hold the modes.
18772
18773 2014-04-29 Richard Biener <rguenther@suse.de>
18774
18775 * dominance.c (free_dominance_info): Add overload with
18776 function parameter.
18777 (dom_info_state): Likewise.
18778 (dom_info_available_p): Likewise.
18779 * basic-block.h (free_dominance_info, dom_info_state,
18780 dom_info_available_p): Declare overloads.
18781 * passes.c (execute_function_todo): Verify that verifiers
18782 don't change dominator info state. Drop dominator info
18783 for IPA pass invocations.
18784 * cgraph.c (release_function_body): Restore asserts that
18785 dominator information is released.
18786
18787 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
18788
18789 * doc/invoke.texi: Fix typo.
18790 * tree-vrp.c: Fix typos.
18791 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
18792
18793 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18794
18795 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
18796
18797 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18798
18799 * config/aarch64/aarch64-builtins.c
18800 (aarch64_types_storestruct_lane_qualifiers): New.
18801 (TYPES_STORESTRUCT_LANE): Likewise.
18802 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
18803 (st3_lane): Likewise.
18804 (st4_lane): Likewise.
18805 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
18806 (vec_store_lanesci_lane<mode>): Likewise.
18807 (vec_store_lanesxi_lane<mode>): Likewise.
18808 (aarch64_st2_lane<VQ:mode>): Likewise.
18809 (aarch64_st3_lane<VQ:mode>): Likewise.
18810 (aarch64_st4_lane<VQ:mode>): Likewise.
18811 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
18812 * config/aarch64/arm_neon.h
18813 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
18814 use new macro arguments.
18815 (__ST3_LANE_FUNC): Likewise.
18816 (__ST4_LANE_FUNC): Likewise.
18817 * config/aarch64/iterators.md (V_TWO_ELEM): New.
18818 (V_THREE_ELEM): Likewise.
18819 (V_FOUR_ELEM): Likewise.
18820
18821 2014-04-28 David Malcolm <dmalcolm@redhat.com>
18822
18823 * doc/gimple.texi: Replace the description of the now-defunct
18824 union gimple_statement_d with a diagram showing the
18825 gimple_statement_base class hierarchy and its relationships to
18826 the GSS_ and GIMPLE_ enums.
18827
18828 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18829
18830 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
18831 * config/aarch64/aarch64.c
18832 (aarch64_cannot_change_mode_class): Weaken conditions.
18833 (aarch64_modes_tieable_p): New.
18834 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
18835
18836 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
18837
18838 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
18839 (loadsync_<mode>): Change mode.
18840 (load_quadpti, store_quadpti): New.
18841 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
18842 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
18843
18844 2014-04-28 Martin Jambor <mjambor@suse.cz>
18845
18846 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
18847 same alias type as the original statement.
18848 (subreplacement_assignment_data): New type.
18849 (handle_unscalarized_data_in_subtree): New type of parameter,
18850 generate new memory accesses with same alias type as the original
18851 statement.
18852 (load_assign_lhs_subreplacements): Likewise.
18853 (sra_modify_constructor_assign): Generate new memory accesses with
18854 same alias type as the original statement.
18855
18856 2014-04-28 Richard Biener <rguenther@suse.de>
18857
18858 * tree-pass.h (TODO_verify_il): Define.
18859 (TODO_verify_all): Complete properly.
18860 * passes.c (execute_function_todo): Move existing loop-closed
18861 SSA verification under TODO_verify_il.
18862 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
18863 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
18864 Fix tree sharing issue.
18865
18866 2014-04-28 Richard Biener <rguenther@suse.de>
18867
18868 PR middle-end/60092
18869 * builtins.def (DEF_C11_BUILTIN): Add.
18870 (BUILT_IN_ALIGNED_ALLOC): Likewise.
18871 * coretypes.h (enum function_class): Add function_c11_misc.
18872 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18873 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
18874 (call_may_clobber_ref_p_1): Likewise.
18875 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18876 (mark_all_reaching_defs_necessary_1): Likewise.
18877 (propagate_necessity): Likewise.
18878 (eliminate_unnecessary_stmts): Likewise.
18879 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
18880
18881 2014-04-28 Richard Biener <rguenther@suse.de>
18882
18883 * tree-vrp.c (vrp_var_may_overflow): Remove.
18884 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
18885 with overflow immediately bump to one before that value and
18886 let iteration figure out overflow status.
18887
18888 2014-04-28 Richard Biener <rguenther@suse.de>
18889
18890 * configure.ac: Do valgrind header checks unconditionally.
18891 Add --enable-valgrind-annotations.
18892 * system.h: Guard valgrind header inclusion with
18893 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
18894 * alloc-pool.c (pool_alloc, pool_free): Use
18895 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
18896 to guard possibly dead code.
18897 * config.in: Regenerated.
18898 * configure: Likewise.
18899
18900 2014-04-28 Jeff Law <law@redhat.com>
18901
18902 PR tree-optimization/60902
18903 * tree-ssa-threadedge.c
18904 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
18905 over real defs when invalidating outputs from statements that do not
18906 produce useful outputs for threading.
18907
18908 2014-04-28 Richard Biener <rguenther@suse.de>
18909
18910 PR tree-optimization/60979
18911 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
18912 SCOPs that end in a block with a successor with abnormal
18913 predecessors.
18914
18915 2014-04-28 Richard Biener <rguenther@suse.de>
18916
18917 * tree-pass.h (execute_pass_list): Adjust prototype.
18918 * passes.c (pass_manager::execute_early_local_passes): Adjust.
18919 (do_per_function): Change callback signature, push all actual
18920 work to the callbals.
18921 (do_per_function_toporder): Likewise.
18922 (execute_function_dump): Adjust.
18923 (execute_function_todo): Likewise.
18924 (clear_last_verified): Likewise.
18925 (verify_curr_properties): Likewise.
18926 (update_properties_after_pass): Likewise.
18927 (execute_pass_list_1): Split out from ...
18928 (execute_pass_list): ... here. Adjust.
18929 (execute_ipa_pass_list): Likewise.
18930 * cgraphunit.c (cgraph_add_new_function): Adjust.
18931 (analyze_function): Likewise.
18932 (expand_function): Likewise.
18933 * cgraph.c (release_function_body): Free dominance info
18934 here instead of asserting it was magically freed elsewhere.
18935
18936 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
18937
18938 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
18939 * configure: Regenerate.
18940 * config/sparc/sparc.opt (muser-mode): New option.
18941 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
18942 for LEON3.
18943 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
18944 * doc/invoke.texi (SPARC options): Document -muser-mode.
18945
18946 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
18947
18948 * cselib.c (find_slot_memmode): Delete.
18949 (cselib_hasher): Change compare_type to a struct.
18950 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
18951 constants.
18952 (preserve_constants_and_equivs): Adjust for new compare_type.
18953 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
18954 (wrap_constant): Delete.
18955 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
18956
18957 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
18958
18959 * doc/install.texi (Building with profile feedback): Remove
18960 outdated sentence.
18961
18962 2014-04-26 Tom de Vries <tom@codesourcery.com>
18963
18964 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
18965 array accesses.
18966
18967 2014-04-25 Cary Coutant <ccoutant@google.com>
18968
18969 PR debug/60929
18970 * dwarf2out.c (should_move_die_to_comdat): A type definition
18971 can contain a subprogram definition, but don't move it to a
18972 comdat unit.
18973 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
18974 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
18975 from original DIE.
18976 (clone_tree_hash): Rename to...
18977 (clone_tree_partial): ...this; change callers. Copy
18978 DW_TAG_subprogram DIEs as declarations.
18979 (copy_decls_walk): Don't copy children of a declaration into a
18980 type unit.
18981
18982 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
18983
18984 PR target/60969
18985 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
18986 alternative 12.
18987
18988 2014-04-25 Jiong Wang <jiong.wang@arm.com>
18989
18990 * config/arm/predicates.md (call_insn_operand): Add long_call check.
18991 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
18992 reg for long_call.
18993 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
18994 restriction.
18995
18996 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18997
18998 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
18999
19000 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19001
19002 PR tree-optimization/60930
19003 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
19004 creating a multiply candidate by folding two constant
19005 multiplicands when the result overflows.
19006
19007 2014-04-25 Jakub Jelinek <jakub@redhat.com>
19008
19009 PR tree-optimization/60960
19010 * tree-vect-generic.c (expand_vector_operation): Only call
19011 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
19012
19013 2014-04-25 Tom de Vries <tom@codesourcery.com>
19014
19015 * expr.c (clobber_reg_mode): New function.
19016 * expr.h (clobber_reg): New function.
19017
19018 2014-04-25 Tom de Vries <tom@codesourcery.com>
19019
19020 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
19021 clobbers.
19022
19023 2014-04-25 Radovan Obradovic <robradovic@mips.com>
19024 Tom de Vries <tom@codesourcery.com>
19025
19026 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
19027 handle.
19028 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
19029 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
19030 new argument to find_all_hard_reg_sets call.
19031
19032 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19033
19034 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
19035 Use HOST_WIDE_INT_C for mask literal.
19036 (aarch_rev16_shleft_mask_imm_p): Likewise.
19037
19038 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
19039
19040 PR target/60941
19041 * config/sparc/sparc.md (ashlsi3_extend): Delete.
19042
19043 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
19044
19045 PR preprocessor/56540
19046 * config/i386/i386-c.c (ix86_target_macros): Define
19047 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
19048
19049 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19050
19051 * configure.ac (tga_func): Remove.
19052 (LIB_TLS_SPEC): Remove.
19053 * configure: Regenerate.
19054 * config.in: Regenerate.
19055 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
19056
19057 2014-04-25 Richard Biener <rguenther@suse.de>
19058
19059 PR ipa/60912
19060 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
19061 call stmt use/clobber sets during stmt walk instead of
19062 walking the possibly incomplete set of caller edges.
19063
19064 2014-04-25 Richard Biener <rguenther@suse.de>
19065
19066 PR ipa/60911
19067 * passes.c (apply_ipa_transforms): Inline into only caller ...
19068 (execute_one_pass): ... here. Properly bring in function
19069 bodies for nodes we want to apply IPA transforms to.
19070
19071 2014-04-24 Cong Hou <congh@google.com>
19072
19073 PR tree-optimization/60896
19074 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
19075 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
19076 (vect_mark_pattern_stmts): Set the def type of all statements in
19077 PATTERN_DEF_SEQ as vect_internal_def.
19078
19079 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
19080
19081 * doc/extend.texi (PowerPC Built-in Functions): Document new
19082 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
19083 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
19084
19085 * config/rs6000/predicates.md (const_0_to_3_operand): New
19086 predicate to match 0..3 integer constants.
19087
19088 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
19089 to support adding miscellaneous builtin functions.
19090 (BU_DFP_MISC_2): Likewise.
19091 (BU_P7_MISC_1): Likewise.
19092 (BU_P7_MISC_2): Likewise.
19093 (BU_P8V_MISC_3): Likewise.
19094 (BU_MISC_1): Likewise.
19095 (BU_MISC_2): Likewise.
19096 (DIVWE): Add extended divide builtin functions.
19097 (DIVWEO): Likewise.
19098 (DIVWEU): Likewise.
19099 (DIVWEUO): Likewise.
19100 (DIVDE): Likewise.
19101 (DIVDEO): Likewise.
19102 (DIVDEU): Likewise.
19103 (DIVDEUO): Likewise.
19104 (DXEX): Add decimal floating-point builtin functions.
19105 (DXEXQ): Likewise.
19106 (DDEDPD): Likewise.
19107 (DDEDPDQ): Likewise.
19108 (DENBCD): Likewise.
19109 (DENBCDQ): Likewise.
19110 (DIEX): Likewise.
19111 (DIEXQ): Likewise.
19112 (DSCLI): Likewise.
19113 (DSCLIQ): Likewise.
19114 (DSCRI): Likewise.
19115 (DSCRIQ): Likewise.
19116 (CDTBCD): Add new BCD builtin functions.
19117 (CBCDTD): Likewise.
19118 (ADDG6S): Likewise.
19119 (BCDADD): Likewise.
19120 (BCDADD_LT): Likewise.
19121 (BCDADD_EQ): Likewise.
19122 (BCDADD_GT): Likewise.
19123 (BCDADD_OV): Likewise.
19124 (BCDSUB): Likewise.
19125 (BCDSUB_LT): Likewise.
19126 (BCDSUB_EQ): Likewise.
19127 (BCDSUB_GT): Likewise.
19128 (BCDSUB_OV): Likewise.
19129 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
19130 (UNPACK_TD): Likewise.
19131 (PACK_TF): Likewise.
19132 (UNPACK_TF): Likewise.
19133 (UNPACK_TF_0): Likewise.
19134 (UNPACK_TF_1): Likewise.
19135 (PACK_V1TI): Likewise.
19136 (UNPACK_V1TI): Likewise.
19137
19138 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
19139 support for decimal floating point builtin functions.
19140 (rs6000_expand_ternop_builtin): Add checks for the new builtin
19141 functions that take constant arguments.
19142 (rs6000_invalid_builtin): Add decimal floating point builtin support.
19143 (rs6000_init_builtins): Setup long double, _Decimal64, and
19144 _Decimal128 types for new builtin functions.
19145 (builtin_function_type): Set the unsigned flags appropriately for
19146 the new builtin functions.
19147 (rs6000_opt_masks): Add support for decimal floating point builtin
19148 functions.
19149
19150 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
19151 floating point builtin functions.
19152 (RS6000_BTM_COMMON): Likewise.
19153 (RS6000_BTI_long_double): Likewise.
19154 (RS6000_BTI_dfloat64): Likewise.
19155 (RS6000_BTI_dfloat128): Likewise.
19156 (long_double_type_internal_node): Likewise.
19157 (dfloat64_type_internal_node): Likewise.
19158 (dfloat128_type_internal_node): Likewise.
19159
19160 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
19161 2.07 bcd arithmetic instructions.
19162 (UNSPEC_BCDSUB): Likewise.
19163 (UNSPEC_BCD_OVERFLOW): Likewise.
19164 (UNSPEC_BCD_ADD_SUB): Likewise.
19165 (bcd_add_sub): Likewise.
19166 (BCD_TEST): Likewise.
19167 (bcd<bcd_add_sub>): Likewise.
19168 (bcd<bcd_add_sub>_test): Likewise.
19169 (bcd<bcd_add_sub>_test2): Likewise.
19170 (bcd<bcd_add_sub>_<code>): Likewise.
19171 (peephole2 for combined bcd ops): Likewise.
19172
19173 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
19174 decimal floating point builtin functions.
19175 (UNSPEC_DENBCD): Likewise.
19176 (UNSPEC_DXEX): Likewise.
19177 (UNSPEC_DIEX): Likewise.
19178 (UNSPEC_DSCLI): Likewise.
19179 (UNSPEC_DSCRI): Likewise.
19180 (D64_D128): Likewise.
19181 (dfp_suffix): Likewise.
19182 (dfp_ddedpd_<mode>): Likewise.
19183 (dfp_denbcd_<mode>): Likewise.
19184 (dfp_dxex_<mode>): Likewise.
19185 (dfp_diex_<mode>): Likewise.
19186 (dfp_dscli_<mode>): Likewise.
19187 (dfp_dscri_<mode>): Likewise.
19188
19189 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
19190 builtin functions.
19191 (UNSPEC_CDTBCD): Likewise.
19192 (UNSPEC_CBCDTD): Likewise.
19193 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
19194 (UNSPEC_DIVEO): Likewise.
19195 (UNSPEC_DIVEU): Likewise.
19196 (UNSPEC_DIVEUO): Likewise.
19197 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
19198 pack/unpack 128-bit types.
19199 (UNSPEC_PACK_128BIT): Likewise.
19200 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
19201 (udiv<mode>3): Use idiv_ldiv mode attribute.
19202 (div<mode>3): Likewise.
19203 (addg6s): Add new BCD builtin functions.
19204 (cdtbcd): Likewise.
19205 (cbcdtd): Likewise.
19206 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
19207 (div_extend): Likewise.
19208 (div<div_extend>_<mode>"): Likewise.
19209 (FP128_64): Add support for new builtin functions to pack/unpack
19210 128-bit types.
19211 (unpack<mode>): Likewise.
19212 (unpacktf_0): Likewise.
19213 (unpacktf_1): Likewise.
19214 (unpack<mode>_dm): Likewise.
19215 (unpack<mode>_nodm): Likewise.
19216 (pack<mode>): Likewise.
19217 (unpackv1ti): Likewise.
19218 (packv1ti): Likewise.
19219
19220 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
19221
19222 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
19223 is disabled.
19224
19225 2014-04-24 Jakub Jelinek <jakub@redhat.com>
19226
19227 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
19228 * gimplify.c (omp_is_private): Change last argument's type to int.
19229 Only diagnose lastprivate if the simd argument is 1, only diagnose
19230 linear if the simd argument is 2.
19231 (gimplify_omp_for): Adjust omp_is_private callers. When adding
19232 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
19233 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
19234 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
19235 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
19236 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
19237 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
19238 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
19239 * tree-nested.c (convert_nonlocal_omp_clauses,
19240 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
19241
19242 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
19243
19244 PR target/60822
19245 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
19246 operand 1.
19247
19248 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
19249
19250 * flag-types.h (enum ivar_visibility): Add.
19251
19252 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
19253
19254 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
19255 function * argument.
19256
19257 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
19258
19259 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
19260
19261 2014-04-24 Radovan Obradovic <robradovic@mips.com>
19262 Tom de Vries <tom@codesourcery.com>
19263
19264 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
19265 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
19266 reg-note.
19267 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
19268 * emit-rtl.c (try_split): Same.
19269
19270 2014-04-24 Radovan Obradovic <robradovic@mips.com>
19271 Tom de Vries <tom@codesourcery.com>
19272
19273 * common.opt (fuse-caller-save): New option.
19274
19275 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
19276
19277 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
19278 elements for big-endian.
19279
19280 2014-04-24 Richard Biener <rguenther@suse.de>
19281
19282 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
19283 during TER and instead use the sepops interface for expanding
19284 non-GIMPLE_SINGLE_RHS.
19285
19286 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19287
19288 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
19289 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
19290
19291 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19292
19293 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
19294 assembler 64-bit option.
19295 * configure: Regenerate.
19296
19297 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19298
19299 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
19300 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
19301 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
19302 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
19303 (TARGET_CRYPTO): Take TARGET_SIMD into account.
19304
19305 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19306
19307 * config/aarch64/aarch64-builtins.c
19308 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
19309 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
19310 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
19311 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
19312 builtins.
19313 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
19314 (Vrevsuff): New mode attribute.
19315
19316 2014-04-24 Terry Guo <terry.guo@arm.com>
19317
19318 * config/arm/arm.h (machine_function): Define variable
19319 after_arm_reorg here.
19320 * config/arm/arm.c (after_arm_reorg): Remove the definition.
19321 (arm_split_constant): Update the way to access variable
19322 after_arm_reorg.
19323 (arm_reorg): Ditto.
19324 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
19325
19326 2014-04-23 Tom de Vries <tom@codesourcery.com>
19327
19328 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
19329
19330 2014-04-23 David Malcolm <dmalcolm@redhat.com>
19331
19332 * is-a.h: Update comments to reflect the following changes to the
19333 "pointerness" of the API, making the template parameter match the
19334 return type, allowing use of is-a.h with typedefs of pointers.
19335 (is_a_helper::cast): Return a T rather then a pointer to a T, so
19336 that the return type matches the parameter to the is_a_helper.
19337 (as_a): Likewise.
19338 (dyn_cast): Likewise.
19339
19340 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
19341 pointer from the is-a.h API.
19342
19343 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
19344 (is_a_helper <cgraph_node *>::test): ...this, matching change to
19345 is-a.h API.
19346 (is_a_helper <varpool_node>::test): Likewise, convert to...
19347 (is_a_helper <varpool_node *>::test): ...this.
19348
19349 (varpool_first_variable): Update for removal of implicit pointer
19350 from the is-a.h API.
19351 (varpool_next_variable): Likewise.
19352 (varpool_first_static_initializer): Likewise.
19353 (varpool_next_static_initializer): Likewise.
19354 (varpool_first_defined_variable): Likewise.
19355 (varpool_next_defined_variable): Likewise.
19356 (cgraph_first_defined_function): Likewise.
19357 (cgraph_next_defined_function): Likewise.
19358 (cgraph_first_function): Likewise.
19359 (cgraph_next_function): Likewise.
19360 (cgraph_first_function_with_gimple_body): Likewise.
19361 (cgraph_next_function_with_gimple_body): Likewise.
19362 (cgraph_alias_target): Likewise.
19363 (varpool_alias_target): Likewise.
19364 (cgraph_function_or_thunk_node): Likewise.
19365 (varpool_variable_node): Likewise.
19366 (symtab_real_symbol_p): Likewise.
19367 * cgraphunit.c (referred_to_p): Likewise.
19368 (analyze_functions): Likewise.
19369 (handle_alias_pairs): Likewise.
19370 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
19371 * gimple-ssa.h (gimple_vuse_op): Likewise.
19372 (gimple_vdef_op): Likewise.
19373 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
19374 * gimple.c (gimple_build_asm_1): Likewise.
19375 (gimple_build_try): Likewise.
19376 (gimple_build_resx): Likewise.
19377 (gimple_build_eh_dispatch): Likewise.
19378 (gimple_build_omp_for): Likewise.
19379 (gimple_omp_for_set_clauses): Likewise.
19380
19381 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
19382 (is_a_helper <gimple_statement_asm *>::test): ...this.
19383 (is_a_helper <gimple_statement_bind>::test): Convert to...
19384 (is_a_helper <gimple_statement_bind *>::test): ...this.
19385 (is_a_helper <gimple_statement_call>::test): Convert to...
19386 (is_a_helper <gimple_statement_call *>::test): ...this.
19387 (is_a_helper <gimple_statement_catch>::test): Convert to...
19388 (is_a_helper <gimple_statement_catch *>::test): ...this.
19389 (is_a_helper <gimple_statement_resx>::test): Convert to...
19390 (is_a_helper <gimple_statement_resx *>::test): ...this.
19391 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
19392 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
19393 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
19394 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
19395 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
19396 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
19397 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
19398 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
19399 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
19400 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
19401 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
19402 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
19403 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
19404 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
19405 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
19406 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
19407 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
19408 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
19409 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
19410 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
19411 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
19412 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
19413 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
19414 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
19415 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
19416 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
19417 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
19418 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
19419 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
19420 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
19421 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
19422 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
19423 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
19424 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
19425 (is_a_helper <gimple_statement_phi>::test): Convert to...
19426 (is_a_helper <gimple_statement_phi *>::test): ...this.
19427 (is_a_helper <gimple_statement_transaction>::test): Convert to...
19428 (is_a_helper <gimple_statement_transaction *>::test): ...this.
19429 (is_a_helper <gimple_statement_try>::test): Convert to...
19430 (is_a_helper <gimple_statement_try *>::test): ...this.
19431 (is_a_helper <gimple_statement_wce>::test): Convert to...
19432 (is_a_helper <gimple_statement_wce *>::test): ...this.
19433 (is_a_helper <const gimple_statement_asm>::test): Convert to...
19434 (is_a_helper <const gimple_statement_asm *>::test): ...this.
19435 (is_a_helper <const gimple_statement_bind>::test): Convert to...
19436 (is_a_helper <const gimple_statement_bind *>::test): ...this.
19437 (is_a_helper <const gimple_statement_call>::test): Convert to...
19438 (is_a_helper <const gimple_statement_call *>::test): ...this.
19439 (is_a_helper <const gimple_statement_catch>::test): Convert to...
19440 (is_a_helper <const gimple_statement_catch *>::test): ...this.
19441 (is_a_helper <const gimple_statement_resx>::test): Convert to...
19442 (is_a_helper <const gimple_statement_resx *>::test): ...this.
19443 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
19444 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
19445 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
19446 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
19447 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
19448 Convert to...
19449 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
19450 ...this.
19451 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
19452 Convert to...
19453 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
19454 ...this.
19455 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
19456 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
19457 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
19458 to...
19459 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
19460 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
19461 to...
19462 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
19463 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
19464 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
19465 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
19466 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
19467 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
19468 to...
19469 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
19470 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
19471 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
19472 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
19473 to...
19474 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
19475 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
19476 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
19477 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
19478 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
19479 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
19480 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
19481 (is_a_helper <const gimple_statement_phi>::test): Convert to...
19482 (is_a_helper <const gimple_statement_phi *>::test): ...this.
19483 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
19484 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
19485 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
19486 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
19487 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
19488 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
19489 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
19490 to...
19491 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
19492 ...this.
19493 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
19494 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
19495
19496 (gimple_use_ops): Update for removal of implicit pointer from the
19497 is-a.h API.
19498 (gimple_set_use_ops): Likewise.
19499 (gimple_vuse): Likewise.
19500 (gimple_vdef): Likewise.
19501 (gimple_vuse_ptr): Likewise.
19502 (gimple_vdef_ptr): Likewise.
19503 (gimple_set_vuse): Likewise.
19504 (gimple_set_vdef): Likewise.
19505 (gimple_omp_return_set_lhs): Likewise.
19506 (gimple_omp_return_lhs): Likewise.
19507 (gimple_omp_return_lhs_ptr): Likewise.
19508 (gimple_call_fntype): Likewise.
19509 (gimple_call_set_fntype): Likewise.
19510 (gimple_call_set_internal_fn): Likewise.
19511 (gimple_call_use_set): Likewise.
19512 (gimple_call_clobber_set): Likewise.
19513 (gimple_bind_vars): Likewise.
19514 (gimple_bind_set_vars): Likewise.
19515 (gimple_bind_body_ptr): Likewise.
19516 (gimple_bind_set_body): Likewise.
19517 (gimple_bind_add_stmt): Likewise.
19518 (gimple_bind_block): Likewise.
19519 (gimple_bind_set_block): Likewise.
19520 (gimple_asm_ninputs): Likewise.
19521 (gimple_asm_noutputs): Likewise.
19522 (gimple_asm_nclobbers): Likewise.
19523 (gimple_asm_nlabels): Likewise.
19524 (gimple_asm_input_op): Likewise.
19525 (gimple_asm_input_op_ptr): Likewise.
19526 (gimple_asm_output_op): Likewise.
19527 (gimple_asm_output_op_ptr): Likewise.
19528 (gimple_asm_set_output_op): Likewise.
19529 (gimple_asm_clobber_op): Likewise.
19530 (gimple_asm_set_clobber_op): Likewise.
19531 (gimple_asm_label_op): Likewise.
19532 (gimple_asm_set_label_op): Likewise.
19533 (gimple_asm_string): Likewise.
19534 (gimple_catch_types): Likewise.
19535 (gimple_catch_types_ptr): Likewise.
19536 (gimple_catch_handler_ptr): Likewise.
19537 (gimple_catch_set_types): Likewise.
19538 (gimple_catch_set_handler): Likewise.
19539 (gimple_eh_filter_types): Likewise.
19540 (gimple_eh_filter_types_ptr): Likewise.
19541 (gimple_eh_filter_failure_ptr): Likewise.
19542 (gimple_eh_filter_set_types): Likewise.
19543 (gimple_eh_filter_set_failure): Likewise.
19544 (gimple_eh_must_not_throw_fndecl): Likewise.
19545 (gimple_eh_must_not_throw_set_fndecl): Likewise.
19546 (gimple_eh_else_n_body_ptr): Likewise.
19547 (gimple_eh_else_e_body_ptr): Likewise.
19548 (gimple_eh_else_set_n_body): Likewise.
19549 (gimple_eh_else_set_e_body): Likewise.
19550 (gimple_try_eval_ptr): Likewise.
19551 (gimple_try_cleanup_ptr): Likewise.
19552 (gimple_try_set_eval): Likewise.
19553 (gimple_try_set_cleanup): Likewise.
19554 (gimple_wce_cleanup_ptr): Likewise.
19555 (gimple_wce_set_cleanup): Likewise.
19556 (gimple_phi_capacity): Likewise.
19557 (gimple_phi_num_args): Likewise.
19558 (gimple_phi_result): Likewise.
19559 (gimple_phi_result_ptr): Likewise.
19560 (gimple_phi_set_result): Likewise.
19561 (gimple_phi_arg): Likewise.
19562 (gimple_phi_set_arg): Likewise.
19563 (gimple_resx_region): Likewise.
19564 (gimple_resx_set_region): Likewise.
19565 (gimple_eh_dispatch_region): Likewise.
19566 (gimple_eh_dispatch_set_region): Likewise.
19567 (gimple_omp_critical_name): Likewise.
19568 (gimple_omp_critical_name_ptr): Likewise.
19569 (gimple_omp_critical_set_name): Likewise.
19570 (gimple_omp_for_clauses): Likewise.
19571 (gimple_omp_for_clauses_ptr): Likewise.
19572 (gimple_omp_for_set_clauses): Likewise.
19573 (gimple_omp_for_collapse): Likewise.
19574 (gimple_omp_for_index): Likewise.
19575 (gimple_omp_for_index_ptr): Likewise.
19576 (gimple_omp_for_set_index): Likewise.
19577 (gimple_omp_for_initial): Likewise.
19578 (gimple_omp_for_initial_ptr): Likewise.
19579 (gimple_omp_for_set_initial): Likewise.
19580 (gimple_omp_for_final): Likewise.
19581 (gimple_omp_for_final_ptr): Likewise.
19582 (gimple_omp_for_set_final): Likewise.
19583 (gimple_omp_for_incr): Likewise.
19584 (gimple_omp_for_incr_ptr): Likewise.
19585 (gimple_omp_for_set_incr): Likewise.
19586 (gimple_omp_for_pre_body_ptr): Likewise.
19587 (gimple_omp_for_set_pre_body): Likewise.
19588 (gimple_omp_parallel_clauses): Likewise.
19589 (gimple_omp_parallel_clauses_ptr): Likewise.
19590 (gimple_omp_parallel_set_clauses): Likewise.
19591 (gimple_omp_parallel_child_fn): Likewise.
19592 (gimple_omp_parallel_child_fn_ptr): Likewise.
19593 (gimple_omp_parallel_set_child_fn): Likewise.
19594 (gimple_omp_parallel_data_arg): Likewise.
19595 (gimple_omp_parallel_data_arg_ptr): Likewise.
19596 (gimple_omp_parallel_set_data_arg): Likewise.
19597 (gimple_omp_task_clauses): Likewise.
19598 (gimple_omp_task_clauses_ptr): Likewise.
19599 (gimple_omp_task_set_clauses): Likewise.
19600 (gimple_omp_task_child_fn): Likewise.
19601 (gimple_omp_task_child_fn_ptr): Likewise.
19602 (gimple_omp_task_set_child_fn): Likewise.
19603 (gimple_omp_task_data_arg): Likewise.
19604 (gimple_omp_task_data_arg_ptr): Likewise.
19605 (gimple_omp_task_set_data_arg): Likewise.
19606 (gimple_omp_taskreg_clauses): Likewise.
19607 (gimple_omp_taskreg_clauses_ptr): Likewise.
19608 (gimple_omp_taskreg_set_clauses): Likewise.
19609 (gimple_omp_taskreg_child_fn): Likewise.
19610 (gimple_omp_taskreg_child_fn_ptr): Likewise.
19611 (gimple_omp_taskreg_set_child_fn): Likewise.
19612 (gimple_omp_taskreg_data_arg): Likewise.
19613 (gimple_omp_taskreg_data_arg_ptr): Likewise.
19614 (gimple_omp_taskreg_set_data_arg): Likewise.
19615 (gimple_omp_task_copy_fn): Likewise.
19616 (gimple_omp_task_copy_fn_ptr): Likewise.
19617 (gimple_omp_task_set_copy_fn): Likewise.
19618 (gimple_omp_task_arg_size): Likewise.
19619 (gimple_omp_task_arg_size_ptr): Likewise.
19620 (gimple_omp_task_set_arg_size): Likewise.
19621 (gimple_omp_task_arg_align): Likewise.
19622 (gimple_omp_task_arg_align_ptr): Likewise.
19623 (gimple_omp_task_set_arg_align): Likewise.
19624 (gimple_omp_single_clauses): Likewise.
19625 (gimple_omp_single_clauses_ptr): Likewise.
19626 (gimple_omp_single_set_clauses): Likewise.
19627 (gimple_omp_target_clauses): Likewise.
19628 (gimple_omp_target_clauses_ptr): Likewise.
19629 (gimple_omp_target_set_clauses): Likewise.
19630 (gimple_omp_target_child_fn): Likewise.
19631 (gimple_omp_target_child_fn_ptr): Likewise.
19632 (gimple_omp_target_set_child_fn): Likewise.
19633 (gimple_omp_target_data_arg): Likewise.
19634 (gimple_omp_target_data_arg_ptr): Likewise.
19635 (gimple_omp_target_set_data_arg): Likewise.
19636 (gimple_omp_teams_clauses): Likewise.
19637 (gimple_omp_teams_clauses_ptr): Likewise.
19638 (gimple_omp_teams_set_clauses): Likewise.
19639 (gimple_omp_sections_clauses): Likewise.
19640 (gimple_omp_sections_clauses_ptr): Likewise.
19641 (gimple_omp_sections_set_clauses): Likewise.
19642 (gimple_omp_sections_control): Likewise.
19643 (gimple_omp_sections_control_ptr): Likewise.
19644 (gimple_omp_sections_set_control): Likewise.
19645 (gimple_omp_for_set_cond): Likewise.
19646 (gimple_omp_for_cond): Likewise.
19647 (gimple_omp_atomic_store_set_val): Likewise.
19648 (gimple_omp_atomic_store_val): Likewise.
19649 (gimple_omp_atomic_store_val_ptr): Likewise.
19650 (gimple_omp_atomic_load_set_lhs): Likewise.
19651 (gimple_omp_atomic_load_lhs): Likewise.
19652 (gimple_omp_atomic_load_lhs_ptr): Likewise.
19653 (gimple_omp_atomic_load_set_rhs): Likewise.
19654 (gimple_omp_atomic_load_rhs): Likewise.
19655 (gimple_omp_atomic_load_rhs_ptr): Likewise.
19656 (gimple_omp_continue_control_def): Likewise.
19657 (gimple_omp_continue_control_def_ptr): Likewise.
19658 (gimple_omp_continue_set_control_def): Likewise.
19659 (gimple_omp_continue_control_use): Likewise.
19660 (gimple_omp_continue_control_use_ptr): Likewise.
19661 (gimple_omp_continue_set_control_use): Likewise.
19662 (gimple_transaction_body_ptr): Likewise.
19663 (gimple_transaction_label): Likewise.
19664 (gimple_transaction_label_ptr): Likewise.
19665 (gimple_transaction_set_body): Likewise.
19666 (gimple_transaction_set_label): Likewise.
19667
19668 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
19669 * ipa-inline-analysis.c (inline_write_summary): Likewise.
19670 * ipa-ref.c (ipa_record_reference): Likewise.
19671 * ipa-reference.c (analyze_function): Likewise.
19672 (ipa_reference_write_optimization_summary): Likewise.
19673 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
19674 (address_taken_from_non_vtable_p): Likewise.
19675 (comdat_can_be_unshared_p_1): Likewise.
19676 * lto-cgraph.c (lto_output_ref): Likewise.
19677 (add_references): Likewise.
19678 (compute_ltrans_boundary): Likewise.
19679 (output_symtab): Likewise.
19680 (input_ref): Likewise.
19681 (input_cgraph_1): Likewise.
19682 (output_cgraph_opt_summary): Likewise.
19683 * lto-streamer-out.c (lto_output): Likewise.
19684 (output_symbol_p): Likewise.
19685 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
19686 (lsei_start_function_in_partition): Likewise.
19687 (lsei_next_variable_in_partition): Likewise.
19688 (lsei_start_variable_in_partition): Likewise.
19689 * symtab.c (insert_to_assembler_name_hash): Likewise.
19690 (unlink_from_assembler_name_hash): Likewise.
19691 (symtab_unregister_node): Likewise.
19692 (symtab_remove_node): Likewise.
19693 (dump_symtab_node): Likewise.
19694 (verify_symtab_base): Likewise.
19695 (verify_symtab_node): Likewise.
19696 (symtab_make_decl_local): Likewise.
19697 (symtab_alias_ultimate_target): Likewise.
19698 (symtab_resolve_alias): Likewise.
19699 (symtab_get_symbol_partitioning_class): Likewise.
19700 * tree-phinodes.c (allocate_phi_node): Likewise.
19701 (reserve_phi_args_for_new_edge): Likewise.
19702 (remove_phi_args): Likewise.
19703 * varpool.c (varpool_node_for_asm): Likewise.
19704 (varpool_remove_unreferenced_decls): Likewise.
19705
19706 2014-04-23 Jeff Law <law@redhat.com>
19707
19708 PR tree-optimization/60902
19709 * tree-ssa-threadedge.c
19710 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
19711 invalidate outputs from statements that do not produce useful
19712 outputs for threading.
19713
19714 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19715
19716 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
19717 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
19718 machine descriptions for Stack Smashing Protector.
19719
19720 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
19721
19722 * aarch64.md (<optab>_rol<mode>3): New pattern.
19723 (<optab>_rolsi3_uxtw): Likewise.
19724 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
19725
19726 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
19727
19728 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
19729 (arm_cortex_a12_tune): Likewise.
19730
19731 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19732
19733 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
19734
19735 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19736
19737 * config/arm/arm.md (arm_rev16si2): New pattern.
19738 (arm_rev16si2_alt): Likewise.
19739 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
19740
19741 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19742
19743 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
19744 (rev16<mode>2_alt): Likewise.
19745 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
19746 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
19747 (aarch_rev16_shleft_mask_imm_p): Likewise.
19748 (aarch_rev16_p_1): Likewise.
19749 (aarch_rev16_p): Likewise.
19750 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
19751 (aarch_rev16_shright_mask_imm_p): Likewise.
19752 (aarch_rev16_shleft_mask_imm_p): Likewise.
19753
19754 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19755
19756 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
19757 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
19758 rev cost.
19759 (cortex_a53_extra_costs): Likewise.
19760 (cortex_a57_extra_costs): Likewise.
19761 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
19762 (cortexa7_extra_costs): Likewise.
19763 (cortexa8_extra_costs): Likewise.
19764 (cortexa12_extra_costs): Likewise.
19765 (cortexa15_extra_costs): Likewise.
19766 (v7m_extra_costs): Likewise.
19767 (arm_new_rtx_costs): Handle BSWAP.
19768
19769 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19770
19771 * config/arm/arm.c (cortexa8_extra_costs): New table.
19772 (arm_cortex_a8_tune): New tuning struct.
19773 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
19774
19775 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19776
19777 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
19778
19779 2014-04-23 Richard Biener <rguenther@suse.de>
19780
19781 * Makefile.in (OBJS): Remove loop-unswitch.o.
19782 * tree-pass.h (make_pass_rtl_unswitch): Remove.
19783 * passes.def (pass_rtl_unswitch): Likewise.
19784 * loop-init.c (gate_rtl_unswitch): Likewise.
19785 (rtl_unswitch): Likewise.
19786 (pass_data_rtl_unswitch): Likewise.
19787 (pass_rtl_unswitch): Likewise.
19788 (make_pass_rtl_unswitch): Likewise.
19789 * rtl.h (reversed_condition): Likewise.
19790 (compare_and_jump_seq): Likewise.
19791 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
19792 and make static.
19793 * loop-unroll.c (compare_and_jump_seq): Likewise.
19794
19795 2014-04-23 Richard Biener <rguenther@suse.de>
19796
19797 PR tree-optimization/60903
19798 * tree-ssa-loop-im.c (analyze_memory_references): Remove
19799 commented code block.
19800 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
19801 loop flags to newly created BBs and edges.
19802
19803 2014-04-23 Nick Clifton <nickc@redhat.com>
19804
19805 * config/msp430/msp430.c (msp430_handle_option): Move function
19806 to msp430-common.c
19807 (msp430_option_override): Simplify mcu and mcpu option handling.
19808 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
19809 support for -mhwmult command line option.
19810 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
19811 -mhwmult command line option.
19812 (msp430_hwmult_enabled): Delete.
19813 (msp43o_output_labelref): Add support for -mhwmult command line option.
19814 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
19815 (umulsidi3): Likewise.
19816 * config/msp430/msp430.opt (mmcu): Add Report attribute.
19817 (mcpu, mlarge, msmall): Likewise.
19818 (mhwmult): New option.
19819 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
19820 prototype.
19821 (msp430_is_f5_mcu): Remove prototype.
19822 (msp430_use_f5_series_hwmult): Add prototype.
19823 * config/msp430/msp430-opts.h: New file.
19824 * common/config/msp430: New directory.
19825 * common/config/msp430/msp430-common.c: New file.
19826 * config.gcc (msp430): Remove target_has_targetm_common.
19827 * doc/invoke.texi: Document -mhwmult command line option.
19828
19829 2014-04-23 Nick Clifton <nickc@redhat.com>
19830
19831 * config/i386/cygwin.h (ENDFILE_SPEC): Include
19832 default-manifest.o if it can be found in the search path.
19833 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19834
19835 2014-04-23 Terry Guo <terry.guo@arm.com>
19836
19837 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
19838
19839 2014-04-23 Richard Biener <rguenther@suse.de>
19840
19841 PR middle-end/60895
19842 * tree-inline.c (declare_return_variable): Use mark_addressable.
19843
19844 2014-04-23 Richard Biener <rguenther@suse.de>
19845
19846 PR middle-end/60891
19847 * loop-init.c (loop_optimizer_init): Make sure to apply
19848 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
19849
19850 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19851
19852 PR sanitizer/60275
19853 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
19854 New options.
19855 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
19856 if flag_sanitize_undefined_trap_on_error.
19857 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
19858 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
19859 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
19860 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
19861 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
19862 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
19863 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
19864 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
19865 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
19866 * ubsan.c (ubsan_instrument_unreachable): Return
19867 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
19868 (ubsan_expand_null_ifn): Emit __builtin_trap ()
19869 if flag_sanitize_undefined_trap_on_error and
19870 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
19871 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
19872 instrument_bool_enum_load): Emit __builtin_trap () if
19873 flag_sanitize_undefined_trap_on_error and
19874 __builtin_handle_*_abort () if !flag_sanitize_recover.
19875 * doc/invoke.texi (-fsanitize-recover,
19876 -fsanitize-undefined-trap-on-error): Document.
19877
19878 2014-04-22 Christian Bruel <christian.bruel@st.com>
19879
19880 * config/sh/sh.md (mov<mode>): Replace movQIHI.
19881 Force immediates to SImode.
19882
19883 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
19884
19885 * config/nios2/nios2.md (UNSPEC_ROUND): New.
19886 (lroundsfsi2): New.
19887 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
19888 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
19889 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
19890 (nios2_fpu_insn): Add entry for round.
19891 (N2FPU_NO_ERRNO_P): Define.
19892 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
19893 flag_errno_math.
19894 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
19895
19896 2014-04-22 Richard Henderson <rth@redhat.com>
19897
19898 * config/aarch64/aarch64 (addti3, subti3): New expanders.
19899 (add<GPI>3_compare0): Remove leading * from name.
19900 (add<GPI>3_carryin): Likewise.
19901 (sub<GPI>3_compare0): Likewise.
19902 (sub<GPI>3_carryin): Likewise.
19903 (<su_optab>mulditi3): New expander.
19904 (multi3): New expander.
19905 (madd<GPI>): Remove leading * from name.
19906
19907 2014-04-22 Martin Jambor <mjambor@suse.cz>
19908
19909 * cgraphclones.c (cgraph_function_versioning): Copy
19910 ipa_transforms_to_apply instead of asserting it is empty.
19911
19912 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
19913
19914 PR target/60868
19915 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
19916 on count_exp to get mode.
19917
19918 2014-04-22 Andrew Pinski <apinski@cavium.com>
19919
19920 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19921 Handle TLS for ILP32.
19922 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
19923 (tlsie_small_<mode>): this and handle PTR.
19924 (tlsie_small_sidi): New pattern.
19925 (tlsle_small): Change to an expand to handle ILP32.
19926 (tlsle_small_<mode>): New pattern.
19927 (tlsdesc_small): Rename to ...
19928 (tlsdesc_small_<mode>): this and handle PTR.
19929
19930 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19931
19932 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
19933
19934 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19935
19936 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19937 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
19938 (aarch64_types_signed_poly_qualifiers): Likewise.
19939 (aarch64_types_unsigned_signed_qualifiers): Likewise.
19940 (aarch64_types_poly_signed_qualifiers): Likewise.
19941 (TYPES_REINTERP_SS): Type macro added.
19942 (TYPES_REINTERP_SU): Likewise.
19943 (TYPES_REINTERP_SP): Likewise.
19944 (TYPES_REINTERP_US): Likewise.
19945 (TYPES_REINTERP_PS): Likewise.
19946 (aarch64_fold_builtin): New expression folding added.
19947 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
19948 Declarations removed.
19949 (REINTERP_SS): Declarations added.
19950 (REINTERP_US): Likewise.
19951 (REINTERP_PS): Likewise.
19952 (REINTERP_SU): Likewise.
19953 (REINTERP_SP): Likewise.
19954 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
19955 (vreinterpretq_p8_f64): Likewise.
19956 (vreinterpret_p16_f64): Likewise.
19957 (vreinterpretq_p16_f64): Likewise.
19958 (vreinterpret_f32_f64): Likewise.
19959 (vreinterpretq_f32_f64): Likewise.
19960 (vreinterpret_f64_f32): Likewise.
19961 (vreinterpret_f64_p8): Likewise.
19962 (vreinterpret_f64_p16): Likewise.
19963 (vreinterpret_f64_s8): Likewise.
19964 (vreinterpret_f64_s16): Likewise.
19965 (vreinterpret_f64_s32): Likewise.
19966 (vreinterpret_f64_s64): Likewise.
19967 (vreinterpret_f64_u8): Likewise.
19968 (vreinterpret_f64_u16): Likewise.
19969 (vreinterpret_f64_u32): Likewise.
19970 (vreinterpret_f64_u64): Likewise.
19971 (vreinterpretq_f64_f32): Likewise.
19972 (vreinterpretq_f64_p8): Likewise.
19973 (vreinterpretq_f64_p16): Likewise.
19974 (vreinterpretq_f64_s8): Likewise.
19975 (vreinterpretq_f64_s16): Likewise.
19976 (vreinterpretq_f64_s32): Likewise.
19977 (vreinterpretq_f64_s64): Likewise.
19978 (vreinterpretq_f64_u8): Likewise.
19979 (vreinterpretq_f64_u16): Likewise.
19980 (vreinterpretq_f64_u32): Likewise.
19981 (vreinterpretq_f64_u64): Likewise.
19982 (vreinterpret_s64_f64): Likewise.
19983 (vreinterpretq_s64_f64): Likewise.
19984 (vreinterpret_u64_f64): Likewise.
19985 (vreinterpretq_u64_f64): Likewise.
19986 (vreinterpret_s8_f64): Likewise.
19987 (vreinterpretq_s8_f64): Likewise.
19988 (vreinterpret_s16_f64): Likewise.
19989 (vreinterpretq_s16_f64): Likewise.
19990 (vreinterpret_s32_f64): Likewise.
19991 (vreinterpretq_s32_f64): Likewise.
19992 (vreinterpret_u8_f64): Likewise.
19993 (vreinterpretq_u8_f64): Likewise.
19994 (vreinterpret_u16_f64): Likewise.
19995 (vreinterpretq_u16_f64): Likewise.
19996 (vreinterpret_u32_f64): Likewise.
19997 (vreinterpretq_u32_f64): Likewise.
19998
19999 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
20000
20001 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
20002 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
20003 (vreinterpret_p8_s8): Likewise.
20004 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
20005 (vreinterpret_p8_s16): Likewise.
20006 (vreinterpret_p8_s32): Likewise.
20007 (vreinterpret_p8_s64): Likewise.
20008 (vreinterpret_p8_f32): Likewise.
20009 (vreinterpret_p8_u8): Likewise.
20010 (vreinterpret_p8_u16): Likewise.
20011 (vreinterpret_p8_u32): Likewise.
20012 (vreinterpret_p8_u64): Likewise.
20013 (vreinterpret_p8_p16): Likewise.
20014 (vreinterpretq_p8_s8): Likewise.
20015 (vreinterpretq_p8_s16): Likewise.
20016 (vreinterpretq_p8_s32): Likewise.
20017 (vreinterpretq_p8_s64): Likewise.
20018 (vreinterpretq_p8_f32): Likewise.
20019 (vreinterpretq_p8_u8): Likewise.
20020 (vreinterpretq_p8_u16): Likewise.
20021 (vreinterpretq_p8_u32): Likewise.
20022 (vreinterpretq_p8_u64): Likewise.
20023 (vreinterpretq_p8_p16): Likewise.
20024 (vreinterpret_p16_s8): Likewise.
20025 (vreinterpret_p16_s16): Likewise.
20026 (vreinterpret_p16_s32): Likewise.
20027 (vreinterpret_p16_s64): Likewise.
20028 (vreinterpret_p16_f32): Likewise.
20029 (vreinterpret_p16_u8): Likewise.
20030 (vreinterpret_p16_u16): Likewise.
20031 (vreinterpret_p16_u32): Likewise.
20032 (vreinterpret_p16_u64): Likewise.
20033 (vreinterpret_p16_p8): Likewise.
20034 (vreinterpretq_p16_s8): Likewise.
20035 (vreinterpretq_p16_s16): Likewise.
20036 (vreinterpretq_p16_s32): Likewise.
20037 (vreinterpretq_p16_s64): Likewise.
20038 (vreinterpretq_p16_f32): Likewise.
20039 (vreinterpretq_p16_u8): Likewise.
20040 (vreinterpretq_p16_u16): Likewise.
20041 (vreinterpretq_p16_u32): Likewise.
20042 (vreinterpretq_p16_u64): Likewise.
20043 (vreinterpretq_p16_p8): Likewise.
20044 (vreinterpret_f32_s8): Likewise.
20045 (vreinterpret_f32_s16): Likewise.
20046 (vreinterpret_f32_s32): Likewise.
20047 (vreinterpret_f32_s64): Likewise.
20048 (vreinterpret_f32_u8): Likewise.
20049 (vreinterpret_f32_u16): Likewise.
20050 (vreinterpret_f32_u32): Likewise.
20051 (vreinterpret_f32_u64): Likewise.
20052 (vreinterpret_f32_p8): Likewise.
20053 (vreinterpret_f32_p16): Likewise.
20054 (vreinterpretq_f32_s8): Likewise.
20055 (vreinterpretq_f32_s16): Likewise.
20056 (vreinterpretq_f32_s32): Likewise.
20057 (vreinterpretq_f32_s64): Likewise.
20058 (vreinterpretq_f32_u8): Likewise.
20059 (vreinterpretq_f32_u16): Likewise.
20060 (vreinterpretq_f32_u32): Likewise.
20061 (vreinterpretq_f32_u64): Likewise.
20062 (vreinterpretq_f32_p8): Likewise.
20063 (vreinterpretq_f32_p16): Likewise.
20064 (vreinterpret_s64_s8): Likewise.
20065 (vreinterpret_s64_s16): Likewise.
20066 (vreinterpret_s64_s32): Likewise.
20067 (vreinterpret_s64_f32): Likewise.
20068 (vreinterpret_s64_u8): Likewise.
20069 (vreinterpret_s64_u16): Likewise.
20070 (vreinterpret_s64_u32): Likewise.
20071 (vreinterpret_s64_u64): Likewise.
20072 (vreinterpret_s64_p8): Likewise.
20073 (vreinterpret_s64_p16): Likewise.
20074 (vreinterpretq_s64_s8): Likewise.
20075 (vreinterpretq_s64_s16): Likewise.
20076 (vreinterpretq_s64_s32): Likewise.
20077 (vreinterpretq_s64_f32): Likewise.
20078 (vreinterpretq_s64_u8): Likewise.
20079 (vreinterpretq_s64_u16): Likewise.
20080 (vreinterpretq_s64_u32): Likewise.
20081 (vreinterpretq_s64_u64): Likewise.
20082 (vreinterpretq_s64_p8): Likewise.
20083 (vreinterpretq_s64_p16): Likewise.
20084 (vreinterpret_u64_s8): Likewise.
20085 (vreinterpret_u64_s16): Likewise.
20086 (vreinterpret_u64_s32): Likewise.
20087 (vreinterpret_u64_s64): Likewise.
20088 (vreinterpret_u64_f32): Likewise.
20089 (vreinterpret_u64_u8): Likewise.
20090 (vreinterpret_u64_u16): Likewise.
20091 (vreinterpret_u64_u32): Likewise.
20092 (vreinterpret_u64_p8): Likewise.
20093 (vreinterpret_u64_p16): Likewise.
20094 (vreinterpretq_u64_s8): Likewise.
20095 (vreinterpretq_u64_s16): Likewise.
20096 (vreinterpretq_u64_s32): Likewise.
20097 (vreinterpretq_u64_s64): Likewise.
20098 (vreinterpretq_u64_f32): Likewise.
20099 (vreinterpretq_u64_u8): Likewise.
20100 (vreinterpretq_u64_u16): Likewise.
20101 (vreinterpretq_u64_u32): Likewise.
20102 (vreinterpretq_u64_p8): Likewise.
20103 (vreinterpretq_u64_p16): Likewise.
20104 (vreinterpret_s8_s16): Likewise.
20105 (vreinterpret_s8_s32): Likewise.
20106 (vreinterpret_s8_s64): Likewise.
20107 (vreinterpret_s8_f32): Likewise.
20108 (vreinterpret_s8_u8): Likewise.
20109 (vreinterpret_s8_u16): Likewise.
20110 (vreinterpret_s8_u32): Likewise.
20111 (vreinterpret_s8_u64): Likewise.
20112 (vreinterpret_s8_p8): Likewise.
20113 (vreinterpret_s8_p16): Likewise.
20114 (vreinterpretq_s8_s16): Likewise.
20115 (vreinterpretq_s8_s32): Likewise.
20116 (vreinterpretq_s8_s64): Likewise.
20117 (vreinterpretq_s8_f32): Likewise.
20118 (vreinterpretq_s8_u8): Likewise.
20119 (vreinterpretq_s8_u16): Likewise.
20120 (vreinterpretq_s8_u32): Likewise.
20121 (vreinterpretq_s8_u64): Likewise.
20122 (vreinterpretq_s8_p8): Likewise.
20123 (vreinterpretq_s8_p16): Likewise.
20124 (vreinterpret_s16_s8): Likewise.
20125 (vreinterpret_s16_s32): Likewise.
20126 (vreinterpret_s16_s64): Likewise.
20127 (vreinterpret_s16_f32): Likewise.
20128 (vreinterpret_s16_u8): Likewise.
20129 (vreinterpret_s16_u16): Likewise.
20130 (vreinterpret_s16_u32): Likewise.
20131 (vreinterpret_s16_u64): Likewise.
20132 (vreinterpret_s16_p8): Likewise.
20133 (vreinterpret_s16_p16): Likewise.
20134 (vreinterpretq_s16_s8): Likewise.
20135 (vreinterpretq_s16_s32): Likewise.
20136 (vreinterpretq_s16_s64): Likewise.
20137 (vreinterpretq_s16_f32): Likewise.
20138 (vreinterpretq_s16_u8): Likewise.
20139 (vreinterpretq_s16_u16): Likewise.
20140 (vreinterpretq_s16_u32): Likewise.
20141 (vreinterpretq_s16_u64): Likewise.
20142 (vreinterpretq_s16_p8): Likewise.
20143 (vreinterpretq_s16_p16): Likewise.
20144 (vreinterpret_s32_s8): Likewise.
20145 (vreinterpret_s32_s16): Likewise.
20146 (vreinterpret_s32_s64): Likewise.
20147 (vreinterpret_s32_f32): Likewise.
20148 (vreinterpret_s32_u8): Likewise.
20149 (vreinterpret_s32_u16): Likewise.
20150 (vreinterpret_s32_u32): Likewise.
20151 (vreinterpret_s32_u64): Likewise.
20152 (vreinterpret_s32_p8): Likewise.
20153 (vreinterpret_s32_p16): Likewise.
20154 (vreinterpretq_s32_s8): Likewise.
20155 (vreinterpretq_s32_s16): Likewise.
20156 (vreinterpretq_s32_s64): Likewise.
20157 (vreinterpretq_s32_f32): Likewise.
20158 (vreinterpretq_s32_u8): Likewise.
20159 (vreinterpretq_s32_u16): Likewise.
20160 (vreinterpretq_s32_u32): Likewise.
20161 (vreinterpretq_s32_u64): Likewise.
20162 (vreinterpretq_s32_p8): Likewise.
20163 (vreinterpretq_s32_p16): Likewise.
20164 (vreinterpret_u8_s8): Likewise.
20165 (vreinterpret_u8_s16): Likewise.
20166 (vreinterpret_u8_s32): Likewise.
20167 (vreinterpret_u8_s64): Likewise.
20168 (vreinterpret_u8_f32): Likewise.
20169 (vreinterpret_u8_u16): Likewise.
20170 (vreinterpret_u8_u32): Likewise.
20171 (vreinterpret_u8_u64): Likewise.
20172 (vreinterpret_u8_p8): Likewise.
20173 (vreinterpret_u8_p16): Likewise.
20174 (vreinterpretq_u8_s8): Likewise.
20175 (vreinterpretq_u8_s16): Likewise.
20176 (vreinterpretq_u8_s32): Likewise.
20177 (vreinterpretq_u8_s64): Likewise.
20178 (vreinterpretq_u8_f32): Likewise.
20179 (vreinterpretq_u8_u16): Likewise.
20180 (vreinterpretq_u8_u32): Likewise.
20181 (vreinterpretq_u8_u64): Likewise.
20182 (vreinterpretq_u8_p8): Likewise.
20183 (vreinterpretq_u8_p16): Likewise.
20184 (vreinterpret_u16_s8): Likewise.
20185 (vreinterpret_u16_s16): Likewise.
20186 (vreinterpret_u16_s32): Likewise.
20187 (vreinterpret_u16_s64): Likewise.
20188 (vreinterpret_u16_f32): Likewise.
20189 (vreinterpret_u16_u8): Likewise.
20190 (vreinterpret_u16_u32): Likewise.
20191 (vreinterpret_u16_u64): Likewise.
20192 (vreinterpret_u16_p8): Likewise.
20193 (vreinterpret_u16_p16): Likewise.
20194 (vreinterpretq_u16_s8): Likewise.
20195 (vreinterpretq_u16_s16): Likewise.
20196 (vreinterpretq_u16_s32): Likewise.
20197 (vreinterpretq_u16_s64): Likewise.
20198 (vreinterpretq_u16_f32): Likewise.
20199 (vreinterpretq_u16_u8): Likewise.
20200 (vreinterpretq_u16_u32): Likewise.
20201 (vreinterpretq_u16_u64): Likewise.
20202 (vreinterpretq_u16_p8): Likewise.
20203 (vreinterpretq_u16_p16): Likewise.
20204 (vreinterpret_u32_s8): Likewise.
20205 (vreinterpret_u32_s16): Likewise.
20206 (vreinterpret_u32_s32): Likewise.
20207 (vreinterpret_u32_s64): Likewise.
20208 (vreinterpret_u32_f32): Likewise.
20209 (vreinterpret_u32_u8): Likewise.
20210 (vreinterpret_u32_u16): Likewise.
20211 (vreinterpret_u32_u64): Likewise.
20212 (vreinterpret_u32_p8): Likewise.
20213 (vreinterpret_u32_p16): Likewise.
20214 (vreinterpretq_u32_s8): Likewise.
20215 (vreinterpretq_u32_s16): Likewise.
20216 (vreinterpretq_u32_s32): Likewise.
20217 (vreinterpretq_u32_s64): Likewise.
20218 (vreinterpretq_u32_f32): Likewise.
20219 (vreinterpretq_u32_u8): Likewise.
20220 (vreinterpretq_u32_u16): Likewise.
20221 (vreinterpretq_u32_u64): Likewise.
20222 (vreinterpretq_u32_p8): Likewise.
20223 (vreinterpretq_u32_p16): Likewise.
20224
20225 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
20226
20227 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
20228 Pattern extended.
20229 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
20230 (sqabs): Likewise.
20231 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
20232 (vqnegd_s64): Likewise.
20233 (vqabs_s64): Likewise.
20234 (vqabsd_s64): Likewise.
20235
20236 2014-04-22 Richard Henderson <rth@redhat.com>
20237
20238 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
20239 computation to the top of the loop.
20240
20241 2014-04-22 Renlin <renlin.li@arm.com>
20242 Jiong Wang <jiong.wang@arm.com>
20243
20244 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
20245 * config/aarch64/aarch64.c (aarch64_layout_frame)
20246 (aarch64_initial_elimination_offset): Likewise.
20247
20248 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
20249
20250 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
20251 Fix indentation.
20252
20253 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
20254
20255 * machmode.h (bitwise_mode_for_mode): Declare.
20256 * stor-layout.h (bitwise_type_for_mode): Likewise.
20257 * stor-layout.c (bitwise_mode_for_mode): New function.
20258 (bitwise_type_for_mode): Likewise.
20259 * builtins.c (fold_builtin_memory_op): Use it instead of
20260 int_mode_for_mode and build_nonstandard_integer_type.
20261
20262 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20263
20264 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
20265 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
20266 (*-*-solaris2*): Simplify.
20267 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
20268 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
20269 *-*-solaris2.9* handling.
20270
20271 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
20272 as bug.
20273 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
20274 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
20275 handling, simplify.
20276 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
20277 * configure: Regenerate.
20278
20279 * config/i386/sol2-9.h: Remove.
20280
20281 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
20282 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
20283 Remove Solaris 9 references.
20284
20285 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
20286
20287 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
20288 (floatuns<GPI:mode><GPF:mode>2): Remove.
20289 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
20290 and floatuns conversions.
20291 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
20292 and floatuns conversions.
20293 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
20294 (w1,w2): New mode attributes for inequal width conversions.
20295
20296 2014-04-22 Renlin Li <Renlin.Li@arm.com>
20297
20298 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
20299 the output asm format.
20300
20301 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
20302
20303 * config/aarch64/aarch64-simd.md
20304 (aarch64_cm<optab>di): Always split.
20305 (*aarch64_cm<optab>di): New.
20306 (aarch64_cmtstdi): Always split.
20307 (*aarch64_cmtstdi): New.
20308
20309 2014-04-22 Jakub Jelinek <jakub@redhat.com>
20310
20311 PR tree-optimization/60823
20312 * omp-low.c (ipa_simd_modify_function_body): Go through
20313 all SSA_NAMEs and for those refering to vector arguments
20314 which are going to be replaced adjust SSA_NAME_VAR and,
20315 if it is a default definition, change it into a non-default
20316 definition assigned at the beginning of function from new_decl.
20317 (ipa_simd_modify_stmt_ops): Rewritten.
20318 * tree-dfa.c (set_ssa_default_def): When removing default def,
20319 check for NULL loc instead of NULL *loc.
20320
20321 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20322
20323 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
20324 restrictions on core registers for DImode values in Thumb2.
20325
20326 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20327
20328 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
20329 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
20330
20331 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20332
20333 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
20334 (*iordi_notzesidi_di): Likewise.
20335 (*iordi_notsesidi_di): Likewise.
20336
20337 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20338
20339 * config/arm/arm-protos.h (tune_params): New struct members.
20340 * config/arm/arm.c: Initialise tune_params per processor.
20341 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
20342 for speed, based on new tune_params.
20343
20344 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
20345
20346 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
20347 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
20348 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
20349 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
20350 * config/aarch64/arm_neon.h (vrnd_f64): Added.
20351 (vrnda_f64): Likewise.
20352 (vrndi_f64): Likewise.
20353 (vrndm_f64): Likewise.
20354 (vrndn_f64): Likewise.
20355 (vrndp_f64): Likewise.
20356 (vrndx_f64): Likewise.
20357
20358 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20359
20360 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
20361 GET_MODE_SIZE argument is enum machine_mode.
20362
20363 2014-04-22 Jakub Jelinek <jakub@redhat.com>
20364
20365 PR target/60910
20366 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
20367 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
20368
20369 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
20370
20371 PR middle-end/60281
20372 * asan.c (asan_emit_stack_protection): Force the base to align to
20373 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
20374 appropriate bits if STRICT_ALIGNMENT.
20375 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
20376 when asan is on.
20377 (expand_used_vars): Leave a space in the stack frame for alignment
20378 if STRICT_ALIGNMENT.
20379
20380 2014-04-21 David Malcolm <dmalcolm@redhat.com>
20381
20382 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
20383 than a gimple.
20384 (gimple_store_p): Likewise.
20385 (gimple_assign_load_p): Likewise.
20386 (gimple_assign_cast_p): Likewise.
20387 (gimple_clobber_p): Likewise.
20388
20389 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
20390 rather than a gimple.
20391 (gimple_assign_cast_p): Likewise.
20392
20393 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
20394
20395 PR target/60735
20396 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
20397 If mode is DDmode and TARGET_E500_DOUBLE allow move.
20398
20399 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
20400 more debug information for E500 if -mdebug=reg.
20401
20402 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
20403
20404 PR target/60909
20405 * config/i386/i386.c (ix86_expand_builtin)
20406 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
20407 register for target RTX.
20408 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
20409
20410 2014-04-18 Cong Hou <congh@google.com>
20411
20412 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
20413 the widen-mult pattern by handling two operands with different sizes,
20414 and operands whose size is smaller than half of the result type.
20415
20416 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20417
20418 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
20419 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
20420 (do_estimate_edge_time): Compute it.
20421 * ipa-inline.c (want_inline_small_function_p): Bypass
20422 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
20423
20424 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20425
20426 * ipa-inline.c (spec_rem): New static variable.
20427 (dump_overall_stats): New function.
20428 (dump_inline_stats): New function.
20429
20430 2014-04-18 Richard Henderson <rth@redhat.com>
20431
20432 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
20433 to GET_MODE_SIZE, not a reg_class_t.
20434
20435 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20436
20437 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
20438 (vsx_xxmrglw_<mode>): Likewise.
20439
20440 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
20441
20442 PR target/60876
20443 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
20444 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
20445 (rs6000_init_hard_regno_mode_ok): Likewise.
20446
20447 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
20448
20449 * ipa-inline.c (inline_small_functions): Account only non-cold
20450 functions.
20451 * doc/invoke.texi (inline-unit-growth): Update documentation.
20452
20453 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
20454
20455 * config/rs6000/rs6000.md (addti3, subti3): New.
20456
20457 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
20458
20459 PR target/60863
20460 * config/i386/i386.c (ix86_expand_clear): Remove outdated
20461 comment. Check optimize_insn_for_size_p instead of
20462 optimize_insn_for_speed_p.
20463
20464 2014-04-17 Martin Jambor <mjambor@suse.cz>
20465
20466 * gimple-iterator.c (gsi_start_edge): New function.
20467 * gimple-iterator.h (gsi_start_edge): Declare.
20468 * tree-sra.c (single_non_eh_succ): New function.
20469 (disqualify_ops_if_throwing_stmt): Renamed to
20470 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
20471 having one non-EH successor BB.
20472 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
20473 generate loads into replacements.
20474 (sra_modify_assign): Likewise and and also use the simple path for
20475 such statements.
20476 (sra_modify_function_body): Commit statements on edges.
20477
20478 2014-04-17 Richard Biener <rguenther@suse.de>
20479
20480 PR middle-end/60849
20481 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
20482 comparison results and add clarifying comment.
20483
20484 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20485
20486 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
20487 (blank_mode): Initialize it.
20488 (emit_mode_size_inline, emit_mode_nunits_inline,
20489 emit_mode_inner_inline): New functions.
20490 (emit_insn_modes_h): Call them and surround their output with
20491 #if GCC_VERSION >= 4001 ... #endif.
20492 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
20493 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
20494 mode_* arrays if the argument is __builtin_constant_p.
20495 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
20496 is enum machine_mode.
20497
20498 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20499
20500 * passes.c (opt_pass::execute): Adjust.
20501 (pass_manager::execute_pass_mode_switching): Likewise.
20502 (early_local_passes::execute): Likewise.
20503 (execute_one_pass): Pass cfun to the pass's execute method.
20504 * tree-pass.h (opt_pass::execute): Add function * argument.
20505 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20506 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20507 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20508 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20509 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20510 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
20511 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
20512 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20513 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20514 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
20515 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
20516 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
20517 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
20518 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
20519 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20520 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20521 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20522 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
20523 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
20524 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20525 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20526 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20527 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20528 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20529 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20530 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20531 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20532 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20533 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20534 Adjust.
20535
20536 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20537
20538 * passes.c (opt_pass::gate): Take function * argument.
20539 (gate_all_early_local_passes): Merge into
20540 (early_local_passes::gate): this.
20541 (gate_all_early_optimizations): Merge into
20542 (all_early_optimizations::gate): this.
20543 (gate_all_optimizations): Mege into
20544 (all_optimizations::gate): this.
20545 (gate_all_optimizations_g): Merge into
20546 (all_optimizations_g::gate): this.
20547 (gate_rest_of_compilation): Mege into
20548 (rest_of_compilation::gate): this.
20549 (gate_postreload): Merge into
20550 (postreload::gate): this.
20551 (dump_one_pass): Pass cfun to the pass's gate method.
20552 (execute_ipa_summary_passes): Likewise.
20553 (execute_one_pass): Likewise.
20554 (ipa_write_summaries_2): Likewise.
20555 (ipa_write_optimization_summaries_1): Likewise.
20556 (ipa_read_summaries_1): Likewise.
20557 (ipa_read_optimization_summaries_1): Likewise.
20558 (execute_ipa_stmt_fixups): Likewise.
20559 * tree-pass.h (opt_pass::gate): Add function * argument.
20560 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
20561 combine-stack-adj.c, combine.c, compare-elim.c,
20562 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20563 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
20564 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
20565 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
20566 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20567 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20568 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20569 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
20570 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
20571 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
20572 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20573 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20574 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
20575 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20576 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20577 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20578 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20579 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20580 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20581 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20582 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20583 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20584 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
20585 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
20586 var-tracking.c, vtable-verify.c, web.c: Adjust.
20587
20588 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20589
20590 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
20591 * configure: Regenerate.
20592
20593 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20594
20595 * passes.c (dump_one_pass): don't check pass->has_gate.
20596 (execute_ipa_summary_passes): Likewise.
20597 (execute_one_pass): Likewise.
20598 (ipa_write_summaries_2): Likewise.
20599 (ipa_write_optimization_summaries_1): Likewise.
20600 (ipa_read_optimization_summaries_1): Likewise.
20601 (execute_ipa_stmt_fixups): Likewise.
20602 * tree-pass.h (pass_data::has_gate): Remove.
20603 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20604 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20605 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20606 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20607 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20608 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
20609 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
20610 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
20611 gimple-low.c, gimple-ssa-isolate-paths.c,
20612 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
20613 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
20614 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20615 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
20616 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
20617 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
20618 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
20619 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
20620 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
20621 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20622 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20623 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20624 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20625 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20626 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20627 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20628 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20629 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20630 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20631 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20632 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20633 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20634 Adjust.
20635
20636 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20637
20638 * pass_manager.h (pass_manager::register_dump_files_1): Remove
20639 declaration.
20640 * passes.c (pass_manager::register_dump_files_1): Merge into
20641 (pass_manager::register_dump_files): this, and remove its handling of
20642 properties since the pass always has the properties anyway.
20643 (pass_manager::pass_manager): Adjust.
20644
20645 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20646
20647 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
20648 * passes.c (pass_manager::register_dump_files_1): Remove dead code
20649 dealing with properties.
20650 (pass_manager::register_dump_files): Adjust.
20651
20652 2014-03-20 Mark Wielaard <mjw@redhat.com>
20653
20654 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
20655 then represent the bound as normal constant value.
20656
20657 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20658
20659 PR target/60847
20660 Forward port from 4.8 branch
20661 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
20662
20663 * config/i386/bmiintrin.h (_blsi_u32): New.
20664 (_blsi_u64): Ditto.
20665 (_blsr_u32): Ditto.
20666 (_blsr_u64): Ditto.
20667 (_blsmsk_u32): Ditto.
20668 (_blsmsk_u64): Ditto.
20669 (_tzcnt_u32): Ditto.
20670 (_tzcnt_u64): Ditto.
20671
20672 2014-04-17 Kito Cheng <kito@0xlab.org>
20673
20674 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
20675
20676 2014-04-17 Richard Biener <rguenther@suse.de>
20677
20678 PR middle-end/60849
20679 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
20680 boolean results for comparisons.
20681
20682 2014-04-17 Richard Biener <rguenther@suse.de>
20683
20684 PR tree-optimization/60836
20685 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
20686 initial PHI args to be gimple values.
20687
20688 2014-04-17 Richard Biener <rguenther@suse.de>
20689
20690 PR tree-optimization/60841
20691 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
20692 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
20693 of stmts to SLP build.
20694 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
20695 (vect_analyze_slp): Likewise.
20696 (vect_analyze_slp_instance): Likewise.
20697 (vect_build_slp_tree): Limit overall SLP tree growth.
20698 * tree-vectorizer.h (vect_analyze_data_refs,
20699 vect_analyze_slp): Adjust prototypes.
20700
20701 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20702
20703 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
20704 Silvermont.
20705
20706 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20707
20708 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
20709 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
20710 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
20711 for TARGET_SLOW_PSHUFB
20712
20713 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20714
20715 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
20716 * config/i386/i386.c (intel_cost): Ditto.
20717
20718 2014-04-17 Joey Ye <joey.ye@arm.com>
20719
20720 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
20721
20722 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20723
20724 * opts.c (common_handle_option): Disable -fipa-reference coorectly
20725 with -fuse-profile.
20726
20727 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20728
20729 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
20730 (type_all_derivations_known_p): New predicate.
20731 (type_all_ctors_visible_p): New predicate.
20732 (type_possibly_instantiated_p): New predicate.
20733 (get_odr_type): Compute all_derivations_known.
20734 (dump_odr_type): Dump the flag.
20735 (maybe_record_type): Cleanup.
20736 (record_target_from_binfo): Add bases_to_consider array;
20737 record bases for types w/o instances and skip CXX destructor.
20738 (possible_polymorphic_call_targets_1): Add bases_to_consider
20739 and consider_construction parameters; check if type may have instance.
20740 (get_polymorphic_call_info): Set maybe_in_construction to true
20741 when we know nothing.
20742 (record_targets_from_bases): Skip CXX destructors; they are
20743 never called for types in construction.
20744 (possible_polymorphic_call_targets): Do not record target when
20745 type may not have instance.
20746
20747 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20748
20749 PR ipa/60854
20750 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
20751 external aliases alive, too.
20752
20753 2014-04-16 Andrew Pinski <apinski@cavium.com>
20754
20755 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
20756 definition.
20757
20758 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20759
20760 * final.c (compute_alignments): Do not apply loop alignment to a block
20761 falling through to the exit.
20762
20763 2014-04-16 Catherine Moore <clm@codesourcery.com>
20764
20765 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
20766 Adjust constraints for microMIPS store patterns.
20767
20768 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20769
20770 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
20771
20772 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20773
20774 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
20775 (append_use): Run at -O0.
20776 (append_vdef): Likewise.
20777 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
20778 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
20779
20780 2014-04-16 Jakub Jelinek <jakub@redhat.com>
20781
20782 PR tree-optimization/60844
20783 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
20784 (propagate_op_to_single_use, remove_visited_stmt_chain,
20785 linearize_expr, repropagate_negates, reassociate_bb): Use it
20786 instead of gsi_remove.
20787
20788 2014-04-16 Martin Jambor <mjambor@suse.cz>
20789
20790 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
20791 ipa_transforms_to_apply.
20792 (cgraph_function_versioning): Assert that old_node has empty
20793 ipa_transforms_to_apply.
20794 * trans-mem.c (ipa_tm_create_version): Likewise.
20795 * tree-inline.c (tree_function_versioning): Do not duplicate
20796 ipa_transforms_to_apply.
20797
20798 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20799
20800 PR target/60817
20801 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
20802 x86_64-*-* cases.
20803 Pass necessary as flags on 64-bit Solaris/x86.
20804 Use lowercase relocs for x86_64-*-*.
20805 * configure: Regenerate.
20806
20807 2014-04-15 Jan Hubicka <jh@suse.cz>
20808
20809 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
20810 (maybe_record_node, likely_target_p): Use it.
20811
20812 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20813
20814 PR target/60839
20815 Revert following patch
20816
20817 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20818
20819 PR target/60735
20820 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20821 software floating point or no floating point registers, do not
20822 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20823 in GPRs that occurs after we tested for GPRs that would never be
20824 true.
20825
20826 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20827 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20828 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20829 specifically allow DDmode, since that does not use the SPE SIMD
20830 instructions.
20831
20832 2014-03-21 Mark Wielaard <mjw@redhat.com>
20833
20834 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
20835 as unsigned or int depending on type and value used.
20836
20837 2014-04-15 Richard Biener <rguenther@suse.de>
20838
20839 PR rtl-optimization/56965
20840 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
20841 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
20842 ... here.
20843 * alias.c (true_dependence_1): Do not call
20844 nonoverlapping_component_refs_p.
20845 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
20846 nonoverlapping_component_refs_p.
20847 (indirect_refs_may_alias_p): Likewise.
20848
20849 2014-04-15 Teresa Johnson <tejohnson@google.com>
20850
20851 * cfg.c (dump_bb_info): Fix flags check.
20852 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
20853
20854 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20855
20856 PR rtl-optimization/60663
20857 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
20858 avoid 0 cost.
20859
20860 2014-04-15 Richard Biener <rguenther@suse.de>
20861
20862 * lto-streamer.h (LTO_major_version): Bump to 4.
20863
20864 2014-04-15 Richard Biener <rguenther@suse.de>
20865
20866 * common.opt (lto_partition_model): New enum.
20867 (flto-partition=): Merge separate options with a single with argument,
20868 add -flto-partition=one support.
20869 * flag-types.h (enum lto_partition_model): Declare.
20870 * opts.c (finish_options): Remove duplicate -flto-partition=
20871 option check.
20872 * lto-wrapper.c (run_gcc): Adjust.
20873
20874 2014-04-15 Richard Biener <rguenther@suse.de>
20875
20876 * alias.c (ncr_compar): New function.
20877 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
20878
20879 2014-04-15 Richard Biener <rguenther@suse.de>
20880
20881 * alias.c (record_component_aliases): Do not walk BINFOs.
20882
20883 2014-04-15 Richard Biener <rguenther@suse.de>
20884
20885 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20886 Add struct function argument and adjust.
20887 (find_func_aliases_for_call): Likewise.
20888 (find_func_aliases): Likewise.
20889 (find_func_clobbers): Likewise.
20890 (intra_create_variable_infos): Likewise.
20891 (compute_points_to_sets): Likewise.
20892 (ipa_pta_execute): Adjust. Do not push/pop cfun.
20893
20894 2014-04-15 Richard Biener <rguenther@suse.de>
20895
20896 * tree.c (iterative_hash_expr): Use enum tree_code_class
20897 to store TREE_CODE_CLASS.
20898 (tree_block): Likewise.
20899 (tree_set_block): Likewise.
20900 * tree.h (fold_build_pointer_plus_loc): Use
20901 convert_to_ptrofftype_loc.
20902
20903 2014-04-15 Jakub Jelinek <jakub@redhat.com>
20904
20905 PR plugins/59335
20906 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
20907 added in 4.9.
20908
20909 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
20910
20911 * cfgloop.h (struct loop): Move force_vectorize down.
20912 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
20913 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
20914 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
20915 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
20916 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
20917 * tree-core.h (enum annot_expr_kind): Add new kind values.
20918 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
20919 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
20920 kinds.
20921 * tree.def (ANNOTATE_EXPR): Tweak comment.
20922
20923 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20924
20925 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
20926 cxa_pure_virtual).
20927
20928 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
20929
20930 * tree.h (TYPE_IDENTIFIER): Declare.
20931 * tree.c (subrange_type_for_debug_p): Use it.
20932 * godump.c (go_format_type): Likewise.
20933 * dwarf2out.c (is_cxx_auto, modified_type_die,
20934 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
20935 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
20936
20937 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20938
20939 PR lto/60820
20940 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
20941
20942 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
20943
20944 * config/i386/i386.c (examine_argument): Return bool. Return true if
20945 parameter should be passed in memory.
20946 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
20947 (construct_container): Update calls to examine_argument.
20948 (function_arg_advance_64): Ditto.
20949 (return_in_memory_32): Merge with ix86_return_in_memory.
20950 (return_in_memory_64): Ditto.
20951 (return_in_memory_ms_64): Ditto.
20952
20953 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20954
20955 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
20956 * coverage.c (coverage_compute_profile_id): Handle externally visible
20957 symbols.
20958
20959 2014-04-14 Martin Jambor <mjambor@suse.cz>
20960
20961 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
20962 DECL_DISREGARD_INLINE_LIMITS functions.
20963
20964 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20965
20966 PR target/60827
20967 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
20968
20969 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20970
20971 PR target/60827
20972 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
20973 optimize_insn_for_speed_p instead of
20974 optimize_function_for_speed_p.
20975
20976 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
20977
20978 * doc/invoke.texi (free): Document AArch64.
20979
20980 2014-04-14 Richard Biener <rguenther@suse.de>
20981
20982 PR tree-optimization/60042
20983 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
20984 (insert_into_preds_of_block): Do not prevent PHI insertion
20985 for REFERENCE exprs here ...
20986 (eliminate_dom_walker::before_dom_children): ... but prevent
20987 their use here under similar conditions when applied to the
20988 IL after PRE optimizations.
20989
20990 2014-04-14 Richard Biener <rguenther@suse.de>
20991
20992 * passes.def: Move early points-to after early SRA.
20993
20994 2014-04-14 Richard Biener <rguenther@suse.de>
20995
20996 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
20997 check for which sign-changes we allow when forwarding
20998 a converted value into a switch.
20999
21000 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
21001
21002 * stor-layout.c (place_field): Finalize non-constant offset for the
21003 field, if any.
21004
21005 2014-04-14 Richard Biener <rguenther@suse.de>
21006
21007 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
21008 as argument.
21009 (expand_switch_using_bit_tests_p): Likewise.
21010 (process_switch): Compute and pass on speed_p based on the
21011 switch stmt.
21012 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
21013 optimize_bb_for_speed_p.
21014
21015 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
21016
21017 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
21018 * function.h (struct function): Rename has_force_vect_loops into
21019 has_force_vectorize_loops.
21020 * lto-streamer-in.c (input_cfg): Adjust for renaming.
21021 (input_struct_function_base): Likewise.
21022 * lto-streamer-out.c (output_cfg): Likewise.
21023 (output_struct_function_base): Likewise.
21024 * omp-low.c (expand_omp_simd): Likewise.
21025 * tree-cfg.c (move_sese_region_to_fn): Likewise.
21026 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
21027 (version_loop_for_if_conversion): Likewise.
21028 (tree_if_conversion): Likewise.
21029 (main_tree_if_conversion): Likewise.
21030 (gate_tree_if_conversion): Likewise.
21031 * tree-inline.c (copy_loops): Likewise.
21032 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
21033 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
21034 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
21035 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
21036 * tree-vectorizer.c (vectorize_loops): Likewise.
21037 * tree-vectorizer.h (unlimited_cost_model): Likewise.
21038
21039 2014-04-14 Richard Biener <rguenther@suse.de>
21040
21041 PR lto/60720
21042 * lto-streamer-out.c (wrap_refs): New function.
21043 (lto_output): Wrap symbol references in global initializes in
21044 type-preserving MEM_REFs.
21045
21046 2014-04-14 Christian Bruel <christian.bruel@st.com>
21047
21048 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
21049
21050 2014-04-14 Christian Bruel <christian.bruel@st.com>
21051
21052 * config/sh/sh.md (setmemqi): New expand pattern.
21053 * config/sh/sh.h (CLEAR_RATIO): Define.
21054 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
21055 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
21056
21057 2014-04-14 Richard Biener <rguenther@suse.de>
21058
21059 PR middle-end/55022
21060 * fold-const.c (negate_expr_p): Don't negate directional rounding
21061 division.
21062 (fold_negate_expr): Likewise.
21063
21064 2014-04-14 Richard Biener <rguenther@suse.de>
21065
21066 PR tree-optimization/59817
21067 PR tree-optimization/60453
21068 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
21069 recursion to catch all CHRECs in the scalar evolution and restrict
21070 the predicate for the remains appropriately.
21071
21072 2014-04-12 Catherine Moore <clm@codesourcery.com>
21073
21074 * config/mips/constraints.md: Add new register constraint "kb".
21075 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
21076 (*movhi_internal): Likewise.
21077 (*movqi_internal): Likewise.
21078 * config/mips/mips.h (M16_STORE_REGS): New register class.
21079 (REG_CLASS_NAMES): Add M16_STORE_REGS.
21080 (REG_CLASS_CONTENTS): Likewise.
21081 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
21082
21083 2014-04-11 Tobias Burnus <burnus@net-b.de>
21084
21085 PR c/60194
21086 * doc/invoke.texi (-Wformat-signedness): Document it.
21087 (Wformat=2): Mention that this enables -Wformat-signedness.
21088
21089 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
21090
21091 * common/config/epiphany/epiphany-common.c
21092 (epiphany_option_optimization_table): Enable section anchors by
21093 default at -O1 or higher.
21094 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
21095 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
21096 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
21097 carries no extra cost.
21098 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
21099 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
21100 * config/epiphany/predicates.md (memclob_operand): New predicate.
21101 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
21102 Use memclob_operand predicate and X constraint for operand 3.
21103
21104 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
21105
21106 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
21107 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
21108 its operands.
21109
21110 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
21111
21112 PR rtl-optimization/60651
21113 * mode-switching.c (optimize_mode_switching): Make sure to emit
21114 sets of a lower numbered entity before sets of a higher numbered
21115 entity to a mode of the same or lower priority.
21116 When creating a seginfo for a basic block that starts with a code
21117 label, move the insertion point past the code label.
21118 (new_seginfo): Document and enforce requirement that
21119 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
21120 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
21121 * doc/tm.texi: Regenerate.
21122
21123 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
21124
21125 PR target/60811
21126 * config/arc/arc.c (arc_save_restore): Fix assert typo.
21127
21128 2013-04-11 Jakub Jelinek <jakub@redhat.com>
21129
21130 * BASE-VER: Set to 4.10.0.
21131
21132 2014-04-11 Tobias Burnus <burnus@net-b.de>
21133
21134 PR other/59055
21135 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
21136 * doc/gcc.texi (Service): Update description in the @menu
21137 * doc/invoke.texi (Option Summary): Remove misplaced and
21138 duplicated @menu.
21139
21140 2014-04-11 Steve Ellcey <sellcey@mips.com>
21141 Jakub Jelinek <jakub@redhat.com>
21142
21143 PR middle-end/60556
21144 * expr.c (convert_move): Use emit_store_flag_force instead of
21145 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
21146 argument to it.
21147
21148 2014-04-11 Richard Biener <rguenther@suse.de>
21149
21150 PR middle-end/60797
21151 * varasm.c (assemble_alias): Avoid endless error reporting
21152 recursion by setting TREE_ASM_WRITTEN.
21153
21154 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21155
21156 * config/s390/s390.md: Add a splitter for NOT rtx.
21157
21158 2014-04-11 Jakub Jelinek <jakub@redhat.com>
21159
21160 PR rtl-optimization/60663
21161 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
21162
21163 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
21164 Jakub Jelinek <jakub@redhat.com>
21165
21166 PR lto/60567
21167 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
21168 flag from decl_node to node.
21169
21170 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21171
21172 PR debug/60655
21173 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
21174 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
21175 ameliorating the cases where it can be.
21176
21177 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
21178
21179 Revert
21180 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
21181
21182 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
21183 (loadsync_<mode>): Change mode.
21184 (load_quadpti, store_quadpti): New.
21185 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
21186 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
21187 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
21188
21189 2014-04-09 Cong Hou <congh@google.com>
21190
21191 PR testsuite/60773
21192 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
21193 documentation.
21194
21195 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21196
21197 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
21198 instead of vnor to exploit possible fusion opportunity in the
21199 future.
21200 (altivec_expand_vec_perm_const_le): Likewise.
21201
21202 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
21203
21204 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
21205 (loadsync_<mode>): Change mode.
21206 (load_quadpti, store_quadpti): New.
21207 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
21208 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
21209
21210 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
21211
21212 PR target/60763
21213 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
21214 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
21215 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
21216
21217 2014-04-08 Richard Biener <rguenther@suse.de>
21218
21219 PR middle-end/60706
21220 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
21221 a 64bit widest int print double-int similar to on HWI64 hosts.
21222
21223 2014-04-08 Richard Biener <rguenther@suse.de>
21224
21225 PR tree-optimization/60785
21226 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
21227 default defs properly.
21228
21229 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
21230
21231 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
21232 (Weffc++): Likewise.
21233
21234 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
21235
21236 * ipa-devirt.c (maybe_record_node): When node is not recorded,
21237 set completep to false rather than true.
21238
21239 2014-04-07 Douglas B Rupp <rupp@adacore.com>
21240
21241 PR target/60504
21242 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
21243 ARM_TARGET2_DWARF_FORMAT.
21244
21245 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
21246
21247 PR target/60609
21248 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
21249 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
21250 ADDR_DIFF_VEC.
21251
21252 2014-04-07 Richard Biener <rguenther@suse.de>
21253
21254 PR tree-optimization/60766
21255 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
21256 (may_eliminate_iv): Convert cand_value_at result to desired type.
21257
21258 2014-04-07 Jason Merrill <jason@redhat.com>
21259
21260 PR c++/60731
21261 * common.opt (-fno-gnu-unique): Add.
21262 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
21263
21264 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21265
21266 * haifa-sched.c: Fix outdated function reference and minor
21267 grammar errors in introductory comment.
21268
21269 2014-04-07 Richard Biener <rguenther@suse.de>
21270
21271 PR middle-end/60750
21272 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
21273 for noreturn calls.
21274 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
21275
21276 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
21277
21278 PR debug/55794
21279 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
21280 size accounting for thunks.
21281 (pa_asm_output_mi_thunk): Use final_start_function() and
21282 final_end_function() to output function start and end directives.
21283
21284 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
21285
21286 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
21287 device specific ISA/ feature information. Remove short_sp and
21288 errata_skip ds. Add avr_device_specific_features enum to have device
21289 specific info.
21290 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
21291 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
21292 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
21293 updated device specific info.
21294 * config/avr/avr-mcus.def: Merge device specific details to
21295 dev_attribute field.
21296 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
21297 errata_skip.
21298 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
21299 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
21300 assembler if RMW isa supported by current device.
21301 * config/avr/genmultilib.awk: Update as device info structure changed.
21302 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
21303
21304 2014-04-04 Cong Hou <congh@google.com>
21305
21306 PR tree-optimization/60656
21307 * tree-vect-stmts.c (supportable_widening_operation):
21308 Fix a bug that elements in a vector with vect_used_by_reduction
21309 property are incorrectly reordered when the operation on it is not
21310 consistant with the one in reduction operation.
21311
21312 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
21313
21314 PR rtl-optimization/60155
21315 * gcse.c (record_set_data): New function.
21316 (single_set_gcse): New function.
21317 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
21318 (hoist_code): Likewise.
21319 (get_pressure_class_and_nregs): Likewise.
21320
21321 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
21322
21323 * explow.c (probe_stack_range): Emit a final optimization blockage.
21324
21325 2014-04-04 Anthony Green <green@moxielogic.com>
21326
21327 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
21328 typos.
21329
21330 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
21331
21332 PR ipa/59626
21333 * lto-cgraph.c (input_overwrite_node): Check that partitioning
21334 flags are set only during streaming.
21335 * ipa.c (process_references, walk_polymorphic_call_targets,
21336 symtab_remove_unreachable_nodes): Drop bodies of always inline
21337 after early inlining.
21338 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
21339
21340 2014-04-04 Jakub Jelinek <jakub@redhat.com>
21341 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21342
21343 PR debug/60655
21344 * dwarf2out.c (const_ok_for_output_1): Reject expressions
21345 containing a NOT.
21346
21347 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21348
21349 PR bootstrap/60743
21350 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
21351 duration.
21352 (cortex_a53_fdivd): Likewise.
21353
21354 2014-04-04 Martin Jambor <mjambor@suse.cz>
21355
21356 PR ipa/60640
21357 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
21358 Adjust all callers.
21359 * cgraph.c (clone_of_p): Also return true if thunks match.
21360 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
21361 cgraph_function_or_thunk_node and an obsolete comment.
21362 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
21363 file.
21364 (build_function_decl_skip_args): Likewise.
21365 (set_new_clone_decl_and_node_flags): New function.
21366 (duplicate_thunk_for_node): Likewise.
21367 (redirect_edge_duplicating_thunks): Likewise.
21368 (cgraph_clone_node): New parameter args_to_skip, pass it to
21369 redirect_edge_duplicating_thunks which is called instead of
21370 cgraph_redirect_edge_callee.
21371 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
21372 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
21373
21374 2014-04-04 Jeff Law <law@redhat.com>
21375
21376 PR target/60657
21377 * config/arm/predicates.md (const_int_I_operand): New predicate.
21378 (const_int_M_operand): Similarly.
21379 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
21380 const_int_operand.
21381 (insv_t2, extv_reg, extzv_t2): Likewise.
21382 (load_multiple_with_writeback): Similarly for const_int_I_operand.
21383 (pop_multiple_with_writeback_and_return): Likewise.
21384 (vfp_pop_multiple_with_writeback): Likewise
21385
21386 2014-04-04 Richard Biener <rguenther@suse.de>
21387
21388 PR ipa/60746
21389 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
21390 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
21391 non-GIMPLE_LABELs.
21392 * gimplify.h (gimple_add_tmp_var_fn): Declare.
21393 * gimplify.c (gimple_add_tmp_var_fn): New function.
21394 * gimple-expr.h (create_tmp_reg_fn): Declare.
21395 * gimple-expr.c (create_tmp_reg_fn): New function.
21396 * gimple-low.c (record_vars_into): Don't change cfun.
21397 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
21398 code generation without cfun.
21399
21400 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
21401
21402 PR bootstrap/60719
21403 * Makefile.in (install-driver): Fix shell scripting.
21404
21405 2014-04-03 Cong Hou <congh@google.com>
21406
21407 PR tree-optimization/60505
21408 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
21409 threshold of number of iterations below which no vectorization
21410 will be done.
21411 * tree-vect-loop.c (new_loop_vec_info):
21412 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
21413 * tree-vect-loop.c (vect_analyze_loop_operations):
21414 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
21415 * tree-vect-loop.c (vect_transform_loop):
21416 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
21417 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
21418 of iterations of the loop and see if we should build the epilogue.
21419
21420 2014-04-03 Richard Biener <rguenther@suse.de>
21421
21422 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
21423 (streamer_tree_cache_create): Adjust.
21424 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
21425 to allow optional nodes array.
21426 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
21427 (streamer_tree_cache_append): Likewise.
21428 (streamer_tree_cache_create): Create nodes array optionally
21429 as specified by parameter.
21430 * lto-streamer-out.c (create_output_block): Avoid maintaining
21431 the node array in the writer cache.
21432 (DFS_write_tree): Remove assertion.
21433 (produce_asm_for_decls): Free the out decl state hash table early.
21434 * lto-streamer-in.c (lto_data_in_create): Adjust for
21435 streamer_tree_cache_create prototype change.
21436
21437 2014-04-03 Richard Biener <rguenther@suse.de>
21438
21439 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
21440 set TREE_CHAIN to NULL_TREE.
21441
21442 2014-04-03 Richard Biener <rguenther@suse.de>
21443
21444 PR tree-optimization/60740
21445 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
21446 over all GIMPLE_COND operands.
21447
21448 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
21449
21450 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
21451 (Weffc++): Remove Scott's numbering, merge lists and reference
21452 Wnon-virtual-dtor.
21453
21454 2014-04-03 Nick Clifton <nickc@redhat.com>
21455
21456 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
21457 properly.
21458
21459 2014-04-03 Martin Jambor <mjambor@suse.cz>
21460
21461 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
21462 mention gcc_unreachable before failing.
21463 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
21464 removed symbols.
21465
21466 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
21467
21468 PR ipa/60659
21469 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
21470 inconsistent code and instead mark the context inconsistent.
21471 (possible_polymorphic_call_targets): For inconsistent contexts
21472 return empty complete list.
21473
21474 2014-04-02 Anthony Green <green@moxielogic.com>
21475
21476 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
21477 (extendqisi2, extendhisi2): Define.
21478 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
21479 (WCHAR_TYPE): Change to unsigned int.
21480
21481 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21482
21483 PR tree-optimization/60733
21484 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
21485 insertion point for PHI candidates to be the end of the feeding
21486 block for the PHI argument.
21487
21488 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
21489
21490 PR rtl-optimization/60650
21491 * lra-constraints.c (process_alt_operands): Decrease reject for
21492 earlyclobber matching.
21493
21494 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21495
21496 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
21497
21498 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21499
21500 * config/spu/spu.c (pad_bb): Do not crash when the last
21501 insn is CODE_FOR_blockage.
21502
21503 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21504
21505 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
21506 lies outside the target mode.
21507
21508 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21509
21510 PR target/60735
21511 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
21512 software floating point or no floating point registers, do not
21513 allow any type in the FPRs. Eliminate a test for SPE SIMD types
21514 in GPRs that occurs after we tested for GPRs that would never be
21515 true.
21516
21517 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
21518 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
21519 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
21520 specifically allow DDmode, since that does not use the SPE SIMD
21521 instructions.
21522
21523 2014-04-02 Richard Biener <rguenther@suse.de>
21524
21525 PR middle-end/60729
21526 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
21527 MODE_INTs. Properly use negv_optab.
21528 (expand_abs): Likewise.
21529
21530 2014-04-02 Richard Biener <rguenther@suse.de>
21531
21532 PR bootstrap/60719
21533 * Makefile.in (install-driver): Guard extra installs with special
21534 names properly.
21535
21536 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
21537
21538 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21539 Document vec_vgbbd.
21540
21541 2014-04-01 Richard Henderson <rth@redhat.com>
21542
21543 PR target/60704
21544 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
21545 alternative enabled before register allocation.
21546
21547 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
21548
21549 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
21550 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
21551 typo.
21552 (nios2_large_got_address): Remove unneeded 'sym' parameter.
21553 (nios2_got_address): Update nios2_large_got_address call site.
21554 (nios2_delegitimize_address): New function.
21555 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
21556 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
21557 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
21558
21559 2014-04-01 Martin Husemann <martin@duskware.de>
21560
21561 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
21562 for -mabi=32.
21563
21564 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
21565
21566 PR rtl-optimization/60604
21567 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
21568 check from register_operand.
21569 (register_operand): Redefine in terms of general_operand.
21570 (nonmemory_operand): Use register_operand for the non-constant cases.
21571
21572 2014-04-01 Richard Biener <rguenther@suse.de>
21573
21574 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
21575
21576 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
21577
21578 * doc/invoke.texi (mapp-regs): Clarify.
21579
21580 2014-03-31 Ulrich Drepper <drepper@gmail.com>
21581
21582 * config/i386/avx512fintrin.h (__v32hi): Define type.
21583 (__v64qi): Likewise.
21584 (_mm512_set1_epi8): Define.
21585 (_mm512_set1_epi16): Define.
21586 (_mm512_set4_epi32): Define.
21587 (_mm512_set4_epi64): Define.
21588 (_mm512_set4_pd): Define.
21589 (_mm512_set4_ps): Define.
21590 (_mm512_setr4_epi64): Define.
21591 (_mm512_setr4_epi32): Define.
21592 (_mm512_setr4_pd): Define.
21593 (_mm512_setr4_ps): Define.
21594 (_mm512_setzero_epi32): Define.
21595
21596 2014-03-31 Martin Jambor <mjambor@suse.cz>
21597
21598 PR middle-end/60647
21599 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
21600 callsite_arguments_match_p. Updated all callers. Also check types of
21601 corresponding formal parameters and actual arguments.
21602 (not_all_callers_have_enough_arguments_p) Renamed to
21603 some_callers_have_mismatched_arguments_p.
21604
21605 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
21606
21607 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
21608
21609 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
21610
21611 PR target/60034
21612 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
21613 section anchor.
21614
21615 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
21616
21617 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
21618 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
21619 Split out
21620 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
21621 Use FMAMODE_NOVF512 mode iterator.
21622 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
21623 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
21624 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
21625 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
21626 Split out
21627 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
21628 Use VF_128_256 mode iterator.
21629 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
21630 Ditto.
21631
21632 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21633
21634 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
21635 static chain if needed.
21636
21637 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21638
21639 PR target/60697
21640 * lra-constraints.c (index_part_to_reg): New.
21641 (process_address): Use it.
21642
21643 2014-03-27 Jeff Law <law@redhat.com>
21644 Jakub Jelinek <jakub@redhat.com>
21645
21646 PR target/60648
21647 * expr.c (do_tablejump): Use simplify_gen_binary rather than
21648 gen_rtx_{PLUS,MULT} to build up the address expression.
21649
21650 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
21651 creating non-canonical RTL.
21652
21653 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21654
21655 PR ipa/60243
21656 * ipa-inline.c (want_inline_small_function_p): Short circuit large
21657 functions; reorganize to make cheap checks first.
21658 (inline_small_functions): Do not estimate growth when dumping;
21659 it is expensive.
21660 * ipa-inline.h (inline_summary): Add min_size.
21661 (growth_likely_positive): New function.
21662 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
21663 (set_cond_stmt_execution_predicate): Cleanup.
21664 (estimate_edge_size_and_time): Compute min_size.
21665 (estimate_calls_size_and_time): Likewise.
21666 (estimate_node_size_and_time): Likewise.
21667 (inline_update_overall_summary): Update min_size.
21668 (do_estimate_edge_time): Likewise.
21669 (do_estimate_edge_size): Update.
21670 (do_estimate_edge_hints): Update.
21671 (growth_likely_positive): New function.
21672
21673 2014-03-28 Jakub Jelinek <jakub@redhat.com>
21674
21675 PR target/60693
21676 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
21677 also if addr has VOIDmode.
21678
21679 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21680
21681 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
21682 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
21683 Declare extern.
21684 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
21685 instructions as well as AdvancedSIMD loads.
21686
21687 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21688
21689 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
21690 Use crypto_aese type.
21691 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
21692 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
21693 crypto_aese, crypto_aesmc. Move to types.md.
21694 * config/arm/types.md (crypto_aes): Split into crypto_aese,
21695 crypto_aesmc.
21696 * config/arm/iterators.md (crypto_type): Likewise.
21697
21698 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21699
21700 * cgraph.c: Include expr.h and tree-dfa.h.
21701 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
21702 remove LHS.
21703
21704 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21705
21706 PR target/60675
21707 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
21708 regs from checking multi-reg pseudos.
21709
21710 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21711
21712 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
21713
21714 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21715
21716 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
21717 if it would clobber the stack pointer, even temporarily.
21718
21719 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
21720
21721 * mode-switching.c: Make small adjustments to the top comment.
21722
21723 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
21724
21725 * config/rs6000/constraints.md (wD constraint): New constraint to
21726 match the constant integer to get the top DImode/DFmode out of a
21727 vector in a VSX register.
21728
21729 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
21730 match the constant integer to get the top DImode/DFmode out of a
21731 vector in a VSX register.
21732
21733 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
21734 for ISA 2.07.
21735
21736 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21737 vbpermq builtins.
21738
21739 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
21740 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
21741
21742 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
21743 Optimize vec_extract of 64-bit values, where the value being
21744 extracted is in the top word, where we can use scalar
21745 instructions. Add direct move and store support. Combine the big
21746 endian/little endian vector select load support into a single insn.
21747 (vsx_extract_<mode>_internal1): Likewise.
21748 (vsx_extract_<mode>_internal2): Likewise.
21749 (vsx_extract_<mode>_load): Likewise.
21750 (vsx_extract_<mode>_store): Likewise.
21751 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
21752 combined into vsx_extract_<mode>_load.
21753 (vsx_extract_<mode>_one_le): Likewise.
21754
21755 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
21756 define the top 64-bit vector element.
21757
21758 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
21759 constraint.
21760
21761 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21762 Document vec_vbpermq builtin.
21763
21764 PR target/60672
21765 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
21766 enable use of xxsldwi and xxpermdi builtin functions.
21767 (vec_xxpermdi): Likewise.
21768
21769 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21770 Document use of vec_xxsldwi and vec_xxpermdi builtins.
21771
21772 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
21773
21774 PR rtl-optimization/60650
21775 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
21776 first_p. Use it.
21777 (find_spills_for): New.
21778 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
21779 Spill all pseudos on the second iteration.
21780
21781 2014-03-27 Marek Polacek <polacek@redhat.com>
21782
21783 PR c/50347
21784 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
21785 types.
21786
21787 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21788
21789 * config/s390/s390.c (s390_can_use_return_insn): Check for
21790 call-saved FPRs on 31 bit.
21791
21792 2014-03-27 Jakub Jelinek <jakub@redhat.com>
21793
21794 PR middle-end/60682
21795 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
21796 if they need regimplification, just drop them instead of
21797 calling gimple_regimplify_operands on them.
21798
21799 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
21800
21801 PR target/60580
21802 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
21803 (aarch64_frame_pointer_required): Adjust logic.
21804 (aarch64_can_eliminate): Adjust logic.
21805 (aarch64_override_options_after_change): Adjust logic.
21806
21807 2014-03-27 Dehao Chen <dehao@google.com>
21808
21809 * ipa-inline.c (early_inliner): Update node's inline info.
21810
21811 2014-03-26 Dehao Chen <dehao@google.com>
21812
21813 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
21814 compiler inserted conditional jumps for NAN float check.
21815
21816 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21817
21818 * ubsan.h (ubsan_create_data): Change second argument's type
21819 to const location_t *.
21820 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
21821 _("<unknown>").
21822 (ubsan_create_data): Change second argument to const location_t *PLOC.
21823 Create Loc field whenever PLOC is non-NULL.
21824 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
21825 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
21826 callers.
21827
21828 PR other/59545
21829 * real.c (real_to_integer2): Change type of low to UHWI.
21830
21831 2014-03-26 Tobias Burnus <burnus@net-b.de>
21832
21833 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
21834 (CILK_SELF_SPECS): New define.
21835 (driver_self_specs): Use it.
21836
21837 2014-03-26 Richard Biener <rguenther@suse.de>
21838
21839 * tree-pretty-print.c (percent_K_format): Implement special
21840 case for LTO and its stripped down BLOCK tree.
21841
21842 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21843
21844 PR sanitizer/60636
21845 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
21846
21847 * tree-vrp.c (simplify_internal_call_using_ranges): If only
21848 one range is range_int_cst_p, but not both, at least optimize
21849 addition/subtraction of 0 and multiplication by 0 or 1.
21850 * gimple-fold.c (gimple_fold_call): Fold
21851 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
21852 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
21853 INTEGER_CSTs, try to fold at least x * 0 and y - y.
21854
21855 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
21856
21857 PR rtl-optimization/60452
21858 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
21859 <case REG>: Return 1 for invalid offsets from the frame pointer.
21860
21861 2014-03-26 Marek Polacek <polacek@redhat.com>
21862
21863 PR c/37428
21864 * doc/extend.texi (C Extensions): Mention variable-length arrays in
21865 a structure/union.
21866
21867 2014-03-26 Marek Polacek <polacek@redhat.com>
21868
21869 PR c/39525
21870 * doc/extend.texi (Designated Inits): Describe what happens to omitted
21871 field members.
21872
21873 2014-03-26 Marek Polacek <polacek@redhat.com>
21874
21875 PR other/59545
21876 * ira-color.c (update_conflict_hard_regno_costs): Perform the
21877 multiplication in unsigned type.
21878
21879 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21880
21881 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
21882
21883 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21884
21885 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
21886
21887 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21888
21889 PR ipa/60315
21890 * cif-code.def (UNREACHABLE) New code.
21891 * ipa-inline.c (inline_small_functions): Skip edges to
21892 __builtlin_unreachable.
21893 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
21894 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
21895 predicate to __bulitin_unreachable.
21896 (set_cond_stmt_execution_predicate): Fix issue when
21897 invert_tree_comparison returns ERROR_MARK.
21898 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
21899 propagate to inline clones.
21900 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
21901 to unreachable.
21902 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
21903 * cgraphclones.c (cgraph_clone_node): If call destination is already
21904 ureachable, do not redirect it back.
21905 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
21906 unreachable.
21907
21908 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21909
21910 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
21911 Do not modify inline clones.
21912
21913 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21914
21915 * config/i386/i386.md (general_sext_operand): New mode attr.
21916 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
21917 don't generate (sign_extend (const_int)).
21918 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
21919 operands[2]. Use We constraint instead of <i> and
21920 <general_sext_operand> predicate instead of <general_operand>.
21921 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
21922 * config/i386/constraints.md (We): New constraint.
21923 * config/i386/predicates.md (x86_64_sext_operand,
21924 sext_operand): New predicates.
21925
21926 2014-03-25 Martin Jambor <mjambor@suse.cz>
21927
21928 PR ipa/60600
21929 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
21930 inconsistent devirtualizations to __builtin_unreachable.
21931
21932 2014-03-25 Marek Polacek <polacek@redhat.com>
21933
21934 PR c/35449
21935 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
21936
21937 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
21938
21939 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
21940 order of elements for big-endian.
21941
21942 2014-03-25 Richard Biener <rguenther@suse.de>
21943
21944 PR middle-end/60635
21945 * gimplify-me.c (gimple_regimplify_operands): Update the
21946 re-gimplifed stmt.
21947
21948 2014-03-25 Martin Jambor <mjambor@suse.cz>
21949
21950 PR ipa/59176
21951 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
21952 (lto_output_varpool_node): Likewise.
21953 (input_overwrite_node): Likewise.
21954 (input_varpool_node): Likewise.
21955
21956 2014-03-25 Richard Biener <rguenther@suse.de>
21957
21958 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
21959 (run_gcc): Likewise.
21960
21961 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21962
21963 * combine.c (simplify_compare_const): Add MODE argument.
21964 Handle mode_width 0 as very large mode_width.
21965 (try_combine, simplify_comparison): Adjust callers.
21966
21967 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
21968 type to avoid signed integer overflow.
21969 * explow.c (plus_constant): Likewise.
21970
21971 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
21972
21973 * doc/generic.texi: Correct typos.
21974
21975 2014-03-24 Tobias Burnus <burnus@net-b.de>
21976
21977 * doc/invoke.texi (-flto): Expand section about
21978 using static libraries with LTO.
21979
21980 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21981
21982 PR rtl-optimization/60501
21983 * optabs.def (addptr3_optab): New optab.
21984 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
21985 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
21986 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
21987
21988 * lra.c (emit_add3_insn): Use the addptr pattern if available.
21989
21990 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
21991
21992 2014-03-24 Ulrich Drepper <drepper@gmail.com>
21993
21994 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
21995 _mm512_set1_pd.
21996
21997 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
21998 (_mm256_undefined_ps): Define.
21999 (_mm256_undefined_pd): Define.
22000 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
22001 (_mm_undefined_pd): Define.
22002 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
22003 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
22004 (_mm512_undefined_ps): Define.
22005 (_mm512_undefined_pd): Define.
22006 Use _mm*_undefined_*.
22007 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
22008
22009 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
22010
22011 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
22012 (lshr_simd): DI mode added.
22013 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
22014 (aarch64_ushr_simddi): Likewise.
22015 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
22016 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
22017 (vshrd_n_u64): Likewise.
22018
22019 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22020
22021 * Makefile.in (s-macro_list): Depend on cc1.
22022
22023 2014-03-23 Teresa Johnson <tejohnson@google.com>
22024
22025 * ipa-utils.c (ipa_print_order): Use specified dump file.
22026
22027 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
22028
22029 PR rtl-optimization/60601
22030 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
22031
22032 * gcc.c (eval_spec_function): Initialize save_growing_value.
22033
22034 2014-03-22 Jakub Jelinek <jakub@redhat.com>
22035
22036 PR sanitizer/60613
22037 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
22038 code == MINUS_EXPR, never swap op0 with op1.
22039
22040 * toplev.c (init_local_tick): Avoid signed integer multiplication
22041 overflow.
22042 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
22043 shift by first operand's bitsize.
22044
22045 2014-03-21 Jakub Jelinek <jakub@redhat.com>
22046
22047 PR target/60610
22048 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
22049 redefine to 1 or 0.
22050 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
22051 TARGET_ISA_64BIT_P(x).
22052
22053 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22054
22055 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
22056 pattern for vector nor instead of subtract from splat(-1).
22057 (altivec_expand_vec_perm_const_le): Likewise.
22058
22059 2014-03-21 Richard Henderson <rth@twiddle.net>
22060
22061 PR target/60598
22062 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
22063 related insns after epilogue_completed.
22064
22065 2014-03-21 Martin Jambor <mjambor@suse.cz>
22066
22067 PR ipa/59176
22068 * cgraph.h (symtab_node): New flag body_removed.
22069 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
22070 when removing bodies.
22071 * symtab.c (dump_symtab_base): Dump body_removed flag.
22072 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
22073 had their bodies removed.
22074
22075 2014-03-21 Martin Jambor <mjambor@suse.cz>
22076
22077 PR ipa/60419
22078 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
22079 in the border.
22080
22081 2014-03-21 Richard Biener <rguenther@suse.de>
22082
22083 PR tree-optimization/60577
22084 * tree-core.h (struct tree_base): Document nothrow_flag use
22085 in DECL_NONALIASED.
22086 * tree.h (DECL_NONALIASED): New.
22087 (may_be_aliased): Adjust.
22088 * coverage.c (build_var): Set DECL_NONALIASED.
22089
22090 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
22091
22092 * expr.c (expand_expr_real_1): Remove outdated comment.
22093
22094 2014-03-20 Jakub Jelinek <jakub@redhat.com>
22095
22096 PR middle-end/60597
22097 * ira.c (adjust_cleared_regs): Call copy_rtx on
22098 *reg_equiv[REGNO (loc)].src_p before passing it to
22099 simplify_replace_fn_rtx.
22100
22101 PR target/60568
22102 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
22103 into CONST, put pic register as first operand of PLUS. Use
22104 gen_const_mem for both 32-bit and 64-bit PIC got loads.
22105
22106 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22107
22108 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
22109
22110 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
22111
22112 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
22113 around for store forwarding issue in the FPU on the UT699.
22114 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
22115 loads and operations if -mfix-ut699 is specified.
22116 (divtf3_hq): Tweak attribute.
22117 (sqrttf2_hq): Likewise.
22118
22119 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
22120
22121 * calls.c (store_one_arg): Remove incorrect const qualification on the
22122 type of the temporary.
22123 * cfgexpand.c (expand_return): Likewise.
22124 * expr.c (expand_constructor): Likewise.
22125 (expand_expr_real_1): Likewise.
22126
22127 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22128
22129 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
22130 of parts.
22131
22132 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
22133
22134 PR target/60039
22135 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
22136
22137 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
22138
22139 * config/arm/aarch-common-protos.h
22140 (alu_cost_table): Fix spelling of "extend".
22141 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
22142
22143 2014-03-19 Richard Biener <rguenther@suse.de>
22144
22145 PR middle-end/60553
22146 * tree-core.h (tree_type_common): Re-order pointer members
22147 to reduce recursion depth during GC walks.
22148
22149 2014-03-19 Marek Polacek <polacek@redhat.com>
22150
22151 PR sanitizer/60569
22152 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
22153 before accessing it.
22154
22155 2014-03-19 Richard Biener <rguenther@suse.de>
22156
22157 PR lto/59543
22158 * lto-streamer-in.c (input_function): In WPA stage do not drop
22159 debug stmts.
22160
22161 2014-03-19 Jakub Jelinek <jakub@redhat.com>
22162
22163 PR tree-optimization/60559
22164 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
22165 with build_zero_cst assignment.
22166
22167 2014-03-18 Kai Tietz <ktietz@redhat.com>
22168
22169 PR rtl-optimization/56356
22170 * sdbout.c (sdbout_parms): Verify that parms'
22171 incoming argument is valid.
22172 (sdbout_reg_parms): Likewise.
22173
22174 2014-03-18 Richard Henderson <rth@redhat.com>
22175
22176 PR target/60562
22177 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
22178 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
22179 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
22180
22181 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
22182
22183 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
22184 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
22185 Italicize plugin event names in description. Explain that
22186 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
22187 Remind that no GCC functions should be called after PLUGIN_FINISH.
22188 Explain what pragmas with expansion are.
22189
22190 2014-03-18 Martin Liska <mliska@suse.cz>
22191
22192 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
22193 gimple call statement is update.
22194 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
22195 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
22196
22197 2014-03-18 Jakub Jelinek <jakub@redhat.com>
22198
22199 PR sanitizer/60557
22200 * ubsan.c (ubsan_instrument_unreachable): Call
22201 initialize_sanitizer_builtins.
22202 (ubsan_pass): Likewise.
22203
22204 PR sanitizer/60535
22205 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
22206 varpool_finalize_decl instead of rest_of_decl_compilation.
22207
22208 2014-03-18 Richard Biener <rguenther@suse.de>
22209
22210 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
22211 by using bitmap_and_compl instead of bitmap_and_compl_into.
22212 (df_rd_transfer_function): Likewise.
22213
22214 2014-03-18 Richard Biener <rguenther@suse.de>
22215
22216 * doc/lto.texi (fresolution): Fix typo.
22217
22218 2014-03-18 Richard Biener <rguenther@suse.de>
22219
22220 * doc/invoke.texi (flto): Update for changes in 4.9.
22221
22222 2014-03-18 Richard Biener <rguenther@suse.de>
22223
22224 * doc/loop.texi: Remove section on the removed lambda framework.
22225 Update loop docs with recent changes in preserving loop structure.
22226
22227 2014-03-18 Richard Biener <rguenther@suse.de>
22228
22229 * doc/lto.texi (-fresolution): Document.
22230
22231 2014-03-18 Richard Biener <rguenther@suse.de>
22232
22233 * doc/contrib.texi: Adjust my name.
22234
22235 2014-03-18 Jakub Jelinek <jakub@redhat.com>
22236
22237 PR ipa/58721
22238 * internal-fn.c: Include diagnostic-core.h.
22239 (expand_BUILTIN_EXPECT): New function.
22240 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
22241 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
22242 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
22243 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
22244 IFN_BUILTIN_EXPECT.
22245 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
22246 Revert 3 argument __builtin_expect code.
22247 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
22248 * gimple-fold.c (gimple_fold_call): Likewise.
22249 * tree.h (fold_builtin_expect): New prototype.
22250 * builtins.c (build_builtin_expect_predicate): Add predictor
22251 argument, if non-NULL, create 3 argument __builtin_expect.
22252 (fold_builtin_expect): No longer static. Add ARG2 argument,
22253 pass it through to build_builtin_expect_predicate.
22254 (fold_builtin_2): Adjust caller.
22255 (fold_builtin_3): Handle BUILT_IN_EXPECT.
22256 * internal-fn.def (BUILTIN_EXPECT): New.
22257
22258 2014-03-18 Tobias Burnus <burnus@net-b.de>
22259
22260 PR ipa/58721
22261 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
22262 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
22263 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
22264
22265 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
22266
22267 PR ipa/58721
22268 * predict.c (combine_predictions_for_bb): Fix up formatting.
22269 (expr_expected_value_1, expr_expected_value): Add predictor argument,
22270 fill what it points to if non-NULL.
22271 (tree_predict_by_opcode): Adjust caller, use the predictor.
22272 * predict.def (PRED_COMPARE_AND_SWAP): Add.
22273
22274 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
22275
22276 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
22277 proper constant for the store mode.
22278
22279 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
22280
22281 * symtab.c (change_decl_assembler_name): Fix transparent alias
22282 chain construction.
22283
22284 2014-03-16 Renlin Li <Renlin.Li@arm.com>
22285
22286 * config/aarch64/aarch64.c: Correct the comments about the
22287 aarch64 stack layout.
22288
22289 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
22290
22291 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
22292 check for GF_OMP_FOR_KIND_FOR.
22293
22294 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
22295
22296 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
22297 ymm and zmm register names.
22298
22299 2014-03-17 Jakub Jelinek <jakub@redhat.com>
22300
22301 PR target/60516
22302 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
22303 note creation for the 2010-08-31 changes.
22304
22305 2014-03-17 Marek Polacek <polacek@redhat.com>
22306
22307 PR middle-end/60534
22308 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
22309 as -fno-tree-loop-vectorize.
22310 (expand_omp_simd): Likewise.
22311
22312 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
22313
22314 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
22315 (eligible_for_call_delay): New prototype.
22316 * config/sparc/sparc.c (tls_call_delay): Rename into...
22317 (eligible_for_call_delay): ...this. Return false if the instruction
22318 cannot be put in the delay slot of a branch.
22319 (eligible_for_restore_insn): Simplify.
22320 (eligible_for_return_delay): Return false if the instruction cannot be
22321 put in the delay slot of a branch and simplify.
22322 (eligible_for_sibcall_delay): Return false if the instruction cannot be
22323 put in the delay slot of a branch.
22324 * config/sparc/sparc.md (fix_ut699): New attribute.
22325 (tls_call_delay): Delete.
22326 (in_call_delay): Reimplement.
22327 (eligible_for_sibcall_delay): Rename into...
22328 (in_sibcall_delay): ...this.
22329 (eligible_for_return_delay): Rename into...
22330 (in_return_delay): ...this.
22331 (in_branch_delay): Reimplement.
22332 (in_uncond_branch_delay): Delete.
22333 (in_annul_branch_delay): Delete.
22334
22335 2014-03-14 Richard Henderson <rth@redhat.com>
22336
22337 PR target/60525
22338 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
22339 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
22340 (*floathi<X87MODEF>2_i387_with_temp): Remove.
22341 (floathi splitters): Remove.
22342 (float<SWI48x>xf2): New pattern.
22343 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
22344 code that tried to handle DImode for 32-bit, but which was excluded
22345 by the pattern's condition. Drop allocation of stack temporary.
22346 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
22347 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
22348 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
22349 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
22350 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
22351 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
22352 (*float<SWI48><MODEF>2_sse_interunit): Remove.
22353 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
22354 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
22355 (*float<SWI48x><X87MODEF>2_i387): Remove.
22356 (all float _with_temp splitters): Remove.
22357 (*float<SWI48x><MODEF>2_i387): New pattern.
22358 (*float<SWI48><MODEF>2_sse): New pattern.
22359 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
22360 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
22361
22362 2014-03-14 Jakub Jelinek <jakub@redhat.com>
22363 Marek Polacek <polacek@redhat.com>
22364
22365 PR middle-end/60484
22366 * common.opt (dump_base_name_prefixed): New Variable.
22367 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
22368 if x_dump_base_name_prefixed is already set, set it at the end.
22369
22370 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
22371
22372 PR rtl-optimization/60508
22373 * lra-constraints.c (get_reload_reg): Add new parameter
22374 in_subreg_p.
22375 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
22376 Pass the new parameter values.
22377
22378 2014-03-14 Richard Biener <rguenther@suse.de>
22379
22380 * common.opt: Revert unintented changes from r205065.
22381 * opts.c: Likewise.
22382
22383 2014-03-14 Richard Biener <rguenther@suse.de>
22384
22385 PR middle-end/60518
22386 * cfghooks.c (split_block): Properly adjust all loops the
22387 block was a latch of.
22388
22389 2014-03-14 Martin Jambor <mjambor@suse.cz>
22390
22391 PR lto/60461
22392 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
22393 and simplify it.
22394
22395 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
22396
22397 PR target/59396
22398 * config/avr/avr.c (avr_set_current_function): Pass function name
22399 through default_strip_name_encoding before sanity checking instead
22400 of skipping the first char of the assembler name.
22401
22402 2014-03-13 Richard Henderson <rth@redhat.com>
22403
22404 PR debug/60438
22405 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
22406 (ix86_force_to_memory, ix86_free_from_memory): Remove.
22407 * config/i386/i386-protos.h: Likewise.
22408 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
22409 in the expander instead of a splitter.
22410 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
22411 any possibility of requiring a memory.
22412 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
22413 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
22414 (fp branch splitters): Update for ix86_split_fp_branch.
22415 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
22416 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
22417 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
22418 (*fop_<MODEF>_2_i387): Remove f/r alternative.
22419 (*fop_<MODEF>_3_i387): Likewise.
22420 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
22421 (splitters for the fop_* register patterns): Remove.
22422 (fscalexf4_i387): Rename from *fscalexf4_i387.
22423 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
22424
22425 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22426
22427 PR tree-optimization/59779
22428 * tree-dfa.c (get_ref_base_and_extent): Use double_int
22429 type for bitsize and maxsize instead of HOST_WIDE_INT.
22430
22431 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
22432
22433 PR rtl-optimization/57320
22434 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
22435 the CFG after thread_prologue_and_epilogue_insns.
22436
22437 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
22438
22439 PR rtl-optimization/57189
22440 * lra-constraints.c (process_alt_operands): Disfavor spilling
22441 vector pseudos.
22442
22443 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
22444
22445 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
22446
22447 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22448
22449 PR tree-optimization/59025
22450 PR middle-end/60418
22451 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
22452 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
22453
22454 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
22455
22456 PR target/60486
22457 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
22458 calls of avr_out_plus_1.
22459
22460 2014-03-13 Bin Cheng <bin.cheng@arm.com>
22461
22462 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
22463 BB's single pred and update the father loop's latch info later.
22464
22465 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
22466
22467 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
22468 (VEC_M): Likewise.
22469 (VEC_N): Likewise.
22470 (VEC_R): Likewise.
22471 (VEC_base): Likewise.
22472 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
22473 registers, we need to swap double words in little endian mode.
22474
22475 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
22476 to be a container mode for 128-bit integer operations added in ISA
22477 2.07. Unlike TImode and PTImode, the preferred register set is
22478 the Altivec/VMX registers for the 128-bit operations.
22479
22480 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
22481 declarations.
22482 (rs6000_split_128bit_ok_p): Likewise.
22483
22484 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
22485 macros for creating ISA 2.07 normal and overloaded builtin
22486 functions with 3 arguments.
22487 (BU_P8V_OVERLOAD_3): Likewise.
22488 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
22489 for use as overloaded functions.
22490 (VPERM_1TI_UNS): Likewise.
22491 (VSEL_1TI): Likewise.
22492 (VSEL_1TI_UNS): Likewise.
22493 (ST_INTERNAL_1ti): Likewise.
22494 (LD_INTERNAL_1ti): Likewise.
22495 (XXSEL_1TI): Likewise.
22496 (XXSEL_1TI_UNS): Likewise.
22497 (VPERM_1TI): Likewise.
22498 (VPERM_1TI_UNS): Likewise.
22499 (XXPERMDI_1TI): Likewise.
22500 (SET_1TI): Likewise.
22501 (LXVD2X_V1TI): Likewise.
22502 (STXVD2X_V1TI): Likewise.
22503 (VEC_INIT_V1TI): Likewise.
22504 (VEC_SET_V1TI): Likewise.
22505 (VEC_EXT_V1TI): Likewise.
22506 (EQV_V1TI): Likewise.
22507 (NAND_V1TI): Likewise.
22508 (ORC_V1TI): Likewise.
22509 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
22510 added in ISA 2.07. Add both normal 'altivec' builtins, and the
22511 overloaded builtin.
22512 (VADDUQM): Likewise.
22513 (VSUBCUQ): Likewise.
22514 (VADDEUQM): Likewise.
22515 (VADDECUQ): Likewise.
22516 (VSUBEUQM): Likewise.
22517 (VSUBECUQ): Likewise.
22518
22519 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
22520 __int128_t and __uint128_t types.
22521 (__uint128_type): Likewise.
22522 (altivec_categorize_keyword): Add support for vector __int128_t,
22523 vector __uint128_t, vector __int128, and vector unsigned __int128
22524 as a container type for TImode operations that need to be done in
22525 VSX/Altivec registers.
22526 (rs6000_macro_to_expand): Likewise.
22527 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
22528 to support 128-bit integer instructions vaddcuq, vadduqm,
22529 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
22530 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
22531
22532 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
22533 for V1TImode, and set up preferences to use VSX/Altivec registers.
22534 Setup VSX reload handlers.
22535 (rs6000_debug_reg_global): Likewise.
22536 (rs6000_init_hard_regno_mode_ok): Likewise.
22537 (rs6000_preferred_simd_mode): Likewise.
22538 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
22539 (easy_altivec_constant): Likewise.
22540 (output_vec_const_move): Likewise.
22541 (rs6000_expand_vector_set): Convert V1TImode set and extract to
22542 simple move.
22543 (rs6000_expand_vector_extract): Likewise.
22544 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
22545 addressing.
22546 (rs6000_const_vec): Add support for V1TImode.
22547 (rs6000_emit_le_vsx_load): Swap double words when loading or
22548 storing TImode/V1TImode.
22549 (rs6000_emit_le_vsx_store): Likewise.
22550 (rs6000_emit_le_vsx_move): Likewise.
22551 (rs6000_emit_move): Add support for V1TImode.
22552 (altivec_expand_ld_builtin): Likewise.
22553 (altivec_expand_st_builtin): Likewise.
22554 (altivec_expand_vec_init_builtin): Likewise.
22555 (altivec_expand_builtin): Likewise.
22556 (rs6000_init_builtins): Add support for V1TImode type. Add
22557 support for ISA 2.07 128-bit integer builtins. Define type names
22558 for the VSX/Altivec vector types.
22559 (altivec_init_builtins): Add support for overloaded vector
22560 functions with V1TImode type.
22561 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
22562 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
22563 external function.
22564 (rs6000_split_128bit_ok_p): Likewise.
22565 (rs6000_handle_altivec_attribute): Create V1TImode from vector
22566 __int128_t and vector __uint128_t.
22567
22568 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
22569 and mode attributes.
22570 (VSX_M): Likewise.
22571 (VSX_M2): Likewise.
22572 (VSm): Likewise.
22573 (VSs): Likewise.
22574 (VSr): Likewise.
22575 (VSv): Likewise.
22576 (VS_scalar): Likewise.
22577 (VS_double): Likewise.
22578 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
22579
22580 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
22581 we support the ISA 2.07 128-bit integer arithmetic instructions.
22582 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
22583 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
22584 and TImode types for use with the builtin functions.
22585 (V1TI_type_node): Likewise.
22586 (unsigned_V1TI_type_node): Likewise.
22587 (intTI_type_internal_node): Likewise.
22588 (uintTI_type_internal_node): Likewise.
22589
22590 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
22591 128-bit builtin functions.
22592 (UNSPEC_VADDEUQM): Likewise.
22593 (UNSPEC_VADDECUQ): Likewise.
22594 (UNSPEC_VSUBCUQ): Likewise.
22595 (UNSPEC_VSUBEUQM): Likewise.
22596 (UNSPEC_VSUBECUQ): Likewise.
22597 (VM): Add V1TImode to vector mode iterators.
22598 (VM2): Likewise.
22599 (VI_unit): Likewise.
22600 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
22601 (altivec_vaddcuq): Likewise.
22602 (altivec_vsubuqm): Likewise.
22603 (altivec_vsubcuq): Likewise.
22604 (altivec_vaddeuqm): Likewise.
22605 (altivec_vaddecuq): Likewise.
22606 (altivec_vsubeuqm): Likewise.
22607 (altivec_vsubecuq): Likewise.
22608
22609 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
22610 mode iterators.
22611 (BOOL_128): Likewise.
22612 (BOOL_REGS_OUTPUT): Likewise.
22613 (BOOL_REGS_OP1): Likewise.
22614 (BOOL_REGS_OP2): Likewise.
22615 (BOOL_REGS_UNARY): Likewise.
22616 (BOOL_REGS_AND_CR0): Likewise.
22617
22618 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
22619 128-bit integer builtin support.
22620 (vec_vadduqm): Likewise.
22621 (vec_vaddecuq): Likewise.
22622 (vec_vaddeuqm): Likewise.
22623 (vec_vsubecuq): Likewise.
22624 (vec_vsubeuqm): Likewise.
22625 (vec_vsubcuq): Likewise.
22626 (vec_vsubuqm): Likewise.
22627
22628 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22629 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
22630 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
22631 128-bit integer add/subtract to ISA 2.07.
22632
22633 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
22634
22635 * config/arc/arc.c (arc_predicate_delay_insns):
22636 Fix third argument passed to conditionalize_nonjump.
22637
22638 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
22639
22640 * config/aarch64/aarch64-builtins.c
22641 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
22642 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
22643 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
22644 instead of __builtin_lfloor.
22645 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
22646
22647 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22648
22649 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
22650 (tree_ssa_ifcombine_bb_1): New function.
22651 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
22652 is an empty forwarder block to then_bb or vice versa and then_bb
22653 and else_bb are effectively swapped.
22654
22655 2014-03-12 Christian Bruel <christian.bruel@st.com>
22656
22657 PR target/60264
22658 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
22659 REG_CFA_DEF_CFA note.
22660 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
22661 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
22662
22663 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
22664
22665 PR tree-optimization/60454
22666 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
22667
22668 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22669
22670 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
22671 Do not define target_cpu_default2 to generic.
22672 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
22673 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
22674 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
22675
22676 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22677 Marc Glisse <marc.glisse@inria.fr>
22678
22679 PR tree-optimization/60502
22680 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
22681 instead of build_low_bits_mask.
22682
22683 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22684
22685 PR middle-end/60482
22686 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
22687 if there are multiple uses, but op doesn't live on E edge.
22688 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
22689 clobber stmts before __builtin_unreachable.
22690
22691 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
22692
22693 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
22694 hard_frame_pointer_rtx.
22695 * cse.c (cse_insn): Remove volatile check.
22696 * cselib.c (cselib_process_insn): Likewise.
22697 * dse.c (scan_insn): Likewise.
22698
22699 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22700
22701 * config/arc/arc.c (conditionalize_nonjump): New function,
22702 broken out of ...
22703 (arc_ifcvt): ... this.
22704 (arc_predicate_delay_insns): Use it.
22705
22706 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22707
22708 * config/arc/predicates.md (extend_operand): During/after reload,
22709 allow const_int_operand.
22710 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
22711 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
22712 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
22713 to "i".
22714 (umulsi3_highpart_i): Likewise.
22715
22716 2014-03-11 Richard Biener <rguenther@suse.de>
22717
22718 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
22719 Add asserts to guard possible wrong-code bugs.
22720
22721 2014-03-11 Richard Biener <rguenther@suse.de>
22722
22723 PR tree-optimization/60429
22724 PR tree-optimization/60485
22725 * tree-ssa-structalias.c (set_union_with_increment): Properly
22726 take into account all fields that overlap the shifted vars.
22727 (do_sd_constraint): Likewise.
22728 (do_ds_constraint): Likewise.
22729 (get_constraint_for_ptr_offset): Likewise.
22730
22731 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
22732
22733 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
22734 (nios2_compute_frame_layout):
22735 Add calculation of cfun->machine->fp_save_offset.
22736 (nios2_expand_prologue): Correct setting of frame pointer register
22737 in prologue.
22738 (nios2_expand_epilogue): Update recovery of stack pointer from
22739 frame pointer accordingly.
22740 (nios2_initial_elimination_offset): Update calculation of offset
22741 for eliminating to HARD_FRAME_POINTER_REGNUM.
22742
22743 2014-03-10 Jakub Jelinek <jakub@redhat.com>
22744
22745 PR ipa/60457
22746 * ipa.c (symtab_remove_unreachable_nodes): Don't call
22747 cgraph_get_create_node on VAR_DECLs.
22748
22749 2014-03-10 Richard Biener <rguenther@suse.de>
22750
22751 PR middle-end/60474
22752 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
22753
22754 2014-03-08 Douglas B Rupp <rupp@gnat.com>
22755
22756 * config/vms/vms.opt (vms_float_format): New variable.
22757
22758 2014-03-08 Tobias Burnus <burnus@net-b.de>
22759
22760 * doc/invoke.texi (-fcilkplus): Update implementation status.
22761
22762 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
22763 Richard Biener <rguenther@suse.de>
22764
22765 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
22766 consistently accross all TUs.
22767 (run_gcc): Enable -fshort-double automatically at link at link-time
22768 and disallow override.
22769
22770 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
22771
22772 PR target/58271
22773 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
22774 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
22775 if they can't be used.
22776
22777 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22778
22779 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
22780 for Solaris 11/x86 ld.
22781 * configure: Regenerate.
22782
22783 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22784
22785 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
22786 (LIB_TLS_SPEC): Save as ld_tls_libs.
22787 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
22788 (HAVE_AS_IX86_TLSLDM): New test.
22789 * configure, config.in: Regenerate.
22790 * config/i386/i386.c (legitimize_tls_address): Fall back to
22791 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
22792 cannot support TLS_MODEL_LOCAL_DYNAMIC.
22793 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
22794 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
22795
22796 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
22797
22798 * common.opt (fira-loop-pressure): Mark as optimization.
22799
22800 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
22801
22802 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
22803 an OpenMP mappable type.
22804
22805 2014-03-06 Matthias Klose <doko@ubuntu.com>
22806
22807 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
22808 MULTILIB_OSDIRNAMES is not defined.
22809
22810 2014-03-06 Jakub Jelinek <jakub@redhat.com>
22811 Meador Inge <meadori@codesourcery.com>
22812
22813 PR target/58595
22814 * config/arm/arm.c (arm_tls_symbol_p): Remove.
22815 (arm_legitimize_address): Call legitimize_tls_address for any
22816 arm_tls_referenced_p expression, handle constant addend. Call it
22817 before testing for !TARGET_ARM.
22818 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
22819
22820 2014-03-06 Richard Biener <rguenther@suse.de>
22821
22822 PR middle-end/60445
22823 PR lto/60424
22824 PR lto/60427
22825 Revert
22826 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22827
22828 * tree-streamer.c (record_common_node): Assert we don't record
22829 nodes with type double.
22830 (preload_common_node): Skip type double, complex double and double
22831 pointer since it is now frontend dependent due to fshort-double option.
22832
22833 2014-03-06 Richard Biener <rguenther@suse.de>
22834
22835 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
22836 or -fno-lto is specified and the linker has full plugin support.
22837 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
22838 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
22839 * lto-wrapper.c (merge_and_complain): Merge compile-time
22840 optimization levels.
22841 (run_gcc): And pass it through to the link options.
22842
22843 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
22844
22845 PR debug/60381
22846 Revert:
22847 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22848 PR debug/59992
22849 * cselib.c (remove_useless_values): Skip to avoid quadratic
22850 behavior if the condition moved from...
22851 (cselib_process_insn): ... here holds.
22852
22853 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22854
22855 PR plugins/59335
22856 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
22857 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
22858
22859 PR plugins/59335
22860 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
22861 (TM_H): Add x86-tune.def.
22862
22863 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22864
22865 * config/aarch64/aarch64.c (generic_tunings):
22866 Use cortexa57_extra_costs.
22867
22868 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22869
22870 PR lto/60404
22871 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
22872 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
22873 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
22874 cost for in_lto_p.
22875
22876 2014-03-04 Heiher <r@hev.cc>
22877
22878 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
22879 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
22880
22881 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
22882
22883 * config/i386/predicates.md (const2356_operand): Change to ...
22884 (const2367_operand): ... this.
22885 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
22886 const2367_operand.
22887 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22888 (*avx512pf_scatterpf<mode>sf): Ditto.
22889 (avx512pf_scatterpf<mode>df): Ditto.
22890 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22891 (*avx512pf_scatterpf<mode>df): Ditto.
22892 * config/i386/i386.c (ix86_expand_builtin): Update
22893 incorrect hint operand error message.
22894
22895 2014-03-04 Richard Biener <rguenther@suse.de>
22896
22897 * lto-section-in.c (lto_get_section_data): Fix const cast.
22898
22899 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22900
22901 * tree-streamer.c (record_common_node): Assert we don't record
22902 nodes with type double.
22903 (preload_common_node): Skip type double, complex double and double
22904 pointer since it is now frontend dependent due to fshort-double option.
22905
22906 2014-03-04 Richard Biener <rguenther@suse.de>
22907
22908 PR lto/60405
22909 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
22910 (lto_input_toplevel_asms): Likewise.
22911 * lto-section-in.c (lto_get_section_data): Instead do it here
22912 for every section.
22913
22914 2014-03-04 Richard Biener <rguenther@suse.de>
22915
22916 PR tree-optimization/60382
22917 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
22918 dead PHIs a reduction.
22919
22920 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
22921
22922 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
22923 hint value.
22924 (_mm_prefetch): Move out of GCC target("sse") pragma.
22925 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
22926 GCC target("prfchw") pragma.
22927 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
22928 for locality <= 2.
22929 * config/i386/i386.c (ix86_option_override_internal): Enable
22930 -mprfchw with -mprefetchwt1.
22931
22932 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22933
22934 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
22935 Mark as varying.
22936
22937 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22938
22939 * opts.h (CL_PCH_IGNORE): Define.
22940 * targhooks.c (option_affects_pch_p):
22941 Return false for options that have CL_PCH_IGNORE set.
22942 * opt-functions.awk: Process PchIgnore.
22943 * doc/options.texi: Document PchIgnore.
22944
22945 * config/arc/arc.opt (misize): Add PchIgnore property.
22946
22947 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22948
22949 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
22950 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
22951 constraint on constants to permit them being loaded into
22952 GENERAL_REGS or BASE_REGS.
22953
22954 2014-03-03 Nick Clifton <nickc@redhat.com>
22955
22956 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
22957 anti-cacnonical alternatives.
22958 (negandhi3_real): New pattern.
22959 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
22960
22961 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22962
22963 * config/avr/avr-mcus.def: Remove atxmega16x1.
22964 * config/avr/avr-tables.opt: Regenerate.
22965 * config/avr/t-multilib: Regenerate.
22966 * doc/avr-mmcu.texi: Regenerate.
22967
22968 2014-03-03 Tobias Grosser <tobias@grosser.es>
22969 Mircea Namolaru <mircea.namolaru@inria.fr>
22970
22971 PR tree-optimization/58028
22972 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
22973 scalar dimensions.
22974
22975 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22976
22977 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
22978 not handled by recognizers.
22979
22980 2014-03-03 Jakub Jelinek <jakub@redhat.com>
22981
22982 PR middle-end/60175
22983 * function.c (expand_function_end): Don't emit
22984 clobber_return_register sequence if clobber_after is a BARRIER.
22985 * cfgexpand.c (construct_exit_block): Append instructions before
22986 return_label to prev_bb.
22987
22988 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22989
22990 * config/rs6000/constraints.md: Document reserved use of "wc".
22991
22992 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22993
22994 PR ipa/60150
22995 * ipa.c (function_and_variable_visibility): When dissolving comdat
22996 group, also set all symbols to local.
22997
22998 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22999
23000 PR ipa/60306
23001
23002 Revert:
23003 2013-12-14 Jan Hubicka <jh@suse.cz>
23004 PR middle-end/58477
23005 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
23006
23007 2014-03-02 Jon Beniston <jon@beniston.com>
23008
23009 PR bootstrap/48230
23010 PR bootstrap/50927
23011 PR bootstrap/52466
23012 PR target/46898
23013 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
23014 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
23015 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
23016 (simple_return, *simple_return): New patterns
23017 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
23018 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
23019
23020 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
23021
23022 * dwarf2out.c (gen_subprogram_die): Tidy.
23023
23024 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
23025
23026 PR target/60071
23027 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
23028 (*mov_t_msb_neg_negc): ... this new insn.
23029
23030 2014-02-28 Jason Merrill <jason@redhat.com>
23031
23032 PR c++/58678
23033 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
23034 function.
23035
23036 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
23037
23038 PR c++/60314
23039 * dwarf2out.c (decltype_auto_die): New static.
23040 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
23041 (gen_type_die_with_usage): Handle 'decltype(auto)'.
23042 (is_cxx_auto): Likewise.
23043
23044 2014-02-28 Ian Bolton <ian.bolton@arm.com>
23045
23046 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
23047 we are not using general regs only.
23048
23049 2014-02-28 Richard Biener <rguenther@suse.de>
23050
23051 PR target/60280
23052 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
23053 previous fix and only allow to remove trivial pre-headers
23054 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
23055 (remove_forwarder_block): Properly update the latch of a loop.
23056
23057 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
23058
23059 PR debug/59992
23060 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
23061 (cselib_preserved_hash_table): New.
23062 (preserve_constants_and_equivs): Move preserved vals to it.
23063 (cselib_find_slot): Look it up first.
23064 (cselib_init): Initialize it.
23065 (cselib_finish): Release it.
23066 (dump_cselib_table): Dump it.
23067
23068 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
23069
23070 PR debug/59992
23071 * cselib.c (remove_useless_values): Skip to avoid quadratic
23072 behavior if the condition moved from...
23073 (cselib_process_insn): ... here holds.
23074
23075 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
23076
23077 PR debug/57232
23078 * var-tracking.c (vt_initialize): Apply the same condition to
23079 preserve the CFA base value.
23080
23081 2014-02-28 Joey Ye <joey.ye@arm.com>
23082
23083 PR target/PR60169
23084 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
23085 if reload in progress or completed.
23086
23087 2014-02-28 Tobias Burnus <burnus@net-b.de>
23088
23089 PR middle-end/60147
23090 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
23091 NAMELIST_DECL.
23092
23093 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
23094
23095 * doc/tm.texi.in (Condition Code Status): Update documention for
23096 relative locations of cc0-setter and cc0-user.
23097
23098 2014-02-27 Jeff Law <law@redhat.com>
23099
23100 PR rtl-optimization/52714
23101 * combine.c (try_combine): When splitting an unrecognized PARALLEL
23102 into two independent simple sets, if I3 is a jump, ensure the
23103 pattern we place into I3 is a (set (pc) ...).
23104
23105 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
23106 Jeff Law <law@redhat.com>
23107
23108 PR rtl-optimization/49847
23109 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
23110 are in different blocks.
23111 * doc/tm.texi (Condition Code Status): Update documention for
23112 relative locations of cc0-setter and cc0-user.
23113
23114 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
23115
23116 PR target/59222
23117 * lra.c (lra_emit_add): Check SUBREG too.
23118
23119 2014-02-27 Andreas Schwab <schwab@suse.de>
23120
23121 * config/m68k/m68k.c (m68k_option_override): Disable
23122 -flive-range-shrinkage for classic m68k.
23123 (m68k_override_options_after_change): Likewise.
23124
23125 2014-02-27 Marek Polacek <polacek@redhat.com>
23126
23127 PR middle-end/59223
23128 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
23129 -Wmaybe-uninitialized.
23130
23131 2014-02-27 Alan Modra <amodra@gmail.com>
23132
23133 PR target/57936
23134 * reload1.c (emit_input_reload_insns): When reload_override_in,
23135 set old to rl->in_reg when rl->in_reg is a subreg.
23136
23137 2014-02-26 Richard Biener <rguenther@suse.de>
23138
23139 PR bootstrap/60343
23140 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
23141
23142 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
23143
23144 * common/config/i386/predicates.md (const1256_operand): Remove.
23145 (const2356_operand): New.
23146 (const_1_to_2_operand): Remove.
23147 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23148 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23149 (*avx512pf_gatherpf<mode>sf): Ditto.
23150 (avx512pf_gatherpf<mode>df): Ditto.
23151 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23152 (*avx512pf_gatherpf<mode>df): Ditto.
23153 (avx512pf_scatterpf<mode>sf): Ditto.
23154 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23155 (*avx512pf_scatterpf<mode>sf): Ditto.
23156 (avx512pf_scatterpf<mode>df): Ditto.
23157 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23158 (*avx512pf_scatterpf<mode>df): Ditto.
23159 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
23160
23161 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
23162
23163 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
23164 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
23165 (_mm512_mask_testn_epi64_mask): Move to ...
23166 * config/i386/avx512cdintrin.h: Here.
23167 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
23168 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
23169 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
23170 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
23171 TARGET_AVX512F from TARGET_AVX512CD.
23172
23173 2014-02-26 Richard Biener <rguenther@suse.de>
23174
23175 PR ipa/60327
23176 * ipa.c (walk_polymorphic_call_targets): Properly guard
23177 call to inline_update_overall_summary.
23178
23179 2014-02-26 Bin Cheng <bin.cheng@arm.com>
23180
23181 PR target/60280
23182 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
23183 and latches only if requested. Fix latch if it is removed.
23184 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
23185 LOOPS_HAVE_PREHEADERS.
23186
23187 2014-02-25 Andrew Pinski <apinski@cavium.com>
23188
23189 * builtins.c (expand_builtin_thread_pointer): Create a new target
23190 when the target is NULL.
23191
23192 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
23193
23194 PR rtl-optimization/60317
23195 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
23196 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
23197 * lra-assigns.c: Include params.h.
23198 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
23199 other reload pseudos considerations.
23200
23201 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23202
23203 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
23204 to use canonical form for nor<mode>3.
23205
23206 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23207
23208 PR target/55426
23209 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
23210 conversions.
23211
23212 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
23213
23214 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
23215 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
23216 (ix86_handle_option): Handle OPT_mprefetchwt1.
23217 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
23218 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23219 PREFETCHWT1 CPUID.
23220 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
23221 OPTION_MASK_ISA_PREFETCHWT1.
23222 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
23223 (PTA_PREFETCHWT1): New.
23224 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
23225 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
23226 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
23227 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
23228 (*prefetch_avx512pf_<mode>_: Change into ...
23229 (*prefetch_prefetchwt1_<mode>: This.
23230 * config/i386/i386.opt (mprefetchwt1): New.
23231 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
23232 (_mm_prefetch): Handle intent to write.
23233 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
23234
23235 2014-02-25 Richard Biener <rguenther@suse.de>
23236
23237 PR middle-end/60291
23238 * emit-rtl.c (mem_attrs_htab): Remove.
23239 (mem_attrs_htab_hash): Likewise.
23240 (mem_attrs_htab_eq): Likewise.
23241 (set_mem_attrs): Always allocate new mem-attrs when something changed.
23242 (init_emit_once): Do not allocate mem_attrs_htab.
23243
23244 2014-02-25 Richard Biener <rguenther@suse.de>
23245
23246 PR lto/60319
23247 * lto-opts.c (lto_write_options): Output non-explicit conservative
23248 -fwrapv, -fno-trapv and -fno-strict-overflow.
23249 * lto-wrapper.c (merge_and_complain): Handle merging those options.
23250 (run_gcc): And pass them through.
23251
23252 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
23253
23254 * sel-sched.c (calculate_new_fences): New parameter ptime.
23255 Calculate it as a maximum over all fence cycles.
23256 (sel_sched_region_2): Adjust the call to calculate_new_fences.
23257 Print the final schedule timing when sched_verbose.
23258
23259 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
23260
23261 PR rtl-optimization/60292
23262 * sel-sched.c (fill_vec_av_set): Do not reset target availability
23263 bit fot the fence instruction.
23264
23265 2014-02-24 Alangi Derick <alangiderick@gmail.com>
23266
23267 * calls.h: Fix typo in comment.
23268
23269 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
23270
23271 * config/pa/pa.c (pa_output_move_double): Don't valididate when
23272 adjusting offsetable addresses.
23273
23274 2014-02-24 Guozhi Wei <carrot@google.com>
23275
23276 * sparseset.h (sparseset_pop): Fix the wrong index.
23277
23278 2014-02-24 Walter Lee <walt@tilera.com>
23279
23280 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
23281 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
23282 triplet.
23283 * common/config/tilegx/tilegx-common.c
23284 (TARGET_DEFAULT_TARGET_FLAGS): Define.
23285 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
23286 (LINK_SPEC): Ditto.
23287 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
23288 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
23289 (tilegx_gimplify_va_arg_expr): Handle big endian.
23290 (tilegx_expand_unaligned_load): Ditto.
23291 (tilegx_expand_unaligned_store): Ditto.
23292 (TARGET_RETURN_IN_MSB): New.
23293 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
23294 (TARGET_ENDIAN_DEFAULT): New.
23295 (TARGET_BIG_ENDIAN): Handle big endian.
23296 (BYTES_BIG_ENDIAN): Ditto.
23297 (WORDS_BIG_ENDIAN): Ditto.
23298 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
23299 (ENDIAN_SPEC): New.
23300 (EXTRA_SPECS): New.
23301 * config/tilegx/tilegx.md (extv): Handle big endian.
23302 (extzv): Ditto.
23303 (insn_st<n>): Ditto.
23304 (insn_st<n>_add<bitsuffix>): Ditto.
23305 (insn_stnt<n>): Ditto.
23306 (insn_stnt<n>_add<bitsuffix>):Ditto.
23307 (vec_interleave_highv8qi): Handle big endian.
23308 (vec_interleave_highv8qi_be): New.
23309 (vec_interleave_highv8qi_le): New.
23310 (insn_v1int_h): Handle big endian.
23311 (vec_interleave_lowv8qi): Handle big endian.
23312 (vec_interleave_lowv8qi_be): New.
23313 (vec_interleave_lowv8qi_le): New.
23314 (insn_v1int_l): Handle big endian.
23315 (vec_interleave_highv4hi): Handle big endian.
23316 (vec_interleave_highv4hi_be): New.
23317 (vec_interleave_highv4hi_le): New.
23318 (insn_v2int_h): Handle big endian.
23319 (vec_interleave_lowv4hi): Handle big endian.
23320 (vec_interleave_lowv4hi_be): New.
23321 (vec_interleave_lowv4hi_le): New.
23322 (insn_v2int_l): Handle big endian.
23323 (vec_interleave_highv2si): Handle big endian.
23324 (vec_interleave_highv2si_be): New.
23325 (vec_interleave_highv2si_le): New.
23326 (insn_v4int_h): Handle big endian.
23327 (vec_interleave_lowv2si): Handle big endian.
23328 (vec_interleave_lowv2si_be): New.
23329 (vec_interleave_lowv2si_le): New.
23330 (insn_v4int_l): Handle big endian.
23331 * config/tilegx/tilegx.opt (mbig-endian): New option.
23332 (mlittle-endian): New option.
23333 * doc/install.texi: Document tilegxbe-linux.
23334 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
23335
23336 2014-02-24 Martin Jambor <mjambor@suse.cz>
23337
23338 PR ipa/60266
23339 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
23340 there are no parameter descriptors.
23341
23342 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
23343
23344 PR rtl-optimization/60268
23345 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
23346 initialization to ...
23347 (sched_rgn_init): ... here.
23348 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
23349
23350 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23351
23352 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
23353 names.
23354
23355 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
23356
23357 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
23358 definition.
23359
23360 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23361
23362 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
23363 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
23364
23365 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23366
23367 * config/microblaze/predicates.md: Add cmp_op predicate.
23368 * config/microblaze/microblaze.md: Add branch_compare instruction
23369 which uses cmp_op predicate and emits cmp insn before branch.
23370 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
23371 to microblaze_expand_conditional_branch and consolidate logic.
23372 (microblaze_expand_conditional_branch): emit branch_compare
23373 insn instead of handling cmp op separate from branch insn.
23374
23375 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23376
23377 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
23378 to permit subregs.
23379
23380 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23381
23382 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
23383 define_insn with define_expand and new define_insn
23384 *altivec_lve<VI_char>x_internal.
23385 (altivec_stve<VI_char>x): Replace define_insn with define_expand
23386 and new define_insn *altivec_stve<VI_char>x_internal.
23387 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
23388 prototype.
23389 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
23390 lve*x built-ins.
23391 (altivec_expand_stvex_be): New function.
23392
23393 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
23394
23395 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
23396 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
23397 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
23398 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
23399
23400 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
23401
23402 PR target/60298
23403 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
23404 instead of emit_move_insn.
23405
23406 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23407
23408 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
23409 vspltw with vsldoi.
23410 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
23411 gen_altivec_vsumsws.
23412
23413 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23414
23415 * config/rs6000/altivec.md (altivec_lvxl): Rename as
23416 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
23417 (altivec_lvxl_<mode>): New define_expand incorporating
23418 -maltivec=be semantics where needed.
23419 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
23420 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
23421 semantics where needed.
23422 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
23423 (altivec_stvx_<mode>): New define_expand incorporating
23424 -maltivec=be semantics where needed.
23425 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
23426 VM2 iterator instead of V4SI.
23427 (altivec_stvxl_<mode>): New define_expand incorporating
23428 -maltivec=be semantics where needed.
23429 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
23430 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
23431 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
23432 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
23433 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
23434 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
23435 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
23436 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
23437 ALTIVEC_BUILTIN_STVXL.
23438 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
23439 (altivec_expand_stvx_be): Likewise.
23440 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
23441 (altivec_expand_lvx_be): Likewise.
23442 (altivec_expand_stvx_be): Likewise.
23443 (altivec_expand_builtin): Add cases for
23444 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
23445 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
23446 (altivec_init_builtins): Add definitions for
23447 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
23448 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
23449
23450 2014-02-21 Catherine Moore <clm@codesourcery.com>
23451
23452 * doc/invoke.texi (mvirt, mno-virt): Document.
23453 * config/mips/mips.opt (mvirt): New option.
23454 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
23455
23456 2014-02-21 Richard Biener <rguenther@suse.de>
23457
23458 PR tree-optimization/60276
23459 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
23460 (STMT_VINFO_MIN_NEG_DIST): New macro.
23461 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
23462 STMT_VINFO_MIN_NEG_DIST.
23463 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
23464 made for negative dependence distances still hold.
23465
23466 2014-02-21 Richard Biener <rguenther@suse.de>
23467
23468 PR middle-end/60291
23469 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
23470 DECL_INITIAL for globals not in the current function context.
23471
23472 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23473
23474 PR tree-optimization/56490
23475 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
23476 * tree-ssa-uninit.c: Include params.h.
23477 (compute_control_dep_chain): Add num_calls argument, return false
23478 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
23479 num_calls to recursive call.
23480 (find_predicates): Change dep_chain into normal array,
23481 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
23482 variable and adjust compute_control_dep_chain caller.
23483 (find_def_preds): Likewise.
23484
23485 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
23486
23487 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
23488 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
23489
23490 2014-02-21 Nick Clifton <nickc@redhat.com>
23491
23492 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
23493 (pushhi1): Likewise.
23494 (popqi1): Add mode to pre_dec.
23495 (pophi1): Likewise.
23496
23497 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23498
23499 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
23500 mode for mask of V8SFmode permutation.
23501
23502 2014-02-20 Richard Henderson <rth@redhat.com>
23503
23504 PR c++/60272
23505 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
23506 a new pseudo for OLDVAL.
23507
23508 2014-02-20 Jakub Jelinek <jakub@redhat.com>
23509
23510 PR target/57896
23511 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
23512 gen_reg_rtx if d->testing_p.
23513 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
23514 if d->testing_p and we will certainly return true.
23515 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
23516 if d->testing_p.
23517
23518 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
23519
23520 * emit-rtl.c (gen_reg_rtx): Assert that
23521 crtl->emit.regno_pointer_align_length is non-zero.
23522
23523 2014-02-20 Richard Henderson <rth@redhat.com>
23524
23525 PR c++/60272
23526 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
23527 on failure the store back into EXPECT.
23528
23529 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
23530 Sandra Loosemore <sandra@codesourcery.com>
23531
23532 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
23533 * config/nios2/nios2.c (nios2_function_profiler): Add
23534 -fPIC (flag_pic == 2) support.
23535 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
23536 (nios2_large_offset_p): New function.
23537 (nios2_unspec_reloc_p): Move up position, update to use
23538 nios2_large_offset_p.
23539 (nios2_unspec_address): Remove function.
23540 (nios2_unspec_offset): New function.
23541 (nios2_large_got_address): New function.
23542 (nios2_got_address): Add large offset support.
23543 (nios2_legitimize_tls_address): Update usage of removed and new
23544 functions.
23545 (nios2_symbol_binds_local_p): New function.
23546 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
23547 (nios2_legitimize_address): Update to use nios2_large_offset_p.
23548 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
23549 (nios2_print_operand): Merge H/L processing, add hiadj/lo
23550 processing for (const (unspec ...)).
23551 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
23552
23553 2014-02-20 Richard Biener <rguenther@suse.de>
23554
23555 * tree-cfg.c (replace_uses_by): Mark altered BBs before
23556 doing the substitution.
23557 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
23558
23559 2014-02-20 Martin Jambor <mjambor@suse.cz>
23560
23561 PR ipa/55260
23562 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
23563 info when checking whether lattices are bottom.
23564
23565 2014-02-20 Richard Biener <rguenther@suse.de>
23566
23567 PR middle-end/60221
23568 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
23569 regions at -O0.
23570
23571 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
23572
23573 PR ipa/58555
23574 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
23575 parameter specifying the scaling.
23576 (inline_call): Update.
23577 (want_inline_recursively): Guard division by zero.
23578 (recursive_inlining): Update.
23579 * ipa-inline.h (clone_inlined_nodes): Update.
23580
23581 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23582
23583 PR target/60204
23584 * config/i386/i386.c (classify_argument): Pass structures of size
23585 64 bytes or less in register.
23586
23587 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23588 Kirill Yukhin <kirill.yukhin@intel.com>
23589
23590 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
23591 (_mm_rcp28_round_ss): Ditto.
23592 (_mm_rsqrt28_round_sd): Ditto.
23593 (_mm_rsqrt28_round_ss): Ditto.
23594 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
23595 (_mm_rcp14_round_ss): Ditto.
23596 (_mm_rsqrt14_round_sd): Ditto.
23597 (_mm_rsqrt14_round_ss): Ditto.
23598 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
23599 the first input operand, get rid of match_dup.
23600 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
23601 attribute to sse.
23602 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
23603 Ditto.
23604 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
23605 operand as the first input operand, set type attribute.
23606 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
23607 Set type attribute.
23608 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
23609 operand as the first input operand, set type attribute.
23610
23611 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23612
23613 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
23614 bit of zero.
23615
23616 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
23617
23618 PR target/60207
23619 * config/i386/i386.c (construct_container): Remove TFmode check
23620 for X86_64_INTEGER_CLASS.
23621
23622 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
23623
23624 PR target/59794
23625 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
23626 only when -Wpsabi is enabled.
23627
23628 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
23629
23630 PR target/59799
23631 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
23632 passing arrays in registers are the same as for structs, so remove the
23633 special case for them.
23634
23635 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
23636
23637 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
23638 destination type, extract only the valid bits if the source type is not
23639 integral and has a different mode.
23640
23641 2014-02-19 Richard Biener <rguenther@suse.de>
23642
23643 PR ipa/60243
23644 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
23645 for all calls.
23646
23647 2014-02-19 Richard Biener <rguenther@suse.de>
23648
23649 PR ipa/60243
23650 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
23651 (ipa_modify_call_arguments): Emit an argument load explicitely and
23652 preserve virtual SSA form there and for the replacement call.
23653 Do not update SSA form nor free dominance info.
23654
23655 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23656
23657 * ipa.c (function_and_variable_visibility): Also clear WEAK
23658 flag when disolving COMDAT_GROUP.
23659
23660 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23661
23662 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
23663 * ipa-prop.c (ipa_set_jf_known_type): Return early when
23664 not devirtualizing.
23665 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
23666 do more sanity checks.
23667 (detect_type_change): Return true when giving up early.
23668 (compute_complex_assign_jump_func): Fix type parameter of
23669 ipa_set_ancestor_jf.
23670 (compute_complex_ancestor_jump_func): Likewise.
23671 (update_jump_functions_after_inlining): Fix updating of
23672 ancestor function.
23673 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
23674
23675 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23676
23677 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
23678 inline clones when edge disappears.
23679
23680 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23681
23682 PR target/60203
23683 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
23684 Split 64-bit moves into 2 patterns. Do not allow the use of
23685 direct move for TDmode in little endian, since the decimal value
23686 has little endian bytes within a word, but the 64-bit pieces are
23687 ordered in a big endian fashion, and normal subreg's of TDmode are
23688 not allowed.
23689 (mov<mode>_64bit_dm): Likewise.
23690 (movtd_64bit_nodm): Likewise.
23691
23692 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23693
23694 PR tree-optimization/60174
23695 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
23696 statement of an SSA_NAME that occurs in an abnormal PHI node.
23697
23698 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23699
23700 PR sanitizer/60142
23701 * final.c (SEEN_BB): Remove.
23702 (SEEN_NOTE, SEEN_EMITTED): Renumber.
23703 (final_scan_insn): Don't force_source_line on second
23704 NOTE_INSN_BASIC_BLOCK.
23705
23706 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
23707
23708 PR target/60205
23709 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
23710 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
23711 (type_natural_mode): Warn ABI change when %zmm register is not
23712 available for AVX512F vector value passing.
23713
23714 2014-02-18 Kai Tietz <ktietz@redhat.com>
23715
23716 PR target/60193
23717 * config/i386/i386.c (ix86_expand_prologue): Use value in
23718 rax register as displacement when restoring %r10 or %rax.
23719 Fix wrong offset when restoring both registers.
23720
23721 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23722
23723 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
23724 assertion with conditional return.
23725
23726 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23727 Uros Bizjak <ubizjak@gmail.com>
23728
23729 PR driver/60233
23730 * config/i386/driver-i386.c (host_detect_local_cpu): If
23731 YMM state is not saved by the OS, also clear has_f16c. Move
23732 CPUID 0x80000001 handling before YMM state saving checking.
23733
23734 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
23735
23736 PR rtl-optimization/58960
23737 * haifa-sched.c (alloc_global_sched_pressure_data): New,
23738 factored out from ...
23739 (sched_init): ... here.
23740 (free_global_sched_pressure_data): New, factored out from ...
23741 (sched_finish): ... here.
23742 * sched-int.h (free_global_sched_pressure_data): Declare.
23743 * sched-rgn.c (nr_regions_initial): New static global.
23744 (haifa_find_rgns): Initialize it.
23745 (schedule_region): Disable sched-pressure for the newly
23746 generated regions.
23747
23748 2014-02-17 Richard Biener <rguenther@suse.de>
23749
23750 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
23751 release SSA defs of pattern stmts.
23752
23753 2014-02-17 Richard Biener <rguenther@suse.de>
23754
23755 * tree-inline.c (expand_call_inline): Release the virtual
23756 operand defined by the call we are about to inline.
23757
23758 2014-02-17 Richard Biener <rguenther@suse.de>
23759
23760 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
23761
23762 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
23763 Ilya Tocar <ilya.tocar@intel.com>
23764
23765 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
23766 arguments order in builtin.
23767 (_mm512_permutexvar_epi64): Ditto.
23768 (_mm512_mask_permutexvar_epi64): Ditto
23769 (_mm512_maskz_permutexvar_epi32): Ditto
23770 (_mm512_permutexvar_epi32): Ditto
23771 (_mm512_mask_permutexvar_epi32): Ditto
23772
23773 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23774
23775 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
23776 (p8_vmrgow): Likewise.
23777
23778 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23779
23780 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
23781 endian targets.
23782
23783 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
23784
23785 PR target/60203
23786 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
23787 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
23788 into 64-bit and 32-bit moves. On 64-bit moves, add support for
23789 using direct move instructions on ISA 2.07. Also adjust
23790 instruction length for 64-bit.
23791 (mov<mode>_64bit, TFmode/TDmode): Likewise.
23792 (mov<mode>_32bit, TFmode/TDmode): Likewise.
23793
23794 2014-02-15 Alan Modra <amodra@gmail.com>
23795
23796 PR target/58675
23797 PR target/57935
23798 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
23799 find_replacement on parts of insn rtl that might be reloaded.
23800
23801 2014-02-15 Richard Biener <rguenther@suse.de>
23802
23803 PR tree-optimization/60183
23804 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
23805 (tree_ssa_phiprop): Calculate and free post-dominators.
23806
23807 2014-02-14 Jeff Law <law@redhat.com>
23808
23809 PR rtl-optimization/60131
23810 * ree.c (get_extended_src_reg): New function.
23811 (combine_reaching_defs): Use it rather than assuming location of REG.
23812 (find_and_remove_re): Verify first operand of extension is
23813 a REG before adding the insns to the copy list.
23814
23815 2014-02-14 Roland McGrath <mcgrathr@google.com>
23816
23817 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
23818 * configure: Regenerated.
23819 * config.in: Regenerated.
23820 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
23821 instead of ASM_SHORT.
23822
23823 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
23824 Richard Earnshaw <rearnsha@arm.com>
23825
23826 PR rtl-optimization/59535
23827 * lra-constraints.c (process_alt_operands): Encourage alternative
23828 when unassigned pseudo class is superset of the alternative class.
23829 (inherit_reload_reg): Don't inherit when optimizing for code size.
23830 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
23831 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
23832 modes not less than 4 for Thumb1.
23833
23834 2014-02-14 Kyle McMartin <kyle@redhat.com>
23835
23836 PR pch/60010
23837 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
23838
23839 2014-02-14 Richard Biener <rguenther@suse.de>
23840
23841 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
23842 (get_frame_arg): Drop the assert with langhook types_compatible_p.
23843 Do not strip INDIRECT_REFs.
23844
23845 2014-02-14 Richard Biener <rguenther@suse.de>
23846
23847 PR lto/60179
23848 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
23849 DECL_FUNCTION_SPECIFIC_TARGET.
23850 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
23851 * tree-streamer-out.c (pack_ts_target_option): Remove.
23852 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
23853 (write_ts_function_decl_tree_pointers): Do not stream
23854 DECL_FUNCTION_SPECIFIC_TARGET.
23855 * tree-streamer-in.c (unpack_ts_target_option): Remove.
23856 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
23857 (lto_input_ts_function_decl_tree_pointers): Do not stream
23858 DECL_FUNCTION_SPECIFIC_TARGET.
23859
23860 2014-02-14 Jakub Jelinek <jakub@redhat.com>
23861
23862 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
23863 (get_initial_def_for_induction, vectorizable_induction): Ignore
23864 debug stmts when looking for exit_phi.
23865 (vectorizable_live_operation): Fix up condition.
23866
23867 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23868
23869 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
23870 nreverse() because it changes the content of original tree list.
23871
23872 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23873
23874 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
23875 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
23876
23877 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23878
23879 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
23880 GNU coding standards.
23881
23882 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23883
23884 PR debug/60152
23885 * dwarf2out.c (gen_subprogram_die): Don't call
23886 add_calling_convention_attribute if subr_die is old_die.
23887
23888 2014-02-13 Sharad Singhai <singhai@google.com>
23889
23890 * doc/optinfo.texi: Fix order of nodes.
23891
23892 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
23893
23894 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
23895 operands[2], not operands[3].
23896
23897 2014-02-13 Richard Biener <rguenther@suse.de>
23898
23899 PR bootstrap/59878
23900 * doc/install.texi (ISL): Update recommended version to 0.12.2,
23901 mention the possibility of an in-tree build.
23902 (CLooG): Update recommended version to 0.18.1, mention the
23903 possibility of an in-tree build and clarify that the ISL
23904 bundled with CLooG does not work.
23905
23906 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23907
23908 PR target/43546
23909 * expr.c (compress_float_constant): If x is a hard register,
23910 extend into a pseudo and then move to x.
23911
23912 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
23913
23914 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
23915 caused by bad second argument to warning_at() with -mhotpatch and
23916 nested functions (e.g. with gfortran).
23917
23918 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
23919
23920 * opts.c (option_name): Remove "enabled by default" rider.
23921
23922 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
23923
23924 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
23925
23926 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
23927 Uros Bizjak <ubizjak@gmail.com>
23928
23929 PR target/60151
23930 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
23931 * configure: Regenerated.
23932
23933 2014-02-12 Richard Biener <rguenther@suse.de>
23934
23935 * vec.c (vec_prefix::calculate_allocation): Move as
23936 inline variant to vec.h.
23937 (vec_prefix::calculate_allocation_1): New out-of-line version.
23938 * vec.h (vec_prefix::calculate_allocation_1): Declare.
23939 (vec_prefix::m_has_auto_buf): Rename to ...
23940 (vec_prefix::m_using_auto_storage): ... this.
23941 (vec_prefix::calculate_allocation): Inline the easy cases
23942 and dispatch to calculate_allocation_1 which doesn't need the
23943 prefix address.
23944 (va_heap::reserve): Use gcc_checking_assert.
23945 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
23946 m_using_auto_storage.
23947 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
23948 member and adjust.
23949 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
23950 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
23951 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
23952
23953 2014-02-12 Richard Biener <rguenther@suse.de>
23954
23955 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
23956 when we found a dependence.
23957
23958 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
23959
23960 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
23961 common code...
23962 (maybe_fold_stmt): ... into this new function.
23963 * omp-low.c (lower_omp): Update comment.
23964
23965 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
23966 last use.
23967
23968 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
23969 dereference.
23970
23971 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
23972
23973 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
23974 identifiers in comments.
23975 (cortexa53_extra_costs): Likewise.
23976 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
23977 (cortexa7_extra_costs): Likewise.
23978 (cortexa12_extra_costs): Likewise.
23979 (cortexa15_extra_costs): Likewise.
23980 (v7m_extra_costs): Likewise.
23981
23982 2014-02-12 Richard Biener <rguenther@suse.de>
23983
23984 PR middle-end/60092
23985 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
23986 of posix_memalign being successful.
23987 (lower_stmt): Restrict lowering of posix_memalign to when
23988 -ftree-bit-ccp is enabled.
23989
23990 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23991
23992 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
23993 arg_loc.
23994 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23995
23996 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
23997
23998 PR rtl-optimization/60116
23999 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
24000 other_insn once the combination has been validated.
24001
24002 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
24003
24004 PR lto/59468
24005 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
24006 and wrapper.
24007 * ipa-devirt.c: Include demangle.h
24008 (odr_violation_reported): New static variable.
24009 (add_type_duplicate): Update odr_violations.
24010 (maybe_record_node): Add completep parameter; update it.
24011 (record_target_from_binfo): Add COMPLETEP parameter;
24012 update it as needed.
24013 (possible_polymorphic_call_targets_1): Likewise.
24014 (struct polymorphic_call_target_d): Add nonconstruction_targets;
24015 rename FINAL to COMPLETE.
24016 (record_targets_from_bases): Sanity check we found the binfo;
24017 fix COMPLETEP updating.
24018 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
24019 parameter, fix computing of COMPLETEP.
24020 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
24021 at LTO time do demangling.
24022 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
24023 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
24024 parameter.
24025 (gimple_get_virt_method_for_binfo): Likewise.
24026 * gimple-fold.h (gimple_get_virt_method_for_binfo,
24027 gimple_get_virt_method_for_vtable): Update prototypes.
24028
24029 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
24030
24031 PR target/49008
24032 * genautomata.c (add_presence_absence): Fix typo with
24033 {final_}presence_list.
24034
24035 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
24036
24037 PR target/60137
24038 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
24039 for VSX/Altivec vectors that land in GPR registers.
24040
24041 2014-02-11 Richard Henderson <rth@redhat.com>
24042 Jakub Jelinek <jakub@redhat.com>
24043
24044 PR debug/59776
24045 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
24046 around drhs if type conversion to lacc->type is not useless.
24047
24048 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24049
24050 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
24051 tuning struct.
24052 (cortex-a57.cortex-a53): Likewise.
24053 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
24054
24055 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24056
24057 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
24058 arm_restrict_it.
24059
24060 2014-02-11 Renlin Li <Renlin.Li@arm.com>
24061
24062 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
24063 add_options_for_arm_vfp3.
24064
24065 2014-02-11 Jeff Law <law@redhat.com>
24066
24067 PR middle-end/54041
24068 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
24069 object with an undesirable mode.
24070
24071 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24072
24073 PR libgomp/60107
24074 * config/i386/sol2-9.h: New file.
24075 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
24076 *-*-solaris2.9*): Use it.
24077
24078 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
24079
24080 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
24081 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
24082
24083 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
24084
24085 * config/microblaze/microblaze.c: Extend mcpu version format
24086
24087 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
24088
24089 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
24090
24091 2014-02-10 Richard Henderson <rth@redhat.com>
24092
24093 PR target/59927
24094 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
24095 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
24096 ms-abi vs -mno-accumulate-outgoing-args.
24097 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
24098 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
24099 respect to ms-abi.
24100
24101 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
24102
24103 PR middle-end/60080
24104 * cfgexpand.c (expand_asm_operands): Attach source location to
24105 ASM_INPUT rtx objects.
24106 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
24107
24108 2014-02-10 Nick Clifton <nickc@redhat.com>
24109
24110 * config/mn10300/mn10300.c (popcount): New function.
24111 (mn10300_expand_prologue): Include saved registers in stack usage
24112 count.
24113
24114 2014-02-10 Jeff Law <law@redhat.com>
24115
24116 PR middle-end/52306
24117 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
24118 when changing the SET_DEST of a prior insn to avoid an input reload.
24119
24120 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24121
24122 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
24123 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
24124 -mcall-openbsd, or -mcall-linux.
24125 (CC1_ENDIAN_BIG_SPEC): Remove.
24126 (CC1_ENDIAN_LITTLE_SPEC): Remove.
24127 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
24128 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
24129 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
24130 and %cc1_endian_default.
24131 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
24132
24133 2014-02-10 Richard Biener <rguenther@suse.de>
24134
24135 PR tree-optimization/60115
24136 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
24137 MEM_REF handling. Properly verify that the accesses are not
24138 out of the objects bound.
24139
24140 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24141
24142 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
24143 coretex to cortex.
24144
24145 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
24146
24147 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
24148 proper constants and fix formatting.
24149 (possible_polymorphic_call_targets): Fix formatting.
24150
24151 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
24152 Ilya Tocar <ilya.tocar@intel.com>
24153
24154 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
24155 (_mm512_loadu_epi32): Renamed into...
24156 (_mm512_loadu_si512): This.
24157 (_mm512_storeu_epi32): Renamed into...
24158 (_mm512_storeu_si512): This.
24159 (_mm512_maskz_ceil_ps): Removed.
24160 (_mm512_maskz_ceil_pd): Ditto.
24161 (_mm512_maskz_floor_ps): Ditto.
24162 (_mm512_maskz_floor_pd): Ditto.
24163 (_mm512_floor_round_ps): Ditto.
24164 (_mm512_floor_round_pd): Ditto.
24165 (_mm512_ceil_round_ps): Ditto.
24166 (_mm512_ceil_round_pd): Ditto.
24167 (_mm512_mask_floor_round_ps): Ditto.
24168 (_mm512_mask_floor_round_pd): Ditto.
24169 (_mm512_mask_ceil_round_ps): Ditto.
24170 (_mm512_mask_ceil_round_pd): Ditto.
24171 (_mm512_maskz_floor_round_ps): Ditto.
24172 (_mm512_maskz_floor_round_pd): Ditto.
24173 (_mm512_maskz_ceil_round_ps): Ditto.
24174 (_mm512_maskz_ceil_round_pd): Ditto.
24175 (_mm512_expand_pd): Ditto.
24176 (_mm512_expand_ps): Ditto.
24177 * config/i386/i386.c (ix86_builtins): Remove
24178 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
24179 (bdesc_args): Ditto.
24180 * config/i386/predicates.md (const1256_operand): New.
24181 (const_1_to_2_operand): Ditto.
24182 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
24183 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24184 (*avx512pf_gatherpf<mode>sf): Ditto.
24185 (avx512pf_gatherpf<mode>df): Ditto.
24186 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24187 (*avx512pf_gatherpf<mode>df): Ditto.
24188 (avx512pf_scatterpf<mode>sf): Ditto.
24189 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24190 (*avx512pf_scatterpf<mode>sf): Ditto.
24191 (avx512pf_scatterpf<mode>df): Ditto.
24192 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24193 (*avx512pf_scatterpf<mode>df): Ditto.
24194 (avx512f_expand<mode>): Removed.
24195 (<shift_insn><mode>3<mask_name>): Change predicate type.
24196
24197 2014-02-08 Jakub Jelinek <jakub@redhat.com>
24198
24199 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
24200 not at the end of datarefs vector use ordered_remove to avoid
24201 reordering datarefs vector.
24202
24203 PR c/59984
24204 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
24205 mark local addressable non-static vars as GOVD_PRIVATE
24206 instead of GOVD_LOCAL.
24207 * omp-low.c (lower_omp_for): Move gimple_bind_vars
24208 and BLOCK_VARS of gimple_bind_block to new_stmt rather
24209 than copying them.
24210
24211 PR middle-end/60092
24212 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
24213 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
24214 assume_aligned or alloc_align attributes.
24215 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
24216 arguments. Handle also assume_aligned and alloc_align attributes.
24217 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
24218 calls to functions with assume_aligned or alloc_align attributes.
24219 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
24220
24221 2014-02-08 Terry Guo <terry.guo@arm.com>
24222
24223 * doc/invoke.texi: Document ARM -march=armv7e-m.
24224
24225 2014-02-08 Jakub Jelinek <jakub@redhat.com>
24226
24227 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
24228 flag on __cilkrts_rethrow builtin.
24229
24230 PR ipa/60026
24231 * ipa-cp.c (determine_versionability): Fail at -O0
24232 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
24233 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
24234
24235 Revert:
24236 2014-02-04 Jakub Jelinek <jakub@redhat.com>
24237
24238 PR ipa/60026
24239 * tree-inline.c (copy_forbidden): Fail for
24240 __attribute__((optimize (0))) functions.
24241
24242 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
24243
24244 * varpool.c: Include pointer-set.h.
24245 (varpool_remove_unreferenced_decls): Variables in other partitions
24246 will not be output; be however careful to not lose information
24247 about partitioning.
24248
24249 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
24250
24251 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
24252 lookup in the vtable constructor.
24253
24254 2014-02-07 Jeff Law <law@redhat.com>
24255
24256 PR target/40977
24257 * config/m68k/m68k.md (ashldi_extsi): Turn into a
24258 define_insn_and_split.
24259
24260 * ipa-inline.c (inline_small_functions): Fix typos.
24261
24262 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24263
24264 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
24265 (s390_can_use_return_insn): Declare.
24266 * config/s390/s390.h (EPILOGUE_USES): Define.
24267 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
24268 instructions.
24269 (s390_chunkify_start): Handle return JUMP_LABELs.
24270 (s390_early_mach): Emit a main_pool instruction on the entry edge.
24271 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
24272 (s390_can_use_return_insn): New functions.
24273 (s390_fix_long_loop_prediction): Handle conditional returns.
24274 (TARGET_SET_UP_BY_PROLOGUE): Define.
24275 * config/s390/s390.md (ANY_RETURN): New code iterator.
24276 (*creturn, *csimple_return, return, simple_return): New patterns.
24277
24278 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24279
24280 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
24281 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
24282 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
24283 REG_CFA_RESTORE list when deciding not to restore a register.
24284
24285 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24286
24287 * config/s390/s390.c: Include tree-pass.h and context.h.
24288 (s390_early_mach): New function, split out from...
24289 (s390_emit_prologue): ...here.
24290 (pass_data_s390_early_mach): New pass structure.
24291 (pass_s390_early_mach): New class.
24292 (s390_option_override): Create and register early_mach pass.
24293 Move to end of file.
24294
24295 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24296
24297 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
24298 to match for the exit block.
24299
24300 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24301
24302 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
24303 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
24304 Reject misaligned operands.
24305
24306 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24307
24308 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
24309
24310 2014-02-07 Richard Biener <rguenther@suse.de>
24311
24312 PR middle-end/60092
24313 * gimple-low.c (lower_builtin_posix_memalign): New function.
24314 (lower_stmt): Call it to lower posix_memalign in a way
24315 to make alignment info accessible.
24316
24317 2014-02-07 Jakub Jelinek <jakub@redhat.com>
24318
24319 PR c++/60082
24320 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
24321 __builtin_setjmp_receiver.
24322
24323 2014-02-07 Richard Biener <rguenther@suse.de>
24324
24325 PR middle-end/60092
24326 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
24327 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
24328 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24329 Handle BUILT_IN_POSIX_MEMALIGN.
24330 (find_func_clobbers): Likewise.
24331 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
24332 (call_may_clobber_ref_p_1): Likewise.
24333
24334 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24335
24336 PR ipa/59918
24337 * ipa-devirt.c (record_target_from_binfo): Remove overactive
24338 sanity check.
24339
24340 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24341
24342 PR ipa/59469
24343 * lto-cgraph.c (lto_output_node): Use
24344 symtab_get_symbol_partitioning_class.
24345 (lto_output_varpool_node): likewise.
24346 (symtab_get_symbol_partitioning_class): Move here from
24347 lto/lto-partition.c
24348 * cgraph.h (symbol_partitioning_class): Likewise.
24349 (symtab_get_symbol_partitioning_class): Declare.
24350
24351 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24352
24353 * ggc.h (ggc_internal_cleared_alloc): New macro.
24354 * vec.h (vec_safe_copy): Handle memory stats.
24355 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
24356 * target-globals.c (save_target_globals): Likewise.
24357
24358 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24359
24360 PR target/60077
24361 * expr.c (emit_move_resolve_push): Export; be bit more selective
24362 on when to clear alias set.
24363 * expr.h (emit_move_resolve_push): Declare.
24364 * function.h (struct function): Add tail_call_marked.
24365 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
24366 * config/i386/i386-protos.h (ix86_expand_push): Remove.
24367 * config/i386/i386.md (TImode move expander): De not call
24368 ix86_expand_push.
24369 (FP push expanders): Preserve memory attributes.
24370 * config/i386/sse.md (push<mode>1): Remove.
24371 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
24372 (ix86_expand_push): Remove.
24373 * config/i386/mmx.md (push<mode>1): Remove.
24374
24375 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24376
24377 PR rtl-optimization/60030
24378 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
24379 lopart with paradoxical subreg before shifting it up by hprec.
24380
24381 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24382
24383 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
24384 Remove extra newline at end of file.
24385 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
24386 (arm_issue_rate): Handle cortexa57.
24387 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
24388 (cortex-a57.cortex-a53): Likewise.
24389
24390 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24391
24392 PR target/59575
24393 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
24394 don't record in REG_FRAME_RELATED_EXPR registers not set in that
24395 bitmask.
24396 (arm_expand_prologue): Adjust all callers.
24397 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
24398 info, registers also at the lowest numbered registers side. Use
24399 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
24400 XEXP.
24401
24402 PR debug/59992
24403 * var-tracking.c (adjust_mems): Before adding a SET to
24404 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
24405
24406 2014-02-06 Alan Modra <amodra@gmail.com>
24407
24408 PR target/60032
24409 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
24410 change SDmode to DDmode when lra_in_progress.
24411
24412 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24413
24414 PR middle-end/59150
24415 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
24416 free_data_ref on the dr first, and before goto again also set dr
24417 to the next dr. For simd_lane_access, free old datarefs[i] before
24418 overwriting it. For get_vectype_for_scalar_type failure, don't
24419 free_data_ref if simd_lane_access.
24420
24421 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
24422
24423 PR target/60062
24424 * tree.h (opts_for_fn): New inline function.
24425 (opt_for_fn): Define.
24426 * config/i386/i386.c (ix86_function_regparm): Use
24427 opt_for_fn (decl, optimize) instead of optimize.
24428
24429 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
24430
24431 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
24432 for SYMBOL_REF in large memory model.
24433
24434 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24435
24436 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
24437 and crypto support.
24438 (cortex-a57): Likewise.
24439 (cortex-a57.cortex-a53): Likewise.
24440
24441 2014-02-06 Yury Gribov <y.gribov@samsung.com>
24442 Kugan Vivekanandarajah <kuganv@linaro.org>
24443
24444 * config/arm/arm.c (arm_vector_alignment_reachable): Check
24445 unaligned_access.
24446 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
24447
24448 2014-02-06 Richard Biener <rguenther@suse.de>
24449
24450 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
24451 set_loop_copy and initialize_original_copy_tables.
24452
24453 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
24454
24455 * config/aarch64/aarch64-simd.md
24456 (aarch64_ashr_simddi): Change QI to SI.
24457
24458 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24459 Jakub Jelinek <jakub@redhat.com>
24460
24461 PR middle-end/60013
24462 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
24463 of the dataflow.
24464
24465 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24466
24467 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
24468 CODE_FOR_altivec_vpku[hw]um to
24469 CODE_FOR_altivec_vpku[hw]um_direct.
24470 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
24471 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
24472 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
24473 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
24474
24475 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24476
24477 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
24478 generation for -maltivec=be.
24479 (altivec_vsumsws): Simplify redundant test.
24480
24481 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24482
24483 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
24484 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
24485 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
24486 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
24487 gen_altivec_vpkuwum.
24488 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
24489 BYTES_BIG_ENDIAN.
24490 (altivec_vpks<VI_char>ss): Likewise.
24491 (altivec_vpks<VI_char>us): Likewise.
24492 (altivec_vpku<VI_char>us): Likewise.
24493 (altivec_vpku<VI_char>um): Likewise.
24494 (altivec_vpku<VI_char>um_direct): New (copy of
24495 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
24496 internal use).
24497 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
24498 target is little endian and -maltivec=be is not specified.
24499 (*altivec_vupkhs<VU_char>_direct): New (copy of
24500 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
24501 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
24502 target is little endian and -maltivec=be is not specified.
24503 (*altivec_vupkls<VU_char>_direct): New (copy of
24504 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
24505 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
24506 little endian and -maltivec=be is not specified.
24507 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
24508 little endian and -maltivec=be is not specified.
24509
24510 2014-02-05 Richard Henderson <rth@redhat.com>
24511
24512 PR debug/52727
24513 * combine-stack-adj.c: Revert r206943.
24514 * sched-int.h (struct deps_desc): Add last_args_size.
24515 * sched-deps.c (init_deps): Initialize it.
24516 (sched_analyze_insn): Add OUTPUT dependencies between insns that
24517 contain REG_ARGS_SIZE notes.
24518
24519 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24520
24521 * lto-cgraph.c (asm_nodes_output): Make global.
24522 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
24523 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
24524 (driver_handle_option): Handle OPT_fwpa.
24525
24526 2014-02-05 Jakub Jelinek <jakub@redhat.com>
24527
24528 PR ipa/59947
24529 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
24530 a comment typo and formatting issue. If odr_hash hasn't been
24531 created, return vNULL and set *completep to false.
24532
24533 PR middle-end/57499
24534 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
24535 bb with no successors.
24536
24537 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
24538
24539 PR target/59718
24540 * doc/invoke.texi (-march): Clarify documentation for ARM.
24541 (-mtune): Likewise.
24542 (-mcpu): Likewise.
24543
24544 2014-02-05 Richard Biener <rguenther@suse.de>
24545
24546 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
24547 when not vectorizing because of too many alias checks.
24548 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
24549 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
24550
24551 2014-02-05 Nick Clifton <nickc@redhat.com>
24552
24553 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
24554 accept extended registers in any mode when compiling for the MN10300.
24555
24556 2014-02-05 Yury Gribov <y.gribov@samsung.com>
24557
24558 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
24559 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
24560 sanitization attributes.
24561 (can_inline_edge_p): Likewise.
24562 (sanitize_attrs_match_for_inline_p): New function.
24563
24564 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24565
24566 * ipa-prop.c (detect_type_change): Shor circuit testing of
24567 type changes on THIS pointer.
24568
24569 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
24570
24571 PR target/59777
24572 * config/pa/pa.c (legitimize_tls_address): Return original address
24573 if not passed a SYMBOL_REF rtx.
24574 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
24575 addresses.
24576 (pa_emit_move_sequence): Simplify TLS source operands.
24577 (pa_legitimate_constant_p): Reject all TLS constants.
24578 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
24579 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
24580
24581 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24582
24583 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
24584 groups when we know they are controlled by LTO.
24585 * varasm.c (default_binds_local_p_1): If object is in other partition,
24586 it will be resolved locally.
24587
24588 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24589
24590 * config/host-linux.c (linux_gt_pch_use_address): Don't
24591 use SSIZE_MAX because it is not always defined.
24592
24593 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
24594
24595 PR bootstrap/59913
24596 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
24597 threshold for pseudo splitting.
24598 (update_ebb_live_info): Process call argument hard registers and
24599 hard registers from insn definition too.
24600 (max_small_class_regs_num): New constant.
24601 (inherit_in_ebb): Update live hard regs through EBBs. Update
24602 reloads_num only for small register classes. Don't split for
24603 outputs of jumps.
24604
24605 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
24606
24607 PR ipa/60058
24608 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
24609 is non-null.
24610
24611 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24612
24613 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
24614 visibility is safe.
24615
24616 2014-02-04 Marek Polacek <polacek@redhat.com>
24617
24618 * gdbinit.in (pel): Define.
24619
24620 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24621
24622 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
24623 behavior.
24624
24625 2014-02-04 Richard Biener <rguenther@suse.de>
24626
24627 PR lto/59723
24628 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
24629 in function context local.
24630 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
24631 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
24632 similar to LTO_imported_decl_ref.
24633
24634 2014-02-04 Jakub Jelinek <jakub@redhat.com>
24635
24636 PR tree-optimization/60002
24637 * cgraphclones.c (build_function_decl_skip_args): Clear
24638 DECL_LANG_SPECIFIC.
24639
24640 PR tree-optimization/60023
24641 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
24642 false to gsi_replace.
24643 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
24644 has been in some EH region and vec_stmt could throw, add
24645 vec_stmt into the same EH region.
24646 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
24647 has no lhs, ignore it.
24648 * internal-fn.c (expand_MASK_LOAD): Likewise.
24649
24650 PR ipa/60026
24651 * tree-inline.c (copy_forbidden): Fail for
24652 __attribute__((optimize (0))) functions.
24653
24654 PR other/58712
24655 * omp-low.c (simd_clone_struct_copy): If from->inbranch
24656 is set, copy one less argument.
24657 (expand_simd_clones): Don't subtract clone_info->inbranch
24658 from simd_clone_struct_alloc argument.
24659
24660 PR rtl-optimization/57915
24661 * recog.c (simplify_while_replacing): If all unary/binary/relational
24662 operation arguments are constant, attempt to simplify those.
24663
24664 PR middle-end/59261
24665 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
24666 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
24667
24668 2014-02-04 Richard Biener <rguenther@suse.de>
24669
24670 PR tree-optimization/60012
24671 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
24672 TBAA disambiguation to all DDRs.
24673
24674 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24675
24676 PR target/59788
24677 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
24678 (LINK_SPEC): Use it for -shared, -shared-libgcc.
24679
24680 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24681
24682 PR ipa/59882
24683 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
24684
24685 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24686
24687 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
24688 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
24689
24690 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24691
24692 PR ipa/59831
24693 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
24694 to figure out targets of polymorphic calls with known decl.
24695 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24696 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
24697 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
24698 (get_polymorphic_call_info): ... here.
24699 (get_polymorphic_call_info_from_invariant): New function.
24700
24701 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24702
24703 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
24704 lookup via vtable pointer; check for type consistency
24705 and turn inconsitent facts into UNREACHABLE.
24706 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24707 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
24708 type inconsistent querries; return UNREACHABLE instead.
24709
24710 2014-02-03 Richard Henderson <rth@twiddle.net>
24711
24712 PR tree-opt/59924
24713 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
24714 already processed this node.
24715 (normalize_one_pred_1): Pass along mark_set.
24716 (normalize_one_pred): Create and destroy a pointer_set_t.
24717 (normalize_one_pred_chain): Likewise.
24718
24719 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
24720
24721 PR gcov-profile/58602
24722 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
24723
24724 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24725
24726 PR ipa/59831
24727 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
24728 -fno-devirtualize; try to devirtualize by the knowledge of
24729 virtual table pointer given by aggregate propagation.
24730 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24731 (ipa_print_node_jump_functions): Dump also offset that
24732 is relevant for polymorphic calls.
24733 (determine_known_aggregate_parts): Add arg_type parameter; use it
24734 instead of determining the type from pointer type.
24735 (ipa_compute_jump_functions_for_edge): Update call of
24736 determine_known_aggregate_parts.
24737 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
24738 (gimple_get_virt_method_for_binfo): ... here; simplify using
24739 vtable_pointer_value_to_vtable.
24740 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
24741 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
24742 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
24743 (vtable_pointer_value_to_vtable): Break out from ...; handle also
24744 POINTER_PLUS_EXPR.
24745 (vtable_pointer_value_to_binfo): ... here.
24746 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
24747
24748 2014-02-03 Teresa Johnson <tejohnson@google.com>
24749
24750 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
24751 redef of outer loop index variable.
24752
24753 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
24754
24755 PR c++/53017
24756 PR c++/59211
24757 * doc/extend.texi (Function Attributes): Typo.
24758
24759 2014-02-03 Cong Hou <congh@google.com>
24760
24761 PR tree-optimization/60000
24762 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
24763 if the vectorized statement is a store. A store statement can only
24764 appear at the end of pattern statements.
24765
24766 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24767
24768 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
24769 (ix86_option_override_internal): Default long double to 64-bit for
24770 32-bit Bionic and to 128-bit for 64-bit Bionic.
24771
24772 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
24773 TARGET_LONG_DOUBLE_128 is true.
24774 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
24775
24776 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
24777 (mlong-double-64): Negate -mlong-double-128.
24778 (mlong-double-128): New option.
24779
24780 * config/i386/i386-c.c (ix86_target_macros): Define
24781 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
24782
24783 * doc/invoke.texi: Document -mlong-double-128.
24784
24785 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24786
24787 PR rtl-optimization/60024
24788 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
24789
24790 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
24791
24792 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
24793
24794 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24795
24796 PR rtl-optimization/57662
24797 * sel-sched.c (code_motion_path_driver): Do not mark already not
24798 existing blocks in the visiting bitmap.
24799
24800 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24801
24802 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
24803 on the insn being emitted.
24804
24805 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
24806 Will Deacon <will.deacon@arm.com>
24807
24808 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
24809
24810 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24811
24812 * config/arm/arm-tables.opt: Regenerate.
24813
24814 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24815
24816 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
24817 for vector types other than V16QImode.
24818 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
24819 define_expand, and call altivec_expand_vec_perm_le when producing
24820 code with little endian element order.
24821 (*altivec_vperm_<mode>_internal): New insn having previous
24822 behavior of altivec_vperm_<mode>.
24823 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
24824 altivec_expand_vec_perm_le when producing code with little endian
24825 element order.
24826 (*altivec_vperm_<mode>_uns_internal): New insn having previous
24827 behavior of altivec_vperm_<mode>_uns.
24828
24829 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24830
24831 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
24832 (altivec_vsumsws): Add handling for -maltivec=be with a little
24833 endian target.
24834 (altivec_vsumsws_direct): New.
24835 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
24836 gen_altivec_vsumsws.
24837
24838 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24839
24840 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
24841 vtable_pointer_value_to_binfo): New functions.
24842 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
24843 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
24844
24845 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
24846
24847 * config/nios2/nios2.md (load_got_register): Initialize GOT
24848 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
24849 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
24850
24851 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24852
24853 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
24854 preserverd by passthrough, do not propagate the type.
24855
24856 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24857
24858 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
24859 (mips_atomic_assign_expand_fenv): New function.
24860 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24861
24862 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24863
24864 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
24865 (__builtin_mips_set_fcsr): Likewise.
24866 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
24867 MIPS_USI_FTYPE_VOID.
24868 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
24869 (mips16_expand_set_fcsr): Likewise.
24870 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
24871 (mips16_set_fcsr_stub): Likewise.
24872 (mips16_get_fcsr_one_only_stub): New class.
24873 (mips16_set_fcsr_one_only_stub): Likewise.
24874 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
24875 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
24876 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
24877 (hard_float): New availability predicate.
24878 (mips_builtins): Add get_fcsr and set_fcsr.
24879 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
24880 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
24881 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
24882 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
24883 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
24884 patterns.
24885
24886 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24887
24888 * config/mips/mips.c (mips_one_only_stub): New class.
24889 (mips_need_mips16_rdhwr_p): Replace with...
24890 (mips16_rdhwr_stub): ...this new variable.
24891 (mips16_stub_call_address): New function.
24892 (mips16_rdhwr_one_only_stub): New class.
24893 (mips_expand_thread_pointer): Use mips16_stub_call_address.
24894 (mips_output_mips16_rdhwr): Delete.
24895 (mips_finish_stub): New function.
24896 (mips_code_end): Use it to handle rdhwr stubs.
24897
24898 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
24899
24900 PR target/60017
24901 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
24902 when calculating size of integer atomic types.
24903
24904 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
24905
24906 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
24907
24908 2014-02-01 Jakub Jelinek <jakub@redhat.com>
24909
24910 PR tree-optimization/60003
24911 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
24912 * profile.c (branch_prob): Use gimple_call_builtin_p
24913 to check for BUILT_IN_SETJMP_RECEIVER.
24914 * tree-inline.c (copy_bb): Call notice_special_calls.
24915
24916 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
24917
24918 PR bootstrap/59985
24919 * lra-constraints.c (process_alt_operands): Update reload_sum only
24920 on the first pass.
24921
24922 2014-01-31 Richard Henderson <rth@redhat.com>
24923
24924 PR middle-end/60004
24925 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
24926 until after else_eh is processed.
24927
24928 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24929
24930 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
24931 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
24932 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
24933 in smmintrin.h, remove them.
24934 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
24935 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
24936 * config/i386/i386.md (ROUND_SAE): Fix value.
24937 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
24938 (const48_operand): New.
24939 * config/i386/subst.md (round), (round_expand): Use
24940 const_4_or_8_to_11_operand.
24941 (round_saeonly), (round_saeonly_expand): Use const48_operand.
24942
24943 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24944
24945 * config/i386/constraints.md (Yk): Swap meaning with k.
24946 * config/i386/i386.md (movhi_internal): Change Yk to k.
24947 (movqi_internal): Ditto.
24948 (*k<logic><mode>): Ditto.
24949 (*andhi_1): Ditto.
24950 (*andqi_1): Ditto.
24951 (kandn<mode>): Ditto.
24952 (*<code>hi_1): Ditto.
24953 (*<code>qi_1): Ditto.
24954 (kxnor<mode>): Ditto.
24955 (kortestzhi): Ditto.
24956 (kortestchi): Ditto.
24957 (kunpckhi): Ditto.
24958 (*one_cmplhi2_1): Ditto.
24959 (*one_cmplqi2_1): Ditto.
24960 * config/i386/sse.md (): Change k to Yk.
24961 (avx512f_load<mode>_mask): Ditto.
24962 (avx512f_blendm<mode>): Ditto.
24963 (avx512f_store<mode>_mask): Ditto.
24964 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
24965 (avx512f_storedqu<mode>_mask): Ditto.
24966 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
24967 Ditto.
24968 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
24969 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
24970 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
24971 (avx512f_maskcmp<mode>3): Ditto.
24972 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
24973 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
24974 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
24975 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
24976 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
24977 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
24978 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
24979 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
24980 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
24981 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
24982 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
24983 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
24984 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
24985 (vec_extract_lo_<mode>_maskm): Ditto.
24986 (vec_extract_hi_<mode>_maskm): Ditto.
24987 (avx512f_vternlog<mode>_mask): Ditto.
24988 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
24989 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
24990 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
24991 (avx512f_<code>v8div16qi2_mask): Ditto.
24992 (avx512f_<code>v8div16qi2_mask_store): Ditto.
24993 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
24994 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
24995 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
24996 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
24997 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24998 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24999 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
25000 (*avx512pf_scatterpf<mode>df_mask): Ditto.
25001 (avx512cd_maskb_vec_dupv8di): Ditto.
25002 (avx512cd_maskw_vec_dupv16si): Ditto.
25003 (avx512f_vpermi2var<mode>3_maskz): Ditto.
25004 (avx512f_vpermi2var<mode>3_mask): Ditto.
25005 (avx512f_vpermi2var<mode>3_mask): Ditto.
25006 (avx512f_vpermt2var<mode>3_maskz): Ditto.
25007 (*avx512f_gathersi<mode>): Ditto.
25008 (*avx512f_gathersi<mode>_2): Ditto.
25009 (*avx512f_gatherdi<mode>): Ditto.
25010 (*avx512f_gatherdi<mode>_2): Ditto.
25011 (*avx512f_scattersi<mode>): Ditto.
25012 (*avx512f_scatterdi<mode>): Ditto.
25013 (avx512f_compress<mode>_mask): Ditto.
25014 (avx512f_compressstore<mode>_mask): Ditto.
25015 (avx512f_expand<mode>_mask): Ditto.
25016 * config/i386/subst.md (mask): Change k to Yk.
25017 (mask_scalar_merge): Ditto.
25018 (sd): Ditto.
25019
25020 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
25021
25022 * doc/extend.texi (Vector Extensions): Document ?: in C++.
25023
25024 2014-01-31 Richard Biener <rguenther@suse.de>
25025
25026 PR middle-end/59990
25027 * builtins.c (fold_builtin_memory_op): Make sure to not
25028 use a floating-point mode or a boolean or enumeral type for
25029 the copy operation.
25030
25031 2014-01-30 DJ Delorie <dj@redhat.com>
25032
25033 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
25034 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
25035 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
25036 whenever main() has an epilogue.
25037
25038 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25039
25040 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
25041 unused variable "field".
25042 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
25043 (vsx_mergeh_<mode>): Likewise.
25044 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
25045 (altivec_vmrghh): Likewise.
25046 (altivec_vmrghw): Likewise.
25047 (altivec_vmrglb): Likewise.
25048 (altivec_vmrglh): Likewise.
25049 (altivec_vmrglw): Likewise.
25050 (altivec_vspltb): Add missing uses.
25051 (altivec_vsplth): Likewise.
25052 (altivec_vspltw): Likewise.
25053 (altivec_vspltsf): Likewise.
25054
25055 2014-01-30 Jakub Jelinek <jakub@redhat.com>
25056
25057 PR target/59923
25058 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
25059 frame related instructions.
25060
25061 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
25062
25063 PR rtl-optimization/59959
25064 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
25065 any reload of register whose subreg is invalid.
25066
25067 2014-01-30 Jakub Jelinek <jakub@redhat.com>
25068
25069 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
25070 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
25071 Add missing return type - void.
25072
25073 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25074
25075 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
25076 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
25077 remove element index adjustment for endian (now handled in vsx.md
25078 and altivec.md).
25079 (altivec_expand_vec_perm_const): Use
25080 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
25081 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
25082 (vsx_xxspltw_<mode>): Adjust element index for little endian.
25083 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
25084 define_expand and a new define_insn *altivec_vspltb_internal;
25085 adjust for -maltivec=be on a little endian target.
25086 (altivec_vspltb_direct): New.
25087 (altivec_vsplth): Divide into a define_expand and a new
25088 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
25089 little endian target.
25090 (altivec_vsplth_direct): New.
25091 (altivec_vspltw): Divide into a define_expand and a new
25092 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
25093 little endian target.
25094 (altivec_vspltw_direct): New.
25095 (altivec_vspltsf): Divide into a define_expand and a new
25096 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
25097 a little endian target.
25098
25099 2014-01-30 Richard Biener <rguenther@suse.de>
25100
25101 PR tree-optimization/59993
25102 * tree-ssa-forwprop.c (associate_pointerplus): Check we
25103 can propagate form the earlier stmt and avoid the transform
25104 when the intermediate result is needed.
25105
25106 2014-01-30 Alangi Derick <alangiderick@gmail.com>
25107
25108 * README.Portability: Fix typo.
25109
25110 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
25111
25112 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
25113 comparison_operator with ordered_comparison_operator.
25114
25115 2014-01-30 Nick Clifton <nickc@redhat.com>
25116
25117 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
25118 Rename to mn10300_store_multiple_regs.
25119 * config/mn10300/mn10300.c: Likewise.
25120 * config/mn10300/mn10300.md (store_movm): Fix typo: call
25121 store_multiple_regs.
25122 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
25123 Call mn10300_store_multiple_regs.
25124
25125 2014-01-30 Nick Clifton <nickc@redhat.com>
25126 DJ Delorie <dj@redhat.com>
25127
25128 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
25129 %fp 2 to keep registers after it properly word-aligned.
25130 (rl78_alloc_physical_registers_umul): Handle the case where both
25131 input operands are the same.
25132
25133 2014-01-30 Richard Biener <rguenther@suse.de>
25134
25135 PR tree-optimization/59903
25136 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
25137 check properly.
25138
25139 2014-01-30 Jason Merrill <jason@redhat.com>
25140
25141 PR c++/59633
25142 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
25143
25144 PR c++/59645
25145 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
25146
25147 2014-01-30 Richard Biener <rguenther@suse.de>
25148
25149 PR tree-optimization/59951
25150 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
25151
25152 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
25153
25154 PR target/59784
25155 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
25156 SFmode to DFmode case.
25157
25158 2014-01-29 DJ Delorie <dj@redhat.com>
25159
25160 * config/msp430/msp430.opt (-minrt): New.
25161 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
25162 if -minrt given.
25163 (ENDFILE_SPEC): Likewise.
25164
25165 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
25166
25167 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
25168 (estimate_function_body_sizes): Use it.
25169
25170 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
25171
25172 PR c++/58561
25173 * dwarf2out.c (is_cxx_auto): New.
25174 (is_base_type): Use it.
25175 (gen_type_die_with_usage): Likewise.
25176
25177 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25178
25179 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
25180 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
25181 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
25182 -maltivec=be with LE targets.
25183 (vsx_mergeh_<mode>): Likewise.
25184 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
25185 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
25186 (altivec_vmrghb): Replace with define_expand and new
25187 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
25188 (altivec_vmrghb_direct): New define_insn.
25189 (altivec_vmrghh): Replace with define_expand and new
25190 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
25191 (altivec_vmrghh_direct): New define_insn.
25192 (altivec_vmrghw): Replace with define_expand and new
25193 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
25194 (altivec_vmrghw_direct): New define_insn.
25195 (*altivec_vmrghsf): Adjust for endianness.
25196 (altivec_vmrglb): Replace with define_expand and new
25197 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
25198 (altivec_vmrglb_direct): New define_insn.
25199 (altivec_vmrglh): Replace with define_expand and new
25200 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
25201 (altivec_vmrglh_direct): New define_insn.
25202 (altivec_vmrglw): Replace with define_expand and new
25203 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
25204 (altivec_vmrglw_direct): New define_insn.
25205 (*altivec_vmrglsf): Adjust for endianness.
25206 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
25207 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
25208 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
25209 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
25210 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
25211 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
25212 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
25213 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
25214
25215 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
25216
25217 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
25218 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
25219 whitespace.
25220
25221 2014-01-29 Richard Biener <rguenther@suse.de>
25222
25223 PR tree-optimization/58742
25224 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
25225 associate_pointerplus_align.
25226 (associate_pointerplus_diff): New function.
25227 (associate_pointerplus): Likewise. Call associate_pointerplus_align
25228 and associate_pointerplus_diff.
25229
25230 2014-01-29 Richard Biener <rguenther@suse.de>
25231
25232 * lto-streamer.h (LTO_major_version): Bump to 3.
25233 (LTO_minor_version): Reset to 0.
25234
25235 2014-01-29 Renlin Li <Renlin.Li@arm.com>
25236
25237 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
25238 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
25239 (arm_file_start): Generate correct asm header for armv7ve.
25240 * config/arm/bpabi.h: Add multilib support for armv7ve.
25241 * config/arm/driver-arm.c: Change the architectures of cortex-a7
25242 and cortex-a15 to armv7ve.
25243 * config/arm/t-aprofile: Add multilib support for armv7ve.
25244 * doc/invoke.texi: Document -march=armv7ve.
25245
25246 2014-01-29 Richard Biener <rguenther@suse.de>
25247
25248 PR tree-optimization/58742
25249 * tree-ssa-forwprop.c (associate_plusminus): Return true
25250 if we changed sth, defer EH cleanup to ...
25251 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
25252 (simplify_mult): New function.
25253
25254 2014-01-29 Jakub Jelinek <jakub@redhat.com>
25255
25256 PR middle-end/59917
25257 PR tree-optimization/59920
25258 * tree.c (build_common_builtin_nodes): Remove
25259 __builtin_setjmp_dispatcher initialization.
25260 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
25261 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
25262 instead of gsi_after_labels + manually skipping debug stmts.
25263 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
25264 ignore bbs with IFN_ABNORMAL_DISPATCHER.
25265 * tree-inline.c (copy_edges_for_bb): Remove
25266 can_make_abnormal_goto argument, instead add abnormal_goto_dest
25267 argument. Ignore computed_goto_p stmts. Don't call
25268 make_abnormal_goto_edges. If a call might need abnormal edges
25269 for non-local gotos, see if it already has an edge to
25270 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
25271 with true argument, don't do anything then, otherwise add
25272 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
25273 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
25274 caller.
25275 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
25276 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
25277 (lower_stmt): Don't set data->calls_builtin_setjmp.
25278 (lower_builtin_setjmp): Adjust comment.
25279 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
25280 * tree-cfg.c (found_computed_goto): Remove.
25281 (factor_computed_gotos): Remove.
25282 (make_goto_expr_edges): Return bool, true for computed gotos.
25283 Don't call make_abnormal_goto_edges.
25284 (build_gimple_cfg): Don't set found_computed_goto, don't call
25285 factor_computed_gotos.
25286 (computed_goto_p): No longer static.
25287 (make_blocks): Don't set found_computed_goto.
25288 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
25289 (make_edges): If make_goto_expr_edges returns true, push bb
25290 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
25291 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
25292 vector. Record mapping between bbs and OpenMP regions if there
25293 are any, adjust make_gimple_omp_edges caller. Call
25294 handle_abnormal_edges.
25295 (make_abnormal_goto_edges): Remove.
25296 * tree-cfg.h (make_abnormal_goto_edges): Remove.
25297 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
25298 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
25299 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
25300 * internal-fn.def (ABNORMAL_DISPATCHER): New.
25301 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
25302 filling *region also set *region_idx to (*region)->entry->index.
25303
25304 PR other/58712
25305 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
25306 For REGs set ORIGINAL_REGNO.
25307
25308 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
25309
25310 * doc/md.texi: Mention that a target shouldn't implement
25311 vec_widen_(s|u)mul_even/odd pair if it is less efficient
25312 than hi/lo pair.
25313
25314 2014-01-29 Jakub Jelinek <jakub@redhat.com>
25315
25316 PR tree-optimization/59594
25317 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
25318 a copy of the datarefs vector rather than the vector itself.
25319
25320 2014-01-28 Jason Merrill <jason@redhat.com>
25321
25322 PR c++/53756
25323 * dwarf2out.c (auto_die): New static.
25324 (gen_type_die_with_usage): Handle C++1y 'auto'.
25325 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
25326 on definition.
25327
25328 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
25329
25330 PR target/59672
25331 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
25332 (SPEC_X32): Likewise.
25333 (SPEC_64): Likewise.
25334 * config/i386/i386.c (ix86_option_override_internal): Turn off
25335 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
25336 for TARGET_16BIT.
25337 (x86_file_start): Output .code16gcc for TARGET_16BIT.
25338 * config/i386/i386.h (TARGET_16BIT): New macro.
25339 (TARGET_16BIT_P): Likewise.
25340 * config/i386/i386.opt: Add m16.
25341 * doc/invoke.texi: Document -m16.
25342
25343 2014-01-28 Jakub Jelinek <jakub@redhat.com>
25344
25345 PR preprocessor/59935
25346 * input.c (location_get_source_line): Bail out on when line number
25347 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
25348
25349 2014-01-28 Richard Biener <rguenther@suse.de>
25350
25351 PR tree-optimization/58742
25352 * tree-ssa-forwprop.c (associate_plusminus): Handle
25353 pointer subtraction of the form (T)(P + A) - (T)P.
25354
25355 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25356
25357 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
25358 at const_int_cost.
25359
25360 2014-01-28 Richard Biener <rguenther@suse.de>
25361
25362 Revert
25363 2014-01-28 Richard Biener <rguenther@suse.de>
25364
25365 PR rtl-optimization/45364
25366 PR rtl-optimization/59890
25367 * var-tracking.c (local_get_addr_clear_given_value): Handle
25368 already cleared slot.
25369 (val_reset): Handle not allocated local_get_addr_cache.
25370 (vt_find_locations): Use post-order on the inverted CFG.
25371
25372 2014-01-28 Richard Biener <rguenther@suse.de>
25373
25374 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
25375
25376 2014-01-28 Richard Biener <rguenther@suse.de>
25377
25378 PR rtl-optimization/45364
25379 PR rtl-optimization/59890
25380 * var-tracking.c (local_get_addr_clear_given_value): Handle
25381 already cleared slot.
25382 (val_reset): Handle not allocated local_get_addr_cache.
25383 (vt_find_locations): Use post-order on the inverted CFG.
25384
25385 2014-01-28 Alan Modra <amodra@gmail.com>
25386
25387 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
25388 * configure.ac <recursive call for build != host>: Define
25389 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
25390 and LD_FOR_BUILD too.
25391 * configure: Regenerate.
25392
25393 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
25394
25395 * config/i386/i386.c (get_builtin_code_for_version): Separate
25396 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
25397 Broadwell from Haswell.
25398
25399 2014-01-27 Steve Ellcey <sellcey@mips.com>
25400
25401 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
25402 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
25403 * config/mips/mips.c (mips_option_override): Change setting
25404 of TARGET_DSP.
25405 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
25406 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
25407 Change from Mask to Var.
25408
25409 2014-01-27 Jeff Law <law@redhat.com>
25410
25411 * ipa-inline.c (inline_small_functions): Fix typo.
25412
25413 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
25414
25415 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
25416 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
25417 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
25418 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
25419 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
25420 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
25421 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
25422 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
25423 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
25424 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
25425 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
25426 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
25427 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
25428 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
25429 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
25430 (_mm512_storeu_epi64): Ditto.
25431 (_mm512_cmpge_epi32_mask): Ditto.
25432 (_mm512_cmpge_epu32_mask): Ditto.
25433 (_mm512_cmpge_epi64_mask): Ditto.
25434 (_mm512_cmpge_epu64_mask): Ditto.
25435 (_mm512_cmple_epi32_mask): Ditto.
25436 (_mm512_cmple_epu32_mask): Ditto.
25437 (_mm512_cmple_epi64_mask): Ditto.
25438 (_mm512_cmple_epu64_mask): Ditto.
25439 (_mm512_cmplt_epi32_mask): Ditto.
25440 (_mm512_cmplt_epu32_mask): Ditto.
25441 (_mm512_cmplt_epi64_mask): Ditto.
25442 (_mm512_cmplt_epu64_mask): Ditto.
25443 (_mm512_cmpneq_epi32_mask): Ditto.
25444 (_mm512_cmpneq_epu32_mask): Ditto.
25445 (_mm512_cmpneq_epi64_mask): Ditto.
25446 (_mm512_cmpneq_epu64_mask): Ditto.
25447 (_mm512_expand_pd): Ditto.
25448 (_mm512_expand_ps): Ditto.
25449 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
25450 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
25451 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
25452 * config/i386/i386.c (ix86_builtins): Add
25453 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
25454 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
25455 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
25456 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
25457 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
25458 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
25459 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
25460 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
25461 IX86_BUILTIN_PMOVUSQW512_MEM.
25462 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
25463 __builtin_ia32_pmovsqd512mem_mask,
25464 __builtin_ia32_pmovqd512mem_mask,
25465 __builtin_ia32_pmovusqw512mem_mask,
25466 __builtin_ia32_pmovsqw512mem_mask,
25467 __builtin_ia32_pmovqw512mem_mask,
25468 __builtin_ia32_pmovusdw512mem_mask,
25469 __builtin_ia32_pmovsdw512mem_mask,
25470 __builtin_ia32_pmovdw512mem_mask,
25471 __builtin_ia32_pmovqb512mem_mask,
25472 __builtin_ia32_pmovusqb512mem_mask,
25473 __builtin_ia32_pmovsqb512mem_mask,
25474 __builtin_ia32_pmovusdb512mem_mask,
25475 __builtin_ia32_pmovsdb512mem_mask,
25476 __builtin_ia32_pmovdb512mem_mask.
25477 (bdesc_args): Add __builtin_ia32_expanddf512,
25478 __builtin_ia32_expandsf512.
25479 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
25480 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
25481 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
25482 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
25483 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
25484 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
25485 (avx512f_<code>v8div16qi2_mask_store): This.
25486 (avx512f_expand<mode>): New.
25487
25488 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
25489
25490 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
25491 New.
25492 (_mm512_mask_prefetch_i64gather_pd): Ditto.
25493 (_mm512_prefetch_i32scatter_pd): Ditto.
25494 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
25495 (_mm512_prefetch_i64scatter_pd): Ditto.
25496 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
25497 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
25498 (_mm512_mask_prefetch_i64gather_ps): Ditto.
25499 (_mm512_prefetch_i32scatter_ps): Ditto.
25500 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
25501 (_mm512_prefetch_i64scatter_ps): Ditto.
25502 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
25503 * config/i386/i386-builtin-types.def: Define
25504 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
25505 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
25506 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
25507 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
25508 IX86_BUILTIN_SCATTERPFQPD.
25509 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
25510 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
25511 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
25512 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
25513 __builtin_ia32_scatterpfqps.
25514 (ix86_expand_builtin): Expand new built-ins.
25515 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
25516 fix memory access data type.
25517 (*avx512pf_gatherpf<mode>_mask): Ditto.
25518 (*avx512pf_gatherpf<mode>): Ditto.
25519 (avx512pf_scatterpf<mode>): Ditto.
25520 (*avx512pf_scatterpf<mode>_mask): Ditto.
25521 (*avx512pf_scatterpf<mode>): Ditto.
25522 (GATHER_SCATTER_SF_MEM_MODE): New.
25523 (avx512pf_gatherpf<mode>df): Ditto.
25524 (*avx512pf_gatherpf<mode>df_mask): Ditto.
25525 (*avx512pf_scatterpf<mode>df): Ditto.
25526
25527 2014-01-27 Jakub Jelinek <jakub@redhat.com>
25528
25529 PR bootstrap/59934
25530 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
25531 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
25532 reached.
25533
25534 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25535
25536 * common/config/arm/arm-common.c
25537 (arm_rewrite_mcpu): Handle multiple names.
25538 * config/arm/arm.h
25539 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25540
25541 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25542
25543 * gimple-builder.h (create_gimple_tmp): Delete.
25544
25545 2014-01-27 Christian Bruel <christian.bruel@st.com>
25546
25547 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
25548 words comparisons.
25549
25550 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
25551
25552 * config/pa/pa.md (call): Generate indirect long calls to non-local
25553 functions when outputing 32-bit code.
25554 (call_value): Likewise except for special call to buggy powf function.
25555
25556 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
25557 portable runtime and PIC indirect calls.
25558 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
25559 and PIC call sequences. Use ldo instead of blr to set return register
25560 in PIC call sequence.
25561
25562 2014-01-25 Walter Lee <walt@tilera.com>
25563
25564 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
25565 avoid clobbering a live register.
25566
25567 2014-01-25 Walter Lee <walt@tilera.com>
25568
25569 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
25570 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
25571 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
25572 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
25573
25574 2014-01-25 Walter Lee <walt@tilera.com>
25575
25576 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
25577 arguments on even registers.
25578 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
25579 STACK_BOUNDARY.
25580 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
25581 (BIGGEST_ALIGNMENT): Ditto.
25582 (BIGGEST_FIELD_ALIGNMENT): Ditto.
25583
25584 2014-01-25 Walter Lee <walt@tilera.com>
25585
25586 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
25587 insns before bundling.
25588 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
25589
25590 2014-01-25 Walter Lee <walt@tilera.com>
25591
25592 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
25593 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
25594 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
25595
25596 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25597
25598 * config/mips/constraints.md (kl): Delete.
25599 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
25600 define expands, using...
25601 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
25602 instructions for MIPS16.
25603 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
25604 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
25605
25606 2014-01-25 Walter Lee <walt@tilera.com>
25607
25608 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
25609 (clzdi2): Ditto.
25610 (ffsdi2): Ditto.
25611
25612 2014-01-25 Walter Lee <walt@tilera.com>
25613
25614 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
25615 (TARGET_EXPAND_TO_RTL_HOOK): Define.
25616
25617 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25618
25619 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
25620 Handle XOR.
25621
25622 2014-01-25 Jakub Jelinek <jakub@redhat.com>
25623
25624 * print-rtl.c (in_call_function_usage): New var.
25625 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
25626 EXPR_LIST mode as mode and not as reg note name.
25627
25628 PR middle-end/59561
25629 * cfgloopmanip.c (copy_loop_info): If
25630 loop->warned_aggressive_loop_optimizations, make sure
25631 the flag is set in target loop too.
25632
25633 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
25634
25635 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
25636 flag_cilkplus.
25637 * builtins.def: Likewise.
25638 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
25639 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
25640 * ira.c (ira_setup_eliminable_regset): Likewise.
25641 * omp-low.c (gate_expand_omp): Likewise.
25642 (execute_lower_omp): Likewise.
25643 (diagnose_sb_0): Likewise.
25644 (gate_diagnose_omp_blocks): Likewise.
25645 (simd_clone_clauses_extract): Likewise.
25646 (gate): Likewise.
25647
25648 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25649
25650 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
25651 correction for little endian...
25652 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
25653 here.
25654
25655 2014-01-24 Jeff Law <law@redhat.com>
25656
25657 PR tree-optimization/59919
25658 * tree-vrp.c (find_assert_locations_1): Do not register asserts
25659 for non-returning calls.
25660
25661 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
25662
25663 * common/config/aarch64/aarch64-common.c
25664 (aarch64_rewrite_mcpu): Handle multiple names.
25665 * config/aarch64/aarch64.h
25666 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25667
25668 2014-01-24 Dodji Seketeli <dodji@redhat.com>
25669
25670 * input.c (add_file_to_cache_tab): Handle the case where fopen
25671 returns NULL.
25672
25673 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
25674
25675 PR target/59929
25676 * config/i386/i386.md (pushsf splitter): Get stack adjustment
25677 from push operand if code of push isn't PRE_DEC.
25678
25679 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25680
25681 PR target/59909
25682 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
25683 -mquad-memory-atomic. Update -mquad-memory documentation to say
25684 it is only used for non-atomic loads/stores.
25685
25686 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
25687 -mquad-memory or -mquad-memory-atomic switches.
25688
25689 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
25690 -mquad-memory-atomic to ISA 2.07 support.
25691
25692 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
25693 to separate support of normal quad word memory operations (ldq, stq)
25694 from the atomic quad word memory operations.
25695
25696 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
25697 support to separate non-atomic quad word operations from atomic
25698 quad word operations. Disable non-atomic quad word operations in
25699 little endian mode so that we don't have to swap words after the
25700 load and before the store.
25701 (quad_load_store_p): Add comment about atomic quad word support.
25702 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
25703 options printed with -mdebug=reg.
25704
25705 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
25706 -mquad-memory-atomic as the test for whether we have quad word
25707 atomic instructions.
25708 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
25709 or -mp8-vector are used, allow byte/half-word atomic operations.
25710
25711 * config/rs6000/sync.md (load_lockedti): Insure that the address
25712 is a proper indexed or indirect address for the lqarx instruction.
25713 On little endian systems, swap the hi/lo registers after the lqarx
25714 instruction.
25715 (load_lockedpti): Use indexed_or_indirect_operand predicate to
25716 insure the address is valid for the lqarx instruction.
25717 (store_conditionalti): Insure that the address is a proper indexed
25718 or indirect address for the stqcrx. instruction. On little endian
25719 systems, swap the hi/lo registers before doing the stqcrx.
25720 instruction.
25721 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
25722 insure the address is valid for the stqcrx. instruction.
25723
25724 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25725 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
25726 type of quad memory support is available.
25727
25728 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
25729
25730 PR regression/59915
25731 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
25732 there is a danger of looping.
25733
25734 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
25735
25736 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25737 force flag_ira_loop_pressure if set via command line.
25738
25739 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25740
25741 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
25742 (ashr_simd): New builtin handling DI mode.
25743 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
25744 (aarch64_sshr_simddi): New match pattern.
25745 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
25746 (vshrd_n_s64): Likewise.
25747 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
25748
25749 2014-01-23 Nick Clifton <nickc@redhat.com>
25750
25751 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
25752 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
25753 favour of mcu specific scripts.
25754 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
25755 430x multilibs.
25756
25757 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25758 Alex Velenko <Alex.Velenko@arm.com>
25759
25760 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
25761 (vaddv_s16): Likewise.
25762 (vaddv_s32): Likewise.
25763 (vaddv_u8): Likewise.
25764 (vaddv_u16): Likewise.
25765 (vaddv_u32): Likewise.
25766 (vaddvq_s8): Likewise.
25767 (vaddvq_s16): Likewise.
25768 (vaddvq_s32): Likewise.
25769 (vaddvq_s64): Likewise.
25770 (vaddvq_u8): Likewise.
25771 (vaddvq_u16): Likewise.
25772 (vaddvq_u32): Likewise.
25773 (vaddvq_u64): Likewise.
25774 (vaddv_f32): Likewise.
25775 (vaddvq_f32): Likewise.
25776 (vaddvq_f64): Likewise.
25777 (vmaxv_f32): Likewise.
25778 (vmaxv_s8): Likewise.
25779 (vmaxv_s16): Likewise.
25780 (vmaxv_s32): Likewise.
25781 (vmaxv_u8): Likewise.
25782 (vmaxv_u16): Likewise.
25783 (vmaxv_u32): Likewise.
25784 (vmaxvq_f32): Likewise.
25785 (vmaxvq_f64): Likewise.
25786 (vmaxvq_s8): Likewise.
25787 (vmaxvq_s16): Likewise.
25788 (vmaxvq_s32): Likewise.
25789 (vmaxvq_u8): Likewise.
25790 (vmaxvq_u16): Likewise.
25791 (vmaxvq_u32): Likewise.
25792 (vmaxnmv_f32): Likewise.
25793 (vmaxnmvq_f32): Likewise.
25794 (vmaxnmvq_f64): Likewise.
25795 (vminv_f32): Likewise.
25796 (vminv_s8): Likewise.
25797 (vminv_s16): Likewise.
25798 (vminv_s32): Likewise.
25799 (vminv_u8): Likewise.
25800 (vminv_u16): Likewise.
25801 (vminv_u32): Likewise.
25802 (vminvq_f32): Likewise.
25803 (vminvq_f64): Likewise.
25804 (vminvq_s8): Likewise.
25805 (vminvq_s16): Likewise.
25806 (vminvq_s32): Likewise.
25807 (vminvq_u8): Likewise.
25808 (vminvq_u16): Likewise.
25809 (vminvq_u32): Likewise.
25810 (vminnmv_f32): Likewise.
25811 (vminnmvq_f32): Likewise.
25812 (vminnmvq_f64): Likewise.
25813
25814 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25815
25816 * config/aarch64/aarch64-simd.md
25817 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
25818 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
25819 (*aarch64_mul3_elt<mode>): Likewise.
25820 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
25821 (*aarch64_mul3_elt_to_64v2df): Likewise.
25822 (*aarch64_mla_elt<mode>): Likewise.
25823 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
25824 (*aarch64_mls_elt<mode>): Likewise.
25825 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
25826 (*aarch64_fma4_elt<mode>): Likewise.
25827 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
25828 (*aarch64_fma4_elt_to_64v2df): Likewise.
25829 (*aarch64_fnma4_elt<mode>): Likewise.
25830 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
25831 (*aarch64_fnma4_elt_to_64v2df): Likewise.
25832 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
25833 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
25834 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25835 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25836 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
25837 (aarch64_sqdmull_lane<mode>_internal): Likewise.
25838 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
25839
25840 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
25841
25842 * config/aarch64/aarch64-simd.md
25843 (aarch64_be_checked_get_lane<mode>): New define_expand.
25844 * config/aarch64/aarch64-simd-builtins.def
25845 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
25846 New builtin definition.
25847 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
25848 Use new safe be builtin.
25849
25850 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25851
25852 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
25853 New define_insn.
25854 (aarch64_be_st1<mode>): Likewise.
25855 (aarch_ld1<VALL:mode>): Define_expand modified.
25856 (aarch_st1<VALL:mode>): Likewise.
25857 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
25858 (UNSPEC_ST1): Likewise.
25859
25860 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
25861
25862 * config/microblaze/microblaze.md: Add trap insn and attribute
25863
25864 2014-01-23 Dodji Seketeli <dodji@redhat.com>
25865
25866 PR preprocessor/58580
25867 * input.h (location_get_source_line): Take an additional line_size
25868 parameter.
25869 (void diagnostics_file_cache_fini): Declare new function.
25870 * input.c (struct fcache): New type.
25871 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
25872 New static constants.
25873 (diagnostic_file_cache_init, total_lines_num)
25874 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
25875 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
25876 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
25877 (get_next_line, read_next_line, goto_next_line, read_line_num):
25878 New static function definitions.
25879 (diagnostic_file_cache_fini): New function.
25880 (location_get_source_line): Take an additional output line_len
25881 parameter. Re-write using lookup_or_add_file_to_cache_tab and
25882 read_line_num.
25883 * diagnostic.c (diagnostic_finish): Call
25884 diagnostic_file_cache_fini.
25885 (adjust_line): Take an additional input parameter for the length
25886 of the line, rather than calculating it with strlen.
25887 (diagnostic_show_locus): Adjust the use of
25888 location_get_source_line and adjust_line with respect to their new
25889 signature. While displaying a line now, do not stop at the first
25890 null byte. Rather, display the zero byte as a space and keep
25891 going until we reach the size of the line.
25892 * Makefile.in: Add vec.o to OBJS-libcommon
25893
25894 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25895 Ilya Tocar <ilya.tocar@intel.com>
25896
25897 * config/i386/avx512fintrin.h (_mm512_kmov): New.
25898 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
25899 (__builtin_ia32_kmov16): Ditto.
25900 * config/i386/i386.md (UNSPEC_KMOV): New.
25901 (kmovw): Ditto.
25902
25903 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25904
25905 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
25906 (_mm512_storeu_si512): Ditto.
25907
25908 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
25909
25910 PR target/52125
25911 * rtl.h (get_referenced_operands): Declare.
25912 * recog.c (get_referenced_operands): New function.
25913 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
25914 operands have been referenced when recording LO_SUM references.
25915
25916 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
25917
25918 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
25919
25920 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25921
25922 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
25923 Enable for generic and recent AMD targets.
25924
25925 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25926
25927 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
25928 ARG_SIZE note when adjustment was eliminated.
25929
25930 2014-01-22 Jeff Law <law@redhat.com>
25931
25932 PR tree-optimization/59597
25933 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
25934 in file. Accept new argument REGISTERING and use it to modify
25935 dump output appropriately.
25936 (register_jump_thread): Corresponding changes.
25937 (mark_threaded_blocks): Reinstate code to cancel unprofitable
25938 thread paths involving joiner blocks. Add code to dump cancelled
25939 jump threading paths.
25940
25941 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
25942
25943 PR rtl-optimization/59477
25944 * lra-constraints.c (inherit_in_ebb): Process call for living hard
25945 regs. Update reloads_num and potential_reload_hard_regs for all insns.
25946
25947 2014-01-22 Tom Tromey <tromey@redhat.com>
25948
25949 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
25950 PARAMS.
25951 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
25952
25953 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25954
25955 PR rtl-optimization/59896
25956 * lra-constraints.c (process_alt_operands): Check unused note for
25957 matched operands of insn with no output reloads.
25958
25959 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
25960
25961 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
25962 (mips_move_from_gpr_cost): Likewise.
25963
25964 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25965
25966 PR rtl-optimization/59858
25967 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
25968 ira_class_hard_regs_num.
25969 (process_alt_operands): Increase reject for dying matched operand.
25970
25971 2014-01-21 Jakub Jelinek <jakub@redhat.com>
25972
25973 PR target/59003
25974 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
25975 smaller than size, perform several stores or loads and stores
25976 at dst + count - size to store or copy all of size bytes, rather
25977 than just last modesize bytes.
25978
25979 2014-01-20 DJ Delorie <dj@redhat.com>
25980
25981 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
25982 that CLOBBERs are REGs before propogating their values.
25983
25984 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
25985
25986 PR middle-end/59789
25987 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
25988 (cgraph_inline_failed_type): New function.
25989 * cgraph.h (DEFCIFCODE): Add type.
25990 (cgraph_inline_failed_type_t): New enum.
25991 (cgraph_inline_failed_type): New prototype.
25992 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
25993 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25994 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
25995 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
25996 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
25997 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
25998 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
25999 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
26000 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
26001 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
26002 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
26003 OPTIMIZATION_MISMATCH.
26004 * tree-inline.c (expand_call_inline): Emit errors during
26005 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
26006
26007 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
26008
26009 PR target/59685
26010 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
26011 mode attribute in insn output.
26012
26013 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
26014
26015 * output.h (output_constant): Delete.
26016 * varasm.c (output_constant): Make private.
26017
26018 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
26019
26020 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
26021
26022 2014-01-20 Jakub Jelinek <jakub@redhat.com>
26023
26024 PR middle-end/59860
26025 * tree.h (fold_builtin_strcat): New prototype.
26026 * builtins.c (fold_builtin_strcat): No longer static. Add len
26027 argument, if non-NULL, don't call c_strlen. Optimize
26028 directly into __builtin_memcpy instead of __builtin_strcpy.
26029 (fold_builtin_2): Adjust fold_builtin_strcat caller.
26030 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
26031
26032 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
26033
26034 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
26035 for SImode_address_operand operands, having only a REG argument.
26036
26037 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
26038
26039 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
26040 loader name using mbig-endian.
26041 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
26042
26043 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
26044
26045 * doc/invoke.texi (-march): Clarify documentation for AArch64.
26046 (-mtune): Likewise.
26047 (-mcpu): Likewise.
26048
26049 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
26050
26051 * config/aarch64/aarch64-protos.h
26052 (aarch64_cannot_change_mode_class_ptr): Declare.
26053 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
26054 aarch64_cannot_change_mode_class_ptr): New.
26055 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
26056 backend hook aarch64_cannot_change_mode_class.
26057
26058 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
26059
26060 * common/config/aarch64/aarch64-common.c
26061 (aarch64_handle_option): Don't handle any option order logic here.
26062 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
26063 selected_cpu, warn on architecture version mismatch.
26064 (aarch64_override_options): Fix parsing order for option strings.
26065
26066 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26067 Iain Sandoe <iain@codesourcery.com>
26068
26069 PR bootstrap/59496
26070 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
26071 warning. Amend comment to reflect current functionality.
26072
26073 2014-01-20 Richard Biener <rguenther@suse.de>
26074
26075 PR middle-end/59860
26076 * builtins.c (fold_builtin_strcat): Remove case better handled
26077 by tree-ssa-strlen.c.
26078
26079 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
26080
26081 * config/aarch64/aarch64.opt
26082 (mcpu, march, mtune): Make case-insensitive.
26083
26084 2014-01-20 Jakub Jelinek <jakub@redhat.com>
26085
26086 PR target/59880
26087 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
26088 if operands[1] is a REG or ZERO_EXTEND of a REG.
26089
26090 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
26091
26092 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
26093
26094 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
26095
26096 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
26097 long non-pic millicode calls.
26098
26099 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26100
26101 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
26102
26103 2014-01-19 Kito Cheng <kito@0xlab.org>
26104
26105 * builtins.c (expand_movstr): Check movstr expand done or fail.
26106
26107 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
26108 H.J. Lu <hongjiu.lu@intel.com>
26109
26110 PR target/59379
26111 * config/i386/i386.md (*lea<mode>): Zero-extend return register
26112 to DImode for zero-extended addresses.
26113
26114 2014-01-19 Jakub Jelinek <jakub@redhat.com>
26115
26116 PR rtl-optimization/57763
26117 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
26118 on the new indirect jump_insn and increment LABEL_NUSES (label).
26119
26120 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
26121
26122 PR bootstrap/59580
26123 PR bootstrap/59583
26124 * config.gcc (x86_archs): New variable.
26125 (x86_64_archs): Likewise.
26126 (x86_cpus): Likewise.
26127 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
26128 --with-arch/--with-cpu= options.
26129 Support --with-arch=/--with-cpu={nehalem,westmere,
26130 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
26131
26132 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
26133
26134 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
26135 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
26136
26137 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
26138
26139 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
26140
26141 2014-01-18 Jakub Jelinek <jakub@redhat.com>
26142
26143 PR target/58944
26144 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
26145 clear cpp_get_options (parse_in)->warn_unused_macros for
26146 ix86_target_macros_internal with cpp_define.
26147
26148 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
26149
26150 * jump.c (delete_related_insns): Keep (use (insn))s.
26151 * reorg.c (redundant_insn): Check for barriers too.
26152
26153 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
26154
26155 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
26156
26157 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
26158
26159 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
26160 call to $$dyncall when TARGET_LONG_CALLS is true.
26161
26162 2014-01-17 Jeff Law <law@redhat.com>
26163
26164 * ree.c (combine_set_extension): Temporarily disable test for
26165 changing number of hard registers.
26166
26167 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
26168
26169 PR middle-end/58125
26170 * ipa-inline-analysis.c (inline_free_summary):
26171 Do not free summary of aliases.
26172
26173 2014-01-17 Jakub Jelinek <jakub@redhat.com>
26174
26175 PR middle-end/59706
26176 * gimplify.c (gimplify_expr): Use create_tmp_var
26177 instead of create_tmp_var_raw. If cond doesn't have
26178 integral type, don't add the IFN_ANNOTATE builtin at all.
26179
26180 2014-01-17 Martin Jambor <mjambor@suse.cz>
26181
26182 PR ipa/59736
26183 * ipa-cp.c (prev_edge_clone): New variable.
26184 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
26185 Also resize prev_edge_clone vector.
26186 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
26187 (ipcp_edge_removal_hook): New function.
26188 (ipcp_driver): Register ipcp_edge_removal_hook.
26189
26190 2014-01-17 Andrew Pinski <apinski@cavium.com>
26191 Steve Ellcey <sellcey@mips.com>
26192
26193 PR target/59462
26194 * config/mips/mips.c (mips_print_operand): Check operand mode instead
26195 of operator mode.
26196
26197 2014-01-17 Jeff Law <law@redhat.com>
26198
26199 PR middle-end/57904
26200 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
26201 so that pass_ccp runs first.
26202
26203 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
26204
26205 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
26206 (ix86_adjust_cost): Use !TARGET_XXX.
26207 (do_reorder_for_imul): Likewise.
26208 (swap_top_of_ready_list): Likewise.
26209 (ix86_sched_reorder): Likewise.
26210
26211 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
26212
26213 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26214 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
26215 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
26216 (intel_memset): New. Duplicate slm_memset.
26217 (intel_cost): New. Duplicate slm_cost.
26218 (m_INTEL): New macro.
26219 (processor_target_table): Add "intel".
26220 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
26221 with PROCESSOR_INTEL for "intel".
26222 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
26223 PROCESSOR_SILVERMONT.
26224 (ix86_issue_rate): Likewise.
26225 (ix86_adjust_cost): Likewise.
26226 (ia32_multipass_dfa_lookahead): Likewise.
26227 (swap_top_of_ready_list): Likewise.
26228 (ix86_sched_reorder): Likewise.
26229 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
26230 instead of TARGET_OPT_AGU.
26231 * config/i386/i386.h (TARGET_INTEL): New.
26232 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
26233 (processor_type): Add PROCESSOR_INTEL.
26234 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
26235 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
26236
26237 2014-01-17 Marek Polacek <polacek@redhat.com>
26238
26239 PR c/58346
26240 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
26241 size is zero.
26242
26243 2014-01-17 Richard Biener <rguenther@suse.de>
26244
26245 PR tree-optimization/46590
26246 * opts.c (default_options_table): Add entries for
26247 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
26248 all enabled at -O1 but not for -Og.
26249 * common.opt (fbranch-count-reg): Remove Init(1).
26250 (fmove-loop-invariants): Likewise.
26251 (ftree-pta): Likewise.
26252
26253 2014-01-17 Jakub Jelinek <jakub@redhat.com>
26254
26255 * config/i386/i386.c (ix86_data_alignment): For compatibility with
26256 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
26257 decls to at least the GCC 4.8 used alignments.
26258
26259 PR fortran/59440
26260 * tree-nested.c (convert_nonlocal_reference_stmt,
26261 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
26262 of GIMPLE_BIND stmts, adjust associated decls.
26263
26264 2014-01-17 Richard Biener <rguenther@suse.de>
26265
26266 PR tree-optimization/46590
26267 * vec.h (vec<>::bseach): New member function implementing
26268 binary search according to C89 bsearch.
26269 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
26270 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
26271 bitmap pointer again. Make accesses_in_loop a flat array.
26272 (mem_ref_obstack): New global.
26273 (outermost_indep_loop): Adjust for mem_ref->stored changes.
26274 (mark_ref_stored): Likewise.
26275 (ref_indep_loop_p_2): Likewise.
26276 (set_ref_stored_in_loop): New helper function.
26277 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
26278 (memref_free): Adjust.
26279 (record_mem_ref_loc): Simplify.
26280 (gather_mem_refs_stmt): Adjust.
26281 (sort_locs_in_loop_postorder_cmp): New function.
26282 (analyze_memory_references): Sort accesses_in_loop after
26283 loop postorder number.
26284 (find_ref_loc_in_loop_cmp): New function.
26285 (for_all_locs_in_loop): Find relevant cluster of locs in
26286 accesses_in_loop and iterate without recursion.
26287 (execute_sm): Avoid uninit warning.
26288 (struct ref_always_accessed): Simplify.
26289 (ref_always_accessed::operator ()): Likewise.
26290 (ref_always_accessed_p): Likewise.
26291 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
26292 loop postorder numbers here.
26293 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
26294 numbers.
26295
26296 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
26297
26298 PR c++/57945
26299 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
26300 on decls for which assemble_alias has been called.
26301
26302 2014-01-17 Nick Clifton <nickc@redhat.com>
26303
26304 * config/msp430/msp430.opt: (mcpu): New option.
26305 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
26306 (msp430_option_override): Parse target_cpu. If the MCU name
26307 matches a generic string, clear target_mcu.
26308 (msp430_attr): Allow numeric interrupt values up to 63.
26309 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
26310 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
26311 option.
26312 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
26313 Add mcpu matches.
26314 * config/msp430/msp430.md (popm): Use %J rather than %I.
26315 (addsi3): Use msp430_nonimmediate_operand for operand 2.
26316 (addhi_cy_i): Use immediate_operand for operand 2.
26317 * doc/invoke.texi: Document -mcpu option.
26318
26319 2014-01-17 Richard Biener <rguenther@suse.de>
26320
26321 PR rtl-optimization/38518
26322 * df.h (df_analyze_loop): Declare.
26323 * df-core.c: Include cfgloop.h.
26324 (df_analyze_1): Split out main part of df_analyze.
26325 (df_analyze): Adjust.
26326 (loop_inverted_post_order_compute): New function.
26327 (loop_post_order_compute): Likewise.
26328 (df_analyze_loop): New function avoiding whole-function
26329 postorder computes.
26330 * loop-invariant.c (find_defs): Use df_analyze_loop.
26331 (find_invariants): Adjust.
26332 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
26333
26334 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
26335
26336 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
26337 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
26338
26339 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
26340
26341 * ipa-ref.c (ipa_remove_stmt_references): Fix references
26342 traversal when removing references.
26343
26344 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
26345
26346 PR ipa/59775
26347 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
26348
26349 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
26350
26351 PR middle-end/56791
26352 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
26353 pushing a reload for an autoinc when we had previously reloaded an
26354 inner part of the address.
26355
26356 2014-01-16 Jakub Jelinek <jakub@redhat.com>
26357
26358 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
26359 field.
26360 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
26361 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
26362 when not giving up or versioning for alias only because of
26363 loop->safelen.
26364 (vect_analyze_data_ref_dependences): Set to true.
26365 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
26366 is a GIMPLE_PHI.
26367 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
26368 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
26369 to the condition.
26370
26371 PR middle-end/58344
26372 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
26373
26374 PR target/59839
26375 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
26376 operand 0 predicate for gathers, use a new pseudo as subtarget.
26377
26378 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26379
26380 PR middle-end/59609
26381 * lra-constraints.c (process_alt_operands): Add printing debug info.
26382 Check absence of input/output reloads for matched operands too.
26383
26384 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26385
26386 PR rtl-optimization/59835
26387 * ira.c (ira_init_register_move_cost): Increase cost for
26388 impossible modes.
26389
26390 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
26391
26392 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
26393
26394 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
26395
26396 PR target/59780
26397 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
26398 non-register objects. Use gen_(high/low)part more consistently.
26399 Fix assertions.
26400
26401 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
26402
26403 PR target/59844
26404 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
26405 endian support, remove tests for WORDS_BIG_ENDIAN.
26406 (p8_mfvsrd_3_<mode>): Likewise.
26407 (reload_gpr_from_vsx<mode>): Likewise.
26408 (reload_gpr_from_vsxsf): Likewise.
26409 (p8_mfvsrd_4_disf): Likewise.
26410
26411 2014-01-16 Richard Biener <rguenther@suse.de>
26412
26413 PR rtl-optimization/46590
26414 * lcm.c (compute_antinout_edge): Use postorder iteration.
26415 (compute_laterin): Use inverted postorder iteration.
26416
26417 2014-01-16 Nick Clifton <nickc@redhat.com>
26418
26419 PR middle-end/28865
26420 * varasm.c (output_constant): Return the number of bytes actually
26421 emitted.
26422 (output_constructor_array_range): Update the field size with the
26423 number of bytes emitted by output_constant.
26424 (output_constructor_regular_field): Likewise. Also do not
26425 complain if the total number of bytes emitted is now greater
26426 than the expected fieldpos.
26427 * output.h (output_constant): Update prototype and descriptive comment.
26428
26429 2014-01-16 Marek Polacek <polacek@redhat.com>
26430
26431 PR middle-end/59827
26432 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
26433 it is error_mark_node.
26434
26435 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
26436
26437 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
26438 VALID_AVX256_REG_OR_OI_MODE.
26439
26440 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
26441
26442 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
26443 current procedure should be profiled.
26444
26445 2014-01-15 Andrew Pinski <apinski@cavium.com>
26446
26447 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
26448 of moving from/to the STACK_REG register class.
26449
26450 2014-01-15 Richard Henderson <rth@redhat.com>
26451
26452 PR debug/54694
26453 * reginfo.c (global_regs_decl): Globalize.
26454 * rtl.h (global_regs_decl): Declare.
26455 * ira.c (do_reload): Diagnose frame_pointer_needed and it
26456 reserved via global_regs.
26457
26458 2014-01-15 Teresa Johnson <tejohnson@google.com>
26459
26460 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
26461
26462 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
26463
26464 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
26465 and vmulosh rather than call gen_vec_widen_smult_*.
26466 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
26467 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
26468 (vec_widen_smult_even_v16qi): Likewise.
26469 (vec_widen_umult_even_v8hi): Likewise.
26470 (vec_widen_smult_even_v8hi): Likewise.
26471 (vec_widen_umult_odd_v16qi): Likewise.
26472 (vec_widen_smult_odd_v16qi): Likewise.
26473 (vec_widen_umult_odd_v8hi): Likewise.
26474 (vec_widen_smult_odd_v8hi): Likewise.
26475 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
26476 vmuloub rather than call gen_vec_widen_umult_*.
26477 (vec_widen_umult_lo_v16qi): Likewise.
26478 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
26479 vmulosb rather than call gen_vec_widen_smult_*.
26480 (vec_widen_smult_lo_v16qi): Likewise.
26481 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
26482 rather than call gen_vec_widen_umult_*.
26483 (vec_widen_umult_lo_v8hi): Likewise.
26484 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
26485 rather than call gen_vec_widen_smult_*.
26486 (vec_widen_smult_lo_v8hi): Likewise.
26487
26488 2014-01-15 Jeff Law <law@redhat.com>
26489
26490 PR tree-optimization/59747
26491 * ree.c (find_and_remove_re): Properly handle case where a second
26492 eliminated extension requires widening a copy created for elimination
26493 of a prior extension.
26494 (combine_set_extension): Ensure that the number of hard regs needed
26495 for a destination register does not change when we widen it.
26496
26497 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
26498
26499 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
26500 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
26501 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
26502 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
26503 (avr-*-rtems*): Likewise.
26504 (bfin*-rtems*): Likewise.
26505 (moxie-*-rtems*): Likewise.
26506 (h8300-*-rtems*): Likewise.
26507 (i[34567]86-*-rtems*): Likewise.
26508 (lm32-*-rtems*): Likewise.
26509 (m32r-*-rtems*): Likewise.
26510 (m68k-*-rtems*): Likewise.
26511 (microblaze*-*-rtems*): Likewise.
26512 (mips*-*-rtems*): Likewise.
26513 (powerpc-*-rtems*): Likewise.
26514 (sh-*-rtems*): Likewise.
26515 (sparc-*-rtems*): Likewise.
26516 (sparc64-*-rtems*): Likewise.
26517 (v850-*-rtems*): Likewise.
26518 (m32c-*-rtems*): Likewise.
26519
26520 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
26521
26522 PR rtl-optimization/59511
26523 * ira.c (ira_init_register_move_cost): Use memory costs for some
26524 cases of register move cost calculations.
26525 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
26526 instead of BB frequency.
26527 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
26528 * lra-assigns.c (find_hard_regno_for): Ditto.
26529
26530 2014-01-15 Richard Biener <rguenther@suse.de>
26531
26532 PR tree-optimization/59822
26533 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
26534 (vectorizable_load): Use it to hoist defs of uses of invariant
26535 loads out of the loop.
26536
26537 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
26538 Kugan Vivekanandarajah <kuganv@linaro.org>
26539
26540 PR target/59695
26541 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
26542 truncation.
26543
26544 2014-01-15 Richard Biener <rguenther@suse.de>
26545
26546 PR rtl-optimization/59802
26547 * lcm.c (compute_available): Use inverted postorder to seed
26548 the initial worklist.
26549
26550 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26551
26552 PR target/59803
26553 * config/s390/s390.c (s390_preferred_reload_class): Don't return
26554 ADDR_REGS for invalid symrefs in non-PIC code.
26555
26556 2014-01-15 Jakub Jelinek <jakub@redhat.com>
26557
26558 PR other/58712
26559 * builtins.c (determine_block_size): Initialize *probable_max_size
26560 even if len_rtx is CONST_INT.
26561
26562 2014-01-14 Andrew Pinski <apinski@cavium.com>
26563
26564 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
26565 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
26566 (cortexa53_tunings): Likewise.
26567 (aarch64_sched_issue_rate): New function.
26568 (TARGET_SCHED_ISSUE_RATE): Define.
26569
26570 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26571
26572 * ira-costs.c (find_costs_and_classes): Add missed
26573 ira_init_register_move_cost_if_necessary.
26574
26575 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26576
26577 PR target/59787
26578 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
26579
26580 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
26581
26582 PR target/59794
26583 * config/i386/i386.c (type_natural_mode): Add a bool parameter
26584 to indicate if type is used for function return value. Warn ABI
26585 change if the vector mode isn't available for function return value.
26586 (ix86_function_arg_advance): Pass false to type_natural_mode.
26587 (ix86_function_arg): Likewise.
26588 (ix86_gimplify_va_arg): Likewise.
26589 (function_arg_32): Don't warn ABI change.
26590 (ix86_function_value): Pass true to type_natural_mode.
26591 (ix86_return_in_memory): Likewise.
26592 (ix86_struct_value_rtx): Removed.
26593 (TARGET_STRUCT_VALUE_RTX): Likewise.
26594
26595 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26596
26597 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
26598 converting a conditional jump into a conditional return.
26599
26600 2014-01-14 Richard Biener <rguenther@suse.de>
26601
26602 PR tree-optimization/58921
26603 PR tree-optimization/59006
26604 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
26605 hoisting invariant stmts.
26606 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
26607 invariant loads on the preheader edge if possible.
26608
26609 2014-01-14 Joey Ye <joey.ye@arm.com>
26610
26611 * doc/plugin.texi (Building GCC plugins): Update to C++.
26612
26613 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
26614
26615 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
26616 (_mm_rcp28_round_ss): Ditto.
26617 (_mm_rsqrt28_round_sd): Ditto.
26618 (_mm_rsqrt28_round_ss): Ditto.
26619 (_mm_rcp28_sd): Ditto.
26620 (_mm_rcp28_ss): Ditto.
26621 (_mm_rsqrt28_sd): Ditto.
26622 (_mm_rsqrt28_ss): Ditto.
26623 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
26624 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
26625 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
26626 (IX86_BUILTIN_RCP28SD): Ditto.
26627 (IX86_BUILTIN_RCP28SS): Ditto.
26628 (IX86_BUILTIN_RSQRT28SD): Ditto.
26629 (IX86_BUILTIN_RSQRT28SS): Ditto.
26630 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
26631 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
26632 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
26633 (ix86_expand_special_args_builtin): Expand new FTYPE.
26634 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
26635 (srcp14<mode>): Make insn unary.
26636 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
26637 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
26638 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
26639 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
26640 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
26641 Fix rounding: make it SAE only.
26642 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26643 Ditto.
26644 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26645 Ditto.
26646 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
26647 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
26648 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
26649 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
26650 (round_saeonly_mask_scalar_operand4): Ditto.
26651 (round_saeonly_mask_scalar_op3): Ditto.
26652 (round_saeonly_mask_scalar_op4): Ditto.
26653
26654 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26655
26656 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26657 Implement -maltivec=be for vec_insert and vec_extract.
26658
26659 2014-01-10 DJ Delorie <dj@redhat.com>
26660
26661 * config/msp430/msp430.md (call_internal): Don't allow memory
26662 references with SP as the base register.
26663 (call_value_internal): Likewise.
26664 * config/msp430/constraints.md (Yc): New. For memory references
26665 that don't use SP as a base register.
26666
26667 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
26668 "an integer without a # prefix"
26669 * config/msp430/msp430.md (epilogue_helper): Use it.
26670
26671 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26672
26673 PR target/59617
26674 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
26675 AVX512F gather builtins.
26676 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
26677 on gather decls with INTEGER_TYPE masktype.
26678 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
26679 directly into the builtin rather than hoisting it before loop.
26680
26681 PR tree-optimization/59387
26682 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
26683 (scev_const_prop): If folded_casts and type has undefined overflow,
26684 use force_gimple_operand instead of force_gimple_operand_gsi and
26685 for each added stmt if it is assign with
26686 arith_code_with_undefined_signed_overflow, call
26687 rewrite_to_defined_overflow.
26688 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
26689 gimple-fold.h instead.
26690 (arith_code_with_undefined_signed_overflow,
26691 rewrite_to_defined_overflow): Moved to ...
26692 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
26693 rewrite_to_defined_overflow): ... here. No longer static.
26694 Include gimplify-me.h.
26695 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
26696 rewrite_to_defined_overflow): New prototypes.
26697
26698 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26699
26700 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
26701
26702 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
26703
26704 * builtins.c (get_object_alignment_2): Minor tweak.
26705 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
26706
26707 2014-01-13 Christian Bruel <christian.bruel@st.com>
26708
26709 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
26710 optimized non constant lengths.
26711
26712 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26713
26714 PR libgomp/59194
26715 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
26716 load as __atomic_load_N if possible.
26717
26718 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26719
26720 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
26721 target parameter.
26722 (rs6000_expand_builtin): Adjust call.
26723
26724 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26725
26726 PR target/58115
26727 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
26728 * config/rs6000/rs6000.c: Include target-globals.h.
26729 (rs6000_set_current_function): Instead of doing target_reinit
26730 unconditionally, use save_target_globals_default_opts and
26731 restore_target_globals.
26732
26733 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
26734 FPSCR.
26735 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
26736 (rs6000_expand_builtin): Handle mffs and mtfsf.
26737 (rs6000_init_builtins): Define mffs and mtfsf.
26738 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
26739 (rs6000_mffs): New pattern.
26740 (rs6000_mtfsf): New pattern.
26741
26742 2014-01-11 Bin Cheng <bin.cheng@arm.com>
26743
26744 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
26745 Start narrowing with START. Apply candidate-use pair
26746 and check overall cost in narrowing.
26747 (iv_ca_prune): Pass new argument.
26748
26749 2014-01-10 Jeff Law <law@redhat.com>
26750
26751 PR middle-end/59743
26752 * ree.c (combine_reaching_defs): Ensure the defining statement
26753 occurs before the extension when optimizing extensions with
26754 different source and destination hard registers.
26755
26756 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26757
26758 PR ipa/58585
26759 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
26760 vtables into the type inheritance graph.
26761
26762 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26763
26764 PR rtl-optimization/59754
26765 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
26766 modes in the REGNO != REGNO case.
26767
26768 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26769
26770 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
26771
26772 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26773
26774 PR tree-optimization/59745
26775 * tree-predcom.c (tree_predictive_commoning_loop): Call
26776 free_affine_expand_cache if giving up because components is NULL.
26777
26778 * target-globals.c (save_target_globals): Allocate < 4KB structs using
26779 GC in payload of target_globals struct instead of allocating them on
26780 the heap and the larger structs separately using GC.
26781 * target-globals.h (struct target_globals): Make regs, hard_regs,
26782 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
26783 of GTY((skip)) and change type to void *.
26784 (reset_target_globals): Cast loads from those fields to corresponding
26785 types.
26786
26787 2014-01-10 Steve Ellcey <sellcey@mips.com>
26788
26789 PR plugins/59335
26790 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
26791 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
26792 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
26793
26794 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
26795
26796 PR target/59744
26797 * aarch64-modes.def (CC_Zmode): New flags mode.
26798 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
26799 represents an equality.
26800 (aarch64_get_condition_code): Handle CC_Zmode.
26801 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
26802
26803 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26804
26805 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
26806 extraction in good case.
26807
26808 2014-01-10 Richard Biener <rguenther@suse.de>
26809
26810 PR tree-optimization/59374
26811 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
26812 checking after SLP discovery. Mark stmts not participating
26813 in any SLP instance properly.
26814
26815 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26816
26817 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
26818 when handling a SET rtx.
26819
26820 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26821
26822 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
26823 (cortex-a57): Likewise.
26824 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
26825
26826 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26827
26828 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
26829 non-iwmmxt builtins.
26830
26831 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26832
26833 PR ipa/58252
26834 PR ipa/59226
26835 * ipa-devirt.c record_target_from_binfo): Take as argument
26836 stack of binfos and lookup matching one for virtual inheritance.
26837 (possible_polymorphic_call_targets_1): Update.
26838
26839 2014-01-10 Huacai Chen <chenhc@lemote.com>
26840
26841 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
26842 kernel strings for Loongson-2E/2F/3A.
26843
26844 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26845
26846 PR middle-end/59670
26847 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
26848 is_gimple_call before calling gimple_call_internal_p.
26849
26850 2014-01-09 Steve Ellcey <sellcey@mips.com>
26851
26852 * Makefile.in (TREE_FLOW_H): Remove.
26853 (TREE_SSA_H): Add file names from tree-flow.h.
26854 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
26855 * tree.h: Remove tree-flow.h reference.
26856 * hash-table.h: Remove tree-flow.h reference.
26857 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
26858 reference with tree-ssa-loop.h.
26859
26860 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26861
26862 * doc/invoke.texi: Add -maltivec={be,le} options, and document
26863 default element-order behavior for -maltivec.
26864 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
26865 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
26866 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
26867 when targeting big endian, at least for now.
26868 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
26869
26870 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26871
26872 PR middle-end/47735
26873 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
26874 var satisfies use_register_for_decl, just take into account type
26875 alignment, rather than decl alignment.
26876
26877 PR tree-optimization/59622
26878 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
26879 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
26880 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
26881 Don't devirtualize for inplace at all. For targets.length () == 1,
26882 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
26883
26884 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26885
26886 * config/i386/i386.md (cpu): Remove the unused btver1.
26887
26888 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26889
26890 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
26891
26892 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26893
26894 PR target/58115
26895 * tree-core.h (struct target_globals): New forward declaration.
26896 (struct tree_target_option): Add globals field.
26897 * tree.h (TREE_TARGET_GLOBALS): Define.
26898 (prepare_target_option_nodes_for_pch): New prototype.
26899 * target-globals.h (struct target_globals): Define even if
26900 !SWITCHABLE_TARGET.
26901 * tree.c (prepare_target_option_node_for_pch,
26902 prepare_target_option_nodes_for_pch): New functions.
26903 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
26904 * config/i386/i386.c: Include target-globals.h.
26905 (ix86_set_current_function): Instead of doing target_reinit
26906 unconditionally, use save_target_globals_default_opts and
26907 restore_target_globals.
26908
26909 2014-01-09 Richard Biener <rguenther@suse.de>
26910
26911 PR tree-optimization/59715
26912 * tree-cfg.h (split_critical_edges): Declare.
26913 * tree-cfg.c (split_critical_edges): Export.
26914 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
26915
26916 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
26917
26918 * cfgexpand.c (expand_stack_vars): Optionally disable
26919 asan stack protection.
26920 (expand_used_vars): Likewise.
26921 (partition_stack_vars): Likewise.
26922 * asan.c (asan_emit_stack_protection): Optionally disable
26923 after return stack usage.
26924 (instrument_derefs): Optionally disable memory access instrumentation.
26925 (instrument_builtin_call): Likewise.
26926 (instrument_strlen_call): Likewise.
26927 (asan_protect_global): Optionally disable global variables protection.
26928 * doc/invoke.texi: Added doc for new options.
26929 * params.def: Added new options.
26930 * params.h: Likewise.
26931
26932 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26933
26934 PR rtl-optimization/59724
26935 * ifcvt.c (cond_exec_process_if_block): Don't call
26936 flow_find_head_matching_sequence with 0 longest_match.
26937 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
26938 non-active insns if !stop_after.
26939 (try_head_merge_bb): Revert 2014-01-07 changes.
26940
26941 2014-01-08 Jeff Law <law@redhat.com>
26942
26943 * ree.c (get_sub_rtx): New function, extracted from...
26944 (merge_def_and_ext): Here.
26945 (combine_reaching_defs): Use get_sub_rtx.
26946
26947 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
26948
26949 * cgraph.h (varpool_variable_node): Do not choke on null node.
26950
26951 2014-01-08 Catherine Moore <clm@codesourcery.com>
26952
26953 * config/mips/mips.md (simple_return): Attempt to use JRC
26954 for microMIPS.
26955 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
26956
26957 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26958
26959 PR rtl-optimization/59137
26960 * reorg.c (steal_delay_list_from_target): Call update_block for
26961 elided insns.
26962 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
26963
26964 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26965
26966 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26967 two duplicate entries.
26968
26969 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26970
26971 Revert:
26972 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
26973
26974 * config/mips/mips.c (mips_truncated_op_cost): New function.
26975 (mips_rtx_costs): Adjust test for BADDU.
26976 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
26977
26978 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
26979
26980 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
26981 (*baddu_si): ...this new pattern.
26982
26983 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26984
26985 PR ipa/59722
26986 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
26987
26988 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
26989
26990 PR middle-end/57748
26991 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
26992 inner_reference_p.
26993 (expand_expr, expand_normal): Adjust.
26994 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
26995 inner_reference_p. Use inner_reference_p to expand inner references.
26996 (store_expr): Adjust.
26997 * cfgexpand.c (expand_call_stmt): Adjust.
26998
26999 2014-01-08 Rong Xu <xur@google.com>
27000
27001 * gcov-io.c (gcov_var): Move from gcov-io.h.
27002 (gcov_position): Ditto.
27003 (gcov_is_error): Ditto.
27004 (gcov_rewrite): Ditto.
27005 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
27006 only part to libgcc/libgcov.h.
27007
27008 2014-01-08 Marek Polacek <polacek@redhat.com>
27009
27010 PR middle-end/59669
27011 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
27012
27013 2014-01-08 Marek Polacek <polacek@redhat.com>
27014
27015 PR sanitizer/59667
27016 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
27017
27018 2014-01-08 Jakub Jelinek <jakub@redhat.com>
27019
27020 PR rtl-optimization/59649
27021 * stor-layout.c (get_mode_bounds): For BImode return
27022 0 and STORE_FLAG_VALUE.
27023
27024 2014-01-08 Richard Biener <rguenther@suse.de>
27025
27026 PR middle-end/59630
27027 * gimple.h (is_gimple_builtin_call): Remove.
27028 (gimple_builtin_call_types_compatible_p): New.
27029 (gimple_call_builtin_p): New overload.
27030 * gimple.c (is_gimple_builtin_call): Remove.
27031 (validate_call): Rename to ...
27032 (gimple_builtin_call_types_compatible_p): ... this and export. Also
27033 check return types.
27034 (validate_type): New static function.
27035 (gimple_call_builtin_p): New overload and adjust.
27036 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
27037 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
27038 (gimple_fold_stmt_to_constant_1): Likewise.
27039 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
27040
27041 2014-01-08 Richard Biener <rguenther@suse.de>
27042
27043 PR middle-end/59471
27044 * gimplify.c (gimplify_expr): Gimplify register-register type
27045 VIEW_CONVERT_EXPRs to separate stmts.
27046
27047 2014-01-07 Jeff Law <law@redhat.com>
27048
27049 PR middle-end/53623
27050 * ree.c (combine_set_extension): Handle case where source
27051 and destination registers in an extension insn are different.
27052 (combine_reaching_defs): Allow source and destination registers
27053 in extension to be different under limited circumstances.
27054 (add_removable_extension): Remove restriction that the
27055 source and destination registers in the extension are the same.
27056 (find_and_remove_re): Emit a copy from the extension's
27057 destination to its source after the defining insn if
27058 the source and destination registers are different.
27059
27060 PR middle-end/59285
27061 * ifcvt.c (merge_if_block): If we are merging a block with more than
27062 one successor with a block with no successors, remove any BARRIER
27063 after the second block.
27064
27065 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
27066
27067 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
27068
27069 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
27070
27071 PR target/59652
27072 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
27073 for 14-bit register offsets when INT14_OK_STRICT is false.
27074
27075 2014-01-07 Roland Stigge <stigge@antcom.de>
27076 Michael Meissner <meissner@linux.vnet.ibm.com>
27077
27078 PR 57386/target
27079 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
27080 Only check TFmode for SPE constants. Don't check TImode or TDmode.
27081
27082 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
27083
27084 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
27085 -mcpu.
27086
27087 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
27088
27089 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
27090 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
27091 rtx is const0_rtx or not.
27092
27093 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
27094
27095 PR target/58115
27096 * target-globals.c (save_target_globals): Remove this_fn_optab
27097 handling.
27098 * toplev.c: Include optabs.h.
27099 (target_reinit): Temporarily restore the global options if another
27100 set of options are in force.
27101
27102 2014-01-07 Jakub Jelinek <jakub@redhat.com>
27103
27104 PR rtl-optimization/58668
27105 * cfgcleanup.c (flow_find_cross_jump): Don't count
27106 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
27107 to determine what is counted.
27108 (flow_find_head_matching_sequence): Use active_insn_p to determine
27109 what is counted.
27110 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
27111 counting change.
27112 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
27113 determine what is counted.
27114
27115 PR tree-optimization/59643
27116 * tree-predcom.c (split_data_refs_to_components): If one dr is
27117 read and one write, determine_offset fails and the write isn't
27118 in the bad component, just put the read into the bad component.
27119
27120 2014-01-07 Mike Stump <mikestump@comcast.net>
27121 Jakub Jelinek <jakub@redhat.com>
27122
27123 PR pch/59436
27124 * tree-core.h (struct tree_optimization_option): Change optabs
27125 type from unsigned char * to void *.
27126 * optabs.c (init_tree_optimization_optabs): Adjust
27127 TREE_OPTIMIZATION_OPTABS initialization.
27128
27129 2014-01-06 Jakub Jelinek <jakub@redhat.com>
27130
27131 PR target/59644
27132 * config/i386/i386.h (struct machine_function): Add
27133 no_drap_save_restore field.
27134 * config/i386/i386.c (ix86_save_reg): Use
27135 !cfun->machine->no_drap_save_restore instead of
27136 crtl->stack_realign_needed.
27137 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
27138 this function clears frame_pointer_needed. Set
27139 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
27140 and DRAP reg is needed.
27141
27142 2014-01-06 Marek Polacek <polacek@redhat.com>
27143
27144 PR c/57773
27145 * doc/implement-c.texi: Mention that other integer types are
27146 permitted as bit-field types in strictly conforming mode.
27147
27148 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
27149
27150 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
27151 is newly allocated.
27152
27153 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
27154
27155 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
27156
27157 2014-01-06 Martin Jambor <mjambor@suse.cz>
27158
27159 PR ipa/59008
27160 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
27161 to int.
27162 * ipa-prop.c (ipa_print_node_params): Fix indentation.
27163
27164 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
27165
27166 PR debug/59350
27167 PR debug/59510
27168 * var-tracking.c (add_stores): Preserve the value of the source even if
27169 we don't record the store.
27170
27171 2014-01-06 Terry Guo <terry.guo@arm.com>
27172
27173 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
27174
27175 2014-01-05 Iain Sandoe <iain@codesourcery.com>
27176
27177 PR bootstrap/59541
27178 * config/darwin.c (darwin_function_section): Adjust return values to
27179 correspond to optimisation changes made in r206070.
27180
27181 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
27182
27183 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
27184 from prefetch_block tune setting.
27185 (nocona_cost): Correct size of prefetch block to 64.
27186
27187 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
27188
27189 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
27190 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
27191 used to save the static chain register in the computation of the offset
27192 from which the FP registers need to be restored.
27193
27194 2014-01-04 Jakub Jelinek <jakub@redhat.com>
27195
27196 PR tree-optimization/59519
27197 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
27198 ICE if get_current_def (current_new_name) is already non-NULL, as long
27199 as it is a phi result of some other phi in *new_exit_bb that has
27200 the same argument.
27201
27202 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
27203 or vmovdqu* for misaligned_operand.
27204 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
27205 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
27206 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
27207 aligned_mem for AVX512F masked aligned load and store builtins and for
27208 non-temporal moves.
27209
27210 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
27211
27212 PR tree-optimization/59651
27213 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
27214 Address range for negative step should be added by TYPE_SIZE_UNIT.
27215
27216 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
27217
27218 * config/m68k/m68k.c (handle_move_double): Handle pushes with
27219 overlapping registers also for registers other than the stack pointer.
27220
27221 2014-01-03 Marek Polacek <polacek@redhat.com>
27222
27223 PR other/59661
27224 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
27225 __builtin_FILE.
27226
27227 2014-01-03 Jakub Jelinek <jakub@redhat.com>
27228
27229 PR target/59625
27230 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
27231 asm goto as jump.
27232
27233 * config/i386/i386.md (MODE_SIZE): New mode attribute.
27234 (push splitter): Use <P:MODE_SIZE> instead of
27235 GET_MODE_SIZE (<P:MODE>mode).
27236 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
27237 (mov -1, reg peephole2): Likewise.
27238 * config/i386/sse.md (*mov<mode>_internal,
27239 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
27240 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
27241 *<code><mode>3, *andnot<mode>3<mask_name>,
27242 <mask_codefor><code><mode>3<mask_name>): Likewise.
27243 * config/i386/subst.md (mask_mode512bit_condition,
27244 sd_mask_mode512bit_condition): Likewise.
27245
27246 2014-01-02 Xinliang David Li <davidxl@google.com>
27247
27248 PR tree-optimization/59303
27249 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
27250 (dump_predicates): Better output format.
27251 (pred_equal_p): New function.
27252 (is_neq_relop_p): Ditto.
27253 (is_neq_zero_form_p): Ditto.
27254 (pred_expr_equal_p): Ditto.
27255 (pred_neg_p): Ditto.
27256 (simplify_pred): Ditto.
27257 (simplify_preds_2): Ditto.
27258 (simplify_preds_3): Ditto.
27259 (simplify_preds_4): Ditto.
27260 (simplify_preds): Ditto.
27261 (push_pred): Ditto.
27262 (push_to_worklist): Ditto.
27263 (get_pred_info_from_cmp): Ditto.
27264 (is_degenerated_phi): Ditto.
27265 (normalize_one_pred_1): Ditto.
27266 (normalize_one_pred): Ditto.
27267 (normalize_one_pred_chain): Ditto.
27268 (normalize_preds): Ditto.
27269 (normalize_cond_1): Remove function.
27270 (normalize_cond): Ditto.
27271 (is_gcond_subset_of): Ditto.
27272 (is_subset_of_any): Ditto.
27273 (is_or_set_subset_of): Ditto.
27274 (is_and_set_subset_of): Ditto.
27275 (is_norm_cond_subset_of): Ditto.
27276 (pred_chain_length_cmp): Ditto.
27277 (convert_control_dep_chain_into_preds): Type change.
27278 (find_predicates): Ditto.
27279 (find_def_preds): Ditto.
27280 (destroy_predicates_vecs): Ditto.
27281 (find_matching_predicates_in_rest_chains): Ditto.
27282 (use_pred_not_overlap_with_undef_path_pred): Ditto.
27283 (is_pred_expr_subset): Ditto.
27284 (is_pred_chain_subset_of): Ditto.
27285 (is_included_in): Ditto.
27286 (is_superset_of): Ditto.
27287
27288 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
27289
27290 Update copyright years.
27291
27292 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
27293
27294 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
27295 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
27296 config/arc/arc.md, config/arc/arc.opt,
27297 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
27298 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
27299 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
27300 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
27301 config/linux-protos.h, config/linux.c, config/winnt-c.c,
27302 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
27303 vtable-verify.c, vtable-verify.h: Use the standard form for the
27304 copyright notice.
27305
27306 2014-01-02 Tobias Burnus <burnus@net-b.de>
27307
27308 * gcc.c (process_command): Update copyright notice dates.
27309 * gcov-dump.c: Ditto.
27310 * gcov.c: Ditto.
27311 * doc/cpp.texi: Bump @copying's copyright year.
27312 * doc/cppinternals.texi: Ditto.
27313 * doc/gcc.texi: Ditto.
27314 * doc/gccint.texi: Ditto.
27315 * doc/gcov.texi: Ditto.
27316 * doc/install.texi: Ditto.
27317 * doc/invoke.texi: Ditto.
27318
27319 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27320
27321 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
27322
27323 2014-01-01 Jakub Jelinek <jakub@redhat.com>
27324
27325 * config/i386/sse.md (*mov<mode>_internal): Guard
27326 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
27327
27328 PR rtl-optimization/59647
27329 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
27330 new_rtx into UNSIGNED_FLOAT rtxes.
27331 \f
27332 Copyright (C) 2014 Free Software Foundation, Inc.
27333
27334 Copying and distribution of this file, with or without modification,
27335 are permitted in any medium without royalty provided the copyright
27336 notice and this notice are preserved.